/*
 *             Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
 *
 *
 *
 *
 *          +---------------------------------------------------------------------------------+
 *          |                                                                                 |
 *          |                                 Hello stranger!                                 |
 *          |                                                                                 |
 *          |                                                                                 |
 *          |   What you're currently looking at is the source code of a legally protected,   |
 *          |    proprietary software. Any attempts to deobfuscate / disassemble this code    |
 *          |               are forbidden and will result in legal consequences.              |
 *          |                                                                                 |
 *          |                                                                                 |
 *          +---------------------------------------------------------------------------------+
 *
 *
 *
 *
 */
import{Plugin,Command as _0x142ccd,ContextPlugin,Editor,PendingActions,Context as Context$1,ElementApiMixin}from'ckeditor5';import{uid,CKEditorError,ObservableMixin,global as _0xd4e5e,isVisible,Rect,Collection,FocusTracker,KeystrokeHandler,first,toArray as toArray$1,EmitterMixin,logWarning,logError,scrollViewportToShowTarget,ResizeObserver as _0xf5cfe0,_isMotionReduced,scrollAncestorsToShowTarget,DomEmitterMixin,diff as _0x141a14,priorities,getEnvKeystrokeText,toUnit,keyCodes,diffToChanges,collectStylesheets,createElement,env,version as _0x495162,ElementReplacer,formatHtml,insertToPriorityArray,getAncestors}from'ckeditor5';import{ToolbarView,ButtonView,View,SpinnerView,IconView,AutocompleteView,ListView,ListItemGroupView,ListItemView,ButtonLabelView,FocusCycler,createLabeledTextarea,Dialog,createDropdown,addMenuToDropdown,MenuBarMenuView,MenuBarMenuListItemButtonView,DialogViewPosition,MenuBarMenuListView,MenuBarMenuListItemView,DropdownButtonView,isViewWithFocusCycler,ViewCollection,UIModel,SplitButtonView,BalloonPanelView,BodyCollection,clickOutsideHandler,ListItemButtonView,addListToDropdown,submitHandler,LabeledFieldView,createLabeledInputText,FormHeaderView,HighlightedTextView,FileDialogButtonView,InputTextView,SearchTextView,DropdownMenuButtonView,DropdownMenuPanelPositioningFunctions,BalloonToolbar,FormRowView,TextareaView,EditorUIView,InlineEditableUIView,EditorUI,focusChildOnDropdownOpen,ContextualBalloon,Notification,MenuBarMenuListItemFileDialogButtonView,addKeyboardHandlingForGrid,CollapsibleView,createLabeledInputNumber,filterGroupAndItemNames,LabelWithHighlightView,ButtonLabelWithHighlightView,InputNumberView,LabelView,CssTransitionDisablerMixin,ToolbarSeparatorView,normalizeToolbarConfig,BoxedEditorUIView,StickyPanelView,normalizeColorOptions,ListSeparatorView}from'ckeditor5';import{IconCopy,IconCheck,IconError,IconSubmit,IconAIHistory,IconMagicWand,IconRobotPencil,IconMaximize,IconMinimize,IconNotification,IconCancel,IconShowChangesOn as _0x19dfc9,IconShowChangesOff as _0x350f3a,IconDocument,IconThreeStars,IconDocumentWithLoupe,IconAddComment,IconRemove,IconDocumentWithCheckmark,IconDocumentWithCross,IconLoupe,IconStop,IconAIChat,IconPlus,IconPin,IconThreeHorizontalDots,IconChevronRight,IconInfo,IconEye,IconEyeCrossedOut,IconAIReview,IconCaseChange,IconUndo,IconPencil,IconRemoveComment,IconThreeVerticalDots,IconCommentsArchive,IconTableOfContents,IconExportPdf,IconExportWord,IconPaintRoller,IconImportWord,IconLineHeight,IconMultiLevelList,IconWarning,IconInsertMergeField,IconPreviewMergeFields,IconArrowDown,IconArrowUp,IconHistory,IconChevronUp,IconChevronDown,IconUser,IconQuote,IconBulletedList,IconCodeBlock,IconBrowseFiles as _0x384899,IconEmoji,IconHeading1,IconHeading2,IconHeading3,IconHeading4,IconHeading5,IconHeading6,IconHorizontalLine,IconHtml,IconIndent,IconTable,IconNumberedList,IconOutdent,IconParagraph,IconTodoList,IconPlay,IconSource,IconTemplateGeneric,IconTemplate,IconTrackChanges,IconOneDrive,IconGooglePhotos,IconGoogleDrive,IconFacebook,IconDropbox,IconUploadcareLink,IconUploadcareImageUpload,IconUploadcareImageEdit}from'ckeditor5';import{ViewDocumentDomEventData,ViewDataTransfer,ViewUpcastWriter,Matcher,ViewDowncastWriter,InsertOperation,MoveOperation,ModelPosition,ModelRange,MarkerOperation,MergeOperation,SplitOperation,RenameOperation,AttributeOperation,ModelTreeWalker,ModelText,transformOperationSets,_DetachOperation,_insertIntoModelNodeList,_removeFromModelNodeList,ModelDocumentFragment,disableViewPlaceholder,enableViewPlaceholder,MouseObserver,StylesMap,addMarginStylesRules,addPaddingStylesRules,ClickObserver,isPercentageStyleValue,ViewDocument,ViewDomConverter,ModelLiveRange,History,NoOperation,RootAttributeOperation,OperationFactory,ViewContainerElement,ViewAttributeElement,ViewEmptyElement,ViewRawElement,ViewUIElement,ViewDocumentFragment,ViewText,ViewElement,ModelElement,ModelLivePosition}from'ckeditor5';import{ClipboardPipeline,ClipboardMarkersUtils,Clipboard}from'ckeditor5';import{Enter,ShiftEnter}from'ckeditor5';import{SelectAll}from'ckeditor5';import{Typing,Delete,Input}from'ckeditor5';import{Undo}from'ckeditor5';import{Paragraph}from'ckeditor5';import{toWidget,Widget,findOptimalInsertionRange,viewToModelPositionOutsideModelElement,setHighlightHandling}from'ckeditor5';import{PasteFromOfficeMSWordNormalizer,parsePasteOfficeHtml}from'ckeditor5';import{MarkdownGfmMdToHtml}from'ckeditor5';import{IconThumbUp,IconThumbDown,IconCopy as _0x548bd1,IconCheck as _0x2a9685,IconShowChangesOff,IconShowChangesOn,IconWeb,IconNextArrow,IconPreviousArrow,IconAI,IconClose,IconSelection,IconFileUpload,IconLink,IconDocument as IconDocument$1,IconBulb,IconDocumentOutline,IconPaperClip,IconBrowseFiles,IconDropdownArrow,IconAIAskAI,IconAIQuickActions,IconAIChatCommands,IconAIImproveWriting,IconAIContinueWriting,IconAIGrammarCheck,IconAIAdjustLength,IconAIChangeTone,IconAITranslate,IconAIOther,IconRefresh}from'ckeditor5';import{EmitterMixin as EmitterMixin$1,ObservableMixin as _0x497a76,priorities as priorities$1,global as _0x56352e,Collection as Collection$1}from'ckeditor5';import{FileRepository}from'ckeditor5';const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';function normalizeCommandsConfig(_0x25b049,_0x197013){const _0x5ea609=(0x0,_0x197013['t'])('Other');return _0x25b049['length']?'groupId'in _0x25b049[0x0]?_0x25b049:[{'groupId':UNGROUPED_COMMANDS_GROUP_ID,'groupLabel':_0x5ea609,'order':0x1/0x0,'commands':_0x25b049}]:[{'groupId':UNGROUPED_COMMANDS_GROUP_ID,'groupLabel':_0x5ea609,'order':0x1/0x0,'commands':[]}];}const DomDataTransfer$1=globalThis['DataTransfer'],VISUAL_SELECTION_MARKER_NAME='ai-ui';class AIAssistantEditing extends Plugin{static get['pluginName'](){return'AIAssistantEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x205af3}=this,_0x5162cf=['ck-fake-ai-selection'];_0x205af3['config']['get']('ai.assistant.useTheme')&&_0x5162cf['push']('ck-ai-assistant-ui_theme'),_0x205af3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':VISUAL_SELECTION_MARKER_NAME,'view':{'classes':_0x5162cf,'priority':0xc}}),_0x205af3['conversion']['for']('editingDowncast')['markerToElement']({'model':VISUAL_SELECTION_MARKER_NAME,'view':(_0x123612,{writer:_0x1725ae})=>{if(!_0x123612['markerRange']['isCollapsed'])return null;const _0x244d89=_0x1725ae['createUIElement']('span');return _0x1725ae['addClass'](['ck-fake-ai-selection','ck-fake-ai-selection_collapsed'],_0x244d89),_0x244d89;}});}['afterInit'](){checkLicense$i(this);}['showFakeVisualSelection'](){const _0x110966=this['editor']['model'];_0x110966['change'](_0x3562c3=>{const _0x1e850c=_0x110966['document']['selection']['getRanges']();let _0xf73d95=0x0;for(const _0x500af5 of _0x1e850c){const _0x51b9d8=VISUAL_SELECTION_MARKER_NAME+':'+_0xf73d95;if(_0x110966['markers']['has'](_0x51b9d8))_0x3562c3['updateMarker'](_0x51b9d8,{'range':_0x500af5});else{if(_0x500af5['start']['isAtEnd']){const _0x184461=_0x500af5['start']['getLastMatchingPosition'](({item:_0x44992f})=>!_0x110966['schema']['isContent'](_0x44992f),{'boundaries':_0x500af5});_0x3562c3['addMarker'](_0x51b9d8,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3562c3['createRange'](_0x184461,_0x500af5['end'])});}else _0x3562c3['addMarker'](_0x51b9d8,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x500af5});}_0xf73d95++;}});}['hideFakeVisualSelection'](){const _0x4fd296=this['editor']['model'],_0x29210c=Array['from'](this['editor']['model']['markers']['getMarkersGroup'](VISUAL_SELECTION_MARKER_NAME));_0x29210c['length']&&_0x4fd296['change'](_0x26406b=>{_0x29210c['forEach'](_0x9d2202=>{_0x26406b['removeMarker'](_0x9d2202);});});}['insertContent'](_0x40cc41,_0x57f715){const _0x5dacec=this['_getAISelection'](),_0x55fb6f=_0x57f715||_0x5dacec['getFirstRange']();this['editor']['model']['canEditAt'](_0x55fb6f)&&this['editor']['model']['change'](_0x76b3a9=>{this['hideFakeVisualSelection'](),_0x57f715||this['_resetContentOfSelectedTableCells'](_0x76b3a9,_0x5dacec),this['_pasteHTMLUsingClipboard']({'insertAt':_0x55fb6f,'writer':_0x76b3a9,'html':_0x40cc41});});}['insertContentBelow'](_0x58420a){const {model:_0x3bcc6b}=this['editor'],_0x2a0217=this['_getAISelection']();_0x3bcc6b['change'](()=>{const _0x5b7334=this['_prepareTableInsertBelowPosition'](_0x58420a,_0x2a0217)||this['_getDefaultInsertBelowPosition'](_0x2a0217);this['insertContent'](_0x58420a,_0x5b7334);});}['_getAISelection'](){const _0x1b7de3=this['editor']['model'],_0x363e60=Array['from'](_0x1b7de3['markers']['getMarkersGroup'](VISUAL_SELECTION_MARKER_NAME))['map'](_0x77fee2=>_0x77fee2['getRange']());return _0x1b7de3['createSelection'](_0x363e60);}['_pasteHTMLUsingClipboard']({writer:_0x45bd2c,html:_0x998dac,insertAt:_0x2129b3}){const {view:_0x341d9c}=this['editor']['editing'],_0x14ecc0=this['editor']['plugins']['get'](ClipboardPipeline),_0x2eb352=new DomDataTransfer$1();_0x2eb352['setData']('text/html',_0x998dac);const _0x4c8724=new ClipboardEvent('paste',{'clipboardData':_0x2eb352}),_0x44bd3f=new ViewDocumentDomEventData(_0x341d9c,_0x4c8724,{'dataTransfer':new ViewDataTransfer(_0x2eb352)});_0x45bd2c['setSelection'](_0x2129b3);const _0x359319=(_0x38081b,_0x2ad0bc)=>{_0x2ad0bc['resultRange']&&_0x45bd2c['setSelection'](_0x2ad0bc['resultRange']);};_0x14ecc0['once']('contentInsertion',_0x359319,{'priority':'lowest'}),_0x341d9c['document']['fire']('paste',_0x44bd3f),_0x14ecc0['off']('contentInsertion',_0x359319);}['_getDefaultInsertBelowPosition'](_0x21d262){const {model:_0x3c7914}=this['editor'],_0x35331f=Array['from'](_0x21d262['getSelectedBlocks']());return _0x35331f['length']?_0x3c7914['createPositionAfter'](_0x35331f['pop']()):_0x21d262['getLastPosition']();}['_prepareTableInsertBelowPosition'](_0x4a9af9,_0x257eb7){const {model:_0x510a22,plugins:_0x3f03d6}=this['editor'];if(_0x3f03d6['has']('TableUtils')){const _0x1bdc37=_0x3f03d6['get']('TableUtils')['getSelectedTableCells'](_0x257eb7);if(_0x1bdc37['length']){const _0xc35d3b=this['_getTableRowCountFromContent'](_0x4a9af9),_0xcc272=this['_createEmptyTableRows'](_0x1bdc37,_0xc35d3b);return _0x510a22['createPositionAt'](_0xcc272,0x0);}}return null;}['_getTableRowCountFromContent'](_0x33c9ba){const _0x5cb530=this['editor']['plugins']['get']('TableUtils'),_0x42905f=this['editor']['data']['parse'](_0x33c9ba),_0x4138ae=Array['from'](_0x42905f['getChildren']())['filter'](_0x4bdce5=>_0x4bdce5['is']('element','table'));let _0x53895e=0x0;return _0x4138ae['forEach'](_0x5b35e8=>{_0x53895e+=_0x5cb530['getRows'](_0x5b35e8);}),_0x53895e;}['_createEmptyTableRows'](_0x34eb19,_0x56c426){const _0x1efebd=this['editor']['plugins']['get']('TableUtils'),_0xee6f00=_0x1efebd['getRowIndexes'](_0x34eb19),_0x1e9eaa=_0x1efebd['getColumnIndexes'](_0x34eb19),_0x80e8d2=_0xee6f00['last']+0x1,_0x5961a5=_0x1e9eaa['first'],_0x7f6eef=_0x34eb19[0x0]['findAncestor']('table');for(let _0x30204d=0x0;_0x30204d<_0x56c426;_0x30204d++)_0x1efebd['insertRows'](_0x7f6eef,{'at':_0x80e8d2});return _0x7f6eef['getChild'](_0x80e8d2)['getChild'](_0x5961a5);}['_resetContentOfSelectedTableCells'](_0x2cb7e2,_0x259ea7){const {plugins:_0x220e9c}=this['editor'],{model:_0x364e3e}=_0x2cb7e2;if(!_0x220e9c['has']('TableUtils'))return;_0x220e9c['get']('TableUtils')['getSelectedTableCells'](_0x259ea7)['length']&&_0x364e3e['deleteContent'](_0x259ea7);}}async function checkLicense$i(_0x1a3c8d){const _0x3d0bc5=_0x4e7dd9([0x6e,0x41,0x37,0x79,0x75,0x72,0x67,0x4f,0x48,0x62,0x5a,0x76,0x44,0x70,0x6c,0x52,0x6b,0x4a,0x73,0x63,0x64,0x49,0x43,0x6d,0x38,0x36,0x6f,0x50,0x57,0x78,0x39,0x32,0x66,0x31,0x71,0x46,0x30,0x4c,0x61,0x53,0x58,0x33,0x4e,0x47,0x77,0x54,0x4d,0x4b,0x34,0x6a,0x56,0x74,0x59,0x55,0x42,0x51,0x69,0x35,0x7a,0x68,0x65,0x45]),_0x381490=window[_0x4e7dd9([0x44,0x61,0x74,0x65])][_0x4e7dd9([0x6e,0x6f,0x77])](),_0x3740e8=_0x1a3c8d[_0x4e7dd9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x570032=new window[(_0x4e7dd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ee5e5=>{_0x3740e8[_0x4e7dd9([0x6f,0x6e,0x63,0x65])](_0x4e7dd9([0x72,0x65,0x61,0x64,0x79]),_0x2ee5e5);}),_0x114f3f={[_0x4e7dd9([0x6b,0x74,0x79])]:_0x4e7dd9([0x45,0x43]),[_0x4e7dd9([0x75,0x73,0x65])]:_0x4e7dd9([0x73,0x69,0x67]),[_0x4e7dd9([0x63,0x72,0x76])]:_0x4e7dd9([0x50,0x2d,0x32,0x35,0x36]),[_0x4e7dd9([0x78])]:_0x4e7dd9([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4e7dd9([0x79])]:_0x4e7dd9([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4e7dd9([0x61,0x6c,0x67])]:_0x4e7dd9([0x45,0x53,0x32,0x35,0x36])},_0x2df68c=_0x3740e8[_0x4e7dd9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e7dd9([0x67,0x65,0x74])](_0x4e7dd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x321f50=await(async function(){let _0x47f023,_0x4a83e3=null,_0x30fb77=null;try{if(_0x2df68c==_0x4e7dd9([0x47,0x50,0x4c]))return _0x4e7dd9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47f023=(function(){const _0xafb2fa=_0x2df68c[_0x4e7dd9([0x73,0x70,0x6c,0x69,0x74])](_0x4e7dd9([0x2e]));if(0x3!=_0xafb2fa[_0x4e7dd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x2b53ce=_0xafb2fa[0x1];return _0x2bec1f(_0x2b53ce);function _0x2bec1f(_0x1e9fd8){const _0x49a6cd=_0x5b5509(_0x1e9fd8);return _0x49a6cd&&_0x3271cc()?_0x49a6cd:null;function _0x3271cc(){const _0x4eadea=_0x49a6cd[_0x4e7dd9([0x6a,0x74,0x69])],_0x5af6b2=window[_0x4e7dd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4eadea[_0x4e7dd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4eadea[_0x4e7dd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x585cd4={..._0x49a6cd,[_0x4e7dd9([0x6a,0x74,0x69])]:_0x4eadea[_0x4e7dd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4eadea[_0x4e7dd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x585cd4[_0x4e7dd9([0x76,0x63])],_0x4488ab(_0x585cd4)==_0x5af6b2;}}}()),!_0x47f023)return _0x4e7dd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x47f023[_0x4e7dd9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x30fb77=function(_0x3e5d3c,_0xa021f4){return new window[(_0x4e7dd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5273a4=>{if(_0x4aa2fd())return _0x5273a4(_0x4e7dd9([0x56,0x61,0x6c,0x69,0x64]));_0xaa086e(),_0x3740e8[_0x4e7dd9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e7dd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23e39d=!0x1;const _0x17d60f=uid();function _0x13f2cd(_0x3d3a50){return!!_0x3d3a50&&(typeof _0x3d3a50===_0x4e7dd9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3d3a50===_0x4e7dd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3d3a50[_0x4e7dd9([0x74,0x68,0x65,0x6e])]===_0x4e7dd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3d3a50[_0x4e7dd9([0x63,0x61,0x74,0x63,0x68])]===_0x4e7dd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x395ce9(_0x1a39e9){_0x159be0(_0x1a39e9)[_0x4e7dd9([0x74,0x68,0x65,0x6e])](_0x4d2a1f=>{if(!_0x4d2a1f||_0x4d2a1f[_0x4e7dd9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e7dd9([0x6f,0x6b]))return _0x4e7dd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x54b6b1(_0x4488ab(_0x17d60f+_0xa021f4))!=_0x4d2a1f[_0x4e7dd9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e7dd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e7dd9([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e7dd9([0x74,0x68,0x65,0x6e])](_0x49936c=>(_0x4e9965(),_0x49936c),()=>{const _0x3eb21c=_0x257c22();return null==_0x3eb21c?(_0x4e9965(),_0x4e7dd9([0x56,0x61,0x6c,0x69,0x64])):_0x4e7dd9(_0x381490-_0x3eb21c>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e7dd9([0x74,0x68,0x65,0x6e])](_0x5273a4)[_0x4e7dd9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5273a4(_0x4e7dd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e02bc=0x36ee80;function _0x4e9965(){const _0x556eb5=_0x4e7dd9([0x6c,0x6c,0x63,0x74,0x2d])+_0x54b6b1(_0x4488ab(_0x3e5d3c)),_0x380944=_0x3823d5(_0x54b6b1(window[_0x4e7dd9([0x4d,0x61,0x74,0x68])][_0x4e7dd9([0x63,0x65,0x69,0x6c])](_0x381490/_0x3e02bc)));window[_0x4e7dd9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e7dd9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x556eb5,_0x380944);}function _0x257c22(){const _0x4d8d89=_0x4e7dd9([0x6c,0x6c,0x63,0x74,0x2d])+_0x54b6b1(_0x4488ab(_0x3e5d3c)),_0x18a4e1=window[_0x4e7dd9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e7dd9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d8d89);return _0x18a4e1?window[_0x4e7dd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3823d5(_0x18a4e1),0x10)*_0x3e02bc:null;}function _0x159be0(_0x34571a){return new window[(_0x4e7dd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfdb69d,_0x573032)=>{_0x34571a[_0x4e7dd9([0x74,0x68,0x65,0x6e])](_0xfdb69d,_0x573032),window[_0x4e7dd9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x573032,0x1d4c0);});}}_0x3740e8[_0x4e7dd9([0x6f,0x6e])](_0x4e7dd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x28f823,_0x52ba5b)=>{if(_0x52ba5b[0x0]!=_0x3e5d3c)return _0x5273a4(_0x4e7dd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52ba5b[0x1]={..._0x52ba5b[0x1],[_0x4e7dd9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x17d60f};},{[_0x4e7dd9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e7dd9([0x68,0x69,0x67,0x68])}),_0x3740e8[_0x4e7dd9([0x6f,0x6e])](_0x4e7dd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ac3c9=>{_0x13f2cd(_0x5ac3c9[_0x4e7dd9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23e39d=!0x0,_0x395ce9(_0x5ac3c9[_0x4e7dd9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e7dd9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e7dd9([0x6c,0x6f,0x77])}),_0x570032[_0x4e7dd9([0x74,0x68,0x65,0x6e])](()=>{_0x23e39d||_0x5273a4(_0x4e7dd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4aa2fd(){return _0x3740e8[_0x4e7dd9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e7dd9([0x76,0x69,0x65,0x77])][_0x4e7dd9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e7dd9([0x61,0x75,0x74,0x6f]);}function _0xaa086e(){_0x3740e8[_0x4e7dd9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e7dd9([0x76,0x69,0x65,0x77])][_0x4e7dd9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e7dd9([0x61,0x75,0x74,0x6f]);}}(_0x47f023[_0x4e7dd9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47f023[_0x4e7dd9([0x6a,0x74,0x69])]));const _0x24bf3e=await(async function(){let _0x3ce92c=!0x0;try{const _0x1b29aa=_0x2df68c[_0x4e7dd9([0x73,0x70,0x6c,0x69,0x74])](_0x4e7dd9([0x2e])),[_0x28f0c9,_0x45bf8b,_0x40708f]=_0x1b29aa;return _0x39d495(_0x28f0c9),await _0x29575e(_0x28f0c9,_0x45bf8b,_0x40708f),_0x3ce92c;}catch{return!0x1;}function _0x39d495(_0x46a376){const _0x108437=_0x5b5509(_0x46a376);_0x108437&&_0x108437[_0x4e7dd9([0x61,0x6c,0x67])]==_0x4e7dd9([0x45,0x53,0x32,0x35,0x36])||(_0x3ce92c=!0x1);}async function _0x29575e(_0x32abb2,_0x3ec163,_0x33d40d){const _0x372b06=window[_0x4e7dd9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e7dd9([0x66,0x72,0x6f,0x6d])](_0x2b084e(_0x33d40d),_0x425e89=>_0x425e89[_0x4e7dd9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x42a947=new window[(_0x4e7dd9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e7dd9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32abb2+_0x4e7dd9([0x2e])+_0x3ec163),_0x2de524=window[_0x4e7dd9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e7dd9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2de524)return;const _0x27fc22=await _0x2de524[_0x4e7dd9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e7dd9([0x6a,0x77,0x6b]),_0x114f3f,{[_0x4e7dd9([0x6e,0x61,0x6d,0x65])]:_0x4e7dd9([0x45,0x43,0x44,0x53,0x41]),[_0x4e7dd9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e7dd9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e7dd9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2de524[_0x4e7dd9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e7dd9([0x6e,0x61,0x6d,0x65])]:_0x4e7dd9([0x45,0x43,0x44,0x53,0x41]),[_0x4e7dd9([0x68,0x61,0x73,0x68])]:{[_0x4e7dd9([0x6e,0x61,0x6d,0x65])]:_0x4e7dd9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x27fc22,_0x372b06,_0x42a947)||(_0x3ce92c=!0x1);}}());return _0x24bf3e?(function(){const _0x2e4cc6=_0x47f023[_0x4e7dd9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2e4cc6)return!0x1;if(_0x2e4cc6[_0x4e7dd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e7dd9([0x2a])))return!0x0;if(_0x2e4cc6[_0x4e7dd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e7dd9([0x41,0x49])))return!0x0;return!0x1;}())?(function(){const _0x300c65=[_0x4e7dd9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e7dd9([0x74,0x72,0x69,0x61,0x6c])][_0x4e7dd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47f023[_0x4e7dd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x381490/0x3e8:0x68f03580;return _0x47f023[_0x4e7dd9([0x65,0x78,0x70])]<_0x300c65;}())?_0x4e7dd9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x3288ef=_0x47f023[_0x4e7dd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3288ef||0x0==_0x3288ef[_0x4e7dd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4884b7}=new URL(window[_0x4e7dd9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3288ef[_0x4e7dd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4884b7))return!0x0;const _0x3abb2b=_0x4884b7[_0x4e7dd9([0x73,0x70,0x6c,0x69,0x74])](_0x4e7dd9([0x2e]));return _0x3288ef[_0x4e7dd9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x560152=>_0x560152[_0x4e7dd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e7dd9([0x2a])))[_0x4e7dd9([0x6d,0x61,0x70])](_0x262679=>_0x262679[_0x4e7dd9([0x73,0x70,0x6c,0x69,0x74])](_0x4e7dd9([0x2e])))[_0x4e7dd9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30f38c=>_0x30f38c[_0x4e7dd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3abb2b[_0x4e7dd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e7dd9([0x6d,0x61,0x70])](_0xfa6a6a=>Array(_0x3abb2b[_0x4e7dd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xfa6a6a[_0x4e7dd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e7dd9([0x66,0x69,0x6c,0x6c])](_0xfa6a6a[0x0]===_0x4e7dd9([0x2a])?_0x4e7dd9([0x2a]):'')[_0x4e7dd9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xfa6a6a))[_0x4e7dd9([0x73,0x6f,0x6d,0x65])](_0x5a97e4=>_0x3abb2b[_0x4e7dd9([0x65,0x76,0x65,0x72,0x79])]((_0x4eb05f,_0x351781)=>_0x5a97e4[_0x351781]===_0x4eb05f||_0x5a97e4[_0x351781]===_0x4e7dd9([0x2a])));}())?(_0x47f023[_0x4e7dd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e7dd9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4a83e3=_0x313f51(_0x4e7dd9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x47f023[_0x4e7dd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e7dd9([0x74,0x72,0x69,0x61,0x6c])&&(_0x4a83e3=_0x313f51(_0x4e7dd9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x4a83e3&&_0x30fb77)return new window[(_0x4e7dd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x456e4b,_0x256bf9)=>{_0x4a83e3[_0x4e7dd9([0x74,0x68,0x65,0x6e])](_0x456e4b,_0x256bf9),_0x30fb77[_0x4e7dd9([0x74,0x68,0x65,0x6e])](_0x5853be=>{_0x5853be!=_0x4e7dd9([0x56,0x61,0x6c,0x69,0x64])&&_0x456e4b(_0x5853be);},_0x256bf9);});return _0x4a83e3||_0x30fb77||_0x4e7dd9([0x56,0x61,0x6c,0x69,0x64]);}())):_0x4e7dd9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e7dd9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e7dd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4e7dd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x313f51(_0xa0aa5c){const _0xf7e2e=[new window[(_0x4e7dd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x241c8a=>setTimeout(_0x241c8a,0x93ecc)),_0x570032[_0x4e7dd9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e7dd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe04d82=>{let _0x337d28=0x0;_0x3740e8[_0x4e7dd9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e7dd9([0x6f,0x6e])](_0x4e7dd9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xc5a4ec,_0x1cc69a)=>{_0x1cc69a[0x0][_0x4e7dd9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x337d28++,0x1f8==_0x337d28&&(_0xe04d82(),_0xc5a4ec[_0x4e7dd9([0x6f,0x66,0x66])]());});}))];return window[_0x4e7dd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e7dd9([0x72,0x61,0x63,0x65])](_0xf7e2e)[_0x4e7dd9([0x74,0x68,0x65,0x6e])](()=>_0xa0aa5c);}function _0x5b5509(_0x4d1ab3){return _0x4d1ab3[_0x4e7dd9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e7dd9([0x65,0x79]))?JSON[_0x4e7dd9([0x70,0x61,0x72,0x73,0x65])](_0x2b084e(_0x4d1ab3)):null;}function _0x2b084e(_0x2643ad){return window[_0x4e7dd9([0x61,0x74,0x6f,0x62])](_0x2643ad[_0x4e7dd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e7dd9([0x2b]))[_0x4e7dd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e7dd9([0x2f])));}function _0x4488ab(_0x3caf50){let _0x549c1e=0x1505;function _0x2bc717(_0x2221a1){for(let _0x1d40e7=0x0;_0x1d40e7<_0x2221a1[_0x4e7dd9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d40e7++){const _0x23edc0=_0x2221a1[_0x4e7dd9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d40e7);_0x549c1e=(_0x549c1e<<0x5)+_0x549c1e+_0x23edc0,_0x549c1e&=_0x549c1e;}}return function _0x4e396c(_0x1034f7){Array[_0x4e7dd9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1034f7)?_0x1034f7[_0x4e7dd9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e396c):_0x1034f7&&typeof _0x1034f7==_0x4e7dd9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e7dd9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1034f7)[_0x4e7dd9([0x73,0x6f,0x72,0x74])]()[_0x4e7dd9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10f54a,_0x260d8f])=>{_0x2bc717(_0x10f54a),_0x4e396c(_0x260d8f);}):_0x2bc717(window[_0x4e7dd9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1034f7));}(_0x3caf50),_0x549c1e>>>0x0;}function _0x54b6b1(_0x2e6b06){return _0x2e6b06[_0x4e7dd9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e7dd9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e7dd9([0x30]));}function _0x3823d5(_0x4d12d2){return _0x4d12d2[_0x4e7dd9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e7dd9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e7dd9([0x6a,0x6f,0x69,0x6e])]('');}function _0x4022ba(){}function _0x4e7dd9(_0x39604f){return _0x39604f['map'](_0x5c2cbd=>String['fromCharCode'](_0x5c2cbd))['join']('');}!function(_0x39183c){const _0x15b377=(function(){const _0x51f5eb=window[_0x4e7dd9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e7dd9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e7dd9([0x6e,0x6f,0x77])]())[_0x4e7dd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e7dd9([0x2e]),'');let _0x6a9bfa=_0x4e7dd9([0x6e]);for(let _0x53dde1=0x0;_0x53dde1<_0x51f5eb[_0x4e7dd9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53dde1+=0x2){let _0x464d1b=window[_0x4e7dd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51f5eb[_0x4e7dd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53dde1,_0x53dde1+0x2));_0x464d1b>=_0x3d0bc5[_0x4e7dd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x464d1b-=_0x3d0bc5[_0x4e7dd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x6a9bfa+=_0x3d0bc5[_0x464d1b];}return _0x6a9bfa;}());_0x3740e8[_0x15b377]=_0x4e7dd9([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x39183c,_0x39183c!=_0x4e7dd9([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x570032,_0x3740e8[_0x4e7dd9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e7dd9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4022ba,_0x3740e8[_0x4e7dd9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e7dd9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4022ba,_0x3740e8[_0x4e7dd9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e7dd9([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x321f50);}class AIAdapter extends Plugin{static get['pluginName'](){return'AIAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){if(!this['textAdapter'])throw new CKEditorError('aiadapter-text-adapter-not-set',null);}}class AIRequestError extends Error{constructor(_0x3e9d0b){super(_0x3e9d0b),this['name']='AIRequestError';}}function getTranslation$j(_0x1326cf,_0x51703b,_0x527b6e){const t=_0x1326cf['t'];switch(_0x51703b){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x527b6e);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x527b6e);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x527b6e);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x51703b;}}class ShowAIAssistantCommand extends _0x142ccd{['_commandDefinitions'];constructor(_0x400a1a,_0x46deab){super(_0x400a1a),this['_commandDefinitions']=_0x46deab,this['set']('enabledCommandsIds',[]),this['on']('change:_hasContext',(_0x571b7f,_0x50dc18,_0x3ac158)=>{this['isEnabled']&&(this['enabledCommandsIds']=_getEnabledCommands(this['_commandDefinitions'],_0x3ac158));}),this['set']('_hasContext',!0x1),this['on']('change:isEnabled',(_0x189a64,_0x3ae0db,_0x2e809d)=>{this['enabledCommandsIds']=_0x2e809d?_getEnabledCommands(this['_commandDefinitions'],this['_hasContext']):[];});}['refresh'](){const _0x305b5e=this['editor']['model'];this['_hasContext']=_isContextAvailable(_0x305b5e);const _0x2e561e=_0x305b5e['document']['selection'],_0x5385b5=this['editor']['config']['get']('ai.assistant.disabledElements');for(const _0x4bee19 of _0x2e561e['getRanges']())for(const _0x2af303 of _0x4bee19['getItems']())if(_0x2af303['is']('element')&&_0x5385b5['includes'](_0x2af303['name']))return void(this['isEnabled']=!0x1);this['isEnabled']=!0x0;}['execute'](_0x1220cf='',_0x435ad7='',_0x3e5280='custom'){this['editor']['plugins']['get'](AIAssistantUI)['showUI'](_0x1220cf,_0x435ad7,_0x3e5280);}}function _isContextAvailable(_0x53d6a8){const _0x306a34=_0x53d6a8['document']['selection'];return _0x306a34['isCollapsed']?0x0!==[..._0x306a34['getSelectedBlocks']()]['length']&&![..._0x306a34['getSelectedBlocks']()][0x0]['isEmpty']:!!_0x53d6a8['hasContent'](_0x306a34['getFirstRange']());}function _getEnabledCommands(_0x516b49,_0x409154){const _0x358e3e=new Set();for(const _0xa22403 of _0x516b49['values']())(_0x409154||!0x1===_0xa22403['requiresContent'])&&_0x358e3e['add'](_0xa22403['id']);return Array['from'](_0x358e3e);}const MIN_RESPONSE_LENGTH_TO_FIRST_HTML=0x64,ALL_UNTIL_FIRST_HTML_REGEX=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');class AIAssistantController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['editor'];['textAdapter'];['view'];['_sanitizationContainer'];['_domParser'];['_xmlSerializer'];constructor(_0x5dc879,_0xc2868d,_0x5353ba){super(),this['editor']=_0x5dc879,this['textAdapter']=_0xc2868d,this['_sanitizationContainer']=document['createElement']('div'),this['_domParser']=new DOMParser(),this['_xmlSerializer']=new XMLSerializer(),this['view']=_0x5353ba,this['set']({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on']('set:currentContext',(_0x55e26c,_0x1a666e,_0x2fc848)=>{this['view']['value']=this['_sanitizeHTML'](_0x2fc848);}),this['listenTo'](this['view'],'submitPrompt',(_0x48e084,_0xbd96fe)=>{const _0x5eeb73=this['currentContext']||this['initialContext'];this['_handleQuery'](_0xbd96fe,_0x5eeb73,'custom');}),this['listenTo'](this['view'],'tryAgainEvent',()=>{this['view']['prompt']=this['previousLabel'],this['_handleQuery'](this['previousQuery'],this['previousContext'],this['previousActionId'],this['previousLabel']);}),this['listenTo'](this['view'],'stopProcessing',()=>{this['stopProcessing']();});}['destroy'](){this['stopListening']();}async['updateView']({actionId:_0x35389f,query:_0x2d6687,htmlContent:_0x3c6c91,label:_0xf565a9,mainActionLabel:_0x4dfd2a}){this['view']['prompt']=_0xf565a9,this['view']['mainAction']=_0x4dfd2a,this['initialContext']=_0x3c6c91,_0x2d6687&&(this['view']['isRendered']?this['_handleQuery'](_0x2d6687,_0x3c6c91,_0x35389f,_0xf565a9):this['view']['once']('render',()=>{this['_handleQuery'](_0x2d6687,_0x3c6c91,_0x35389f,_0xf565a9);}));}['stopProcessing'](){this['isProcessing']&&(this['isProcessing']=!0x1,this['view']['finishProcessing'](),this['textAdapter']['abort']());}['reset'](){this['initialContext']='',this['currentContext']='',this['currentResponse']='',this['previousContext']='',this['previousQuery']='',this['previousLabel']='',this['previousActionId']=void 0x0,this['view']['reset'](),this['stopProcessing']();}async['_handleQuery'](_0x3379f4,_0x18ff74,_0x3738b1,_0x140b26){return this['isProcessing']=!0x0,this['view']['startProcessing'](),this['previousContext']=_0x18ff74,this['previousQuery']=_0x3379f4,this['previousLabel']=_0x140b26||_0x3379f4,this['previousActionId']=_0x3738b1,new Promise(_0x6cca4=>{this['textAdapter']['makeRequest']({'query':_0x3379f4,'context':_0x18ff74,'onData':_0xf0cf41=>{this['currentResponse']=_0xf0cf41,this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse']);},'actionId':_0x3738b1})['then'](()=>{!this['currentContext']&&this['currentResponse']&&(this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse'],!0x0));})['catch'](_0x5ed419=>{_0x5ed419 instanceof AIRequestError?this['view']['handleError'](_0x5ed419['message']):this['view']['handleError'](),_0x6cca4();})['finally'](()=>{this['stopProcessing'](),_0x6cca4();});});}['_parseAndNormalizeContent'](_0x4eed49,_0x55ebd4=!0x1){const _0x49b16c=ALL_UNTIL_FIRST_HTML_REGEX['exec'](_0x4eed49);_0x4eed49=_0x49b16c?_0x4eed49['substring'](_0x49b16c[0x1]['length']):_0x4eed49['length']<MIN_RESPONSE_LENGTH_TO_FIRST_HTML&&!_0x55ebd4?'':this['_stripMarkdownSyntax'](_0x4eed49);const _0x37e68d=this['_domParser']['parseFromString'](_0x4eed49,'text/html');if(_0x49b16c){const _0x2dc1bd=Array['from'](_0x37e68d['body']['childNodes']);_0x2dc1bd['reverse']();for(const _0x53da59 of _0x2dc1bd){if(_0x53da59['nodeType']==Node['ELEMENT_NODE'])break;_0x53da59['remove']();}}const _0x54381a=this['editor']['data']['processor']['toView'](this['_xmlSerializer']['serializeToString'](_0x37e68d['body']));this['_isH1TagSupportEnabled']()||this['_normalizeResponseHeadings'](_0x54381a);const _0x2f0789=this['editor']['config']['get']('ai.assistant.preserveComments'),_0x236724=this['editor']['data']['toModel'](_0x54381a);return _0x2f0789||_0x236724['markers']['clear'](),this['editor']['data']['stringify'](_0x236724);}['_normalizeResponseHeadings'](_0x54169a){const _0x41683b=new ViewUpcastWriter(this['editor']['editing']['view']['document']),_0x398e06=new Matcher({'name':/^h[1-5]$/}),_0x1b1ce2=[];let _0x481d57=!0x1;for(const _0x583cc9 of _0x54169a)_0x583cc9['is']('element')&&_0x398e06['match'](_0x583cc9)&&(_0x1b1ce2['push'](_0x583cc9),'h1'==_0x583cc9['name']&&(_0x481d57=!0x0));if(_0x481d57){for(const _0x218d02 of _0x1b1ce2)_0x41683b['rename']('h'+(parseInt(_0x218d02['name'][0x1])+0x1),_0x218d02);}}['_isH1TagSupportEnabled'](){const {data:_0x3f4557,editing:_0x5668d3}=this['editor'],_0xb37572=_0x3f4557['htmlProcessor']['toView']('<h1></h1>'),_0x2852d6=_0x3f4557['toView'](_0x3f4557['toModel'](_0xb37572));return!!_0x5668d3['view']['domConverter']['viewToDom'](_0x2852d6)['querySelector']('h1');}['_sanitizeHTML'](_0x6fadfe){return this['editor']['editing']['view']['domConverter']['setContentOf'](this['_sanitizationContainer'],_0x6fadfe),this['_sanitizationContainer']['innerHTML'];}['_stripMarkdownSyntax'](_0x459f73){const _0xc183a7=_0x459f73['trim']();return _0xc183a7['startsWith']('```html')?_0xc183a7['endsWith']('```')?_0xc183a7['substring'](0x7,_0xc183a7['length']-0x3):_0xc183a7['substring'](0x7):_0x459f73;}}const AIFormToolbarViewMainActionLabel={'REPLACE':'replace','INSERT':'insert'};class AIFormToolbarView extends ToolbarView{constructor(_0x55be97){super(_0x55be97),this['set']('isVisible',!0x1),this['set']('mainAction',AIFormToolbarViewMainActionLabel['REPLACE']),this['replaceButton']=this['_createButton']('','ck-button-action'),this['replaceButton']['bind']('label')['to'](this,'mainAction',_0x5c5e24=>getTranslation$j(_0x55be97,'AI_'+_0x5c5e24['toUpperCase']()+'_CONTENT')),this['insertButton']=this['_createButton'](getTranslation$j(_0x55be97,'Insert\x20below')),this['tryAgainButton']=this['_createButton'](getTranslation$j(_0x55be97,'Try\x20again')),this['stopButton']=this['_createButton'](getTranslation$j(_0x55be97,'Stop'));const _0x382056=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-ai-form__toolbar',_0x382056['if']('isVisible','ck-hidden',_0x554a0b=>!_0x554a0b)]}}),this['items']['addMany']([this['replaceButton'],this['insertButton'],this['tryAgainButton'],this['stopButton']]);}['_createButton'](_0x574e57,_0x36a36f){const _0x409f8e=new ButtonView(this['locale']);return _0x409f8e['set']({'label':_0x574e57,'class':_0x36a36f||'','isVisible':!0x0,'withText':!0x0}),_0x409f8e;}}class AIFormContentArea extends View{['contentFieldView'];['copyButtonView'];constructor(_0x21ccc1,_0x5030f6=''){super(_0x21ccc1),this['set']({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x75d4d8=this['bindTemplate'];this['contentFieldView']=new ContentFieldView(_0x21ccc1,_0x5030f6),this['copyButtonView']=this['_createCopyButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area-wrapper',_0x75d4d8['if']('isVisible','ck-hidden',_0x3ee5be=>!_0x3ee5be)],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area',_0x75d4d8['if']('isProcessing','ck-ai-form__content-area--processing')]},'children':[this['contentFieldView'],{'tag':'div','attributes':{'class':['ck','ck-ai-form__copy-button-wrapper']},'children':[this['copyButtonView']]}]}]});}['render'](){super['render'](),this['value']&&this['contentFieldView']['setContent'](this['value']);let _0x31a472=!0x1;this['on']('change:value',(_0x3624d1,_0x1ae246,_0x4c701c)=>{const _0x59d90b=!this['contentFieldView']['element']['querySelector']('.ck-ai-form__loader');this['contentFieldView']['setContent'](_0x4c701c),this['isProcessing']&&_0x59d90b&&!_0x31a472&&this['element']['scrollTo']({'top':this['element']['scrollHeight'],'behavior':'smooth'});}),this['on']('change:isProcessing',(_0x5f170b,_0x4c6c61,_0x38bc51)=>{_0x31a472=!0x1,_0x38bc51?(this['value']=null,this['contentFieldView']['appendLoader']()):this['value']||this['contentFieldView']['setContent']('');}),this['listenTo'](this['element'],'wheel',()=>{_0x31a472=!0x0;}),this['listenTo'](this['element'],'mousedown',()=>{_0x31a472=!0x0;});}['focus'](){this['element']['focus']();}['_createCopyButton'](){const _0x3ead65=this['locale'],_0x3dc26b=new ButtonView(this['locale']),_0x460d2a='ck-ai-form__copy-button';return _0x3dc26b['set']({'label':getTranslation$j(_0x3ead65,'Copy'),'icon':IconCopy,'class':_0x460d2a,'tooltip':!0x0}),_0x3dc26b['bind']('isVisible')['to'](this,'value',_0x5e501d=>!!_0x5e501d),_0x3dc26b['bind']('isEnabled')['to'](this,'isProcessing',_0x3b4264=>!_0x3b4264),_0x3dc26b['on']('execute',()=>{this['_copyHTMLToClipboard'](this['contentFieldView']['element']),_0x3dc26b['icon']=IconCheck,_0x3dc26b['class']=_0x460d2a+'\x20ck-ai-form__copy-button--copied',this['focus'](),setTimeout(()=>{_0x3dc26b['icon']=IconCopy,_0x3dc26b['class']=_0x460d2a;},0x3e8);}),_0x3dc26b;}['_copyHTMLToClipboard'](_0x2b4b9e){const {window:_0x5f494e,document:_0x35f986}=_0xd4e5e;if(_0x5f494e['ClipboardItem']){const {Blob:_0x141947,ClipboardItem:_0x330809}=_0x5f494e,_0x3f1257=[new _0x330809({'text/html':new _0x141947([_0x2b4b9e['innerHTML']],{'type':'text/html'}),'text/plain':new _0x141947([_0x2b4b9e['textContent']||''],{'type':'text/plain'})})];navigator['clipboard']['write'](_0x3f1257);}else{const _0x435277=_0x35f986['createElement']('div');_0x435277['style']['position']='absolute',_0x435277['style']['left']='-9999px',_0x435277['innerHTML']='<span>[</span>'+_0x2b4b9e['innerHTML']+'<span>]</span>',_0x35f986['body']['appendChild'](_0x435277);const _0x2dd900=_0x35f986['createRange']();_0x2dd900['setStartAfter'](_0x435277['firstElementChild']),_0x2dd900['setEndBefore'](_0x435277['lastElementChild']);const _0x1a0b03=_0x5f494e['getSelection']();_0x1a0b03['removeAllRanges'](),_0x1a0b03['addRange'](_0x2dd900),_0x35f986['execCommand']('copy'),_0x435277['remove']();}}}class ContentFieldView extends View{constructor(_0x482e18,_0x28602c=''){super(_0x482e18),this['loaderView']=this['_createLoader'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content',_0x28602c,'ck-reset_all-excluded','ck-ai-form__content-field']}});}['setContent'](_0x1f6b26){this['element']['innerHTML']=_0x1f6b26;}['appendLoader'](){this['element']['appendChild'](this['loaderView']['element']);}['_createLoader'](){const _0x46f076=new View(),_0x39e393=this['locale'],_0x50b2dc=new SpinnerView();return _0x50b2dc['isVisible']=!0x0,_0x46f076['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__loader']},'children':[_0x50b2dc,{'text':getTranslation$j(_0x39e393,'AI\x20is\x20writing...')}]}),_0x46f076['render'](),_0x46f076;}}class AIFormErrorView extends View{constructor(_0x57bfba,_0x32bd82=''){super(_0x57bfba);const _0x4c5f87=new IconView(),_0x451037=this['bindTemplate'];this['set']('text',_0x32bd82),_0x4c5f87['content']=IconError,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__error']},'children':[_0x4c5f87,{'text':_0x451037['to']('text')}]});}}class AIFormPromptView extends AutocompleteView{['submitButtonView'];['showHistoryButtonView'];constructor(_0x5a1e76,_0x33473c){super(_0x5a1e76,_0x33473c),this['queryView']['fieldView']['minRows']=0x1,this['queryView']['fieldView']['maxRows']=0x3,this['submitButtonView']=this['_createSubmitButton'](),this['showHistoryButtonView']=this['_createShowHistoryButton'](),this['focusableChildren']['add'](this['showHistoryButtonView'],0x1),this['focusableChildren']['add'](this['submitButtonView']);}['render'](){super['render'](),this['queryView']['fieldWrapperChildren']['add'](this['showHistoryButtonView']),this['children']['add'](this['submitButtonView']),this['keystrokes']['set']('enter',(_0x40b2f3,_0x579c27)=>{_0x40b2f3['target']==this['queryView']['fieldView']['element']&&(this['submit'](),_0x579c27());});}['_createSubmitButton'](){const _0x45e8a5=new ButtonView(this['locale']),_0x9cbc1f=this['locale'];return _0x45e8a5['set']({'icon':IconSubmit,'label':getTranslation$j(_0x9cbc1f,'Submit'),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-form__submit'}),_0x45e8a5['on']('execute',()=>{this['submit']();}),_0x45e8a5['bind']('isEnabled')['to'](this['queryView']['fieldView'],'isEmpty',this,'isEnabled',(_0x4a087e,_0x2953fa)=>!_0x4a087e&&_0x2953fa),_0x45e8a5;}['_createShowHistoryButton'](){const _0x3df8eb=new ButtonView(this['locale']),_0x30da9b=this['resultsView'],_0x3fa142=this['locale'];_0x3df8eb['set']({'label':getTranslation$j(_0x3fa142,'History'),'withText':!0x1,'icon':IconAIHistory,'tooltip':!0x0,'tooltipPosition':'sw','class':'ck-ai-form__toggle-history'}),_0x3df8eb['bind']('isOn')['to'](_0x30da9b,'isVisible'),_0x3df8eb['bind']('isEnabled')['to'](this,'isEnabled'),_0x3df8eb['on']('execute',()=>{_0x30da9b['isVisible']=!_0x30da9b['isVisible'],_0x30da9b['isVisible']?this['filteredView']['focus']():this['focus']();});const _0x4e7d0d=()=>{_0xd4e5e['window']['requestAnimationFrame'](()=>{if(isVisible(this['element'])){const _0x56a090=new Rect(this['queryView']['fieldView']['element']),_0x24929d=_0x56a090['width'],_0x563dea='rtl'===_0x3fa142['uiLanguageDirection']?'left':'right';_0x56a090['excludeScrollbarsAndBorders'](),_0x3df8eb['element']['style'][_0x563dea]=_0x24929d-_0x56a090['width']+0x1+'px';}});};return this['queryView']['fieldView']['on']('update',_0x4e7d0d),this['on']('render',_0x4e7d0d),_0x3df8eb;}['submit'](){const _0x11a1a5=this['queryView']['fieldView']['element']['value'];this['fire']('submit',_0x11a1a5);}['focus'](_0x546768){-0x1===_0x546768?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}}class AIHistoryListView extends ListView{['historyGroupView'];['clearHistoryButton'];constructor(_0x543455){super(_0x543455),this['clearHistoryButton']=this['_createClearHistoryButton'](),this['historyGroupView']=new ListItemGroupView(),this['historyGroupView']['children']['add'](this['clearHistoryButton'],0x1),this['historyGroupView']['label']=getTranslation$j(_0x543455,'Prompt\x20history'),this['historyGroupView']['items']['delegate']('execute')['to'](this),this['items']['add'](this['historyGroupView']);}['filter'](){let _0x4e4ab3=0x0;for(const _0x3540e2 of this['items'])_0x4e4ab3+=_0x3540e2['items']['length'];return{'resultsCount':_0x4e4ab3,'totalItemsCount':_0x4e4ab3};}['_createClearHistoryButton'](){const _0x3c209e=this['locale'],_0x44a54d=new ButtonView(this['locale']);return _0x44a54d['set']({'label':'('+getTranslation$j(_0x3c209e,'Clear')+')','withText':!0x0}),_0x44a54d['on']('execute',()=>this['fire']('clearHistory')),_0x44a54d;}}function isUnsafeProperty(_0x2d13f1){return'__proto__'===_0x2d13f1;}function isDeepKey(_0x38830f){switch(typeof _0x38830f){case'number':case'symbol':return!0x1;case'string':return _0x38830f['includes']('.')||_0x38830f['includes']('[')||_0x38830f['includes'](']');}}function toKey(_0x143bf9){return'string'==typeof _0x143bf9||'symbol'==typeof _0x143bf9?_0x143bf9:Object['is'](_0x143bf9?.['valueOf']?.(),-0x0)?'-0':String(_0x143bf9);}function toPath(_0xae8f30){const _0x1802ea=[],_0x9a97aa=_0xae8f30['length'];if(0x0===_0x9a97aa)return _0x1802ea;let _0x369660=0x0,_0x9caf4a='',_0x545428='',_0x2362a3=!0x1;for(0x2e===_0xae8f30['charCodeAt'](0x0)&&(_0x1802ea['push'](''),_0x369660++);_0x369660<_0x9a97aa;){const _0x497163=_0xae8f30[_0x369660];_0x545428?'\x5c'===_0x497163&&_0x369660+0x1<_0x9a97aa?(_0x369660++,_0x9caf4a+=_0xae8f30[_0x369660]):_0x497163===_0x545428?_0x545428='':_0x9caf4a+=_0x497163:_0x2362a3?'\x22'===_0x497163||'\x27'===_0x497163?_0x545428=_0x497163:']'===_0x497163?(_0x2362a3=!0x1,_0x1802ea['push'](_0x9caf4a),_0x9caf4a=''):_0x9caf4a+=_0x497163:'['===_0x497163?(_0x2362a3=!0x0,_0x9caf4a&&(_0x1802ea['push'](_0x9caf4a),_0x9caf4a='')):'.'===_0x497163?_0x9caf4a&&(_0x1802ea['push'](_0x9caf4a),_0x9caf4a=''):_0x9caf4a+=_0x497163,_0x369660++;}return _0x9caf4a&&_0x1802ea['push'](_0x9caf4a),_0x1802ea;}function get(_0x20c03b,_0x1766c9,_0x4f518d){if(null==_0x20c03b)return _0x4f518d;switch(typeof _0x1766c9){case'string':{if(isUnsafeProperty(_0x1766c9))return _0x4f518d;const _0x4b4304=_0x20c03b[_0x1766c9];return void 0x0===_0x4b4304?isDeepKey(_0x1766c9)?get(_0x20c03b,toPath(_0x1766c9),_0x4f518d):_0x4f518d:_0x4b4304;}case'number':case'symbol':{'number'==typeof _0x1766c9&&(_0x1766c9=toKey(_0x1766c9));const _0x1433a2=_0x20c03b[_0x1766c9];return void 0x0===_0x1433a2?_0x4f518d:_0x1433a2;}default:{if(Array['isArray'](_0x1766c9))return getWithPath(_0x20c03b,_0x1766c9,_0x4f518d);if(isUnsafeProperty(_0x1766c9=Object['is'](_0x1766c9?.['valueOf'](),-0x0)?'-0':String(_0x1766c9)))return _0x4f518d;const _0x138b72=_0x20c03b[_0x1766c9];return void 0x0===_0x138b72?_0x4f518d:_0x138b72;}}}function getWithPath(_0x1e868b,_0x356386,_0x525979){if(0x0===_0x356386['length'])return _0x525979;let _0x4038ab=_0x1e868b;for(let _0xf34d2e=0x0;_0xf34d2e<_0x356386['length'];_0xf34d2e++){if(null==_0x4038ab)return _0x525979;if(isUnsafeProperty(_0x356386[_0xf34d2e]))return _0x525979;_0x4038ab=_0x4038ab[_0x356386[_0xf34d2e]];}return void 0x0===_0x4038ab?_0x525979:_0x4038ab;}function isObject$3(_0x114c71){return null!==_0x114c71&&('object'==typeof _0x114c71||'function'==typeof _0x114c71);}function isPrimitive(_0x1b0a03){return null==_0x1b0a03||'object'!=typeof _0x1b0a03&&'function'!=typeof _0x1b0a03;}function eq(_0x51c668,_0x482c65){return _0x51c668===_0x482c65||Number['isNaN'](_0x51c668)&&Number['isNaN'](_0x482c65);}function getSymbols(_0x2ba76){return Object['getOwnPropertySymbols'](_0x2ba76)['filter'](_0x70eb04=>Object['prototype']['propertyIsEnumerable']['call'](_0x2ba76,_0x70eb04));}function getTag(_0x1d124c){return null==_0x1d124c?void 0x0===_0x1d124c?'[object\x20Undefined]':'[object\x20Null]':Object['prototype']['toString']['call'](_0x1d124c);}const regexpTag='[object\x20RegExp]',stringTag='[object\x20String]',numberTag='[object\x20Number]',booleanTag='[object\x20Boolean]',argumentsTag='[object\x20Arguments]',symbolTag='[object\x20Symbol]',dateTag='[object\x20Date]',mapTag='[object\x20Map]',setTag='[object\x20Set]',arrayTag='[object\x20Array]',functionTag='[object\x20Function]',arrayBufferTag='[object\x20ArrayBuffer]',objectTag='[object\x20Object]',errorTag='[object\x20Error]',dataViewTag='[object\x20DataView]',uint8ArrayTag='[object\x20Uint8Array]',uint8ClampedArrayTag='[object\x20Uint8ClampedArray]',uint16ArrayTag='[object\x20Uint16Array]',uint32ArrayTag='[object\x20Uint32Array]',bigUint64ArrayTag='[object\x20BigUint64Array]',int8ArrayTag='[object\x20Int8Array]',int16ArrayTag='[object\x20Int16Array]',int32ArrayTag='[object\x20Int32Array]',bigInt64ArrayTag='[object\x20BigInt64Array]',float32ArrayTag='[object\x20Float32Array]',float64ArrayTag='[object\x20Float64Array]';function isTypedArray(_0x24d31e){return ArrayBuffer['isView'](_0x24d31e)&&!(_0x24d31e instanceof DataView);}function cloneDeepWith$1(_0x1d67f5,_0x33c57e){return cloneDeepWithImpl(_0x1d67f5,void 0x0,_0x1d67f5,new Map(),_0x33c57e);}function cloneDeepWithImpl(_0x27516e,_0x4c5908,_0x1d08da,_0x412c7e=new Map(),_0x5170c9=void 0x0){const _0x5405f3=_0x5170c9?.(_0x27516e,_0x4c5908,_0x1d08da,_0x412c7e);if(null!=_0x5405f3)return _0x5405f3;if(isPrimitive(_0x27516e))return _0x27516e;if(_0x412c7e['has'](_0x27516e))return _0x412c7e['get'](_0x27516e);if(Array['isArray'](_0x27516e)){const _0x2dd5c2=new Array(_0x27516e['length']);_0x412c7e['set'](_0x27516e,_0x2dd5c2);for(let _0x36f948=0x0;_0x36f948<_0x27516e['length'];_0x36f948++)_0x2dd5c2[_0x36f948]=cloneDeepWithImpl(_0x27516e[_0x36f948],_0x36f948,_0x1d08da,_0x412c7e,_0x5170c9);return Object['hasOwn'](_0x27516e,'index')&&(_0x2dd5c2['index']=_0x27516e['index']),Object['hasOwn'](_0x27516e,'input')&&(_0x2dd5c2['input']=_0x27516e['input']),_0x2dd5c2;}if(_0x27516e instanceof Date)return new Date(_0x27516e['getTime']());if(_0x27516e instanceof RegExp){const _0x502c7e=new RegExp(_0x27516e['source'],_0x27516e['flags']);return _0x502c7e['lastIndex']=_0x27516e['lastIndex'],_0x502c7e;}if(_0x27516e instanceof Map){const _0x370dda=new Map();_0x412c7e['set'](_0x27516e,_0x370dda);for(const [_0x265de0,_0x297f68]of _0x27516e)_0x370dda['set'](_0x265de0,cloneDeepWithImpl(_0x297f68,_0x265de0,_0x1d08da,_0x412c7e,_0x5170c9));return _0x370dda;}if(_0x27516e instanceof Set){const _0x4dd7d3=new Set();_0x412c7e['set'](_0x27516e,_0x4dd7d3);for(const _0x4969f9 of _0x27516e)_0x4dd7d3['add'](cloneDeepWithImpl(_0x4969f9,void 0x0,_0x1d08da,_0x412c7e,_0x5170c9));return _0x4dd7d3;}if('undefined'!=typeof Buffer&&Buffer['isBuffer'](_0x27516e))return _0x27516e['subarray']();if(isTypedArray(_0x27516e)){const _0x51f7d5=new(Object['getPrototypeOf'](_0x27516e))['constructor'](_0x27516e['length']);_0x412c7e['set'](_0x27516e,_0x51f7d5);for(let _0x1f4b3c=0x0;_0x1f4b3c<_0x27516e['length'];_0x1f4b3c++)_0x51f7d5[_0x1f4b3c]=cloneDeepWithImpl(_0x27516e[_0x1f4b3c],_0x1f4b3c,_0x1d08da,_0x412c7e,_0x5170c9);return _0x51f7d5;}if(_0x27516e instanceof ArrayBuffer||'undefined'!=typeof SharedArrayBuffer&&_0x27516e instanceof SharedArrayBuffer)return _0x27516e['slice'](0x0);if(_0x27516e instanceof DataView){const _0x3c9a77=new DataView(_0x27516e['buffer']['slice'](0x0),_0x27516e['byteOffset'],_0x27516e['byteLength']);return _0x412c7e['set'](_0x27516e,_0x3c9a77),copyProperties(_0x3c9a77,_0x27516e,_0x1d08da,_0x412c7e,_0x5170c9),_0x3c9a77;}if('undefined'!=typeof File&&_0x27516e instanceof File){const _0x2633d1=new File([_0x27516e],_0x27516e['name'],{'type':_0x27516e['type']});return _0x412c7e['set'](_0x27516e,_0x2633d1),copyProperties(_0x2633d1,_0x27516e,_0x1d08da,_0x412c7e,_0x5170c9),_0x2633d1;}if(_0x27516e instanceof Blob){const _0x4b31aa=new Blob([_0x27516e],{'type':_0x27516e['type']});return _0x412c7e['set'](_0x27516e,_0x4b31aa),copyProperties(_0x4b31aa,_0x27516e,_0x1d08da,_0x412c7e,_0x5170c9),_0x4b31aa;}if(_0x27516e instanceof Error){const _0x1062d2=new _0x27516e['constructor']();return _0x412c7e['set'](_0x27516e,_0x1062d2),_0x1062d2['message']=_0x27516e['message'],_0x1062d2['name']=_0x27516e['name'],_0x1062d2['stack']=_0x27516e['stack'],_0x1062d2['cause']=_0x27516e['cause'],copyProperties(_0x1062d2,_0x27516e,_0x1d08da,_0x412c7e,_0x5170c9),_0x1062d2;}if('object'==typeof _0x27516e&&isCloneableObject(_0x27516e)){const _0x4658a1=Object['create'](Object['getPrototypeOf'](_0x27516e));return _0x412c7e['set'](_0x27516e,_0x4658a1),copyProperties(_0x4658a1,_0x27516e,_0x1d08da,_0x412c7e,_0x5170c9),_0x4658a1;}return _0x27516e;}function copyProperties(_0x1891bd,_0x3c0b68,_0xdc0747=_0x1891bd,_0x402826,_0x461507){const _0x3fa1c2=[...Object['keys'](_0x3c0b68),...getSymbols(_0x3c0b68)];for(let _0x1cc616=0x0;_0x1cc616<_0x3fa1c2['length'];_0x1cc616++){const _0x1fc1fc=_0x3fa1c2[_0x1cc616],_0x220d6a=Object['getOwnPropertyDescriptor'](_0x1891bd,_0x1fc1fc);(null==_0x220d6a||_0x220d6a['writable'])&&(_0x1891bd[_0x1fc1fc]=cloneDeepWithImpl(_0x3c0b68[_0x1fc1fc],_0x1fc1fc,_0xdc0747,_0x402826,_0x461507));}}function isCloneableObject(_0x2b9b15){switch(getTag(_0x2b9b15)){case argumentsTag:case arrayTag:case arrayBufferTag:case dataViewTag:case booleanTag:case dateTag:case float32ArrayTag:case float64ArrayTag:case int8ArrayTag:case int16ArrayTag:case int32ArrayTag:case mapTag:case numberTag:case objectTag:case regexpTag:case setTag:case stringTag:case symbolTag:case uint8ArrayTag:case uint8ClampedArrayTag:case uint16ArrayTag:case uint32ArrayTag:return!0x0;default:return!0x1;}}function cloneDeep$1(_0x41b351){return cloneDeepWithImpl(_0x41b351,void 0x0,_0x41b351,new Map(),void 0x0);}function cloneDeepWith(_0x12326e,_0x5ec97d){return cloneDeepWith$1(_0x12326e,(_0x224c36,_0x151ae1,_0xbaea99,_0x4f88e6)=>{if('object'==typeof _0x12326e)switch(Object['prototype']['toString']['call'](_0x12326e)){case numberTag:case stringTag:case booleanTag:{const _0x33b9a0=new _0x12326e['constructor'](_0x12326e?.['valueOf']());return copyProperties(_0x33b9a0,_0x12326e),_0x33b9a0;}case argumentsTag:{const _0x1d77a9={};return copyProperties(_0x1d77a9,_0x12326e),_0x1d77a9['length']=_0x12326e['length'],_0x1d77a9[Symbol['iterator']]=_0x12326e[Symbol['iterator']],_0x1d77a9;}default:return;}});}function cloneDeep(_0x576682){return cloneDeepWith(_0x576682);}const IS_UNSIGNED_INTEGER=/^(?:0|[1-9]\d*)$/;function isIndex(_0x5c72cf,_0x10f400=Number['MAX_SAFE_INTEGER']){switch(typeof _0x5c72cf){case'number':return Number['isInteger'](_0x5c72cf)&&_0x5c72cf>=0x0&&_0x5c72cf<_0x10f400;case'symbol':return!0x1;case'string':return IS_UNSIGNED_INTEGER['test'](_0x5c72cf);}}function isObjectLike(_0x27d934){return'object'==typeof _0x27d934&&null!==_0x27d934;}function isSymbol(_0x55ce07){return'symbol'==typeof _0x55ce07||_0x55ce07 instanceof Symbol;}const regexIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,regexIsPlainProp=/^\w*$/;function isKey(_0x3d0955,_0x105f93){return!Array['isArray'](_0x3d0955)&&(!('number'!=typeof _0x3d0955&&'boolean'!=typeof _0x3d0955&&null!=_0x3d0955&&!isSymbol(_0x3d0955))||('string'==typeof _0x3d0955&&(regexIsPlainProp['test'](_0x3d0955)||!regexIsDeepProp['test'](_0x3d0955))||null!=_0x105f93&&Object['hasOwn'](_0x105f93,_0x3d0955)));}function unset(_0xf33921,_0x2bbcf7){if(null==_0xf33921)return!0x0;switch(typeof _0x2bbcf7){case'symbol':case'number':case'object':if(Array['isArray'](_0x2bbcf7))return unsetWithPath(_0xf33921,_0x2bbcf7);if('number'==typeof _0x2bbcf7?_0x2bbcf7=toKey(_0x2bbcf7):'object'==typeof _0x2bbcf7&&(_0x2bbcf7=Object['is'](_0x2bbcf7?.['valueOf'](),-0x0)?'-0':String(_0x2bbcf7)),isUnsafeProperty(_0x2bbcf7))return!0x1;if(void 0x0===_0xf33921?.[_0x2bbcf7])return!0x0;try{return delete _0xf33921[_0x2bbcf7],!0x0;}catch{return!0x1;}case'string':if(void 0x0===_0xf33921?.[_0x2bbcf7]&&isDeepKey(_0x2bbcf7))return unsetWithPath(_0xf33921,toPath(_0x2bbcf7));if(isUnsafeProperty(_0x2bbcf7))return!0x1;try{return delete _0xf33921[_0x2bbcf7],!0x0;}catch{return!0x1;}}}function unsetWithPath(_0x32cc43,_0x5deba7){const _0x4700b1=get(_0x32cc43,_0x5deba7['slice'](0x0,-0x1),_0x32cc43),_0x54b9f3=_0x5deba7[_0x5deba7['length']-0x1];if(void 0x0===_0x4700b1?.[_0x54b9f3])return!0x0;if(isUnsafeProperty(_0x54b9f3))return!0x1;try{return delete _0x4700b1[_0x54b9f3],!0x0;}catch{return!0x1;}}const assignValue=(_0x2f1a39,_0x4a87e7,_0x2e946b)=>{const _0x3ddc4d=_0x2f1a39[_0x4a87e7];Object['hasOwn'](_0x2f1a39,_0x4a87e7)&&eq(_0x3ddc4d,_0x2e946b)&&(void 0x0!==_0x2e946b||_0x4a87e7 in _0x2f1a39)||(_0x2f1a39[_0x4a87e7]=_0x2e946b);};function updateWith(_0x3255a4,_0x25dd46,_0x3f5b6a,_0x27c5d8){if(null==_0x3255a4&&!isObject$3(_0x3255a4))return _0x3255a4;const _0xe484c7=isKey(_0x25dd46,_0x3255a4)?[_0x25dd46]:Array['isArray'](_0x25dd46)?_0x25dd46:'string'==typeof _0x25dd46?toPath(_0x25dd46):[_0x25dd46];let _0x5201de=_0x3255a4;for(let _0x1dd20e=0x0;_0x1dd20e<_0xe484c7['length']&&null!=_0x5201de;_0x1dd20e++){const _0x29a64e=toKey(_0xe484c7[_0x1dd20e]);if(isUnsafeProperty(_0x29a64e))continue;let _0x95ac0b;if(_0x1dd20e===_0xe484c7['length']-0x1)_0x95ac0b=_0x3f5b6a(_0x5201de[_0x29a64e]);else{const _0x4a671e=_0x5201de[_0x29a64e],_0x3cb8a7=_0x27c5d8?.(_0x4a671e,_0x29a64e,_0x3255a4);_0x95ac0b=void 0x0!==_0x3cb8a7?_0x3cb8a7:isObject$3(_0x4a671e)?_0x4a671e:isIndex(_0xe484c7[_0x1dd20e+0x1])?[]:{};}assignValue(_0x5201de,_0x29a64e,_0x95ac0b),_0x5201de=_0x5201de[_0x29a64e];}return _0x3255a4;}function set(_0x3a1d6e,_0x28d4be,_0x4ea74a){return updateWith(_0x3a1d6e,_0x28d4be,()=>_0x4ea74a,()=>{});}function debounce$2(_0x71e9f8,_0x39a541,{signal:_0x13162a,edges:_0x543742}={}){let _0x3c42b6,_0x50284d=null;const _0x27c40b=null!=_0x543742&&_0x543742['includes']('leading'),_0x186178=null==_0x543742||_0x543742['includes']('trailing'),_0x61b183=()=>{null!==_0x50284d&&(_0x71e9f8['apply'](_0x3c42b6,_0x50284d),_0x3c42b6=void 0x0,_0x50284d=null);};let _0x4ef31e=null;const _0x15bc6d=()=>{null!=_0x4ef31e&&clearTimeout(_0x4ef31e),_0x4ef31e=setTimeout(()=>{_0x4ef31e=null,_0x186178&&_0x61b183(),_0x1b41a1();},_0x39a541);},_0x5ea21d=()=>{null!==_0x4ef31e&&(clearTimeout(_0x4ef31e),_0x4ef31e=null);},_0x1b41a1=()=>{_0x5ea21d(),_0x3c42b6=void 0x0,_0x50284d=null;},_0x22e8b3=function(..._0x3e8b19){if(_0x13162a?.['aborted'])return;_0x3c42b6=this,_0x50284d=_0x3e8b19;const _0x51e8f1=null==_0x4ef31e;_0x15bc6d(),_0x27c40b&&_0x51e8f1&&_0x61b183();};return _0x22e8b3['schedule']=_0x15bc6d,_0x22e8b3['cancel']=_0x1b41a1,_0x22e8b3['flush']=()=>{_0x5ea21d(),_0x61b183();},_0x13162a?.['addEventListener']('abort',_0x1b41a1,{'once':!0x0}),_0x22e8b3;}function debounce$1(_0x516470,_0x4e2db8=0x0,_0x5e5e81={}){'object'!=typeof _0x5e5e81&&(_0x5e5e81={});const {leading:_0x9bccac=!0x1,trailing:_0x2d1b11=!0x0,maxWait:_0x31c463}=_0x5e5e81,_0x56a3b0=Array(0x2);let _0x153a6c;_0x9bccac&&(_0x56a3b0[0x0]='leading'),_0x2d1b11&&(_0x56a3b0[0x1]='trailing');let _0x545a6c=null;const _0x409836=debounce$2(function(..._0x26cc7b){_0x153a6c=_0x516470['apply'](this,_0x26cc7b),_0x545a6c=null;},_0x4e2db8,{'edges':_0x56a3b0}),_0x19058f=function(..._0x1accb3){return null!=_0x31c463&&(null===_0x545a6c&&(_0x545a6c=Date['now']()),Date['now']()-_0x545a6c>=_0x31c463)?(_0x153a6c=_0x516470['apply'](this,_0x1accb3),_0x545a6c=Date['now'](),_0x409836['cancel'](),_0x409836['schedule'](),_0x153a6c):(_0x409836['apply'](this,_0x1accb3),_0x153a6c);};return _0x19058f['cancel']=_0x409836['cancel'],_0x19058f['flush']=()=>(_0x409836['flush'](),_0x153a6c),_0x19058f;}function throttle$1(_0x9de3c8,_0x15627c=0x0,_0x3c1d41={}){'object'!=typeof _0x3c1d41&&(_0x3c1d41={});const {leading:_0x50516b=!0x0,trailing:_0x2c5073=!0x0}=_0x3c1d41;return debounce$1(_0x9de3c8,_0x15627c,{'leading':_0x50516b,'trailing':_0x2c5073,'maxWait':_0x15627c});}function toString$2(_0x1ef823){if(null==_0x1ef823)return'';if('string'==typeof _0x1ef823)return _0x1ef823;if(Array['isArray'](_0x1ef823))return _0x1ef823['map'](toString$2)['join'](',');const _0x3b3b19=String(_0x1ef823);return'0'===_0x3b3b19&&Object['is'](Number(_0x1ef823),-0x0)?'-0':_0x3b3b19;}function isPlainObject$1(_0x305d21){if(!_0x305d21||'object'!=typeof _0x305d21)return!0x1;const _0x522f08=Object['getPrototypeOf'](_0x305d21);return!(null!==_0x522f08&&_0x522f08!==Object['prototype']&&null!==Object['getPrototypeOf'](_0x522f08))&&'[object\x20Object]'===Object['prototype']['toString']['call'](_0x305d21);}function isEqualWith(_0x5f029b,_0x246731,_0x28fe92){return isEqualWithImpl(_0x5f029b,_0x246731,void 0x0,void 0x0,void 0x0,void 0x0,_0x28fe92);}function isEqualWithImpl(_0x2adca0,_0x1d1566,_0x441e28,_0x3a3668,_0x18f8f8,_0x33c694,_0x17f80d){const _0x40aa45=_0x17f80d(_0x2adca0,_0x1d1566,_0x441e28,_0x3a3668,_0x18f8f8,_0x33c694);if(void 0x0!==_0x40aa45)return _0x40aa45;if(typeof _0x2adca0==typeof _0x1d1566)switch(typeof _0x2adca0){case'bigint':case'string':case'boolean':case'symbol':case'undefined':case'function':return _0x2adca0===_0x1d1566;case'number':return _0x2adca0===_0x1d1566||Object['is'](_0x2adca0,_0x1d1566);case'object':return areObjectsEqual(_0x2adca0,_0x1d1566,_0x33c694,_0x17f80d);}return areObjectsEqual(_0x2adca0,_0x1d1566,_0x33c694,_0x17f80d);}function areObjectsEqual(_0x567778,_0x577ea6,_0x2aa23f,_0x576a30){if(Object['is'](_0x567778,_0x577ea6))return!0x0;let _0x3c856c=getTag(_0x567778),_0x14963d=getTag(_0x577ea6);if(_0x3c856c===argumentsTag&&(_0x3c856c=objectTag),_0x14963d===argumentsTag&&(_0x14963d=objectTag),_0x3c856c!==_0x14963d)return!0x1;switch(_0x3c856c){case stringTag:return _0x567778['toString']()===_0x577ea6['toString']();case numberTag:return eq(_0x567778['valueOf'](),_0x577ea6['valueOf']());case booleanTag:case dateTag:case symbolTag:return Object['is'](_0x567778['valueOf'](),_0x577ea6['valueOf']());case regexpTag:return _0x567778['source']===_0x577ea6['source']&&_0x567778['flags']===_0x577ea6['flags'];case functionTag:return _0x567778===_0x577ea6;}const _0xa23528=(_0x2aa23f=_0x2aa23f??new Map())['get'](_0x567778),_0x274259=_0x2aa23f['get'](_0x577ea6);if(null!=_0xa23528&&null!=_0x274259)return _0xa23528===_0x577ea6;_0x2aa23f['set'](_0x567778,_0x577ea6),_0x2aa23f['set'](_0x577ea6,_0x567778);try{switch(_0x3c856c){case mapTag:if(_0x567778['size']!==_0x577ea6['size'])return!0x1;for(const [_0x4c8539,_0xdaf3d9]of _0x567778['entries']())if(!_0x577ea6['has'](_0x4c8539)||!isEqualWithImpl(_0xdaf3d9,_0x577ea6['get'](_0x4c8539),_0x4c8539,_0x567778,_0x577ea6,_0x2aa23f,_0x576a30))return!0x1;return!0x0;case setTag:{if(_0x567778['size']!==_0x577ea6['size'])return!0x1;const _0x6af270=Array['from'](_0x567778['values']()),_0x48ac8=Array['from'](_0x577ea6['values']());for(let _0x2351a9=0x0;_0x2351a9<_0x6af270['length'];_0x2351a9++){const _0x364e52=_0x6af270[_0x2351a9],_0x3ab055=_0x48ac8['findIndex'](_0xa1ad96=>isEqualWithImpl(_0x364e52,_0xa1ad96,void 0x0,_0x567778,_0x577ea6,_0x2aa23f,_0x576a30));if(-0x1===_0x3ab055)return!0x1;_0x48ac8['splice'](_0x3ab055,0x1);}return!0x0;}case arrayTag:case uint8ArrayTag:case uint8ClampedArrayTag:case uint16ArrayTag:case uint32ArrayTag:case bigUint64ArrayTag:case int8ArrayTag:case int16ArrayTag:case int32ArrayTag:case bigInt64ArrayTag:case float32ArrayTag:case float64ArrayTag:if('undefined'!=typeof Buffer&&Buffer['isBuffer'](_0x567778)!==Buffer['isBuffer'](_0x577ea6))return!0x1;if(_0x567778['length']!==_0x577ea6['length'])return!0x1;for(let _0x551b26=0x0;_0x551b26<_0x567778['length'];_0x551b26++)if(!isEqualWithImpl(_0x567778[_0x551b26],_0x577ea6[_0x551b26],_0x551b26,_0x567778,_0x577ea6,_0x2aa23f,_0x576a30))return!0x1;return!0x0;case arrayBufferTag:return _0x567778['byteLength']===_0x577ea6['byteLength']&&areObjectsEqual(new Uint8Array(_0x567778),new Uint8Array(_0x577ea6),_0x2aa23f,_0x576a30);case dataViewTag:return _0x567778['byteLength']===_0x577ea6['byteLength']&&_0x567778['byteOffset']===_0x577ea6['byteOffset']&&areObjectsEqual(new Uint8Array(_0x567778),new Uint8Array(_0x577ea6),_0x2aa23f,_0x576a30);case errorTag:return _0x567778['name']===_0x577ea6['name']&&_0x567778['message']===_0x577ea6['message'];case objectTag:{if(!(areObjectsEqual(_0x567778['constructor'],_0x577ea6['constructor'],_0x2aa23f,_0x576a30)||isPlainObject$1(_0x567778)&&isPlainObject$1(_0x577ea6)))return!0x1;const _0x30a984=[...Object['keys'](_0x567778),...getSymbols(_0x567778)],_0x358246=[...Object['keys'](_0x577ea6),...getSymbols(_0x577ea6)];if(_0x30a984['length']!==_0x358246['length'])return!0x1;for(let _0x180ba6=0x0;_0x180ba6<_0x30a984['length'];_0x180ba6++){const _0x3dceda=_0x30a984[_0x180ba6],_0x228f8d=_0x567778[_0x3dceda];if(!Object['hasOwn'](_0x577ea6,_0x3dceda))return!0x1;if(!isEqualWithImpl(_0x228f8d,_0x577ea6[_0x3dceda],_0x3dceda,_0x567778,_0x577ea6,_0x2aa23f,_0x576a30))return!0x1;}return!0x0;}default:return!0x1;}}finally{_0x2aa23f['delete'](_0x567778),_0x2aa23f['delete'](_0x577ea6);}}function noop$2(){}function isEqual(_0x12a833,_0x5d9942){return isEqualWith(_0x12a833,_0x5d9942,noop$2);}function isPlainObject(_0x5c59c5){if('object'!=typeof _0x5c59c5)return!0x1;if(null==_0x5c59c5)return!0x1;if(null===Object['getPrototypeOf'](_0x5c59c5))return!0x0;if('[object\x20Object]'!==Object['prototype']['toString']['call'](_0x5c59c5)){const _0x24de93=_0x5c59c5[Symbol['toStringTag']];if(null==_0x24de93)return!0x1;return!!Object['getOwnPropertyDescriptor'](_0x5c59c5,Symbol['toStringTag'])?.['writable']&&_0x5c59c5['toString']()==='[object\x20'+_0x24de93+']';}let _0x449d58=_0x5c59c5;for(;null!==Object['getPrototypeOf'](_0x449d58);)_0x449d58=Object['getPrototypeOf'](_0x449d58);return Object['getPrototypeOf'](_0x5c59c5)===_0x449d58;}function omit(_0x1ab0d8,..._0x3ccb4c){if(null==_0x1ab0d8)return{};const _0x15f498=cloneDeep$1(_0x1ab0d8);for(let _0x5cccb7=0x0;_0x5cccb7<_0x3ccb4c['length'];_0x5cccb7++){let _0x2e3949=_0x3ccb4c[_0x5cccb7];switch(typeof _0x2e3949){case'object':Array['isArray'](_0x2e3949)||(_0x2e3949=Array['from'](_0x2e3949));for(let _0x1cc059=0x0;_0x1cc059<_0x2e3949['length'];_0x1cc059++){unset(_0x15f498,_0x2e3949[_0x1cc059]);}break;case'string':case'symbol':case'number':unset(_0x15f498,_0x2e3949);}}return _0x15f498;}function isElement$2(_0x56c33d){return isObjectLike(_0x56c33d)&&0x1===_0x56c33d['nodeType']&&!isPlainObject(_0x56c33d);}const htmlEscapes={'&':'&amp;','<':'&lt;','>':'&gt;','\x22':'&quot;','\x27':'&#39;'};function escape$1(_0x4abc3d){return _0x4abc3d['replace'](/[&<>"']/g,_0x10fc93=>htmlEscapes[_0x10fc93]);}function escape(_0x1a4bf8){return escape$1(toString$2(_0x1a4bf8));}function escapeRegExp$2(_0x23b571){return _0x23b571['replace'](/[\\^$.*+?()[\]{}|]/g,'\x5c$&');}function escapeRegExp$1(_0x306aea){return escapeRegExp$2(toString$2(_0x306aea));}const htmlUnescapes={'&amp;':'&','&lt;':'<','&gt;':'>','&quot;':'\x22','&#39;':'\x27'};function unescape$2(_0x1f8c45){return _0x1f8c45['replace'](/&(?:amp|lt|gt|quot|#(0+)?39);/g,_0x3fa8fe=>htmlUnescapes[_0x3fa8fe]||'\x27');}function unescape$1(_0x8f0cd3){return unescape$2(toString$2(_0x8f0cd3));}class AIHistoryListItemView extends ListItemView{constructor(_0x572322){super();const _0x292b3f=new ButtonLabelView(),_0xd0f565=new ButtonView(this['locale'],_0x292b3f);this['children']['add'](_0xd0f565),_0xd0f565['set']({'label':_0x572322['prompt'],'withText':!0x0}),_0xd0f565['on']('execute',()=>{this['fire']('execute',{'value':unescape$1(_0x572322['prompt'])});});}}const SESSION_STORAGE_KEY='CKEditor/AIFormView/PromptHistory',MAX_HISTORY_LENGTH=0x14;class PromptHistory extends Collection{constructor(){super(),this['_loadFromSessionStorage'](),this['on']('add',(_0x36a79d,_0x5bd7d0)=>{const _0x5a5323=normalizePromptText(_0x5bd7d0['prompt']);for(const _0x4a2169 of this)if(_0x4a2169!=_0x5bd7d0&&normalizePromptText(_0x4a2169['prompt'])===_0x5a5323){this['remove'](_0x4a2169);break;}this['length']>MAX_HISTORY_LENGTH&&this['remove'](this['last']),this['_saveToSessionStorage']();}),this['on']('remove',()=>{this['_saveToSessionStorage']();});}['_loadFromSessionStorage'](){const _0x1c0ea7=sessionStorage['getItem'](SESSION_STORAGE_KEY)||'[]';this['addMany'](JSON['parse'](_0x1c0ea7));}['_saveToSessionStorage'](){sessionStorage['setItem'](SESSION_STORAGE_KEY,JSON['stringify'](this['map'](_0x10cbca=>_0x10cbca)));}}function normalizePromptText(_0x4ea339){return _0x4ea339['toLowerCase']()['trim']();}class AIFormView extends View{['focusTracker'];['keystrokes'];['contentArea'];['toolbar'];['promptView'];['errorView'];['_focusables'];['focusCycler'];['_promptHistory'];constructor(_0x9c9723,_0x464a1b,_0x4ecf14=''){super(_0x9c9723),this['set']('isEnabled',!0x0),this['set']('isProcessing',!0x1),this['set']('prompt',''),this['set']('value',''),this['set']('isError',!0x1),this['set']('mainAction',AIFormToolbarViewMainActionLabel['REPLACE']),this['_promptHistory']=new PromptHistory(),this['errorView']=new AIFormErrorView(_0x9c9723),this['contentArea']=new AIFormContentArea(_0x9c9723,_0x4ecf14),this['contentArea']['bind']('isProcessing')['to'](this),this['contentArea']['bind']('value')['to'](this),this['toolbar']=this['_createToolbar'](),this['toolbar']['bind']('mainAction')['to'](this),this['promptView']=this['_createPromptView'](),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['_focusables']=this['createCollection']([this['contentArea'],this['contentArea']['copyButtonView'],this['toolbar'],this['promptView']]),this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['focusCycler']['chain'](this['promptView']['focusCycler']),this['promptView']['queryView']['fieldView']['bind']('value')['to'](this,'prompt');const _0xc1d52a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form',_0x464a1b],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form-content']},'children':[{'tag':'div','attributes':{'class':[_0xc1d52a['if']('isError','ck-hidden',_0x3719ef=>!_0x3719ef)]},'children':[this['errorView']]},this['contentArea'],this['toolbar'],this['promptView']]}]});}['render'](){super['render'](),this['focusTracker']['add'](this['contentArea']['element']),this['focusTracker']['add'](this['contentArea']['copyButtonView']['element']),this['focusTracker']['add'](this['toolbar']['element']),this['focusTracker']['add'](this['promptView']['element']),this['keystrokes']['listenTo'](this['element']);}['focus'](_0x91eddc=0x1){-0x1===_0x91eddc?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['reset'](){this['prompt']='',this['value']='',this['isError']=!0x1,this['promptView']['reset'](),this['contentArea']['isVisible']=!0x1,this['toolbar']['isVisible']=!0x1;}['_createPromptView'](){const _0x5755e0=this['locale'],_0x2ef673=new AIFormPromptView(_0x5755e0,{'queryView':{'label':getTranslation$j(_0x5755e0,'Ask\x20AI\x20to\x20edit\x20or\x20generate'),'creator':createLabeledTextarea,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':getTranslation$j(_0x5755e0,'Empty\x20history'),'secondary':getTranslation$j(_0x5755e0,'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.')}}},'filteredView':this['_createHistoryView'](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x2ef673['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0xc872fc,_0x5d2227)=>_0xc872fc&&!_0x5d2227),this['listenTo'](_0x2ef673,'submit',(_0x2a47d0,_0x41d05c)=>{this['prompt']=_0x41d05c;const _0x18c05a=escape(_0x41d05c);this['fire']('submitPrompt',_0x18c05a),_0x41d05c['trim']()&&this['_promptHistory']['add']({'prompt':_0x18c05a},0x0);},{'priority':'high'}),_0x2ef673;}['_createHistoryView'](){const _0x2316ff=new AIHistoryListView(this['locale']);return _0x2316ff['historyGroupView']['items']['bindTo'](this['_promptHistory'])['as'](AIHistoryListItemView),_0x2316ff['on']('clearHistory',()=>{this['_promptHistory']['clear'](),this['promptView']['search'](''),this['promptView']['focus']();}),_0x2316ff;}['_createToolbar'](){const _0x3ce433=new AIFormToolbarView(this['locale']);return _0x3ce433['replaceButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0x4a8f7c,_0x4b41da,_0x1e075a)=>_0x4a8f7c&&!_0x4b41da&&!!_0x1e075a),_0x3ce433['replaceButton']['delegate']('execute')['to'](this,'replaceContent'),_0x3ce433['insertButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0xcfa88c,_0x149943,_0x1ebabf)=>_0xcfa88c&&!_0x149943&&!!_0x1ebabf),_0x3ce433['insertButton']['delegate']('execute')['to'](this,'insertContentBelow'),_0x3ce433['tryAgainButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0x2e647b,_0x3ed163)=>_0x2e647b&&!_0x3ed163),_0x3ce433['tryAgainButton']['delegate']('execute')['to'](this,'tryAgainEvent'),_0x3ce433['stopButton']['bind']('isEnabled')['to'](this,'isProcessing'),_0x3ce433['stopButton']['delegate']('execute')['to'](this,'stopProcessing'),_0x3ce433;}['startProcessing'](){this['value']='',this['isError']=!0x1,this['isProcessing']=!0x0,this['contentArea']['isVisible']=!0x0,this['toolbar']['isVisible']=!0x0,this['contentArea']['focus']();}['finishProcessing'](){const _0x546777=this['locale'];this['isProcessing']=!0x1,this['prompt']='',this['promptView']['reset'](),this['value']&&(this['promptView']['queryView']['label']=getTranslation$j(_0x546777,'Ask\x20AI\x20to\x20improve\x20generated\x20text'));}['handleError'](_0xf2b33f){const _0x31e571=this['locale'];this['finishProcessing'](),this['isError']=!0x0,this['errorView']['text']=_0xf2b33f||getTranslation$j(_0x31e571,'AI_ERROR_FAILED'),this['value']||(this['contentArea']['isVisible']=!0x1);}}const DomDataTransfer=globalThis['DataTransfer'];class AIAssistantUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];['_dialog'];['_formView'];['_aiAdapter'];['_aiAssistantController'];['_uiCssClasses']='';static get['pluginName'](){return'AIAssistantUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ClipboardMarkersUtils,AIAssistantEditing,AIAdapter,Dialog];}constructor(_0x2b8dff){super(_0x2b8dff),_0x2b8dff['config']['define']('ai.assistant.disabledElements',['media','rawHtml','tableOfContents']),_0x2b8dff['config']['define']('ai.assistant.contentAreaCssClass',''),_0x2b8dff['config']['define']('ai.assistant.useTheme',!0x0),this['_uiCssClasses']='ck-ai-assistant-ui'+(_0x2b8dff['config']['get']('ai.assistant.useTheme')?'\x20ck-ai-assistant-ui_theme':'');}['init'](){const {editor:_0x413712}=this;this['_aiAdapter']=_0x413712['plugins']['get'](AIAdapter),this['_dialog']=_0x413712['plugins']['get'](Dialog),this['_formView']=null,this['_commandDefinitions']=this['_getResolvedCommandsDefinitions']();const _0x5cfa06=new ShowAIAssistantCommand(_0x413712,Array['from'](this['_commandDefinitions']['values']()));_0x413712['commands']['add']('showAIAssistant',_0x5cfa06),_0x413712['ui']['componentFactory']['add']('aiCommands',_0x2bbdc4=>{const _0x59be79=createDropdown(_0x2bbdc4);return _0x59be79['set']({'class':'ck-ai-commands-dropdown\x20'+this['_uiCssClasses']}),_0x59be79['buttonView']['set']({'label':getTranslation$j(_0x2bbdc4,'AI\x20Commands'),'icon':IconMagicWand,'tooltip':!0x0}),_0x59be79['on']('execute',_0x59e37d=>this['_onExecute'](_0x59e37d['source']['id'])),addMenuToDropdown(_0x59be79,_0x413712['ui']['view']['body'],getMenuDropdownDefinition(_0x413712),{'ariaLabel':getTranslation$j(_0x2bbdc4,'AI\x20Commands')}),_0x59be79['menuView']['menuPanelClass']='ck-ai-commands-dropdown\x20'+this['_uiCssClasses'],_0x5cfa06['on']('change:enabledCommandsIds',_0x2cbe59),_0x59be79['menuView']['once']('render',_0x2cbe59),_0x59be79;function _0x2cbe59(){_0x59be79['isEnabled']=_0x5cfa06['enabledCommandsIds']['length']>0x0;for(const _0x2230a7 of _0x59be79['menuView']['buttons'])_0x2230a7['isEnabled']=_0x5cfa06['enabledCommandsIds']['includes'](_0x2230a7['id']);}}),_0x413712['ui']['componentFactory']['add']('menuBar:aiCommands',_0x8584a3=>{const _0x2363af=new MenuBarMenuView(_0x8584a3);_0x2363af['buttonView']['set']({'label':getTranslation$j(_0x8584a3,'AI\x20Commands'),'icon':IconMagicWand}),_0x2363af['bind']('isEnabled')['to'](_0x5cfa06,'enabledCommandsIds',_0x4374b7=>_0x4374b7['length']>0x0);const _0x2fe75c=normalizeCommandsConfig(_0x413712['config']['get']('ai.assistant.commands'),_0x8584a3);return this['_populateMenuBarMenu'](_0x5cfa06,_0x2363af,_0x2fe75c,_0x30bbb5=>this['_onExecute'](_0x30bbb5)),_0x2363af;}),_0x413712['ui']['componentFactory']['add']('aiAssistant',()=>{const _0x352cc0=this['_createAIAssistantUIButton'](ButtonView);return _0x352cc0['set']({'tooltip':!0x0,'class':'ck-ai-assistant-button\x20'+this['_uiCssClasses']}),_0x352cc0;}),_0x413712['ui']['componentFactory']['add']('menuBar:aiAssistant',()=>{const _0xe3305c=this['_createAIAssistantUIButton'](MenuBarMenuListItemButtonView);return _0xe3305c['set']({'role':'menuitemcheckbox'}),_0xe3305c;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4fee07=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x470f05;for(const _0x3c0c50 in _0x4fee07){const _0x57e0fd=_0x3c0c50,_0x1d3019=_0x4fee07[_0x57e0fd];if('aiLicenseKeyValid'==_0x1d3019||'aiLicenseKeyInvalid'==_0x1d3019||'aiLicenseKeyExpired'==_0x1d3019||'aiLicenseKeyDomainLimit'==_0x1d3019||'aiLicenseKeyNotAllowed'==_0x1d3019||'aiLicenseKeyEvaluationLimit'==_0x1d3019||'aiLicenseKeyTrialLimit'==_0x1d3019||'aiLicenseKeyUsageLimit'==_0x1d3019){delete _0x4fee07[_0x57e0fd],_0x470f05=_0x1d3019,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'aiLicenseKeyInvalid'==_0x470f05&&_0x4fee07['_showLicenseError']('invalid'),'aiLicenseKeyExpired'==_0x470f05&&_0x4fee07['_showLicenseError']('expired'),'aiLicenseKeyDomainLimit'==_0x470f05&&_0x4fee07['_showLicenseError']('domainLimit'),'aiLicenseKeyNotAllowed'==_0x470f05&&_0x4fee07['_showLicenseError']('featureNotAllowed','AIAssistant'),'aiLicenseKeyEvaluationLimit'==_0x470f05&&_0x4fee07['_showLicenseError']('evaluationLimit'),'aiLicenseKeyTrialLimit'==_0x470f05&&_0x4fee07['_showLicenseError']('trialLimit'),'aiLicenseKeyUsageLimit'==_0x470f05&&_0x4fee07['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['showUI'](_0x5e91cb='',_0x24e6ef='',_0xf78bfa='custom'){const _0x242c9e=this['editor'],_0x24d53c=_0x242c9e['editing']['view'],_0x215b5b=_0x242c9e['plugins']['get'](AIAssistantEditing),_0x2355fd=_0x242c9e['plugins']['get'](ClipboardMarkersUtils);_0x215b5b['showFakeVisualSelection']();const _0x174094=new DomDataTransfer(),_0x54b2d0=new ClipboardEvent('copy',{'clipboardData':_0x174094}),_0x510714=new ViewDataTransfer(_0x174094),_0x551fa2=new ViewDocumentDomEventData(_0x24d53c,_0x54b2d0,{'dataTransfer':_0x510714});_0x2355fd['_forceMarkersCopy']('comment',()=>{_0x24d53c['document']['fire']('copy',_0x551fa2);}),this['_formView']||(this['_initView'](),this['_aiAssistantController']=new AIAssistantController(_0x242c9e,this['_aiAdapter']['textAdapter'],this['_formView']));let _0x752b6c=_0x510714['getData']('text/html');const _0x178b16=_0x242c9e['model']['document']['selection'],_0x27cfe0=Array['from'](_0x178b16['getRanges']());0x1===_0x27cfe0['length']&&_0x27cfe0[0x0]['isFlat']&&!_0x178b16['getSelectedElement']()&&''!==_0x752b6c['replace'](/&nbsp;/g,'')['trim']()&&(_0x752b6c='<p>'+_0x752b6c+'</p>'),this['_aiAssistantController']['updateView']({'actionId':_0xf78bfa,'query':_0x5e91cb,'htmlContent':_0x752b6c,'label':_0x24e6ef,'mainActionLabel':AIFormToolbarViewMainActionLabel[_0x242c9e['model']['document']['selection']['isCollapsed']?'INSERT':'REPLACE']}),'aiAssistant'!==this['_dialog']['id']?this['_dialog']['show']({'id':'aiAssistant','icon':IconRobotPencil,'title':getTranslation$j(this['editor']['locale'],'AI\x20Assistant'),'content':this['_formView'],'position':DialogViewPosition['EDITOR_TOP_SIDE'],'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_aiAssistantController']['reset'](),_0x215b5b['hideFakeVisualSelection']();}}):this['_dialog']['view']['wasMoved']||this['_dialog']['view']['updatePosition']();}['hideUI'](){this['_dialog']['hide']();}['_getResolvedCommandsDefinitions'](){const _0x5db4cd=new Map(),_0x5781d2=normalizeCommandsConfig(this['editor']['config']['get']('ai.assistant.commands'),this['editor']['locale']);for(const _0x6c573c of _0x5781d2)for(const _0x548237 of _0x6c573c['commands'])_0x5db4cd['set'](_0x548237['id'],{..._0x548237,'groupId':_0x6c573c['groupId'],'groupLabel':_0x6c573c['groupLabel']||_0x6c573c['groupId']});return _0x5db4cd;}['_createAIAssistantUIButton'](_0x11fa6a){const _0x440769=this['editor'],_0x4dab4a=_0x440769['commands']['get']('showAIAssistant'),_0x10a7ae=new _0x11fa6a(_0x440769['locale']);return _0x10a7ae['set']({'label':getTranslation$j(_0x440769['locale'],'AI\x20Assistant'),'icon':IconRobotPencil,'isToggleable':!0x0}),_0x10a7ae['bind']('isEnabled')['to'](_0x4dab4a),_0x10a7ae['bind']('isOn')['to'](this['_dialog'],'id',_0x326ddb=>'aiAssistant'===_0x326ddb),this['listenTo'](_0x10a7ae,'execute',()=>{_0x10a7ae['isOn']?this['hideUI']():_0x4dab4a['execute']();}),_0x10a7ae;}['_initView'](){const _0x3b5b0e=this['editor']['plugins']['get'](AIAssistantEditing);this['_formView']=new AIFormView(this['editor']['locale'],this['_uiCssClasses'],this['editor']['config']['get']('ai.assistant.contentAreaCssClass')),this['_formView']['on']('change:value',()=>{this['_dialog']['view']['wasMoved']||this['_dialog']['view']['updatePosition']();}),this['_formView']['promptView']['queryView']['fieldView']['on']('update',()=>{this['_dialog']['view']['wasMoved']||this['_dialog']['view']['updatePosition']();}),this['listenTo'](this['_formView'],'replaceContent',()=>{_0x3b5b0e['insertContent'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['listenTo'](this['_formView'],'insertContentBelow',()=>{_0x3b5b0e['insertContentBelow'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['_initAriaAiStatusChangeAnnouncements']();}['_initAriaAiStatusChangeAnnouncements'](){const {locale:_0x1c03f4,ui:{ariaLiveAnnouncer:_0x1e0997}}=this['editor'];this['_formView']['contentArea']['on']('change:isProcessing',(_0x34c67b,_0x4cbbe1,_0x59cea5)=>{const _0x527bc1=this['_aiAssistantController']['currentContext'];_0x59cea5?_0x1e0997['announce'](getTranslation$j(_0x1c03f4,'AI\x20is\x20writing')):_0x527bc1&&_0x1e0997['announce'](getTranslation$j(_0x1c03f4,'Generated\x20content:\x20%0',_0x527bc1),{'politeness':'polite','isUnsafeHTML':!0x0});}),this['_formView']['on']('change:isError',(_0x55ed70,_0x56a740,_0x5cad7e)=>{if(_0x5cad7e){const _0x77f81c=this['_formView']['errorView']['text'];_0x1e0997['announce'](getTranslation$j(_0x1c03f4,'Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x77f81c));}});}['_onExecute'](_0x5e62dc){const _0x461111=this['_commandDefinitions']['get'](_0x5e62dc),_0x40253f=this['editor'],_0x2dde3a=_0x40253f['model']['document']['selection'],_0x5e45e8=_0x40253f['commands']['get']('showAIAssistant'),_0x4331c1=_0x40253f['plugins']['get'](AIAssistantEditing),_0x32d7ad=''+(_0x461111['groupId']!==UNGROUPED_COMMANDS_GROUP_ID?_0x461111['groupLabel']+':\x20':'')+_0x461111['label'];if(!0x1!==_0x461111['requiresContent']&&_0x2dde3a['isCollapsed']){const _0x4a037e=first(_0x2dde3a['getSelectedBlocks']())||_0x40253f['model']['schema']['getLimitElement'](_0x2dde3a);_0x40253f['model']['change'](_0x4fc95d=>{_0x4fc95d['setSelection'](_0x4a037e,'in');});}_0x4331c1['showFakeVisualSelection'](),_0x5e45e8['execute'](_0x461111['prompt'],_0x32d7ad,'command:'+_0x5e62dc);}['_populateMenuBarMenu'](_0x34e211,_0x1e0ea1,_0x4f1c0d,_0x39aaa9){const _0x33bf95=this['editor'],_0x75c6e0=_0x33bf95['locale'],_0x1688fb=new MenuBarMenuListView(_0x75c6e0),_0x1c667e=sortDefinitionsByOrder(_0x33bf95,_0x4f1c0d)['filter'](_0x854e47=>_0x854e47['commands']['length']);0x1===_0x1c667e['length']?this['_getMenuBarGroupButtons']({'command':_0x34e211,'commands':_0x1c667e[0x0]['commands'],'parentMenuView':_0x1e0ea1,'onExecute':_0x39aaa9})['forEach'](_0x1d5384=>_0x1688fb['items']['add'](_0x1d5384)):_0x1c667e['forEach'](({groupId:_0x41ceb7,groupLabel:_0x4e11ce,commands:_0x2e3228})=>{const _0x395b48=new MenuBarMenuListItemView(_0x75c6e0,_0x1e0ea1),_0x2bda36=new MenuBarMenuView(_0x75c6e0),_0x83353b=new MenuBarMenuListView(_0x75c6e0),_0x559ea0=this['_getMenuBarGroupButtons']({'command':_0x34e211,'commands':_0x2e3228,'parentMenuView':_0x2bda36,'onExecute':_0x39aaa9});_0x2bda36['buttonView']['set']({'label':_0x4e11ce||_0x41ceb7}),_0x2bda36['delegate']('execute')['to'](_0x1e0ea1),_0x83353b['items']['addMany'](_0x559ea0),_0x2bda36['panelView']['children']['add'](_0x83353b),_0x395b48['children']['add'](_0x2bda36),_0x1688fb['items']['add'](_0x395b48);}),_0x1e0ea1['panelView']['children']['add'](_0x1688fb);}['_getMenuBarGroupButtons']({command:_0x5c7ca6,commands:_0x102509,parentMenuView:_0x531833,onExecute:_0x337320}){const _0x4752f4=this['editor'],_0x2712f6=_0x4752f4['locale'];return sortDefinitionsByOrder(_0x4752f4,_0x102509)['map'](_0x514843=>{const _0x46b646=new MenuBarMenuListItemView(_0x2712f6,_0x531833),_0x5a1dc3=new MenuBarMenuListItemButtonView(_0x2712f6);return _0x5a1dc3['set']({'label':_0x514843['label']}),_0x5a1dc3['delegate']('execute')['to'](_0x531833),_0x5a1dc3['on']('execute',()=>_0x337320(_0x514843['id'])),_0x5a1dc3['bind']('isEnabled')['to'](_0x5c7ca6,'enabledCommandsIds',_0x8d83d1=>_0x8d83d1['includes'](_0x514843['id'])),_0x46b646['children']['add'](_0x5a1dc3),_0x46b646;});}}function getMenuDropdownDefinition(_0x2ab9c2){const _0xda5929=normalizeCommandsConfig(_0x2ab9c2['config']['get']('ai.assistant.commands'),_0x2ab9c2['locale']),_0x4b785b=sortDefinitionsByOrder(_0x2ab9c2,_0xda5929)['filter'](_0x1621ef=>_0x1621ef['commands']['length']);return 0x1===_0x4b785b['length']?sortDefinitionsByOrder(_0x2ab9c2,_0x4b785b[0x0]['commands'])['map'](_0x307e42=>({'id':_0x307e42['id'],'label':_0x307e42['label']})):_0x4b785b['map'](_0x2bf807=>{const {groupId:_0x1463e6,groupLabel:_0x329877,commands:_0x124921}=_0x2bf807,_0x1dbbec=sortDefinitionsByOrder(_0x2ab9c2,_0x124921)['map'](_0x4f35b1=>({'id':_0x4f35b1['id'],'label':_0x4f35b1['label']}));return{'id':_0x1463e6,'menu':_0x329877||_0x1463e6,'children':_0x1dbbec};});}function sortDefinitionsCallback(_0x455ef9,_0x4d3088){return void 0x0!==_0x455ef9['order']&&void 0x0===_0x4d3088['order']?0x1:void 0x0===_0x455ef9['order']&&void 0x0!==_0x4d3088['order']?-0x1:void 0x0!==_0x455ef9['order']&&void 0x0!==_0x4d3088['order']?_0x455ef9['order']-_0x4d3088['order']:0x0;}function sortDefinitionsByOrder(_0x10c912,_0x2eba89){_0x2eba89['sort'](sortDefinitionsCallback);const _0x20133c={},_0x231840=[];for(const _0x5b07f5 of _0x2eba89)if(void 0x0!==_0x5b07f5['order']){if(_0x5b07f5['order']in _0x20133c)throw new CKEditorError('ai-commands-config-order-collision',_0x10c912,{'conflictingDefinitions':[_0x5b07f5,_0x20133c[_0x5b07f5['order']]]});_0x20133c[_0x5b07f5['order']]=_0x5b07f5,_0x231840['splice'](_0x5b07f5['order'],0x0,_0x5b07f5);}else _0x231840['push'](_0x5b07f5);return _0x231840;}class AIAssistant extends Plugin{static get['requires'](){return[AIAssistantUI,AIAssistantEditing];}static get['pluginName'](){return'AIAssistant';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5cc268){super(_0x5cc268);const _0x1fc752=_0x5cc268['config'],_0x29a11b=_0x5cc268['locale'];_0x1fc752['define']('ai.assistant.preserveComments',!0x0),_0x1fc752['define']('ai.assistant.commands',getDefaultAICommands(_0x29a11b)),_0x1fc752['define']('ai.assistant.extraCommandGroups',[]),_0x1fc752['define']('ai.assistant.removeCommands',[]);let _0x400375=normalizeCommandsConfig(_0x1fc752['get']('ai.assistant.commands'),_0x29a11b);const _0x2f9f5f=_0x1fc752['get']('ai.assistant.extraCommandGroups'),_0x3c5033=_0x1fc752['get']('ai.assistant.removeCommands');_0x2f9f5f['forEach'](_0x464767=>{const _0x3a1984=_0x400375['find'](_0x463683=>_0x463683['groupId']===_0x464767['groupId']);_0x3a1984?_0x3a1984['commands']=_0x3a1984['commands']['concat'](_0x464767['commands']):_0x400375['push'](_0x464767);}),_0x400375=_0x400375['filter'](_0x4c911b=>!_0x3c5033['includes'](_0x4c911b['groupId'])),_0x400375['forEach'](_0x59a18c=>{_0x59a18c['commands']=_0x59a18c['commands']['filter'](_0xf6d55f=>!_0x3c5033['includes'](_0xf6d55f['id']));}),_0x1fc752['set']('ai.assistant.commands',_0x400375);}}function getDefaultAICommands(_0x120b50){return[{'groupId':'editOrReview','groupLabel':getTranslation$j(_0x120b50,'Edit\x20or\x20review'),'commands':[{'id':'improveWriting','label':getTranslation$j(_0x120b50,'Improve\x20writing'),'prompt':'Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.'},{'id':'makeShorter','label':getTranslation$j(_0x120b50,'Make\x20shorter'),'prompt':'Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.'},{'id':'makeLonger','label':getTranslation$j(_0x120b50,'Make\x20longer'),'prompt':'Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.'},{'id':'simplifyLanguage','label':getTranslation$j(_0x120b50,'Simplify\x20language'),'prompt':'Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.'}]},{'groupId':'generate','groupLabel':getTranslation$j(_0x120b50,'Generate\x20from\x20selection'),'commands':[{'id':'summarize','label':getTranslation$j(_0x120b50,'Summarize'),'prompt':'Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.'},{'id':'continue','label':getTranslation$j(_0x120b50,'Continue'),'prompt':'Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.'}]},{'groupId':'changeTone','groupLabel':getTranslation$j(_0x120b50,'Change\x20tone'),'commands':[{'id':'professional','label':getTranslation$j(_0x120b50,'Professional'),'prompt':'Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.'},{'id':'casual','label':getTranslation$j(_0x120b50,'Casual'),'prompt':'Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.'},{'id':'direct','label':getTranslation$j(_0x120b50,'Direct'),'prompt':'Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.'},{'id':'confident','label':getTranslation$j(_0x120b50,'Confident'),'prompt':'Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.'},{'id':'friendly','label':getTranslation$j(_0x120b50,'Friendly'),'prompt':'Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.'}]},{'groupId':'changeStyle','groupLabel':getTranslation$j(_0x120b50,'Change\x20style'),'commands':[{'id':'business','label':getTranslation$j(_0x120b50,'Business'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.'},{'id':'legal','label':getTranslation$j(_0x120b50,'Legal'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.'},{'id':'journalism','label':getTranslation$j(_0x120b50,'Journalism'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.'},{'id':'poetic','label':getTranslation$j(_0x120b50,'Poetic'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.'}]},{'groupId':'translate','groupLabel':getTranslation$j(_0x120b50,'Translate'),'commands':[{'id':'translateEnglish','label':getTranslation$j(_0x120b50,'English'),'prompt':'Translate\x20the\x20content\x20to\x20English\x20language.'},{'id':'translateSpanish','label':getTranslation$j(_0x120b50,'Spanish'),'prompt':'Translate\x20the\x20content\x20to\x20Spanish\x20language.'},{'id':'translatePortuguese','label':getTranslation$j(_0x120b50,'Portuguese'),'prompt':'Translate\x20the\x20content\x20to\x20Portuguese\x20language.'},{'id':'translateGerman','label':getTranslation$j(_0x120b50,'German'),'prompt':'Translate\x20the\x20content\x20to\x20German\x20language.'},{'id':'translateFrench','label':getTranslation$j(_0x120b50,'French'),'prompt':'Translate\x20the\x20content\x20to\x20French\x20language.'},{'id':'translateChinese','label':getTranslation$j(_0x120b50,'Simplified\x20Chinese'),'prompt':'Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.'},{'id':'translateHindi','label':getTranslation$j(_0x120b50,'Hindi'),'prompt':'Translate\x20the\x20content\x20to\x20Hindi\x20language.'},{'id':'translateArabic','label':getTranslation$j(_0x120b50,'Arabic'),'prompt':'Translate\x20the\x20content\x20to\x20Arabic\x20language.'}]}];}class AITextAdapter extends Plugin{['abortController'];static get['requires'](){return[AIAdapter];}constructor(_0x35361f){super(_0x35361f),this['abortController']=new AbortController();}['init'](){this['editor']['plugins']['get'](AIAdapter)['textAdapter']=this;}['abort'](){this['abortController']['signal']['aborted']||(this['abortController']['abort'](),this['abortController']=new AbortController());}async['makeRequest'](_0x58ef9f){return this['sendRequest'](_0x58ef9f)['catch'](_0x52e715=>{if(_0x52e715 instanceof AIRequestError)return Promise['reject'](_0x52e715);if('AbortError'==_0x52e715['name'])return Promise['resolve']();throw console['error'](_0x52e715),new CKEditorError('aitextadapter-send-request-failed',null);});}async['_prepareRequestHeaders'](_0x6153e2,_0x2a569d){const _0x278d4a=this['editor']['locale'],_0x46d1e1={'Content-Type':'application/json'};if('object'==typeof _0x6153e2)Object['assign'](_0x46d1e1,_0x6153e2);else{if(_0x6153e2)try{const _0x1e99e6=await _0x6153e2(_0x2a569d);Object['assign'](_0x46d1e1,_0x1e99e6);}catch{return Promise['reject'](new AIRequestError(getTranslation$j(_0x278d4a,'AI_ERROR_GET_HEADERS')));}}return _0x46d1e1;}async['_prepareRequestParameters'](_0x442b74,_0xafc3e){const _0x2a57c7=this['editor']['locale'];if('object'==typeof _0x442b74)return _0x442b74;try{return await _0x442b74(_0xafc3e);}catch{return Promise['reject'](new AIRequestError(getTranslation$j(_0x2a57c7,'AI_ERROR_GET_PARAMETERS')));}}}class OpenAITextAdapter extends AITextAdapter{['_apiUrl'];['_requestHeaders'];['_requestParameters'];static get['pluginName'](){return'OpenAITextAdapter';}constructor(_0x1a04de){super(_0x1a04de),_0x1a04de['config']['define']('ai.assistant.adapter.openAI.apiUrl','https://api.openai.com/v1/chat/completions'),_0x1a04de['config']['get']('ai.assistant.adapter.openAI.requestParameters')||_0x1a04de['config']['define']('ai.assistant.adapter.openAI.requestParameters',{'model':'gpt-4o','temperature':0x1,'top_p':0x1,'stream':!0x0}),this['_apiUrl']=_0x1a04de['config']['get']('ai.assistant.adapter.openAI.apiUrl'),this['_requestHeaders']=_0x1a04de['config']['get']('ai.assistant.adapter.openAI.requestHeaders')||{},this['_requestParameters']=_0x1a04de['config']['get']('ai.assistant.adapter.openAI.requestParameters');}async['sendRequest']({query:_0x55d654,context:_0x1d12c2,onData:_0x24010d,actionId:_0x5a7673}){const _0x44709b=this['editor']['locale'],_0x23d54c=await this['prepareMessages'](_0x55d654,_0x1d12c2,_0x5a7673),_0x51060f=await this['_prepareRequestHeaders'](this['_requestHeaders'],_0x5a7673),_0x3548bd=await this['_prepareRequestParameters'](this['_requestParameters'],_0x5a7673),_0x3f6362={'messages':_0x23d54c,..._0x3548bd},_0x476a94={'method':'POST','headers':_0x51060f,'body':JSON['stringify'](_0x3f6362),'signal':this['abortController']['signal']},_0x522cc5=await fetch(this['_apiUrl'],_0x476a94);if(_0x522cc5['ok'])return _0x3548bd['stream']?await this['_readStreamableResponse'](_0x522cc5,_0x24010d):await this['_readStaticResponse'](_0x522cc5,_0x24010d),Promise['resolve']();{const _0x3a94ec=await _0x522cc5['text']();return _0x3a94ec['includes']('context_length_exceeded')?Promise['reject'](new AIRequestError(getTranslation$j(_0x44709b,'AI_ERROR_CONTEXT_LENGTH'))):_0x3a94ec['includes']('Moderation')?Promise['reject'](new AIRequestError(getTranslation$j(_0x44709b,'AI_ERROR_MODERATION'))):Promise['reject'](new Error(_0x3a94ec));}}async['prepareMessages'](_0x52426c,_0x3adaa8,_0x53dd26){let _0x453230,_0x31c95a;return _0x3adaa8?(_0x453230='Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.',_0x31c95a='Instruction:\x0a'+_0x52426c+'\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a'+_0x3adaa8):(_0x453230='Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.',_0x31c95a=_0x52426c),[{'role':'system','content':_0x453230},{'role':'user','content':_0x31c95a}];}async['_readStreamableResponse'](_0x16634a,_0x52abf1){const _0x4ed931=_0x16634a['body']['getReader'](),_0x254365=new TextDecoder();let _0x5263cb='',_0x4a2bb8='',_0x5d5fde='',_0x2fbfd3=!0x1;for(;!_0x2fbfd3;){const {done:_0x37815d,value:_0x4a4714}=await _0x4ed931['read'](),_0xe87ac7=_0x5263cb+_0x254365['decode'](_0x4a4714);let _0x1e69d0='';_0x2fbfd3=_0x37815d;try{_0x1e69d0=this['_cleanUpData'](_0xe87ac7),_0x5263cb='';}catch{_0x5263cb=_0xe87ac7;continue;}_0x4a2bb8+=_0x1e69d0,!_0x2fbfd3&&this['_isBufferIncomplete'](_0x4a2bb8)||_0x4a2bb8&&(_0x5d5fde+=_0x4a2bb8,_0x4a2bb8='',_0x52abf1(_0x5d5fde));}return Promise['resolve']();}async['_readStaticResponse'](_0x5f278c,_0x3f83b4){return _0x3f83b4((await _0x5f278c['json']())['choices'][0x0]['message']['content']),Promise['resolve']();}['_isBufferIncomplete'](_0x1933dc){const _0x77f427=_0x1933dc['split']('<')['length']!==_0x1933dc['split']('>')['length'],_0x531eb1=_0x1933dc['length']<0x1e;return _0x77f427&&_0x531eb1;}['_cleanUpData'](_0x329104){return _0x329104['split'](/\n(?![^{]*\})/g)['map'](_0x473175=>_0x473175['replace']('data:\x20',''))['filter'](_0x16c453=>_0x16c453&&_0x16c453['length']>0x0&&'[DONE]'!==_0x16c453)['map'](_0xbe6b28=>{const {choices:_0x106228}=JSON['parse'](_0xbe6b28);if(_0x106228[0x0]?.['delta']?.['content'])return _0x106228[0x0]['delta']['content'];})['filter'](_0x15cba5=>_0x15cba5)['join']('');}}function resolveEventStreamConfig(_0x5a9d64){const _0x5dc689=_0x5a9d64['signer'],_0x582322=_0x5a9d64['signer'],_0x621e6a=Object['assign'](_0x5a9d64,{'eventSigner':_0x5dc689,'messageSigner':_0x582322}),_0x1449cb=_0x621e6a['eventStreamPayloadHandlerProvider'](_0x621e6a);return Object['assign'](_0x621e6a,{'eventStreamPayloadHandler':_0x1449cb});}const getHttpHandlerExtensionConfiguration=_0x59d7f3=>({'setHttpHandler'(_0x256719){_0x59d7f3['httpHandler']=_0x256719;},'httpHandler':()=>_0x59d7f3['httpHandler'],'updateHttpClientConfig'(_0x50b4de,_0x3a672a){_0x59d7f3['httpHandler']?.['updateHttpClientConfig'](_0x50b4de,_0x3a672a);},'httpHandlerConfigs':()=>_0x59d7f3['httpHandler']['httpHandlerConfigs']()}),resolveHttpHandlerRuntimeConfig=_0xb86c87=>({'httpHandler':_0xb86c87['httpHandler']()});var EndpointURLScheme,AlgorithmId;!function(_0x58c7de){_0x58c7de['HTTP']='http',_0x58c7de['HTTPS']='https';}(EndpointURLScheme||(EndpointURLScheme={})),function(_0x4d7916){_0x4d7916['MD5']='md5',_0x4d7916['CRC32']='crc32',_0x4d7916['CRC32C']='crc32c',_0x4d7916['SHA1']='sha1',_0x4d7916['SHA256']='sha256';}(AlgorithmId||(AlgorithmId={}));const SMITHY_CONTEXT_KEY='__smithy_context';class HttpRequest{constructor(_0x26da46){this['method']=_0x26da46['method']||'GET',this['hostname']=_0x26da46['hostname']||'localhost',this['port']=_0x26da46['port'],this['query']=_0x26da46['query']||{},this['headers']=_0x26da46['headers']||{},this['body']=_0x26da46['body'],this['protocol']=_0x26da46['protocol']?':'!==_0x26da46['protocol']['slice'](-0x1)?_0x26da46['protocol']+':':_0x26da46['protocol']:'https:',this['path']=_0x26da46['path']?'/'!==_0x26da46['path']['charAt'](0x0)?'/'+_0x26da46['path']:_0x26da46['path']:'/',this['username']=_0x26da46['username'],this['password']=_0x26da46['password'],this['fragment']=_0x26da46['fragment'];}static['clone'](_0x47d20e){const _0x4b95fe=new HttpRequest({..._0x47d20e,'headers':{..._0x47d20e['headers']}});return _0x4b95fe['query']&&(_0x4b95fe['query']=cloneQuery(_0x4b95fe['query'])),_0x4b95fe;}static['isInstance'](_0x5b600c){if(!_0x5b600c)return!0x1;const _0x2d1319=_0x5b600c;return'method'in _0x2d1319&&'protocol'in _0x2d1319&&'hostname'in _0x2d1319&&'path'in _0x2d1319&&'object'==typeof _0x2d1319['query']&&'object'==typeof _0x2d1319['headers'];}['clone'](){return HttpRequest['clone'](this);}}function cloneQuery(_0x24cde8){return Object['keys'](_0x24cde8)['reduce']((_0x1bec38,_0x3c3ed5)=>{const _0x3f35b1=_0x24cde8[_0x3c3ed5];return{..._0x1bec38,[_0x3c3ed5]:Array['isArray'](_0x3f35b1)?[..._0x3f35b1]:_0x3f35b1};},{});}class HttpResponse{constructor(_0x3eafed){this['statusCode']=_0x3eafed['statusCode'],this['reason']=_0x3eafed['reason'],this['headers']=_0x3eafed['headers']||{},this['body']=_0x3eafed['body'];}static['isInstance'](_0x234411){if(!_0x234411)return!0x1;const _0x38c82f=_0x234411;return'number'==typeof _0x38c82f['statusCode']&&'object'==typeof _0x38c82f['headers'];}}function resolveHostHeaderConfig(_0x4af504){return _0x4af504;}const hostHeaderMiddleware=_0x2f1807=>_0x55d549=>async _0x2963fc=>{if(!HttpRequest['isInstance'](_0x2963fc['request']))return _0x55d549(_0x2963fc);const {request:_0x211cbc}=_0x2963fc,{handlerProtocol:_0x43af6b=''}=_0x2f1807['requestHandler']['metadata']||{};if(_0x43af6b['indexOf']('h2')>=0x0&&!_0x211cbc['headers'][':authority'])delete _0x211cbc['headers']['host'],_0x211cbc['headers'][':authority']=_0x211cbc['hostname']+(_0x211cbc['port']?':'+_0x211cbc['port']:'');else{if(!_0x211cbc['headers']['host']){let _0x2882f7=_0x211cbc['hostname'];null!=_0x211cbc['port']&&(_0x2882f7+=':'+_0x211cbc['port']),_0x211cbc['headers']['host']=_0x2882f7;}}return _0x55d549(_0x2963fc);},hostHeaderMiddlewareOptions={'name':'hostHeaderMiddleware','step':'build','priority':'low','tags':['HOST'],'override':!0x0},getHostHeaderPlugin=_0x463942=>({'applyToStack':_0x32fe83=>{_0x32fe83['add'](hostHeaderMiddleware(_0x463942),hostHeaderMiddlewareOptions);}}),loggerMiddleware=()=>(_0x566eff,_0x1f42cd)=>async _0x43bf51=>{try{const _0x3a2feb=await _0x566eff(_0x43bf51),{clientName:_0x3b17fd,commandName:_0x3e9970,logger:_0x43be4e,dynamoDbDocumentClientOptions:_0x8b636e={}}=_0x1f42cd,{overrideInputFilterSensitiveLog:_0x225d03,overrideOutputFilterSensitiveLog:_0x3aa0e9}=_0x8b636e,_0x3cc2ac=_0x225d03??_0x1f42cd['inputFilterSensitiveLog'],_0xa562c4=_0x3aa0e9??_0x1f42cd['outputFilterSensitiveLog'],{$metadata:_0x550974,..._0x307b62}=_0x3a2feb['output'];return _0x43be4e?.['info']?.({'clientName':_0x3b17fd,'commandName':_0x3e9970,'input':_0x3cc2ac(_0x43bf51['input']),'output':_0xa562c4(_0x307b62),'metadata':_0x550974}),_0x3a2feb;}catch(_0x1b21ea){const {clientName:_0xc99c2b,commandName:_0x4985cd,logger:_0x4b255d,dynamoDbDocumentClientOptions:_0x43d301={}}=_0x1f42cd,{overrideInputFilterSensitiveLog:_0x31413c}=_0x43d301,_0x1521e6=_0x31413c??_0x1f42cd['inputFilterSensitiveLog'];throw _0x4b255d?.['error']?.({'clientName':_0xc99c2b,'commandName':_0x4985cd,'input':_0x1521e6(_0x43bf51['input']),'error':_0x1b21ea,'metadata':_0x1b21ea['$metadata']}),_0x1b21ea;}},loggerMiddlewareOptions={'name':'loggerMiddleware','tags':['LOGGER'],'step':'initialize','override':!0x0},getLoggerPlugin=_0x2e4229=>({'applyToStack':_0x54ff52=>{_0x54ff52['add'](loggerMiddleware(),loggerMiddlewareOptions);}}),TRACE_ID_HEADER_NAME='X-Amzn-Trace-Id',ENV_LAMBDA_FUNCTION_NAME='AWS_LAMBDA_FUNCTION_NAME',ENV_TRACE_ID='_X_AMZN_TRACE_ID',recursionDetectionMiddleware=_0x33a7c7=>_0x4c4c71=>async _0x3f1a16=>{const {request:_0x17989a}=_0x3f1a16;if(!HttpRequest['isInstance'](_0x17989a)||'node'!==_0x33a7c7['runtime'])return _0x4c4c71(_0x3f1a16);const _0x573431=Object['keys'](_0x17989a['headers']??{})['find'](_0x28d30a=>_0x28d30a['toLowerCase']()===TRACE_ID_HEADER_NAME['toLowerCase']())??TRACE_ID_HEADER_NAME;if(_0x17989a['headers']['hasOwnProperty'](_0x573431))return _0x4c4c71(_0x3f1a16);const _0x322eab=process['env'][ENV_LAMBDA_FUNCTION_NAME],_0x5742b2=process['env'][ENV_TRACE_ID],_0x307dcf=_0x12fafb=>'string'==typeof _0x12fafb&&_0x12fafb['length']>0x0;return _0x307dcf(_0x322eab)&&_0x307dcf(_0x5742b2)&&(_0x17989a['headers'][TRACE_ID_HEADER_NAME]=_0x5742b2),_0x4c4c71({..._0x3f1a16,'request':_0x17989a});},addRecursionDetectionMiddlewareOptions={'step':'build','tags':['RECURSION_DETECTION'],'name':'recursionDetectionMiddleware','override':!0x0,'priority':'low'},getRecursionDetectionPlugin=_0xbc4b86=>({'applyToStack':_0x38d1fa=>{_0x38d1fa['add'](recursionDetectionMiddleware(_0xbc4b86),addRecursionDetectionMiddlewareOptions);}}),getSmithyContext=_0x41f053=>_0x41f053[SMITHY_CONTEXT_KEY]||(_0x41f053[SMITHY_CONTEXT_KEY]={}),normalizeProvider$1=_0x42e429=>{if('function'==typeof _0x42e429)return _0x42e429;const _0x53cfad=Promise['resolve'](_0x42e429);return()=>_0x53cfad;},resolveAuthOptions=(_0x1df186,_0x15fdb5)=>{if(!_0x15fdb5||0x0===_0x15fdb5['length'])return _0x1df186;const _0x528d92=[];for(const _0x891ef3 of _0x15fdb5)for(const _0x312f3a of _0x1df186){_0x312f3a['schemeId']['split']('#')[0x1]===_0x891ef3&&_0x528d92['push'](_0x312f3a);}for(const _0x40e5e0 of _0x1df186)_0x528d92['find'](({schemeId:_0xb94fae})=>_0xb94fae===_0x40e5e0['schemeId'])||_0x528d92['push'](_0x40e5e0);return _0x528d92;};function convertHttpAuthSchemesToMap(_0x586eae){const _0x1dfb0a=new Map();for(const _0x558eed of _0x586eae)_0x1dfb0a['set'](_0x558eed['schemeId'],_0x558eed);return _0x1dfb0a;}const httpAuthSchemeMiddleware=(_0x1c0fc1,_0xe85f92)=>(_0x1174a6,_0x56aafe)=>async _0x521e5b=>{const _0x2aa83f=_0x1c0fc1['httpAuthSchemeProvider'](await _0xe85f92['httpAuthSchemeParametersProvider'](_0x1c0fc1,_0x56aafe,_0x521e5b['input'])),_0x34e495=_0x1c0fc1['authSchemePreference']?await _0x1c0fc1['authSchemePreference']():[],_0x4dc577=resolveAuthOptions(_0x2aa83f,_0x34e495),_0x23a555=convertHttpAuthSchemesToMap(_0x1c0fc1['httpAuthSchemes']),_0x1a2c03=getSmithyContext(_0x56aafe),_0x1f3d10=[];for(const _0x4ea6ea of _0x4dc577){const _0xcf7840=_0x23a555['get'](_0x4ea6ea['schemeId']);if(!_0xcf7840){_0x1f3d10['push']('HttpAuthScheme\x20`'+_0x4ea6ea['schemeId']+'`\x20was\x20not\x20enabled\x20for\x20this\x20service.');continue;}const _0x319081=_0xcf7840['identityProvider'](await _0xe85f92['identityProviderConfigProvider'](_0x1c0fc1));if(!_0x319081){_0x1f3d10['push']('HttpAuthScheme\x20`'+_0x4ea6ea['schemeId']+'`\x20did\x20not\x20have\x20an\x20IdentityProvider\x20configured.');continue;}const {identityProperties:_0x18f4d0={},signingProperties:_0x4cb0d6={}}=_0x4ea6ea['propertiesExtractor']?.(_0x1c0fc1,_0x56aafe)||{};_0x4ea6ea['identityProperties']=Object['assign'](_0x4ea6ea['identityProperties']||{},_0x18f4d0),_0x4ea6ea['signingProperties']=Object['assign'](_0x4ea6ea['signingProperties']||{},_0x4cb0d6),_0x1a2c03['selectedHttpAuthScheme']={'httpAuthOption':_0x4ea6ea,'identity':await _0x319081(_0x4ea6ea['identityProperties']),'signer':_0xcf7840['signer']};break;}if(!_0x1a2c03['selectedHttpAuthScheme'])throw new Error(_0x1f3d10['join']('\x0a'));return _0x1174a6(_0x521e5b);},httpAuthSchemeEndpointRuleSetMiddlewareOptions={'step':'serialize','tags':['HTTP_AUTH_SCHEME'],'name':'httpAuthSchemeMiddleware','override':!0x0,'relation':'before','toMiddleware':'endpointV2Middleware'},getHttpAuthSchemeEndpointRuleSetPlugin=(_0x52ec9d,{httpAuthSchemeParametersProvider:_0xcd80d9,identityProviderConfigProvider:_0xf10784})=>({'applyToStack':_0x5afc3d=>{_0x5afc3d['addRelativeTo'](httpAuthSchemeMiddleware(_0x52ec9d,{'httpAuthSchemeParametersProvider':_0xcd80d9,'identityProviderConfigProvider':_0xf10784}),httpAuthSchemeEndpointRuleSetMiddlewareOptions);}}),deserializerMiddleware=(_0x1b22c7,_0x315d75)=>(_0x335e19,_0x5699ca)=>async _0x51ea43=>{const {response:_0x44985f}=await _0x335e19(_0x51ea43);try{return{'response':_0x44985f,'output':await _0x315d75(_0x44985f,_0x1b22c7)};}catch(_0x18c767){if(Object['defineProperty'](_0x18c767,'$response',{'value':_0x44985f}),!('$metadata'in _0x18c767)){const _0x323020='Deserialization\x20error:\x20to\x20see\x20the\x20raw\x20response,\x20inspect\x20the\x20hidden\x20field\x20{error}.$response\x20on\x20this\x20object.';try{_0x18c767['message']+='\x0a\x20\x20'+_0x323020;}catch(_0x45074d){_0x5699ca['logger']&&'NoOpLogger'!==_0x5699ca['logger']?.['constructor']?.['name']?_0x5699ca['logger']?.['warn']?.(_0x323020):console['warn'](_0x323020);}void 0x0!==_0x18c767['$responseBodyText']&&_0x18c767['$response']&&(_0x18c767['$response']['body']=_0x18c767['$responseBodyText']);try{if(HttpResponse['isInstance'](_0x44985f)){const {headers:_0x10948f={}}=_0x44985f,_0x1e7ed9=Object['entries'](_0x10948f);_0x18c767['$metadata']={'httpStatusCode':_0x44985f['statusCode'],'requestId':findHeader(/^x-[\w-]+-request-?id$/,_0x1e7ed9),'extendedRequestId':findHeader(/^x-[\w-]+-id-2$/,_0x1e7ed9),'cfId':findHeader(/^x-[\w-]+-cf-id$/,_0x1e7ed9)};}}catch(_0x26bedc){}}throw _0x18c767;}},findHeader=(_0xbdc12f,_0x241d09)=>(_0x241d09['find'](([_0x1f5408])=>_0x1f5408['match'](_0xbdc12f))||[void 0x0,void 0x0])[0x1],serializerMiddleware=(_0x3781ac,_0x478c18)=>(_0x24eb90,_0x1983d1)=>async _0x4bc351=>{const _0x50c7b0=_0x3781ac,_0x205c92=_0x1983d1['endpointV2']?.['url']&&_0x50c7b0['urlParser']?async()=>_0x50c7b0['urlParser'](_0x1983d1['endpointV2']['url']):_0x50c7b0['endpoint'];if(!_0x205c92)throw new Error('No\x20valid\x20endpoint\x20provider\x20available.');const _0x1fc92f=await _0x478c18(_0x4bc351['input'],{..._0x3781ac,'endpoint':_0x205c92});return _0x24eb90({..._0x4bc351,'request':_0x1fc92f});},deserializerMiddlewareOption={'name':'deserializerMiddleware','step':'deserialize','tags':['DESERIALIZER'],'override':!0x0},serializerMiddlewareOption={'name':'serializerMiddleware','step':'serialize','tags':['SERIALIZER'],'override':!0x0};function getSerdePlugin(_0x36262a,_0x143cdd,_0x277a58){return{'applyToStack':_0xf98a00=>{_0xf98a00['add'](deserializerMiddleware(_0x36262a,_0x277a58),deserializerMiddlewareOption),_0xf98a00['add'](serializerMiddleware(_0x36262a,_0x143cdd),serializerMiddlewareOption);}};}const defaultErrorHandler=_0x3961a5=>_0x1581be=>{throw _0x1581be;},defaultSuccessHandler=(_0x358661,_0x228c0b)=>{},httpSigningMiddleware=_0x5428f0=>(_0x5813f2,_0x40298f)=>async _0x175b66=>{if(!HttpRequest['isInstance'](_0x175b66['request']))return _0x5813f2(_0x175b66);const _0x3f246e=getSmithyContext(_0x40298f)['selectedHttpAuthScheme'];if(!_0x3f246e)throw new Error('No\x20HttpAuthScheme\x20was\x20selected:\x20unable\x20to\x20sign\x20request');const {httpAuthOption:{signingProperties:_0x242f3e={}},identity:_0x502cec,signer:_0x589a48}=_0x3f246e,_0x265be8=await _0x5813f2({..._0x175b66,'request':await _0x589a48['sign'](_0x175b66['request'],_0x502cec,_0x242f3e)})['catch']((_0x589a48['errorHandler']||defaultErrorHandler)(_0x242f3e));return(_0x589a48['successHandler']||defaultSuccessHandler)(_0x265be8['response'],_0x242f3e),_0x265be8;},httpSigningMiddlewareOptions={'step':'finalizeRequest','tags':['HTTP_SIGNING'],'name':'httpSigningMiddleware','aliases':['apiKeyMiddleware','tokenMiddleware','awsAuthMiddleware'],'override':!0x0,'relation':'after','toMiddleware':'retryMiddleware'},getHttpSigningPlugin=_0x589da1=>({'applyToStack':_0x552a02=>{_0x552a02['addRelativeTo'](httpSigningMiddleware(),httpSigningMiddlewareOptions);}}),normalizeProvider=_0x2539b5=>{if('function'==typeof _0x2539b5)return _0x2539b5;const _0x4514f2=Promise['resolve'](_0x2539b5);return()=>_0x4514f2;},alphabetByEncoding={},alphabetByValue=new Array(0x40);for(let e=0x0,i='A'['charCodeAt'](0x0),n='Z'['charCodeAt'](0x0);e+i<=n;e++){const n=String['fromCharCode'](e+i);alphabetByEncoding[n]=e,alphabetByValue[e]=n;}for(let e=0x0,i='a'['charCodeAt'](0x0),n='z'['charCodeAt'](0x0);e+i<=n;e++){const n=String['fromCharCode'](e+i),s=e+0x1a;alphabetByEncoding[n]=s,alphabetByValue[s]=n;}for(let e=0x0;e<0xa;e++){alphabetByEncoding[e['toString'](0xa)]=e+0x34;const i=e['toString'](0xa),n=e+0x34;alphabetByEncoding[i]=n,alphabetByValue[n]=i;}alphabetByEncoding['+']=0x3e,alphabetByValue[0x3e]='+',alphabetByEncoding['/']=0x3f,alphabetByValue[0x3f]='/';const bitsPerLetter=0x6,bitsPerByte=0x8,maxLetterValue=0x3f,fromBase64=_0x3e1c07=>{let _0x1d41b3=_0x3e1c07['length']/0x4*0x3;'=='===_0x3e1c07['slice'](-0x2)?_0x1d41b3-=0x2:'='===_0x3e1c07['slice'](-0x1)&&_0x1d41b3--;const _0x577622=new ArrayBuffer(_0x1d41b3),_0x14be09=new DataView(_0x577622);for(let _0x366c48=0x0;_0x366c48<_0x3e1c07['length'];_0x366c48+=0x4){let _0x558aa4=0x0,_0x5da55a=0x0;for(let _0x59737=_0x366c48,_0x3047d1=_0x366c48+0x3;_0x59737<=_0x3047d1;_0x59737++)if('='!==_0x3e1c07[_0x59737]){if(!(_0x3e1c07[_0x59737]in alphabetByEncoding))throw new TypeError('Invalid\x20character\x20'+_0x3e1c07[_0x59737]+'\x20in\x20base64\x20string.');_0x558aa4|=alphabetByEncoding[_0x3e1c07[_0x59737]]<<(_0x3047d1-_0x59737)*bitsPerLetter,_0x5da55a+=bitsPerLetter;}else _0x558aa4>>=bitsPerLetter;const _0x23bbb6=_0x366c48/0x4*0x3;_0x558aa4>>=_0x5da55a%bitsPerByte;const _0xd520f3=Math['floor'](_0x5da55a/bitsPerByte);for(let _0x21ba75=0x0;_0x21ba75<_0xd520f3;_0x21ba75++){const _0x554d6b=(_0xd520f3-_0x21ba75-0x1)*bitsPerByte;_0x14be09['setUint8'](_0x23bbb6+_0x21ba75,(_0x558aa4&0xff<<_0x554d6b)>>_0x554d6b);}}return new Uint8Array(_0x577622);},fromUtf8$2=_0x58c8e5=>new TextEncoder()['encode'](_0x58c8e5),toUint8Array=_0x4db10c=>'string'==typeof _0x4db10c?fromUtf8$2(_0x4db10c):ArrayBuffer['isView'](_0x4db10c)?new Uint8Array(_0x4db10c['buffer'],_0x4db10c['byteOffset'],_0x4db10c['byteLength']/Uint8Array['BYTES_PER_ELEMENT']):new Uint8Array(_0x4db10c),toUtf8=_0x2936b0=>{if('string'==typeof _0x2936b0)return _0x2936b0;if('object'!=typeof _0x2936b0||'number'!=typeof _0x2936b0['byteOffset']||'number'!=typeof _0x2936b0['byteLength'])throw new Error('@smithy/util-utf8:\x20toUtf8\x20encoder\x20function\x20only\x20accepts\x20string\x20|\x20Uint8Array.');return new TextDecoder('utf-8')['decode'](_0x2936b0);};function toBase64(_0x49337a){let _0x26187d;_0x26187d='string'==typeof _0x49337a?fromUtf8$2(_0x49337a):_0x49337a;const _0x15cd05='object'==typeof _0x26187d&&'number'==typeof _0x26187d['length'],_0x57f686='object'==typeof _0x26187d&&'number'==typeof _0x26187d['byteOffset']&&'number'==typeof _0x26187d['byteLength'];if(!_0x15cd05&&!_0x57f686)throw new Error('@smithy/util-base64:\x20toBase64\x20encoder\x20function\x20only\x20accepts\x20string\x20|\x20Uint8Array.');let _0x26ce59='';for(let _0x3cc50f=0x0;_0x3cc50f<_0x26187d['length'];_0x3cc50f+=0x3){let _0x2f1e2a=0x0,_0x2d8c2d=0x0;for(let _0x1210c8=_0x3cc50f,_0x221155=Math['min'](_0x3cc50f+0x3,_0x26187d['length']);_0x1210c8<_0x221155;_0x1210c8++)_0x2f1e2a|=_0x26187d[_0x1210c8]<<(_0x221155-_0x1210c8-0x1)*bitsPerByte,_0x2d8c2d+=bitsPerByte;const _0x5e7a7c=Math['ceil'](_0x2d8c2d/bitsPerLetter);_0x2f1e2a<<=_0x5e7a7c*bitsPerLetter-_0x2d8c2d;for(let _0x25378f=0x1;_0x25378f<=_0x5e7a7c;_0x25378f++){const _0x2d7667=(_0x5e7a7c-_0x25378f)*bitsPerLetter;_0x26ce59+=alphabetByValue[(_0x2f1e2a&maxLetterValue<<_0x2d7667)>>_0x2d7667];}_0x26ce59+='=='['slice'](0x0,0x4-_0x5e7a7c);}return _0x26ce59;}function transformToString(_0x390c9c,_0x2c6fdc='utf-8'){return'base64'===_0x2c6fdc?toBase64(_0x390c9c):toUtf8(_0x390c9c);}function transformFromString(_0x16a150,_0x1e9c55){return'base64'===_0x1e9c55?Uint8ArrayBlobAdapter['mutate'](fromBase64(_0x16a150)):Uint8ArrayBlobAdapter['mutate'](fromUtf8$2(_0x16a150));}class Uint8ArrayBlobAdapter extends Uint8Array{static['fromString'](_0x38eeb6,_0x2d4775='utf-8'){if('string'==typeof _0x38eeb6)return transformFromString(_0x38eeb6,_0x2d4775);throw new Error('Unsupported\x20conversion\x20from\x20'+typeof _0x38eeb6+'\x20to\x20Uint8ArrayBlobAdapter.');}static['mutate'](_0x23b894){return Object['setPrototypeOf'](_0x23b894,Uint8ArrayBlobAdapter['prototype']),_0x23b894;}['transformToString'](_0x37bd1b='utf-8'){return transformToString(this,_0x37bd1b);}}const escapeUri=_0x5b57a6=>encodeURIComponent(_0x5b57a6)['replace'](/[!'()*]/g,hexEncode),hexEncode=_0xe2acd1=>'%'+_0xe2acd1['charCodeAt'](0x0)['toString'](0x10)['toUpperCase']();function buildQueryString(_0x2421cf){const _0x458a39=[];for(let _0x21b9ff of Object['keys'](_0x2421cf)['sort']()){const _0x3cc7c4=_0x2421cf[_0x21b9ff];if(_0x21b9ff=escapeUri(_0x21b9ff),Array['isArray'](_0x3cc7c4)){for(let _0x30b9e2=0x0,_0x211461=_0x3cc7c4['length'];_0x30b9e2<_0x211461;_0x30b9e2++)_0x458a39['push'](_0x21b9ff+'='+escapeUri(_0x3cc7c4[_0x30b9e2]));}else{let _0x2b06e8=_0x21b9ff;(_0x3cc7c4||'string'==typeof _0x3cc7c4)&&(_0x2b06e8+='='+escapeUri(_0x3cc7c4)),_0x458a39['push'](_0x2b06e8);}}return _0x458a39['join']('&');}function createRequest(_0x7b0057,_0xd6c961){return new Request(_0x7b0057,_0xd6c961);}function requestTimeout(_0x283a47=0x0){return new Promise((_0x199d2b,_0x2ce922)=>{_0x283a47&&setTimeout(()=>{const _0x53d160=new Error('Request\x20did\x20not\x20complete\x20within\x20'+_0x283a47+'\x20ms');_0x53d160['name']='TimeoutError',_0x2ce922(_0x53d160);},_0x283a47);});}const keepAliveSupport={'supported':void 0x0};class FetchHttpHandler{static['create'](_0x41fc4c){return'function'==typeof _0x41fc4c?.['handle']?_0x41fc4c:new FetchHttpHandler(_0x41fc4c);}constructor(_0x85ed88){'function'==typeof _0x85ed88?this['configProvider']=_0x85ed88()['then'](_0x41448d=>_0x41448d||{}):(this['config']=_0x85ed88??{},this['configProvider']=Promise['resolve'](this['config'])),void 0x0===keepAliveSupport['supported']&&(keepAliveSupport['supported']=Boolean('undefined'!=typeof Request&&'keepalive'in createRequest('https://[::1]')));}['destroy'](){}async['handle'](_0xf31fb1,{abortSignal:_0xe60d39,requestTimeout:_0x21b332}={}){this['config']||(this['config']=await this['configProvider']);const _0x3eaeb0=_0x21b332??this['config']['requestTimeout'],_0x35a100=!0x0===this['config']['keepAlive'],_0x1ad630=this['config']['credentials'];if(_0xe60d39?.['aborted']){const _0x56ea9d=new Error('Request\x20aborted');return _0x56ea9d['name']='AbortError',Promise['reject'](_0x56ea9d);}let _0x340b4a=_0xf31fb1['path'];const _0x3b7d38=buildQueryString(_0xf31fb1['query']||{});_0x3b7d38&&(_0x340b4a+='?'+_0x3b7d38),_0xf31fb1['fragment']&&(_0x340b4a+='#'+_0xf31fb1['fragment']);let _0x1b3d17='';(null!=_0xf31fb1['username']||null!=_0xf31fb1['password'])&&(_0x1b3d17=(_0xf31fb1['username']??'')+':'+(_0xf31fb1['password']??'')+'@');const {port:_0x15758b,method:_0x4ac324}=_0xf31fb1,_0x1abd11=_0xf31fb1['protocol']+'//'+_0x1b3d17+_0xf31fb1['hostname']+(_0x15758b?':'+_0x15758b:'')+_0x340b4a,_0x4f118e='GET'===_0x4ac324||'HEAD'===_0x4ac324?void 0x0:_0xf31fb1['body'],_0x2c2706={'body':_0x4f118e,'headers':new Headers(_0xf31fb1['headers']),'method':_0x4ac324,'credentials':_0x1ad630};this['config']?.['cache']&&(_0x2c2706['cache']=this['config']['cache']),_0x4f118e&&(_0x2c2706['duplex']='half'),'undefined'!=typeof AbortController&&(_0x2c2706['signal']=_0xe60d39),keepAliveSupport['supported']&&(_0x2c2706['keepalive']=_0x35a100),'function'==typeof this['config']['requestInit']&&Object['assign'](_0x2c2706,this['config']['requestInit'](_0xf31fb1));let _0x4937ea=()=>{};const _0x3a5ec6=createRequest(_0x1abd11,_0x2c2706),_0x2def4c=[fetch(_0x3a5ec6)['then'](_0x23ad2c=>{const _0x25d807=_0x23ad2c['headers'],_0x1587f7={};for(const _0x389c8c of _0x25d807['entries']())_0x1587f7[_0x389c8c[0x0]]=_0x389c8c[0x1];return null!=_0x23ad2c['body']?{'response':new HttpResponse({'headers':_0x1587f7,'reason':_0x23ad2c['statusText'],'statusCode':_0x23ad2c['status'],'body':_0x23ad2c['body']})}:_0x23ad2c['blob']()['then'](_0x504d09=>({'response':new HttpResponse({'headers':_0x1587f7,'reason':_0x23ad2c['statusText'],'statusCode':_0x23ad2c['status'],'body':_0x504d09})}));}),requestTimeout(_0x3eaeb0)];return _0xe60d39&&_0x2def4c['push'](new Promise((_0x37f49e,_0x101bd9)=>{const _0x4e802d=()=>{const _0x39e657=new Error('Request\x20aborted');_0x39e657['name']='AbortError',_0x101bd9(_0x39e657);};if('function'==typeof _0xe60d39['addEventListener']){const _0x106e5c=_0xe60d39;_0x106e5c['addEventListener']('abort',_0x4e802d,{'once':!0x0}),_0x4937ea=()=>_0x106e5c['removeEventListener']('abort',_0x4e802d);}else _0xe60d39['onabort']=_0x4e802d;})),Promise['race'](_0x2def4c)['finally'](_0x4937ea);}['updateHttpClientConfig'](_0x4330b4,_0x11e3bf){this['config']=void 0x0,this['configProvider']=this['configProvider']['then'](_0x13593c=>(_0x13593c[_0x4330b4]=_0x11e3bf,_0x13593c));}['httpHandlerConfigs'](){return this['config']??{};}}const streamCollector=async _0x33ed87=>'function'==typeof Blob&&_0x33ed87 instanceof Blob||'Blob'===_0x33ed87['constructor']?.['name']?void 0x0!==Blob['prototype']['arrayBuffer']?new Uint8Array(await _0x33ed87['arrayBuffer']()):collectBlob(_0x33ed87):collectStream(_0x33ed87);async function collectBlob(_0x907841){const _0x4225f5=await readToBase64(_0x907841),_0x14b623=fromBase64(_0x4225f5);return new Uint8Array(_0x14b623);}async function collectStream(_0x11eadd){const _0x2a9dd5=[],_0x1b957c=_0x11eadd['getReader']();let _0x3a0ee3=!0x1,_0xdc4e92=0x0;for(;!_0x3a0ee3;){const {done:_0x5e494c,value:_0x3d9080}=await _0x1b957c['read']();_0x3d9080&&(_0x2a9dd5['push'](_0x3d9080),_0xdc4e92+=_0x3d9080['length']),_0x3a0ee3=_0x5e494c;}const _0x57804b=new Uint8Array(_0xdc4e92);let _0x303496=0x0;for(const _0x45255a of _0x2a9dd5)_0x57804b['set'](_0x45255a,_0x303496),_0x303496+=_0x45255a['length'];return _0x57804b;}function readToBase64(_0x347022){return new Promise((_0x18b86e,_0x1b3b3c)=>{const _0x22b6fd=new FileReader();_0x22b6fd['onloadend']=()=>{if(0x2!==_0x22b6fd['readyState'])return _0x1b3b3c(new Error('Reader\x20aborted\x20too\x20early'));const _0x21eb19=_0x22b6fd['result']??'',_0x2d93a9=_0x21eb19['indexOf'](','),_0x2a8e91=_0x2d93a9>-0x1?_0x2d93a9+0x1:_0x21eb19['length'];_0x18b86e(_0x21eb19['substring'](_0x2a8e91));},_0x22b6fd['onabort']=()=>_0x1b3b3c(new Error('Read\x20aborted')),_0x22b6fd['onerror']=()=>_0x1b3b3c(_0x22b6fd['error']),_0x22b6fd['readAsDataURL'](_0x347022);});}const SHORT_TO_HEX={},HEX_TO_SHORT={};for(let e=0x0;e<0x100;e++){let i=e['toString'](0x10)['toLowerCase']();0x1===i['length']&&(i='0'+i),SHORT_TO_HEX[e]=i,HEX_TO_SHORT[i]=e;}function fromHex(_0x57e3db){if(_0x57e3db['length']%0x2!=0x0)throw new Error('Hex\x20encoded\x20strings\x20must\x20have\x20an\x20even\x20number\x20length');const _0x18908a=new Uint8Array(_0x57e3db['length']/0x2);for(let _0x6471a4=0x0;_0x6471a4<_0x57e3db['length'];_0x6471a4+=0x2){const _0x46e46a=_0x57e3db['slice'](_0x6471a4,_0x6471a4+0x2)['toLowerCase']();if(!(_0x46e46a in HEX_TO_SHORT))throw new Error('Cannot\x20decode\x20unrecognized\x20sequence\x20'+_0x46e46a+'\x20as\x20hexadecimal');_0x18908a[_0x6471a4/0x2]=HEX_TO_SHORT[_0x46e46a];}return _0x18908a;}function toHex(_0x5d54fb){let _0x2b1079='';for(let _0x587629=0x0;_0x587629<_0x5d54fb['byteLength'];_0x587629++)_0x2b1079+=SHORT_TO_HEX[_0x5d54fb[_0x587629]];return _0x2b1079;}const collectBody=async(_0xa89747=new Uint8Array(),_0x2a3d48)=>{if(_0xa89747 instanceof Uint8Array)return Uint8ArrayBlobAdapter['mutate'](_0xa89747);if(!_0xa89747)return Uint8ArrayBlobAdapter['mutate'](new Uint8Array());const _0x186fbd=_0x2a3d48['streamCollector'](_0xa89747);return Uint8ArrayBlobAdapter['mutate'](await _0x186fbd);};function extendedEncodeURIComponent(_0x4c3b20){return encodeURIComponent(_0x4c3b20)['replace'](/[!'()*]/g,function(_0x23852c){return'%'+_0x23852c['charCodeAt'](0x0)['toString'](0x10)['toUpperCase']();});}const deref=_0x16acec=>'function'==typeof _0x16acec?_0x16acec():_0x16acec;class TypeRegistry{constructor(_0x4bd76c,_0x568144=new Map()){this['namespace']=_0x4bd76c,this['schemas']=_0x568144;}static['for'](_0x5bc6e0){return TypeRegistry['registries']['has'](_0x5bc6e0)||TypeRegistry['registries']['set'](_0x5bc6e0,new TypeRegistry(_0x5bc6e0)),TypeRegistry['registries']['get'](_0x5bc6e0);}['register'](_0x137110,_0x24a91f){const _0x3adc15=this['normalizeShapeId'](_0x137110);TypeRegistry['for'](this['getNamespace'](_0x137110))['schemas']['set'](_0x3adc15,_0x24a91f);}['getSchema'](_0x5b1e8a){const _0x21a2da=this['normalizeShapeId'](_0x5b1e8a);if(!this['schemas']['has'](_0x21a2da))throw new Error('@smithy/core/schema\x20-\x20schema\x20not\x20found\x20for\x20'+_0x21a2da);return this['schemas']['get'](_0x21a2da);}['getBaseException'](){for(const [_0xed2f39,_0x367c68]of this['schemas']['entries']())if(_0xed2f39['startsWith']('smithy.ts.sdk.synthetic.')&&_0xed2f39['endsWith']('ServiceException'))return _0x367c68;}['find'](_0x1c9ed9){return[...this['schemas']['values']()]['find'](_0x1c9ed9);}['destroy'](){TypeRegistry['registries']['delete'](this['namespace']),this['schemas']['clear']();}['normalizeShapeId'](_0x3d6cd6){return _0x3d6cd6['includes']('#')?_0x3d6cd6:this['namespace']+'#'+_0x3d6cd6;}['getNamespace'](_0x48d2e0){return this['normalizeShapeId'](_0x48d2e0)['split']('#')[0x0];}}TypeRegistry['registries']=new Map();let Schema$1=class{static['assign'](_0x1ff0be,_0x424cd5){const _0x262019=Object['assign'](_0x1ff0be,_0x424cd5);return TypeRegistry['for'](_0x262019['namespace'])['register'](_0x262019['name'],_0x262019),_0x262019;}static[Symbol['hasInstance']](_0x87d5ac){const _0x4da2b2=this['prototype']['isPrototypeOf'](_0x87d5ac);if(!_0x4da2b2&&'object'==typeof _0x87d5ac&&null!==_0x87d5ac)return _0x87d5ac['symbol']===this['symbol'];return _0x4da2b2;}['getName'](){return this['namespace']+'#'+this['name'];}};class ListSchema extends Schema$1{constructor(){super(...arguments),this['symbol']=ListSchema['symbol'];}}ListSchema['symbol']=Symbol['for']('@smithy/lis');class MapSchema extends Schema$1{constructor(){super(...arguments),this['symbol']=MapSchema['symbol'];}}MapSchema['symbol']=Symbol['for']('@smithy/map');class StructureSchema extends Schema$1{constructor(){super(...arguments),this['symbol']=StructureSchema['symbol'];}}StructureSchema['symbol']=Symbol['for']('@smithy/str');const SCHEMA={'BLOB':0x15,'STREAMING_BLOB':0x2a,'BOOLEAN':0x2,'STRING':0x0,'NUMERIC':0x1,'BIG_INTEGER':0x11,'BIG_DECIMAL':0x13,'DOCUMENT':0xf,'TIMESTAMP_DEFAULT':0x4,'TIMESTAMP_DATE_TIME':0x5,'TIMESTAMP_HTTP_DATE':0x6,'TIMESTAMP_EPOCH_SECONDS':0x7,'LIST_MODIFIER':0x40,'MAP_MODIFIER':0x80};class SimpleSchema extends Schema$1{constructor(){super(...arguments),this['symbol']=SimpleSchema['symbol'];}}SimpleSchema['symbol']=Symbol['for']('@smithy/sim');class NormalizedSchema{constructor(_0x5c35bd,_0x12d4dc){this['ref']=_0x5c35bd,this['memberName']=_0x12d4dc,this['symbol']=NormalizedSchema['symbol'];const _0x20a1b6=[];let _0x41258f=_0x5c35bd,_0x1755aa=_0x5c35bd;for(this['_isMemberSchema']=!0x1;Array['isArray'](_0x41258f);)_0x20a1b6['push'](_0x41258f[0x1]),_0x41258f=_0x41258f[0x0],_0x1755aa=deref(_0x41258f),this['_isMemberSchema']=!0x0;if(_0x20a1b6['length']>0x0){this['memberTraits']={};for(let _0x42db7d=_0x20a1b6['length']-0x1;_0x42db7d>=0x0;--_0x42db7d){const _0x3a2914=_0x20a1b6[_0x42db7d];Object['assign'](this['memberTraits'],NormalizedSchema['translateTraits'](_0x3a2914));}}else this['memberTraits']=0x0;if(_0x1755aa instanceof NormalizedSchema)return Object['assign'](this,_0x1755aa),this['memberTraits']=Object['assign']({},_0x1755aa['getMemberTraits'](),this['getMemberTraits']()),this['normalizedTraits']=void 0x0,void(this['memberName']=_0x12d4dc??_0x1755aa['memberName']);if(this['schema']=deref(_0x1755aa),this['schema']&&'object'==typeof this['schema']?this['traits']=this['schema']?.['traits']??{}:this['traits']=0x0,this['name']=(this['schema']instanceof Schema$1?this['schema']['getName']?.():void 0x0)??this['memberName']??this['getSchemaName'](),this['_isMemberSchema']&&!_0x12d4dc)throw new Error('@smithy/core/schema\x20-\x20NormalizedSchema\x20member\x20init\x20'+this['getName'](!0x0)+'\x20missing\x20member\x20name.');}static[Symbol['hasInstance']](_0x473840){return Schema$1[Symbol['hasInstance']]['bind'](this)(_0x473840);}static['of'](_0xa8908f){if(_0xa8908f instanceof NormalizedSchema)return _0xa8908f;if(Array['isArray'](_0xa8908f)){const [_0x24f5a4,_0xc9f6d4]=_0xa8908f;if(_0x24f5a4 instanceof NormalizedSchema)return Object['assign'](_0x24f5a4['getMergedTraits'](),NormalizedSchema['translateTraits'](_0xc9f6d4)),_0x24f5a4;throw new Error('@smithy/core/schema\x20-\x20may\x20not\x20init\x20unwrapped\x20member\x20schema='+JSON['stringify'](_0xa8908f,null,0x2)+'.');}return new NormalizedSchema(_0xa8908f);}static['translateTraits'](_0x303d51){if('object'==typeof _0x303d51)return _0x303d51;_0x303d51|=0x0;const _0x427111={};let _0x5dac7b=0x0;for(const _0x472dc9 of['httpLabel','idempotent','idempotencyToken','sensitive','httpPayload','httpResponseCode','httpQueryParams'])0x1==(_0x303d51>>_0x5dac7b++&0x1)&&(_0x427111[_0x472dc9]=0x1);return _0x427111;}['getSchema'](){return this['schema']instanceof NormalizedSchema?(Object['assign'](this,{'schema':this['schema']['getSchema']()}),this['schema']):this['schema']instanceof SimpleSchema?deref(this['schema']['schemaRef']):deref(this['schema']);}['getName'](_0x380e81=!0x1){return!_0x380e81&&this['name']&&this['name']['includes']('#')?this['name']['split']('#')[0x1]:this['name']||void 0x0;}['getMemberName'](){if(!this['isMemberSchema']())throw new Error('@smithy/core/schema\x20-\x20non-member\x20schema:\x20'+this['getName'](!0x0));return this['memberName'];}['isMemberSchema'](){return this['_isMemberSchema'];}['isUnitSchema'](){return'unit'===this['getSchema']();}['isListSchema'](){const _0x4a62f6=this['getSchema']();return'number'==typeof _0x4a62f6?_0x4a62f6>=SCHEMA['LIST_MODIFIER']&&_0x4a62f6<SCHEMA['MAP_MODIFIER']:_0x4a62f6 instanceof ListSchema;}['isMapSchema'](){const _0x26638c=this['getSchema']();return'number'==typeof _0x26638c?_0x26638c>=SCHEMA['MAP_MODIFIER']&&_0x26638c<=0xff:_0x26638c instanceof MapSchema;}['isStructSchema'](){const _0x4d5216=this['getSchema']();return null!==_0x4d5216&&'object'==typeof _0x4d5216&&'members'in _0x4d5216||_0x4d5216 instanceof StructureSchema;}['isBlobSchema'](){return this['getSchema']()===SCHEMA['BLOB']||this['getSchema']()===SCHEMA['STREAMING_BLOB'];}['isTimestampSchema'](){const _0x568b97=this['getSchema']();return'number'==typeof _0x568b97&&_0x568b97>=SCHEMA['TIMESTAMP_DEFAULT']&&_0x568b97<=SCHEMA['TIMESTAMP_EPOCH_SECONDS'];}['isDocumentSchema'](){return this['getSchema']()===SCHEMA['DOCUMENT'];}['isStringSchema'](){return this['getSchema']()===SCHEMA['STRING'];}['isBooleanSchema'](){return this['getSchema']()===SCHEMA['BOOLEAN'];}['isNumericSchema'](){return this['getSchema']()===SCHEMA['NUMERIC'];}['isBigIntegerSchema'](){return this['getSchema']()===SCHEMA['BIG_INTEGER'];}['isBigDecimalSchema'](){return this['getSchema']()===SCHEMA['BIG_DECIMAL'];}['isStreaming'](){return!!this['getMergedTraits']()['streaming']||this['getSchema']()===SCHEMA['STREAMING_BLOB'];}['isIdempotencyToken'](){return'number'==typeof this['traits']?!(0x4&~this['traits']):'object'==typeof this['traits']&&!!this['traits']['idempotencyToken'];}['getMergedTraits'](){return this['normalizedTraits']??(this['normalizedTraits']={...this['getOwnTraits'](),...this['getMemberTraits']()});}['getMemberTraits'](){return NormalizedSchema['translateTraits'](this['memberTraits']);}['getOwnTraits'](){return NormalizedSchema['translateTraits'](this['traits']);}['getKeySchema'](){if(this['isDocumentSchema']())return this['memberFrom']([SCHEMA['DOCUMENT'],0x0],'key');if(!this['isMapSchema']())throw new Error('@smithy/core/schema\x20-\x20cannot\x20get\x20key\x20for\x20non-map:\x20'+this['getName'](!0x0));const _0x3bde2a=this['getSchema']();return'number'==typeof _0x3bde2a?this['memberFrom']([0x3f&_0x3bde2a,0x0],'key'):this['memberFrom']([_0x3bde2a['keySchema'],0x0],'key');}['getValueSchema'](){const _0x2e07e3=this['getSchema']();if('number'==typeof _0x2e07e3){if(this['isMapSchema']())return this['memberFrom']([0x3f&_0x2e07e3,0x0],'value');if(this['isListSchema']())return this['memberFrom']([0x3f&_0x2e07e3,0x0],'member');}if(_0x2e07e3&&'object'==typeof _0x2e07e3){if(this['isStructSchema']())throw new Error('may\x20not\x20getValueSchema()\x20on\x20structure\x20'+this['getName'](!0x0));const _0x1c4674=_0x2e07e3;if('valueSchema'in _0x1c4674){if(this['isMapSchema']())return this['memberFrom']([_0x1c4674['valueSchema'],0x0],'value');if(this['isListSchema']())return this['memberFrom']([_0x1c4674['valueSchema'],0x0],'member');}}if(this['isDocumentSchema']())return this['memberFrom']([SCHEMA['DOCUMENT'],0x0],'value');throw new Error('@smithy/core/schema\x20-\x20'+this['getName'](!0x0)+'\x20has\x20no\x20value\x20member.');}['hasMemberSchema'](_0x1b1ade){if(this['isStructSchema']())return this['getSchema']()['memberNames']['includes'](_0x1b1ade);return!0x1;}['getMemberSchema'](_0x44f21b){if(this['isStructSchema']()){const _0x50ab23=this['getSchema']();if(!_0x50ab23['memberNames']['includes'](_0x44f21b))throw new Error('@smithy/core/schema\x20-\x20'+this['getName'](!0x0)+'\x20has\x20no\x20member='+_0x44f21b+'.');const _0x5b3c66=_0x50ab23['memberNames']['indexOf'](_0x44f21b),_0x1d40a8=_0x50ab23['memberList'][_0x5b3c66];return this['memberFrom'](Array['isArray'](_0x1d40a8)?_0x1d40a8:[_0x1d40a8,0x0],_0x44f21b);}if(this['isDocumentSchema']())return this['memberFrom']([SCHEMA['DOCUMENT'],0x0],_0x44f21b);throw new Error('@smithy/core/schema\x20-\x20'+this['getName'](!0x0)+'\x20has\x20no\x20members.');}['getMemberSchemas'](){const _0x53163f={};try{for(const [_0x179421,_0x96d27b]of this['structIterator']())_0x53163f[_0x179421]=_0x96d27b;}catch(_0x44e106){}return _0x53163f;}['getEventStreamMember'](){if(this['isStructSchema']()){for(const [_0x3481c2,_0xc65927]of this['structIterator']())if(_0xc65927['isStreaming']()&&_0xc65927['isStructSchema']())return _0x3481c2;}return'';}*['structIterator'](){if(this['isUnitSchema']())return;if(!this['isStructSchema']())throw new Error('@smithy/core/schema\x20-\x20cannot\x20iterate\x20non-struct\x20schema.');const _0x3f3514=this['getSchema']();for(let _0x2a2fc8=0x0;_0x2a2fc8<_0x3f3514['memberNames']['length'];++_0x2a2fc8)yield[_0x3f3514['memberNames'][_0x2a2fc8],this['memberFrom']([_0x3f3514['memberList'][_0x2a2fc8],0x0],_0x3f3514['memberNames'][_0x2a2fc8])];}['memberFrom'](_0x173abf,_0x218a76){return _0x173abf instanceof NormalizedSchema?Object['assign'](_0x173abf,{'memberName':_0x218a76,'_isMemberSchema':!0x0}):new NormalizedSchema(_0x173abf,_0x218a76);}['getSchemaName'](){const _0x3376b9=this['getSchema']();if('number'==typeof _0x3376b9){const _0x30bff2=0x3f&_0x3376b9,_0x1e05f7=0xc0&_0x3376b9,_0x3453b9=Object['entries'](SCHEMA)['find'](([,_0x207a16])=>_0x207a16===_0x30bff2)?.[0x0]??'Unknown';switch(_0x1e05f7){case SCHEMA['MAP_MODIFIER']:return _0x3453b9+'Map';case SCHEMA['LIST_MODIFIER']:return _0x3453b9+'List';case 0x0:return _0x3453b9;}}return'Unknown';}}NormalizedSchema['symbol']=Symbol['for']('@smithy/nor');const expectLong=_0x1fef16=>{if(null!=_0x1fef16){if(Number['isInteger'](_0x1fef16)&&!Number['isNaN'](_0x1fef16))return _0x1fef16;throw new TypeError('Expected\x20integer,\x20got\x20'+typeof _0x1fef16+':\x20'+_0x1fef16);}},expectInt32=_0x58c74b=>expectSizedInt(_0x58c74b,0x20),expectSizedInt=(_0x1de0f0,_0x304246)=>{const _0x12db8a=expectLong(_0x1de0f0);if(void 0x0!==_0x12db8a&&castInt(_0x12db8a,_0x304246)!==_0x12db8a)throw new TypeError('Expected\x20'+_0x304246+'-bit\x20integer,\x20got\x20'+_0x1de0f0);return _0x12db8a;},castInt=(_0x53ac8f,_0x23967c)=>{switch(_0x23967c){case 0x20:return Int32Array['of'](_0x53ac8f)[0x0];case 0x10:return Int16Array['of'](_0x53ac8f)[0x0];case 0x8:return Int8Array['of'](_0x53ac8f)[0x0];}},expectString=_0x23e718=>{if(null!=_0x23e718){if('string'==typeof _0x23e718)return _0x23e718;if(['boolean','number','bigint']['includes'](typeof _0x23e718))return logger['warn'](stackTraceWarning('Expected\x20string,\x20got\x20'+typeof _0x23e718+':\x20'+_0x23e718)),String(_0x23e718);throw new TypeError('Expected\x20string,\x20got\x20'+typeof _0x23e718+':\x20'+_0x23e718);}},stackTraceWarning=_0x4737de=>String(new TypeError(_0x4737de)['stack']||_0x4737de)['split']('\x0a')['slice'](0x0,0x5)['filter'](_0x2db76e=>!_0x2db76e['includes']('stackTraceWarning'))['join']('\x0a'),logger={'warn':console['warn']};let getRandomValues;const rnds8=new Uint8Array(0x10);function rng(){if(!getRandomValues&&(getRandomValues='undefined'!=typeof crypto&&crypto['getRandomValues']&&crypto['getRandomValues']['bind'](crypto),!getRandomValues))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return getRandomValues(rnds8);}const byteToHex=[];for(let e=0x0;e<0x100;++e)byteToHex['push']((e+0x100)['toString'](0x10)['slice'](0x1));function unsafeStringify(_0xb77502,_0x5b2aab=0x0){return byteToHex[_0xb77502[_0x5b2aab+0x0]]+byteToHex[_0xb77502[_0x5b2aab+0x1]]+byteToHex[_0xb77502[_0x5b2aab+0x2]]+byteToHex[_0xb77502[_0x5b2aab+0x3]]+'-'+byteToHex[_0xb77502[_0x5b2aab+0x4]]+byteToHex[_0xb77502[_0x5b2aab+0x5]]+'-'+byteToHex[_0xb77502[_0x5b2aab+0x6]]+byteToHex[_0xb77502[_0x5b2aab+0x7]]+'-'+byteToHex[_0xb77502[_0x5b2aab+0x8]]+byteToHex[_0xb77502[_0x5b2aab+0x9]]+'-'+byteToHex[_0xb77502[_0x5b2aab+0xa]]+byteToHex[_0xb77502[_0x5b2aab+0xb]]+byteToHex[_0xb77502[_0x5b2aab+0xc]]+byteToHex[_0xb77502[_0x5b2aab+0xd]]+byteToHex[_0xb77502[_0x5b2aab+0xe]]+byteToHex[_0xb77502[_0x5b2aab+0xf]];}const randomUUID='undefined'!=typeof crypto&&crypto['randomUUID']&&crypto['randomUUID']['bind'](crypto);var native$1={'randomUUID':randomUUID};function v4(_0x4cc274,_0x42c703,_0x3273dc){if(native$1['randomUUID']&&!_0x4cc274)return native$1['randomUUID']();const _0x173e90=(_0x4cc274=_0x4cc274||{})['random']||(_0x4cc274['rng']||rng)();return _0x173e90[0x6]=0xf&_0x173e90[0x6]|0x40,_0x173e90[0x8]=0x3f&_0x173e90[0x8]|0x80,unsafeStringify(_0x173e90);}const resolvedPath=(_0x3d9bbd,_0x1cd3f6,_0x40c91f,_0x495e66,_0x3fe298,_0x146724)=>{if(null==_0x1cd3f6||void 0x0===_0x1cd3f6[_0x40c91f])throw new Error('No\x20value\x20provided\x20for\x20input\x20HTTP\x20label:\x20'+_0x40c91f+'.');{const _0x57c46f=_0x495e66();if(_0x57c46f['length']<=0x0)throw new Error('Empty\x20value\x20provided\x20for\x20input\x20HTTP\x20label:\x20'+_0x40c91f+'.');_0x3d9bbd=_0x3d9bbd['replace'](_0x3fe298,_0x146724?_0x57c46f['split']('/')['map'](_0x1ccba2=>extendedEncodeURIComponent(_0x1ccba2))['join']('/'):extendedEncodeURIComponent(_0x57c46f));}return _0x3d9bbd;};function requestBuilder(_0x2892f6,_0x41659c){return new RequestBuilder(_0x2892f6,_0x41659c);}class RequestBuilder{constructor(_0x53a8e6,_0x47a199){this['input']=_0x53a8e6,this['context']=_0x47a199,this['query']={},this['method']='',this['headers']={},this['path']='',this['body']=null,this['hostname']='',this['resolvePathStack']=[];}async['build'](){const {hostname:_0x2ce476,protocol:_0x5b58b0='https',port:_0x2d85ad,path:_0x5eed7b}=await this['context']['endpoint']();this['path']=_0x5eed7b;for(const _0x1bd5ab of this['resolvePathStack'])_0x1bd5ab(this['path']);return new HttpRequest({'protocol':_0x5b58b0,'hostname':this['hostname']||_0x2ce476,'port':_0x2d85ad,'method':this['method'],'path':this['path'],'query':this['query'],'body':this['body'],'headers':this['headers']});}['hn'](_0x214019){return this['hostname']=_0x214019,this;}['bp'](_0xa0c236){return this['resolvePathStack']['push'](_0x58b61b=>{this['path']=''+(_0x58b61b?.['endsWith']('/')?_0x58b61b['slice'](0x0,-0x1):_0x58b61b||'')+_0xa0c236;}),this;}['p'](_0x4a05fc,_0x5bcbcf,_0x39b5ac,_0x2f56d5){return this['resolvePathStack']['push'](_0x35a9b7=>{this['path']=resolvedPath(_0x35a9b7,this['input'],_0x4a05fc,_0x5bcbcf,_0x39b5ac,_0x2f56d5);}),this;}['h'](_0x41d495){return this['headers']=_0x41d495,this;}['q'](_0x307485){return this['query']=_0x307485,this;}['b'](_0x6035e6){return this['body']=_0x6035e6,this;}['m'](_0x1f8559){return this['method']=_0x1f8559,this;}}function setFeature$1(_0x49618d,_0x261192,_0x52b12f){_0x49618d['__smithy_context']?_0x49618d['__smithy_context']['features']||(_0x49618d['__smithy_context']['features']={}):_0x49618d['__smithy_context']={'features':{}},_0x49618d['__smithy_context']['features'][_0x261192]=_0x52b12f;}class DefaultIdentityProviderConfig{constructor(_0x450f57){this['authSchemes']=new Map();for(const [_0x259cca,_0x4e096d]of Object['entries'](_0x450f57))void 0x0!==_0x4e096d&&this['authSchemes']['set'](_0x259cca,_0x4e096d);}['getIdentityProvider'](_0x1c5605){return this['authSchemes']['get'](_0x1c5605);}}const createIsIdentityExpiredFunction=_0x5ca5b1=>_0x16e1cc=>doesIdentityRequireRefresh(_0x16e1cc)&&_0x16e1cc['expiration']['getTime']()-Date['now']()<_0x5ca5b1,EXPIRATION_MS=0x493e0,isIdentityExpired=createIsIdentityExpiredFunction(EXPIRATION_MS),doesIdentityRequireRefresh=_0x2e9f51=>void 0x0!==_0x2e9f51['expiration'],memoizeIdentityProvider=(_0x4c2c6b,_0x11e500,_0xa09f14)=>{if(void 0x0===_0x4c2c6b)return;const _0x546bd7='function'!=typeof _0x4c2c6b?async()=>Promise['resolve'](_0x4c2c6b):_0x4c2c6b;let _0x41bd70,_0x141a84,_0x4eeee2,_0x42205b=!0x1;const _0x3e30be=async _0x39a572=>{_0x141a84||(_0x141a84=_0x546bd7(_0x39a572));try{_0x41bd70=await _0x141a84,_0x4eeee2=!0x0,_0x42205b=!0x1;}finally{_0x141a84=void 0x0;}return _0x41bd70;};return void 0x0===_0x11e500?async _0x519648=>(_0x4eeee2&&!_0x519648?.['forceRefresh']||(_0x41bd70=await _0x3e30be(_0x519648)),_0x41bd70):async _0x3ca142=>(_0x4eeee2&&!_0x3ca142?.['forceRefresh']||(_0x41bd70=await _0x3e30be(_0x3ca142)),_0x42205b?_0x41bd70:_0xa09f14(_0x41bd70)?_0x11e500(_0x41bd70)?(await _0x3e30be(_0x3ca142),_0x41bd70):_0x41bd70:(_0x42205b=!0x0,_0x41bd70));},DEFAULT_UA_APP_ID=void 0x0;function isValidUserAgentAppId(_0x15c43c){return void 0x0===_0x15c43c||'string'==typeof _0x15c43c&&_0x15c43c['length']<=0x32;}function resolveUserAgentConfig(_0x46127b){const _0x4cd92d=normalizeProvider(_0x46127b['userAgentAppId']??DEFAULT_UA_APP_ID),{customUserAgent:_0x1a7199}=_0x46127b;return Object['assign'](_0x46127b,{'customUserAgent':'string'==typeof _0x1a7199?[[_0x1a7199]]:_0x1a7199,'userAgentAppId':async()=>{const _0x50b89e=await _0x4cd92d();if(!isValidUserAgentAppId(_0x50b89e)){const _0x4d1361='NoOpLogger'!==_0x46127b['logger']?.['constructor']?.['name']&&_0x46127b['logger']?_0x46127b['logger']:console;'string'!=typeof _0x50b89e?_0x4d1361?.['warn']('userAgentAppId\x20must\x20be\x20a\x20string\x20or\x20undefined.'):_0x50b89e['length']>0x32&&_0x4d1361?.['warn']('The\x20provided\x20userAgentAppId\x20exceeds\x20the\x20maximum\x20length\x20of\x2050\x20characters.');}return _0x50b89e;}});}class EndpointCache{constructor({size:_0x5ef811,params:_0x36fc12}){this['data']=new Map(),this['parameters']=[],this['capacity']=_0x5ef811??0x32,_0x36fc12&&(this['parameters']=_0x36fc12);}['get'](_0x104057,_0x4268fe){const _0x46e05e=this['hash'](_0x104057);if(!0x1===_0x46e05e)return _0x4268fe();if(!this['data']['has'](_0x46e05e)){if(this['data']['size']>this['capacity']+0xa){const _0x146545=this['data']['keys']();let _0x572aed=0x0;for(;;){const {value:_0x4c6f14,done:_0x3f74a0}=_0x146545['next']();if(this['data']['delete'](_0x4c6f14),_0x3f74a0||++_0x572aed>0xa)break;}}this['data']['set'](_0x46e05e,_0x4268fe());}return this['data']['get'](_0x46e05e);}['size'](){return this['data']['size'];}['hash'](_0x5a57dd){let _0x48c896='';const {parameters:_0x326674}=this;if(0x0===_0x326674['length'])return!0x1;for(const _0x524b80 of _0x326674){const _0x4bacd1=String(_0x5a57dd[_0x524b80]??'');if(_0x4bacd1['includes']('|;'))return!0x1;_0x48c896+=_0x4bacd1+'|;';}return _0x48c896;}}const IP_V4_REGEX=new RegExp('^(?:25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]\x5cd|\x5cd)(?:\x5c.(?:25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]\x5cd|\x5cd)){3}$'),isIpAddress=_0x2ebb64=>IP_V4_REGEX['test'](_0x2ebb64)||_0x2ebb64['startsWith']('[')&&_0x2ebb64['endsWith'](']'),VALID_HOST_LABEL_REGEX=new RegExp('^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$'),isValidHostLabel=(_0x2364fb,_0x6a5838=!0x1)=>{if(!_0x6a5838)return VALID_HOST_LABEL_REGEX['test'](_0x2364fb);const _0xfc0110=_0x2364fb['split']('.');for(const _0x9e3950 of _0xfc0110)if(!isValidHostLabel(_0x9e3950))return!0x1;return!0x0;},customEndpointFunctions={},debugId='endpoints';function toDebugString(_0xcd629e){return'object'!=typeof _0xcd629e||null==_0xcd629e?_0xcd629e:'ref'in _0xcd629e?'$'+toDebugString(_0xcd629e['ref']):'fn'in _0xcd629e?_0xcd629e['fn']+'('+(_0xcd629e['argv']||[])['map'](toDebugString)['join'](',\x20')+')':JSON['stringify'](_0xcd629e,null,0x2);}class EndpointError extends Error{constructor(_0x3e6668){super(_0x3e6668),this['name']='EndpointError';}}const booleanEquals=(_0xf12cff,_0x476bc7)=>_0xf12cff===_0x476bc7,getAttrPathList=_0x5c6fb0=>{const _0x58a3b7=_0x5c6fb0['split']('.'),_0xfbb0a8=[];for(const _0x39f869 of _0x58a3b7){const _0x6faa13=_0x39f869['indexOf']('[');if(-0x1!==_0x6faa13){if(_0x39f869['indexOf'](']')!==_0x39f869['length']-0x1)throw new EndpointError('Path:\x20\x27'+_0x5c6fb0+'\x27\x20does\x20not\x20end\x20with\x20\x27]\x27');const _0x5ce7d0=_0x39f869['slice'](_0x6faa13+0x1,-0x1);if(Number['isNaN'](parseInt(_0x5ce7d0)))throw new EndpointError('Invalid\x20array\x20index:\x20\x27'+_0x5ce7d0+'\x27\x20in\x20path:\x20\x27'+_0x5c6fb0+'\x27');0x0!==_0x6faa13&&_0xfbb0a8['push'](_0x39f869['slice'](0x0,_0x6faa13)),_0xfbb0a8['push'](_0x5ce7d0);}else _0xfbb0a8['push'](_0x39f869);}return _0xfbb0a8;},getAttr=(_0x10d167,_0x237e5a)=>getAttrPathList(_0x237e5a)['reduce']((_0x1ccf07,_0x56dd76)=>{if('object'!=typeof _0x1ccf07)throw new EndpointError('Index\x20\x27'+_0x56dd76+'\x27\x20in\x20\x27'+_0x237e5a+'\x27\x20not\x20found\x20in\x20\x27'+JSON['stringify'](_0x10d167)+'\x27');return Array['isArray'](_0x1ccf07)?_0x1ccf07[parseInt(_0x56dd76)]:_0x1ccf07[_0x56dd76];},_0x10d167),isSet=_0x3db4f2=>null!=_0x3db4f2,not=_0x19b9c8=>!_0x19b9c8,DEFAULT_PORTS={[EndpointURLScheme['HTTP']]:0x50,[EndpointURLScheme['HTTPS']]:0x1bb},parseURL$1=_0x14de4f=>{const _0x31d983=((()=>{try{if(_0x14de4f instanceof URL)return _0x14de4f;if('object'==typeof _0x14de4f&&'hostname'in _0x14de4f){const {hostname:_0xb1b812,port:_0x58e545,protocol:_0x12c87e='',path:_0x38b780='',query:_0x55af91={}}=_0x14de4f,_0x2f7d75=new URL(_0x12c87e+'//'+_0xb1b812+(_0x58e545?':'+_0x58e545:'')+_0x38b780);return _0x2f7d75['search']=Object['entries'](_0x55af91)['map'](([_0x348c65,_0x1179be])=>_0x348c65+'='+_0x1179be)['join']('&'),_0x2f7d75;}return new URL(_0x14de4f);}catch(_0x3238fa){return null;}})());if(!_0x31d983)return console['error']('Unable\x20to\x20parse\x20'+JSON['stringify'](_0x14de4f)+'\x20as\x20a\x20whatwg\x20URL.'),null;const _0x1f5c37=_0x31d983['href'],{host:_0x5cfa7a,hostname:_0x1b0c7f,pathname:_0x53bc80,protocol:_0x1feadf,search:_0x1ab0a9}=_0x31d983;if(_0x1ab0a9)return null;const _0x40d5cb=_0x1feadf['slice'](0x0,-0x1);if(!Object['values'](EndpointURLScheme)['includes'](_0x40d5cb))return null;const _0x369b8e=isIpAddress(_0x1b0c7f);return{'scheme':_0x40d5cb,'authority':''+_0x5cfa7a+(_0x1f5c37['includes'](_0x5cfa7a+':'+DEFAULT_PORTS[_0x40d5cb])||'string'==typeof _0x14de4f&&_0x14de4f['includes'](_0x5cfa7a+':'+DEFAULT_PORTS[_0x40d5cb])?':'+DEFAULT_PORTS[_0x40d5cb]:''),'path':_0x53bc80,'normalizedPath':_0x53bc80['endsWith']('/')?_0x53bc80:_0x53bc80+'/','isIp':_0x369b8e};},stringEquals=(_0x3d949c,_0x21aa4a)=>_0x3d949c===_0x21aa4a,substring=(_0x2f37f5,_0x18115b,_0x56e371,_0x4d6c0d)=>_0x18115b>=_0x56e371||_0x2f37f5['length']<_0x56e371?null:_0x4d6c0d?_0x2f37f5['substring'](_0x2f37f5['length']-_0x56e371,_0x2f37f5['length']-_0x18115b):_0x2f37f5['substring'](_0x18115b,_0x56e371),uriEncode=_0x33b8d0=>encodeURIComponent(_0x33b8d0)['replace'](/[!*'()]/g,_0x1ff4b6=>'%'+_0x1ff4b6['charCodeAt'](0x0)['toString'](0x10)['toUpperCase']()),endpointFunctions={'booleanEquals':booleanEquals,'getAttr':getAttr,'isSet':isSet,'isValidHostLabel':isValidHostLabel,'not':not,'parseURL':parseURL$1,'stringEquals':stringEquals,'substring':substring,'uriEncode':uriEncode},evaluateTemplate=(_0x3a386a,_0x297db1)=>{const _0x21ac02=[],_0xec54b8={..._0x297db1['endpointParams'],..._0x297db1['referenceRecord']};let _0x32c17c=0x0;for(;_0x32c17c<_0x3a386a['length'];){const _0x29e8e9=_0x3a386a['indexOf']('{',_0x32c17c);if(-0x1===_0x29e8e9){_0x21ac02['push'](_0x3a386a['slice'](_0x32c17c));break;}_0x21ac02['push'](_0x3a386a['slice'](_0x32c17c,_0x29e8e9));const _0x2fa8f0=_0x3a386a['indexOf']('}',_0x29e8e9);if(-0x1===_0x2fa8f0){_0x21ac02['push'](_0x3a386a['slice'](_0x29e8e9));break;}'{'===_0x3a386a[_0x29e8e9+0x1]&&'}'===_0x3a386a[_0x2fa8f0+0x1]&&(_0x21ac02['push'](_0x3a386a['slice'](_0x29e8e9+0x1,_0x2fa8f0)),_0x32c17c=_0x2fa8f0+0x2);const _0x3c30ef=_0x3a386a['substring'](_0x29e8e9+0x1,_0x2fa8f0);if(_0x3c30ef['includes']('#')){const [_0x1555c5,_0x4c5ca0]=_0x3c30ef['split']('#');_0x21ac02['push'](getAttr(_0xec54b8[_0x1555c5],_0x4c5ca0));}else _0x21ac02['push'](_0xec54b8[_0x3c30ef]);_0x32c17c=_0x2fa8f0+0x1;}return _0x21ac02['join']('');},getReferenceValue=({ref:_0x165b14},_0x3ea8af)=>({..._0x3ea8af['endpointParams'],..._0x3ea8af['referenceRecord']}[_0x165b14]),evaluateExpression=(_0x79c4a6,_0x14e208,_0x5aebf7)=>{if('string'==typeof _0x79c4a6)return evaluateTemplate(_0x79c4a6,_0x5aebf7);if(_0x79c4a6['fn'])return callFunction(_0x79c4a6,_0x5aebf7);if(_0x79c4a6['ref'])return getReferenceValue(_0x79c4a6,_0x5aebf7);throw new EndpointError('\x27'+_0x14e208+'\x27:\x20'+String(_0x79c4a6)+'\x20is\x20not\x20a\x20string,\x20function\x20or\x20reference.');},callFunction=({fn:_0x3c102e,argv:_0x279bf5},_0x451b4b)=>{const _0x19fe59=_0x279bf5['map'](_0x30b6cb=>['boolean','number']['includes'](typeof _0x30b6cb)?_0x30b6cb:evaluateExpression(_0x30b6cb,'arg',_0x451b4b)),_0x410eec=_0x3c102e['split']('.');return _0x410eec[0x0]in customEndpointFunctions&&null!=_0x410eec[0x1]?customEndpointFunctions[_0x410eec[0x0]][_0x410eec[0x1]](..._0x19fe59):endpointFunctions[_0x3c102e](..._0x19fe59);},evaluateCondition=({assign:_0x1da6bf,..._0x44757a},_0xef32ad)=>{if(_0x1da6bf&&_0x1da6bf in _0xef32ad['referenceRecord'])throw new EndpointError('\x27'+_0x1da6bf+'\x27\x20is\x20already\x20defined\x20in\x20Reference\x20Record.');const _0x16283c=callFunction(_0x44757a,_0xef32ad);return _0xef32ad['logger']?.['debug']?.(debugId+'\x20evaluateCondition:\x20'+toDebugString(_0x44757a)+'\x20=\x20'+toDebugString(_0x16283c)),{'result':''===_0x16283c||!!_0x16283c,...null!=_0x1da6bf&&{'toAssign':{'name':_0x1da6bf,'value':_0x16283c}}};},evaluateConditions=(_0x4e11b2=[],_0x370c03)=>{const _0x287f75={};for(const _0x477e59 of _0x4e11b2){const {result:_0x1d79ca,toAssign:_0x23534d}=evaluateCondition(_0x477e59,{..._0x370c03,'referenceRecord':{..._0x370c03['referenceRecord'],..._0x287f75}});if(!_0x1d79ca)return{'result':_0x1d79ca};_0x23534d&&(_0x287f75[_0x23534d['name']]=_0x23534d['value'],_0x370c03['logger']?.['debug']?.(debugId+'\x20assign:\x20'+_0x23534d['name']+'\x20:=\x20'+toDebugString(_0x23534d['value'])));}return{'result':!0x0,'referenceRecord':_0x287f75};},getEndpointHeaders=(_0x536371,_0xc73e2)=>Object['entries'](_0x536371)['reduce']((_0x14f5cd,[_0x5e314b,_0x536dbc])=>({..._0x14f5cd,[_0x5e314b]:_0x536dbc['map'](_0x31e99b=>{const _0x3df4a9=evaluateExpression(_0x31e99b,'Header\x20value\x20entry',_0xc73e2);if('string'!=typeof _0x3df4a9)throw new EndpointError('Header\x20\x27'+_0x5e314b+'\x27\x20value\x20\x27'+_0x3df4a9+'\x27\x20is\x20not\x20a\x20string');return _0x3df4a9;})}),{}),getEndpointProperty=(_0x216582,_0x3222ea)=>{if(Array['isArray'](_0x216582))return _0x216582['map'](_0x1cb386=>getEndpointProperty(_0x1cb386,_0x3222ea));switch(typeof _0x216582){case'string':return evaluateTemplate(_0x216582,_0x3222ea);case'object':if(null===_0x216582)throw new EndpointError('Unexpected\x20endpoint\x20property:\x20'+_0x216582);return getEndpointProperties(_0x216582,_0x3222ea);case'boolean':return _0x216582;default:throw new EndpointError('Unexpected\x20endpoint\x20property\x20type:\x20'+typeof _0x216582);}},getEndpointProperties=(_0x594c90,_0x36fa20)=>Object['entries'](_0x594c90)['reduce']((_0x3559bd,[_0x3cbe06,_0x4a9ffd])=>({..._0x3559bd,[_0x3cbe06]:getEndpointProperty(_0x4a9ffd,_0x36fa20)}),{}),getEndpointUrl=(_0x37f602,_0x46e303)=>{const _0x2d2a90=evaluateExpression(_0x37f602,'Endpoint\x20URL',_0x46e303);if('string'==typeof _0x2d2a90)try{return new URL(_0x2d2a90);}catch(_0x45d3be){throw console['error']('Failed\x20to\x20construct\x20URL\x20with\x20'+_0x2d2a90,_0x45d3be),_0x45d3be;}throw new EndpointError('Endpoint\x20URL\x20must\x20be\x20a\x20string,\x20got\x20'+typeof _0x2d2a90);},evaluateEndpointRule=(_0x10af80,_0x1fc920)=>{const {conditions:_0x5117a2,endpoint:_0x87f69d}=_0x10af80,{result:_0x24fc7b,referenceRecord:_0x2197d4}=evaluateConditions(_0x5117a2,_0x1fc920);if(!_0x24fc7b)return;const _0x48b5f2={..._0x1fc920,'referenceRecord':{..._0x1fc920['referenceRecord'],..._0x2197d4}},{url:_0x416b41,properties:_0x380719,headers:_0x47c6c3}=_0x87f69d;return _0x1fc920['logger']?.['debug']?.(debugId+'\x20Resolving\x20endpoint\x20from\x20template:\x20'+toDebugString(_0x87f69d)),{...null!=_0x47c6c3&&{'headers':getEndpointHeaders(_0x47c6c3,_0x48b5f2)},...null!=_0x380719&&{'properties':getEndpointProperties(_0x380719,_0x48b5f2)},'url':getEndpointUrl(_0x416b41,_0x48b5f2)};},evaluateErrorRule=(_0xa6f03c,_0x2a2aaf)=>{const {conditions:_0x24eb53,error:_0x373b9d}=_0xa6f03c,{result:_0x5318a4,referenceRecord:_0x3ea597}=evaluateConditions(_0x24eb53,_0x2a2aaf);if(_0x5318a4)throw new EndpointError(evaluateExpression(_0x373b9d,'Error',{..._0x2a2aaf,'referenceRecord':{..._0x2a2aaf['referenceRecord'],..._0x3ea597}}));},evaluateTreeRule=(_0x138fb3,_0x357b8c)=>{const {conditions:_0x5d66c5,rules:_0x49054a}=_0x138fb3,{result:_0x58c29b,referenceRecord:_0xf421b9}=evaluateConditions(_0x5d66c5,_0x357b8c);if(_0x58c29b)return evaluateRules(_0x49054a,{..._0x357b8c,'referenceRecord':{..._0x357b8c['referenceRecord'],..._0xf421b9}});},evaluateRules=(_0x194a08,_0x9daacd)=>{for(const _0x4acaf6 of _0x194a08)if('endpoint'===_0x4acaf6['type']){const _0x1cd3cf=evaluateEndpointRule(_0x4acaf6,_0x9daacd);if(_0x1cd3cf)return _0x1cd3cf;}else{if('error'===_0x4acaf6['type'])evaluateErrorRule(_0x4acaf6,_0x9daacd);else{if('tree'!==_0x4acaf6['type'])throw new EndpointError('Unknown\x20endpoint\x20rule:\x20'+_0x4acaf6);{const _0x2b4d25=evaluateTreeRule(_0x4acaf6,_0x9daacd);if(_0x2b4d25)return _0x2b4d25;}}}throw new EndpointError('Rules\x20evaluation\x20failed');},resolveEndpoint=(_0x255e92,_0xaaa02b)=>{const {endpointParams:_0x4ba2bc,logger:_0x2699d2}=_0xaaa02b,{parameters:_0x4e226b,rules:_0x3b3ba7}=_0x255e92;_0xaaa02b['logger']?.['debug']?.(debugId+'\x20Initial\x20EndpointParams:\x20'+toDebugString(_0x4ba2bc));const _0xaa27b4=Object['entries'](_0x4e226b)['filter'](([,_0x15c90e])=>null!=_0x15c90e['default'])['map'](([_0x543c85,_0x530b07])=>[_0x543c85,_0x530b07['default']]);if(_0xaa27b4['length']>0x0){for(const [_0x33ecd1,_0x1fc3be]of _0xaa27b4)_0x4ba2bc[_0x33ecd1]=_0x4ba2bc[_0x33ecd1]??_0x1fc3be;}const _0x27b18f=Object['entries'](_0x4e226b)['filter'](([,_0x363226])=>_0x363226['required'])['map'](([_0x4c674a])=>_0x4c674a);for(const _0x18817 of _0x27b18f)if(null==_0x4ba2bc[_0x18817])throw new EndpointError('Missing\x20required\x20parameter:\x20\x27'+_0x18817+'\x27');const _0x29299e=evaluateRules(_0x3b3ba7,{'endpointParams':_0x4ba2bc,'logger':_0x2699d2,'referenceRecord':{}});return _0xaaa02b['logger']?.['debug']?.(debugId+'\x20Resolved\x20endpoint:\x20'+toDebugString(_0x29299e)),_0x29299e;},isVirtualHostableS3Bucket=(_0x7e018a,_0x31fe23=!0x1)=>{if(_0x31fe23){for(const _0x4ec833 of _0x7e018a['split']('.'))if(!isVirtualHostableS3Bucket(_0x4ec833))return!0x1;return!0x0;}return!!isValidHostLabel(_0x7e018a)&&(!(_0x7e018a['length']<0x3||_0x7e018a['length']>0x3f)&&(_0x7e018a===_0x7e018a['toLowerCase']()&&!isIpAddress(_0x7e018a)));},ARN_DELIMITER=':',RESOURCE_DELIMITER='/',parseArn=_0x2a6bb1=>{const _0x2fccf6=_0x2a6bb1['split'](ARN_DELIMITER);if(_0x2fccf6['length']<0x6)return null;const [_0xd7b8a1,_0x445aae,_0x45fe14,_0x3a015c,_0x20d451,..._0x5df482]=_0x2fccf6;if('arn'!==_0xd7b8a1||''===_0x445aae||''===_0x45fe14||''===_0x5df482['join'](ARN_DELIMITER))return null;return{'partition':_0x445aae,'service':_0x45fe14,'region':_0x3a015c,'accountId':_0x20d451,'resourceId':_0x5df482['map'](_0x32820c=>_0x32820c['split'](RESOURCE_DELIMITER))['flat']()};};var partitions=[{'id':'aws','outputs':{'dnsSuffix':'amazonaws.com','dualStackDnsSuffix':'api.aws','implicitGlobalRegion':'us-east-1','name':'aws','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^(us|eu|ap|sa|ca|me|af|il|mx)\x5c-\x5cw+\x5c-\x5cd+$','regions':{'af-south-1':{'description':'Africa\x20(Cape\x20Town)'},'ap-east-1':{'description':'Asia\x20Pacific\x20(Hong\x20Kong)'},'ap-northeast-1':{'description':'Asia\x20Pacific\x20(Tokyo)'},'ap-northeast-2':{'description':'Asia\x20Pacific\x20(Seoul)'},'ap-northeast-3':{'description':'Asia\x20Pacific\x20(Osaka)'},'ap-south-1':{'description':'Asia\x20Pacific\x20(Mumbai)'},'ap-south-2':{'description':'Asia\x20Pacific\x20(Hyderabad)'},'ap-southeast-1':{'description':'Asia\x20Pacific\x20(Singapore)'},'ap-southeast-2':{'description':'Asia\x20Pacific\x20(Sydney)'},'ap-southeast-3':{'description':'Asia\x20Pacific\x20(Jakarta)'},'ap-southeast-4':{'description':'Asia\x20Pacific\x20(Melbourne)'},'ap-southeast-5':{'description':'Asia\x20Pacific\x20(Malaysia)'},'ap-southeast-7':{'description':'Asia\x20Pacific\x20(Thailand)'},'aws-global':{'description':'AWS\x20Standard\x20global\x20region'},'ca-central-1':{'description':'Canada\x20(Central)'},'ca-west-1':{'description':'Canada\x20West\x20(Calgary)'},'eu-central-1':{'description':'Europe\x20(Frankfurt)'},'eu-central-2':{'description':'Europe\x20(Zurich)'},'eu-north-1':{'description':'Europe\x20(Stockholm)'},'eu-south-1':{'description':'Europe\x20(Milan)'},'eu-south-2':{'description':'Europe\x20(Spain)'},'eu-west-1':{'description':'Europe\x20(Ireland)'},'eu-west-2':{'description':'Europe\x20(London)'},'eu-west-3':{'description':'Europe\x20(Paris)'},'il-central-1':{'description':'Israel\x20(Tel\x20Aviv)'},'me-central-1':{'description':'Middle\x20East\x20(UAE)'},'me-south-1':{'description':'Middle\x20East\x20(Bahrain)'},'mx-central-1':{'description':'Mexico\x20(Central)'},'sa-east-1':{'description':'South\x20America\x20(Sao\x20Paulo)'},'us-east-1':{'description':'US\x20East\x20(N.\x20Virginia)'},'us-east-2':{'description':'US\x20East\x20(Ohio)'},'us-west-1':{'description':'US\x20West\x20(N.\x20California)'},'us-west-2':{'description':'US\x20West\x20(Oregon)'}}},{'id':'aws-cn','outputs':{'dnsSuffix':'amazonaws.com.cn','dualStackDnsSuffix':'api.amazonwebservices.com.cn','implicitGlobalRegion':'cn-northwest-1','name':'aws-cn','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^cn\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-cn-global':{'description':'AWS\x20China\x20global\x20region'},'cn-north-1':{'description':'China\x20(Beijing)'},'cn-northwest-1':{'description':'China\x20(Ningxia)'}}},{'id':'aws-us-gov','outputs':{'dnsSuffix':'amazonaws.com','dualStackDnsSuffix':'api.aws','implicitGlobalRegion':'us-gov-west-1','name':'aws-us-gov','supportsDualStack':!0x0,'supportsFIPS':!0x0},'regionRegex':'^us\x5c-gov\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-us-gov-global':{'description':'AWS\x20GovCloud\x20(US)\x20global\x20region'},'us-gov-east-1':{'description':'AWS\x20GovCloud\x20(US-East)'},'us-gov-west-1':{'description':'AWS\x20GovCloud\x20(US-West)'}}},{'id':'aws-iso','outputs':{'dnsSuffix':'c2s.ic.gov','dualStackDnsSuffix':'c2s.ic.gov','implicitGlobalRegion':'us-iso-east-1','name':'aws-iso','supportsDualStack':!0x1,'supportsFIPS':!0x0},'regionRegex':'^us\x5c-iso\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-iso-global':{'description':'AWS\x20ISO\x20(US)\x20global\x20region'},'us-iso-east-1':{'description':'US\x20ISO\x20East'},'us-iso-west-1':{'description':'US\x20ISO\x20WEST'}}},{'id':'aws-iso-b','outputs':{'dnsSuffix':'sc2s.sgov.gov','dualStackDnsSuffix':'sc2s.sgov.gov','implicitGlobalRegion':'us-isob-east-1','name':'aws-iso-b','supportsDualStack':!0x1,'supportsFIPS':!0x0},'regionRegex':'^us\x5c-isob\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-iso-b-global':{'description':'AWS\x20ISOB\x20(US)\x20global\x20region'},'us-isob-east-1':{'description':'US\x20ISOB\x20East\x20(Ohio)'}}},{'id':'aws-iso-e','outputs':{'dnsSuffix':'cloud.adc-e.uk','dualStackDnsSuffix':'cloud.adc-e.uk','implicitGlobalRegion':'eu-isoe-west-1','name':'aws-iso-e','supportsDualStack':!0x1,'supportsFIPS':!0x0},'regionRegex':'^eu\x5c-isoe\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-iso-e-global':{'description':'AWS\x20ISOE\x20(Europe)\x20global\x20region'},'eu-isoe-west-1':{'description':'EU\x20ISOE\x20West'}}},{'id':'aws-iso-f','outputs':{'dnsSuffix':'csp.hci.ic.gov','dualStackDnsSuffix':'csp.hci.ic.gov','implicitGlobalRegion':'us-isof-south-1','name':'aws-iso-f','supportsDualStack':!0x1,'supportsFIPS':!0x0},'regionRegex':'^us\x5c-isof\x5c-\x5cw+\x5c-\x5cd+$','regions':{'aws-iso-f-global':{'description':'AWS\x20ISOF\x20global\x20region'},'us-isof-east-1':{'description':'US\x20ISOF\x20EAST'},'us-isof-south-1':{'description':'US\x20ISOF\x20SOUTH'}}},{'id':'aws-eusc','outputs':{'dnsSuffix':'amazonaws.eu','dualStackDnsSuffix':'amazonaws.eu','implicitGlobalRegion':'eusc-de-east-1','name':'aws-eusc','supportsDualStack':!0x1,'supportsFIPS':!0x0},'regionRegex':'^eusc\x5c-(de)\x5c-\x5cw+\x5c-\x5cd+$','regions':{'eusc-de-east-1':{'description':'EU\x20(Germany)'}}}],partitionsInfo={'partitions':partitions};let selectedPartitionsInfo=partitionsInfo;const partition=_0x55e619=>{const {partitions:_0x37cf92}=selectedPartitionsInfo;for(const _0x483a11 of _0x37cf92){const {regions:_0x489f5f,outputs:_0x57884d}=_0x483a11;for(const [_0xef252f,_0xabe7b2]of Object['entries'](_0x489f5f))if(_0xef252f===_0x55e619)return{..._0x57884d,..._0xabe7b2};}for(const _0x50e459 of _0x37cf92){const {regionRegex:_0x461290,outputs:_0x516aca}=_0x50e459;if(new RegExp(_0x461290)['test'](_0x55e619))return{..._0x516aca};}const _0x45c7e4=_0x37cf92['find'](_0x17f934=>'aws'===_0x17f934['id']);if(!_0x45c7e4)throw new Error('Provided\x20region\x20was\x20not\x20found\x20in\x20the\x20partition\x20array\x20or\x20regex,\x20and\x20default\x20partition\x20with\x20id\x20\x27aws\x27\x20doesn\x27t\x20exist.');return{..._0x45c7e4['outputs']};},awsEndpointFunctions={'isVirtualHostableS3Bucket':isVirtualHostableS3Bucket,'parseArn':parseArn,'partition':partition};function setCredentialFeature(_0x3eed39,_0x23c568,_0x492a01){return _0x3eed39['$source']||(_0x3eed39['$source']={}),_0x3eed39['$source'][_0x23c568]=_0x492a01,_0x3eed39;}function setFeature(_0x240e26,_0x43a04a,_0xb5666){_0x240e26['__aws_sdk_context']?_0x240e26['__aws_sdk_context']['features']||(_0x240e26['__aws_sdk_context']['features']={}):_0x240e26['__aws_sdk_context']={'features':{}},_0x240e26['__aws_sdk_context']['features'][_0x43a04a]=_0xb5666;}customEndpointFunctions['aws']=awsEndpointFunctions;const getDateHeader=_0x437393=>HttpResponse['isInstance'](_0x437393)?_0x437393['headers']?.['date']??_0x437393['headers']?.['Date']:void 0x0,getSkewCorrectedDate=_0x2b6ebb=>new Date(Date['now']()+_0x2b6ebb),isClockSkewed=(_0x590a79,_0x20868d)=>Math['abs'](getSkewCorrectedDate(_0x20868d)['getTime']()-_0x590a79)>=0x493e0,getUpdatedSystemClockOffset=(_0x156352,_0x3ed308)=>{const _0x4afa1a=Date['parse'](_0x156352);return isClockSkewed(_0x4afa1a,_0x3ed308)?_0x4afa1a-Date['now']():_0x3ed308;},throwSigningPropertyError=(_0x4dc2cc,_0x59e67d)=>{if(!_0x59e67d)throw new Error('Property\x20`'+_0x4dc2cc+'`\x20is\x20not\x20resolved\x20for\x20AWS\x20SDK\x20SigV4Auth');return _0x59e67d;},validateSigningProperties=async _0x3937da=>{const _0x4cfc01=throwSigningPropertyError('context',_0x3937da['context']),_0x4aa880=throwSigningPropertyError('config',_0x3937da['config']),_0x2625dc=_0x4cfc01['endpointV2']?.['properties']?.['authSchemes']?.[0x0],_0x3ae896=throwSigningPropertyError('signer',_0x4aa880['signer']),_0x4cdc9b=await _0x3ae896(_0x2625dc),_0x492cf3=_0x3937da?.['signingRegion'],_0xd0cad1=_0x3937da?.['signingRegionSet'],_0x138a32=_0x3937da?.['signingName'];return{'config':_0x4aa880,'signer':_0x4cdc9b,'signingRegion':_0x492cf3,'signingRegionSet':_0xd0cad1,'signingName':_0x138a32};};class AwsSdkSigV4Signer{async['sign'](_0x1936f3,_0x39642f,_0x5501e7){if(!HttpRequest['isInstance'](_0x1936f3))throw new Error('The\x20request\x20is\x20not\x20an\x20instance\x20of\x20`HttpRequest`\x20and\x20cannot\x20be\x20signed');const _0x1ed39e=await validateSigningProperties(_0x5501e7),{config:_0x5d333e,signer:_0x30dadd}=_0x1ed39e;let {signingRegion:_0x28a41e,signingName:_0x2ff4ba}=_0x1ed39e;const _0x163463=_0x5501e7['context'];if(_0x163463?.['authSchemes']?.['length']){const [_0x51f5ad,_0x245713]=_0x163463['authSchemes'];'sigv4a'===_0x51f5ad?.['name']&&'sigv4'===_0x245713?.['name']&&(_0x28a41e=_0x245713?.['signingRegion']??_0x28a41e,_0x2ff4ba=_0x245713?.['signingName']??_0x2ff4ba);}return await _0x30dadd['sign'](_0x1936f3,{'signingDate':getSkewCorrectedDate(_0x5d333e['systemClockOffset']),'signingRegion':_0x28a41e,'signingService':_0x2ff4ba});}['errorHandler'](_0xba150){return _0x56179b=>{const _0x147c0b=_0x56179b['ServerTime']??getDateHeader(_0x56179b['$response']);if(_0x147c0b){const _0x12eadb=throwSigningPropertyError('config',_0xba150['config']),_0x1479c9=_0x12eadb['systemClockOffset'];_0x12eadb['systemClockOffset']=getUpdatedSystemClockOffset(_0x147c0b,_0x12eadb['systemClockOffset']),_0x12eadb['systemClockOffset']!==_0x1479c9&&_0x56179b['$metadata']&&(_0x56179b['$metadata']['clockSkewCorrected']=!0x0);}throw _0x56179b;};}['successHandler'](_0x5440fd,_0x705085){const _0x474b62=getDateHeader(_0x5440fd);if(_0x474b62){const _0x8a942a=throwSigningPropertyError('config',_0x705085['config']);_0x8a942a['systemClockOffset']=getUpdatedSystemClockOffset(_0x474b62,_0x8a942a['systemClockOffset']);}}}const memoize$2=(_0x351ef0,_0x16db38,_0x431ae8)=>{let _0x1e2a11,_0x2497ea,_0x527610,_0x461131=!0x1;return async _0x2cabfd=>(_0x527610&&!_0x2cabfd?.['forceRefresh']||(_0x1e2a11=await((async()=>{_0x2497ea||(_0x2497ea=_0x351ef0());try{_0x1e2a11=await _0x2497ea,_0x527610=!0x0,_0x461131=!0x1;}finally{_0x2497ea=void 0x0;}return _0x1e2a11;})())),_0x1e2a11);},ALGORITHM_QUERY_PARAM='X-Amz-Algorithm',CREDENTIAL_QUERY_PARAM='X-Amz-Credential',AMZ_DATE_QUERY_PARAM='X-Amz-Date',SIGNED_HEADERS_QUERY_PARAM='X-Amz-SignedHeaders',EXPIRES_QUERY_PARAM='X-Amz-Expires',SIGNATURE_QUERY_PARAM='X-Amz-Signature',TOKEN_QUERY_PARAM='X-Amz-Security-Token',AUTH_HEADER='authorization',AMZ_DATE_HEADER=AMZ_DATE_QUERY_PARAM['toLowerCase'](),DATE_HEADER='date',GENERATED_HEADERS=[AUTH_HEADER,AMZ_DATE_HEADER,DATE_HEADER],SIGNATURE_HEADER=SIGNATURE_QUERY_PARAM['toLowerCase'](),SHA256_HEADER='x-amz-content-sha256',TOKEN_HEADER=TOKEN_QUERY_PARAM['toLowerCase'](),ALWAYS_UNSIGNABLE_HEADERS={'authorization':!0x0,'cache-control':!0x0,'connection':!0x0,'expect':!0x0,'from':!0x0,'keep-alive':!0x0,'max-forwards':!0x0,'pragma':!0x0,'referer':!0x0,'te':!0x0,'trailer':!0x0,'transfer-encoding':!0x0,'upgrade':!0x0,'user-agent':!0x0,'x-amzn-trace-id':!0x0},PROXY_HEADER_PATTERN=/^proxy-/,SEC_HEADER_PATTERN=/^sec-/,ALGORITHM_IDENTIFIER='AWS4-HMAC-SHA256',EVENT_ALGORITHM_IDENTIFIER='AWS4-HMAC-SHA256-PAYLOAD',UNSIGNED_PAYLOAD='UNSIGNED-PAYLOAD',MAX_CACHE_SIZE=0x32,KEY_TYPE_IDENTIFIER='aws4_request',MAX_PRESIGNED_TTL=0x93a80,signingKeyCache={},cacheQueue=[],createScope=(_0x13c32b,_0x44ee48,_0x2bcaff)=>_0x13c32b+'/'+_0x44ee48+'/'+_0x2bcaff+'/'+KEY_TYPE_IDENTIFIER,getSigningKey=async(_0x27320f,_0x36a9a3,_0x24fe97,_0x2b04bc,_0x367bb6)=>{const _0x3cdbcb=_0x24fe97+':'+_0x2b04bc+':'+_0x367bb6+':'+toHex(await hmac(_0x27320f,_0x36a9a3['secretAccessKey'],_0x36a9a3['accessKeyId']))+':'+_0x36a9a3['sessionToken'];if(_0x3cdbcb in signingKeyCache)return signingKeyCache[_0x3cdbcb];for(cacheQueue['push'](_0x3cdbcb);cacheQueue['length']>MAX_CACHE_SIZE;)delete signingKeyCache[cacheQueue['shift']()];let _0x1b8076='AWS4'+_0x36a9a3['secretAccessKey'];for(const _0x12441c of[_0x24fe97,_0x2b04bc,_0x367bb6,KEY_TYPE_IDENTIFIER])_0x1b8076=await hmac(_0x27320f,_0x1b8076,_0x12441c);return signingKeyCache[_0x3cdbcb]=_0x1b8076;},hmac=(_0x170889,_0x2685cd,_0xed2fdd)=>{const _0x32d00d=new _0x170889(_0x2685cd);return _0x32d00d['update'](toUint8Array(_0xed2fdd)),_0x32d00d['digest']();},getCanonicalHeaders=({headers:_0x5594ab},_0x372efb,_0x30da32)=>{const _0x58d58c={};for(const _0x281311 of Object['keys'](_0x5594ab)['sort']()){if(null==_0x5594ab[_0x281311])continue;const _0x200c5f=_0x281311['toLowerCase']();(_0x200c5f in ALWAYS_UNSIGNABLE_HEADERS||_0x372efb?.['has'](_0x200c5f)||PROXY_HEADER_PATTERN['test'](_0x200c5f)||SEC_HEADER_PATTERN['test'](_0x200c5f))&&(!_0x30da32||_0x30da32&&!_0x30da32['has'](_0x200c5f))||(_0x58d58c[_0x200c5f]=_0x5594ab[_0x281311]['trim']()['replace'](/\s+/g,'\x20'));}return _0x58d58c;},isArrayBuffer=_0x4f72ca=>'function'==typeof ArrayBuffer&&_0x4f72ca instanceof ArrayBuffer||'[object\x20ArrayBuffer]'===Object['prototype']['toString']['call'](_0x4f72ca),getPayloadHash=async({headers:_0x3795e1,body:_0x543d5a},_0x161e56)=>{for(const _0x3b53b5 of Object['keys'](_0x3795e1))if(_0x3b53b5['toLowerCase']()===SHA256_HEADER)return _0x3795e1[_0x3b53b5];if(null==_0x543d5a)return'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855';if('string'==typeof _0x543d5a||ArrayBuffer['isView'](_0x543d5a)||isArrayBuffer(_0x543d5a)){const _0x2063eb=new _0x161e56();return _0x2063eb['update'](toUint8Array(_0x543d5a)),toHex(await _0x2063eb['digest']());}return UNSIGNED_PAYLOAD;};class HeaderFormatter{['format'](_0x1e60b8){const _0x14ec2f=[];for(const _0x3b2a1c of Object['keys'](_0x1e60b8)){const _0x255ec1=fromUtf8$2(_0x3b2a1c);_0x14ec2f['push'](Uint8Array['from']([_0x255ec1['byteLength']]),_0x255ec1,this['formatHeaderValue'](_0x1e60b8[_0x3b2a1c]));}const _0x1a7af3=new Uint8Array(_0x14ec2f['reduce']((_0x4e19c7,_0x47ed2a)=>_0x4e19c7+_0x47ed2a['byteLength'],0x0));let _0x54e4da=0x0;for(const _0x2730d6 of _0x14ec2f)_0x1a7af3['set'](_0x2730d6,_0x54e4da),_0x54e4da+=_0x2730d6['byteLength'];return _0x1a7af3;}['formatHeaderValue'](_0x3a9cc5){switch(_0x3a9cc5['type']){case'boolean':return Uint8Array['from']([_0x3a9cc5['value']?0x0:0x1]);case'byte':return Uint8Array['from']([0x2,_0x3a9cc5['value']]);case'short':const _0xcba5cf=new DataView(new ArrayBuffer(0x3));return _0xcba5cf['setUint8'](0x0,0x3),_0xcba5cf['setInt16'](0x1,_0x3a9cc5['value'],!0x1),new Uint8Array(_0xcba5cf['buffer']);case'integer':const _0x875944=new DataView(new ArrayBuffer(0x5));return _0x875944['setUint8'](0x0,0x4),_0x875944['setInt32'](0x1,_0x3a9cc5['value'],!0x1),new Uint8Array(_0x875944['buffer']);case'long':const _0x5b0243=new Uint8Array(0x9);return _0x5b0243[0x0]=0x5,_0x5b0243['set'](_0x3a9cc5['value']['bytes'],0x1),_0x5b0243;case'binary':const _0x18d0bb=new DataView(new ArrayBuffer(0x3+_0x3a9cc5['value']['byteLength']));_0x18d0bb['setUint8'](0x0,0x6),_0x18d0bb['setUint16'](0x1,_0x3a9cc5['value']['byteLength'],!0x1);const _0x7fb495=new Uint8Array(_0x18d0bb['buffer']);return _0x7fb495['set'](_0x3a9cc5['value'],0x3),_0x7fb495;case'string':const _0x3ed042=fromUtf8$2(_0x3a9cc5['value']),_0x2f6e80=new DataView(new ArrayBuffer(0x3+_0x3ed042['byteLength']));_0x2f6e80['setUint8'](0x0,0x7),_0x2f6e80['setUint16'](0x1,_0x3ed042['byteLength'],!0x1);const _0x565c27=new Uint8Array(_0x2f6e80['buffer']);return _0x565c27['set'](_0x3ed042,0x3),_0x565c27;case'timestamp':const _0x49eec4=new Uint8Array(0x9);return _0x49eec4[0x0]=0x8,_0x49eec4['set'](Int64$1['fromNumber'](_0x3a9cc5['value']['valueOf']())['bytes'],0x1),_0x49eec4;case'uuid':if(!UUID_PATTERN$1['test'](_0x3a9cc5['value']))throw new Error('Invalid\x20UUID\x20received:\x20'+_0x3a9cc5['value']);const _0x32f986=new Uint8Array(0x11);return _0x32f986[0x0]=0x9,_0x32f986['set'](fromHex(_0x3a9cc5['value']['replace'](/\-/g,'')),0x1),_0x32f986;}}}var HEADER_VALUE_TYPE$1;!function(_0x235b30){_0x235b30[_0x235b30['boolTrue']=0x0]='boolTrue',_0x235b30[_0x235b30['boolFalse']=0x1]='boolFalse',_0x235b30[_0x235b30['byte']=0x2]='byte',_0x235b30[_0x235b30['short']=0x3]='short',_0x235b30[_0x235b30['integer']=0x4]='integer',_0x235b30[_0x235b30['long']=0x5]='long',_0x235b30[_0x235b30['byteArray']=0x6]='byteArray',_0x235b30[_0x235b30['string']=0x7]='string',_0x235b30[_0x235b30['timestamp']=0x8]='timestamp',_0x235b30[_0x235b30['uuid']=0x9]='uuid';}(HEADER_VALUE_TYPE$1||(HEADER_VALUE_TYPE$1={}));const UUID_PATTERN$1=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;let Int64$1=class e{constructor(_0x37ca00){if(this['bytes']=_0x37ca00,0x8!==_0x37ca00['byteLength'])throw new Error('Int64\x20buffers\x20must\x20be\x20exactly\x208\x20bytes');}static['fromNumber'](_0x53f2b7){if(_0x53f2b7>0x8000000000000000||_0x53f2b7<-0x8000000000000000)throw new Error(_0x53f2b7+'\x20is\x20too\x20large\x20(or,\x20if\x20negative,\x20too\x20small)\x20to\x20represent\x20as\x20an\x20Int64');const _0x50b52f=new Uint8Array(0x8);for(let _0x5cec7d=0x7,_0x5870c6=Math['abs'](Math['round'](_0x53f2b7));_0x5cec7d>-0x1&&_0x5870c6>0x0;_0x5cec7d--,_0x5870c6/=0x100)_0x50b52f[_0x5cec7d]=_0x5870c6;return _0x53f2b7<0x0&&negate$1(_0x50b52f),new e(_0x50b52f);}['valueOf'](){const _0x27481f=this['bytes']['slice'](0x0),_0x6c1031=0x80&_0x27481f[0x0];return _0x6c1031&&negate$1(_0x27481f),parseInt(toHex(_0x27481f),0x10)*(_0x6c1031?-0x1:0x1);}['toString'](){return String(this['valueOf']());}};function negate$1(_0x534059){for(let _0x14619f=0x0;_0x14619f<0x8;_0x14619f++)_0x534059[_0x14619f]^=0xff;for(let _0x219cac=0x7;_0x219cac>-0x1&&(_0x534059[_0x219cac]++,0x0===_0x534059[_0x219cac]);_0x219cac--);}const hasHeader=(_0xde55df,_0x318a1b)=>{_0xde55df=_0xde55df['toLowerCase']();for(const _0x56c4b6 of Object['keys'](_0x318a1b))if(_0xde55df===_0x56c4b6['toLowerCase']())return!0x0;return!0x1;},moveHeadersToQuery=(_0x38728b,_0x64fb10={})=>{const {headers:_0x39c31d,query:_0xe8850c={}}=HttpRequest['clone'](_0x38728b);for(const _0x2f7eb3 of Object['keys'](_0x39c31d)){const _0x10bcc1=_0x2f7eb3['toLowerCase']();('x-amz-'===_0x10bcc1['slice'](0x0,0x6)&&!_0x64fb10['unhoistableHeaders']?.['has'](_0x10bcc1)||_0x64fb10['hoistableHeaders']?.['has'](_0x10bcc1))&&(_0xe8850c[_0x2f7eb3]=_0x39c31d[_0x2f7eb3],delete _0x39c31d[_0x2f7eb3]);}return{..._0x38728b,'headers':_0x39c31d,'query':_0xe8850c};},prepareRequest=_0x4a37e8=>{_0x4a37e8=HttpRequest['clone'](_0x4a37e8);for(const _0x4b1e44 of Object['keys'](_0x4a37e8['headers']))GENERATED_HEADERS['indexOf'](_0x4b1e44['toLowerCase']())>-0x1&&delete _0x4a37e8['headers'][_0x4b1e44];return _0x4a37e8;},getCanonicalQuery=({query:_0x532093={}})=>{const _0x57d436=[],_0x508701={};for(const _0x564069 of Object['keys'](_0x532093)){if(_0x564069['toLowerCase']()===SIGNATURE_HEADER)continue;const _0x4a7943=escapeUri(_0x564069);_0x57d436['push'](_0x4a7943);const _0x4cc263=_0x532093[_0x564069];'string'==typeof _0x4cc263?_0x508701[_0x4a7943]=_0x4a7943+'='+escapeUri(_0x4cc263):Array['isArray'](_0x4cc263)&&(_0x508701[_0x4a7943]=_0x4cc263['slice'](0x0)['reduce']((_0x897535,_0x2b5619)=>_0x897535['concat']([_0x4a7943+'='+escapeUri(_0x2b5619)]),[])['sort']()['join']('&'));}return _0x57d436['sort']()['map'](_0x1f755a=>_0x508701[_0x1f755a])['filter'](_0x41e66a=>_0x41e66a)['join']('&');},iso8601=_0x3a812e=>toDate(_0x3a812e)['toISOString']()['replace'](/\.\d{3}Z$/,'Z'),toDate=_0x29a361=>'number'==typeof _0x29a361?new Date(0x3e8*_0x29a361):'string'==typeof _0x29a361?Number(_0x29a361)?new Date(0x3e8*Number(_0x29a361)):new Date(_0x29a361):_0x29a361;class SignatureV4Base{constructor({applyChecksum:_0x581d49,credentials:_0x2491ba,region:_0xcf49ba,service:_0x3e49a2,sha256:_0x3631a9,uriEscapePath:_0x3a3449=!0x0}){this['service']=_0x3e49a2,this['sha256']=_0x3631a9,this['uriEscapePath']=_0x3a3449,this['applyChecksum']='boolean'!=typeof _0x581d49||_0x581d49,this['regionProvider']=normalizeProvider$1(_0xcf49ba),this['credentialProvider']=normalizeProvider$1(_0x2491ba);}['createCanonicalRequest'](_0xb63a4,_0x2deec3,_0x4ef3de){const _0x49c450=Object['keys'](_0x2deec3)['sort']();return _0xb63a4['method']+'\x0a'+this['getCanonicalPath'](_0xb63a4)+'\x0a'+getCanonicalQuery(_0xb63a4)+'\x0a'+_0x49c450['map'](_0xedabfc=>_0xedabfc+':'+_0x2deec3[_0xedabfc])['join']('\x0a')+'\x0a\x0a'+_0x49c450['join'](';')+'\x0a'+_0x4ef3de;}async['createStringToSign'](_0x3c7fc9,_0x16186d,_0x37e4fc,_0x1b5487){const _0x3f62b6=new this['sha256']();return _0x3f62b6['update'](toUint8Array(_0x37e4fc)),_0x1b5487+'\x0a'+_0x3c7fc9+'\x0a'+_0x16186d+'\x0a'+toHex(await _0x3f62b6['digest']());}['getCanonicalPath']({path:_0x237066}){if(this['uriEscapePath']){const _0x191aa9=[];for(const _0x4e6fb1 of _0x237066['split']('/'))0x0!==_0x4e6fb1?.['length']&&'.'!==_0x4e6fb1&&('..'===_0x4e6fb1?_0x191aa9['pop']():_0x191aa9['push'](_0x4e6fb1));const _0xce1f01=''+(_0x237066?.['startsWith']('/')?'/':'')+_0x191aa9['join']('/')+(_0x191aa9['length']>0x0&&_0x237066?.['endsWith']('/')?'/':'');return escapeUri(_0xce1f01)['replace'](/%2F/g,'/');}return _0x237066;}['validateResolvedCredentials'](_0x6c1081){if('object'!=typeof _0x6c1081||'string'!=typeof _0x6c1081['accessKeyId']||'string'!=typeof _0x6c1081['secretAccessKey'])throw new Error('Resolved\x20credential\x20object\x20is\x20not\x20valid');}['formatDate'](_0x39d753){const _0x5362b6=iso8601(_0x39d753)['replace'](/[\-:]/g,'');return{'longDate':_0x5362b6,'shortDate':_0x5362b6['slice'](0x0,0x8)};}['getCanonicalHeaderList'](_0x2a3d63){return Object['keys'](_0x2a3d63)['sort']()['join'](';');}}class SignatureV4 extends SignatureV4Base{constructor({applyChecksum:_0x5aee5d,credentials:_0x5d168e,region:_0x1a2190,service:_0x23fdc1,sha256:_0x2f1cc8,uriEscapePath:_0x437b1c=!0x0}){super({'applyChecksum':_0x5aee5d,'credentials':_0x5d168e,'region':_0x1a2190,'service':_0x23fdc1,'sha256':_0x2f1cc8,'uriEscapePath':_0x437b1c}),this['headerFormatter']=new HeaderFormatter();}async['presign'](_0x3c5062,_0x28cc02={}){const {signingDate:_0x3681d8=new Date(),expiresIn:_0x5edabd=0xe10,unsignableHeaders:_0x6114a0,unhoistableHeaders:_0x303f42,signableHeaders:_0x2e7217,hoistableHeaders:_0x406a5e,signingRegion:_0x58c89b,signingService:_0x3b620a}=_0x28cc02,_0x16bcd6=await this['credentialProvider']();this['validateResolvedCredentials'](_0x16bcd6);const _0x49275a=_0x58c89b??await this['regionProvider'](),{longDate:_0x282a64,shortDate:_0xd2dbbf}=this['formatDate'](_0x3681d8);if(_0x5edabd>MAX_PRESIGNED_TTL)return Promise['reject']('Signature\x20version\x204\x20presigned\x20URLs\x20must\x20have\x20an\x20expiration\x20date\x20less\x20than\x20one\x20week\x20in\x20the\x20future');const _0x20a00c=createScope(_0xd2dbbf,_0x49275a,_0x3b620a??this['service']),_0x245ba2=moveHeadersToQuery(prepareRequest(_0x3c5062),{'unhoistableHeaders':_0x303f42,'hoistableHeaders':_0x406a5e});_0x16bcd6['sessionToken']&&(_0x245ba2['query'][TOKEN_QUERY_PARAM]=_0x16bcd6['sessionToken']),_0x245ba2['query'][ALGORITHM_QUERY_PARAM]=ALGORITHM_IDENTIFIER,_0x245ba2['query'][CREDENTIAL_QUERY_PARAM]=_0x16bcd6['accessKeyId']+'/'+_0x20a00c,_0x245ba2['query'][AMZ_DATE_QUERY_PARAM]=_0x282a64,_0x245ba2['query'][EXPIRES_QUERY_PARAM]=_0x5edabd['toString'](0xa);const _0x41d7fd=getCanonicalHeaders(_0x245ba2,_0x6114a0,_0x2e7217);return _0x245ba2['query'][SIGNED_HEADERS_QUERY_PARAM]=this['getCanonicalHeaderList'](_0x41d7fd),_0x245ba2['query'][SIGNATURE_QUERY_PARAM]=await this['getSignature'](_0x282a64,_0x20a00c,this['getSigningKey'](_0x16bcd6,_0x49275a,_0xd2dbbf,_0x3b620a),this['createCanonicalRequest'](_0x245ba2,_0x41d7fd,await getPayloadHash(_0x3c5062,this['sha256']))),_0x245ba2;}async['sign'](_0xf8c5db,_0x2b34d8){return'string'==typeof _0xf8c5db?this['signString'](_0xf8c5db,_0x2b34d8):_0xf8c5db['headers']&&_0xf8c5db['payload']?this['signEvent'](_0xf8c5db,_0x2b34d8):_0xf8c5db['message']?this['signMessage'](_0xf8c5db,_0x2b34d8):this['signRequest'](_0xf8c5db,_0x2b34d8);}async['signEvent']({headers:_0x46bb65,payload:_0xa01c2f},{signingDate:_0x22a03f=new Date(),priorSignature:_0x2df28d,signingRegion:_0x52d3b5,signingService:_0x5a3d65}){const _0x8196ce=_0x52d3b5??await this['regionProvider'](),{shortDate:_0x18f32c,longDate:_0xaa61be}=this['formatDate'](_0x22a03f),_0xf8e795=createScope(_0x18f32c,_0x8196ce,_0x5a3d65??this['service']),_0x2e0a90=await getPayloadHash({'headers':{},'body':_0xa01c2f},this['sha256']),_0x328941=new this['sha256']();_0x328941['update'](_0x46bb65);const _0x1db257=toHex(await _0x328941['digest']()),_0x2b8134=[EVENT_ALGORITHM_IDENTIFIER,_0xaa61be,_0xf8e795,_0x2df28d,_0x1db257,_0x2e0a90]['join']('\x0a');return this['signString'](_0x2b8134,{'signingDate':_0x22a03f,'signingRegion':_0x8196ce,'signingService':_0x5a3d65});}async['signMessage'](_0x22fd9f,{signingDate:_0x4ca411=new Date(),signingRegion:_0x430015,signingService:_0x23dc5b}){return this['signEvent']({'headers':this['headerFormatter']['format'](_0x22fd9f['message']['headers']),'payload':_0x22fd9f['message']['body']},{'signingDate':_0x4ca411,'signingRegion':_0x430015,'signingService':_0x23dc5b,'priorSignature':_0x22fd9f['priorSignature']})['then'](_0x591c29=>({'message':_0x22fd9f['message'],'signature':_0x591c29}));}async['signString'](_0x285205,{signingDate:_0x4796cf=new Date(),signingRegion:_0x4f9961,signingService:_0x3a852f}={}){const _0x5a803=await this['credentialProvider']();this['validateResolvedCredentials'](_0x5a803);const _0x3f8c18=_0x4f9961??await this['regionProvider'](),{shortDate:_0x1c8d71}=this['formatDate'](_0x4796cf),_0x204f77=new this['sha256'](await this['getSigningKey'](_0x5a803,_0x3f8c18,_0x1c8d71,_0x3a852f));return _0x204f77['update'](toUint8Array(_0x285205)),toHex(await _0x204f77['digest']());}async['signRequest'](_0x14e6ea,{signingDate:_0x1d9987=new Date(),signableHeaders:_0x5ebac6,unsignableHeaders:_0x14db2f,signingRegion:_0x6a96f2,signingService:_0xaa6358}={}){const _0x1c180a=await this['credentialProvider']();this['validateResolvedCredentials'](_0x1c180a);const _0x1e858a=_0x6a96f2??await this['regionProvider'](),_0x1cbdf5=prepareRequest(_0x14e6ea),{longDate:_0x2159e3,shortDate:_0x27f28f}=this['formatDate'](_0x1d9987),_0x58e46a=createScope(_0x27f28f,_0x1e858a,_0xaa6358??this['service']);_0x1cbdf5['headers'][AMZ_DATE_HEADER]=_0x2159e3,_0x1c180a['sessionToken']&&(_0x1cbdf5['headers'][TOKEN_HEADER]=_0x1c180a['sessionToken']);const _0x55c390=await getPayloadHash(_0x1cbdf5,this['sha256']);!hasHeader(SHA256_HEADER,_0x1cbdf5['headers'])&&this['applyChecksum']&&(_0x1cbdf5['headers'][SHA256_HEADER]=_0x55c390);const _0x43e107=getCanonicalHeaders(_0x1cbdf5,_0x14db2f,_0x5ebac6),_0x433ada=await this['getSignature'](_0x2159e3,_0x58e46a,this['getSigningKey'](_0x1c180a,_0x1e858a,_0x27f28f,_0xaa6358),this['createCanonicalRequest'](_0x1cbdf5,_0x43e107,_0x55c390));return _0x1cbdf5['headers'][AUTH_HEADER]=ALGORITHM_IDENTIFIER+'\x20Credential='+_0x1c180a['accessKeyId']+'/'+_0x58e46a+',\x20SignedHeaders='+this['getCanonicalHeaderList'](_0x43e107)+',\x20Signature='+_0x433ada,_0x1cbdf5;}async['getSignature'](_0x1e24f3,_0x193d4c,_0x186b63,_0x1ad8fe){const _0x14577b=await this['createStringToSign'](_0x1e24f3,_0x193d4c,_0x1ad8fe,ALGORITHM_IDENTIFIER),_0x169c18=new this['sha256'](await _0x186b63);return _0x169c18['update'](toUint8Array(_0x14577b)),toHex(await _0x169c18['digest']());}['getSigningKey'](_0xd0e34b,_0x366afc,_0x2a6267,_0x58553a){return getSigningKey(this['sha256'],_0xd0e34b,_0x2a6267,_0x366afc,_0x58553a||this['service']);}}const resolveAwsSdkSigV4Config=_0x40fd4c=>{let _0x30b536,_0x39cdac=_0x40fd4c['credentials'],_0x2d7496=!!_0x40fd4c['credentials'];Object['defineProperty'](_0x40fd4c,'credentials',{'set'(_0x47abd8){_0x47abd8&&_0x47abd8!==_0x39cdac&&_0x47abd8!==_0x30b536&&(_0x2d7496=!0x0),_0x39cdac=_0x47abd8;const _0x1701b7=normalizeCredentialProvider(_0x40fd4c,{'credentials':_0x39cdac,'credentialDefaultProvider':_0x40fd4c['credentialDefaultProvider']}),_0x2a1dc9=bindCallerConfig(_0x40fd4c,_0x1701b7);_0x2d7496&&!_0x2a1dc9['attributed']?(_0x30b536=async _0x5e22c2=>_0x2a1dc9(_0x5e22c2)['then'](_0x3a0d44=>setCredentialFeature(_0x3a0d44,'CREDENTIALS_CODE','e')),_0x30b536['memoized']=_0x2a1dc9['memoized'],_0x30b536['configBound']=_0x2a1dc9['configBound'],_0x30b536['attributed']=!0x0):_0x30b536=_0x2a1dc9;},'get':()=>_0x30b536,'enumerable':!0x0,'configurable':!0x0}),_0x40fd4c['credentials']=_0x39cdac;const {signingEscapePath:_0xcaae8b=!0x0,systemClockOffset:_0x24ec01=_0x40fd4c['systemClockOffset']||0x0,sha256:_0x1185fb}=_0x40fd4c;let _0x258751;return _0x258751=_0x40fd4c['signer']?normalizeProvider(_0x40fd4c['signer']):_0x40fd4c['regionInfoProvider']?()=>normalizeProvider(_0x40fd4c['region'])()['then'](async _0x5b39a4=>[await _0x40fd4c['regionInfoProvider'](_0x5b39a4,{'useFipsEndpoint':await _0x40fd4c['useFipsEndpoint'](),'useDualstackEndpoint':await _0x40fd4c['useDualstackEndpoint']()})||{},_0x5b39a4])['then'](([_0xe0bd67,_0x4ffa91])=>{const {signingRegion:_0x8ba7f3,signingService:_0x1d29b4}=_0xe0bd67;_0x40fd4c['signingRegion']=_0x40fd4c['signingRegion']||_0x8ba7f3||_0x4ffa91,_0x40fd4c['signingName']=_0x40fd4c['signingName']||_0x1d29b4||_0x40fd4c['serviceId'];const _0x8b1472={..._0x40fd4c,'credentials':_0x40fd4c['credentials'],'region':_0x40fd4c['signingRegion'],'service':_0x40fd4c['signingName'],'sha256':_0x1185fb,'uriEscapePath':_0xcaae8b};return new(_0x40fd4c['signerConstructor']||SignatureV4)(_0x8b1472);}):async _0x182ec2=>{const _0x4addee=(_0x182ec2=Object['assign']({},{'name':'sigv4','signingName':_0x40fd4c['signingName']||_0x40fd4c['defaultSigningName'],'signingRegion':await normalizeProvider(_0x40fd4c['region'])(),'properties':{}},_0x182ec2))['signingRegion'],_0x13350f=_0x182ec2['signingName'];_0x40fd4c['signingRegion']=_0x40fd4c['signingRegion']||_0x4addee,_0x40fd4c['signingName']=_0x40fd4c['signingName']||_0x13350f||_0x40fd4c['serviceId'];const _0x5a7cff={..._0x40fd4c,'credentials':_0x40fd4c['credentials'],'region':_0x40fd4c['signingRegion'],'service':_0x40fd4c['signingName'],'sha256':_0x1185fb,'uriEscapePath':_0xcaae8b};return new(_0x40fd4c['signerConstructor']||SignatureV4)(_0x5a7cff);},Object['assign'](_0x40fd4c,{'systemClockOffset':_0x24ec01,'signingEscapePath':_0xcaae8b,'signer':_0x258751});};function normalizeCredentialProvider(_0x95dee,{credentials:_0x38cefe,credentialDefaultProvider:_0x96841e}){let _0x53ae10;return _0x53ae10=_0x38cefe?_0x38cefe?.['memoized']?_0x38cefe:memoizeIdentityProvider(_0x38cefe,isIdentityExpired,doesIdentityRequireRefresh):_0x96841e?normalizeProvider(_0x96841e(Object['assign']({},_0x95dee,{'parentClientConfig':_0x95dee}))):async()=>{throw new Error('@aws-sdk/core::resolveAwsSdkSigV4Config\x20-\x20`credentials`\x20not\x20provided\x20and\x20no\x20credentialDefaultProvider\x20was\x20configured.');},_0x53ae10['memoized']=!0x0,_0x53ae10;}function bindCallerConfig(_0x1e09ab,_0xa7acb){if(_0xa7acb['configBound'])return _0xa7acb;const _0x2bd4fd=async _0xd6793c=>_0xa7acb({..._0xd6793c,'callerClientConfig':_0x1e09ab});return _0x2bd4fd['memoized']=_0xa7acb['memoized'],_0x2bd4fd['configBound']=!0x0,_0x2bd4fd;}const TEXT_ENCODER$1='function'==typeof TextEncoder?new TextEncoder():null,calculateBodyLength=_0x189c18=>{if('string'==typeof _0x189c18){if(TEXT_ENCODER$1)return TEXT_ENCODER$1['encode'](_0x189c18)['byteLength'];let _0x53a5ef=_0x189c18['length'];for(let _0x2e2812=_0x53a5ef-0x1;_0x2e2812>=0x0;_0x2e2812--){const _0x368445=_0x189c18['charCodeAt'](_0x2e2812);_0x368445>0x7f&&_0x368445<=0x7ff?_0x53a5ef++:_0x368445>0x7ff&&_0x368445<=0xffff&&(_0x53a5ef+=0x2),_0x368445>=0xdc00&&_0x368445<=0xdfff&&_0x2e2812--;}return _0x53a5ef;}if('number'==typeof _0x189c18['byteLength'])return _0x189c18['byteLength'];if('number'==typeof _0x189c18['size'])return _0x189c18['size'];throw new Error('Body\x20Length\x20computation\x20failed\x20for\x20'+_0x189c18);},getAllAliases=(_0x343daa,_0x5e96e0)=>{const _0x9faa51=[];if(_0x343daa&&_0x9faa51['push'](_0x343daa),_0x5e96e0){for(const _0x504bd8 of _0x5e96e0)_0x9faa51['push'](_0x504bd8);}return _0x9faa51;},getMiddlewareNameWithAliases=(_0x3c0498,_0x400975)=>''+(_0x3c0498||'anonymous')+(_0x400975&&_0x400975['length']>0x0?'\x20(a.k.a.\x20'+_0x400975['join'](',')+')':''),constructStack=()=>{let _0x3d5408=[],_0x21d2f0=[],_0x5eb5b4=!0x1;const _0x4de3ad=new Set(),_0x5b7940=_0xd3f736=>(_0x3d5408['forEach'](_0x3b3671=>{_0xd3f736['add'](_0x3b3671['middleware'],{..._0x3b3671});}),_0x21d2f0['forEach'](_0xcaccf4=>{_0xd3f736['addRelativeTo'](_0xcaccf4['middleware'],{..._0xcaccf4});}),_0xd3f736['identifyOnResolve']?.(_0x2c1df3['identifyOnResolve']()),_0xd3f736),_0x47054e=_0x324092=>{const _0xb269f8=[];return _0x324092['before']['forEach'](_0x294f6a=>{0x0===_0x294f6a['before']['length']&&0x0===_0x294f6a['after']['length']?_0xb269f8['push'](_0x294f6a):_0xb269f8['push'](..._0x47054e(_0x294f6a));}),_0xb269f8['push'](_0x324092),_0x324092['after']['reverse']()['forEach'](_0x55f919=>{0x0===_0x55f919['before']['length']&&0x0===_0x55f919['after']['length']?_0xb269f8['push'](_0x55f919):_0xb269f8['push'](..._0x47054e(_0x55f919));}),_0xb269f8;},_0x5588cd=(_0xfb6e82=!0x1)=>{const _0x21ca31=[],_0x15c2ad=[],_0x3a9afd={};_0x3d5408['forEach'](_0x414f16=>{const _0x5a2f5f={..._0x414f16,'before':[],'after':[]};for(const _0x3c67f8 of getAllAliases(_0x5a2f5f['name'],_0x5a2f5f['aliases']))_0x3a9afd[_0x3c67f8]=_0x5a2f5f;_0x21ca31['push'](_0x5a2f5f);}),_0x21d2f0['forEach'](_0x368292=>{const _0x301273={..._0x368292,'before':[],'after':[]};for(const _0x2fe07e of getAllAliases(_0x301273['name'],_0x301273['aliases']))_0x3a9afd[_0x2fe07e]=_0x301273;_0x15c2ad['push'](_0x301273);}),_0x15c2ad['forEach'](_0x511158=>{if(_0x511158['toMiddleware']){const _0x4d7a06=_0x3a9afd[_0x511158['toMiddleware']];if(void 0x0===_0x4d7a06){if(_0xfb6e82)return;throw new Error(_0x511158['toMiddleware']+'\x20is\x20not\x20found\x20when\x20adding\x20'+getMiddlewareNameWithAliases(_0x511158['name'],_0x511158['aliases'])+'\x20middleware\x20'+_0x511158['relation']+'\x20'+_0x511158['toMiddleware']);}'after'===_0x511158['relation']&&_0x4d7a06['after']['push'](_0x511158),'before'===_0x511158['relation']&&_0x4d7a06['before']['push'](_0x511158);}});const _0x24ca34=(_0x266dfa=_0x21ca31,_0x266dfa['sort']((_0x28c1c9,_0x1ba94a)=>stepWeights[_0x1ba94a['step']]-stepWeights[_0x28c1c9['step']]||priorityWeights[_0x1ba94a['priority']||'normal']-priorityWeights[_0x28c1c9['priority']||'normal']))['map'](_0x47054e)['reduce']((_0x5f48b8,_0x442b14)=>(_0x5f48b8['push'](..._0x442b14),_0x5f48b8),[]);var _0x266dfa;return _0x24ca34;},_0x2c1df3={'add':(_0x44b93c,_0x4961cc={})=>{const {name:_0x43123d,override:_0x2236a3,aliases:_0x3a13d1}=_0x4961cc,_0x59ab09={'step':'initialize','priority':'normal','middleware':_0x44b93c,..._0x4961cc},_0x33b1d9=getAllAliases(_0x43123d,_0x3a13d1);if(_0x33b1d9['length']>0x0){if(_0x33b1d9['some'](_0x1cc151=>_0x4de3ad['has'](_0x1cc151))){if(!_0x2236a3)throw new Error('Duplicate\x20middleware\x20name\x20\x27'+getMiddlewareNameWithAliases(_0x43123d,_0x3a13d1)+'\x27');for(const _0x2f3003 of _0x33b1d9){const _0x5a77a0=_0x3d5408['findIndex'](_0x4ad425=>_0x4ad425['name']===_0x2f3003||_0x4ad425['aliases']?.['some'](_0x22233d=>_0x22233d===_0x2f3003));if(-0x1===_0x5a77a0)continue;const _0x2432b2=_0x3d5408[_0x5a77a0];if(_0x2432b2['step']!==_0x59ab09['step']||_0x59ab09['priority']!==_0x2432b2['priority'])throw new Error('\x22'+getMiddlewareNameWithAliases(_0x2432b2['name'],_0x2432b2['aliases'])+'\x22\x20middleware\x20with\x20'+_0x2432b2['priority']+'\x20priority\x20in\x20'+_0x2432b2['step']+'\x20step\x20cannot\x20be\x20overridden\x20by\x20\x22'+getMiddlewareNameWithAliases(_0x43123d,_0x3a13d1)+'\x22\x20middleware\x20with\x20'+_0x59ab09['priority']+'\x20priority\x20in\x20'+_0x59ab09['step']+'\x20step.');_0x3d5408['splice'](_0x5a77a0,0x1);}}for(const _0xa35a9e of _0x33b1d9)_0x4de3ad['add'](_0xa35a9e);}_0x3d5408['push'](_0x59ab09);},'addRelativeTo':(_0x59a295,_0x278673)=>{const {name:_0x5163c2,override:_0x1c8479,aliases:_0x3d6f72}=_0x278673,_0x32631a={'middleware':_0x59a295,..._0x278673},_0x5cff48=getAllAliases(_0x5163c2,_0x3d6f72);if(_0x5cff48['length']>0x0){if(_0x5cff48['some'](_0x51465d=>_0x4de3ad['has'](_0x51465d))){if(!_0x1c8479)throw new Error('Duplicate\x20middleware\x20name\x20\x27'+getMiddlewareNameWithAliases(_0x5163c2,_0x3d6f72)+'\x27');for(const _0x5ac23f of _0x5cff48){const _0x5eca2c=_0x21d2f0['findIndex'](_0x276ed5=>_0x276ed5['name']===_0x5ac23f||_0x276ed5['aliases']?.['some'](_0xd6c21e=>_0xd6c21e===_0x5ac23f));if(-0x1===_0x5eca2c)continue;const _0xf524a3=_0x21d2f0[_0x5eca2c];if(_0xf524a3['toMiddleware']!==_0x32631a['toMiddleware']||_0xf524a3['relation']!==_0x32631a['relation'])throw new Error('\x22'+getMiddlewareNameWithAliases(_0xf524a3['name'],_0xf524a3['aliases'])+'\x22\x20middleware\x20'+_0xf524a3['relation']+'\x20\x22'+_0xf524a3['toMiddleware']+'\x22\x20middleware\x20cannot\x20be\x20overridden\x20by\x20\x22'+getMiddlewareNameWithAliases(_0x5163c2,_0x3d6f72)+'\x22\x20middleware\x20'+_0x32631a['relation']+'\x20\x22'+_0x32631a['toMiddleware']+'\x22\x20middleware.');_0x21d2f0['splice'](_0x5eca2c,0x1);}}for(const _0x58e42f of _0x5cff48)_0x4de3ad['add'](_0x58e42f);}_0x21d2f0['push'](_0x32631a);},'clone':()=>_0x5b7940(constructStack()),'use':_0x144f97=>{_0x144f97['applyToStack'](_0x2c1df3);},'remove':_0x75b5c3=>'string'==typeof _0x75b5c3?(_0x323a6a=>{let _0x4db71d=!0x1;const _0x6fc8d0=_0xb8c77c=>{const _0x3b0d09=getAllAliases(_0xb8c77c['name'],_0xb8c77c['aliases']);if(_0x3b0d09['includes'](_0x323a6a)){_0x4db71d=!0x0;for(const _0x1c121e of _0x3b0d09)_0x4de3ad['delete'](_0x1c121e);return!0x1;}return!0x0;};return _0x3d5408=_0x3d5408['filter'](_0x6fc8d0),_0x21d2f0=_0x21d2f0['filter'](_0x6fc8d0),_0x4db71d;})(_0x75b5c3):(_0x15ddc2=>{let _0x5252ca=!0x1;const _0x256329=_0x7b4dba=>{if(_0x7b4dba['middleware']===_0x15ddc2){_0x5252ca=!0x0;for(const _0x518bb6 of getAllAliases(_0x7b4dba['name'],_0x7b4dba['aliases']))_0x4de3ad['delete'](_0x518bb6);return!0x1;}return!0x0;};return _0x3d5408=_0x3d5408['filter'](_0x256329),_0x21d2f0=_0x21d2f0['filter'](_0x256329),_0x5252ca;})(_0x75b5c3),'removeByTag':_0x201acb=>{let _0x351a7b=!0x1;const _0x4fee76=_0x17a653=>{const {tags:_0x508d12,name:_0x566c9d,aliases:_0x28be49}=_0x17a653;if(_0x508d12&&_0x508d12['includes'](_0x201acb)){const _0x3686d5=getAllAliases(_0x566c9d,_0x28be49);for(const _0x1a64b4 of _0x3686d5)_0x4de3ad['delete'](_0x1a64b4);return _0x351a7b=!0x0,!0x1;}return!0x0;};return _0x3d5408=_0x3d5408['filter'](_0x4fee76),_0x21d2f0=_0x21d2f0['filter'](_0x4fee76),_0x351a7b;},'concat':_0x3c7c87=>{const _0x28fda=_0x5b7940(constructStack());return _0x28fda['use'](_0x3c7c87),_0x28fda['identifyOnResolve'](_0x5eb5b4||_0x28fda['identifyOnResolve']()||(_0x3c7c87['identifyOnResolve']?.()??!0x1)),_0x28fda;},'applyToStack':_0x5b7940,'identify':()=>_0x5588cd(!0x0)['map'](_0x5d9019=>{const _0x2942f3=_0x5d9019['step']??_0x5d9019['relation']+'\x20'+_0x5d9019['toMiddleware'];return getMiddlewareNameWithAliases(_0x5d9019['name'],_0x5d9019['aliases'])+'\x20-\x20'+_0x2942f3;}),'identifyOnResolve':_0x4e0dcb=>('boolean'==typeof _0x4e0dcb&&(_0x5eb5b4=_0x4e0dcb),_0x5eb5b4),'resolve':(_0x4c0d78,_0x107fa5)=>{for(const _0x3d5b1e of _0x5588cd()['map'](_0x8f3409=>_0x8f3409['middleware'])['reverse']())_0x4c0d78=_0x3d5b1e(_0x4c0d78,_0x107fa5);return _0x5eb5b4&&console['log'](_0x2c1df3['identify']()),_0x4c0d78;}};return _0x2c1df3;},stepWeights={'initialize':0x5,'serialize':0x4,'build':0x3,'finalizeRequest':0x2,'deserialize':0x1},priorityWeights={'high':0x3,'normal':0x2,'low':0x1};class Client{constructor(_0x19a42a){this['config']=_0x19a42a,this['middlewareStack']=constructStack();}['send'](_0x2e20c2,_0x3d80a1,_0x524d6f){const _0x33d105='function'!=typeof _0x3d80a1?_0x3d80a1:void 0x0,_0x292b82='function'==typeof _0x3d80a1?_0x3d80a1:_0x524d6f;let _0x22ca8c;if(void 0x0===_0x33d105&&!0x0===this['config']['cacheMiddleware']){this['handlers']||(this['handlers']=new WeakMap());const _0x29c1be=this['handlers'];_0x29c1be['has'](_0x2e20c2['constructor'])?_0x22ca8c=_0x29c1be['get'](_0x2e20c2['constructor']):(_0x22ca8c=_0x2e20c2['resolveMiddleware'](this['middlewareStack'],this['config'],_0x33d105),_0x29c1be['set'](_0x2e20c2['constructor'],_0x22ca8c));}else delete this['handlers'],_0x22ca8c=_0x2e20c2['resolveMiddleware'](this['middlewareStack'],this['config'],_0x33d105);if(!_0x292b82)return _0x22ca8c(_0x2e20c2)['then'](_0x1ddad0=>_0x1ddad0['output']);_0x22ca8c(_0x2e20c2)['then'](_0x5e1058=>_0x292b82(null,_0x5e1058['output']),_0x32257e=>_0x292b82(_0x32257e))['catch'](()=>{});}['destroy'](){this['config']?.['requestHandler']?.['destroy']?.(),delete this['handlers'];}}const SENSITIVE_STRING$1='***SensitiveInformation***';function schemaLogFilter(_0xec893f,_0x441e40){if(null==_0x441e40)return _0x441e40;const _0xc6ac9=NormalizedSchema['of'](_0xec893f);if(_0xc6ac9['getMergedTraits']()['sensitive'])return SENSITIVE_STRING$1;if(_0xc6ac9['isListSchema']()){if(!!_0xc6ac9['getValueSchema']()['getMergedTraits']()['sensitive'])return SENSITIVE_STRING$1;}else{if(_0xc6ac9['isMapSchema']()){if(!!_0xc6ac9['getKeySchema']()['getMergedTraits']()['sensitive']||!!_0xc6ac9['getValueSchema']()['getMergedTraits']()['sensitive'])return SENSITIVE_STRING$1;}else{if(_0xc6ac9['isStructSchema']()&&'object'==typeof _0x441e40){const _0x4512bf=_0x441e40,_0x5bf73a={};for(const [_0x23adca,_0x5907ca]of _0xc6ac9['structIterator']())null!=_0x4512bf[_0x23adca]&&(_0x5bf73a[_0x23adca]=schemaLogFilter(_0x5907ca,_0x4512bf[_0x23adca]));return _0x5bf73a;}}}return _0x441e40;}class Command{constructor(){this['middlewareStack']=constructStack();}static['classBuilder'](){return new ClassBuilder();}['resolveMiddlewareWithContext'](_0x579e9f,_0x31daba,_0x1358a4,{middlewareFn:_0x373747,clientName:_0x4984be,commandName:_0x24eb17,inputFilterSensitiveLog:_0x37ac64,outputFilterSensitiveLog:_0x17c3d5,smithyContext:_0x1fc5f3,additionalContext:_0x259c6c,CommandCtor:_0x147512}){for(const _0x3f821f of _0x373747['bind'](this)(_0x147512,_0x579e9f,_0x31daba,_0x1358a4))this['middlewareStack']['use'](_0x3f821f);const _0x23f790=_0x579e9f['concat'](this['middlewareStack']),{logger:_0x10396e}=_0x31daba,_0x4304f8={'logger':_0x10396e,'clientName':_0x4984be,'commandName':_0x24eb17,'inputFilterSensitiveLog':_0x37ac64,'outputFilterSensitiveLog':_0x17c3d5,[SMITHY_CONTEXT_KEY]:{'commandInstance':this,..._0x1fc5f3},..._0x259c6c},{requestHandler:_0x8d0d99}=_0x31daba;return _0x23f790['resolve'](_0x159fa3=>_0x8d0d99['handle'](_0x159fa3['request'],_0x1358a4||{}),_0x4304f8);}}class ClassBuilder{constructor(){this['_init']=()=>{},this['_ep']={},this['_middlewareFn']=()=>[],this['_commandName']='',this['_clientName']='',this['_additionalContext']={},this['_smithyContext']={},this['_inputFilterSensitiveLog']=void 0x0,this['_outputFilterSensitiveLog']=void 0x0,this['_serializer']=null,this['_deserializer']=null;}['init'](_0x3a5149){this['_init']=_0x3a5149;}['ep'](_0x58c4bd){return this['_ep']=_0x58c4bd,this;}['m'](_0x53e09c){return this['_middlewareFn']=_0x53e09c,this;}['s'](_0x43698d,_0xe8e12a,_0x5bb5b0={}){return this['_smithyContext']={'service':_0x43698d,'operation':_0xe8e12a,..._0x5bb5b0},this;}['c'](_0x45819d={}){return this['_additionalContext']=_0x45819d,this;}['n'](_0x11087d,_0x4eb31a){return this['_clientName']=_0x11087d,this['_commandName']=_0x4eb31a,this;}['f'](_0x4312bd=_0x401ba7=>_0x401ba7,_0x258498=_0x1437f5=>_0x1437f5){return this['_inputFilterSensitiveLog']=_0x4312bd,this['_outputFilterSensitiveLog']=_0x258498,this;}['ser'](_0x3f3b3b){return this['_serializer']=_0x3f3b3b,this;}['de'](_0x1b78b8){return this['_deserializer']=_0x1b78b8,this;}['sc'](_0x3d7ae3){return this['_operationSchema']=_0x3d7ae3,this['_smithyContext']['operationSchema']=_0x3d7ae3,this;}['build'](){const _0x1ef4e6=this;let _0x31ef30;return _0x31ef30=class extends Command{static['getEndpointParameterInstructions'](){return _0x1ef4e6['_ep'];}constructor(...[_0x3126b7]){super(),this['serialize']=_0x1ef4e6['_serializer'],this['deserialize']=_0x1ef4e6['_deserializer'],this['input']=_0x3126b7??{},_0x1ef4e6['_init'](this),this['schema']=_0x1ef4e6['_operationSchema'];}['resolveMiddleware'](_0x2dd8c0,_0x1a22d9,_0x40c649){return this['resolveMiddlewareWithContext'](_0x2dd8c0,_0x1a22d9,_0x40c649,{'CommandCtor':_0x31ef30,'middlewareFn':_0x1ef4e6['_middlewareFn'],'clientName':_0x1ef4e6['_clientName'],'commandName':_0x1ef4e6['_commandName'],'inputFilterSensitiveLog':_0x1ef4e6['_inputFilterSensitiveLog']??(_0x1ef4e6['_operationSchema']?schemaLogFilter['bind'](null,_0x1ef4e6['_operationSchema']['input']):_0x5811ce=>_0x5811ce),'outputFilterSensitiveLog':_0x1ef4e6['_outputFilterSensitiveLog']??(_0x1ef4e6['_operationSchema']?schemaLogFilter['bind'](null,_0x1ef4e6['_operationSchema']['output']):_0x576bc9=>_0x576bc9),'smithyContext':_0x1ef4e6['_smithyContext'],'additionalContext':_0x1ef4e6['_additionalContext']});}};}}const SENSITIVE_STRING='***SensitiveInformation***';class ServiceException extends Error{constructor(_0x3dcf45){super(_0x3dcf45['message']),Object['setPrototypeOf'](this,Object['getPrototypeOf'](this)['constructor']['prototype']),this['name']=_0x3dcf45['name'],this['$fault']=_0x3dcf45['$fault'],this['$metadata']=_0x3dcf45['$metadata'];}static['isInstance'](_0x59bcac){if(!_0x59bcac)return!0x1;const _0x538b31=_0x59bcac;return ServiceException['prototype']['isPrototypeOf'](_0x538b31)||Boolean(_0x538b31['$fault'])&&Boolean(_0x538b31['$metadata'])&&('client'===_0x538b31['$fault']||'server'===_0x538b31['$fault']);}static[Symbol['hasInstance']](_0xc6147b){if(!_0xc6147b)return!0x1;const _0x4cf389=_0xc6147b;return this===ServiceException?ServiceException['isInstance'](_0xc6147b):!!ServiceException['isInstance'](_0xc6147b)&&(_0x4cf389['name']&&this['name']?this['prototype']['isPrototypeOf'](_0xc6147b)||_0x4cf389['name']===this['name']:this['prototype']['isPrototypeOf'](_0xc6147b));}}const decorateServiceException=(_0x49347a,_0xb7ce7a={})=>{Object['entries'](_0xb7ce7a)['filter'](([,_0x477b0e])=>void 0x0!==_0x477b0e)['forEach'](([_0x59d43d,_0x32146e])=>{null!=_0x49347a[_0x59d43d]&&''!==_0x49347a[_0x59d43d]||(_0x49347a[_0x59d43d]=_0x32146e);});const _0x35e956=_0x49347a['message']||_0x49347a['Message']||'UnknownError';return _0x49347a['message']=_0x35e956,delete _0x49347a['Message'],_0x49347a;},throwDefaultError$1=({output:_0x2d6238,parsedBody:_0x369a5e,exceptionCtor:_0x427774,errorCode:_0x51de52})=>{const _0x1058ba=deserializeMetadata$1(_0x2d6238),_0x1eed4c=_0x1058ba['httpStatusCode']?_0x1058ba['httpStatusCode']+'':void 0x0,_0x596640=new _0x427774({'name':_0x369a5e?.['code']||_0x369a5e?.['Code']||_0x51de52||_0x1eed4c||'UnknownError','$fault':'client','$metadata':_0x1058ba});throw decorateServiceException(_0x596640,_0x369a5e);},withBaseException=_0x484635=>({output:_0x5eaca6,parsedBody:_0x3faf3e,errorCode:_0x5f2350})=>{throwDefaultError$1({'output':_0x5eaca6,'parsedBody':_0x3faf3e,'exceptionCtor':_0x484635,'errorCode':_0x5f2350});},deserializeMetadata$1=_0xa28ba6=>({'httpStatusCode':_0xa28ba6['statusCode'],'requestId':_0xa28ba6['headers']['x-amzn-requestid']??_0xa28ba6['headers']['x-amzn-request-id']??_0xa28ba6['headers']['x-amz-request-id'],'extendedRequestId':_0xa28ba6['headers']['x-amz-id-2'],'cfId':_0xa28ba6['headers']['x-amz-cf-id']}),loadConfigsForDefaultMode=_0x69e7bd=>{switch(_0x69e7bd){case'standard':case'cross-region':return{'retryMode':'standard','connectionTimeout':0xc1c};case'in-region':return{'retryMode':'standard','connectionTimeout':0x44c};case'mobile':return{'retryMode':'standard','connectionTimeout':0x7530};default:return{};}},getChecksumConfiguration=_0x24178c=>{const _0x3a8ce8=[];for(const _0x3690d0 in AlgorithmId){const _0x4dd94a=AlgorithmId[_0x3690d0];void 0x0!==_0x24178c[_0x4dd94a]&&_0x3a8ce8['push']({'algorithmId':()=>_0x4dd94a,'checksumConstructor':()=>_0x24178c[_0x4dd94a]});}return{'addChecksumAlgorithm'(_0x133a29){_0x3a8ce8['push'](_0x133a29);},'checksumAlgorithms':()=>_0x3a8ce8};},resolveChecksumRuntimeConfig=_0x37b4fb=>{const _0x464613={};return _0x37b4fb['checksumAlgorithms']()['forEach'](_0x458135=>{_0x464613[_0x458135['algorithmId']()]=_0x458135['checksumConstructor']();}),_0x464613;},getRetryConfiguration=_0x4c60ce=>({'setRetryStrategy'(_0x17b026){_0x4c60ce['retryStrategy']=_0x17b026;},'retryStrategy':()=>_0x4c60ce['retryStrategy']}),resolveRetryRuntimeConfig=_0x2c8c83=>{const _0xcdc2f9={};return _0xcdc2f9['retryStrategy']=_0x2c8c83['retryStrategy'](),_0xcdc2f9;},getDefaultExtensionConfiguration=_0x2149d5=>Object['assign'](getChecksumConfiguration(_0x2149d5),getRetryConfiguration(_0x2149d5)),resolveDefaultRuntimeConfig=_0x428930=>Object['assign'](resolveChecksumRuntimeConfig(_0x428930),resolveRetryRuntimeConfig(_0x428930)),isSerializableHeaderValue=_0x15626b=>null!=_0x15626b;class NoOpLogger{['trace'](){}['debug'](){}['info'](){}['warn'](){}['error'](){}}function map$1(_0x13ee34,_0x338d57,_0x2ca7ec){let _0xffeb53,_0x31e5ff,_0xac41b6;if(void 0x0===_0x338d57&&void 0x0===_0x2ca7ec)_0xffeb53={},_0xac41b6=_0x13ee34;else{if(_0xffeb53=_0x13ee34,'function'==typeof _0x338d57)return _0x31e5ff=_0x338d57,_0xac41b6=_0x2ca7ec,mapWithFilter(_0xffeb53,_0x31e5ff,_0xac41b6);_0xac41b6=_0x338d57;}for(const _0x5e72f5 of Object['keys'](_0xac41b6))Array['isArray'](_0xac41b6[_0x5e72f5])?applyInstruction(_0xffeb53,null,_0xac41b6,_0x5e72f5):_0xffeb53[_0x5e72f5]=_0xac41b6[_0x5e72f5];return _0xffeb53;}const take=(_0x534bdf,_0x4b87a4)=>{const _0x52acbf={};for(const _0x34123c in _0x4b87a4)applyInstruction(_0x52acbf,_0x534bdf,_0x4b87a4,_0x34123c);return _0x52acbf;},mapWithFilter=(_0x4eafab,_0x2f0981,_0x24838f)=>map$1(_0x4eafab,Object['entries'](_0x24838f)['reduce']((_0x40e67a,[_0x70f5db,_0x22d069])=>(Array['isArray'](_0x22d069)?_0x40e67a[_0x70f5db]=_0x22d069:_0x40e67a[_0x70f5db]='function'==typeof _0x22d069?[_0x2f0981,_0x22d069()]:[_0x2f0981,_0x22d069],_0x40e67a),{})),applyInstruction=(_0x173874,_0x430e90,_0xc4d6db,_0xfc435f)=>{if(null!==_0x430e90){let _0x1d9287=_0xc4d6db[_0xfc435f];'function'==typeof _0x1d9287&&(_0x1d9287=[,_0x1d9287]);const [_0x26c270=nonNullish,_0x301465=pass,_0x9e074b=_0xfc435f]=_0x1d9287;return void(('function'==typeof _0x26c270&&_0x26c270(_0x430e90[_0x9e074b])||'function'!=typeof _0x26c270&&_0x26c270)&&(_0x173874[_0xfc435f]=_0x301465(_0x430e90[_0x9e074b])));}let [_0x2039ad,_0x4148cc]=_0xc4d6db[_0xfc435f];if('function'==typeof _0x4148cc){let _0x10dd90;const _0x198f7c=void 0x0===_0x2039ad&&null!=(_0x10dd90=_0x4148cc()),_0x39b3ff='function'==typeof _0x2039ad&&!!_0x2039ad(void 0x0)||'function'!=typeof _0x2039ad&&!!_0x2039ad;_0x198f7c?_0x173874[_0xfc435f]=_0x10dd90:_0x39b3ff&&(_0x173874[_0xfc435f]=_0x4148cc());}else{const _0x466764=void 0x0===_0x2039ad&&null!=_0x4148cc,_0x16a6ff='function'==typeof _0x2039ad&&!!_0x2039ad(_0x4148cc)||'function'!=typeof _0x2039ad&&!!_0x2039ad;(_0x466764||_0x16a6ff)&&(_0x173874[_0xfc435f]=_0x4148cc);}},nonNullish=_0x57bd63=>null!=_0x57bd63,pass=_0x3678cc=>_0x3678cc,collectBodyString=(_0x2700f9,_0x2f8bba)=>collectBody(_0x2700f9,_0x2f8bba)['then'](_0x612f4d=>_0x2f8bba['utf8Encoder'](_0x612f4d)),parseJsonBody=(_0x37ed47,_0x544cc2)=>collectBodyString(_0x37ed47,_0x544cc2)['then'](_0x5ace65=>{if(_0x5ace65['length'])try{return JSON['parse'](_0x5ace65);}catch(_0x4a8b77){throw'SyntaxError'===_0x4a8b77?.['name']&&Object['defineProperty'](_0x4a8b77,'$responseBodyText',{'value':_0x5ace65}),_0x4a8b77;}return{};}),parseJsonErrorBody=async(_0x48b3a4,_0x53dda4)=>{const _0x219437=await parseJsonBody(_0x48b3a4,_0x53dda4);return _0x219437['message']=_0x219437['message']??_0x219437['Message'],_0x219437;},loadRestJsonErrorCode=(_0x222dc2,_0x5dc6ee)=>{const _0xd9995c=(_0x36379d,_0x59ec1a)=>Object['keys'](_0x36379d)['find'](_0x1616ce=>_0x1616ce['toLowerCase']()===_0x59ec1a['toLowerCase']()),_0xdf8fa5=_0xedd65b=>{let _0x4a36fd=_0xedd65b;return'number'==typeof _0x4a36fd&&(_0x4a36fd=_0x4a36fd['toString']()),_0x4a36fd['indexOf'](',')>=0x0&&(_0x4a36fd=_0x4a36fd['split'](',')[0x0]),_0x4a36fd['indexOf'](':')>=0x0&&(_0x4a36fd=_0x4a36fd['split'](':')[0x0]),_0x4a36fd['indexOf']('#')>=0x0&&(_0x4a36fd=_0x4a36fd['split']('#')[0x1]),_0x4a36fd;},_0x288734=_0xd9995c(_0x222dc2['headers'],'x-amzn-errortype');if(void 0x0!==_0x288734)return _0xdf8fa5(_0x222dc2['headers'][_0x288734]);if(_0x5dc6ee&&'object'==typeof _0x5dc6ee){const _0x3f53dc=_0xd9995c(_0x5dc6ee,'code');if(_0x3f53dc&&void 0x0!==_0x5dc6ee[_0x3f53dc])return _0xdf8fa5(_0x5dc6ee[_0x3f53dc]);if(void 0x0!==_0x5dc6ee['__type'])return _0xdf8fa5(_0x5dc6ee['__type']);}};var commonjsGlobal='undefined'!=typeof globalThis?globalThis:'undefined'!=typeof window?window:'undefined'!=typeof global?global:'undefined'!=typeof self?self:{};const ACCOUNT_ID_ENDPOINT_REGEX=/\d{12}\.ddb/;async function checkFeatures(_0x4f49de,_0x3ee797,_0x3207aa){const _0x2fdeb6=_0x3207aa['request'];if('rpc-v2-cbor'===_0x2fdeb6?.['headers']?.['smithy-protocol']&&setFeature(_0x4f49de,'PROTOCOL_RPC_V2_CBOR','M'),'function'==typeof _0x3ee797['retryStrategy']){const _0x26f1ca=await _0x3ee797['retryStrategy']();'function'==typeof _0x26f1ca['acquireInitialRetryToken']?_0x26f1ca['constructor']?.['name']?.['includes']('Adaptive')?setFeature(_0x4f49de,'RETRY_MODE_ADAPTIVE','F'):setFeature(_0x4f49de,'RETRY_MODE_STANDARD','E'):setFeature(_0x4f49de,'RETRY_MODE_LEGACY','D');}if('function'==typeof _0x3ee797['accountIdEndpointMode']){const _0x338713=_0x4f49de['endpointV2'];switch(String(_0x338713?.['url']?.['hostname'])['match'](ACCOUNT_ID_ENDPOINT_REGEX)&&setFeature(_0x4f49de,'ACCOUNT_ID_ENDPOINT','O'),await _0x3ee797['accountIdEndpointMode']?.()){case'disabled':setFeature(_0x4f49de,'ACCOUNT_ID_MODE_DISABLED','Q');break;case'preferred':setFeature(_0x4f49de,'ACCOUNT_ID_MODE_PREFERRED','P');break;case'required':setFeature(_0x4f49de,'ACCOUNT_ID_MODE_REQUIRED','R');}}const _0x547f98=_0x4f49de['__smithy_context']?.['selectedHttpAuthScheme']?.['identity'];if(_0x547f98?.['$source']){const _0x3d2011=_0x547f98;_0x3d2011['accountId']&&setFeature(_0x4f49de,'RESOLVED_ACCOUNT_ID','T');for(const [_0x497415,_0x186f50]of Object['entries'](_0x3d2011['$source']??{}))setFeature(_0x4f49de,_0x497415,_0x186f50);}}const USER_AGENT='user-agent',X_AMZ_USER_AGENT='x-amz-user-agent',SPACE='\x20',UA_NAME_SEPARATOR='/',UA_NAME_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,UA_VALUE_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,UA_ESCAPE_CHAR='-',BYTE_LIMIT=0x400;function encodeFeatures(_0x177687){let _0xe10ea1='';for(const _0x17ba19 in _0x177687){const _0x27ea6b=_0x177687[_0x17ba19];if(!(_0xe10ea1['length']+_0x27ea6b['length']+0x1<=BYTE_LIMIT))break;_0xe10ea1['length']?_0xe10ea1+=','+_0x27ea6b:_0xe10ea1+=_0x27ea6b;}return _0xe10ea1;}const userAgentMiddleware=_0x38a200=>(_0x552f1e,_0x214c7d)=>async _0x18f704=>{const {request:_0x13c1eb}=_0x18f704;if(!HttpRequest['isInstance'](_0x13c1eb))return _0x552f1e(_0x18f704);const {headers:_0x2ef8ff}=_0x13c1eb,_0x1e87ed=_0x214c7d?.['userAgent']?.['map'](escapeUserAgent)||[],_0x351b43=(await _0x38a200['defaultUserAgentProvider']())['map'](escapeUserAgent);await checkFeatures(_0x214c7d,_0x38a200,_0x18f704);const _0x419bab=_0x214c7d;_0x351b43['push']('m/'+encodeFeatures(Object['assign']({},_0x214c7d['__smithy_context']?.['features'],_0x419bab['__aws_sdk_context']?.['features'])));const _0x2b1533=_0x38a200?.['customUserAgent']?.['map'](escapeUserAgent)||[],_0xdeae27=await _0x38a200['userAgentAppId']();_0xdeae27&&_0x351b43['push'](escapeUserAgent(['app/'+_0xdeae27]));const _0xebcb06=[]['concat']([..._0x351b43,..._0x1e87ed,..._0x2b1533])['join'](SPACE),_0x121436=[..._0x351b43['filter'](_0x327f40=>_0x327f40['startsWith']('aws-sdk-')),..._0x2b1533]['join'](SPACE);return'browser'!==_0x38a200['runtime']?(_0x121436&&(_0x2ef8ff[X_AMZ_USER_AGENT]=_0x2ef8ff[X_AMZ_USER_AGENT]?_0x2ef8ff[USER_AGENT]+'\x20'+_0x121436:_0x121436),_0x2ef8ff[USER_AGENT]=_0xebcb06):_0x2ef8ff[X_AMZ_USER_AGENT]=_0xebcb06,_0x552f1e({..._0x18f704,'request':_0x13c1eb});},escapeUserAgent=_0x469b7b=>{const _0x57f57d=_0x469b7b[0x0]['split'](UA_NAME_SEPARATOR)['map'](_0x2e04fc=>_0x2e04fc['replace'](UA_NAME_ESCAPE_REGEX,UA_ESCAPE_CHAR))['join'](UA_NAME_SEPARATOR),_0x58c0a4=_0x469b7b[0x1]?.['replace'](UA_VALUE_ESCAPE_REGEX,UA_ESCAPE_CHAR),_0x2f34ea=_0x57f57d['indexOf'](UA_NAME_SEPARATOR),_0x496353=_0x57f57d['substring'](0x0,_0x2f34ea);let _0x4337e2=_0x57f57d['substring'](_0x2f34ea+0x1);return'api'===_0x496353&&(_0x4337e2=_0x4337e2['toLowerCase']()),[_0x496353,_0x4337e2,_0x58c0a4]['filter'](_0x13fb5d=>_0x13fb5d&&_0x13fb5d['length']>0x0)['reduce']((_0x479c99,_0x79cc38,_0xe05c68)=>{switch(_0xe05c68){case 0x0:return _0x79cc38;case 0x1:return _0x479c99+'/'+_0x79cc38;default:return _0x479c99+'#'+_0x79cc38;}},'');},getUserAgentMiddlewareOptions={'name':'getUserAgentMiddleware','step':'build','priority':'low','tags':['SET_USER_AGENT','USER_AGENT'],'override':!0x0},getUserAgentPlugin=_0x11cc54=>({'applyToStack':_0x1201bc=>{_0x1201bc['add'](userAgentMiddleware(_0x11cc54),getUserAgentMiddlewareOptions);}}),DEFAULT_USE_DUALSTACK_ENDPOINT=!0x1,DEFAULT_USE_FIPS_ENDPOINT=!0x1,isFipsRegion=_0x53f9af=>'string'==typeof _0x53f9af&&(_0x53f9af['startsWith']('fips-')||_0x53f9af['endsWith']('-fips')),getRealRegion=_0x5ee1fd=>isFipsRegion(_0x5ee1fd)?['fips-aws-global','aws-fips']['includes'](_0x5ee1fd)?'us-east-1':_0x5ee1fd['replace'](/fips-(dkr-|prod-)?|-fips/,''):_0x5ee1fd,resolveRegionConfig=_0x55117a=>{const {region:_0x59663f,useFipsEndpoint:_0x3a6855}=_0x55117a;if(!_0x59663f)throw new Error('Region\x20is\x20missing');return Object['assign'](_0x55117a,{'region':async()=>{if('string'==typeof _0x59663f)return getRealRegion(_0x59663f);const _0x58e740=await _0x59663f();return getRealRegion(_0x58e740);},'useFipsEndpoint':async()=>{const _0x530cf0='string'==typeof _0x59663f?_0x59663f:await _0x59663f();return!!isFipsRegion(_0x530cf0)||('function'!=typeof _0x3a6855?Promise['resolve'](!!_0x3a6855):_0x3a6855());}});},resolveEventStreamSerdeConfig=_0x241b57=>Object['assign'](_0x241b57,{'eventStreamMarshaller':_0x241b57['eventStreamSerdeProvider'](_0x241b57)}),CONTENT_LENGTH_HEADER='content-length';function contentLengthMiddleware(_0x5764be){return _0x5e13f0=>async _0x8df8f1=>{const _0x7d0a67=_0x8df8f1['request'];if(HttpRequest['isInstance'](_0x7d0a67)){const {body:_0x32d6c7,headers:_0x33f3fc}=_0x7d0a67;if(_0x32d6c7&&-0x1===Object['keys'](_0x33f3fc)['map'](_0x5a2cbf=>_0x5a2cbf['toLowerCase']())['indexOf'](CONTENT_LENGTH_HEADER))try{const _0x37f499=_0x5764be(_0x32d6c7);_0x7d0a67['headers']={..._0x7d0a67['headers'],[CONTENT_LENGTH_HEADER]:String(_0x37f499)};}catch(_0x3dbc9c){}}return _0x5e13f0({..._0x8df8f1,'request':_0x7d0a67});};}const contentLengthMiddlewareOptions={'step':'build','tags':['SET_CONTENT_LENGTH','CONTENT_LENGTH'],'name':'contentLengthMiddleware','override':!0x0},getContentLengthPlugin=_0x6a9b46=>({'applyToStack':_0x1eaf19=>{_0x1eaf19['add'](contentLengthMiddleware(_0x6a9b46['bodyLengthChecker']),contentLengthMiddlewareOptions);}}),resolveParamsForS3=async _0x381060=>{const _0x17bb62=_0x381060?.['Bucket']||'';if('string'==typeof _0x381060['Bucket']&&(_0x381060['Bucket']=_0x17bb62['replace'](/#/g,encodeURIComponent('#'))['replace'](/\?/g,encodeURIComponent('?'))),isArnBucketName(_0x17bb62)){if(!0x0===_0x381060['ForcePathStyle'])throw new Error('Path-style\x20addressing\x20cannot\x20be\x20used\x20with\x20ARN\x20buckets');}else(!isDnsCompatibleBucketName(_0x17bb62)||-0x1!==_0x17bb62['indexOf']('.')&&!String(_0x381060['Endpoint'])['startsWith']('http:')||_0x17bb62['toLowerCase']()!==_0x17bb62||_0x17bb62['length']<0x3)&&(_0x381060['ForcePathStyle']=!0x0);return _0x381060['DisableMultiRegionAccessPoints']&&(_0x381060['disableMultiRegionAccessPoints']=!0x0,_0x381060['DisableMRAP']=!0x0),_0x381060;},DOMAIN_PATTERN=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,IP_ADDRESS_PATTERN=/(\d+\.){3}\d+/,DOTS_PATTERN=/\.\./,isDnsCompatibleBucketName=_0x20b120=>DOMAIN_PATTERN['test'](_0x20b120)&&!IP_ADDRESS_PATTERN['test'](_0x20b120)&&!DOTS_PATTERN['test'](_0x20b120),isArnBucketName=_0x4ee467=>{const [_0x2c7880,_0x5110f4,_0x23a468,,,_0x19c5d8]=_0x4ee467['split'](':'),_0x3b0c26='arn'===_0x2c7880&&_0x4ee467['split'](':')['length']>=0x6,_0x3193e0=Boolean(_0x3b0c26&&_0x5110f4&&_0x23a468&&_0x19c5d8);if(_0x3b0c26&&!_0x3193e0)throw new Error('Invalid\x20ARN:\x20'+_0x4ee467+'\x20was\x20an\x20invalid\x20ARN.');return _0x3193e0;},createConfigValueProvider=(_0x16c6fb,_0x51829e,_0xd2d9a5)=>{const _0x5c4441=async()=>{const _0x20363f=_0xd2d9a5[_0x16c6fb]??_0xd2d9a5[_0x51829e];return'function'==typeof _0x20363f?_0x20363f():_0x20363f;};return'credentialScope'===_0x16c6fb||'CredentialScope'===_0x51829e?async()=>{const _0x3fe529='function'==typeof _0xd2d9a5['credentials']?await _0xd2d9a5['credentials']():_0xd2d9a5['credentials'];return _0x3fe529?.['credentialScope']??_0x3fe529?.['CredentialScope'];}:'accountId'===_0x16c6fb||'AccountId'===_0x51829e?async()=>{const _0x140c84='function'==typeof _0xd2d9a5['credentials']?await _0xd2d9a5['credentials']():_0xd2d9a5['credentials'];return _0x140c84?.['accountId']??_0x140c84?.['AccountId'];}:'endpoint'===_0x16c6fb||'endpoint'===_0x51829e?async()=>{if(!0x1===_0xd2d9a5['isCustomEndpoint'])return;const _0x535ab4=await _0x5c4441();if(_0x535ab4&&'object'==typeof _0x535ab4){if('url'in _0x535ab4)return _0x535ab4['url']['href'];if('hostname'in _0x535ab4){const {protocol:_0x31a24c,hostname:_0x26097c,port:_0x1445d2,path:_0x1ba073}=_0x535ab4;return _0x31a24c+'//'+_0x26097c+(_0x1445d2?':'+_0x1445d2:'')+_0x1ba073;}}return _0x535ab4;}:_0x5c4441;},getEndpointFromConfig=async _0x1636b4=>{};function parseQueryString(_0x229645){const _0x10016a={};if(_0x229645=_0x229645['replace'](/^\?/,''))for(const _0x14e372 of _0x229645['split']('&')){let [_0x1eb0a5,_0x633e68=null]=_0x14e372['split']('=');_0x1eb0a5=decodeURIComponent(_0x1eb0a5),_0x633e68&&(_0x633e68=decodeURIComponent(_0x633e68)),_0x1eb0a5 in _0x10016a?Array['isArray'](_0x10016a[_0x1eb0a5])?_0x10016a[_0x1eb0a5]['push'](_0x633e68):_0x10016a[_0x1eb0a5]=[_0x10016a[_0x1eb0a5],_0x633e68]:_0x10016a[_0x1eb0a5]=_0x633e68;}return _0x10016a;}const parseUrl=_0x375fd7=>{if('string'==typeof _0x375fd7)return parseUrl(new URL(_0x375fd7));const {hostname:_0x1b1662,pathname:_0xfd2844,port:_0x114220,protocol:_0x14d857,search:_0x3ec1be}=_0x375fd7;let _0x4e564a;return _0x3ec1be&&(_0x4e564a=parseQueryString(_0x3ec1be)),{'hostname':_0x1b1662,'port':_0x114220?parseInt(_0x114220):void 0x0,'protocol':_0x14d857,'path':_0xfd2844,'query':_0x4e564a};},toEndpointV1=_0x36816a=>'object'==typeof _0x36816a?'url'in _0x36816a?parseUrl(_0x36816a['url']):_0x36816a:parseUrl(_0x36816a),getEndpointFromInstructions=async(_0x40e08d,_0x2238e5,_0x541cc6,_0x226499)=>{if(!_0x541cc6['isCustomEndpoint']){let _0x50b98;_0x50b98=_0x541cc6['serviceConfiguredEndpoint']?await _0x541cc6['serviceConfiguredEndpoint']():await getEndpointFromConfig(_0x541cc6['serviceId']),_0x50b98&&(_0x541cc6['endpoint']=()=>Promise['resolve'](toEndpointV1(_0x50b98)),_0x541cc6['isCustomEndpoint']=!0x0);}const _0x5347bd=await resolveParams(_0x40e08d,_0x2238e5,_0x541cc6);if('function'!=typeof _0x541cc6['endpointProvider'])throw new Error('config.endpointProvider\x20is\x20not\x20set.');return _0x541cc6['endpointProvider'](_0x5347bd,_0x226499);},resolveParams=async(_0x30b1ed,_0x577d76,_0x4a702b)=>{const _0x55f476={},_0x4b427e=_0x577d76?.['getEndpointParameterInstructions']?.()||{};for(const [_0x56349a,_0x33fda0]of Object['entries'](_0x4b427e))switch(_0x33fda0['type']){case'staticContextParams':_0x55f476[_0x56349a]=_0x33fda0['value'];break;case'contextParams':_0x55f476[_0x56349a]=_0x30b1ed[_0x33fda0['name']];break;case'clientContextParams':case'builtInParams':_0x55f476[_0x56349a]=await createConfigValueProvider(_0x33fda0['name'],_0x56349a,_0x4a702b)();break;case'operationContextParams':_0x55f476[_0x56349a]=_0x33fda0['get'](_0x30b1ed);break;default:throw new Error('Unrecognized\x20endpoint\x20parameter\x20instruction:\x20'+JSON['stringify'](_0x33fda0));}return 0x0===Object['keys'](_0x4b427e)['length']&&Object['assign'](_0x55f476,_0x4a702b),'s3'===String(_0x4a702b['serviceId'])['toLowerCase']()&&await resolveParamsForS3(_0x55f476),_0x55f476;},endpointMiddleware=({config:_0x49c900,instructions:_0x1467ba})=>(_0x45b389,_0x562924)=>async _0x11326d=>{_0x49c900['isCustomEndpoint']&&setFeature$1(_0x562924,'ENDPOINT_OVERRIDE','N');const _0x56a68d=await getEndpointFromInstructions(_0x11326d['input'],{'getEndpointParameterInstructions':()=>_0x1467ba},{..._0x49c900},_0x562924);_0x562924['endpointV2']=_0x56a68d,_0x562924['authSchemes']=_0x56a68d['properties']?.['authSchemes'];const _0x4612d4=_0x562924['authSchemes']?.[0x0];if(_0x4612d4){_0x562924['signing_region']=_0x4612d4['signingRegion'],_0x562924['signing_service']=_0x4612d4['signingName'];const _0x4af0e4=getSmithyContext(_0x562924),_0x2df651=_0x4af0e4?.['selectedHttpAuthScheme']?.['httpAuthOption'];_0x2df651&&(_0x2df651['signingProperties']=Object['assign'](_0x2df651['signingProperties']||{},{'signing_region':_0x4612d4['signingRegion'],'signingRegion':_0x4612d4['signingRegion'],'signing_service':_0x4612d4['signingName'],'signingName':_0x4612d4['signingName'],'signingRegionSet':_0x4612d4['signingRegionSet']},_0x4612d4['properties']));}return _0x45b389({..._0x11326d});},endpointMiddlewareOptions={'step':'serialize','tags':['ENDPOINT_PARAMETERS','ENDPOINT_V2','ENDPOINT'],'name':'endpointV2Middleware','override':!0x0,'relation':'before','toMiddleware':serializerMiddlewareOption['name']},getEndpointPlugin=(_0x46220c,_0x145cce)=>({'applyToStack':_0x1d2f28=>{_0x1d2f28['addRelativeTo'](endpointMiddleware({'config':_0x46220c,'instructions':_0x145cce}),endpointMiddlewareOptions);}}),resolveEndpointConfig=_0x5a04d9=>{const _0x17d5a4=_0x5a04d9['tls']??!0x0,{endpoint:_0x3cac1a,useDualstackEndpoint:_0x1c61cd,useFipsEndpoint:_0x50d3d1}=_0x5a04d9,_0x39a550=null!=_0x3cac1a?async()=>toEndpointV1(await normalizeProvider$1(_0x3cac1a)()):void 0x0,_0x350eaf=!!_0x3cac1a,_0x82d5=Object['assign'](_0x5a04d9,{'endpoint':_0x39a550,'tls':_0x17d5a4,'isCustomEndpoint':_0x350eaf,'useDualstackEndpoint':normalizeProvider$1(_0x1c61cd??!0x1),'useFipsEndpoint':normalizeProvider$1(_0x50d3d1??!0x1)});let _0xf7694f;return _0x82d5['serviceConfiguredEndpoint']=async()=>(_0x5a04d9['serviceId']&&!_0xf7694f&&(_0xf7694f=getEndpointFromConfig(_0x5a04d9['serviceId'])),_0xf7694f),_0x82d5;};var RETRY_MODES;!function(_0xf368de){_0xf368de['STANDARD']='standard',_0xf368de['ADAPTIVE']='adaptive';}(RETRY_MODES||(RETRY_MODES={}));const DEFAULT_MAX_ATTEMPTS=0x3,DEFAULT_RETRY_MODE=RETRY_MODES['STANDARD'],THROTTLING_ERROR_CODES=['BandwidthLimitExceeded','EC2ThrottledException','LimitExceededException','PriorRequestNotComplete','ProvisionedThroughputExceededException','RequestLimitExceeded','RequestThrottled','RequestThrottledException','SlowDown','ThrottledException','Throttling','ThrottlingException','TooManyRequestsException','TransactionInProgressException'],TRANSIENT_ERROR_CODES=['TimeoutError','RequestTimeout','RequestTimeoutException'],TRANSIENT_ERROR_STATUS_CODES=[0x1f4,0x1f6,0x1f7,0x1f8],NODEJS_TIMEOUT_ERROR_CODES=['ECONNRESET','ECONNREFUSED','EPIPE','ETIMEDOUT'],NODEJS_NETWORK_ERROR_CODES=['EHOSTUNREACH','ENETUNREACH','ENOTFOUND'],isClockSkewCorrectedError=_0x29cbfa=>_0x29cbfa['$metadata']?.['clockSkewCorrected'],isBrowserNetworkError=_0x30e98b=>{const _0x5a6b5e=new Set(['Failed\x20to\x20fetch','NetworkError\x20when\x20attempting\x20to\x20fetch\x20resource','The\x20Internet\x20connection\x20appears\x20to\x20be\x20offline','Load\x20failed','Network\x20request\x20failed']);return!!(_0x30e98b&&_0x30e98b instanceof TypeError)&&_0x5a6b5e['has'](_0x30e98b['message']);},isThrottlingError=_0x179f7d=>0x1ad===_0x179f7d['$metadata']?.['httpStatusCode']||THROTTLING_ERROR_CODES['includes'](_0x179f7d['name'])||0x1==_0x179f7d['$retryable']?.['throttling'],isTransientError=(_0x25bbe7,_0x53d91a=0x0)=>isClockSkewCorrectedError(_0x25bbe7)||TRANSIENT_ERROR_CODES['includes'](_0x25bbe7['name'])||NODEJS_TIMEOUT_ERROR_CODES['includes'](_0x25bbe7?.['code']||'')||NODEJS_NETWORK_ERROR_CODES['includes'](_0x25bbe7?.['code']||'')||TRANSIENT_ERROR_STATUS_CODES['includes'](_0x25bbe7['$metadata']?.['httpStatusCode']||0x0)||isBrowserNetworkError(_0x25bbe7)||void 0x0!==_0x25bbe7['cause']&&_0x53d91a<=0xa&&isTransientError(_0x25bbe7['cause'],_0x53d91a+0x1),isServerError=_0x380f5a=>{if(void 0x0!==_0x380f5a['$metadata']?.['httpStatusCode']){const _0x4e8652=_0x380f5a['$metadata']['httpStatusCode'];return 0x1f4<=_0x4e8652&&_0x4e8652<=0x257&&!isTransientError(_0x380f5a);}return!0x1;};class DefaultRateLimiter{constructor(_0x731301){this['currentCapacity']=0x0,this['enabled']=!0x1,this['lastMaxRate']=0x0,this['measuredTxRate']=0x0,this['requestCount']=0x0,this['lastTimestamp']=0x0,this['timeWindow']=0x0,this['beta']=_0x731301?.['beta']??0.7,this['minCapacity']=_0x731301?.['minCapacity']??0x1,this['minFillRate']=_0x731301?.['minFillRate']??0.5,this['scaleConstant']=_0x731301?.['scaleConstant']??0.4,this['smooth']=_0x731301?.['smooth']??0.8;const _0x5bda6d=this['getCurrentTimeInSeconds']();this['lastThrottleTime']=_0x5bda6d,this['lastTxRateBucket']=Math['floor'](this['getCurrentTimeInSeconds']()),this['fillRate']=this['minFillRate'],this['maxCapacity']=this['minCapacity'];}['getCurrentTimeInSeconds'](){return Date['now']()/0x3e8;}async['getSendToken'](){return this['acquireTokenBucket'](0x1);}async['acquireTokenBucket'](_0x597373){if(this['enabled']){if(this['refillTokenBucket'](),_0x597373>this['currentCapacity']){const _0x183237=(_0x597373-this['currentCapacity'])/this['fillRate']*0x3e8;await new Promise(_0x13e00f=>DefaultRateLimiter['setTimeoutFn'](_0x13e00f,_0x183237));}this['currentCapacity']=this['currentCapacity']-_0x597373;}}['refillTokenBucket'](){const _0x46971e=this['getCurrentTimeInSeconds']();if(!this['lastTimestamp'])return void(this['lastTimestamp']=_0x46971e);const _0x5a57bb=(_0x46971e-this['lastTimestamp'])*this['fillRate'];this['currentCapacity']=Math['min'](this['maxCapacity'],this['currentCapacity']+_0x5a57bb),this['lastTimestamp']=_0x46971e;}['updateClientSendingRate'](_0x4f3775){let _0x172205;if(this['updateMeasuredRate'](),isThrottlingError(_0x4f3775)){const _0x5156fa=this['enabled']?Math['min'](this['measuredTxRate'],this['fillRate']):this['measuredTxRate'];this['lastMaxRate']=_0x5156fa,this['calculateTimeWindow'](),this['lastThrottleTime']=this['getCurrentTimeInSeconds'](),_0x172205=this['cubicThrottle'](_0x5156fa),this['enableTokenBucket']();}else this['calculateTimeWindow'](),_0x172205=this['cubicSuccess'](this['getCurrentTimeInSeconds']());const _0x5d826c=Math['min'](_0x172205,0x2*this['measuredTxRate']);this['updateTokenBucketRate'](_0x5d826c);}['calculateTimeWindow'](){this['timeWindow']=this['getPrecise'](Math['pow'](this['lastMaxRate']*(0x1-this['beta'])/this['scaleConstant'],0x1/0x3));}['cubicThrottle'](_0x758bad){return this['getPrecise'](_0x758bad*this['beta']);}['cubicSuccess'](_0x2aac85){return this['getPrecise'](this['scaleConstant']*Math['pow'](_0x2aac85-this['lastThrottleTime']-this['timeWindow'],0x3)+this['lastMaxRate']);}['enableTokenBucket'](){this['enabled']=!0x0;}['updateTokenBucketRate'](_0xf42a6c){this['refillTokenBucket'](),this['fillRate']=Math['max'](_0xf42a6c,this['minFillRate']),this['maxCapacity']=Math['max'](_0xf42a6c,this['minCapacity']),this['currentCapacity']=Math['min'](this['currentCapacity'],this['maxCapacity']);}['updateMeasuredRate'](){const t=this['getCurrentTimeInSeconds'](),_0x1fb3cd=Math['floor'](0x2*t)/0x2;if(this['requestCount']++,_0x1fb3cd>this['lastTxRateBucket']){const _0x3c2e67=this['requestCount']/(_0x1fb3cd-this['lastTxRateBucket']);this['measuredTxRate']=this['getPrecise'](_0x3c2e67*this['smooth']+this['measuredTxRate']*(0x1-this['smooth'])),this['requestCount']=0x0,this['lastTxRateBucket']=_0x1fb3cd;}}['getPrecise'](_0x4573e1){return parseFloat(_0x4573e1['toFixed'](0x8));}}DefaultRateLimiter['setTimeoutFn']=setTimeout;const DEFAULT_RETRY_DELAY_BASE=0x64,MAXIMUM_RETRY_DELAY=0x4e20,THROTTLING_RETRY_DELAY_BASE=0x1f4,INITIAL_RETRY_TOKENS=0x1f4,RETRY_COST=0x5,TIMEOUT_RETRY_COST=0xa,NO_RETRY_INCREMENT=0x1,INVOCATION_ID_HEADER='amz-sdk-invocation-id',REQUEST_HEADER='amz-sdk-request',getDefaultRetryBackoffStrategy=()=>{let _0x1caaf7=DEFAULT_RETRY_DELAY_BASE;return{'computeNextBackoffDelay':_0x340190=>Math['floor'](Math['min'](MAXIMUM_RETRY_DELAY,Math['random']()*0x2**_0x340190*_0x1caaf7)),'setDelayBase':_0x46e66f=>{_0x1caaf7=_0x46e66f;}};},createDefaultRetryToken=({retryDelay:_0xc4fad5,retryCount:_0x5f0605,retryCost:_0x140bb5})=>({'getRetryCount':()=>_0x5f0605,'getRetryDelay':()=>Math['min'](MAXIMUM_RETRY_DELAY,_0xc4fad5),'getRetryCost':()=>_0x140bb5});class StandardRetryStrategy{constructor(_0x46f45e){this['maxAttempts']=_0x46f45e,this['mode']=RETRY_MODES['STANDARD'],this['capacity']=INITIAL_RETRY_TOKENS,this['retryBackoffStrategy']=getDefaultRetryBackoffStrategy(),this['maxAttemptsProvider']='function'==typeof _0x46f45e?_0x46f45e:async()=>_0x46f45e;}async['acquireInitialRetryToken'](_0x11b045){return createDefaultRetryToken({'retryDelay':DEFAULT_RETRY_DELAY_BASE,'retryCount':0x0});}async['refreshRetryTokenForRetry'](_0x2dd93c,_0x9cd4cc){const _0x5a3ecb=await this['getMaxAttempts']();if(this['shouldRetry'](_0x2dd93c,_0x9cd4cc,_0x5a3ecb)){const _0x25f372=_0x9cd4cc['errorType'];this['retryBackoffStrategy']['setDelayBase']('THROTTLING'===_0x25f372?THROTTLING_RETRY_DELAY_BASE:DEFAULT_RETRY_DELAY_BASE);const _0x41e1a5=this['retryBackoffStrategy']['computeNextBackoffDelay'](_0x2dd93c['getRetryCount']()),_0x1d1322=_0x9cd4cc['retryAfterHint']?Math['max'](_0x9cd4cc['retryAfterHint']['getTime']()-Date['now']()||0x0,_0x41e1a5):_0x41e1a5,_0x1d88f6=this['getCapacityCost'](_0x25f372);return this['capacity']-=_0x1d88f6,createDefaultRetryToken({'retryDelay':_0x1d1322,'retryCount':_0x2dd93c['getRetryCount']()+0x1,'retryCost':_0x1d88f6});}throw new Error('No\x20retry\x20token\x20available');}['recordSuccess'](_0x5938e0){this['capacity']=Math['max'](INITIAL_RETRY_TOKENS,this['capacity']+(_0x5938e0['getRetryCost']()??NO_RETRY_INCREMENT));}['getCapacity'](){return this['capacity'];}async['getMaxAttempts'](){try{return await this['maxAttemptsProvider']();}catch(_0x4c0b1e){return console['warn']('Max\x20attempts\x20provider\x20could\x20not\x20resolve.\x20Using\x20default\x20of\x20'+DEFAULT_MAX_ATTEMPTS),DEFAULT_MAX_ATTEMPTS;}}['shouldRetry'](_0x31bf79,_0x651586,_0x4a1662){return _0x31bf79['getRetryCount']()+0x1<_0x4a1662&&this['capacity']>=this['getCapacityCost'](_0x651586['errorType'])&&this['isRetryableError'](_0x651586['errorType']);}['getCapacityCost'](_0x36be28){return'TRANSIENT'===_0x36be28?TIMEOUT_RETRY_COST:RETRY_COST;}['isRetryableError'](_0x5c95f9){return'THROTTLING'===_0x5c95f9||'TRANSIENT'===_0x5c95f9;}}class AdaptiveRetryStrategy{constructor(_0x59aacc,_0x174963){this['maxAttemptsProvider']=_0x59aacc,this['mode']=RETRY_MODES['ADAPTIVE'];const {rateLimiter:_0x26d631}=_0x174963??{};this['rateLimiter']=_0x26d631??new DefaultRateLimiter(),this['standardRetryStrategy']=new StandardRetryStrategy(_0x59aacc);}async['acquireInitialRetryToken'](_0x101020){return await this['rateLimiter']['getSendToken'](),this['standardRetryStrategy']['acquireInitialRetryToken'](_0x101020);}async['refreshRetryTokenForRetry'](_0x2dd67a,_0x1e5fc9){return this['rateLimiter']['updateClientSendingRate'](_0x1e5fc9),this['standardRetryStrategy']['refreshRetryTokenForRetry'](_0x2dd67a,_0x1e5fc9);}['recordSuccess'](_0x1ef1f1){this['rateLimiter']['updateClientSendingRate']({}),this['standardRetryStrategy']['recordSuccess'](_0x1ef1f1);}}const asSdkError=_0x2093e3=>_0x2093e3 instanceof Error?_0x2093e3:_0x2093e3 instanceof Object?Object['assign'](new Error(),_0x2093e3):'string'==typeof _0x2093e3?new Error(_0x2093e3):new Error('AWS\x20SDK\x20error\x20wrapper\x20for\x20'+_0x2093e3),resolveRetryConfig=_0x1f5f44=>{const {retryStrategy:_0x5a87a6,retryMode:_0x529621,maxAttempts:_0x5d723f}=_0x1f5f44,_0xc89dfc=normalizeProvider$1(_0x5d723f??DEFAULT_MAX_ATTEMPTS);return Object['assign'](_0x1f5f44,{'maxAttempts':_0xc89dfc,'retryStrategy':async()=>{if(_0x5a87a6)return _0x5a87a6;return await normalizeProvider$1(_0x529621)()===RETRY_MODES['ADAPTIVE']?new AdaptiveRetryStrategy(_0xc89dfc):new StandardRetryStrategy(_0xc89dfc);}});},isStreamingPayload=_0x2648e1=>_0x2648e1?.['body']instanceof ReadableStream,retryMiddleware=_0x5c1c96=>(_0x4f4e7f,_0xe77ce0)=>async _0x3ab79a=>{let _0x5308a7=await _0x5c1c96['retryStrategy']();const _0x3d6f1d=await _0x5c1c96['maxAttempts']();if(!isRetryStrategyV2(_0x5308a7))return _0x5308a7?.['mode']&&(_0xe77ce0['userAgent']=[..._0xe77ce0['userAgent']||[],['cfg/retry-mode',_0x5308a7['mode']]]),_0x5308a7['retry'](_0x4f4e7f,_0x3ab79a);{let _0xbc72f7=await _0x5308a7['acquireInitialRetryToken'](_0xe77ce0['partition_id']),_0x4f7493=new Error(),_0x338609=0x0,_0xab2cf6=0x0;const {request:_0x45dd79}=_0x3ab79a,_0xcaf70b=HttpRequest['isInstance'](_0x45dd79);for(_0xcaf70b&&(_0x45dd79['headers'][INVOCATION_ID_HEADER]=v4());;)try{_0xcaf70b&&(_0x45dd79['headers'][REQUEST_HEADER]='attempt='+(_0x338609+0x1)+';\x20max='+_0x3d6f1d);const {response:_0x5e051c,output:_0xec7486}=await _0x4f4e7f(_0x3ab79a);return _0x5308a7['recordSuccess'](_0xbc72f7),_0xec7486['$metadata']['attempts']=_0x338609+0x1,_0xec7486['$metadata']['totalRetryDelay']=_0xab2cf6,{'response':_0x5e051c,'output':_0xec7486};}catch(_0x2bf3ae){const _0x51c274=getRetryErrorInfo(_0x2bf3ae);if(_0x4f7493=asSdkError(_0x2bf3ae),_0xcaf70b&&isStreamingPayload(_0x45dd79))throw(_0xe77ce0['logger']instanceof NoOpLogger?console:_0xe77ce0['logger'])?.['warn']('An\x20error\x20was\x20encountered\x20in\x20a\x20non-retryable\x20streaming\x20request.'),_0x4f7493;try{_0xbc72f7=await _0x5308a7['refreshRetryTokenForRetry'](_0xbc72f7,_0x51c274);}catch(_0x528129){throw _0x4f7493['$metadata']||(_0x4f7493['$metadata']={}),_0x4f7493['$metadata']['attempts']=_0x338609+0x1,_0x4f7493['$metadata']['totalRetryDelay']=_0xab2cf6,_0x4f7493;}_0x338609=_0xbc72f7['getRetryCount']();const _0x551b8e=_0xbc72f7['getRetryDelay']();_0xab2cf6+=_0x551b8e,await new Promise(_0x5d8d78=>setTimeout(_0x5d8d78,_0x551b8e));}}},isRetryStrategyV2=_0x6355b5=>void 0x0!==_0x6355b5['acquireInitialRetryToken']&&void 0x0!==_0x6355b5['refreshRetryTokenForRetry']&&void 0x0!==_0x6355b5['recordSuccess'],getRetryErrorInfo=_0x2e8059=>{const _0x136528={'error':_0x2e8059,'errorType':getRetryErrorType(_0x2e8059)},_0x2ea199=getRetryAfterHint(_0x2e8059['$response']);return _0x2ea199&&(_0x136528['retryAfterHint']=_0x2ea199),_0x136528;},getRetryErrorType=_0x2046f2=>isThrottlingError(_0x2046f2)?'THROTTLING':isTransientError(_0x2046f2)?'TRANSIENT':isServerError(_0x2046f2)?'SERVER_ERROR':'CLIENT_ERROR',retryMiddlewareOptions={'name':'retryMiddleware','tags':['RETRY'],'step':'finalizeRequest','priority':'high','override':!0x0},getRetryPlugin=_0x545c5d=>({'applyToStack':_0x2e0373=>{_0x2e0373['add'](retryMiddleware(_0x545c5d),retryMiddlewareOptions);}}),getRetryAfterHint=_0x656ec=>{if(!HttpResponse['isInstance'](_0x656ec))return;const _0x5f0fcf=Object['keys'](_0x656ec['headers'])['find'](_0x407b55=>'retry-after'===_0x407b55['toLowerCase']());if(!_0x5f0fcf)return;const _0x416a2e=_0x656ec['headers'][_0x5f0fcf],_0x4d39a1=Number(_0x416a2e);if(!Number['isNaN'](_0x4d39a1))return new Date(0x3e8*_0x4d39a1);return new Date(_0x416a2e);},defaultBedrockRuntimeHttpAuthSchemeParametersProvider=async(_0x2219b5,_0x1766ab,_0x336974)=>({'operation':getSmithyContext(_0x1766ab)['operation'],'region':await normalizeProvider$1(_0x2219b5['region'])()||((()=>{throw new Error('expected\x20`region`\x20to\x20be\x20configured\x20for\x20`aws.auth#sigv4`');})())});function createAwsAuthSigv4HttpAuthOption(_0x8a6f39){return{'schemeId':'aws.auth#sigv4','signingProperties':{'name':'bedrock','region':_0x8a6f39['region']},'propertiesExtractor':(_0x3d64d0,_0x366d86)=>({'signingProperties':{'config':_0x3d64d0,'context':_0x366d86}})};}const defaultBedrockRuntimeHttpAuthSchemeProvider=_0x207ecb=>{const _0x406e98=[];return _0x207ecb['operation'],_0x406e98['push'](createAwsAuthSigv4HttpAuthOption(_0x207ecb)),_0x406e98;},resolveHttpAuthSchemeConfig=_0x295903=>{const _0x21c27d=resolveAwsSdkSigV4Config(_0x295903);return Object['assign'](_0x21c27d,{'authSchemePreference':normalizeProvider$1(_0x295903['authSchemePreference']??[])});},resolveClientEndpointParameters=_0x352173=>Object['assign'](_0x352173,{'useDualstackEndpoint':_0x352173['useDualstackEndpoint']??!0x1,'useFipsEndpoint':_0x352173['useFipsEndpoint']??!0x1,'defaultSigningName':'bedrock'}),commonParams={'UseFIPS':{'type':'builtInParams','name':'useFipsEndpoint'},'Endpoint':{'type':'builtInParams','name':'endpoint'},'Region':{'type':'builtInParams','name':'region'},'UseDualStack':{'type':'builtInParams','name':'useDualstackEndpoint'}};var version$2='3.823.0',packageInfo={'version':version$2};const fromUtf8$1=_0x1574c5=>new TextEncoder()['encode'](_0x1574c5);var fromUtf8='undefined'!=typeof Buffer&&Buffer['from']?function(_0x5ba66a){return Buffer['from'](_0x5ba66a,'utf8');}:fromUtf8$1;function convertToBuffer(_0x3a1de5){return _0x3a1de5 instanceof Uint8Array?_0x3a1de5:'string'==typeof _0x3a1de5?fromUtf8(_0x3a1de5):ArrayBuffer['isView'](_0x3a1de5)?new Uint8Array(_0x3a1de5['buffer'],_0x3a1de5['byteOffset'],_0x3a1de5['byteLength']/Uint8Array['BYTES_PER_ELEMENT']):new Uint8Array(_0x3a1de5);}function isEmptyData(_0x25b2b7){return'string'==typeof _0x25b2b7?0x0===_0x25b2b7['length']:0x0===_0x25b2b7['byteLength'];}function uint32ArrayFrom(_0x387a3f){if(!Uint32Array['from']){for(var _0xfae674=new Uint32Array(_0x387a3f['length']),_0x38d930=0x0;_0x38d930<_0x387a3f['length'];)_0xfae674[_0x38d930]=_0x387a3f[_0x38d930],_0x38d930+=0x1;return _0xfae674;}return Uint32Array['from'](_0x387a3f);}var SHA_256_HASH={'name':'SHA-256'},SHA_256_HMAC_ALGO={'name':'HMAC','hash':SHA_256_HASH},EMPTY_DATA_SHA_256=new Uint8Array([0xe3,0xb0,0xc4,0x42,0x98,0xfc,0x1c,0x14,0x9a,0xfb,0xf4,0xc8,0x99,0x6f,0xb9,0x24,0x27,0xae,0x41,0xe4,0x64,0x9b,0x93,0x4c,0xa4,0x95,0x99,0x1b,0x78,0x52,0xb8,0x55]);const fallbackWindow={};function locateWindow(){return'undefined'!=typeof window?window:'undefined'!=typeof self?self:fallbackWindow;}var Sha256$2=(function(){function _0x1d118f(_0x5082e5){this['toHash']=new Uint8Array(0x0),this['secret']=_0x5082e5,this['reset']();}return _0x1d118f['prototype']['update']=function(_0x496e77){if(!isEmptyData(_0x496e77)){var _0x16c50a=convertToBuffer(_0x496e77),_0x4ce358=new Uint8Array(this['toHash']['byteLength']+_0x16c50a['byteLength']);_0x4ce358['set'](this['toHash'],0x0),_0x4ce358['set'](_0x16c50a,this['toHash']['byteLength']),this['toHash']=_0x4ce358;}},_0x1d118f['prototype']['digest']=function(){var _0x1a3ea2=this;return this['key']?this['key']['then'](function(_0xbd09f2){return locateWindow()['crypto']['subtle']['sign'](SHA_256_HMAC_ALGO,_0xbd09f2,_0x1a3ea2['toHash'])['then'](function(_0x1de10c){return new Uint8Array(_0x1de10c);});}):isEmptyData(this['toHash'])?Promise['resolve'](EMPTY_DATA_SHA_256):Promise['resolve']()['then'](function(){return locateWindow()['crypto']['subtle']['digest'](SHA_256_HASH,_0x1a3ea2['toHash']);})['then'](function(_0x14f9b5){return Promise['resolve'](new Uint8Array(_0x14f9b5));});},_0x1d118f['prototype']['reset']=function(){var _0x8b48e8=this;this['toHash']=new Uint8Array(0x0),this['secret']&&void 0x0!==this['secret']&&(this['key']=new Promise(function(_0x541ded,_0x304343){locateWindow()['crypto']['subtle']['importKey']('raw',convertToBuffer(_0x8b48e8['secret']),SHA_256_HMAC_ALGO,!0x1,['sign'])['then'](_0x541ded,_0x304343);}),this['key']['catch'](function(){}));},_0x1d118f;}());function __awaiter(_0x1ba269,_0x48b4c0,_0x5d1741,_0x129bff){return new(_0x5d1741||(_0x5d1741=Promise))(function(_0x2cd4e5,_0x4abcdd){function _0x19ae24(_0x14c5f4){try{_0x3f0ba7(_0x129bff['next'](_0x14c5f4));}catch(_0x10c8d9){_0x4abcdd(_0x10c8d9);}}function _0xf09a34(_0x4e58cf){try{_0x3f0ba7(_0x129bff['throw'](_0x4e58cf));}catch(_0x2cd0b3){_0x4abcdd(_0x2cd0b3);}}function _0x3f0ba7(_0x4fb082){_0x4fb082['done']?_0x2cd4e5(_0x4fb082['value']):function(_0x179c0b){return _0x179c0b instanceof _0x5d1741?_0x179c0b:new _0x5d1741(function(_0x430fb2){_0x430fb2(_0x179c0b);});}(_0x4fb082['value'])['then'](_0x19ae24,_0xf09a34);}_0x3f0ba7((_0x129bff=_0x129bff['apply'](_0x1ba269,_0x48b4c0||[]))['next']());});}function __generator(_0x42a8d1,_0x2ce203){var _0x5b5b8e,_0x8134c5,t,_0x35bb4b={'label':0x0,'sent':function(){if(0x1&t[0x0])throw t[0x1];return t[0x1];},'trys':[],'ops':[]},_0x5eab25=Object['create'](('function'==typeof Iterator?Iterator:Object)['prototype']);return _0x5eab25['next']=_0x53bc22(0x0),_0x5eab25['throw']=_0x53bc22(0x1),_0x5eab25['return']=_0x53bc22(0x2),'function'==typeof Symbol&&(_0x5eab25[Symbol['iterator']]=function(){return this;}),_0x5eab25;function _0x53bc22(_0x6d2a73){return function(_0x493987){return function(_0x26fc53){if(_0x5b5b8e)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;_0x5eab25&&(_0x5eab25=0x0,_0x26fc53[0x0]&&(_0x35bb4b=0x0)),_0x35bb4b;)try{if(_0x5b5b8e=0x1,_0x8134c5&&(t=0x2&_0x26fc53[0x0]?_0x8134c5['return']:_0x26fc53[0x0]?_0x8134c5['throw']||((t=_0x8134c5['return'])&&t['call'](_0x8134c5),0x0):_0x8134c5['next'])&&!(t=t['call'](_0x8134c5,_0x26fc53[0x1]))['done'])return t;switch(_0x8134c5=0x0,t&&(_0x26fc53=[0x2&_0x26fc53[0x0],t['value']]),_0x26fc53[0x0]){case 0x0:case 0x1:t=_0x26fc53;break;case 0x4:return _0x35bb4b['label']++,{'value':_0x26fc53[0x1],'done':!0x1};case 0x5:_0x35bb4b['label']++,_0x8134c5=_0x26fc53[0x1],_0x26fc53=[0x0];continue;case 0x7:_0x26fc53=_0x35bb4b['ops']['pop'](),_0x35bb4b['trys']['pop']();continue;default:if(!(t=_0x35bb4b['trys'],(t=t['length']>0x0&&t[t['length']-0x1])||0x6!==_0x26fc53[0x0]&&0x2!==_0x26fc53[0x0])){_0x35bb4b=0x0;continue;}if(0x3===_0x26fc53[0x0]&&(!t||_0x26fc53[0x1]>t[0x0]&&_0x26fc53[0x1]<t[0x3])){_0x35bb4b['label']=_0x26fc53[0x1];break;}if(0x6===_0x26fc53[0x0]&&_0x35bb4b['label']<t[0x1]){_0x35bb4b['label']=t[0x1],t=_0x26fc53;break;}if(t&&_0x35bb4b['label']<t[0x2]){_0x35bb4b['label']=t[0x2],_0x35bb4b['ops']['push'](_0x26fc53);break;}t[0x2]&&_0x35bb4b['ops']['pop'](),_0x35bb4b['trys']['pop']();continue;}_0x26fc53=_0x2ce203['call'](_0x42a8d1,_0x35bb4b);}catch(_0x35ed26){_0x26fc53=[0x6,_0x35ed26],_0x8134c5=0x0;}finally{_0x5b5b8e=t=0x0;}if(0x5&_0x26fc53[0x0])throw _0x26fc53[0x1];return{'value':_0x26fc53[0x0]?_0x26fc53[0x1]:void 0x0,'done':!0x0};}([_0x6d2a73,_0x493987]);};}}function __values(_0xc37e5a){var _0x1651ba='function'==typeof Symbol&&Symbol['iterator'],_0x31b289=_0x1651ba&&_0xc37e5a[_0x1651ba],_0x1b5ca0=0x0;if(_0x31b289)return _0x31b289['call'](_0xc37e5a);if(_0xc37e5a&&'number'==typeof _0xc37e5a['length'])return{'next':function(){return _0xc37e5a&&_0x1b5ca0>=_0xc37e5a['length']&&(_0xc37e5a=void 0x0),{'value':_0xc37e5a&&_0xc37e5a[_0x1b5ca0++],'done':!_0xc37e5a};}};throw new TypeError(_0x1651ba?'Object\x20is\x20not\x20iterable.':'Symbol.iterator\x20is\x20not\x20defined.');}'function'==typeof SuppressedError&&SuppressedError;var BLOCK_SIZE=0x40,DIGEST_LENGTH=0x20,KEY=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),INIT=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],MAX_HASHABLE_LENGTH=Math['pow'](0x2,0x35)-0x1,RawSha256=(function(){function _0x2a3df2(){this['state']=Int32Array['from'](INIT),this['temp']=new Int32Array(0x40),this['buffer']=new Uint8Array(0x40),this['bufferLength']=0x0,this['bytesHashed']=0x0,this['finished']=!0x1;}return _0x2a3df2['prototype']['update']=function(_0x526a7d){if(this['finished'])throw new Error('Attempted\x20to\x20update\x20an\x20already\x20finished\x20hash.');var _0x3b646c=0x0,_0x3b6288=_0x526a7d['byteLength'];if(this['bytesHashed']+=_0x3b6288,0x8*this['bytesHashed']>MAX_HASHABLE_LENGTH)throw new Error('Cannot\x20hash\x20more\x20than\x202^53\x20-\x201\x20bits');for(;_0x3b6288>0x0;)this['buffer'][this['bufferLength']++]=_0x526a7d[_0x3b646c++],_0x3b6288--,this['bufferLength']===BLOCK_SIZE&&(this['hashBuffer'](),this['bufferLength']=0x0);},_0x2a3df2['prototype']['digest']=function(){if(!this['finished']){var _0x29aa4c=0x8*this['bytesHashed'],_0x118888=new DataView(this['buffer']['buffer'],this['buffer']['byteOffset'],this['buffer']['byteLength']),_0x4b3332=this['bufferLength'];if(_0x118888['setUint8'](this['bufferLength']++,0x80),_0x4b3332%BLOCK_SIZE>=BLOCK_SIZE-0x8){for(var _0x1304c8=this['bufferLength'];_0x1304c8<BLOCK_SIZE;_0x1304c8++)_0x118888['setUint8'](_0x1304c8,0x0);this['hashBuffer'](),this['bufferLength']=0x0;}for(_0x1304c8=this['bufferLength'];_0x1304c8<BLOCK_SIZE-0x8;_0x1304c8++)_0x118888['setUint8'](_0x1304c8,0x0);_0x118888['setUint32'](BLOCK_SIZE-0x8,Math['floor'](_0x29aa4c/0x100000000),!0x0),_0x118888['setUint32'](BLOCK_SIZE-0x4,_0x29aa4c),this['hashBuffer'](),this['finished']=!0x0;}var _0x54b92c=new Uint8Array(DIGEST_LENGTH);for(_0x1304c8=0x0;_0x1304c8<0x8;_0x1304c8++)_0x54b92c[0x4*_0x1304c8]=this['state'][_0x1304c8]>>>0x18&0xff,_0x54b92c[0x4*_0x1304c8+0x1]=this['state'][_0x1304c8]>>>0x10&0xff,_0x54b92c[0x4*_0x1304c8+0x2]=this['state'][_0x1304c8]>>>0x8&0xff,_0x54b92c[0x4*_0x1304c8+0x3]=this['state'][_0x1304c8]>>>0x0&0xff;return _0x54b92c;},_0x2a3df2['prototype']['hashBuffer']=function(){for(var _0x3d426d=this['buffer'],_0x22ae7a=this['state'],_0x579bbe=_0x22ae7a[0x0],_0x34fc9b=_0x22ae7a[0x1],_0x1ee28d=_0x22ae7a[0x2],_0x6dc168=_0x22ae7a[0x3],_0x54778e=_0x22ae7a[0x4],_0x5162af=_0x22ae7a[0x5],_0x23864d=_0x22ae7a[0x6],_0x5bc5d3=_0x22ae7a[0x7],_0x272103=0x0;_0x272103<BLOCK_SIZE;_0x272103++){if(_0x272103<0x10)this['temp'][_0x272103]=(0xff&_0x3d426d[0x4*_0x272103])<<0x18|(0xff&_0x3d426d[0x4*_0x272103+0x1])<<0x10|(0xff&_0x3d426d[0x4*_0x272103+0x2])<<0x8|0xff&_0x3d426d[0x4*_0x272103+0x3];else{var _0x506259=this['temp'][_0x272103-0x2],_0x114108=(_0x506259>>>0x11|_0x506259<<0xf)^(_0x506259>>>0x13|_0x506259<<0xd)^_0x506259>>>0xa,_0xcb5f02=((_0x506259=this['temp'][_0x272103-0xf])>>>0x7|_0x506259<<0x19)^(_0x506259>>>0x12|_0x506259<<0xe)^_0x506259>>>0x3;this['temp'][_0x272103]=(_0x114108+this['temp'][_0x272103-0x7]|0x0)+(_0xcb5f02+this['temp'][_0x272103-0x10]|0x0);}var _0x328b35=(((_0x54778e>>>0x6|_0x54778e<<0x1a)^(_0x54778e>>>0xb|_0x54778e<<0x15)^(_0x54778e>>>0x19|_0x54778e<<0x7))+(_0x54778e&_0x5162af^~_0x54778e&_0x23864d)|0x0)+(_0x5bc5d3+(KEY[_0x272103]+this['temp'][_0x272103]|0x0)|0x0)|0x0,_0x5f4798=((_0x579bbe>>>0x2|_0x579bbe<<0x1e)^(_0x579bbe>>>0xd|_0x579bbe<<0x13)^(_0x579bbe>>>0x16|_0x579bbe<<0xa))+(_0x579bbe&_0x34fc9b^_0x579bbe&_0x1ee28d^_0x34fc9b&_0x1ee28d)|0x0;_0x5bc5d3=_0x23864d,_0x23864d=_0x5162af,_0x5162af=_0x54778e,_0x54778e=_0x6dc168+_0x328b35|0x0,_0x6dc168=_0x1ee28d,_0x1ee28d=_0x34fc9b,_0x34fc9b=_0x579bbe,_0x579bbe=_0x328b35+_0x5f4798|0x0;}_0x22ae7a[0x0]+=_0x579bbe,_0x22ae7a[0x1]+=_0x34fc9b,_0x22ae7a[0x2]+=_0x1ee28d,_0x22ae7a[0x3]+=_0x6dc168,_0x22ae7a[0x4]+=_0x54778e,_0x22ae7a[0x5]+=_0x5162af,_0x22ae7a[0x6]+=_0x23864d,_0x22ae7a[0x7]+=_0x5bc5d3;},_0x2a3df2;}()),Sha256$1=(function(){function _0x487281(_0x478165){this['secret']=_0x478165,this['hash']=new RawSha256(),this['reset']();}return _0x487281['prototype']['update']=function(_0xdd91b9){if(!isEmptyData(_0xdd91b9)&&!this['error'])try{this['hash']['update'](convertToBuffer(_0xdd91b9));}catch(_0x60b7a0){this['error']=_0x60b7a0;}},_0x487281['prototype']['digestSync']=function(){if(this['error'])throw this['error'];return this['outer']?(this['outer']['finished']||this['outer']['update'](this['hash']['digest']()),this['outer']['digest']()):this['hash']['digest']();},_0x487281['prototype']['digest']=function(){return __awaiter(this,void 0x0,void 0x0,function(){return __generator(this,function(_0x3cc84e){return[0x2,this['digestSync']()];});});},_0x487281['prototype']['reset']=function(){if(this['hash']=new RawSha256(),this['secret']){this['outer']=new RawSha256();var _0x102da4=bufferFromSecret(this['secret']),_0x22759f=new Uint8Array(BLOCK_SIZE);_0x22759f['set'](_0x102da4);for(var _0x58513d=0x0;_0x58513d<BLOCK_SIZE;_0x58513d++)_0x102da4[_0x58513d]^=0x36,_0x22759f[_0x58513d]^=0x5c;this['hash']['update'](_0x102da4),this['outer']['update'](_0x22759f);for(_0x58513d=0x0;_0x58513d<_0x102da4['byteLength'];_0x58513d++)_0x102da4[_0x58513d]=0x0;}},_0x487281;}());function bufferFromSecret(_0x27c537){var _0x253748=convertToBuffer(_0x27c537);if(_0x253748['byteLength']>BLOCK_SIZE){var _0x508feb=new RawSha256();_0x508feb['update'](_0x253748),_0x253748=_0x508feb['digest']();}var _0x225268=new Uint8Array(BLOCK_SIZE);return _0x225268['set'](_0x253748),_0x225268;}var subtleCryptoMethods=['decrypt','digest','encrypt','exportKey','generateKey','importKey','sign','verify'];function supportsWebCrypto(_0x1425e1){return!(!supportsSecureRandom(_0x1425e1)||'object'!=typeof _0x1425e1['crypto']['subtle'])&&supportsSubtleCrypto(_0x1425e1['crypto']['subtle']);}function supportsSecureRandom(_0x4e6e42){return'object'==typeof _0x4e6e42&&'object'==typeof _0x4e6e42['crypto']&&'function'==typeof _0x4e6e42['crypto']['getRandomValues'];}function supportsSubtleCrypto(_0x542689){return _0x542689&&subtleCryptoMethods['every'](function(_0x195e11){return'function'==typeof _0x542689[_0x195e11];});}var Sha256=(function(){function _0x3e9e28(_0x3c243e){supportsWebCrypto(locateWindow())?this['hash']=new Sha256$2(_0x3c243e):this['hash']=new Sha256$1(_0x3c243e);}return _0x3e9e28['prototype']['update']=function(_0x4b0286,_0x5ad8b5){this['hash']['update'](convertToBuffer(_0x4b0286));},_0x3e9e28['prototype']['digest']=function(){return this['hash']['digest']();},_0x3e9e28['prototype']['reset']=function(){this['hash']['reset']();},_0x3e9e28;}()),es5$1={'exports':{}},es5=es5$1['exports'],hasRequiredEs5;function requireEs5(){return hasRequiredEs5||(hasRequiredEs5=0x1,es5$1['exports']=function(_0xd961f8){var t={};function _0x1e14d5(_0x190798){if(t[_0x190798])return t[_0x190798]['exports'];var _0x59b7b8=t[_0x190798]={'i':_0x190798,'l':!0x1,'exports':{}};return _0xd961f8[_0x190798]['call'](_0x59b7b8['exports'],_0x59b7b8,_0x59b7b8['exports'],_0x1e14d5),_0x59b7b8['l']=!0x0,_0x59b7b8['exports'];}return _0x1e14d5['m']=_0xd961f8,_0x1e14d5['c']=t,_0x1e14d5['d']=function(_0x5af68f,t,_0x140714){_0x1e14d5['o'](_0x5af68f,t)||Object['defineProperty'](_0x5af68f,t,{'enumerable':!0x0,'get':_0x140714});},_0x1e14d5['r']=function(_0x1b4115){'undefined'!=typeof Symbol&&Symbol['toStringTag']&&Object['defineProperty'](_0x1b4115,Symbol['toStringTag'],{'value':'Module'}),Object['defineProperty'](_0x1b4115,'__esModule',{'value':!0x0});},_0x1e14d5['t']=function(_0xac95d3,t){if(0x1&t&&(_0xac95d3=_0x1e14d5(_0xac95d3)),0x8&t)return _0xac95d3;if(0x4&t&&'object'==typeof _0xac95d3&&_0xac95d3&&_0xac95d3['__esModule'])return _0xac95d3;var _0x76d040=Object['create'](null);if(_0x1e14d5['r'](_0x76d040),Object['defineProperty'](_0x76d040,'default',{'enumerable':!0x0,'value':_0xac95d3}),0x2&t&&'string'!=typeof _0xac95d3){for(var _0x269c6a in _0xac95d3)_0x1e14d5['d'](_0x76d040,_0x269c6a,function(t){return _0xac95d3[t];}['bind'](null,_0x269c6a));}return _0x76d040;},_0x1e14d5['n']=function(_0x5a89f2){var t=_0x5a89f2&&_0x5a89f2['__esModule']?function(){return _0x5a89f2['default'];}:function(){return _0x5a89f2;};return _0x1e14d5['d'](t,'a',t),t;},_0x1e14d5['o']=function(_0x328722,t){return Object['prototype']['hasOwnProperty']['call'](_0x328722,t);},_0x1e14d5['p']='',_0x1e14d5(_0x1e14d5['s']=0x5a);}({0x11:function(_0x3c81ef,t,_0x96063c){t['__esModule']=!0x0,t['default']=void 0x0;var _0x1bdfda=_0x96063c(0x12),_0x18e6dc=(function(){function _0x258f56(){}return _0x258f56['getFirstMatch']=function(_0x591f7b,t){var _0x586791=t['match'](_0x591f7b);return _0x586791&&_0x586791['length']>0x0&&_0x586791[0x1]||'';},_0x258f56['getSecondMatch']=function(_0x1f0bde,t){var _0x382b99=t['match'](_0x1f0bde);return _0x382b99&&_0x382b99['length']>0x1&&_0x382b99[0x2]||'';},_0x258f56['matchAndReturnConst']=function(_0x505392,t,_0x382c15){if(_0x505392['test'](t))return _0x382c15;},_0x258f56['getWindowsVersionName']=function(_0x488d15){switch(_0x488d15){case'NT':return'NT';case'XP':case'NT\x205.1':return'XP';case'NT\x205.0':return'2000';case'NT\x205.2':return'2003';case'NT\x206.0':return'Vista';case'NT\x206.1':return'7';case'NT\x206.2':return'8';case'NT\x206.3':return'8.1';case'NT\x2010.0':return'10';default:return;}},_0x258f56['getMacOSVersionName']=function(_0x160220){var t=_0x160220['split']('.')['splice'](0x0,0x2)['map'](function(_0x1424f3){return parseInt(_0x1424f3,0xa)||0x0;});if(t['push'](0x0),0xa===t[0x0])switch(t[0x1]){case 0x5:return'Leopard';case 0x6:return'Snow\x20Leopard';case 0x7:return'Lion';case 0x8:return'Mountain\x20Lion';case 0x9:return'Mavericks';case 0xa:return'Yosemite';case 0xb:return'El\x20Capitan';case 0xc:return'Sierra';case 0xd:return'High\x20Sierra';case 0xe:return'Mojave';case 0xf:return'Catalina';default:return;}},_0x258f56['getAndroidVersionName']=function(_0x5baced){var t=_0x5baced['split']('.')['splice'](0x0,0x2)['map'](function(_0x14732b){return parseInt(_0x14732b,0xa)||0x0;});if(t['push'](0x0),!(0x1===t[0x0]&&t[0x1]<0x5))return 0x1===t[0x0]&&t[0x1]<0x6?'Cupcake':0x1===t[0x0]&&t[0x1]>=0x6?'Donut':0x2===t[0x0]&&t[0x1]<0x2?'Eclair':0x2===t[0x0]&&0x2===t[0x1]?'Froyo':0x2===t[0x0]&&t[0x1]>0x2?'Gingerbread':0x3===t[0x0]?'Honeycomb':0x4===t[0x0]&&t[0x1]<0x1?'Ice\x20Cream\x20Sandwich':0x4===t[0x0]&&t[0x1]<0x4?'Jelly\x20Bean':0x4===t[0x0]&&t[0x1]>=0x4?'KitKat':0x5===t[0x0]?'Lollipop':0x6===t[0x0]?'Marshmallow':0x7===t[0x0]?'Nougat':0x8===t[0x0]?'Oreo':0x9===t[0x0]?'Pie':void 0x0;},_0x258f56['getVersionPrecision']=function(_0x5ab695){return _0x5ab695['split']('.')['length'];},_0x258f56['compareVersions']=function(t,_0x58af0d,_0x5cafbc){void 0x0===_0x5cafbc&&(_0x5cafbc=!0x1);var _0x1f204e=_0x258f56['getVersionPrecision'](t),_0x335b54=_0x258f56['getVersionPrecision'](_0x58af0d),_0x2e151e=Math['max'](_0x1f204e,_0x335b54),_0x333807=0x0,_0x871cf0=_0x258f56['map']([t,_0x58af0d],function(t){var _0x2d92d7=_0x2e151e-_0x258f56['getVersionPrecision'](t),_0x2e6795=t+new Array(_0x2d92d7+0x1)['join']('.0');return _0x258f56['map'](_0x2e6795['split']('.'),function(_0x2c41c0){return new Array(0x14-_0x2c41c0['length'])['join']('0')+_0x2c41c0;})['reverse']();});for(_0x5cafbc&&(_0x333807=_0x2e151e-Math['min'](_0x1f204e,_0x335b54)),_0x2e151e-=0x1;_0x2e151e>=_0x333807;){if(_0x871cf0[0x0][_0x2e151e]>_0x871cf0[0x1][_0x2e151e])return 0x1;if(_0x871cf0[0x0][_0x2e151e]===_0x871cf0[0x1][_0x2e151e]){if(_0x2e151e===_0x333807)return 0x0;_0x2e151e-=0x1;}else{if(_0x871cf0[0x0][_0x2e151e]<_0x871cf0[0x1][_0x2e151e])return-0x1;}}},_0x258f56['map']=function(_0x1a182f,t){var _0x5ce291,_0x22d4fe=[];if(Array['prototype']['map'])return Array['prototype']['map']['call'](_0x1a182f,t);for(_0x5ce291=0x0;_0x5ce291<_0x1a182f['length'];_0x5ce291+=0x1)_0x22d4fe['push'](t(_0x1a182f[_0x5ce291]));return _0x22d4fe;},_0x258f56['find']=function(_0x11a73d,t){var _0x26d373,_0x564ba8;if(Array['prototype']['find'])return Array['prototype']['find']['call'](_0x11a73d,t);for(_0x26d373=0x0,_0x564ba8=_0x11a73d['length'];_0x26d373<_0x564ba8;_0x26d373+=0x1){var _0x4246dc=_0x11a73d[_0x26d373];if(t(_0x4246dc,_0x26d373))return _0x4246dc;}},_0x258f56['assign']=function(_0x5797b8){for(var t,_0x59b1b5,_0x22c136=_0x5797b8,_0x5543ea=arguments['length'],_0x3e93a1=new Array(_0x5543ea>0x1?_0x5543ea-0x1:0x0),_0x6b11df=0x1;_0x6b11df<_0x5543ea;_0x6b11df++)_0x3e93a1[_0x6b11df-0x1]=arguments[_0x6b11df];if(Object['assign'])return Object['assign']['apply'](Object,[_0x5797b8]['concat'](_0x3e93a1));var _0x359907=function(){var _0x7570b9=_0x3e93a1[t];'object'==typeof _0x7570b9&&null!==_0x7570b9&&Object['keys'](_0x7570b9)['forEach'](function(t){_0x22c136[t]=_0x7570b9[t];});};for(t=0x0,_0x59b1b5=_0x3e93a1['length'];t<_0x59b1b5;t+=0x1)_0x359907();return _0x5797b8;},_0x258f56['getBrowserAlias']=function(_0x58e09b){return _0x1bdfda['BROWSER_ALIASES_MAP'][_0x58e09b];},_0x258f56['getBrowserTypeByAlias']=function(_0x35d4c9){return _0x1bdfda['BROWSER_MAP'][_0x35d4c9]||'';},_0x258f56;}());t['default']=_0x18e6dc,_0x3c81ef['exports']=t['default'];},0x12:function(_0x2bb7da,t,_0x56e245){t['__esModule']=!0x0,t['ENGINE_MAP']=t['OS_MAP']=t['PLATFORMS_MAP']=t['BROWSER_MAP']=t['BROWSER_ALIASES_MAP']=void 0x0,t['BROWSER_ALIASES_MAP']={'Amazon\x20Silk':'amazon_silk','Android\x20Browser':'android','Bada':'bada','BlackBerry':'blackberry','Chrome':'chrome','Chromium':'chromium','Electron':'electron','Epiphany':'epiphany','Firefox':'firefox','Focus':'focus','Generic':'generic','Google\x20Search':'google_search','Googlebot':'googlebot','Internet\x20Explorer':'ie','K-Meleon':'k_meleon','Maxthon':'maxthon','Microsoft\x20Edge':'edge','MZ\x20Browser':'mz','NAVER\x20Whale\x20Browser':'naver','Opera':'opera','Opera\x20Coast':'opera_coast','Pale\x20Moon':'pale_moon','PhantomJS':'phantomjs','Puffin':'puffin','QupZilla':'qupzilla','QQ':'qq','QQLite':'qqlite','Safari':'safari','Sailfish':'sailfish','Samsung\x20Internet\x20for\x20Android':'samsung_internet','SeaMonkey':'seamonkey','Sleipnir':'sleipnir','Swing':'swing','Tizen':'tizen','UC\x20Browser':'uc','Vivaldi':'vivaldi','WebOS\x20Browser':'webos','WeChat':'wechat','Yandex\x20Browser':'yandex','Roku':'roku'},t['BROWSER_MAP']={'amazon_silk':'Amazon\x20Silk','android':'Android\x20Browser','bada':'Bada','blackberry':'BlackBerry','chrome':'Chrome','chromium':'Chromium','electron':'Electron','epiphany':'Epiphany','firefox':'Firefox','focus':'Focus','generic':'Generic','googlebot':'Googlebot','google_search':'Google\x20Search','ie':'Internet\x20Explorer','k_meleon':'K-Meleon','maxthon':'Maxthon','edge':'Microsoft\x20Edge','mz':'MZ\x20Browser','naver':'NAVER\x20Whale\x20Browser','opera':'Opera','opera_coast':'Opera\x20Coast','pale_moon':'Pale\x20Moon','phantomjs':'PhantomJS','puffin':'Puffin','qupzilla':'QupZilla','qq':'QQ\x20Browser','qqlite':'QQ\x20Browser\x20Lite','safari':'Safari','sailfish':'Sailfish','samsung_internet':'Samsung\x20Internet\x20for\x20Android','seamonkey':'SeaMonkey','sleipnir':'Sleipnir','swing':'Swing','tizen':'Tizen','uc':'UC\x20Browser','vivaldi':'Vivaldi','webos':'WebOS\x20Browser','wechat':'WeChat','yandex':'Yandex\x20Browser'},t['PLATFORMS_MAP']={'tablet':'tablet','mobile':'mobile','desktop':'desktop','tv':'tv','bot':'bot'},t['OS_MAP']={'WindowsPhone':'Windows\x20Phone','Windows':'Windows','MacOS':'macOS','iOS':'iOS','Android':'Android','WebOS':'WebOS','BlackBerry':'BlackBerry','Bada':'Bada','Tizen':'Tizen','Linux':'Linux','ChromeOS':'Chrome\x20OS','PlayStation4':'PlayStation\x204','Roku':'Roku'},t['ENGINE_MAP']={'EdgeHTML':'EdgeHTML','Blink':'Blink','Trident':'Trident','Presto':'Presto','Gecko':'Gecko','WebKit':'WebKit'};},0x5a:function(_0x2f4b58,t,_0x1fe214){t['__esModule']=!0x0,t['default']=void 0x0;var _0x300a04,_0x1f3568=(_0x300a04=_0x1fe214(0x5b))&&_0x300a04['__esModule']?_0x300a04:{'default':_0x300a04},_0x5c7b7d=_0x1fe214(0x12);function _0x299733(_0x242a49,t){for(var _0x1834ba=0x0;_0x1834ba<t['length'];_0x1834ba++){var _0x194ecc=t[_0x1834ba];_0x194ecc['enumerable']=_0x194ecc['enumerable']||!0x1,_0x194ecc['configurable']=!0x0,'value'in _0x194ecc&&(_0x194ecc['writable']=!0x0),Object['defineProperty'](_0x242a49,_0x194ecc['key'],_0x194ecc);}}var _0x2a0cb0=(function(){function _0x39438e(){}var t,_0x62c210,_0x5af3a7;return _0x39438e['getParser']=function(_0x35a45a,t){if(void 0x0===t&&(t=!0x1),'string'!=typeof _0x35a45a)throw new Error('UserAgent\x20should\x20be\x20a\x20string');return new _0x1f3568['default'](_0x35a45a,t);},_0x39438e['parse']=function(_0x1c7b54){return new _0x1f3568['default'](_0x1c7b54)['getResult']();},t=_0x39438e,_0x5af3a7=[{'key':'BROWSER_MAP','get':function(){return _0x5c7b7d['BROWSER_MAP'];}},{'key':'ENGINE_MAP','get':function(){return _0x5c7b7d['ENGINE_MAP'];}},{'key':'OS_MAP','get':function(){return _0x5c7b7d['OS_MAP'];}},{'key':'PLATFORMS_MAP','get':function(){return _0x5c7b7d['PLATFORMS_MAP'];}}],(_0x62c210=null)&&_0x299733(t['prototype'],_0x62c210),_0x5af3a7&&_0x299733(t,_0x5af3a7),_0x39438e;}());t['default']=_0x2a0cb0,_0x2f4b58['exports']=t['default'];},0x5b:function(_0x4d8016,t,_0x3d97ca){t['__esModule']=!0x0,t['default']=void 0x0;var _0x49116b=_0x139871(_0x3d97ca(0x5c)),_0x29968f=_0x139871(_0x3d97ca(0x5d)),_0x23c8ae=_0x139871(_0x3d97ca(0x5e)),_0x4f7a95=_0x139871(_0x3d97ca(0x5f)),_0x2669d3=_0x139871(_0x3d97ca(0x11));function _0x139871(_0x530dbb){return _0x530dbb&&_0x530dbb['__esModule']?_0x530dbb:{'default':_0x530dbb};}var _0x1317c5=(function(){function _0x7bac88(_0xad2066,t){if(void 0x0===t&&(t=!0x1),null==_0xad2066||''===_0xad2066)throw new Error('UserAgent\x20parameter\x20can\x27t\x20be\x20empty');this['_ua']=_0xad2066,this['parsedResult']={},!0x0!==t&&this['parse']();}var t=_0x7bac88['prototype'];return t['getUA']=function(){return this['_ua'];},t['test']=function(_0x24f60f){return _0x24f60f['test'](this['_ua']);},t['parseBrowser']=function(){var _0x951f82=this;this['parsedResult']['browser']={};var t=_0x2669d3['default']['find'](_0x49116b['default'],function(t){if('function'==typeof t['test'])return t['test'](_0x951f82);if(Array['isArray'](t['test']))return t['test']['some'](function(t){return _0x951f82['test'](t);});throw new Error('Browser\x27s\x20test\x20function\x20is\x20not\x20valid');});return t&&(this['parsedResult']['browser']=t['describe'](this['getUA']())),this['parsedResult']['browser'];},t['getBrowser']=function(){return this['parsedResult']['browser']?this['parsedResult']['browser']:this['parseBrowser']();},t['getBrowserName']=function(_0x1a33ba){return _0x1a33ba?String(this['getBrowser']()['name'])['toLowerCase']()||'':this['getBrowser']()['name']||'';},t['getBrowserVersion']=function(){return this['getBrowser']()['version'];},t['getOS']=function(){return this['parsedResult']['os']?this['parsedResult']['os']:this['parseOS']();},t['parseOS']=function(){var _0x2ffbfd=this;this['parsedResult']['os']={};var t=_0x2669d3['default']['find'](_0x29968f['default'],function(t){if('function'==typeof t['test'])return t['test'](_0x2ffbfd);if(Array['isArray'](t['test']))return t['test']['some'](function(t){return _0x2ffbfd['test'](t);});throw new Error('Browser\x27s\x20test\x20function\x20is\x20not\x20valid');});return t&&(this['parsedResult']['os']=t['describe'](this['getUA']())),this['parsedResult']['os'];},t['getOSName']=function(_0x274f51){var t=this['getOS']()['name'];return _0x274f51?String(t)['toLowerCase']()||'':t||'';},t['getOSVersion']=function(){return this['getOS']()['version'];},t['getPlatform']=function(){return this['parsedResult']['platform']?this['parsedResult']['platform']:this['parsePlatform']();},t['getPlatformType']=function(_0x12b875){void 0x0===_0x12b875&&(_0x12b875=!0x1);var t=this['getPlatform']()['type'];return _0x12b875?String(t)['toLowerCase']()||'':t||'';},t['parsePlatform']=function(){var _0x10c8d8=this;this['parsedResult']['platform']={};var t=_0x2669d3['default']['find'](_0x23c8ae['default'],function(t){if('function'==typeof t['test'])return t['test'](_0x10c8d8);if(Array['isArray'](t['test']))return t['test']['some'](function(t){return _0x10c8d8['test'](t);});throw new Error('Browser\x27s\x20test\x20function\x20is\x20not\x20valid');});return t&&(this['parsedResult']['platform']=t['describe'](this['getUA']())),this['parsedResult']['platform'];},t['getEngine']=function(){return this['parsedResult']['engine']?this['parsedResult']['engine']:this['parseEngine']();},t['getEngineName']=function(_0x4e88df){return _0x4e88df?String(this['getEngine']()['name'])['toLowerCase']()||'':this['getEngine']()['name']||'';},t['parseEngine']=function(){var _0x500de1=this;this['parsedResult']['engine']={};var t=_0x2669d3['default']['find'](_0x4f7a95['default'],function(t){if('function'==typeof t['test'])return t['test'](_0x500de1);if(Array['isArray'](t['test']))return t['test']['some'](function(t){return _0x500de1['test'](t);});throw new Error('Browser\x27s\x20test\x20function\x20is\x20not\x20valid');});return t&&(this['parsedResult']['engine']=t['describe'](this['getUA']())),this['parsedResult']['engine'];},t['parse']=function(){return this['parseBrowser'](),this['parseOS'](),this['parsePlatform'](),this['parseEngine'](),this;},t['getResult']=function(){return _0x2669d3['default']['assign']({},this['parsedResult']);},t['satisfies']=function(_0x25d5c9){var t=this,_0x4e877c={},_0x138801=0x0,_0x321f11={},_0x44ac18=0x0;if(Object['keys'](_0x25d5c9)['forEach'](function(t){var _0x444d15=_0x25d5c9[t];'string'==typeof _0x444d15?(_0x321f11[t]=_0x444d15,_0x44ac18+=0x1):'object'==typeof _0x444d15&&(_0x4e877c[t]=_0x444d15,_0x138801+=0x1);}),_0x138801>0x0){var _0x27fa9d=Object['keys'](_0x4e877c),_0x22a23d=_0x2669d3['default']['find'](_0x27fa9d,function(_0x3f11da){return t['isOS'](_0x3f11da);});if(_0x22a23d){var _0x191e08=this['satisfies'](_0x4e877c[_0x22a23d]);if(void 0x0!==_0x191e08)return _0x191e08;}var _0x24b363=_0x2669d3['default']['find'](_0x27fa9d,function(_0x353e05){return t['isPlatform'](_0x353e05);});if(_0x24b363){var _0xdc4eef=this['satisfies'](_0x4e877c[_0x24b363]);if(void 0x0!==_0xdc4eef)return _0xdc4eef;}}if(_0x44ac18>0x0){var _0x40dc5a=Object['keys'](_0x321f11),_0x56c534=_0x2669d3['default']['find'](_0x40dc5a,function(_0xc8a426){return t['isBrowser'](_0xc8a426,!0x0);});if(void 0x0!==_0x56c534)return this['compareVersion'](_0x321f11[_0x56c534]);}},t['isBrowser']=function(_0x2a51ce,t){void 0x0===t&&(t=!0x1);var _0x171385=this['getBrowserName']()['toLowerCase'](),_0x286f1c=_0x2a51ce['toLowerCase'](),_0x42673a=_0x2669d3['default']['getBrowserTypeByAlias'](_0x286f1c);return t&&_0x42673a&&(_0x286f1c=_0x42673a['toLowerCase']()),_0x286f1c===_0x171385;},t['compareVersion']=function(_0x4a7b72){var t=[0x0],_0x54906d=_0x4a7b72,_0x510a2d=!0x1,_0x4d1e32=this['getBrowserVersion']();if('string'==typeof _0x4d1e32)return'>'===_0x4a7b72[0x0]||'<'===_0x4a7b72[0x0]?(_0x54906d=_0x4a7b72['substr'](0x1),'='===_0x4a7b72[0x1]?(_0x510a2d=!0x0,_0x54906d=_0x4a7b72['substr'](0x2)):t=[],'>'===_0x4a7b72[0x0]?t['push'](0x1):t['push'](-0x1)):'='===_0x4a7b72[0x0]?_0x54906d=_0x4a7b72['substr'](0x1):'~'===_0x4a7b72[0x0]&&(_0x510a2d=!0x0,_0x54906d=_0x4a7b72['substr'](0x1)),t['indexOf'](_0x2669d3['default']['compareVersions'](_0x4d1e32,_0x54906d,_0x510a2d))>-0x1;},t['isOS']=function(_0x3e692b){return this['getOSName'](!0x0)===String(_0x3e692b)['toLowerCase']();},t['isPlatform']=function(_0x22e228){return this['getPlatformType'](!0x0)===String(_0x22e228)['toLowerCase']();},t['isEngine']=function(_0x511807){return this['getEngineName'](!0x0)===String(_0x511807)['toLowerCase']();},t['is']=function(_0x126aa5,t){return void 0x0===t&&(t=!0x1),this['isBrowser'](_0x126aa5,t)||this['isOS'](_0x126aa5)||this['isPlatform'](_0x126aa5);},t['some']=function(_0x533b04){var t=this;return void 0x0===_0x533b04&&(_0x533b04=[]),_0x533b04['some'](function(_0x359f10){return t['is'](_0x359f10);});},_0x7bac88;}());t['default']=_0x1317c5,_0x4d8016['exports']=t['default'];},0x5c:function(_0x523a49,t,_0xb97b6d){t['__esModule']=!0x0,t['default']=void 0x0;var _0x522daa,_0x433229=(_0x522daa=_0xb97b6d(0x11))&&_0x522daa['__esModule']?_0x522daa:{'default':_0x522daa},_0x212260=/version\/(\d+(\.?_?\d+)+)/i,_0x573914=[{'test':[/googlebot/i],'describe':function(_0x13aa32){var t={'name':'Googlebot'},_0x342d47=_0x433229['default']['getFirstMatch'](/googlebot\/(\d+(\.\d+))/i,_0x13aa32)||_0x433229['default']['getFirstMatch'](_0x212260,_0x13aa32);return _0x342d47&&(t['version']=_0x342d47),t;}},{'test':[/opera/i],'describe':function(_0x3fbf48){var t={'name':'Opera'},_0x43d2d9=_0x433229['default']['getFirstMatch'](_0x212260,_0x3fbf48)||_0x433229['default']['getFirstMatch'](/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,_0x3fbf48);return _0x43d2d9&&(t['version']=_0x43d2d9),t;}},{'test':[/opr\/|opios/i],'describe':function(_0x5161a8){var t={'name':'Opera'},_0x452b58=_0x433229['default']['getFirstMatch'](/(?:opr|opios)[\s/](\S+)/i,_0x5161a8)||_0x433229['default']['getFirstMatch'](_0x212260,_0x5161a8);return _0x452b58&&(t['version']=_0x452b58),t;}},{'test':[/SamsungBrowser/i],'describe':function(_0x5e9b03){var t={'name':'Samsung\x20Internet\x20for\x20Android'},_0x384677=_0x433229['default']['getFirstMatch'](_0x212260,_0x5e9b03)||_0x433229['default']['getFirstMatch'](/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,_0x5e9b03);return _0x384677&&(t['version']=_0x384677),t;}},{'test':[/Whale/i],'describe':function(_0x53e8ee){var t={'name':'NAVER\x20Whale\x20Browser'},_0x26d0be=_0x433229['default']['getFirstMatch'](_0x212260,_0x53e8ee)||_0x433229['default']['getFirstMatch'](/(?:whale)[\s/](\d+(?:\.\d+)+)/i,_0x53e8ee);return _0x26d0be&&(t['version']=_0x26d0be),t;}},{'test':[/PaleMoon/i],'describe':function(_0x6694e5){var t={'name':'Pale\x20Moon'},_0x9d17fc=_0x433229['default']['getFirstMatch'](_0x212260,_0x6694e5)||_0x433229['default']['getFirstMatch'](/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,_0x6694e5);return _0x9d17fc&&(t['version']=_0x9d17fc),t;}},{'test':[/MZBrowser/i],'describe':function(_0x1343ab){var t={'name':'MZ\x20Browser'},_0x4ff568=_0x433229['default']['getFirstMatch'](/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,_0x1343ab)||_0x433229['default']['getFirstMatch'](_0x212260,_0x1343ab);return _0x4ff568&&(t['version']=_0x4ff568),t;}},{'test':[/focus/i],'describe':function(_0x2f4dc1){var t={'name':'Focus'},_0x1d7a23=_0x433229['default']['getFirstMatch'](/(?:focus)[\s/](\d+(?:\.\d+)+)/i,_0x2f4dc1)||_0x433229['default']['getFirstMatch'](_0x212260,_0x2f4dc1);return _0x1d7a23&&(t['version']=_0x1d7a23),t;}},{'test':[/swing/i],'describe':function(_0x4dc384){var t={'name':'Swing'},_0x55f2b4=_0x433229['default']['getFirstMatch'](/(?:swing)[\s/](\d+(?:\.\d+)+)/i,_0x4dc384)||_0x433229['default']['getFirstMatch'](_0x212260,_0x4dc384);return _0x55f2b4&&(t['version']=_0x55f2b4),t;}},{'test':[/coast/i],'describe':function(_0x422c02){var t={'name':'Opera\x20Coast'},_0x56d878=_0x433229['default']['getFirstMatch'](_0x212260,_0x422c02)||_0x433229['default']['getFirstMatch'](/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,_0x422c02);return _0x56d878&&(t['version']=_0x56d878),t;}},{'test':[/opt\/\d+(?:.?_?\d+)+/i],'describe':function(_0x36f832){var t={'name':'Opera\x20Touch'},_0x29e7c0=_0x433229['default']['getFirstMatch'](/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,_0x36f832)||_0x433229['default']['getFirstMatch'](_0x212260,_0x36f832);return _0x29e7c0&&(t['version']=_0x29e7c0),t;}},{'test':[/yabrowser/i],'describe':function(_0x259e9e){var t={'name':'Yandex\x20Browser'},_0x371b05=_0x433229['default']['getFirstMatch'](/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,_0x259e9e)||_0x433229['default']['getFirstMatch'](_0x212260,_0x259e9e);return _0x371b05&&(t['version']=_0x371b05),t;}},{'test':[/ucbrowser/i],'describe':function(_0x320a25){var t={'name':'UC\x20Browser'},_0x35c433=_0x433229['default']['getFirstMatch'](_0x212260,_0x320a25)||_0x433229['default']['getFirstMatch'](/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,_0x320a25);return _0x35c433&&(t['version']=_0x35c433),t;}},{'test':[/Maxthon|mxios/i],'describe':function(_0x52d370){var t={'name':'Maxthon'},_0x4336bb=_0x433229['default']['getFirstMatch'](_0x212260,_0x52d370)||_0x433229['default']['getFirstMatch'](/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,_0x52d370);return _0x4336bb&&(t['version']=_0x4336bb),t;}},{'test':[/epiphany/i],'describe':function(_0x41d0b4){var t={'name':'Epiphany'},_0x2dac66=_0x433229['default']['getFirstMatch'](_0x212260,_0x41d0b4)||_0x433229['default']['getFirstMatch'](/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,_0x41d0b4);return _0x2dac66&&(t['version']=_0x2dac66),t;}},{'test':[/puffin/i],'describe':function(_0x3c44b9){var t={'name':'Puffin'},_0x28fd06=_0x433229['default']['getFirstMatch'](_0x212260,_0x3c44b9)||_0x433229['default']['getFirstMatch'](/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,_0x3c44b9);return _0x28fd06&&(t['version']=_0x28fd06),t;}},{'test':[/sleipnir/i],'describe':function(_0x220c7c){var t={'name':'Sleipnir'},_0x3f56fa=_0x433229['default']['getFirstMatch'](_0x212260,_0x220c7c)||_0x433229['default']['getFirstMatch'](/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,_0x220c7c);return _0x3f56fa&&(t['version']=_0x3f56fa),t;}},{'test':[/k-meleon/i],'describe':function(_0x21b6cc){var t={'name':'K-Meleon'},_0x5a4bc6=_0x433229['default']['getFirstMatch'](_0x212260,_0x21b6cc)||_0x433229['default']['getFirstMatch'](/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,_0x21b6cc);return _0x5a4bc6&&(t['version']=_0x5a4bc6),t;}},{'test':[/micromessenger/i],'describe':function(_0x13991f){var t={'name':'WeChat'},_0x404551=_0x433229['default']['getFirstMatch'](/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,_0x13991f)||_0x433229['default']['getFirstMatch'](_0x212260,_0x13991f);return _0x404551&&(t['version']=_0x404551),t;}},{'test':[/qqbrowser/i],'describe':function(_0x3db8ce){var t={'name':/qqbrowserlite/i['test'](_0x3db8ce)?'QQ\x20Browser\x20Lite':'QQ\x20Browser'},_0x4142b4=_0x433229['default']['getFirstMatch'](/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,_0x3db8ce)||_0x433229['default']['getFirstMatch'](_0x212260,_0x3db8ce);return _0x4142b4&&(t['version']=_0x4142b4),t;}},{'test':[/msie|trident/i],'describe':function(_0x2852a4){var t={'name':'Internet\x20Explorer'},_0x208c7d=_0x433229['default']['getFirstMatch'](/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,_0x2852a4);return _0x208c7d&&(t['version']=_0x208c7d),t;}},{'test':[/\sedg\//i],'describe':function(_0x21d70e){var t={'name':'Microsoft\x20Edge'},_0x1ccac1=_0x433229['default']['getFirstMatch'](/\sedg\/(\d+(\.?_?\d+)+)/i,_0x21d70e);return _0x1ccac1&&(t['version']=_0x1ccac1),t;}},{'test':[/edg([ea]|ios)/i],'describe':function(_0x507c6a){var t={'name':'Microsoft\x20Edge'},_0x388be8=_0x433229['default']['getSecondMatch'](/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,_0x507c6a);return _0x388be8&&(t['version']=_0x388be8),t;}},{'test':[/vivaldi/i],'describe':function(_0x3a5558){var t={'name':'Vivaldi'},_0x42673c=_0x433229['default']['getFirstMatch'](/vivaldi\/(\d+(\.?_?\d+)+)/i,_0x3a5558);return _0x42673c&&(t['version']=_0x42673c),t;}},{'test':[/seamonkey/i],'describe':function(_0x222bdc){var t={'name':'SeaMonkey'},_0x3618d2=_0x433229['default']['getFirstMatch'](/seamonkey\/(\d+(\.?_?\d+)+)/i,_0x222bdc);return _0x3618d2&&(t['version']=_0x3618d2),t;}},{'test':[/sailfish/i],'describe':function(_0x4ec057){var t={'name':'Sailfish'},_0x32b70c=_0x433229['default']['getFirstMatch'](/sailfish\s?browser\/(\d+(\.\d+)?)/i,_0x4ec057);return _0x32b70c&&(t['version']=_0x32b70c),t;}},{'test':[/silk/i],'describe':function(_0x40f915){var t={'name':'Amazon\x20Silk'},_0x386558=_0x433229['default']['getFirstMatch'](/silk\/(\d+(\.?_?\d+)+)/i,_0x40f915);return _0x386558&&(t['version']=_0x386558),t;}},{'test':[/phantom/i],'describe':function(_0x34745c){var t={'name':'PhantomJS'},_0x2243d9=_0x433229['default']['getFirstMatch'](/phantomjs\/(\d+(\.?_?\d+)+)/i,_0x34745c);return _0x2243d9&&(t['version']=_0x2243d9),t;}},{'test':[/slimerjs/i],'describe':function(_0x3f7974){var t={'name':'SlimerJS'},_0x29170c=_0x433229['default']['getFirstMatch'](/slimerjs\/(\d+(\.?_?\d+)+)/i,_0x3f7974);return _0x29170c&&(t['version']=_0x29170c),t;}},{'test':[/blackberry|\bbb\d+/i,/rim\stablet/i],'describe':function(_0x59ef9b){var t={'name':'BlackBerry'},_0xee9ac2=_0x433229['default']['getFirstMatch'](_0x212260,_0x59ef9b)||_0x433229['default']['getFirstMatch'](/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,_0x59ef9b);return _0xee9ac2&&(t['version']=_0xee9ac2),t;}},{'test':[/(web|hpw)[o0]s/i],'describe':function(_0x2ad2ae){var t={'name':'WebOS\x20Browser'},_0x24d1e3=_0x433229['default']['getFirstMatch'](_0x212260,_0x2ad2ae)||_0x433229['default']['getFirstMatch'](/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,_0x2ad2ae);return _0x24d1e3&&(t['version']=_0x24d1e3),t;}},{'test':[/bada/i],'describe':function(_0x521c73){var t={'name':'Bada'},_0x1d8061=_0x433229['default']['getFirstMatch'](/dolfin\/(\d+(\.?_?\d+)+)/i,_0x521c73);return _0x1d8061&&(t['version']=_0x1d8061),t;}},{'test':[/tizen/i],'describe':function(_0x1441bd){var t={'name':'Tizen'},_0x2d87e0=_0x433229['default']['getFirstMatch'](/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,_0x1441bd)||_0x433229['default']['getFirstMatch'](_0x212260,_0x1441bd);return _0x2d87e0&&(t['version']=_0x2d87e0),t;}},{'test':[/qupzilla/i],'describe':function(_0x5e8369){var t={'name':'QupZilla'},_0x11a4c3=_0x433229['default']['getFirstMatch'](/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,_0x5e8369)||_0x433229['default']['getFirstMatch'](_0x212260,_0x5e8369);return _0x11a4c3&&(t['version']=_0x11a4c3),t;}},{'test':[/firefox|iceweasel|fxios/i],'describe':function(_0x68fe76){var t={'name':'Firefox'},_0x57c920=_0x433229['default']['getFirstMatch'](/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,_0x68fe76);return _0x57c920&&(t['version']=_0x57c920),t;}},{'test':[/electron/i],'describe':function(_0x17786a){var t={'name':'Electron'},_0x573f65=_0x433229['default']['getFirstMatch'](/(?:electron)\/(\d+(\.?_?\d+)+)/i,_0x17786a);return _0x573f65&&(t['version']=_0x573f65),t;}},{'test':[/MiuiBrowser/i],'describe':function(_0x1c99ff){var t={'name':'Miui'},_0x4b5f22=_0x433229['default']['getFirstMatch'](/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,_0x1c99ff);return _0x4b5f22&&(t['version']=_0x4b5f22),t;}},{'test':[/chromium/i],'describe':function(_0x261ac7){var t={'name':'Chromium'},_0x48d5c4=_0x433229['default']['getFirstMatch'](/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,_0x261ac7)||_0x433229['default']['getFirstMatch'](_0x212260,_0x261ac7);return _0x48d5c4&&(t['version']=_0x48d5c4),t;}},{'test':[/chrome|crios|crmo/i],'describe':function(_0x2b5529){var t={'name':'Chrome'},_0x377f75=_0x433229['default']['getFirstMatch'](/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,_0x2b5529);return _0x377f75&&(t['version']=_0x377f75),t;}},{'test':[/GSA/i],'describe':function(_0x228a7b){var t={'name':'Google\x20Search'},_0x5cfc4c=_0x433229['default']['getFirstMatch'](/(?:GSA)\/(\d+(\.?_?\d+)+)/i,_0x228a7b);return _0x5cfc4c&&(t['version']=_0x5cfc4c),t;}},{'test':function(_0x574b60){var t=!_0x574b60['test'](/like android/i),_0x845114=_0x574b60['test'](/android/i);return t&&_0x845114;},'describe':function(_0x1c1b0e){var t={'name':'Android\x20Browser'},_0x496679=_0x433229['default']['getFirstMatch'](_0x212260,_0x1c1b0e);return _0x496679&&(t['version']=_0x496679),t;}},{'test':[/playstation 4/i],'describe':function(_0x671f0a){var t={'name':'PlayStation\x204'},_0x39081c=_0x433229['default']['getFirstMatch'](_0x212260,_0x671f0a);return _0x39081c&&(t['version']=_0x39081c),t;}},{'test':[/safari|applewebkit/i],'describe':function(_0x57cb61){var t={'name':'Safari'},_0x1db91e=_0x433229['default']['getFirstMatch'](_0x212260,_0x57cb61);return _0x1db91e&&(t['version']=_0x1db91e),t;}},{'test':[/.*/i],'describe':function(_0x2b7b99){var t=-0x1!==_0x2b7b99['search']('\x5c(')?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{'name':_0x433229['default']['getFirstMatch'](t,_0x2b7b99),'version':_0x433229['default']['getSecondMatch'](t,_0x2b7b99)};}}];t['default']=_0x573914,_0x523a49['exports']=t['default'];},0x5d:function(_0x32996a,t,_0x48c50d){t['__esModule']=!0x0,t['default']=void 0x0;var _0x292680,_0x4508d8=(_0x292680=_0x48c50d(0x11))&&_0x292680['__esModule']?_0x292680:{'default':_0x292680},_0x58ba29=_0x48c50d(0x12),_0x52b452=[{'test':[/Roku\/DVP/],'describe':function(_0x24ccf0){var t=_0x4508d8['default']['getFirstMatch'](/Roku\/DVP-(\d+\.\d+)/i,_0x24ccf0);return{'name':_0x58ba29['OS_MAP']['Roku'],'version':t};}},{'test':[/windows phone/i],'describe':function(_0x2521fa){var t=_0x4508d8['default']['getFirstMatch'](/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,_0x2521fa);return{'name':_0x58ba29['OS_MAP']['WindowsPhone'],'version':t};}},{'test':[/windows /i],'describe':function(_0x362618){var t=_0x4508d8['default']['getFirstMatch'](/Windows ((NT|XP)( \d\d?.\d)?)/i,_0x362618),_0x158192=_0x4508d8['default']['getWindowsVersionName'](t);return{'name':_0x58ba29['OS_MAP']['Windows'],'version':t,'versionName':_0x158192};}},{'test':[/Macintosh(.*?) FxiOS(.*?)\//],'describe':function(_0x32de0c){var t={'name':_0x58ba29['OS_MAP']['iOS']},_0xc704ba=_0x4508d8['default']['getSecondMatch'](/(Version\/)(\d[\d.]+)/,_0x32de0c);return _0xc704ba&&(t['version']=_0xc704ba),t;}},{'test':[/macintosh/i],'describe':function(_0x505926){var t=_0x4508d8['default']['getFirstMatch'](/mac os x (\d+(\.?_?\d+)+)/i,_0x505926)['replace'](/[_\s]/g,'.'),_0x5ee383=_0x4508d8['default']['getMacOSVersionName'](t),_0x1e8ab7={'name':_0x58ba29['OS_MAP']['MacOS'],'version':t};return _0x5ee383&&(_0x1e8ab7['versionName']=_0x5ee383),_0x1e8ab7;}},{'test':[/(ipod|iphone|ipad)/i],'describe':function(_0x4b2932){var t=_0x4508d8['default']['getFirstMatch'](/os (\d+([_\s]\d+)*) like mac os x/i,_0x4b2932)['replace'](/[_\s]/g,'.');return{'name':_0x58ba29['OS_MAP']['iOS'],'version':t};}},{'test':function(_0xe8c201){var t=!_0xe8c201['test'](/like android/i),_0x545bda=_0xe8c201['test'](/android/i);return t&&_0x545bda;},'describe':function(_0xcefc84){var t=_0x4508d8['default']['getFirstMatch'](/android[\s/-](\d+(\.\d+)*)/i,_0xcefc84),_0x43f2ab=_0x4508d8['default']['getAndroidVersionName'](t),_0x21f570={'name':_0x58ba29['OS_MAP']['Android'],'version':t};return _0x43f2ab&&(_0x21f570['versionName']=_0x43f2ab),_0x21f570;}},{'test':[/(web|hpw)[o0]s/i],'describe':function(_0x162409){var t=_0x4508d8['default']['getFirstMatch'](/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,_0x162409),_0x364239={'name':_0x58ba29['OS_MAP']['WebOS']};return t&&t['length']&&(_0x364239['version']=t),_0x364239;}},{'test':[/blackberry|\bbb\d+/i,/rim\stablet/i],'describe':function(_0x44bdc7){var t=_0x4508d8['default']['getFirstMatch'](/rim\stablet\sos\s(\d+(\.\d+)*)/i,_0x44bdc7)||_0x4508d8['default']['getFirstMatch'](/blackberry\d+\/(\d+([_\s]\d+)*)/i,_0x44bdc7)||_0x4508d8['default']['getFirstMatch'](/\bbb(\d+)/i,_0x44bdc7);return{'name':_0x58ba29['OS_MAP']['BlackBerry'],'version':t};}},{'test':[/bada/i],'describe':function(_0x18ab4b){var t=_0x4508d8['default']['getFirstMatch'](/bada\/(\d+(\.\d+)*)/i,_0x18ab4b);return{'name':_0x58ba29['OS_MAP']['Bada'],'version':t};}},{'test':[/tizen/i],'describe':function(_0x4ee2c2){var t=_0x4508d8['default']['getFirstMatch'](/tizen[/\s](\d+(\.\d+)*)/i,_0x4ee2c2);return{'name':_0x58ba29['OS_MAP']['Tizen'],'version':t};}},{'test':[/linux/i],'describe':function(){return{'name':_0x58ba29['OS_MAP']['Linux']};}},{'test':[/CrOS/],'describe':function(){return{'name':_0x58ba29['OS_MAP']['ChromeOS']};}},{'test':[/PlayStation 4/],'describe':function(_0x1f574c){var t=_0x4508d8['default']['getFirstMatch'](/PlayStation 4[/\s](\d+(\.\d+)*)/i,_0x1f574c);return{'name':_0x58ba29['OS_MAP']['PlayStation4'],'version':t};}}];t['default']=_0x52b452,_0x32996a['exports']=t['default'];},0x5e:function(_0x1ab734,t,_0x407aee){t['__esModule']=!0x0,t['default']=void 0x0;var _0x51537e,_0x1359b2=(_0x51537e=_0x407aee(0x11))&&_0x51537e['__esModule']?_0x51537e:{'default':_0x51537e},_0x68fd0c=_0x407aee(0x12),_0x122c31=[{'test':[/googlebot/i],'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['bot'],'vendor':'Google'};}},{'test':[/huawei/i],'describe':function(_0x2b2f9e){var t=_0x1359b2['default']['getFirstMatch'](/(can-l01)/i,_0x2b2f9e)&&'Nova',_0x5488b0={'type':_0x68fd0c['PLATFORMS_MAP']['mobile'],'vendor':'Huawei'};return t&&(_0x5488b0['model']=t),_0x5488b0;}},{'test':[/nexus\s*(?:7|8|9|10).*/i],'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['tablet'],'vendor':'Nexus'};}},{'test':[/ipad/i],'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['tablet'],'vendor':'Apple','model':'iPad'};}},{'test':[/Macintosh(.*?) FxiOS(.*?)\//],'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['tablet'],'vendor':'Apple','model':'iPad'};}},{'test':[/kftt build/i],'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['tablet'],'vendor':'Amazon','model':'Kindle\x20Fire\x20HD\x207'};}},{'test':[/silk/i],'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['tablet'],'vendor':'Amazon'};}},{'test':[/tablet(?! pc)/i],'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['tablet']};}},{'test':function(_0x3d0510){var t=_0x3d0510['test'](/ipod|iphone/i),_0x5c4eb0=_0x3d0510['test'](/like (ipod|iphone)/i);return t&&!_0x5c4eb0;},'describe':function(_0x199f89){var t=_0x1359b2['default']['getFirstMatch'](/(ipod|iphone)/i,_0x199f89);return{'type':_0x68fd0c['PLATFORMS_MAP']['mobile'],'vendor':'Apple','model':t};}},{'test':[/nexus\s*[0-6].*/i,/galaxy nexus/i],'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['mobile'],'vendor':'Nexus'};}},{'test':[/Nokia/i],'describe':function(_0x5723af){var t=_0x1359b2['default']['getFirstMatch'](/Nokia\s+([0-9]+(\.[0-9]+)?)/i,_0x5723af),_0xf269a0={'type':_0x68fd0c['PLATFORMS_MAP']['mobile'],'vendor':'Nokia'};return t&&(_0xf269a0['model']=t),_0xf269a0;}},{'test':[/[^-]mobi/i],'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['mobile']};}},{'test':function(_0x53ddb0){return'blackberry'===_0x53ddb0['getBrowserName'](!0x0);},'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['mobile'],'vendor':'BlackBerry'};}},{'test':function(_0x1140d0){return'bada'===_0x1140d0['getBrowserName'](!0x0);},'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['mobile']};}},{'test':function(_0x215eb3){return'windows\x20phone'===_0x215eb3['getBrowserName']();},'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['mobile'],'vendor':'Microsoft'};}},{'test':function(_0x4b523d){var t=Number(String(_0x4b523d['getOSVersion']())['split']('.')[0x0]);return'android'===_0x4b523d['getOSName'](!0x0)&&t>=0x3;},'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['tablet']};}},{'test':function(_0x2e9716){return'android'===_0x2e9716['getOSName'](!0x0);},'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['mobile']};}},{'test':function(_0x5117fc){return'macos'===_0x5117fc['getOSName'](!0x0);},'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['desktop'],'vendor':'Apple'};}},{'test':function(_0x364ca8){return'windows'===_0x364ca8['getOSName'](!0x0);},'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['desktop']};}},{'test':function(_0x2513d6){return'linux'===_0x2513d6['getOSName'](!0x0);},'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['desktop']};}},{'test':function(_0x45c624){return'playstation\x204'===_0x45c624['getOSName'](!0x0);},'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['tv']};}},{'test':function(_0xd14663){return'roku'===_0xd14663['getOSName'](!0x0);},'describe':function(){return{'type':_0x68fd0c['PLATFORMS_MAP']['tv']};}}];t['default']=_0x122c31,_0x1ab734['exports']=t['default'];},0x5f:function(_0x3cf348,t,_0x4aaeab){t['__esModule']=!0x0,t['default']=void 0x0;var _0x6a814d,_0x4c1341=(_0x6a814d=_0x4aaeab(0x11))&&_0x6a814d['__esModule']?_0x6a814d:{'default':_0x6a814d},_0x509b2a=_0x4aaeab(0x12),_0x5ad1f0=[{'test':function(_0x45d785){return'microsoft\x20edge'===_0x45d785['getBrowserName'](!0x0);},'describe':function(_0x3b51a7){if(/\sedg\//i['test'](_0x3b51a7))return{'name':_0x509b2a['ENGINE_MAP']['Blink']};var t=_0x4c1341['default']['getFirstMatch'](/edge\/(\d+(\.?_?\d+)+)/i,_0x3b51a7);return{'name':_0x509b2a['ENGINE_MAP']['EdgeHTML'],'version':t};}},{'test':[/trident/i],'describe':function(_0x2d41d7){var t={'name':_0x509b2a['ENGINE_MAP']['Trident']},_0x408f50=_0x4c1341['default']['getFirstMatch'](/trident\/(\d+(\.?_?\d+)+)/i,_0x2d41d7);return _0x408f50&&(t['version']=_0x408f50),t;}},{'test':function(_0x5677ea){return _0x5677ea['test'](/presto/i);},'describe':function(_0x4cb9a5){var t={'name':_0x509b2a['ENGINE_MAP']['Presto']},_0x3cabc3=_0x4c1341['default']['getFirstMatch'](/presto\/(\d+(\.?_?\d+)+)/i,_0x4cb9a5);return _0x3cabc3&&(t['version']=_0x3cabc3),t;}},{'test':function(_0x5d85a3){var t=_0x5d85a3['test'](/gecko/i),_0x15fa95=_0x5d85a3['test'](/like gecko/i);return t&&!_0x15fa95;},'describe':function(_0x554b95){var t={'name':_0x509b2a['ENGINE_MAP']['Gecko']},_0x538e61=_0x4c1341['default']['getFirstMatch'](/gecko\/(\d+(\.?_?\d+)+)/i,_0x554b95);return _0x538e61&&(t['version']=_0x538e61),t;}},{'test':[/(apple)?webkit\/537\.36/i],'describe':function(){return{'name':_0x509b2a['ENGINE_MAP']['Blink']};}},{'test':[/(apple)?webkit/i],'describe':function(_0x260fc4){var t={'name':_0x509b2a['ENGINE_MAP']['WebKit']},_0x255ec6=_0x4c1341['default']['getFirstMatch'](/webkit\/(\d+(\.?_?\d+)+)/i,_0x260fc4);return _0x255ec6&&(t['version']=_0x255ec6),t;}}];t['default']=_0x5ad1f0,_0x3cf348['exports']=t['default'];}})),es5$1['exports'];}var es5Exports=requireEs5();const createDefaultUserAgentProvider=({serviceId:_0x3c9833,clientVersion:_0x185307})=>async _0x516ca4=>{const _0x3fe79f='undefined'!=typeof window&&window?.['navigator']?.['userAgent']?es5Exports['parse'](window['navigator']['userAgent']):void 0x0,_0xd2b60=[['aws-sdk-js',_0x185307],['ua','2.1'],['os/'+(_0x3fe79f?.['os']?.['name']||'other'),_0x3fe79f?.['os']?.['version']],['lang/js'],['md/browser',(_0x3fe79f?.['browser']?.['name']??'unknown')+'_'+(_0x3fe79f?.['browser']?.['version']??'unknown')]];_0x3c9833&&_0xd2b60['push'](['api/'+_0x3c9833,_0x185307]);const _0x112223=await _0x516ca4?.['userAgentAppId']?.();return _0x112223&&_0xd2b60['push'](['app/'+_0x112223]),_0xd2b60;};var Crc32=(function(){function _0x4ae9d1(){this['checksum']=0xffffffff;}return _0x4ae9d1['prototype']['update']=function(_0x3aa08a){var _0x1575e8,_0x40aed1;try{for(var _0x4db2d5=__values(_0x3aa08a),_0x176911=_0x4db2d5['next']();!_0x176911['done'];_0x176911=_0x4db2d5['next']()){var _0x4dc166=_0x176911['value'];this['checksum']=this['checksum']>>>0x8^lookupTable[0xff&(this['checksum']^_0x4dc166)];}}catch(_0x38faa7){_0x1575e8={'error':_0x38faa7};}finally{try{_0x176911&&!_0x176911['done']&&(_0x40aed1=_0x4db2d5['return'])&&_0x40aed1['call'](_0x4db2d5);}finally{if(_0x1575e8)throw _0x1575e8['error'];}}return this;},_0x4ae9d1['prototype']['digest']=function(){return(0xffffffff^this['checksum'])>>>0x0;},_0x4ae9d1;}()),a_lookUpTable=[0x0,0x77073096,0xee0e612c,0x990951ba,0x76dc419,0x706af48f,0xe963a535,0x9e6495a3,0xedb8832,0x79dcb8a4,0xe0d5e91e,0x97d2d988,0x9b64c2b,0x7eb17cbd,0xe7b82d07,0x90bf1d91,0x1db71064,0x6ab020f2,0xf3b97148,0x84be41de,0x1adad47d,0x6ddde4eb,0xf4d4b551,0x83d385c7,0x136c9856,0x646ba8c0,0xfd62f97a,0x8a65c9ec,0x14015c4f,0x63066cd9,0xfa0f3d63,0x8d080df5,0x3b6e20c8,0x4c69105e,0xd56041e4,0xa2677172,0x3c03e4d1,0x4b04d447,0xd20d85fd,0xa50ab56b,0x35b5a8fa,0x42b2986c,0xdbbbc9d6,0xacbcf940,0x32d86ce3,0x45df5c75,0xdcd60dcf,0xabd13d59,0x26d930ac,0x51de003a,0xc8d75180,0xbfd06116,0x21b4f4b5,0x56b3c423,0xcfba9599,0xb8bda50f,0x2802b89e,0x5f058808,0xc60cd9b2,0xb10be924,0x2f6f7c87,0x58684c11,0xc1611dab,0xb6662d3d,0x76dc4190,0x1db7106,0x98d220bc,0xefd5102a,0x71b18589,0x6b6b51f,0x9fbfe4a5,0xe8b8d433,0x7807c9a2,0xf00f934,0x9609a88e,0xe10e9818,0x7f6a0dbb,0x86d3d2d,0x91646c97,0xe6635c01,0x6b6b51f4,0x1c6c6162,0x856530d8,0xf262004e,0x6c0695ed,0x1b01a57b,0x8208f4c1,0xf50fc457,0x65b0d9c6,0x12b7e950,0x8bbeb8ea,0xfcb9887c,0x62dd1ddf,0x15da2d49,0x8cd37cf3,0xfbd44c65,0x4db26158,0x3ab551ce,0xa3bc0074,0xd4bb30e2,0x4adfa541,0x3dd895d7,0xa4d1c46d,0xd3d6f4fb,0x4369e96a,0x346ed9fc,0xad678846,0xda60b8d0,0x44042d73,0x33031de5,0xaa0a4c5f,0xdd0d7cc9,0x5005713c,0x270241aa,0xbe0b1010,0xc90c2086,0x5768b525,0x206f85b3,0xb966d409,0xce61e49f,0x5edef90e,0x29d9c998,0xb0d09822,0xc7d7a8b4,0x59b33d17,0x2eb40d81,0xb7bd5c3b,0xc0ba6cad,0xedb88320,0x9abfb3b6,0x3b6e20c,0x74b1d29a,0xead54739,0x9dd277af,0x4db2615,0x73dc1683,0xe3630b12,0x94643b84,0xd6d6a3e,0x7a6a5aa8,0xe40ecf0b,0x9309ff9d,0xa00ae27,0x7d079eb1,0xf00f9344,0x8708a3d2,0x1e01f268,0x6906c2fe,0xf762575d,0x806567cb,0x196c3671,0x6e6b06e7,0xfed41b76,0x89d32be0,0x10da7a5a,0x67dd4acc,0xf9b9df6f,0x8ebeeff9,0x17b7be43,0x60b08ed5,0xd6d6a3e8,0xa1d1937e,0x38d8c2c4,0x4fdff252,0xd1bb67f1,0xa6bc5767,0x3fb506dd,0x48b2364b,0xd80d2bda,0xaf0a1b4c,0x36034af6,0x41047a60,0xdf60efc3,0xa867df55,0x316e8eef,0x4669be79,0xcb61b38c,0xbc66831a,0x256fd2a0,0x5268e236,0xcc0c7795,0xbb0b4703,0x220216b9,0x5505262f,0xc5ba3bbe,0xb2bd0b28,0x2bb45a92,0x5cb36a04,0xc2d7ffa7,0xb5d0cf31,0x2cd99e8b,0x5bdeae1d,0x9b64c2b0,0xec63f226,0x756aa39c,0x26d930a,0x9c0906a9,0xeb0e363f,0x72076785,0x5005713,0x95bf4a82,0xe2b87a14,0x7bb12bae,0xcb61b38,0x92d28e9b,0xe5d5be0d,0x7cdcefb7,0xbdbdf21,0x86d3d2d4,0xf1d4e242,0x68ddb3f8,0x1fda836e,0x81be16cd,0xf6b9265b,0x6fb077e1,0x18b74777,0x88085ae6,0xff0f6a70,0x66063bca,0x11010b5c,0x8f659eff,0xf862ae69,0x616bffd3,0x166ccf45,0xa00ae278,0xd70dd2ee,0x4e048354,0x3903b3c2,0xa7672661,0xd06016f7,0x4969474d,0x3e6e77db,0xaed16a4a,0xd9d65adc,0x40df0b66,0x37d83bf0,0xa9bcae53,0xdebb9ec5,0x47b2cf7f,0x30b5ffe9,0xbdbdf21c,0xcabac28a,0x53b39330,0x24b4a3a6,0xbad03605,0xcdd70693,0x54de5729,0x23d967bf,0xb3667a2e,0xc4614ab8,0x5d681b02,0x2a6f2b94,0xb40bbe37,0xc30c8ea1,0x5a05df1b,0x2d02ef8d],lookupTable=uint32ArrayFrom(a_lookUpTable),HEADER_VALUE_TYPE;class Int64{constructor(_0x25e0a9){if(this['bytes']=_0x25e0a9,0x8!==_0x25e0a9['byteLength'])throw new Error('Int64\x20buffers\x20must\x20be\x20exactly\x208\x20bytes');}static['fromNumber'](_0x2e5463){if(_0x2e5463>0x8000000000000000||_0x2e5463<-0x8000000000000000)throw new Error(_0x2e5463+'\x20is\x20too\x20large\x20(or,\x20if\x20negative,\x20too\x20small)\x20to\x20represent\x20as\x20an\x20Int64');const _0x2cfc99=new Uint8Array(0x8);for(let _0x1c9162=0x7,_0x2cc2e4=Math['abs'](Math['round'](_0x2e5463));_0x1c9162>-0x1&&_0x2cc2e4>0x0;_0x1c9162--,_0x2cc2e4/=0x100)_0x2cfc99[_0x1c9162]=_0x2cc2e4;return _0x2e5463<0x0&&negate(_0x2cfc99),new Int64(_0x2cfc99);}['valueOf'](){const _0x4d9766=this['bytes']['slice'](0x0),_0xeae664=0x80&_0x4d9766[0x0];return _0xeae664&&negate(_0x4d9766),parseInt(toHex(_0x4d9766),0x10)*(_0xeae664?-0x1:0x1);}['toString'](){return String(this['valueOf']());}}function negate(_0xbe849a){for(let _0x3014ec=0x0;_0x3014ec<0x8;_0x3014ec++)_0xbe849a[_0x3014ec]^=0xff;for(let _0x2e1fad=0x7;_0x2e1fad>-0x1&&(_0xbe849a[_0x2e1fad]++,0x0===_0xbe849a[_0x2e1fad]);_0x2e1fad--);}class HeaderMarshaller{constructor(_0x2b3411,_0x1bab2a){this['toUtf8']=_0x2b3411,this['fromUtf8']=_0x1bab2a;}['format'](_0x253841){const _0xbafe0e=[];for(const _0x509931 of Object['keys'](_0x253841)){const _0x193dbb=this['fromUtf8'](_0x509931);_0xbafe0e['push'](Uint8Array['from']([_0x193dbb['byteLength']]),_0x193dbb,this['formatHeaderValue'](_0x253841[_0x509931]));}const _0x572a8e=new Uint8Array(_0xbafe0e['reduce']((_0x17c544,_0x14d92b)=>_0x17c544+_0x14d92b['byteLength'],0x0));let _0x56c7ef=0x0;for(const _0x458121 of _0xbafe0e)_0x572a8e['set'](_0x458121,_0x56c7ef),_0x56c7ef+=_0x458121['byteLength'];return _0x572a8e;}['formatHeaderValue'](_0x24dd03){switch(_0x24dd03['type']){case'boolean':return Uint8Array['from']([_0x24dd03['value']?0x0:0x1]);case'byte':return Uint8Array['from']([0x2,_0x24dd03['value']]);case'short':const _0x1ac9a1=new DataView(new ArrayBuffer(0x3));return _0x1ac9a1['setUint8'](0x0,0x3),_0x1ac9a1['setInt16'](0x1,_0x24dd03['value'],!0x1),new Uint8Array(_0x1ac9a1['buffer']);case'integer':const _0x283f0f=new DataView(new ArrayBuffer(0x5));return _0x283f0f['setUint8'](0x0,0x4),_0x283f0f['setInt32'](0x1,_0x24dd03['value'],!0x1),new Uint8Array(_0x283f0f['buffer']);case'long':const _0x375d65=new Uint8Array(0x9);return _0x375d65[0x0]=0x5,_0x375d65['set'](_0x24dd03['value']['bytes'],0x1),_0x375d65;case'binary':const _0x2b3e0d=new DataView(new ArrayBuffer(0x3+_0x24dd03['value']['byteLength']));_0x2b3e0d['setUint8'](0x0,0x6),_0x2b3e0d['setUint16'](0x1,_0x24dd03['value']['byteLength'],!0x1);const _0x45c264=new Uint8Array(_0x2b3e0d['buffer']);return _0x45c264['set'](_0x24dd03['value'],0x3),_0x45c264;case'string':const _0x4e3fd0=this['fromUtf8'](_0x24dd03['value']),_0x31bd46=new DataView(new ArrayBuffer(0x3+_0x4e3fd0['byteLength']));_0x31bd46['setUint8'](0x0,0x7),_0x31bd46['setUint16'](0x1,_0x4e3fd0['byteLength'],!0x1);const _0x6e5241=new Uint8Array(_0x31bd46['buffer']);return _0x6e5241['set'](_0x4e3fd0,0x3),_0x6e5241;case'timestamp':const _0x29563e=new Uint8Array(0x9);return _0x29563e[0x0]=0x8,_0x29563e['set'](Int64['fromNumber'](_0x24dd03['value']['valueOf']())['bytes'],0x1),_0x29563e;case'uuid':if(!UUID_PATTERN['test'](_0x24dd03['value']))throw new Error('Invalid\x20UUID\x20received:\x20'+_0x24dd03['value']);const _0x27876e=new Uint8Array(0x11);return _0x27876e[0x0]=0x9,_0x27876e['set'](fromHex(_0x24dd03['value']['replace'](/\-/g,'')),0x1),_0x27876e;}}['parse'](_0x1f0a7b){const _0x3b252c={};let _0x28f49c=0x0;for(;_0x28f49c<_0x1f0a7b['byteLength'];){const _0x32588a=_0x1f0a7b['getUint8'](_0x28f49c++),_0x3e5b5e=this['toUtf8'](new Uint8Array(_0x1f0a7b['buffer'],_0x1f0a7b['byteOffset']+_0x28f49c,_0x32588a));switch(_0x28f49c+=_0x32588a,_0x1f0a7b['getUint8'](_0x28f49c++)){case 0x0:_0x3b252c[_0x3e5b5e]={'type':BOOLEAN_TAG,'value':!0x0};break;case 0x1:_0x3b252c[_0x3e5b5e]={'type':BOOLEAN_TAG,'value':!0x1};break;case 0x2:_0x3b252c[_0x3e5b5e]={'type':BYTE_TAG,'value':_0x1f0a7b['getInt8'](_0x28f49c++)};break;case 0x3:_0x3b252c[_0x3e5b5e]={'type':SHORT_TAG,'value':_0x1f0a7b['getInt16'](_0x28f49c,!0x1)},_0x28f49c+=0x2;break;case 0x4:_0x3b252c[_0x3e5b5e]={'type':INT_TAG,'value':_0x1f0a7b['getInt32'](_0x28f49c,!0x1)},_0x28f49c+=0x4;break;case 0x5:_0x3b252c[_0x3e5b5e]={'type':LONG_TAG,'value':new Int64(new Uint8Array(_0x1f0a7b['buffer'],_0x1f0a7b['byteOffset']+_0x28f49c,0x8))},_0x28f49c+=0x8;break;case 0x6:const _0x2ec7b6=_0x1f0a7b['getUint16'](_0x28f49c,!0x1);_0x28f49c+=0x2,_0x3b252c[_0x3e5b5e]={'type':BINARY_TAG,'value':new Uint8Array(_0x1f0a7b['buffer'],_0x1f0a7b['byteOffset']+_0x28f49c,_0x2ec7b6)},_0x28f49c+=_0x2ec7b6;break;case 0x7:const _0xf499dc=_0x1f0a7b['getUint16'](_0x28f49c,!0x1);_0x28f49c+=0x2,_0x3b252c[_0x3e5b5e]={'type':STRING_TAG,'value':this['toUtf8'](new Uint8Array(_0x1f0a7b['buffer'],_0x1f0a7b['byteOffset']+_0x28f49c,_0xf499dc))},_0x28f49c+=_0xf499dc;break;case 0x8:_0x3b252c[_0x3e5b5e]={'type':TIMESTAMP_TAG,'value':new Date(new Int64(new Uint8Array(_0x1f0a7b['buffer'],_0x1f0a7b['byteOffset']+_0x28f49c,0x8))['valueOf']())},_0x28f49c+=0x8;break;case 0x9:const _0x4d569b=new Uint8Array(_0x1f0a7b['buffer'],_0x1f0a7b['byteOffset']+_0x28f49c,0x10);_0x28f49c+=0x10,_0x3b252c[_0x3e5b5e]={'type':UUID_TAG,'value':toHex(_0x4d569b['subarray'](0x0,0x4))+'-'+toHex(_0x4d569b['subarray'](0x4,0x6))+'-'+toHex(_0x4d569b['subarray'](0x6,0x8))+'-'+toHex(_0x4d569b['subarray'](0x8,0xa))+'-'+toHex(_0x4d569b['subarray'](0xa))};break;default:throw new Error('Unrecognized\x20header\x20type\x20tag');}}return _0x3b252c;}}!function(_0x1a393e){_0x1a393e[_0x1a393e['boolTrue']=0x0]='boolTrue',_0x1a393e[_0x1a393e['boolFalse']=0x1]='boolFalse',_0x1a393e[_0x1a393e['byte']=0x2]='byte',_0x1a393e[_0x1a393e['short']=0x3]='short',_0x1a393e[_0x1a393e['integer']=0x4]='integer',_0x1a393e[_0x1a393e['long']=0x5]='long',_0x1a393e[_0x1a393e['byteArray']=0x6]='byteArray',_0x1a393e[_0x1a393e['string']=0x7]='string',_0x1a393e[_0x1a393e['timestamp']=0x8]='timestamp',_0x1a393e[_0x1a393e['uuid']=0x9]='uuid';}(HEADER_VALUE_TYPE||(HEADER_VALUE_TYPE={}));const BOOLEAN_TAG='boolean',BYTE_TAG='byte',SHORT_TAG='short',INT_TAG='integer',LONG_TAG='long',BINARY_TAG='binary',STRING_TAG='string',TIMESTAMP_TAG='timestamp',UUID_TAG='uuid',UUID_PATTERN=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,PRELUDE_MEMBER_LENGTH=0x4,PRELUDE_LENGTH=0x2*PRELUDE_MEMBER_LENGTH,CHECKSUM_LENGTH=0x4,MINIMUM_MESSAGE_LENGTH=PRELUDE_LENGTH+0x2*CHECKSUM_LENGTH;function splitMessage({byteLength:_0x4280c0,byteOffset:_0x4e0eda,buffer:_0x2ce5c1}){if(_0x4280c0<MINIMUM_MESSAGE_LENGTH)throw new Error('Provided\x20message\x20too\x20short\x20to\x20accommodate\x20event\x20stream\x20message\x20overhead');const _0x15352f=new DataView(_0x2ce5c1,_0x4e0eda,_0x4280c0),_0x1079f6=_0x15352f['getUint32'](0x0,!0x1);if(_0x4280c0!==_0x1079f6)throw new Error('Reported\x20message\x20length\x20does\x20not\x20match\x20received\x20message\x20length');const _0x36b463=_0x15352f['getUint32'](PRELUDE_MEMBER_LENGTH,!0x1),_0x10da61=_0x15352f['getUint32'](PRELUDE_LENGTH,!0x1),_0x39b5d1=_0x15352f['getUint32'](_0x4280c0-CHECKSUM_LENGTH,!0x1),_0x4205a8=new Crc32()['update'](new Uint8Array(_0x2ce5c1,_0x4e0eda,PRELUDE_LENGTH));if(_0x10da61!==_0x4205a8['digest']())throw new Error('The\x20prelude\x20checksum\x20specified\x20in\x20the\x20message\x20('+_0x10da61+')\x20does\x20not\x20match\x20the\x20calculated\x20CRC32\x20checksum\x20('+_0x4205a8['digest']()+')');if(_0x4205a8['update'](new Uint8Array(_0x2ce5c1,_0x4e0eda+PRELUDE_LENGTH,_0x4280c0-(PRELUDE_LENGTH+CHECKSUM_LENGTH))),_0x39b5d1!==_0x4205a8['digest']())throw new Error('The\x20message\x20checksum\x20('+_0x4205a8['digest']()+')\x20did\x20not\x20match\x20the\x20expected\x20value\x20of\x20'+_0x39b5d1);return{'headers':new DataView(_0x2ce5c1,_0x4e0eda+PRELUDE_LENGTH+CHECKSUM_LENGTH,_0x36b463),'body':new Uint8Array(_0x2ce5c1,_0x4e0eda+PRELUDE_LENGTH+CHECKSUM_LENGTH+_0x36b463,_0x1079f6-_0x36b463-(PRELUDE_LENGTH+CHECKSUM_LENGTH+CHECKSUM_LENGTH))};}class EventStreamCodec{constructor(_0x3a05a3,_0x57bb44){this['headerMarshaller']=new HeaderMarshaller(_0x3a05a3,_0x57bb44),this['messageBuffer']=[],this['isEndOfStream']=!0x1;}['feed'](_0x38e0f6){this['messageBuffer']['push'](this['decode'](_0x38e0f6));}['endOfStream'](){this['isEndOfStream']=!0x0;}['getMessage'](){const _0x1cfd9d=this['messageBuffer']['pop'](),_0x4143e6=this['isEndOfStream'];return{'getMessage':()=>_0x1cfd9d,'isEndOfStream':()=>_0x4143e6};}['getAvailableMessages'](){const _0x209122=this['messageBuffer'];this['messageBuffer']=[];const _0x286752=this['isEndOfStream'];return{'getMessages':()=>_0x209122,'isEndOfStream':()=>_0x286752};}['encode']({headers:_0x394200,body:_0x538fce}){const _0x1d542f=this['headerMarshaller']['format'](_0x394200),_0x2cf885=_0x1d542f['byteLength']+_0x538fce['byteLength']+0x10,_0x5cef9f=new Uint8Array(_0x2cf885),_0x345a8f=new DataView(_0x5cef9f['buffer'],_0x5cef9f['byteOffset'],_0x5cef9f['byteLength']),_0x5e7797=new Crc32();return _0x345a8f['setUint32'](0x0,_0x2cf885,!0x1),_0x345a8f['setUint32'](0x4,_0x1d542f['byteLength'],!0x1),_0x345a8f['setUint32'](0x8,_0x5e7797['update'](_0x5cef9f['subarray'](0x0,0x8))['digest'](),!0x1),_0x5cef9f['set'](_0x1d542f,0xc),_0x5cef9f['set'](_0x538fce,_0x1d542f['byteLength']+0xc),_0x345a8f['setUint32'](_0x2cf885-0x4,_0x5e7797['update'](_0x5cef9f['subarray'](0x8,_0x2cf885-0x4))['digest'](),!0x1),_0x5cef9f;}['decode'](_0x371b3f){const {headers:_0x3bfdc7,body:_0xc77e5a}=splitMessage(_0x371b3f);return{'headers':this['headerMarshaller']['parse'](_0x3bfdc7),'body':_0xc77e5a};}['formatHeaders'](_0x40874c){return this['headerMarshaller']['format'](_0x40874c);}}class MessageDecoderStream{constructor(_0x123472){this['options']=_0x123472;}[Symbol['asyncIterator']](){return this['asyncIterator']();}async*['asyncIterator'](){for await(const _0x161ea9 of this['options']['inputStream']){const _0x304325=this['options']['decoder']['decode'](_0x161ea9);yield _0x304325;}}}class MessageEncoderStream{constructor(_0x2dd60f){this['options']=_0x2dd60f;}[Symbol['asyncIterator']](){return this['asyncIterator']();}async*['asyncIterator'](){for await(const _0x31aadc of this['options']['messageStream']){const _0x46c07c=this['options']['encoder']['encode'](_0x31aadc);yield _0x46c07c;}this['options']['includeEndFrame']&&(yield new Uint8Array(0x0));}}class SmithyMessageDecoderStream{constructor(_0x302ed4){this['options']=_0x302ed4;}[Symbol['asyncIterator']](){return this['asyncIterator']();}async*['asyncIterator'](){for await(const _0x1f69ad of this['options']['messageStream']){const _0x10a9c2=await this['options']['deserializer'](_0x1f69ad);void 0x0!==_0x10a9c2&&(yield _0x10a9c2);}}}class SmithyMessageEncoderStream{constructor(_0x4e6b0a){this['options']=_0x4e6b0a;}[Symbol['asyncIterator']](){return this['asyncIterator']();}async*['asyncIterator'](){for await(const _0x578685 of this['options']['inputStream']){const _0xa76ca6=this['options']['serializer'](_0x578685);yield _0xa76ca6;}}}function getChunkedStream(_0x29b9f3){let _0x38c68a=0x0,_0x7329bc=0x0,_0x389436=null,_0x382c17=null;const _0x449293=_0xb61a86=>{if('number'!=typeof _0xb61a86)throw new Error('Attempted\x20to\x20allocate\x20an\x20event\x20message\x20where\x20size\x20was\x20not\x20a\x20number:\x20'+_0xb61a86);_0x38c68a=_0xb61a86,_0x7329bc=0x4,_0x389436=new Uint8Array(_0xb61a86),new DataView(_0x389436['buffer'])['setUint32'](0x0,_0xb61a86,!0x1);};return{[Symbol['asyncIterator']]:async function*(){const _0x2c439b=_0x29b9f3[Symbol['asyncIterator']]();for(;;){const {value:_0x2ada77,done:_0x39fd2e}=await _0x2c439b['next']();if(_0x39fd2e){if(!_0x38c68a)return;if(_0x38c68a!==_0x7329bc)throw new Error('Truncated\x20event\x20message\x20received.');return void(yield _0x389436);}const _0x5267a2=_0x2ada77['length'];let _0x13864c=0x0;for(;_0x13864c<_0x5267a2;){if(!_0x389436){const _0x5032d2=_0x5267a2-_0x13864c;_0x382c17||(_0x382c17=new Uint8Array(0x4));const _0x233a51=Math['min'](0x4-_0x7329bc,_0x5032d2);if(_0x382c17['set'](_0x2ada77['slice'](_0x13864c,_0x13864c+_0x233a51),_0x7329bc),_0x7329bc+=_0x233a51,_0x13864c+=_0x233a51,_0x7329bc<0x4)break;_0x449293(new DataView(_0x382c17['buffer'])['getUint32'](0x0,!0x1)),_0x382c17=null;}const _0x3ac5c9=Math['min'](_0x38c68a-_0x7329bc,_0x5267a2-_0x13864c);_0x389436['set'](_0x2ada77['slice'](_0x13864c,_0x13864c+_0x3ac5c9),_0x7329bc),_0x7329bc+=_0x3ac5c9,_0x13864c+=_0x3ac5c9,_0x38c68a&&_0x38c68a===_0x7329bc&&(yield _0x389436,_0x389436=null,_0x38c68a=0x0,_0x7329bc=0x0);}}}};}function getMessageUnmarshaller(_0x43d6eb,_0x28a184){return async function(_0x5eb198){const {value:_0xcfca71}=_0x5eb198['headers'][':message-type'];if('error'===_0xcfca71){const _0x3e1c55=new Error(_0x5eb198['headers'][':error-message']['value']||'UnknownError');throw _0x3e1c55['name']=_0x5eb198['headers'][':error-code']['value'],_0x3e1c55;}if('exception'===_0xcfca71){const _0xb4eb09=_0x5eb198['headers'][':exception-type']['value'],_0x281f95={[_0xb4eb09]:_0x5eb198},_0x4002ce=await _0x43d6eb(_0x281f95);if(_0x4002ce['$unknown']){const _0x5bcef6=new Error(_0x28a184(_0x5eb198['body']));throw _0x5bcef6['name']=_0xb4eb09,_0x5bcef6;}throw _0x4002ce[_0xb4eb09];}if('event'===_0xcfca71){const _0x3b8ff4={[_0x5eb198['headers'][':event-type']['value']]:_0x5eb198},_0x4d5ae7=await _0x43d6eb(_0x3b8ff4);if(_0x4d5ae7['$unknown'])return;return _0x4d5ae7;}throw Error('Unrecognizable\x20event\x20type:\x20'+_0x5eb198['headers'][':event-type']['value']);};}let EventStreamMarshaller$1=class{constructor({utf8Encoder:_0x5d5ad4,utf8Decoder:_0x251561}){this['eventStreamCodec']=new EventStreamCodec(_0x5d5ad4,_0x251561),this['utfEncoder']=_0x5d5ad4;}['deserialize'](_0x3b7727,_0x324312){const _0xdf63f5=getChunkedStream(_0x3b7727);return new SmithyMessageDecoderStream({'messageStream':new MessageDecoderStream({'inputStream':_0xdf63f5,'decoder':this['eventStreamCodec']}),'deserializer':getMessageUnmarshaller(_0x324312,this['utfEncoder'])});}['serialize'](_0x12a51e,_0x426654){return new MessageEncoderStream({'messageStream':new SmithyMessageEncoderStream({'inputStream':_0x12a51e,'serializer':_0x426654}),'encoder':this['eventStreamCodec'],'includeEndFrame':!0x0});}};const readableStreamtoIterable=_0x1f3da3=>({[Symbol['asyncIterator']]:async function*(){const _0x3de6ec=_0x1f3da3['getReader']();try{for(;;){const {done:_0x2118af,value:_0x51192c}=await _0x3de6ec['read']();if(_0x2118af)return;yield _0x51192c;}}finally{_0x3de6ec['releaseLock']();}}}),iterableToReadableStream=_0x74831=>{const _0x4fad32=_0x74831[Symbol['asyncIterator']]();return new ReadableStream({async 'pull'(_0x3835a3){const {done:_0x53d6df,value:_0x24ed0e}=await _0x4fad32['next']();if(_0x53d6df)return _0x3835a3['close']();_0x3835a3['enqueue'](_0x24ed0e);}});};class EventStreamMarshaller{constructor({utf8Encoder:_0xda6145,utf8Decoder:_0x48642d}){this['universalMarshaller']=new EventStreamMarshaller$1({'utf8Decoder':_0x48642d,'utf8Encoder':_0xda6145});}['deserialize'](_0x51b6dd,_0x56cc55){const _0x3c613f=isReadableStream(_0x51b6dd)?readableStreamtoIterable(_0x51b6dd):_0x51b6dd;return this['universalMarshaller']['deserialize'](_0x3c613f,_0x56cc55);}['serialize'](_0x509158,_0x3af735){const _0x1deae2=this['universalMarshaller']['serialize'](_0x509158,_0x3af735);return'function'==typeof ReadableStream?iterableToReadableStream(_0x1deae2):_0x1deae2;}}const isReadableStream=_0x2928ea=>'function'==typeof ReadableStream&&_0x2928ea instanceof ReadableStream,eventStreamSerdeProvider=_0x1246a2=>new EventStreamMarshaller(_0x1246a2),invalidFunction=_0x569135=>()=>{throw new Error(_0x569135);},invalidProvider=_0x5dccdf=>()=>Promise['reject'](_0x5dccdf),s$2='required',t$1='fn',u='argv',v='ref',a$1=!0x0,b='isSet',c$2='booleanEquals',d$1='error',e='endpoint',f$1='tree',g='PartitionResult',h={[s$2]:!0x1,'type':'String'},i$3={[s$2]:!0x0,'default':!0x1,'type':'Boolean'},j={[v]:'Endpoint'},k={[t$1]:c$2,[u]:[{[v]:'UseFIPS'},!0x0]},l$1={[t$1]:c$2,[u]:[{[v]:'UseDualStack'},!0x0]},m={},n$1={[t$1]:'getAttr',[u]:[{[v]:g},'supportsFIPS']},o$1={[t$1]:c$2,[u]:[!0x0,{[t$1]:'getAttr',[u]:[{[v]:g},'supportsDualStack']}]},p=[k],q=[l$1],r=[{[v]:'Region'}],_data={'parameters':{'Region':h,'UseDualStack':i$3,'UseFIPS':i$3,'Endpoint':h},'rules':[{'conditions':[{[t$1]:b,[u]:[j]}],'rules':[{'conditions':p,'error':'Invalid\x20Configuration:\x20FIPS\x20and\x20custom\x20endpoint\x20are\x20not\x20supported','type':d$1},{'rules':[{'conditions':q,'error':'Invalid\x20Configuration:\x20Dualstack\x20and\x20custom\x20endpoint\x20are\x20not\x20supported','type':d$1},{'endpoint':{'url':j,'properties':m,'headers':m},'type':e}],'type':f$1}],'type':f$1},{'rules':[{'conditions':[{[t$1]:b,[u]:r}],'rules':[{'conditions':[{[t$1]:'aws.partition',[u]:r,'assign':g}],'rules':[{'conditions':[k,l$1],'rules':[{'conditions':[{[t$1]:c$2,[u]:[a$1,n$1]},o$1],'rules':[{'rules':[{'endpoint':{'url':'https://bedrock-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}','properties':m,'headers':m},'type':e}],'type':f$1}],'type':f$1},{'error':'FIPS\x20and\x20DualStack\x20are\x20enabled,\x20but\x20this\x20partition\x20does\x20not\x20support\x20one\x20or\x20both','type':d$1}],'type':f$1},{'conditions':p,'rules':[{'conditions':[{[t$1]:c$2,[u]:[n$1,a$1]}],'rules':[{'rules':[{'endpoint':{'url':'https://bedrock-runtime-fips.{Region}.{PartitionResult#dnsSuffix}','properties':m,'headers':m},'type':e}],'type':f$1}],'type':f$1},{'error':'FIPS\x20is\x20enabled\x20but\x20this\x20partition\x20does\x20not\x20support\x20FIPS','type':d$1}],'type':f$1},{'conditions':q,'rules':[{'conditions':[o$1],'rules':[{'rules':[{'endpoint':{'url':'https://bedrock-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}','properties':m,'headers':m},'type':e}],'type':f$1}],'type':f$1},{'error':'DualStack\x20is\x20enabled\x20but\x20this\x20partition\x20does\x20not\x20support\x20DualStack','type':d$1}],'type':f$1},{'rules':[{'endpoint':{'url':'https://bedrock-runtime.{Region}.{PartitionResult#dnsSuffix}','properties':m,'headers':m},'type':e}],'type':f$1}],'type':f$1}],'type':f$1},{'error':'Invalid\x20Configuration:\x20Missing\x20Region','type':d$1}],'type':f$1}]},ruleSet=_data,cache$2=new EndpointCache({'size':0x32,'params':['Endpoint','Region','UseDualStack','UseFIPS']}),defaultEndpointResolver=(_0x1a961f,_0x61beec={})=>cache$2['get'](_0x1a961f,()=>resolveEndpoint(ruleSet,{'endpointParams':_0x1a961f,'logger':_0x61beec['logger']}));customEndpointFunctions['aws']=awsEndpointFunctions;const getRuntimeConfig$1=_0x116b41=>({'apiVersion':'2023-09-30','base64Decoder':_0x116b41?.['base64Decoder']??fromBase64,'base64Encoder':_0x116b41?.['base64Encoder']??toBase64,'disableHostPrefix':_0x116b41?.['disableHostPrefix']??!0x1,'endpointProvider':_0x116b41?.['endpointProvider']??defaultEndpointResolver,'extensions':_0x116b41?.['extensions']??[],'httpAuthSchemeProvider':_0x116b41?.['httpAuthSchemeProvider']??defaultBedrockRuntimeHttpAuthSchemeProvider,'httpAuthSchemes':_0x116b41?.['httpAuthSchemes']??[{'schemeId':'aws.auth#sigv4','identityProvider':_0x1db3fa=>_0x1db3fa['getIdentityProvider']('aws.auth#sigv4'),'signer':new AwsSdkSigV4Signer()}],'logger':_0x116b41?.['logger']??new NoOpLogger(),'serviceId':_0x116b41?.['serviceId']??'Bedrock\x20Runtime','urlParser':_0x116b41?.['urlParser']??parseUrl,'utf8Decoder':_0x116b41?.['utf8Decoder']??fromUtf8$2,'utf8Encoder':_0x116b41?.['utf8Encoder']??toUtf8}),DEFAULTS_MODE_OPTIONS=['in-region','cross-region','mobile','standard','legacy'],resolveDefaultsModeConfig=({defaultsMode:_0x57289e}={})=>memoize$2(async()=>{const _0x486c1c='function'==typeof _0x57289e?await _0x57289e():_0x57289e;switch(_0x486c1c?.['toLowerCase']()){case'auto':return Promise['resolve'](isMobileBrowser()?'mobile':'standard');case'mobile':case'in-region':case'cross-region':case'standard':case'legacy':return Promise['resolve'](_0x486c1c?.['toLocaleLowerCase']());case void 0x0:return Promise['resolve']('legacy');default:throw new Error('Invalid\x20parameter\x20for\x20\x22defaultsMode\x22,\x20expect\x20'+DEFAULTS_MODE_OPTIONS['join'](',\x20')+',\x20got\x20'+_0x486c1c);}}),isMobileBrowser=()=>{const _0x3a0811='undefined'!=typeof window&&window?.['navigator']?.['userAgent']?es5Exports['parse'](window['navigator']['userAgent']):void 0x0,_0x1fc1ca=_0x3a0811?.['platform']?.['type'];return'tablet'===_0x1fc1ca||'mobile'===_0x1fc1ca;},getRuntimeConfig=_0x3bfadd=>{const _0xc23f0c=resolveDefaultsModeConfig(_0x3bfadd),_0x42f6e0=()=>_0xc23f0c()['then'](loadConfigsForDefaultMode),_0x1b1129=getRuntimeConfig$1(_0x3bfadd);return{..._0x1b1129,..._0x3bfadd,'runtime':'browser','defaultsMode':_0xc23f0c,'bodyLengthChecker':_0x3bfadd?.['bodyLengthChecker']??calculateBodyLength,'credentialDefaultProvider':_0x3bfadd?.['credentialDefaultProvider']??(_0x509cf6=>()=>Promise['reject'](new Error('Credential\x20is\x20missing'))),'defaultUserAgentProvider':_0x3bfadd?.['defaultUserAgentProvider']??createDefaultUserAgentProvider({'serviceId':_0x1b1129['serviceId'],'clientVersion':packageInfo['version']}),'eventStreamPayloadHandlerProvider':_0x3bfadd?.['eventStreamPayloadHandlerProvider']??(()=>({'handle':invalidFunction('event\x20stream\x20request\x20is\x20not\x20supported\x20in\x20browser.')})),'eventStreamSerdeProvider':_0x3bfadd?.['eventStreamSerdeProvider']??eventStreamSerdeProvider,'maxAttempts':_0x3bfadd?.['maxAttempts']??DEFAULT_MAX_ATTEMPTS,'region':_0x3bfadd?.['region']??invalidProvider('Region\x20is\x20missing'),'requestHandler':FetchHttpHandler['create'](_0x3bfadd?.['requestHandler']??_0x42f6e0),'retryMode':_0x3bfadd?.['retryMode']??(async()=>(await _0x42f6e0())['retryMode']||DEFAULT_RETRY_MODE),'sha256':_0x3bfadd?.['sha256']??Sha256,'streamCollector':_0x3bfadd?.['streamCollector']??streamCollector,'useDualstackEndpoint':_0x3bfadd?.['useDualstackEndpoint']??(()=>Promise['resolve'](DEFAULT_USE_DUALSTACK_ENDPOINT)),'useFipsEndpoint':_0x3bfadd?.['useFipsEndpoint']??(()=>Promise['resolve'](DEFAULT_USE_FIPS_ENDPOINT))};},getAwsRegionExtensionConfiguration=_0x1ac09a=>({'setRegion'(_0xa7ea6c){_0x1ac09a['region']=_0xa7ea6c;},'region':()=>_0x1ac09a['region']}),resolveAwsRegionExtensionConfiguration=_0x356333=>({'region':_0x356333['region']()}),getHttpAuthExtensionConfiguration=_0x3954d0=>{const _0xe83db4=_0x3954d0['httpAuthSchemes'];let _0x53f79d=_0x3954d0['httpAuthSchemeProvider'],_0x154dfc=_0x3954d0['credentials'];return{'setHttpAuthScheme'(_0x4d18dd){const _0x5b266a=_0xe83db4['findIndex'](_0x4c88c0=>_0x4c88c0['schemeId']===_0x4d18dd['schemeId']);-0x1===_0x5b266a?_0xe83db4['push'](_0x4d18dd):_0xe83db4['splice'](_0x5b266a,0x1,_0x4d18dd);},'httpAuthSchemes':()=>_0xe83db4,'setHttpAuthSchemeProvider'(_0xcf60d5){_0x53f79d=_0xcf60d5;},'httpAuthSchemeProvider':()=>_0x53f79d,'setCredentials'(_0x6e78a4){_0x154dfc=_0x6e78a4;},'credentials':()=>_0x154dfc};},resolveHttpAuthRuntimeConfig=_0x46bbdb=>({'httpAuthSchemes':_0x46bbdb['httpAuthSchemes'](),'httpAuthSchemeProvider':_0x46bbdb['httpAuthSchemeProvider'](),'credentials':_0x46bbdb['credentials']()}),resolveRuntimeExtensions=(_0x52f019,_0x2b9cff)=>{const _0xdec631=Object['assign'](getAwsRegionExtensionConfiguration(_0x52f019),getDefaultExtensionConfiguration(_0x52f019),getHttpHandlerExtensionConfiguration(_0x52f019),getHttpAuthExtensionConfiguration(_0x52f019));return _0x2b9cff['forEach'](_0x2b1ed0=>_0x2b1ed0['configure'](_0xdec631)),Object['assign'](_0x52f019,resolveAwsRegionExtensionConfiguration(_0xdec631),resolveDefaultRuntimeConfig(_0xdec631),resolveHttpHandlerRuntimeConfig(_0xdec631),resolveHttpAuthRuntimeConfig(_0xdec631));};class BedrockRuntimeClient extends Client{['config'];constructor(...[_0x4579a8]){const _0x1524dd=getRuntimeConfig(_0x4579a8||{});super(_0x1524dd),this['initConfig']=_0x1524dd;const _0x18a576=resolveUserAgentConfig(resolveClientEndpointParameters(_0x1524dd)),_0x27bd5d=resolveRetryConfig(_0x18a576),_0xd9bd9e=resolveHostHeaderConfig(resolveRegionConfig(_0x27bd5d)),_0x41781b=resolveEndpointConfig(_0xd9bd9e),_0x2d6405=resolveEventStreamSerdeConfig(_0x41781b),_0x5b6a73=resolveEventStreamConfig(resolveHttpAuthSchemeConfig(_0x2d6405)),_0x3afdc4=resolveRuntimeExtensions(_0x5b6a73,_0x4579a8?.['extensions']||[]);this['config']=_0x3afdc4,this['middlewareStack']['use'](getUserAgentPlugin(this['config'])),this['middlewareStack']['use'](getRetryPlugin(this['config'])),this['middlewareStack']['use'](getContentLengthPlugin(this['config'])),this['middlewareStack']['use'](getHostHeaderPlugin(this['config'])),this['middlewareStack']['use'](getLoggerPlugin(this['config'])),this['middlewareStack']['use'](getRecursionDetectionPlugin(this['config'])),this['middlewareStack']['use'](getHttpAuthSchemeEndpointRuleSetPlugin(this['config'],{'httpAuthSchemeParametersProvider':defaultBedrockRuntimeHttpAuthSchemeParametersProvider,'identityProviderConfigProvider':async _0x175aa4=>new DefaultIdentityProviderConfig({'aws.auth#sigv4':_0x175aa4['credentials']})})),this['middlewareStack']['use'](getHttpSigningPlugin(this['config']));}['destroy'](){super['destroy']();}}class BedrockRuntimeServiceException extends ServiceException{constructor(_0x3ceace){super(_0x3ceace),Object['setPrototypeOf'](this,BedrockRuntimeServiceException['prototype']);}}class AccessDeniedException extends BedrockRuntimeServiceException{['name']='AccessDeniedException';['$fault']='client';constructor(_0x271d22){super({'name':'AccessDeniedException','$fault':'client',..._0x271d22}),Object['setPrototypeOf'](this,AccessDeniedException['prototype']);}}var AsyncInvokeOutputDataConfig,GuardrailImageSource,GuardrailContentBlock,DocumentSource,GuardrailConverseImageSource,GuardrailConverseContentBlock,ImageSource,ReasoningContentBlock,VideoSource,ToolResultContentBlock,ContentBlock,PromptVariableValues,SystemContentBlock,ToolChoice,ToolInputSchema,Tool,ConverseOutput,ReasoningContentBlockDelta,ContentBlockDelta,ContentBlockStart,ConverseStreamOutput,InvokeModelWithBidirectionalStreamInput,InvokeModelWithBidirectionalStreamOutput,ResponseStream;!function(_0xa6b45d){_0xa6b45d['visit']=(_0x4fa12a,_0x4843b7)=>void 0x0!==_0x4fa12a['s3OutputDataConfig']?_0x4843b7['s3OutputDataConfig'](_0x4fa12a['s3OutputDataConfig']):_0x4843b7['_'](_0x4fa12a['$unknown'][0x0],_0x4fa12a['$unknown'][0x1]);}(AsyncInvokeOutputDataConfig||(AsyncInvokeOutputDataConfig={}));class InternalServerException extends BedrockRuntimeServiceException{['name']='InternalServerException';['$fault']='server';constructor(_0x13da97){super({'name':'InternalServerException','$fault':'server',..._0x13da97}),Object['setPrototypeOf'](this,InternalServerException['prototype']);}}class ThrottlingException extends BedrockRuntimeServiceException{['name']='ThrottlingException';['$fault']='client';constructor(_0x464d8b){super({'name':'ThrottlingException','$fault':'client',..._0x464d8b}),Object['setPrototypeOf'](this,ThrottlingException['prototype']);}}class ValidationException extends BedrockRuntimeServiceException{['name']='ValidationException';['$fault']='client';constructor(_0x422a3c){super({'name':'ValidationException','$fault':'client',..._0x422a3c}),Object['setPrototypeOf'](this,ValidationException['prototype']);}}class ConflictException extends BedrockRuntimeServiceException{['name']='ConflictException';['$fault']='client';constructor(_0x2beb47){super({'name':'ConflictException','$fault':'client',..._0x2beb47}),Object['setPrototypeOf'](this,ConflictException['prototype']);}}class ResourceNotFoundException extends BedrockRuntimeServiceException{['name']='ResourceNotFoundException';['$fault']='client';constructor(_0x4fc266){super({'name':'ResourceNotFoundException','$fault':'client',..._0x4fc266}),Object['setPrototypeOf'](this,ResourceNotFoundException['prototype']);}}class ServiceQuotaExceededException extends BedrockRuntimeServiceException{['name']='ServiceQuotaExceededException';['$fault']='client';constructor(_0x55b9fd){super({'name':'ServiceQuotaExceededException','$fault':'client',..._0x55b9fd}),Object['setPrototypeOf'](this,ServiceQuotaExceededException['prototype']);}}class ServiceUnavailableException extends BedrockRuntimeServiceException{['name']='ServiceUnavailableException';['$fault']='server';constructor(_0x434e6e){super({'name':'ServiceUnavailableException','$fault':'server',..._0x434e6e}),Object['setPrototypeOf'](this,ServiceUnavailableException['prototype']);}}!function(_0x52298b){_0x52298b['visit']=(_0x4f0a68,_0x3acb87)=>void 0x0!==_0x4f0a68['bytes']?_0x3acb87['bytes'](_0x4f0a68['bytes']):_0x3acb87['_'](_0x4f0a68['$unknown'][0x0],_0x4f0a68['$unknown'][0x1]);}(GuardrailImageSource||(GuardrailImageSource={})),function(_0x3c2af9){_0x3c2af9['visit']=(_0x31aeb9,_0x223510)=>void 0x0!==_0x31aeb9['text']?_0x223510['text'](_0x31aeb9['text']):void 0x0!==_0x31aeb9['image']?_0x223510['image'](_0x31aeb9['image']):_0x223510['_'](_0x31aeb9['$unknown'][0x0],_0x31aeb9['$unknown'][0x1]);}(GuardrailContentBlock||(GuardrailContentBlock={})),function(_0x5be093){_0x5be093['visit']=(_0x450c0f,_0x4fca62)=>void 0x0!==_0x450c0f['bytes']?_0x4fca62['bytes'](_0x450c0f['bytes']):void 0x0!==_0x450c0f['s3Location']?_0x4fca62['s3Location'](_0x450c0f['s3Location']):_0x4fca62['_'](_0x450c0f['$unknown'][0x0],_0x450c0f['$unknown'][0x1]);}(DocumentSource||(DocumentSource={})),function(_0x3c3cc1){_0x3c3cc1['visit']=(_0x3ebe6e,_0xa48138)=>void 0x0!==_0x3ebe6e['bytes']?_0xa48138['bytes'](_0x3ebe6e['bytes']):_0xa48138['_'](_0x3ebe6e['$unknown'][0x0],_0x3ebe6e['$unknown'][0x1]);}(GuardrailConverseImageSource||(GuardrailConverseImageSource={})),function(_0x574fec){_0x574fec['visit']=(_0x444044,_0x4b9129)=>void 0x0!==_0x444044['text']?_0x4b9129['text'](_0x444044['text']):void 0x0!==_0x444044['image']?_0x4b9129['image'](_0x444044['image']):_0x4b9129['_'](_0x444044['$unknown'][0x0],_0x444044['$unknown'][0x1]);}(GuardrailConverseContentBlock||(GuardrailConverseContentBlock={})),function(_0x2fa0bd){_0x2fa0bd['visit']=(_0x114ca9,_0x4f96b2)=>void 0x0!==_0x114ca9['bytes']?_0x4f96b2['bytes'](_0x114ca9['bytes']):void 0x0!==_0x114ca9['s3Location']?_0x4f96b2['s3Location'](_0x114ca9['s3Location']):_0x4f96b2['_'](_0x114ca9['$unknown'][0x0],_0x114ca9['$unknown'][0x1]);}(ImageSource||(ImageSource={})),function(_0x10d853){_0x10d853['visit']=(_0xa1ea26,_0x1e3f90)=>void 0x0!==_0xa1ea26['reasoningText']?_0x1e3f90['reasoningText'](_0xa1ea26['reasoningText']):void 0x0!==_0xa1ea26['redactedContent']?_0x1e3f90['redactedContent'](_0xa1ea26['redactedContent']):_0x1e3f90['_'](_0xa1ea26['$unknown'][0x0],_0xa1ea26['$unknown'][0x1]);}(ReasoningContentBlock||(ReasoningContentBlock={})),function(_0x24c119){_0x24c119['visit']=(_0xecb924,_0x5245b0)=>void 0x0!==_0xecb924['bytes']?_0x5245b0['bytes'](_0xecb924['bytes']):void 0x0!==_0xecb924['s3Location']?_0x5245b0['s3Location'](_0xecb924['s3Location']):_0x5245b0['_'](_0xecb924['$unknown'][0x0],_0xecb924['$unknown'][0x1]);}(VideoSource||(VideoSource={})),function(_0x3b3a2d){_0x3b3a2d['visit']=(_0x4df874,_0x559648)=>void 0x0!==_0x4df874['json']?_0x559648['json'](_0x4df874['json']):void 0x0!==_0x4df874['text']?_0x559648['text'](_0x4df874['text']):void 0x0!==_0x4df874['image']?_0x559648['image'](_0x4df874['image']):void 0x0!==_0x4df874['document']?_0x559648['document'](_0x4df874['document']):void 0x0!==_0x4df874['video']?_0x559648['video'](_0x4df874['video']):_0x559648['_'](_0x4df874['$unknown'][0x0],_0x4df874['$unknown'][0x1]);}(ToolResultContentBlock||(ToolResultContentBlock={})),function(_0x50b37b){_0x50b37b['visit']=(_0xd3827,_0x252a30)=>void 0x0!==_0xd3827['text']?_0x252a30['text'](_0xd3827['text']):void 0x0!==_0xd3827['image']?_0x252a30['image'](_0xd3827['image']):void 0x0!==_0xd3827['document']?_0x252a30['document'](_0xd3827['document']):void 0x0!==_0xd3827['video']?_0x252a30['video'](_0xd3827['video']):void 0x0!==_0xd3827['toolUse']?_0x252a30['toolUse'](_0xd3827['toolUse']):void 0x0!==_0xd3827['toolResult']?_0x252a30['toolResult'](_0xd3827['toolResult']):void 0x0!==_0xd3827['guardContent']?_0x252a30['guardContent'](_0xd3827['guardContent']):void 0x0!==_0xd3827['cachePoint']?_0x252a30['cachePoint'](_0xd3827['cachePoint']):void 0x0!==_0xd3827['reasoningContent']?_0x252a30['reasoningContent'](_0xd3827['reasoningContent']):_0x252a30['_'](_0xd3827['$unknown'][0x0],_0xd3827['$unknown'][0x1]);}(ContentBlock||(ContentBlock={})),function(_0x1529b2){_0x1529b2['visit']=(_0x424649,_0x3d5cac)=>void 0x0!==_0x424649['text']?_0x3d5cac['text'](_0x424649['text']):_0x3d5cac['_'](_0x424649['$unknown'][0x0],_0x424649['$unknown'][0x1]);}(PromptVariableValues||(PromptVariableValues={})),function(_0x16092b){_0x16092b['visit']=(_0x2e52c2,_0x4d6fac)=>void 0x0!==_0x2e52c2['text']?_0x4d6fac['text'](_0x2e52c2['text']):void 0x0!==_0x2e52c2['guardContent']?_0x4d6fac['guardContent'](_0x2e52c2['guardContent']):void 0x0!==_0x2e52c2['cachePoint']?_0x4d6fac['cachePoint'](_0x2e52c2['cachePoint']):_0x4d6fac['_'](_0x2e52c2['$unknown'][0x0],_0x2e52c2['$unknown'][0x1]);}(SystemContentBlock||(SystemContentBlock={})),function(_0x13169b){_0x13169b['visit']=(_0x43617c,_0x5db2ce)=>void 0x0!==_0x43617c['auto']?_0x5db2ce['auto'](_0x43617c['auto']):void 0x0!==_0x43617c['any']?_0x5db2ce['any'](_0x43617c['any']):void 0x0!==_0x43617c['tool']?_0x5db2ce['tool'](_0x43617c['tool']):_0x5db2ce['_'](_0x43617c['$unknown'][0x0],_0x43617c['$unknown'][0x1]);}(ToolChoice||(ToolChoice={})),function(_0xd56a4){_0xd56a4['visit']=(_0x25cfe2,_0x41ec88)=>void 0x0!==_0x25cfe2['json']?_0x41ec88['json'](_0x25cfe2['json']):_0x41ec88['_'](_0x25cfe2['$unknown'][0x0],_0x25cfe2['$unknown'][0x1]);}(ToolInputSchema||(ToolInputSchema={})),function(_0x576581){_0x576581['visit']=(_0x2ad3d6,_0x3fb36f)=>void 0x0!==_0x2ad3d6['toolSpec']?_0x3fb36f['toolSpec'](_0x2ad3d6['toolSpec']):void 0x0!==_0x2ad3d6['cachePoint']?_0x3fb36f['cachePoint'](_0x2ad3d6['cachePoint']):_0x3fb36f['_'](_0x2ad3d6['$unknown'][0x0],_0x2ad3d6['$unknown'][0x1]);}(Tool||(Tool={})),function(_0x25c6c0){_0x25c6c0['visit']=(_0x2339f3,_0x266b7c)=>void 0x0!==_0x2339f3['message']?_0x266b7c['message'](_0x2339f3['message']):_0x266b7c['_'](_0x2339f3['$unknown'][0x0],_0x2339f3['$unknown'][0x1]);}(ConverseOutput||(ConverseOutput={}));class ModelErrorException extends BedrockRuntimeServiceException{['name']='ModelErrorException';['$fault']='client';['originalStatusCode'];['resourceName'];constructor(_0x17bd17){super({'name':'ModelErrorException','$fault':'client',..._0x17bd17}),Object['setPrototypeOf'](this,ModelErrorException['prototype']),this['originalStatusCode']=_0x17bd17['originalStatusCode'],this['resourceName']=_0x17bd17['resourceName'];}}class ModelNotReadyException extends BedrockRuntimeServiceException{['name']='ModelNotReadyException';['$fault']='client';['$retryable']={};constructor(_0x5934da){super({'name':'ModelNotReadyException','$fault':'client',..._0x5934da}),Object['setPrototypeOf'](this,ModelNotReadyException['prototype']);}}class ModelTimeoutException extends BedrockRuntimeServiceException{['name']='ModelTimeoutException';['$fault']='client';constructor(_0x30f88f){super({'name':'ModelTimeoutException','$fault':'client',..._0x30f88f}),Object['setPrototypeOf'](this,ModelTimeoutException['prototype']);}}!function(_0x5c32d2){_0x5c32d2['visit']=(_0x1c24cb,_0x3373cb)=>void 0x0!==_0x1c24cb['text']?_0x3373cb['text'](_0x1c24cb['text']):void 0x0!==_0x1c24cb['redactedContent']?_0x3373cb['redactedContent'](_0x1c24cb['redactedContent']):void 0x0!==_0x1c24cb['signature']?_0x3373cb['signature'](_0x1c24cb['signature']):_0x3373cb['_'](_0x1c24cb['$unknown'][0x0],_0x1c24cb['$unknown'][0x1]);}(ReasoningContentBlockDelta||(ReasoningContentBlockDelta={})),function(_0x3bed5f){_0x3bed5f['visit']=(_0x5504c9,_0xd73ddf)=>void 0x0!==_0x5504c9['text']?_0xd73ddf['text'](_0x5504c9['text']):void 0x0!==_0x5504c9['toolUse']?_0xd73ddf['toolUse'](_0x5504c9['toolUse']):void 0x0!==_0x5504c9['reasoningContent']?_0xd73ddf['reasoningContent'](_0x5504c9['reasoningContent']):_0xd73ddf['_'](_0x5504c9['$unknown'][0x0],_0x5504c9['$unknown'][0x1]);}(ContentBlockDelta||(ContentBlockDelta={})),function(_0x1287f9){_0x1287f9['visit']=(_0x2c1bc8,_0x4786b0)=>void 0x0!==_0x2c1bc8['toolUse']?_0x4786b0['toolUse'](_0x2c1bc8['toolUse']):_0x4786b0['_'](_0x2c1bc8['$unknown'][0x0],_0x2c1bc8['$unknown'][0x1]);}(ContentBlockStart||(ContentBlockStart={}));class ModelStreamErrorException extends BedrockRuntimeServiceException{['name']='ModelStreamErrorException';['$fault']='client';['originalStatusCode'];['originalMessage'];constructor(_0x2b57df){super({'name':'ModelStreamErrorException','$fault':'client',..._0x2b57df}),Object['setPrototypeOf'](this,ModelStreamErrorException['prototype']),this['originalStatusCode']=_0x2b57df['originalStatusCode'],this['originalMessage']=_0x2b57df['originalMessage'];}}!function(_0x3a4b1b){_0x3a4b1b['visit']=(_0x3dc132,_0x494426)=>void 0x0!==_0x3dc132['messageStart']?_0x494426['messageStart'](_0x3dc132['messageStart']):void 0x0!==_0x3dc132['contentBlockStart']?_0x494426['contentBlockStart'](_0x3dc132['contentBlockStart']):void 0x0!==_0x3dc132['contentBlockDelta']?_0x494426['contentBlockDelta'](_0x3dc132['contentBlockDelta']):void 0x0!==_0x3dc132['contentBlockStop']?_0x494426['contentBlockStop'](_0x3dc132['contentBlockStop']):void 0x0!==_0x3dc132['messageStop']?_0x494426['messageStop'](_0x3dc132['messageStop']):void 0x0!==_0x3dc132['metadata']?_0x494426['metadata'](_0x3dc132['metadata']):void 0x0!==_0x3dc132['internalServerException']?_0x494426['internalServerException'](_0x3dc132['internalServerException']):void 0x0!==_0x3dc132['modelStreamErrorException']?_0x494426['modelStreamErrorException'](_0x3dc132['modelStreamErrorException']):void 0x0!==_0x3dc132['validationException']?_0x494426['validationException'](_0x3dc132['validationException']):void 0x0!==_0x3dc132['throttlingException']?_0x494426['throttlingException'](_0x3dc132['throttlingException']):void 0x0!==_0x3dc132['serviceUnavailableException']?_0x494426['serviceUnavailableException'](_0x3dc132['serviceUnavailableException']):_0x494426['_'](_0x3dc132['$unknown'][0x0],_0x3dc132['$unknown'][0x1]);}(ConverseStreamOutput||(ConverseStreamOutput={})),function(_0x1faa12){_0x1faa12['visit']=(_0x301037,_0x276bab)=>void 0x0!==_0x301037['chunk']?_0x276bab['chunk'](_0x301037['chunk']):_0x276bab['_'](_0x301037['$unknown'][0x0],_0x301037['$unknown'][0x1]);}(InvokeModelWithBidirectionalStreamInput||(InvokeModelWithBidirectionalStreamInput={})),function(_0x2a8015){_0x2a8015['visit']=(_0x420083,_0x2ddb75)=>void 0x0!==_0x420083['chunk']?_0x2ddb75['chunk'](_0x420083['chunk']):void 0x0!==_0x420083['internalServerException']?_0x2ddb75['internalServerException'](_0x420083['internalServerException']):void 0x0!==_0x420083['modelStreamErrorException']?_0x2ddb75['modelStreamErrorException'](_0x420083['modelStreamErrorException']):void 0x0!==_0x420083['validationException']?_0x2ddb75['validationException'](_0x420083['validationException']):void 0x0!==_0x420083['throttlingException']?_0x2ddb75['throttlingException'](_0x420083['throttlingException']):void 0x0!==_0x420083['modelTimeoutException']?_0x2ddb75['modelTimeoutException'](_0x420083['modelTimeoutException']):void 0x0!==_0x420083['serviceUnavailableException']?_0x2ddb75['serviceUnavailableException'](_0x420083['serviceUnavailableException']):_0x2ddb75['_'](_0x420083['$unknown'][0x0],_0x420083['$unknown'][0x1]);}(InvokeModelWithBidirectionalStreamOutput||(InvokeModelWithBidirectionalStreamOutput={})),function(_0x1be7fc){_0x1be7fc['visit']=(_0x4fdde0,_0x561be9)=>void 0x0!==_0x4fdde0['chunk']?_0x561be9['chunk'](_0x4fdde0['chunk']):void 0x0!==_0x4fdde0['internalServerException']?_0x561be9['internalServerException'](_0x4fdde0['internalServerException']):void 0x0!==_0x4fdde0['modelStreamErrorException']?_0x561be9['modelStreamErrorException'](_0x4fdde0['modelStreamErrorException']):void 0x0!==_0x4fdde0['validationException']?_0x561be9['validationException'](_0x4fdde0['validationException']):void 0x0!==_0x4fdde0['throttlingException']?_0x561be9['throttlingException'](_0x4fdde0['throttlingException']):void 0x0!==_0x4fdde0['modelTimeoutException']?_0x561be9['modelTimeoutException'](_0x4fdde0['modelTimeoutException']):void 0x0!==_0x4fdde0['serviceUnavailableException']?_0x561be9['serviceUnavailableException'](_0x4fdde0['serviceUnavailableException']):_0x561be9['_'](_0x4fdde0['$unknown'][0x0],_0x4fdde0['$unknown'][0x1]);}(ResponseStream||(ResponseStream={}));const InvokeModelRequestFilterSensitiveLog=_0x565a51=>({..._0x565a51,..._0x565a51['body']&&{'body':SENSITIVE_STRING}}),InvokeModelResponseFilterSensitiveLog=_0x277630=>({..._0x277630,..._0x277630['body']&&{'body':SENSITIVE_STRING}}),InvokeModelWithResponseStreamRequestFilterSensitiveLog=_0x1aa45d=>({..._0x1aa45d,..._0x1aa45d['body']&&{'body':SENSITIVE_STRING}}),InvokeModelWithResponseStreamResponseFilterSensitiveLog=_0x5a6d4a=>({..._0x5a6d4a,..._0x5a6d4a['body']&&{'body':'STREAMING_CONTENT'}}),se_InvokeModelCommand=async(_0x50cc9b,_0x38fc9c)=>{const _0x436fec=requestBuilder(_0x50cc9b,_0x38fc9c),_0x12f1d2=map$1({},isSerializableHeaderValue,{[_ct]:_0x50cc9b[_cT]||'application/octet-stream',[_a$2]:_0x50cc9b[_a$2],[_xabt]:_0x50cc9b[_t],[_xabg]:_0x50cc9b[_gI],[_xabg_]:_0x50cc9b[_gV],[_xabpl]:_0x50cc9b[_pCL]});let _0xaba19e;return _0x436fec['bp']('/model/{modelId}/invoke'),_0x436fec['p']('modelId',()=>_0x50cc9b['modelId'],'{modelId}',!0x1),void 0x0!==_0x50cc9b['body']&&(_0xaba19e=_0x50cc9b['body']),_0x436fec['m']('POST')['h'](_0x12f1d2)['b'](_0xaba19e),_0x436fec['build']();},se_InvokeModelWithResponseStreamCommand=async(_0x564b0d,_0x44e0f5)=>{const _0x283dd5=requestBuilder(_0x564b0d,_0x44e0f5),_0x62fe7e=map$1({},isSerializableHeaderValue,{[_ct]:_0x564b0d[_cT]||'application/octet-stream',[_xaba]:_0x564b0d[_a$2],[_xabt]:_0x564b0d[_t],[_xabg]:_0x564b0d[_gI],[_xabg_]:_0x564b0d[_gV],[_xabpl]:_0x564b0d[_pCL]});let _0xfa9a81;return _0x283dd5['bp']('/model/{modelId}/invoke-with-response-stream'),_0x283dd5['p']('modelId',()=>_0x564b0d['modelId'],'{modelId}',!0x1),void 0x0!==_0x564b0d['body']&&(_0xfa9a81=_0x564b0d['body']),_0x283dd5['m']('POST')['h'](_0x62fe7e)['b'](_0xfa9a81),_0x283dd5['build']();},de_InvokeModelCommand=async(_0x165e16,_0x49f580)=>{if(0xc8!==_0x165e16['statusCode']&&_0x165e16['statusCode']>=0x12c)return de_CommandError(_0x165e16,_0x49f580);const _0x3452ce=map$1({'$metadata':deserializeMetadata(_0x165e16),[_cT]:[,_0x165e16['headers'][_ct]],[_pCL]:[,_0x165e16['headers'][_xabpl]]}),_0x1292bb=await collectBody(_0x165e16['body'],_0x49f580);return _0x3452ce['body']=_0x1292bb,_0x3452ce;},de_InvokeModelWithResponseStreamCommand=async(_0x32cf65,_0x4ac604)=>{if(0xc8!==_0x32cf65['statusCode']&&_0x32cf65['statusCode']>=0x12c)return de_CommandError(_0x32cf65,_0x4ac604);const _0x58c62e=map$1({'$metadata':deserializeMetadata(_0x32cf65),[_cT]:[,_0x32cf65['headers'][_xabct]],[_pCL]:[,_0x32cf65['headers'][_xabpl]]}),_0x2e5cd0=_0x32cf65['body'];return _0x58c62e['body']=de_ResponseStream(_0x2e5cd0,_0x4ac604),_0x58c62e;},de_CommandError=async(_0x55e631,_0x1dd5d3)=>{const _0x228f50={..._0x55e631,'body':await parseJsonErrorBody(_0x55e631['body'],_0x1dd5d3)},_0x43f212=loadRestJsonErrorCode(_0x55e631,_0x228f50['body']);switch(_0x43f212){case'AccessDeniedException':case'com.amazonaws.bedrockruntime#AccessDeniedException':throw await de_AccessDeniedExceptionRes(_0x228f50);case'InternalServerException':case'com.amazonaws.bedrockruntime#InternalServerException':throw await de_InternalServerExceptionRes(_0x228f50);case'ResourceNotFoundException':case'com.amazonaws.bedrockruntime#ResourceNotFoundException':throw await de_ResourceNotFoundExceptionRes(_0x228f50);case'ServiceQuotaExceededException':case'com.amazonaws.bedrockruntime#ServiceQuotaExceededException':throw await de_ServiceQuotaExceededExceptionRes(_0x228f50);case'ThrottlingException':case'com.amazonaws.bedrockruntime#ThrottlingException':throw await de_ThrottlingExceptionRes(_0x228f50);case'ValidationException':case'com.amazonaws.bedrockruntime#ValidationException':throw await de_ValidationExceptionRes(_0x228f50);case'ModelErrorException':case'com.amazonaws.bedrockruntime#ModelErrorException':throw await de_ModelErrorExceptionRes(_0x228f50);case'ModelNotReadyException':case'com.amazonaws.bedrockruntime#ModelNotReadyException':throw await de_ModelNotReadyExceptionRes(_0x228f50);case'ModelTimeoutException':case'com.amazonaws.bedrockruntime#ModelTimeoutException':throw await de_ModelTimeoutExceptionRes(_0x228f50);case'ServiceUnavailableException':case'com.amazonaws.bedrockruntime#ServiceUnavailableException':throw await de_ServiceUnavailableExceptionRes(_0x228f50);case'ModelStreamErrorException':case'com.amazonaws.bedrockruntime#ModelStreamErrorException':throw await de_ModelStreamErrorExceptionRes(_0x228f50);case'ConflictException':case'com.amazonaws.bedrockruntime#ConflictException':throw await de_ConflictExceptionRes(_0x228f50);default:const _0x2d04c5=_0x228f50['body'];return throwDefaultError({'output':_0x55e631,'parsedBody':_0x2d04c5,'errorCode':_0x43f212});}},throwDefaultError=withBaseException(BedrockRuntimeServiceException),de_AccessDeniedExceptionRes=async(_0x2e34d6,_0x1078f6)=>{const _0x123c43=map$1({}),_0x4ef2ff=_0x2e34d6['body'],_0x30f2c7=take(_0x4ef2ff,{'message':expectString});Object['assign'](_0x123c43,_0x30f2c7);const _0x737fa8=new AccessDeniedException({'$metadata':deserializeMetadata(_0x2e34d6),..._0x123c43});return decorateServiceException(_0x737fa8,_0x2e34d6['body']);},de_ConflictExceptionRes=async(_0x21c397,_0x12c6b8)=>{const _0x2e90e2=map$1({}),_0x585a5d=_0x21c397['body'],_0xbf6521=take(_0x585a5d,{'message':expectString});Object['assign'](_0x2e90e2,_0xbf6521);const _0x248437=new ConflictException({'$metadata':deserializeMetadata(_0x21c397),..._0x2e90e2});return decorateServiceException(_0x248437,_0x21c397['body']);},de_InternalServerExceptionRes=async(_0x39f1d1,_0x20296f)=>{const _0x42cf6a=map$1({}),_0x268864=_0x39f1d1['body'],_0x182f16=take(_0x268864,{'message':expectString});Object['assign'](_0x42cf6a,_0x182f16);const _0x5e1116=new InternalServerException({'$metadata':deserializeMetadata(_0x39f1d1),..._0x42cf6a});return decorateServiceException(_0x5e1116,_0x39f1d1['body']);},de_ModelErrorExceptionRes=async(_0x5e6143,_0x2f3854)=>{const _0xfcba3b=map$1({}),_0x2b94=_0x5e6143['body'],_0x3e8f08=take(_0x2b94,{'message':expectString,'originalStatusCode':expectInt32,'resourceName':expectString});Object['assign'](_0xfcba3b,_0x3e8f08);const _0x4b7799=new ModelErrorException({'$metadata':deserializeMetadata(_0x5e6143),..._0xfcba3b});return decorateServiceException(_0x4b7799,_0x5e6143['body']);},de_ModelNotReadyExceptionRes=async(_0x5f2c19,_0x3db522)=>{const _0x340df7=map$1({}),_0x2d4861=_0x5f2c19['body'],_0x241dc1=take(_0x2d4861,{'message':expectString});Object['assign'](_0x340df7,_0x241dc1);const _0x3db97d=new ModelNotReadyException({'$metadata':deserializeMetadata(_0x5f2c19),..._0x340df7});return decorateServiceException(_0x3db97d,_0x5f2c19['body']);},de_ModelStreamErrorExceptionRes=async(_0x3f1f9b,_0x12d155)=>{const _0x2ae636=map$1({}),_0x54dfd6=_0x3f1f9b['body'],_0x478222=take(_0x54dfd6,{'message':expectString,'originalMessage':expectString,'originalStatusCode':expectInt32});Object['assign'](_0x2ae636,_0x478222);const _0x4cc212=new ModelStreamErrorException({'$metadata':deserializeMetadata(_0x3f1f9b),..._0x2ae636});return decorateServiceException(_0x4cc212,_0x3f1f9b['body']);},de_ModelTimeoutExceptionRes=async(_0x416182,_0x32e5c9)=>{const _0x3f1a74=map$1({}),_0x58804b=_0x416182['body'],_0x2c31d1=take(_0x58804b,{'message':expectString});Object['assign'](_0x3f1a74,_0x2c31d1);const _0x1c26b9=new ModelTimeoutException({'$metadata':deserializeMetadata(_0x416182),..._0x3f1a74});return decorateServiceException(_0x1c26b9,_0x416182['body']);},de_ResourceNotFoundExceptionRes=async(_0x15124f,_0x5060cb)=>{const _0x4ad201=map$1({}),_0x2a51de=_0x15124f['body'],_0x13c87c=take(_0x2a51de,{'message':expectString});Object['assign'](_0x4ad201,_0x13c87c);const _0x34212d=new ResourceNotFoundException({'$metadata':deserializeMetadata(_0x15124f),..._0x4ad201});return decorateServiceException(_0x34212d,_0x15124f['body']);},de_ServiceQuotaExceededExceptionRes=async(_0x292a80,_0x8f701)=>{const _0x42f92d=map$1({}),_0x173adb=_0x292a80['body'],_0x209263=take(_0x173adb,{'message':expectString});Object['assign'](_0x42f92d,_0x209263);const _0x2c2ba8=new ServiceQuotaExceededException({'$metadata':deserializeMetadata(_0x292a80),..._0x42f92d});return decorateServiceException(_0x2c2ba8,_0x292a80['body']);},de_ServiceUnavailableExceptionRes=async(_0x217da8,_0x2da74a)=>{const _0x53b140=map$1({}),_0x17d7c9=_0x217da8['body'],_0x3d3bd1=take(_0x17d7c9,{'message':expectString});Object['assign'](_0x53b140,_0x3d3bd1);const _0xddfc8e=new ServiceUnavailableException({'$metadata':deserializeMetadata(_0x217da8),..._0x53b140});return decorateServiceException(_0xddfc8e,_0x217da8['body']);},de_ThrottlingExceptionRes=async(_0x88340e,_0x4f3734)=>{const _0x43bb8e=map$1({}),_0x1b3a55=_0x88340e['body'],_0x12bfa2=take(_0x1b3a55,{'message':expectString});Object['assign'](_0x43bb8e,_0x12bfa2);const _0xa88db7=new ThrottlingException({'$metadata':deserializeMetadata(_0x88340e),..._0x43bb8e});return decorateServiceException(_0xa88db7,_0x88340e['body']);},de_ValidationExceptionRes=async(_0x32fe20,_0x3777db)=>{const _0x4289be=map$1({}),_0xbc29af=_0x32fe20['body'],_0x21e659=take(_0xbc29af,{'message':expectString});Object['assign'](_0x4289be,_0x21e659);const _0x2ace5e=new ValidationException({'$metadata':deserializeMetadata(_0x32fe20),..._0x4289be});return decorateServiceException(_0x2ace5e,_0x32fe20['body']);},de_ResponseStream=(_0x19a88e,_0x168a32)=>_0x168a32['eventStreamMarshaller']['deserialize'](_0x19a88e,async _0x5f43e3=>null!=_0x5f43e3['chunk']?{'chunk':await de_PayloadPart_event(_0x5f43e3['chunk'],_0x168a32)}:null!=_0x5f43e3['internalServerException']?{'internalServerException':await de_InternalServerException_event(_0x5f43e3['internalServerException'],_0x168a32)}:null!=_0x5f43e3['modelStreamErrorException']?{'modelStreamErrorException':await de_ModelStreamErrorException_event(_0x5f43e3['modelStreamErrorException'],_0x168a32)}:null!=_0x5f43e3['validationException']?{'validationException':await de_ValidationException_event(_0x5f43e3['validationException'],_0x168a32)}:null!=_0x5f43e3['throttlingException']?{'throttlingException':await de_ThrottlingException_event(_0x5f43e3['throttlingException'],_0x168a32)}:null!=_0x5f43e3['modelTimeoutException']?{'modelTimeoutException':await de_ModelTimeoutException_event(_0x5f43e3['modelTimeoutException'],_0x168a32)}:null!=_0x5f43e3['serviceUnavailableException']?{'serviceUnavailableException':await de_ServiceUnavailableException_event(_0x5f43e3['serviceUnavailableException'],_0x168a32)}:{'$unknown':_0x19a88e}),de_InternalServerException_event=async(_0x1e1df8,_0x372427)=>{const _0x541073={..._0x1e1df8,'body':await parseJsonBody(_0x1e1df8['body'],_0x372427)};return de_InternalServerExceptionRes(_0x541073);},de_ModelStreamErrorException_event=async(_0x457d2f,_0x2e03f0)=>{const _0x3eba22={..._0x457d2f,'body':await parseJsonBody(_0x457d2f['body'],_0x2e03f0)};return de_ModelStreamErrorExceptionRes(_0x3eba22);},de_ModelTimeoutException_event=async(_0x13b8b5,_0x26d220)=>{const _0x1bb558={..._0x13b8b5,'body':await parseJsonBody(_0x13b8b5['body'],_0x26d220)};return de_ModelTimeoutExceptionRes(_0x1bb558);},de_PayloadPart_event=async(_0x26c9d7,_0x3c114d)=>{const _0x152ae4={},_0x5c0590=await parseJsonBody(_0x26c9d7['body'],_0x3c114d);return Object['assign'](_0x152ae4,de_PayloadPart(_0x5c0590,_0x3c114d)),_0x152ae4;},de_ServiceUnavailableException_event=async(_0x3ab63f,_0x546575)=>{const _0x3a4110={..._0x3ab63f,'body':await parseJsonBody(_0x3ab63f['body'],_0x546575)};return de_ServiceUnavailableExceptionRes(_0x3a4110);},de_ThrottlingException_event=async(_0x1da011,_0x4b1549)=>{const _0xa97671={..._0x1da011,'body':await parseJsonBody(_0x1da011['body'],_0x4b1549)};return de_ThrottlingExceptionRes(_0xa97671);},de_ValidationException_event=async(_0x48a271,_0xdc7e22)=>{const _0x2b65ce={..._0x48a271,'body':await parseJsonBody(_0x48a271['body'],_0xdc7e22)};return de_ValidationExceptionRes(_0x2b65ce);},de_PayloadPart=(_0x443f92,_0x24f698)=>take(_0x443f92,{'bytes':_0x24f698['base64Decoder']}),deserializeMetadata=_0xe2d88e=>({'httpStatusCode':_0xe2d88e['statusCode'],'requestId':_0xe2d88e['headers']['x-amzn-requestid']??_0xe2d88e['headers']['x-amzn-request-id']??_0xe2d88e['headers']['x-amz-request-id'],'extendedRequestId':_0xe2d88e['headers']['x-amz-id-2'],'cfId':_0xe2d88e['headers']['x-amz-cf-id']}),_a$2='accept',_cT='contentType',_ct='content-type',_gI='guardrailIdentifier',_gV='guardrailVersion',_pCL='performanceConfigLatency',_t='trace',_xaba='x-amzn-bedrock-accept',_xabct='x-amzn-bedrock-content-type',_xabg='x-amzn-bedrock-guardrailidentifier',_xabg_='x-amzn-bedrock-guardrailversion',_xabpl='x-amzn-bedrock-performanceconfig-latency',_xabt='x-amzn-bedrock-trace';class InvokeModelCommand extends Command['classBuilder']()['ep'](commonParams)['m'](function(_0x55c2af,_0x2081aa,_0x2f7771,_0xa8f5cf){return[getSerdePlugin(_0x2f7771,this['serialize'],this['deserialize']),getEndpointPlugin(_0x2f7771,_0x55c2af['getEndpointParameterInstructions']())];})['s']('AmazonBedrockFrontendService','InvokeModel',{})['n']('BedrockRuntimeClient','InvokeModelCommand')['f'](InvokeModelRequestFilterSensitiveLog,InvokeModelResponseFilterSensitiveLog)['ser'](se_InvokeModelCommand)['de'](de_InvokeModelCommand)['build'](){}class InvokeModelWithResponseStreamCommand extends Command['classBuilder']()['ep'](commonParams)['m'](function(_0x2ca032,_0xe23834,_0x1c7260,_0x4b1fbb){return[getSerdePlugin(_0x1c7260,this['serialize'],this['deserialize']),getEndpointPlugin(_0x1c7260,_0x2ca032['getEndpointParameterInstructions']())];})['s']('AmazonBedrockFrontendService','InvokeModelWithResponseStream',{'eventStream':{'output':!0x0}})['n']('BedrockRuntimeClient','InvokeModelWithResponseStreamCommand')['f'](InvokeModelWithResponseStreamRequestFilterSensitiveLog,InvokeModelWithResponseStreamResponseFilterSensitiveLog)['ser'](se_InvokeModelWithResponseStreamCommand)['de'](de_InvokeModelWithResponseStreamCommand)['build'](){}class AWSTextAdapter extends AITextAdapter{['_apiUrl'];['_requestHeaders'];['_bedrockClientConfig'];['_requestParameters'];static get['pluginName'](){return'AWSTextAdapter';}constructor(_0x56005e){super(_0x56005e),_0x56005e['config']['get']('ai.assistant.adapter.aws.requestParameters')||_0x56005e['config']['define']('ai.assistant.adapter.aws.requestParameters',{'model':'anthropic.claude-v2','max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':'bedrock-2023-05-31','stream':!0x0}),this['_apiUrl']=_0x56005e['config']['get']('ai.assistant.adapter.aws.apiUrl'),this['_bedrockClientConfig']=_0x56005e['config']['get']('ai.assistant.adapter.aws.bedrockClientConfig'),this['_requestHeaders']=_0x56005e['config']['get']('ai.assistant.adapter.aws.requestHeaders'),this['_requestParameters']=_0x56005e['config']['get']('ai.assistant.adapter.aws.requestParameters');}async['sendRequest']({query:_0x4b0a6a,context:_0x4cbc15,onData:_0x4c6c64,actionId:_0x2b7d0b}){const {model:_0x4763ad,stream:_0x305700,..._0x1ce791}=await this['_prepareRequestParameters'](this['_requestParameters'],_0x2b7d0b),_0x43f3f1={'prompt':await this['preparePrompt'](_0x4b0a6a,_0x4cbc15,_0x4763ad,_0x2b7d0b),..._0x1ce791};this['_apiUrl']?await this['_processProxyRequest'](_0x43f3f1,_0x4763ad,_0x305700,_0x4c6c64,_0x2b7d0b):await this['_processAWSRequest'](_0x43f3f1,_0x4763ad,_0x305700,_0x4c6c64);}async['preparePrompt'](_0x51f906,_0x15b37e,_0x3cf44b,_0x53e2ac){let _0x5c9929,_0x42419a;return _0x15b37e?(_0x5c9929='Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.',_0x42419a='Instruction:\x0a'+_0x51f906+'\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a'+_0x15b37e):(_0x5c9929='Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.',_0x42419a=_0x51f906),'meta.llama'==this['getModelFamily'](_0x3cf44b)?'<<SYS>>\x0a'+_0x5c9929+'\x0a<</SYS>>\x0a[INST]\x0a'+_0x42419a+'\x0a[/INST]':'Human:\x0a'+_0x5c9929+'\x0a'+_0x42419a+'\x0a\x0aAssistant:';}['getModelFamily'](_0x23ebe1){if(/^anthropic\.claude/['test'](_0x23ebe1))return'anthropic.claude';if(/^ai21\.j2/['test'](_0x23ebe1))return'ai21.j2';if(/^cohere\.command/['test'](_0x23ebe1))return'cohere.command';if(/^meta\.llama/['test'](_0x23ebe1))return'meta.llama';throw new AIRequestError(getTranslation$j(this['editor']['locale'],'AI_ERROR_UNSUPPORTED_MODEL',_0x23ebe1));}async['_processProxyRequest'](_0x427f92,_0x5514f2,_0x5ce26a,_0x100643,_0x4e9c15){const _0x1da271={'method':'POST','headers':await this['_prepareRequestHeaders'](this['_requestHeaders'],_0x4e9c15),'body':JSON['stringify']({..._0x427f92,'model':_0x5514f2,'stream':_0x5ce26a}),'signal':this['abortController']['signal']},_0x5de2f2=await fetch(this['_apiUrl'],_0x1da271);_0x5ce26a?await this['_readStreamableResponse'](_0x5de2f2,_0x5514f2,_0x100643):await this['_readStaticResponse'](_0x5de2f2,_0x5514f2,_0x100643);}async['_processAWSRequest'](_0x3c5df1,_0x528a2a,_0x2cb490,_0x5e06a8){const _0x53beba=new BedrockRuntimeClient(this['_bedrockClientConfig']),_0x29bcdd={'body':JSON['stringify'](_0x3c5df1),'contentType':'application/json','accept':'application/json','modelId':_0x528a2a};let _0x10f0c6;if(_0x2cb490){const _0x31eebb=new InvokeModelWithResponseStreamCommand(_0x29bcdd);_0x10f0c6=await _0x53beba['send'](_0x31eebb,{'abortSignal':this['abortController']['signal']}),await this['_readAsyncIterableResponse'](_0x10f0c6,_0x528a2a,_0x5e06a8);}else{const _0x124dcb=new InvokeModelCommand(_0x29bcdd);_0x10f0c6=await _0x53beba['send'](_0x124dcb,{'abortSignal':this['abortController']['signal']}),await this['_readStaticResponse'](_0x10f0c6,_0x528a2a,_0x5e06a8);}}async['_readAsyncIterableResponse'](_0x3a615b,_0x257ce6,_0xc274cb){const _0x15ba33=_0x3a615b['body'],_0x54f3b7=new TextDecoder('utf-8');let _0x11641e='';for await(const _0x47a60c of _0x15ba33)if(_0x47a60c['chunk']){const _0x4ab541=_0x54f3b7['decode'](_0x47a60c['chunk']['bytes']),_0x371fac=JSON['parse'](_0x4ab541);_0x11641e+=this['_getGeneratedText'](_0x371fac,_0x257ce6),_0xc274cb(_0x11641e);}return Promise['resolve']();}async['_readStreamableResponse'](_0x8fccd5,_0x4ea498,_0x55a586){const _0x1e78f4=_0x8fccd5['body'],_0x474346=new TextDecoder('utf-8'),_0x4c6a18=_0x1e78f4['getReader']();let _0x468ff7='',_0x18904d='',_0x367a5a=!0x1;for(;!_0x367a5a;){const {done:_0x5518b9,value:_0x371c88}=await _0x4c6a18['read']();if(_0x367a5a=_0x5518b9,_0x367a5a)break;const _0x14ca35=(_0x468ff7+_0x474346['decode'](_0x371c88))['split']('\x0a')['map'](_0xc01d2e=>{try{return _0x468ff7='',JSON['parse'](_0xc01d2e);}catch{return _0x468ff7=_0xc01d2e,null;}})['filter'](_0x54fc95=>null!==_0x54fc95);if(_0x14ca35['length']){const _0x113d7b=_0x14ca35['map'](_0x14d7e9=>this['_getGeneratedText'](_0x14d7e9,_0x4ea498))['join']('');_0x18904d+=_0x113d7b,_0x55a586(_0x18904d);}}return Promise['resolve']();}async['_readStaticResponse'](_0x3d1db7,_0x5b5b9a,_0x3d1d20){let _0x66faa4;return _0x66faa4=_0x3d1db7 instanceof Response?await _0x3d1db7['json']():JSON['parse'](new TextDecoder('utf-8')['decode'](_0x3d1db7['body'])),(_0x3d1d20(this['_getGeneratedText'](_0x66faa4,_0x5b5b9a)),Promise['resolve']());}['_getGeneratedText'](_0x22355f,_0xee7057){switch(this['getModelFamily'](_0xee7057)){case'anthropic.claude':return _0x22355f['completion'];case'ai21.j2':return _0x22355f['completions'][0x0]['data']['text'];case'cohere.command':return _0x22355f['generations'][0x0]['text'];case'meta.llama':return _0x22355f['generation'];}}}class TabButtonView extends ButtonView{constructor(_0x103072,_0x2c1765={}){super(_0x103072),this['isToggleable']=!0x0,this['set']('side',_0x2c1765['side']||'top');const _0x344da8=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-tab-button',...toArray$1(_0x2c1765['class']||[]),_0x344da8['to']('side',_0x483544=>'ck-tab-button_'+_0x483544),_0x344da8['to']('class')]}});}['show'](){this['set']('isVisible',!0x0);}['hide'](){this['set']('isVisible',!0x1);}}class TabPanelView extends View{['children'];constructor(_0x3b8223,_0x5135fd={}){super(_0x3b8223);const _0x47abc4=this['bindTemplate'];this['set']('isVisible',!0x1),this['set']('class',''),this['children']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-tab-panel',...toArray$1(_0x5135fd['class']||[]),_0x47abc4['to']('class'),_0x47abc4['if']('isVisible','ck-hidden',_0x53bfd3=>!_0x53bfd3)]},'children':this['children']});}['show'](){this['set']('isVisible',!0x0);}['hide'](){this['set']('isVisible',!0x1);}}class AITabsView extends View{['buttonViews']=this['createCollection']();['panelViews']=this['createCollection']();['_tabs']=new Map();constructor(_0x5d625b,_0x33d23c={}){super(_0x5d625b),this['set']('class',void 0x0),this['set']('activeTab',null),this['set']('side',_0x33d23c['side']||'top'),this['set']('isMaximized',!0x1);const _0x15d1f2=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-tabs',...toArray$1(_0x33d23c['class']||[]),_0x15d1f2['to']('side',_0x5e8dc0=>'ck-tabs_'+_0x5e8dc0),_0x15d1f2['to']('class'),_0x15d1f2['to']('isMaximized',_0x40bbff=>_0x40bbff?'ck-ai-tabs_maximized':'')],'tabindex':'0'},'children':[{'tag':'div','attributes':{'class':['ck','ck-tabs__buttons-container',_0x15d1f2['to']('side',_0x111326=>'ck-tabs__buttons-container_'+_0x111326)]},'children':this['buttonViews']},{'tag':'div','attributes':{'class':['ck','ck-tabs__panels-container',_0x15d1f2['to']('side',_0xca1c9d=>'ck-tabs__panels-container_'+_0xca1c9d)]},'children':this['panelViews']},...toArray$1(_0x33d23c['children']||[])]});}['getTabIds'](){return[...this['_tabs']['keys']()];}['getTab'](_0x3957c9){const _0x2b21b8=this['_tabs']['get'](_0x3957c9);return _0x2b21b8||null;}['addTab'](_0x2043c2){const _0x30d6b8=this['_setupButton']({'id':_0x2043c2['id'],'label':_0x2043c2['buttonLabel'],'icon':_0x2043c2['buttonIcon'],'order':_0x2043c2['order']}),_0x6a8c78=new TabPanelView(this['locale']);return _0x6a8c78['render'](),_0x2043c2['content']&&_0x6a8c78['children']['add'](_0x2043c2['content']),this['panelViews']['add'](_0x6a8c78),this['_tabs']['set'](_0x2043c2['id'],{'button':_0x30d6b8,'panel':_0x6a8c78,'order':void 0x0!==_0x2043c2['order']?_0x2043c2['order']:null}),this['fire']('addTab:'+_0x2043c2['id'],{'id':_0x2043c2['id'],'button':_0x30d6b8,'panel':_0x6a8c78}),null===this['activeTab']?this['activateTab'](_0x2043c2['id']):this['_hidePanel'](_0x2043c2['id']),{'button':_0x30d6b8,'panel':_0x6a8c78};}['activateTab'](_0x2c1347){if(null!==_0x2c1347&&!this['getTab'](_0x2c1347))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x2c1347});this['activeTab']!==_0x2c1347&&(this['activeTab']&&this['_hidePanel'](this['activeTab']),this['activeTab']=_0x2c1347,_0x2c1347&&this['_showPanel'](_0x2c1347),this['fire']('activateTab:'+_0x2c1347,_0x2c1347));}['showTab'](_0x391017){if(!this['getTab'](_0x391017))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x391017});this['_showPanel'](_0x391017),this['_showButton'](_0x391017),this['fire']('show:'+_0x391017,_0x391017);}['hideTab'](_0x12ebcf){if(!this['getTab'](_0x12ebcf))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x12ebcf});const _0x29d25d=this['activeTab'];this['_hidePanel'](_0x12ebcf),this['_hideButton'](_0x12ebcf);const _0xba2487=this['getTabIds']();_0x29d25d===_0x12ebcf&&_0xba2487['length']>0x1&&this['activateTab'](_0xba2487['find'](_0x5673e2=>_0x5673e2!==_0x12ebcf)),this['fire']('hide:'+_0x12ebcf,_0x12ebcf);}['_getPanel'](_0xa7666f){const _0x26786e=this['_tabs']['get'](_0xa7666f);return _0x26786e?_0x26786e['panel']:null;}['_showPanel'](_0x374fe3){null!==this['activeTab']&&this['activeTab']!==_0x374fe3||this['_getPanel'](_0x374fe3)['show']();}['_hidePanel'](_0x16ea73){const _0x139f9d=this['_getPanel'](_0x16ea73);_0x139f9d['isVisible']&&(this['activeTab']===_0x16ea73&&(this['activeTab']=null),_0x139f9d['hide']());}['_getButton'](_0x2f2254){const _0xe874ee=this['_tabs']['get'](_0x2f2254);return _0xe874ee?_0xe874ee['button']:null;}['_showButton'](_0x15c404){this['_getButton'](_0x15c404)['show']();}['_hideButton'](_0x45c0be){this['_getButton'](_0x45c0be)['hide']();}['_setupButton'](_0x2c12ca){const _0x38b103=new TabButtonView(this['locale'],{'side':this['side']}),_0x4a5a78=this['buttonViews'];if(_0x38b103['set']({'label':_0x2c12ca['label'],'icon':_0x2c12ca['icon'],'tooltip':!0x0,'withText':!0x0}),_0x38b103['bind']('isOn')['to'](this,'activeTab',_0x493fc7=>_0x493fc7===_0x2c12ca['id']),_0x38b103['bind']('side')['to'](this,'side'),_0x2c12ca['order']){const _0x3860e0=[...this['_tabs']]['reduce']((_0x115353,_0x5e28fa)=>{const _0x171852=_0x5e28fa[0x0],{order:_0x500b0e}=_0x5e28fa[0x1];return!_0x500b0e||_0x500b0e>_0x2c12ca['order']?_0x115353:_0x500b0e>=_0x115353['order']?{'id':_0x171852,'order':_0x500b0e}:_0x115353;},{'id':'','order':0x0}),_0x4b8c73=_0x4a5a78['getIndex'](this['_getButton'](_0x3860e0['id']));_0x4a5a78['add'](_0x38b103,_0x4b8c73+0x1);}else _0x4a5a78['add'](_0x38b103);return _0x38b103['on']('execute',()=>{this['activateTab'](_0x2c12ca['id']);}),_0x38b103;}}const AI_TABS_VIEW_TYPES=['overlay','sidebar','custom'],AI_TABS_VIEW_SIDES=['left','right'];class AITabsMainView extends AITabsView{constructor(_0x5e7885,_0xd85fce={}){super(_0x5e7885,_0xd85fce),this['set']('type',_0xd85fce['type']||'sidebar'),this['set']('side',_0xd85fce['side']||'right'),this['set']('isVisible',_0xd85fce['visibleByDefault']??!0x0);const _0x4c71bc=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-ai-tabs',_0x4c71bc['if']('type','ck-ai-tabs__overlay',_0x220e1c=>'overlay'===_0x220e1c),_0x4c71bc['if']('type','ck-ai-tabs__sidebar',_0x57432e=>'sidebar'===_0x57432e),_0x4c71bc['if']('isVisible','ck-hidden',_0x3463b3=>!_0x3463b3)]}}),this['buttonViews']['on']('add',(_0x9c6ec0,_0x58c386)=>{_0x58c386['set']('withText',!0x1);});}}class AITabs extends ContextPlugin{['view'];['container']=null;['showResizeButton']=!0x0;static get['pluginName'](){return'AITabs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bd066){super(_0x4bd066);const _0x7f1f96=this['context']['config']['get']('ai.container');if(this['set']('side','right'),!_0x7f1f96)throw new CKEditorError('ai-tabs-configuration-not-found');if(void 0x0!==_0x7f1f96['showResizeButton']&&(this['showResizeButton']=_0x7f1f96['showResizeButton']),'sidebar'!==_0x7f1f96['type']&&'overlay'!==_0x7f1f96['type']||_0x7f1f96['side']&&(this['side']=_0x7f1f96['side']),'sidebar'===_0x7f1f96['type']){if(this['container']=_0x7f1f96['element'],this['set']('type','sidebar'),!this['container'])throw new CKEditorError('ai-tabs-sidebar-container-element-not-found');}else'overlay'===_0x7f1f96['type']?(this['container']=document['body'],this['set']('type','overlay')):(this['container']=null,this['set']('type','custom'));this['view']=new AITabsMainView(this['context']['locale'],{'side':this['side'],'type':this['type'],'visibleByDefault':void 0x0===_0x7f1f96['visibleByDefault']||_0x7f1f96['visibleByDefault']}),this['view']['render'](),this['view']['bind']('side')['to'](this,'side'),this['view']['bind']('type')['to'](this,'type'),this['container']&&this['container']['appendChild'](this['view']['element']),this['context']instanceof Editor&&this['context']['ui']['focusTracker']['add'](this['view']['element']);}['switchType'](_0x351a29){if(_0x351a29&&this['type']!==_0x351a29){if(!AI_TABS_VIEW_TYPES['includes'](_0x351a29))throw new CKEditorError('ai-tabs-unsupported-ui-type');this['type']=_0x351a29;}}['switchSide'](_0x36f6d9){if(_0x36f6d9&&this['side']!==_0x36f6d9){if(!AI_TABS_VIEW_SIDES['includes'](_0x36f6d9))throw new CKEditorError('ai-tabs-unsupported-ui-side');this['side']=_0x36f6d9;}}['resize'](){this['view']['isMaximized']=!this['view']['isMaximized'],this['fire']('resizedTabs',this['view']['isMaximized']);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['view']['element']&&this['view']['element']['remove']();}}class ParseError extends Error{constructor(_0x5e0396,_0x2fe325){super(_0x5e0396),this['name']='ParseError',this['type']=_0x2fe325['type'],this['field']=_0x2fe325['field'],this['value']=_0x2fe325['value'],this['line']=_0x2fe325['line'];}}function noop$1(_0x249f3c){}function createParser(_0x69383b){if('function'==typeof _0x69383b)throw new TypeError('`callbacks`\x20must\x20be\x20an\x20object,\x20got\x20a\x20function\x20instead.\x20Did\x20you\x20mean\x20`{onEvent:\x20fn}`?');const {onEvent:_0x57d665=noop$1,onError:_0x8efeee=noop$1,onRetry:_0x3b43af=noop$1,onComment:_0x2202dc}=_0x69383b;let _0x4bbe65,_0x120432='',_0x1cf8bc=!0x0,_0x14ef1f='',_0x5511a7='';function _0x163108(_0x532154){if(''===_0x532154)return _0x14ef1f['length']>0x0&&_0x57d665({'id':_0x4bbe65,'event':_0x5511a7||void 0x0,'data':_0x14ef1f['endsWith']('\x0a')?_0x14ef1f['slice'](0x0,-0x1):_0x14ef1f}),_0x4bbe65=void 0x0,_0x14ef1f='',void(_0x5511a7='');if(_0x532154['startsWith'](':'))return void(_0x2202dc&&_0x2202dc(_0x532154['slice'](_0x532154['startsWith'](':\x20')?0x2:0x1)));const _0x4e216e=_0x532154['indexOf'](':');if(-0x1!==_0x4e216e){const _0x21ad9a=_0x532154['slice'](0x0,_0x4e216e),_0x5e9932='\x20'===_0x532154[_0x4e216e+0x1]?0x2:0x1;return void _0xbdf1a(_0x21ad9a,_0x532154['slice'](_0x4e216e+_0x5e9932),_0x532154);}_0xbdf1a(_0x532154,'',_0x532154);}function _0xbdf1a(_0x2f6f38,_0x3eb089,_0x3e3eb3){switch(_0x2f6f38){case'event':_0x5511a7=_0x3eb089;break;case'data':_0x14ef1f=''+_0x14ef1f+_0x3eb089+'\x0a';break;case'id':_0x4bbe65=_0x3eb089['includes']('\x00')?void 0x0:_0x3eb089;break;case'retry':/^\d+$/['test'](_0x3eb089)?_0x3b43af(parseInt(_0x3eb089,0xa)):_0x8efeee(new ParseError('Invalid\x20`retry`\x20value:\x20\x22'+_0x3eb089+'\x22',{'type':'invalid-retry','value':_0x3eb089,'line':_0x3e3eb3}));break;default:_0x8efeee(new ParseError('Unknown\x20field\x20\x22'+(_0x2f6f38['length']>0x14?_0x2f6f38['slice'](0x0,0x14)+'…':_0x2f6f38)+'\x22',{'type':'unknown-field','field':_0x2f6f38,'value':_0x3eb089,'line':_0x3e3eb3}));}}return{'feed':function(_0x515eaf){const _0xd67dc9=_0x1cf8bc?_0x515eaf['replace'](/^\xEF\xBB\xBF/,''):_0x515eaf,[_0xa2bbcc,_0x1ade74]=splitLines(''+_0x120432+_0xd67dc9);for(const _0x28a42c of _0xa2bbcc)_0x163108(_0x28a42c);_0x120432=_0x1ade74,_0x1cf8bc=!0x1;},'reset':function(_0x3cc25e={}){_0x120432&&_0x3cc25e['consume']&&_0x163108(_0x120432),_0x1cf8bc=!0x0,_0x4bbe65=void 0x0,_0x14ef1f='',_0x5511a7='',_0x120432='';}};}function splitLines(_0x107e82){const _0x37c75c=[];let _0x38f246='',_0x3a5068=0x0;for(;_0x3a5068<_0x107e82['length'];){const _0x3381d9=_0x107e82['indexOf']('\x0d',_0x3a5068),_0xef4091=_0x107e82['indexOf']('\x0a',_0x3a5068);let _0x5922e3=-0x1;if(-0x1!==_0x3381d9&&-0x1!==_0xef4091?_0x5922e3=Math['min'](_0x3381d9,_0xef4091):-0x1!==_0x3381d9?_0x5922e3=_0x3381d9:-0x1!==_0xef4091&&(_0x5922e3=_0xef4091),-0x1===_0x5922e3){_0x38f246=_0x107e82['slice'](_0x3a5068);break;}{const _0xc75e32=_0x107e82['slice'](_0x3a5068,_0x5922e3);_0x37c75c['push'](_0xc75e32),_0x3a5068=_0x5922e3+0x1,'\x0d'===_0x107e82[_0x3a5068-0x1]&&'\x0a'===_0x107e82[_0x3a5068]&&_0x3a5068++;}}return[_0x37c75c,_0x38f246];}function getTranslation$i(_0x166cbe,_0xbd7dcf,_0x4e6dac){const t=_0x166cbe['t'];switch(_0xbd7dcf){case'AI_SUGGESTION_HEADER_TITLE':return t({'id':'AI_SUGGESTION_HEADER_TITLE','string':'Proposed\x20changes'});case'AI_SUGGESTION_BUTTON_SHOW_CHANGES':return t({'id':'AI_SUGGESTION_BUTTON_SHOW_CHANGES','string':'Show\x20details'});case'AI_MINI_TOOLBAR_LIKE':return t({'id':'AI_MINI_TOOLBAR_LIKE','string':'I\x20like\x20this\x20response'});case'AI_MINI_TOOLBAR_DISLIKE':return t({'id':'AI_MINI_TOOLBAR_DISLIKE','string':'I\x20don\x27t\x20like\x20this\x20response'});case'AI_MINI_TOOLBAR_COPY':return t({'id':'AI_MINI_TOOLBAR_COPY','string':'Copy\x20to\x20clipboard'});case'AI_SUGGESTION_CONTENT_PART_TITLE':return t({'id':'AI_SUGGESTION_CONTENT_PART_TITLE','string':'Change\x20%0'},_0x4e6dac);case'AI_SUGGESTION_CONTENT_PART_REJECTED':return t({'id':'AI_SUGGESTION_CONTENT_PART_REJECTED','string':'Change\x20was\x20rejected'});case'AI_SUGGESTION_CONTENT_PART_OUTDATED':return t({'id':'AI_SUGGESTION_CONTENT_PART_OUTDATED','string':'Change\x20is\x20outdated'});case'AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED':return t({'id':'AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','string':'Change\x20is\x20already\x20applied'});case'AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT':return t({'id':'AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','string':'Preview'});case'AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION':return t({'id':'AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','string':'Insert\x20as\x20suggestion'});case'AI_SUGGESTION_CONTENT_PART_DELETE':return t({'id':'AI_SUGGESTION_CONTENT_PART_DELETE','string':'Reject'});case'AI_SUGGESTION_CONTENT_PART_REMOVED':return t({'id':'AI_SUGGESTION_CONTENT_PART_REMOVED','string':'Removed\x20content.\x20Use\x20\x22Show\x20details\x22\x20to\x20learn\x20more.'});case'AI_DISCLAIMER_TEXT':return t({'id':'AI_DISCLAIMER_TEXT','string':'AI\x20can\x20make\x20mistakes.\x20Please\x20double-check\x20responses.'});case'AI_TABS_LABEL_MAXIMIZE':return t({'id':'AI_TABS_LABEL_MAXIMIZE','string':'Maximize'});case'AI_TABS_LABEL_MINIMIZE':return t({'id':'AI_TABS_LABEL_MINIMIZE','string':'Minimize'});case'AI_CHAT_HEADING':return t({'id':'AI_CHAT_HEADING','string':'Chat'});case'AI_CHAT_SOURCES_HEADER':return t({'id':'AI_CHAT_SOURCES_HEADER','string':'Sources'});case'AI_CHAT_UNTITLED_CONVERSATION':return t({'id':'AI_CHAT_UNTITLED_CONVERSATION','string':'Untitled\x20conversation'});case'AI_CHAT_LABEL_NEW_CHAT':return t({'id':'AI_CHAT_LABEL_NEW_CHAT','string':'New\x20chat'});case'AI_CHAT_STOP_GENERATING':return t({'id':'AI_CHAT_STOP_GENERATING','string':'Stop\x20generating'});case'AI_CHAT_IS_WRITING':return t({'id':'AI_CHAT_IS_WRITING','string':'AI\x20is\x20writing...'});case'AI_CHAT_PROMPT_EMPTY_ERROR':return t({'id':'AI_CHAT_PROMPT_EMPTY_ERROR','string':'This\x20field\x20cannot\x20be\x20empty.'});case'AI_CHAT_LABEL_SUBMIT':return t({'id':'AI_CHAT_LABEL_SUBMIT','string':'Submit'});case'AI_CHAT_WELCOME_MESSAGE':return t({'id':'AI_CHAT_WELCOME_MESSAGE','string':'Hi,\x20I\x27m\x20your\x20AI\x20assistant.\x20Think\x20of\x20me\x20as\x20your\x20writing\x20buddy,\x20reviewer,\x20or\x20research\x20partner.\x20I\x20can\x20suggest\x20changes\x20to\x20your\x20document,\x20help\x20generate\x20ideas,\x20offer\x20feedback,\x20discuss\x20attached\x20files,\x20and\x20much\x20more!'});case'AI_CHAT_ABORTED_MESSAGE':return t({'id':'AI_CHAT_ABORTED_MESSAGE','string':'The\x20request\x20was\x20aborted.'});case'AI_CHAT_GENERIC_ERROR':return t({'id':'AI_CHAT_GENERIC_ERROR','string':'Something\x20went\x20wrong\x20while\x20processing\x20your\x20request.\x20Please\x20try\x20again.'});case'AI_CHAT_UNABLE_TO_START_CONVERSATION':return t({'id':'AI_CHAT_UNABLE_TO_START_CONVERSATION','string':'Unable\x20to\x20start\x20conversation.\x20Please\x20make\x20sure\x20you\x20are\x20online\x20and\x20try\x20again.'});case'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE':return t({'id':'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','string':'Failed\x20to\x20upload\x20files:\x20%0.\x20Please\x20try\x20again.'},_0x4e6dac);case'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES':return t({'id':'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','string':'Unable\x20to\x20load\x20resources\x20from\x20%0.\x20Please\x20try\x20again.'},_0x4e6dac);case'AI_CHAT_RESOURCE_LOAD_FAILED':return t({'id':'AI_CHAT_RESOURCE_LOAD_FAILED','string':'Failed\x20to\x20load\x20resource.\x20Please\x20try\x20again.'});case'AI_CHAT_CONTEXT_CURRENT_DOCUMENT':return t({'id':'AI_CHAT_CONTEXT_CURRENT_DOCUMENT','string':'Current\x20document'});case'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT':return t({'id':'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','string':'Remove\x20from\x20context'});case'AI_CHAT_CONTEXT_ADD_CONTEXT':return t({'id':'AI_CHAT_CONTEXT_ADD_CONTEXT','string':'Add\x20context'});case'AI_CHAT_CONTEXT_URL_LABEL':return t({'id':'AI_CHAT_CONTEXT_URL_LABEL','string':'URL'});case'AI_CHAT_CONTEXT_FILE_LABEL':return t({'id':'AI_CHAT_CONTEXT_FILE_LABEL','string':'File'});case'AI_CHAT_CONTEXT_CURRENT_CONTEXT_LABEL':return t({'id':'AI_CHAT_CONTEXT_CURRENT_CONTEXT_LABEL','string':'Current\x20context'});case'AI_CHAT_SEARCH_WEB':return t({'id':'AI_CHAT_SEARCH_WEB','string':'Web\x20search'});case'AI_CHAT_ENABLE_WEB_SEARCH':return t({'id':'AI_CHAT_ENABLE_WEB_SEARCH','string':'Enable\x20web\x20search'});case'AI_CHAT_DISABLE_WEB_SEARCH':return t({'id':'AI_CHAT_DISABLE_WEB_SEARCH','string':'Disable\x20web\x20search'});case'AI_CHAT_REASONING':return t({'id':'AI_CHAT_REASONING','string':'Reasoning'});case'AI_CHAT_ENABLE_REASONING':return t({'id':'AI_CHAT_ENABLE_REASONING','string':'Enable\x20reasoning'});case'AI_CHAT_DISABLE_REASONING':return t({'id':'AI_CHAT_DISABLE_REASONING','string':'Disable\x20reasoning'});case'AI_CHAT_COMMANDS':return t({'id':'AI_CHAT_COMMANDS','string':'Commands'});case'AI_CHAT_SEARCH_RESOURCES':return t({'id':'AI_CHAT_SEARCH_RESOURCES','string':'Search\x20resources'});case'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT':return t({'id':'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','string':'Back\x20to\x20context\x20options'});case'AI_CHAT_CONTEXT_URL_ADD_URL':return t({'id':'AI_CHAT_CONTEXT_URL_ADD_URL','string':'Add\x20URL'});case'AI_CHAT_CONTEXT_URL_PLACEHOLDER':return t({'id':'AI_CHAT_CONTEXT_URL_PLACEHOLDER','string':'Add\x20URL...'});case'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL':return t({'id':'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','string':'Failed\x20to\x20upload\x20URL:\x20%0.\x20Please\x20try\x20again.'},_0x4e6dac);case'AI_CHAT_CONTEXT_INVALID_DATA':return t({'id':'AI_CHAT_CONTEXT_INVALID_DATA','string':'Invalid\x20context\x20data\x20type\x20for\x20the\x20selected\x20resource.'});case'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE':return t({'id':'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','string':'Unsupported\x20resource\x20type.\x20Only\x20files\x20and\x20URLs\x20are\x20supported.'});case'AI_CHAT_CONTEXT_URL_EMPTY_ERROR':return t({'id':'AI_CHAT_CONTEXT_URL_EMPTY_ERROR','string':'URL\x20cannot\x20be\x20empty.'});case'AI_CHAT_CONTEXT_URL_INVALID_ERROR':return t({'id':'AI_CHAT_CONTEXT_URL_INVALID_ERROR','string':'Please\x20enter\x20a\x20valid\x20URL.'});case'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','string':'AI\x20is\x20preparing\x20a\x20response...'});case'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','string':'AI\x20is\x20searching\x20the\x20web\x20to\x20provide\x20the\x20most\x20accurate\x20answer...'});case'AI_CHAT_FEED_LOADING_MESSAGE_REASONING':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_REASONING','string':'AI\x20is\x20using\x20reasoning\x20to\x20provide\x20the\x20most\x20accurate\x20answer...'});case'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','string':'AI\x20is\x20using\x20reasoning\x20and\x20searching\x20the\x20web\x20to\x20provide\x20the\x20most\x20accurate\x20answer...'});case'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH':return t({'id':'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','string':'Scanned\x20the\x20internet\x20for\x20insights'});case'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING':return t({'id':'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','string':'AI\x20used\x20reasoning\x20to\x20improve\x20the\x20response'});case'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING':return t({'id':'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','string':'AI\x20used\x20search\x20and\x20reasoning\x20to\x20improve\x20the\x20response'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','string':'Ask\x20AI\x20anything...'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','string':'Ask\x20AI\x20anything\x20(web\x20search\x20enabled)...'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','string':'Ask\x20AI\x20anything\x20(reasoning\x20enabled)...'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','string':'Ask\x20AI\x20anything\x20(web\x20search\x20and\x20reasoning\x20enabled)...'});case'AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT':return t({'id':'AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','string':'Preview','plural':'Preview'},_0x4e6dac);case'AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP':return t({'id':'AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','string':'Show\x20change\x20in\x20the\x20document','plural':'Show\x20changes\x20in\x20the\x20document'},_0x4e6dac);case'AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION':return t({'id':'AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','string':'Suggest','plural':'Suggest'},_0x4e6dac);case'AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP':return t({'id':'AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','string':'Insert\x20change\x20as\x20suggestion','plural':'Insert\x20changes\x20as\x20suggestions'},_0x4e6dac);case'AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL':return t({'id':'AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','string':'Apply','plural':'Apply\x20all'},_0x4e6dac);case'AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP':return t({'id':'AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','string':'Apply\x20changes\x20immediately','plural':'Apply\x20all\x20changes\x20immediately'},_0x4e6dac);case'AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP':return t({'id':'AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','string':'More\x20options'},_0x4e6dac);case'AI_CHAT_MODEL_SELECTOR_GROUP':return t({'id':'AI_CHAT_MODEL_SELECTOR_GROUP','string':'Models'});case'AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP':return t({'id':'AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','string':'Select\x20a\x20model'});case'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP':return t({'id':'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','string':'Start\x20a\x20new\x20conversation\x20to\x20change\x20the\x20model'});case'AI_CHAT_CAPABILITIES_YES':return t({'id':'AI_CHAT_CAPABILITIES_YES','string':'Yes'});case'AI_CHAT_CAPABILITIES_NO':return t({'id':'AI_CHAT_CAPABILITIES_NO','string':'No'});case'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT':return t({'id':'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','string':'The\x20selected\x20model\x20is\x20no\x20longer\x20available,\x20so\x20you\x20cannot\x20continue\x20this\x20conversation.\x20Please\x20'});case'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON':return t({'id':'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','string':'start\x20a\x20new\x20one.'});case'AI_CHAT_CONTEXT_SOURCES_LABEL':return t({'id':'AI_CHAT_CONTEXT_SOURCES_LABEL','string':'Sources'});case'AI_CHAT_HISTORY_HEADING':return t({'id':'AI_CHAT_HISTORY_HEADING','string':'Chat\x20History'});case'AI_CHAT_HISTORY_SEARCH_LABEL':return t({'id':'AI_CHAT_HISTORY_SEARCH_LABEL','string':'Search\x20history'});case'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY':return t({'id':'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','string':'No\x20chats\x20were\x20found\x20matching\x20\x22%0\x22.'},_0x4e6dac);case'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY':return t({'id':'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','string':'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.'});case'AI_CHAT_HISTORY_EMPTY_MESSAGE':return t({'id':'AI_CHAT_HISTORY_EMPTY_MESSAGE','string':'Your\x20chat\x20history\x20for\x20current\x20document\x20will\x20appear\x20here.'});case'AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON':return t({'id':'AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON','string':'Go\x20to\x20chat'});case'AI_CHAT_HISTORY_PIN_BUTTON':return t({'id':'AI_CHAT_HISTORY_PIN_BUTTON','string':'Pin'});case'AI_CHAT_HISTORY_SHOW_MORE_ITEMS':return t({'id':'AI_CHAT_HISTORY_SHOW_MORE_ITEMS','string':'Show\x20more\x20items'});case'AI_CHAT_HISTORY_EDIT_NAME':return t({'id':'AI_CHAT_HISTORY_EDIT_NAME','string':'Edit\x20name'});case'AI_CHAT_HISTORY_REMOVE':return t({'id':'AI_CHAT_HISTORY_REMOVE','string':'Remove'});case'AI_CHAT_HISTORY_REMOVE_CONFIRM':return t({'id':'AI_CHAT_HISTORY_REMOVE_CONFIRM','string':'Do\x20you\x20want\x20to\x20remove\x20this\x20chat?'});case'AI_CHAT_HISTORY_ACCEPT':return t({'id':'AI_CHAT_HISTORY_ACCEPT','string':'Accept'});case'AI_CHAT_HISTORY_CANCEL':return t({'id':'AI_CHAT_HISTORY_CANCEL','string':'Cancel'});case'AI_CHAT_HISTORY_LOADING_REMOVING':return t({'id':'AI_CHAT_HISTORY_LOADING_REMOVING','string':'Removing\x20the\x20chat...'});case'AI_CHAT_HISTORY_LOADING_RENAMING':return t({'id':'AI_CHAT_HISTORY_LOADING_RENAMING','string':'Renaming\x20the\x20chat...'});case'AI_CHAT_HISTORY_LOADING_PINNING':return t({'id':'AI_CHAT_HISTORY_LOADING_PINNING','string':'Pinning\x20the\x20chat...'});case'AI_CHAT_HISTORY_LOADING_UNPINNING':return t({'id':'AI_CHAT_HISTORY_LOADING_UNPINNING','string':'Unpinning\x20the\x20chat...'});case'AI_CHAT_HISTORY_CATEGORY_PINNED':return t({'id':'AI_CHAT_HISTORY_CATEGORY_PINNED','string':'Pinned'});case'AI_CHAT_HISTORY_CATEGORY_TODAY':return t({'id':'AI_CHAT_HISTORY_CATEGORY_TODAY','string':'Today'});case'AI_CHAT_HISTORY_CATEGORY_YESTERDAY':return t({'id':'AI_CHAT_HISTORY_CATEGORY_YESTERDAY','string':'Yesterday'});case'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS':return t({'id':'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','string':'Last\x2014\x20days'});case'AI_CHAT_HISTORY_CATEGORY_LATER':return t({'id':'AI_CHAT_HISTORY_CATEGORY_LATER','string':'Later'});case'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE':return t({'id':'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','string':'Failed\x20to\x20change\x20the\x20\x22%0\x22\x20chat\x20name.\x20Please\x20try\x20again\x20later.'},_0x4e6dac);case'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED':return t({'id':'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','string':'Failed\x20to\x20%0\x20the\x20\x22%1\x22\x20chat.\x20Please\x20try\x20again\x20later.'},_0x4e6dac);case'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM':return t({'id':'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','string':'Failed\x20to\x20delete\x20the\x20\x22%0\x22\x20chat.\x20Please\x20try\x20again\x20later.'},_0x4e6dac);case'AI_CHAT_HISTORY_ERROR_LOAD_ITEMS':return t({'id':'AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','string':'Failed\x20to\x20load\x20the\x20chat\x20history.\x20Please\x20try\x20again\x20later.'});case'AI_CHAT_HISTORY_ERROR_GENERIC':return t({'id':'AI_CHAT_HISTORY_ERROR_GENERIC','string':'Something\x20went\x20wrong.\x20Please\x20try\x20again\x20later.'});case'AI_CHAT_HISTORY_PIN_ACTION':return t({'id':'AI_CHAT_HISTORY_PIN_ACTION','string':'pin'});case'AI_CHAT_HISTORY_UNPIN_ACTION':return t({'id':'AI_CHAT_HISTORY_UNPIN_ACTION','string':'unpin'});case'AI_BALLOON_HEADER_TITLE':return t({'id':'AI_BALLOON_HEADER_TITLE','string':'Change\x20%0'},_0x4e6dac);case'AI_BALLOON_APPLY_BUTTON':return t({'id':'AI_BALLOON_APPLY_BUTTON','string':'Apply'});case'AI_BALLOON_SUGGEST_BUTTON':return t({'id':'AI_BALLOON_SUGGEST_BUTTON','string':'Suggest'});case'AI_BALLOON_NEXT_TOOLTIP':return t({'id':'AI_BALLOON_NEXT_TOOLTIP','string':'Next'});case'AI_BALLOON_PREVIOUS_TOOLTIP':return t({'id':'AI_BALLOON_PREVIOUS_TOOLTIP','string':'Previous'});case'AI_SUGGESTION_NO_PARTS_WARNING':return t({'id':'AI_SUGGESTION_NO_PARTS_WARNING','string':'This\x20change\x20is\x20not\x20supported\x20by\x20the\x20editor\x20and\x20can\x27t\x20be\x20previewed\x20or\x20applied.'});case'AI_SUGGESTION_EMPTY_PART_WARNING':return t({'id':'AI_SUGGESTION_EMPTY_PART_WARNING','string':'Some\x20of\x20the\x20changes\x20are\x20not\x20supported\x20by\x20the\x20editor\x20and\x20can\x27t\x20be\x20previewed\x20or\x20applied.'});case'AI_ACTIONS_TRY_AGAIN':return t({'id':'AI_ACTIONS_TRY_AGAIN','string':'Retry'});case'AI_ACTIONS_PREVIOUS_INTERACTION':return t({'id':'AI_ACTIONS_PREVIOUS_INTERACTION','string':'Previous'});case'AI_ACTIONS_NEXT_INTERACTION':return t({'id':'AI_ACTIONS_NEXT_INTERACTION','string':'Next'});case'AI_MODEL_DESCRIPTION_AGENT-1':return t({'id':'AI_MODEL_DESCRIPTION_AGENT-1','string':'Automatically\x20selects\x20best\x20model\x20for\x20speed,\x20quality,\x20and\x20cost.'});case'AI_MODEL_DESCRIPTION_GPT-5':return t({'id':'AI_MODEL_DESCRIPTION_GPT-5','string':'OpenAI\x27s\x20flagship\x20model\x20for\x20advanced\x20reasoning,\x20creativity,\x20and\x20complex\x20tasks'});case'AI_MODEL_DESCRIPTION_GPT-5-MINI':return t({'id':'AI_MODEL_DESCRIPTION_GPT-5-MINI','string':'A\x20lightweight\x20version\x20of\x20GPT-5\x20-\x20faster,\x20more\x20cost-efficient'});case'AI_MODEL_DESCRIPTION_GPT-4.1':return t({'id':'AI_MODEL_DESCRIPTION_GPT-4.1','string':'OpenAI\x27s\x20model\x20for\x20reliable\x20reasoning,\x20speed,\x20and\x20versatility'});case'AI_MODEL_DESCRIPTION_GPT-4.1-MINI':return t({'id':'AI_MODEL_DESCRIPTION_GPT-4.1-MINI','string':'A\x20lighter\x20variant\x20of\x20GPT-4.1\x20that\x20balances\x20speed\x20and\x20cost\x20while\x20maintaining\x20solid\x20accuracy'});case'AI_MODEL_DESCRIPTION_CLAUDE-3-5-HAIKU':return t({'id':'AI_MODEL_DESCRIPTION_CLAUDE-3-5-HAIKU','string':'Anthropic\x27s\x20fast,\x20cost-efficient\x20model\x20for\x20simpler\x20tasks'});case'AI_MODEL_DESCRIPTION_CLAUDE-4-SONNET':return t({'id':'AI_MODEL_DESCRIPTION_CLAUDE-4-SONNET','string':'Advanced\x20model\x20with\x20strong\x20reasoning\x20and\x20reliability\x20for\x20complex\x20tasks'});case'AI_MODEL_DESCRIPTION_GEMINI-2-5-PRO':return t({'id':'AI_MODEL_DESCRIPTION_GEMINI-2-5-PRO','string':'Google\x27s\x20advanced\x20model\x20for\x20versatile\x20problem-solving\x20and\x20research'});case'AI_MODEL_DESCRIPTION_GEMINI-2-5-FLASH':return t({'id':'AI_MODEL_DESCRIPTION_GEMINI-2-5-FLASH','string':'Lightweight\x20Gemini\x20model\x20for\x20fast,\x20cost-efficient\x20interactions'});case'AI_QUICK_ACTIONS_HEADING':return t({'id':'AI_QUICK_ACTIONS_HEADING','string':'AI\x20Quick\x20Actions'});case'AI_QUICK_ACTIONS_ASK_AI':return t({'id':'AI_QUICK_ACTIONS_ASK_AI','string':'Ask\x20AI'});case'AI_QUICK_ACTIONS_CHAT_COMMANDS':return t({'id':'AI_QUICK_ACTIONS_CHAT_COMMANDS','string':'Chat\x20commands'});case'AI_QUICK_ACTIONS_IMPROVE_WRITING':return t({'id':'AI_QUICK_ACTIONS_IMPROVE_WRITING','string':'Improve\x20writing'});case'AI_QUICK_ACTIONS_CONTINUE_WRITING':return t({'id':'AI_QUICK_ACTIONS_CONTINUE_WRITING','string':'Continue\x20writing'});case'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING':return t({'id':'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','string':'Fix\x20grammar\x20&\x20spelling'});case'AI_QUICK_ACTIONS_ADJUST_LENGTH':return t({'id':'AI_QUICK_ACTIONS_ADJUST_LENGTH','string':'Adjust\x20length'});case'AI_QUICK_ACTIONS_CHANGE_TONE':return t({'id':'AI_QUICK_ACTIONS_CHANGE_TONE','string':'Change\x20tone'});case'AI_QUICK_ACTIONS_TRANSLATE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE','string':'Translate'});case'AI_QUICK_ACTIONS_EXPLAIN':return t({'id':'AI_QUICK_ACTIONS_EXPLAIN','string':'Explain'});case'AI_QUICK_ACTIONS_SUMMARIZE':return t({'id':'AI_QUICK_ACTIONS_SUMMARIZE','string':'Summarize'});case'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS':return t({'id':'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','string':'Highlight\x20key\x20points'});case'AI_QUICK_ACTIONS_MAKE_SHORTER':return t({'id':'AI_QUICK_ACTIONS_MAKE_SHORTER','string':'Make\x20shorter'});case'AI_QUICK_ACTIONS_MAKE_LONGER':return t({'id':'AI_QUICK_ACTIONS_MAKE_LONGER','string':'Make\x20longer'});case'AI_QUICK_ACTIONS_MORE_CASUAL':return t({'id':'AI_QUICK_ACTIONS_MORE_CASUAL','string':'More\x20casual'});case'AI_QUICK_ACTIONS_MORE_DIRECT':return t({'id':'AI_QUICK_ACTIONS_MORE_DIRECT','string':'More\x20direct'});case'AI_QUICK_ACTIONS_MORE_FRIENDLY':return t({'id':'AI_QUICK_ACTIONS_MORE_FRIENDLY','string':'More\x20friendly'});case'AI_QUICK_ACTIONS_MORE_CONFIDENT':return t({'id':'AI_QUICK_ACTIONS_MORE_CONFIDENT','string':'More\x20confident'});case'AI_QUICK_ACTIONS_MORE_PROFESSIONAL':return t({'id':'AI_QUICK_ACTIONS_MORE_PROFESSIONAL','string':'More\x20professional'});case'AI_QUICK_ACTIONS_ADJUST_BASED_ON_DOCUMENT':return t({'id':'AI_QUICK_ACTIONS_ADJUST_BASED_ON_DOCUMENT','string':'Adjust\x20based\x20on\x20the\x20rest\x20of\x20the\x20document'});case'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','string':'English'});case'AI_QUICK_ACTIONS_TRANSLATE_CHINESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_CHINESE','string':'Chinese\x20(Simplified)'});case'AI_QUICK_ACTIONS_TRANSLATE_FRENCH':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_FRENCH','string':'French'});case'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','string':'Japanese'});case'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','string':'Portuguese'});case'AI_QUICK_ACTIONS_TRANSLATE_KOREAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_KOREAN','string':'Korean'});case'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','string':'Italian'});case'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','string':'Russian'});case'AI_QUICK_ACTIONS_TRANSLATE_SPANISH':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_SPANISH','string':'Spanish'});case'AI_QUICK_ACTIONS_TRANSLATE_GERMAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_GERMAN','string':'German'});case'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND':return t({'id':'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','string':'%0\x20plugin\x20is\x20required\x20but\x20not\x20found.'},_0x4e6dac);case'AI_QUICK_ACTIONS_OTHER':return t({'id':'AI_QUICK_ACTIONS_OTHER','string':'Other'});case'AI_ACTIONS_GENERIC_ERROR':return t({'id':'AI_ACTIONS_GENERIC_ERROR','string':'Sorry,\x20we\x20couldn\x27t\x20generate\x20the\x20response.\x20Please\x20try\x20again\x20in\x20a\x20moment.'});case'AI_REVIEW_MODE_STOP_GENERATING':return t({'id':'AI_REVIEW_MODE_STOP_GENERATING','string':'Stop\x20generating'});case'AI_REVIEW_MODE_HIDE_CHANGES':return t({'id':'AI_REVIEW_MODE_HIDE_CHANGES','string':'Hide\x20changes'});case'AI_REVIEW_MODE_SHOW_CHANGES':return t({'id':'AI_REVIEW_MODE_SHOW_CHANGES','string':'Show\x20changes'});case'AI_REVIEW_MODE_ACCEPT_ALL':return t({'id':'AI_REVIEW_MODE_ACCEPT_ALL','string':'Accept\x20all'});case'AI_REVIEW_MODE_EXIT_REVIEW':return t({'id':'AI_REVIEW_MODE_EXIT_REVIEW','string':'Exit\x20review'});case'AI_REVIEW_MODE_ACCEPT_CHANGE':return t({'id':'AI_REVIEW_MODE_ACCEPT_CHANGE','string':'Accept'});case'AI_REVIEW_MODE_DISMISS_CHANGE':return t({'id':'AI_REVIEW_MODE_DISMISS_CHANGE','string':'Dismiss'});case'AI_REVIEW_MODE_LEARN_MORE':return t({'id':'AI_REVIEW_MODE_LEARN_MORE','string':'Learn\x20more'});case'AI_REVIEW_MODE_COMPLETED_TEXT':return t({'id':'AI_REVIEW_MODE_COMPLETED_TEXT','string':'There\x27s\x20nothing\x20left\x20to\x20review.'});case'AI_REVIEW_MODE_EMPTY_RESULTS_TEXT':return t({'id':'AI_REVIEW_MODE_EMPTY_RESULTS_TEXT','string':'There\x20are\x20no\x20changes\x20to\x20suggest.'});case'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL':return t({'id':'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL','string':'Finish\x20Review'});case'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE':return t({'id':'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE','string':'Review\x20complete.\x20Finish\x20when\x20ready.'});case'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE':return t({'id':'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE','string':'Sorry,\x20we\x20couldn\x27t\x20generate\x20the\x20whole\x20review\x20properly.\x20Please\x20try\x20again\x20in\x20a\x20moment.'});case'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE':return t({'id':'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE','string':'Not\x20everything\x20went\x20through,\x20but\x20the\x20completed\x20items\x20are\x20listed\x20below.'});case'AI_REVIEW_MODE':return t({'id':'AI_REVIEW_MODE','string':'Review'});case'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR':return t({'id':'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR','string':'Prompt\x20must\x20not\x20be\x20empty'});case'AI_REVIEW_CHECK_CUSTOM_TITLE':return t({'id':'AI_REVIEW_CHECK_CUSTOM_TITLE','string':'Custom\x20command'});case'AI_REVIEW_CHECK_CUSTOM_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_CUSTOM_DESCRIPTION','string':'Enter\x20a\x20custom\x20command\x20for\x20a\x20specific\x20review.'});case'AI_REVIEW_CHECK_CORRECTNESS_TITLE':return t({'id':'AI_REVIEW_CHECK_CORRECTNESS_TITLE','string':'Proofread'});case'AI_REVIEW_CHECK_CORRECTNESS_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_CORRECTNESS_DESCRIPTION','string':'Check\x20the\x20text\x20for\x20errors\x20in\x20grammar,\x20spelling,\x20and\x20punctuation.'});case'AI_REVIEW_CHECK_CLARITY_TITLE':return t({'id':'AI_REVIEW_CHECK_CLARITY_TITLE','string':'Improve\x20clarity'});case'AI_REVIEW_CHECK_CLARITY_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_CLARITY_DESCRIPTION','string':'Improve\x20the\x20logical\x20structure\x20and\x20precision\x20for\x20clearer\x20message.'});case'AI_REVIEW_CHECK_READABILITY_TITLE':return t({'id':'AI_REVIEW_CHECK_READABILITY_TITLE','string':'Improve\x20readability'});case'AI_REVIEW_CHECK_READABILITY_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_READABILITY_DESCRIPTION','string':'Adjust\x20sentence\x20structure\x20and\x20word\x20choice\x20for\x20an\x20easier\x20read.'});case'AI_REVIEW_CHECK_MAKE_TITLE':return t({'id':'AI_REVIEW_CHECK_MAKE_TITLE','string':'Adjust\x20length'});case'AI_REVIEW_CHECK_MAKE_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_MAKE_DESCRIPTION','string':'Shorten\x20or\x20lengthen\x20the\x20text\x20as\x20needed.'});case'AI_REVIEW_CHECK_MAKE_OPTIONS_LABEL':return t({'id':'AI_REVIEW_CHECK_MAKE_OPTIONS_LABEL','string':'Adjust\x20length'});case'AI_REVIEW_CHECK_MAKE_OPTIONS_DATA_LONGER':return t({'id':'AI_REVIEW_CHECK_MAKE_OPTIONS_DATA_LONGER','string':'Longer'});case'AI_REVIEW_CHECK_MAKE_OPTIONS_DATA_SHORTER':return t({'id':'AI_REVIEW_CHECK_MAKE_OPTIONS_DATA_SHORTER','string':'Shorter'});case'AI_REVIEW_CHECK_MAKE_TONE_TITLE':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_TITLE','string':'Adjust\x20tone\x20and\x20style'});case'AI_REVIEW_CHECK_MAKE_TONE_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_DESCRIPTION','string':'Modify\x20the\x20text\x20to\x20a\x20desired\x20tone\x20and\x20style.'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_LABEL':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_LABEL','string':'Adjust\x20tone\x20and\x20style'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_CASUAL':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_CASUAL','string':'Casual'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_DIRECT':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_DIRECT','string':'Direct'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_FRIENDLY':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_FRIENDLY','string':'Friendly'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_CONFIDENT':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_CONFIDENT','string':'Confident'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_PROFESSIONAL':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_PROFESSIONAL','string':'Professional'});case'AI_REVIEW_CHECK_TRANSLATE_TITLE':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_TITLE','string':'Translate'});case'AI_REVIEW_CHECK_TRANSLATE_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_DESCRIPTION','string':'Translate\x20the\x20text\x20into\x20another\x20language.'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_LABEL':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_LABEL','string':'Select\x20language'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_ENGLISH':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_ENGLISH','string':'English'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_SPANISH':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_SPANISH','string':'Spanish'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_FRENCH':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_FRENCH','string':'French'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_GERMAN':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_GERMAN','string':'German'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_CHINESE':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_CHINESE','string':'Chinese\x20(Simplified)'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_JAPANESE':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_JAPANESE','string':'Japanese'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_RUSSIAN':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_RUSSIAN','string':'Russian'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_PORTUGUESE':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_PORTUGUESE','string':'Portuguese'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_KOREAN':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_KOREAN','string':'Korean'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_ITALIAN':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_ITALIAN','string':'Italian'});case'AI_TOGGLE_BUTTON_LABEL':return t({'id':'AI_TOGGLE_BUTTON_LABEL','string':'AI'});default:return _0xbd7dcf;}}const MODEL_COMPATIBILITY_VERSION='1';class AIConnector extends ContextPlugin{['_apiUrl'];['_token'];['_decoder'];static get['requires'](){return['CloudServices'];}static get['pluginName'](){return'AIConnector';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x566ce6){super(_0x566ce6),this['context']['config']['define']('ai.serviceUrl','https://ai.cke-cs.com/v1'),this['_apiUrl']=this['context']['config']['get']('ai.serviceUrl'),this['_token']=null,this['_decoder']=new TextDecoder();}['init'](){const _0x5d4e73=this['context']['plugins']['get']('CloudServices');if(!_0x5d4e73['token'])throw new CKEditorError('ai-missing-token',this);this['_token']=_0x5d4e73['token'];}['startConversation'](_0x4a5162,_0x39f309){const _0xebfd7=this['_sendApiRequest']('/conversations','POST',{'id':_0x4a5162,'group':_0x39f309});return{'getConversation':async()=>(await _0xebfd7['request'])['json'](),'abortController':_0xebfd7['abortController']};}['queryAssistant']({message:_0x193841,conversationId:_0x2c40f3,parts:_0x3ad582,capabilities:_0x4a548f,model:_0x18d9d3,quickActionData:_0x4463a6}){const _0x4588e5={..._0x4463a6&&{'quickActionData':_0x4463a6}},_0x4d7d0f={'prompt':_0x193841,'content':_0x3ad582,'model':_0x18d9d3,..._0x4a548f&&{'capabilities':_0x4a548f},...Object['keys'](_0x4588e5)['length']>0x0&&{'attributes':_0x4588e5}},_0x34dc33=this['_sendApiRequest']('/conversations/'+_0x2c40f3+'/messages','POST',_0x4d7d0f);return{'getStream':async()=>{const _0x437901=(await _0x34dc33['request'])['body'];return this['_getStreamReader'](_0x437901);},'abortController':_0x34dc33['abortController']};}['executeCustomAction']({content:_0x252cf3,message:_0x4c217d,model:_0x156a80,outputFormat:_0x23add9}){const _0x50cf8f={'content':[{'type':'text','content':_0x252cf3}],'prompt':_0x4c217d,'model':_0x156a80,'outputFormat':_0x23add9},_0x1c401f=this['_sendApiRequest']('/actions/custom/calls','POST',_0x50cf8f);return{'getStream':async()=>{const _0x4d5dec=(await _0x1c401f['request'])['body'];return this['_getStreamReader'](_0x4d5dec);},'abortController':_0x1c401f['abortController']};}['executeAction']({actionName:_0x7f5eb1,content:_0x2fb7f9,args:_0x59a4cf}){const _0x4a3e5b={'content':[{'type':'text','content':_0x2fb7f9}],'args':_0x59a4cf},_0x41f997=this['_sendApiRequest']('/actions/system/'+_0x7f5eb1+'/calls','POST',_0x4a3e5b);return{'getStream':async()=>{const _0x5a279f=(await _0x41f997['request'])['body'];return this['_getStreamReader'](_0x5a279f);},'abortController':_0x41f997['abortController']};}['uploadFile'](_0x47e098,_0x2f0566,_0x7c0853){const _0x2bd7c0=new FormData();_0x2bd7c0['append']('file',_0x2f0566,_0x2f0566['name']),_0x7c0853&&_0x2bd7c0['append']('attributes',JSON['stringify'](_0x7c0853));const _0x5ee1da=this['_sendApiRequest']('/conversations/'+_0x47e098+'/files','POST',_0x2bd7c0);return{'getId':async()=>(await _0x5ee1da['request'])['json'](),'abortController':_0x5ee1da['abortController']};}['fetchDocument'](_0x137e03,_0xa5664f){const _0x121ce6=this['_sendApiRequest']('/conversations/'+_0x137e03+'/documents/'+_0xa5664f,'GET');return{'getDocument':async()=>(await _0x121ce6['request'])['json'](),'abortController':_0x121ce6['abortController']};}['uploadDocument'](_0x1b018e,_0x277781,_0x56db61){const _0x20eefb={'content':_0x277781};_0x56db61&&(_0x20eefb['attributes']=_0x56db61);const _0x38cbfb=this['_sendApiRequest']('/conversations/'+_0x1b018e+'/documents','POST',_0x20eefb);return{'getId':async()=>(await _0x38cbfb['request'])['json'](),'abortController':_0x38cbfb['abortController']};}['fetchConversations'](_0x58a5f5,_0x4920d7){const _0x105d21=new URLSearchParams();_0x105d21['append']('excludeEmpty','true'),_0x105d21['append']('limit','100'),_0x105d21['append']('group',_0x58a5f5),_0x4920d7&&_0x105d21['append']('search',_0x4920d7);const _0x513974=this['_sendApiRequest']('/conversations?'+_0x105d21['toString'](),'GET');return{'getConversations':async()=>{const _0x889a31=await _0x513974['request'];return(await _0x889a31['json']())['items'];},'abortController':_0x513974['abortController']};}['deleteConversation'](_0x1c676e){const _0x16ecee=this['_sendApiRequest']('/conversations/'+_0x1c676e,'DELETE');return{'execute':async()=>{await _0x16ecee['request'];},'abortController':_0x16ecee['abortController']};}['updateConversation'](_0x3975eb,_0x1efa0a){const _0x5e97f6=this['_sendApiRequest']('/conversations/'+_0x3975eb,'PATCH',_0x1efa0a);return{'getResult':async()=>(await _0x5e97f6['request'],_0x1efa0a),'abortController':_0x5e97f6['abortController']};}['fetchConversation'](_0x189406){const _0x4db0fc=this['_sendApiRequest']('/conversations/'+_0x189406,'GET');return{'getConversation':async()=>(await _0x4db0fc['request'])['json'](),'abortController':_0x4db0fc['abortController']};}['fetchConversationMessages'](_0x4ede35){const _0x291ef5=this['_sendApiRequest']('/conversations/'+_0x4ede35+'/messages','GET');return{'getMessages':async()=>{const _0x59b7c9=await _0x291ef5['request'];return(await _0x59b7c9['json']())['items'];},'abortController':_0x291ef5['abortController']};}['uploadUrl'](_0x47857a,_0x44d741,_0xfe8862){const _0xcd03e8=this['_sendApiRequest']('/conversations/'+_0x47857a+'/web-resources','POST',{'url':_0x44d741,'attributes':_0xfe8862});return{'getId':async()=>(await _0xcd03e8['request'])['json'](),'abortController':_0xcd03e8['abortController']};}['getModels'](){const _0x1853fa=this['_sendApiRequest']('/models/'+MODEL_COMPATIBILITY_VERSION,'GET');return{'list':async()=>{const _0x31fbbd=await(await _0x1853fa['request'])['json'](),_0x415cad=_0x31fbbd['items']['map'](_0x18c7c0=>({..._0x18c7c0,'description':getTranslation$i(this['context']['locale'],'AI_MODEL_DESCRIPTION_'+_0x18c7c0['id']['toUpperCase']())}));return{..._0x31fbbd,'items':_0x415cad};},'abortController':_0x1853fa['abortController']};}['deleteFile'](_0x38f4e6,_0x392be5){const _0x5b0fce=this['_sendApiRequest']('/conversations/'+_0x38f4e6+'/files/'+_0x392be5,'DELETE');return{'execute':async()=>{await _0x5b0fce['request'];},'abortController':_0x5b0fce['abortController']};}['deleteDocument'](_0x3919f7,_0x18f735){const _0x377d94=this['_sendApiRequest']('/conversations/'+_0x3919f7+'/documents/'+_0x18f735,'DELETE');return{'execute':async()=>{await _0x377d94['request'];},'abortController':_0x377d94['abortController']};}['deleteWebResource'](_0x61330b,_0x14ea57){const _0xad4401=this['_sendApiRequest']('/conversations/'+_0x61330b+'/web-resources/'+_0x14ea57,'DELETE');return{'execute':async()=>{await _0xad4401['request'];},'abortController':_0xad4401['abortController']};}['callSystemReview']({reviewName:_0x4f2720,content:_0x327c2c,args:_0x1f2320}){const _0x47a07f=this['_sendApiRequest']('/reviews/system/'+_0x4f2720+'/calls','POST',{'content':[{'type':'text','content':_0x327c2c}],'args':_0x1f2320});return{'getStream':async()=>{const _0x1288a9=(await _0x47a07f['request'])['body'];return this['_getStreamReader'](_0x1288a9);},'abortController':_0x47a07f['abortController']};}['callCustomReview']({content:_0x50de8f,prompt:_0x2667ad,model:_0x26d884}){const _0x1de0d4=this['_sendApiRequest']('/reviews/custom/calls','POST',{'content':[{'type':'text','content':_0x50de8f}],'prompt':_0x2667ad,'model':_0x26d884});return{'getStream':async()=>{const _0x51f13d=(await _0x1de0d4['request'])['body'];return this['_getStreamReader'](_0x51f13d);},'abortController':_0x1de0d4['abortController']};}['upsertAIChatRating'](_0x1791be,_0x4b4a6c,_0x1192cd){const _0x1be129=this['_sendApiRequest']('/conversations/'+_0x1791be+'/messages/'+_0x4b4a6c+'/ratings','PUT',{'positiveCount':_0x1192cd['positiveCount'],'totalCount':_0x1192cd['totalCount']});return{'execute':async()=>{await _0x1be129['request'];},'abortController':_0x1be129['abortController']};}['upsertAIActionRating'](_0x515ebe,_0x33733f,_0x1241df){const _0x48fd79=this['_sendApiRequest']('/actions/system/'+_0x515ebe+'/calls/'+_0x33733f+'/ratings','PUT',{'positiveCount':_0x1241df['positiveCount'],'totalCount':_0x1241df['totalCount']});return{'execute':async()=>{await _0x48fd79['request'];},'abortController':_0x48fd79['abortController']};}['upsertCustomAIActionRating'](_0x16c713,_0x36db6f){const _0x46f603=this['_sendApiRequest']('/actions/custom/calls/'+_0x16c713+'/ratings','PUT',{'positiveCount':_0x36db6f['positiveCount'],'totalCount':_0x36db6f['totalCount']});return{'execute':async()=>{await _0x46f603['request'];},'abortController':_0x46f603['abortController']};}['upsertAIReviewRating'](_0x4f1924,_0x7a6666,_0x12f61d,_0x4a18ed){const _0x36c616=this['_sendApiRequest']('/reviews/system/'+_0x4f1924+'/calls/'+_0x7a6666+'/ratings','PUT',{'positiveCount':_0x12f61d['positiveCount'],'totalCount':_0x12f61d['totalCount'],'dataId':_0x4a18ed});return{'execute':async()=>{await _0x36c616['request'];},'abortController':_0x36c616['abortController']};}['upsertCustomAIReviewRating'](_0x1e311d,_0x9b2e24,_0x5460dd){const _0x111396=this['_sendApiRequest']('/reviews/custom/calls/'+_0x1e311d+'/ratings','PUT',{'positiveCount':_0x9b2e24['positiveCount'],'totalCount':_0x9b2e24['totalCount'],'dataId':_0x5460dd});return{'execute':async()=>{await _0x111396['request'];},'abortController':_0x111396['abortController']};}['_sendApiRequest'](_0x5747dd,_0xf1d213,_0x142bff){const _0x41ab1e=new AbortController(),_0x341318=_0x142bff instanceof FormData,_0x4c1cfb={'Authorization':'Bearer\x20'+this['_token']?.['value']};_0x142bff&&!_0x341318&&(_0x4c1cfb['Content-Type']='application/json');const _0x3b3955={'method':_0xf1d213,'headers':_0x4c1cfb,'signal':_0x41ab1e['signal']};_0x142bff&&(_0x3b3955['body']=_0x341318?_0x142bff:JSON['stringify'](_0x142bff));const _0x479b62=fetch(''+this['_apiUrl']+_0x5747dd,_0x3b3955)['catch'](_0x3cb65e=>{this['_handleError'](_0x3cb65e);})['then'](_0x14321e=>{if(!_0x14321e['ok'])throw new CKEditorError('ai-request-failed',this,{'url':this['_apiUrl'],'path':_0x5747dd,'method':_0xf1d213,'body':_0x142bff,'status':(_0x14321e||{})['status'],'statusText':(_0x14321e||{})['statusText']});return _0x14321e;});return{'request':_0x479b62,'abortController':_0x41ab1e};}async*['_getStreamReader'](_0x36c3e3){const _0xac920c=[],_0xeee619=_0x36c3e3['getReader'](),_0x1ba6a1=createParser({'onError':_0x35bf62=>{this['_handleError'](_0x35bf62);},'onEvent':_0x48b6fd=>{_0x48b6fd['data']=JSON['parse'](_0x48b6fd['data']),_0xac920c['push'](_0x48b6fd);}});try{let _0x1aaff6=!0x1;for(;!_0x1aaff6;){const {done:_0x113812,value:_0x17d554}=await _0xeee619['read']();_0x113812&&(_0x1aaff6=!0x0),_0x1ba6a1['feed'](this['_decoder']['decode'](_0x17d554,{'stream':!0x0})),yield*_0xac920c,_0xac920c['length']=0x0;}}catch(_0x502dc2){this['_handleError'](_0x502dc2);}finally{_0xeee619['releaseLock'](),_0x1ba6a1['reset']();}}['_handleError'](_0x335e96){if(_0x335e96 instanceof CKEditorError)throw _0x335e96;if(_0x335e96 instanceof Error&&'AbortError'===_0x335e96['name'])throw new CKEditorError('ai-request-aborted',this,{'originalError':_0x335e96});throw new CKEditorError('ai-request-failed',this,{'originalError':_0x335e96});}}function createResizeButton(_0x487f65,_0x4a6289){const _0x44fa5b=new ButtonView(_0x487f65),_0x1ec3b1=getTranslation$i(_0x487f65,'AI_TABS_LABEL_MINIMIZE'),_0x51dcc5=getTranslation$i(_0x487f65,'AI_TABS_LABEL_MAXIMIZE');return _0x44fa5b['set']({'withText':!0x1,'icon':IconMaximize,'tooltip':!0x0,'class':'ck-ai-tabs__resize\x20ck-ai-button-tertiary-text'}),_0x44fa5b['bind']('label')['to'](_0x4a6289,'isMaximized',_0xbe21b2=>_0xbe21b2?_0x1ec3b1:_0x51dcc5),_0x44fa5b['bind']('icon')['to'](_0x4a6289,'isMaximized',_0x2cf9d0=>_0x2cf9d0?IconMinimize:IconMaximize),_0x44fa5b['bind']('isOn')['to'](_0x4a6289,'isMaximized'),_0x44fa5b['on']('execute',()=>{_0x4a6289['fire']('resizeTabs');}),_0x44fa5b;}const htmlDecodeTree=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\x00\x00\x00\x00\x00\x00ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\x5cbfms\x7f\u0084\u008b\u0090\u0095\u0098¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp\u009d¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\x00\x00\x00͔͂\x00Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\x00\x00ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\x00\x00ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\x00ц\x00ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\x00ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\x00\x00ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\x00\x00֣mallSquare;旼erySmallSquare;斪Ͱֺ\x00ֿ\x00\x00ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\x00ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\x00ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\x00ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\x00ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\x00ࣃbleBracket;柦nǔࣈ\x00࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻\x22䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\x00စbleBracket;柧nǔည\x00နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\x00\x00ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\x00ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀\u205f\u200aSpace;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\x00ጬጱ\x00\x00\x00\x00\x00ጸጽ፷ᎅ\x00᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\x00጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\x00ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\x00ᖰᖶᖿ\x00\x00\x00\x00ᗆᗛᗫᙟ᙭\x00ᚕ᚛ᚲᚹ\x00ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\x00\x00ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\x00\x00ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\x00ᠳƲᠯ\x00ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\x00᧨ᨑᨕᨲ\x00ᨷᩐ\x00\x00᪴\x00\x00᫁\x00\x00ᬡᬮ᭍᭒\x00᯽\x00ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\x00᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\x00\x00᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\x00ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\x00\x00᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\x00ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\x00\x00᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\x00\x00ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\x00\x00ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\x00\x00ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\x00\x00ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\x00ᾞ\x00ᾡᾧ\x00\x00ῆῌ\x00ΐ\x00ῦῪ\u2000\x00\u2008⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\x00\x00᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\x00ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\x00⁐β•‥‧‪‬\x00‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\x00‶;慔;慖ʴ‾⁁\x00\x00⁃耻¾䂾;慗;慜5;慘ƶ⁌\x00⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\x00↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\x00⊪\x00⊸⋅⋎\x00⋕⋳\x00\x00⋸⌢⍧⍢⍿\x00⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\x00⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\x00⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\x00⒪\x00⒱\x00\x00\x00\x00\x00⒵Ⓔ\x00ⓆⓈⓍ\x00⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\x00⧣p肻\u00a0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\x00⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\x00\x00⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00ⴭ\x00ⴸⵈⵠⵥ⵲ⶄᬇ\x00\x00ⶍⶫ\x00ⷈⷎ\x00ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\x00\x00⵼\x00ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\x00⹽\x00⺀⺝\x00⺢⺹\x00\x00⻋ຜ\x00⼓\x00\x00⼫⾼\x00⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\x00\x00⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\x00㍺㎤\x00\x00㏬㏰\x00㐨㑈㑚㒭㒱㓊㓱\x00㘖\x00\x00㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\x00㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\x00\x00㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\x00㙾㛂\x00\x00\x00\x00\x00㛛㜃\x00㜉㝬\x00\x00\x00㞇ɲ㙖\x00\x00㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\x00㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\x00㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\x00\x00㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\x00\x00㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\x00㪋\x00㪐㪛\x00\x00㪝㪨㪫㪯\x00\x00㫃㫎\x00㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'['split']('')['map'](_0x50f31c=>_0x50f31c['charCodeAt'](0x0))),xmlDecodeTree=new Uint16Array('Ȁaglq\x09\x15\x18\x1bɭ\x0f\x00\x00\x12p;䀦os;䀧t;䀾t;䀼uot;䀢'['split']('')['map'](_0x27ddfd=>_0x27ddfd['charCodeAt'](0x0)));var _a$1;const decodeMap=new Map([[0x0,0xfffd],[0x80,0x20ac],[0x82,0x201a],[0x83,0x192],[0x84,0x201e],[0x85,0x2026],[0x86,0x2020],[0x87,0x2021],[0x88,0x2c6],[0x89,0x2030],[0x8a,0x160],[0x8b,0x2039],[0x8c,0x152],[0x8e,0x17d],[0x91,0x2018],[0x92,0x2019],[0x93,0x201c],[0x94,0x201d],[0x95,0x2022],[0x96,0x2013],[0x97,0x2014],[0x98,0x2dc],[0x99,0x2122],[0x9a,0x161],[0x9b,0x203a],[0x9c,0x153],[0x9e,0x17e],[0x9f,0x178]]),fromCodePoint$1=null!==(_a$1=String['fromCodePoint'])&&void 0x0!==_a$1?_a$1:function(_0x1b4799){let _0xf6221f='';return _0x1b4799>0xffff&&(_0x1b4799-=0x10000,_0xf6221f+=String['fromCharCode'](_0x1b4799>>>0xa&0x3ff|0xd800),_0x1b4799=0xdc00|0x3ff&_0x1b4799),_0xf6221f+=String['fromCharCode'](_0x1b4799),_0xf6221f;};function replaceCodePoint(_0x30ff64){var _0x1ade4b;return _0x30ff64>=0xd800&&_0x30ff64<=0xdfff||_0x30ff64>0x10ffff?0xfffd:null!==(_0x1ade4b=decodeMap['get'](_0x30ff64))&&void 0x0!==_0x1ade4b?_0x1ade4b:_0x30ff64;}var CharCodes$1;!function(_0x3e756c){_0x3e756c[_0x3e756c['NUM']=0x23]='NUM',_0x3e756c[_0x3e756c['SEMI']=0x3b]='SEMI',_0x3e756c[_0x3e756c['EQUALS']=0x3d]='EQUALS',_0x3e756c[_0x3e756c['ZERO']=0x30]='ZERO',_0x3e756c[_0x3e756c['NINE']=0x39]='NINE',_0x3e756c[_0x3e756c['LOWER_A']=0x61]='LOWER_A',_0x3e756c[_0x3e756c['LOWER_F']=0x66]='LOWER_F',_0x3e756c[_0x3e756c['LOWER_X']=0x78]='LOWER_X',_0x3e756c[_0x3e756c['LOWER_Z']=0x7a]='LOWER_Z',_0x3e756c[_0x3e756c['UPPER_A']=0x41]='UPPER_A',_0x3e756c[_0x3e756c['UPPER_F']=0x46]='UPPER_F',_0x3e756c[_0x3e756c['UPPER_Z']=0x5a]='UPPER_Z';}(CharCodes$1||(CharCodes$1={}));const TO_LOWER_BIT=0x20;var BinTrieFlags,EntityDecoderState,DecodingMode,CharCodes,State,QuoteType;function isNumber$1(_0x11ccde){return _0x11ccde>=CharCodes$1['ZERO']&&_0x11ccde<=CharCodes$1['NINE'];}function isHexadecimalCharacter(_0x32c252){return _0x32c252>=CharCodes$1['UPPER_A']&&_0x32c252<=CharCodes$1['UPPER_F']||_0x32c252>=CharCodes$1['LOWER_A']&&_0x32c252<=CharCodes$1['LOWER_F'];}function isAsciiAlphaNumeric(_0x299529){return _0x299529>=CharCodes$1['UPPER_A']&&_0x299529<=CharCodes$1['UPPER_Z']||_0x299529>=CharCodes$1['LOWER_A']&&_0x299529<=CharCodes$1['LOWER_Z']||isNumber$1(_0x299529);}function isEntityInAttributeInvalidEnd(_0x3f6292){return _0x3f6292===CharCodes$1['EQUALS']||isAsciiAlphaNumeric(_0x3f6292);}!function(_0x1e730a){_0x1e730a[_0x1e730a['VALUE_LENGTH']=0xc000]='VALUE_LENGTH',_0x1e730a[_0x1e730a['BRANCH_LENGTH']=0x3f80]='BRANCH_LENGTH',_0x1e730a[_0x1e730a['JUMP_TABLE']=0x7f]='JUMP_TABLE';}(BinTrieFlags||(BinTrieFlags={})),function(_0x483094){_0x483094[_0x483094['EntityStart']=0x0]='EntityStart',_0x483094[_0x483094['NumericStart']=0x1]='NumericStart',_0x483094[_0x483094['NumericDecimal']=0x2]='NumericDecimal',_0x483094[_0x483094['NumericHex']=0x3]='NumericHex',_0x483094[_0x483094['NamedEntity']=0x4]='NamedEntity';}(EntityDecoderState||(EntityDecoderState={})),function(_0x6204){_0x6204[_0x6204['Legacy']=0x0]='Legacy',_0x6204[_0x6204['Strict']=0x1]='Strict',_0x6204[_0x6204['Attribute']=0x2]='Attribute';}(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(_0x36bf18,_0x79fa,_0x8957c6){this['decodeTree']=_0x36bf18,this['emitCodePoint']=_0x79fa,this['errors']=_0x8957c6,this['state']=EntityDecoderState['EntityStart'],this['consumed']=0x1,this['result']=0x0,this['treeIndex']=0x0,this['excess']=0x1,this['decodeMode']=DecodingMode['Strict'];}['startEntity'](_0x41198d){this['decodeMode']=_0x41198d,this['state']=EntityDecoderState['EntityStart'],this['result']=0x0,this['treeIndex']=0x0,this['excess']=0x1,this['consumed']=0x1;}['write'](_0x3ef2a8,_0x47f394){switch(this['state']){case EntityDecoderState['EntityStart']:return _0x3ef2a8['charCodeAt'](_0x47f394)===CharCodes$1['NUM']?(this['state']=EntityDecoderState['NumericStart'],this['consumed']+=0x1,this['stateNumericStart'](_0x3ef2a8,_0x47f394+0x1)):(this['state']=EntityDecoderState['NamedEntity'],this['stateNamedEntity'](_0x3ef2a8,_0x47f394));case EntityDecoderState['NumericStart']:return this['stateNumericStart'](_0x3ef2a8,_0x47f394);case EntityDecoderState['NumericDecimal']:return this['stateNumericDecimal'](_0x3ef2a8,_0x47f394);case EntityDecoderState['NumericHex']:return this['stateNumericHex'](_0x3ef2a8,_0x47f394);case EntityDecoderState['NamedEntity']:return this['stateNamedEntity'](_0x3ef2a8,_0x47f394);}}['stateNumericStart'](_0x3e2a76,_0x782ee0){return _0x782ee0>=_0x3e2a76['length']?-0x1:(_0x3e2a76['charCodeAt'](_0x782ee0)|TO_LOWER_BIT)===CharCodes$1['LOWER_X']?(this['state']=EntityDecoderState['NumericHex'],this['consumed']+=0x1,this['stateNumericHex'](_0x3e2a76,_0x782ee0+0x1)):(this['state']=EntityDecoderState['NumericDecimal'],this['stateNumericDecimal'](_0x3e2a76,_0x782ee0));}['addToNumericResult'](_0xab2d69,_0x2ad0fe,_0x1c977d,_0xceec2d){if(_0x2ad0fe!==_0x1c977d){const _0x32532c=_0x1c977d-_0x2ad0fe;this['result']=this['result']*Math['pow'](_0xceec2d,_0x32532c)+Number['parseInt'](_0xab2d69['substr'](_0x2ad0fe,_0x32532c),_0xceec2d),this['consumed']+=_0x32532c;}}['stateNumericHex'](_0x37d08e,_0xee9e4){const _0x55e4ac=_0xee9e4;for(;_0xee9e4<_0x37d08e['length'];){const _0x566c95=_0x37d08e['charCodeAt'](_0xee9e4);if(!isNumber$1(_0x566c95)&&!isHexadecimalCharacter(_0x566c95))return this['addToNumericResult'](_0x37d08e,_0x55e4ac,_0xee9e4,0x10),this['emitNumericEntity'](_0x566c95,0x3);_0xee9e4+=0x1;}return this['addToNumericResult'](_0x37d08e,_0x55e4ac,_0xee9e4,0x10),-0x1;}['stateNumericDecimal'](_0x1a5779,_0x5593dd){const _0x159158=_0x5593dd;for(;_0x5593dd<_0x1a5779['length'];){const _0x5664d7=_0x1a5779['charCodeAt'](_0x5593dd);if(!isNumber$1(_0x5664d7))return this['addToNumericResult'](_0x1a5779,_0x159158,_0x5593dd,0xa),this['emitNumericEntity'](_0x5664d7,0x2);_0x5593dd+=0x1;}return this['addToNumericResult'](_0x1a5779,_0x159158,_0x5593dd,0xa),-0x1;}['emitNumericEntity'](_0x4f1486,_0x8f5201){var _0x1a5971;if(this['consumed']<=_0x8f5201)return null===(_0x1a5971=this['errors'])||void 0x0===_0x1a5971||_0x1a5971['absenceOfDigitsInNumericCharacterReference'](this['consumed']),0x0;if(_0x4f1486===CharCodes$1['SEMI'])this['consumed']+=0x1;else{if(this['decodeMode']===DecodingMode['Strict'])return 0x0;}return this['emitCodePoint'](replaceCodePoint(this['result']),this['consumed']),this['errors']&&(_0x4f1486!==CharCodes$1['SEMI']&&this['errors']['missingSemicolonAfterCharacterReference'](),this['errors']['validateNumericCharacterReference'](this['result'])),this['consumed'];}['stateNamedEntity'](_0x20b95f,_0x2dcba){const {decodeTree:_0xfe09fa}=this;let _0x35cd7a=_0xfe09fa[this['treeIndex']],_0x5c5888=(_0x35cd7a&BinTrieFlags['VALUE_LENGTH'])>>0xe;for(;_0x2dcba<_0x20b95f['length'];_0x2dcba++,this['excess']++){const _0x528766=_0x20b95f['charCodeAt'](_0x2dcba);if(this['treeIndex']=determineBranch(_0xfe09fa,_0x35cd7a,this['treeIndex']+Math['max'](0x1,_0x5c5888),_0x528766),this['treeIndex']<0x0)return 0x0===this['result']||this['decodeMode']===DecodingMode['Attribute']&&(0x0===_0x5c5888||isEntityInAttributeInvalidEnd(_0x528766))?0x0:this['emitNotTerminatedNamedEntity']();if(_0x35cd7a=_0xfe09fa[this['treeIndex']],_0x5c5888=(_0x35cd7a&BinTrieFlags['VALUE_LENGTH'])>>0xe,0x0!==_0x5c5888){if(_0x528766===CharCodes$1['SEMI'])return this['emitNamedEntityData'](this['treeIndex'],_0x5c5888,this['consumed']+this['excess']);this['decodeMode']!==DecodingMode['Strict']&&(this['result']=this['treeIndex'],this['consumed']+=this['excess'],this['excess']=0x0);}}return-0x1;}['emitNotTerminatedNamedEntity'](){var _0x993679;const {result:_0x244079,decodeTree:_0x18338b}=this,_0x1f11c9=(_0x18338b[_0x244079]&BinTrieFlags['VALUE_LENGTH'])>>0xe;return this['emitNamedEntityData'](_0x244079,_0x1f11c9,this['consumed']),null===(_0x993679=this['errors'])||void 0x0===_0x993679||_0x993679['missingSemicolonAfterCharacterReference'](),this['consumed'];}['emitNamedEntityData'](_0x238403,_0x2d983e,_0x2d554e){const {decodeTree:_0x11398d}=this;return this['emitCodePoint'](0x1===_0x2d983e?_0x11398d[_0x238403]&~BinTrieFlags['VALUE_LENGTH']:_0x11398d[_0x238403+0x1],_0x2d554e),0x3===_0x2d983e&&this['emitCodePoint'](_0x11398d[_0x238403+0x2],_0x2d554e),_0x2d554e;}['end'](){var _0x1b49f6;switch(this['state']){case EntityDecoderState['NamedEntity']:return 0x0===this['result']||this['decodeMode']===DecodingMode['Attribute']&&this['result']!==this['treeIndex']?0x0:this['emitNotTerminatedNamedEntity']();case EntityDecoderState['NumericDecimal']:return this['emitNumericEntity'](0x0,0x2);case EntityDecoderState['NumericHex']:return this['emitNumericEntity'](0x0,0x3);case EntityDecoderState['NumericStart']:return null===(_0x1b49f6=this['errors'])||void 0x0===_0x1b49f6||_0x1b49f6['absenceOfDigitsInNumericCharacterReference'](this['consumed']),0x0;case EntityDecoderState['EntityStart']:return 0x0;}}}function determineBranch(_0x540a5f,_0x343cd4,_0x5e0678,_0x3e1466){const _0x49d064=(_0x343cd4&BinTrieFlags['BRANCH_LENGTH'])>>0x7,_0x1f94be=_0x343cd4&BinTrieFlags['JUMP_TABLE'];if(0x0===_0x49d064)return 0x0!==_0x1f94be&&_0x3e1466===_0x1f94be?_0x5e0678:-0x1;if(_0x1f94be){const _0xfe7f28=_0x3e1466-_0x1f94be;return _0xfe7f28<0x0||_0xfe7f28>=_0x49d064?-0x1:_0x540a5f[_0x5e0678+_0xfe7f28]-0x1;}let _0x222502=_0x5e0678,_0x30f6df=_0x222502+_0x49d064-0x1;for(;_0x222502<=_0x30f6df;){const _0x64cffe=_0x222502+_0x30f6df>>>0x1,_0x584c7d=_0x540a5f[_0x64cffe];if(_0x584c7d<_0x3e1466)_0x222502=_0x64cffe+0x1;else{if(!(_0x584c7d>_0x3e1466))return _0x540a5f[_0x64cffe+_0x49d064];_0x30f6df=_0x64cffe-0x1;}}return-0x1;}function isWhitespace(_0xab5e3a){return _0xab5e3a===CharCodes['Space']||_0xab5e3a===CharCodes['NewLine']||_0xab5e3a===CharCodes['Tab']||_0xab5e3a===CharCodes['FormFeed']||_0xab5e3a===CharCodes['CarriageReturn'];}function isEndOfTagSection(_0x1749bd){return _0x1749bd===CharCodes['Slash']||_0x1749bd===CharCodes['Gt']||isWhitespace(_0x1749bd);}function isASCIIAlpha(_0x28cfa2){return _0x28cfa2>=CharCodes['LowerA']&&_0x28cfa2<=CharCodes['LowerZ']||_0x28cfa2>=CharCodes['UpperA']&&_0x28cfa2<=CharCodes['UpperZ'];}!function(_0x285551){_0x285551[_0x285551['Tab']=0x9]='Tab',_0x285551[_0x285551['NewLine']=0xa]='NewLine',_0x285551[_0x285551['FormFeed']=0xc]='FormFeed',_0x285551[_0x285551['CarriageReturn']=0xd]='CarriageReturn',_0x285551[_0x285551['Space']=0x20]='Space',_0x285551[_0x285551['ExclamationMark']=0x21]='ExclamationMark',_0x285551[_0x285551['Number']=0x23]='Number',_0x285551[_0x285551['Amp']=0x26]='Amp',_0x285551[_0x285551['SingleQuote']=0x27]='SingleQuote',_0x285551[_0x285551['DoubleQuote']=0x22]='DoubleQuote',_0x285551[_0x285551['Dash']=0x2d]='Dash',_0x285551[_0x285551['Slash']=0x2f]='Slash',_0x285551[_0x285551['Zero']=0x30]='Zero',_0x285551[_0x285551['Nine']=0x39]='Nine',_0x285551[_0x285551['Semi']=0x3b]='Semi',_0x285551[_0x285551['Lt']=0x3c]='Lt',_0x285551[_0x285551['Eq']=0x3d]='Eq',_0x285551[_0x285551['Gt']=0x3e]='Gt',_0x285551[_0x285551['Questionmark']=0x3f]='Questionmark',_0x285551[_0x285551['UpperA']=0x41]='UpperA',_0x285551[_0x285551['LowerA']=0x61]='LowerA',_0x285551[_0x285551['UpperF']=0x46]='UpperF',_0x285551[_0x285551['LowerF']=0x66]='LowerF',_0x285551[_0x285551['UpperZ']=0x5a]='UpperZ',_0x285551[_0x285551['LowerZ']=0x7a]='LowerZ',_0x285551[_0x285551['LowerX']=0x78]='LowerX',_0x285551[_0x285551['OpeningSquareBracket']=0x5b]='OpeningSquareBracket';}(CharCodes||(CharCodes={})),function(_0x89a574){_0x89a574[_0x89a574['Text']=0x1]='Text',_0x89a574[_0x89a574['BeforeTagName']=0x2]='BeforeTagName',_0x89a574[_0x89a574['InTagName']=0x3]='InTagName',_0x89a574[_0x89a574['InSelfClosingTag']=0x4]='InSelfClosingTag',_0x89a574[_0x89a574['BeforeClosingTagName']=0x5]='BeforeClosingTagName',_0x89a574[_0x89a574['InClosingTagName']=0x6]='InClosingTagName',_0x89a574[_0x89a574['AfterClosingTagName']=0x7]='AfterClosingTagName',_0x89a574[_0x89a574['BeforeAttributeName']=0x8]='BeforeAttributeName',_0x89a574[_0x89a574['InAttributeName']=0x9]='InAttributeName',_0x89a574[_0x89a574['AfterAttributeName']=0xa]='AfterAttributeName',_0x89a574[_0x89a574['BeforeAttributeValue']=0xb]='BeforeAttributeValue',_0x89a574[_0x89a574['InAttributeValueDq']=0xc]='InAttributeValueDq',_0x89a574[_0x89a574['InAttributeValueSq']=0xd]='InAttributeValueSq',_0x89a574[_0x89a574['InAttributeValueNq']=0xe]='InAttributeValueNq',_0x89a574[_0x89a574['BeforeDeclaration']=0xf]='BeforeDeclaration',_0x89a574[_0x89a574['InDeclaration']=0x10]='InDeclaration',_0x89a574[_0x89a574['InProcessingInstruction']=0x11]='InProcessingInstruction',_0x89a574[_0x89a574['BeforeComment']=0x12]='BeforeComment',_0x89a574[_0x89a574['CDATASequence']=0x13]='CDATASequence',_0x89a574[_0x89a574['InSpecialComment']=0x14]='InSpecialComment',_0x89a574[_0x89a574['InCommentLike']=0x15]='InCommentLike',_0x89a574[_0x89a574['BeforeSpecialS']=0x16]='BeforeSpecialS',_0x89a574[_0x89a574['BeforeSpecialT']=0x17]='BeforeSpecialT',_0x89a574[_0x89a574['SpecialStartSequence']=0x18]='SpecialStartSequence',_0x89a574[_0x89a574['InSpecialTag']=0x19]='InSpecialTag',_0x89a574[_0x89a574['InEntity']=0x1a]='InEntity';}(State||(State={})),function(_0x1a9445){_0x1a9445[_0x1a9445['NoValue']=0x0]='NoValue',_0x1a9445[_0x1a9445['Unquoted']=0x1]='Unquoted',_0x1a9445[_0x1a9445['Single']=0x2]='Single',_0x1a9445[_0x1a9445['Double']=0x3]='Double';}(QuoteType||(QuoteType={}));const Sequences={'Cdata':new Uint8Array([0x43,0x44,0x41,0x54,0x41,0x5b]),'CdataEnd':new Uint8Array([0x5d,0x5d,0x3e]),'CommentEnd':new Uint8Array([0x2d,0x2d,0x3e]),'ScriptEnd':new Uint8Array([0x3c,0x2f,0x73,0x63,0x72,0x69,0x70,0x74]),'StyleEnd':new Uint8Array([0x3c,0x2f,0x73,0x74,0x79,0x6c,0x65]),'TitleEnd':new Uint8Array([0x3c,0x2f,0x74,0x69,0x74,0x6c,0x65]),'TextareaEnd':new Uint8Array([0x3c,0x2f,0x74,0x65,0x78,0x74,0x61,0x72,0x65,0x61]),'XmpEnd':new Uint8Array([0x3c,0x2f,0x78,0x6d,0x70])};class Tokenizer{constructor({xmlMode:_0x205b14=!0x1,decodeEntities:_0x598b9b=!0x0},_0x497a79){this['cbs']=_0x497a79,this['state']=State['Text'],this['buffer']='',this['sectionStart']=0x0,this['index']=0x0,this['entityStart']=0x0,this['baseState']=State['Text'],this['isSpecial']=!0x1,this['running']=!0x0,this['offset']=0x0,this['currentSequence']=void 0x0,this['sequenceIndex']=0x0,this['xmlMode']=_0x205b14,this['decodeEntities']=_0x598b9b,this['entityDecoder']=new EntityDecoder(_0x205b14?xmlDecodeTree:htmlDecodeTree,(_0x5c8b32,_0x33c236)=>this['emitCodePoint'](_0x5c8b32,_0x33c236));}['reset'](){this['state']=State['Text'],this['buffer']='',this['sectionStart']=0x0,this['index']=0x0,this['baseState']=State['Text'],this['currentSequence']=void 0x0,this['running']=!0x0,this['offset']=0x0;}['write'](_0x1bf0f0){this['offset']+=this['buffer']['length'],this['buffer']=_0x1bf0f0,this['parse']();}['end'](){this['running']&&this['finish']();}['pause'](){this['running']=!0x1;}['resume'](){this['running']=!0x0,this['index']<this['buffer']['length']+this['offset']&&this['parse']();}['stateText'](_0x467f69){_0x467f69===CharCodes['Lt']||!this['decodeEntities']&&this['fastForwardTo'](CharCodes['Lt'])?(this['index']>this['sectionStart']&&this['cbs']['ontext'](this['sectionStart'],this['index']),this['state']=State['BeforeTagName'],this['sectionStart']=this['index']):this['decodeEntities']&&_0x467f69===CharCodes['Amp']&&this['startEntity']();}['stateSpecialStartSequence'](_0x29161c){const _0xfab46c=this['sequenceIndex']===this['currentSequence']['length'];if(_0xfab46c?isEndOfTagSection(_0x29161c):(0x20|_0x29161c)===this['currentSequence'][this['sequenceIndex']]){if(!_0xfab46c)return void this['sequenceIndex']++;}else this['isSpecial']=!0x1;this['sequenceIndex']=0x0,this['state']=State['InTagName'],this['stateInTagName'](_0x29161c);}['stateInSpecialTag'](_0x37b49c){if(this['sequenceIndex']===this['currentSequence']['length']){if(_0x37b49c===CharCodes['Gt']||isWhitespace(_0x37b49c)){const _0x35a4cf=this['index']-this['currentSequence']['length'];if(this['sectionStart']<_0x35a4cf){const _0xd454a4=this['index'];this['index']=_0x35a4cf,this['cbs']['ontext'](this['sectionStart'],_0x35a4cf),this['index']=_0xd454a4;}return this['isSpecial']=!0x1,this['sectionStart']=_0x35a4cf+0x2,void this['stateInClosingTagName'](_0x37b49c);}this['sequenceIndex']=0x0;}(0x20|_0x37b49c)===this['currentSequence'][this['sequenceIndex']]?this['sequenceIndex']+=0x1:0x0===this['sequenceIndex']?this['currentSequence']===Sequences['TitleEnd']?this['decodeEntities']&&_0x37b49c===CharCodes['Amp']&&this['startEntity']():this['fastForwardTo'](CharCodes['Lt'])&&(this['sequenceIndex']=0x1):this['sequenceIndex']=Number(_0x37b49c===CharCodes['Lt']);}['stateCDATASequence'](_0x4a1760){_0x4a1760===Sequences['Cdata'][this['sequenceIndex']]?++this['sequenceIndex']===Sequences['Cdata']['length']&&(this['state']=State['InCommentLike'],this['currentSequence']=Sequences['CdataEnd'],this['sequenceIndex']=0x0,this['sectionStart']=this['index']+0x1):(this['sequenceIndex']=0x0,this['state']=State['InDeclaration'],this['stateInDeclaration'](_0x4a1760));}['fastForwardTo'](_0x608aa7){for(;++this['index']<this['buffer']['length']+this['offset'];)if(this['buffer']['charCodeAt'](this['index']-this['offset'])===_0x608aa7)return!0x0;return this['index']=this['buffer']['length']+this['offset']-0x1,!0x1;}['stateInCommentLike'](_0x5ef729){_0x5ef729===this['currentSequence'][this['sequenceIndex']]?++this['sequenceIndex']===this['currentSequence']['length']&&(this['currentSequence']===Sequences['CdataEnd']?this['cbs']['oncdata'](this['sectionStart'],this['index'],0x2):this['cbs']['oncomment'](this['sectionStart'],this['index'],0x2),this['sequenceIndex']=0x0,this['sectionStart']=this['index']+0x1,this['state']=State['Text']):0x0===this['sequenceIndex']?this['fastForwardTo'](this['currentSequence'][0x0])&&(this['sequenceIndex']=0x1):_0x5ef729!==this['currentSequence'][this['sequenceIndex']-0x1]&&(this['sequenceIndex']=0x0);}['isTagStartChar'](_0x3c391a){return this['xmlMode']?!isEndOfTagSection(_0x3c391a):isASCIIAlpha(_0x3c391a);}['startSpecial'](_0x2e8bf7,_0x24c21f){this['isSpecial']=!0x0,this['currentSequence']=_0x2e8bf7,this['sequenceIndex']=_0x24c21f,this['state']=State['SpecialStartSequence'];}['stateBeforeTagName'](_0x1c4bdc){if(_0x1c4bdc===CharCodes['ExclamationMark'])this['state']=State['BeforeDeclaration'],this['sectionStart']=this['index']+0x1;else{if(_0x1c4bdc===CharCodes['Questionmark'])this['state']=State['InProcessingInstruction'],this['sectionStart']=this['index']+0x1;else{if(this['isTagStartChar'](_0x1c4bdc)){const _0x2a5b8b=0x20|_0x1c4bdc;this['sectionStart']=this['index'],this['xmlMode']?this['state']=State['InTagName']:_0x2a5b8b===Sequences['ScriptEnd'][0x2]?this['state']=State['BeforeSpecialS']:_0x2a5b8b===Sequences['TitleEnd'][0x2]||_0x2a5b8b===Sequences['XmpEnd'][0x2]?this['state']=State['BeforeSpecialT']:this['state']=State['InTagName'];}else _0x1c4bdc===CharCodes['Slash']?this['state']=State['BeforeClosingTagName']:(this['state']=State['Text'],this['stateText'](_0x1c4bdc));}}}['stateInTagName'](_0x16ea77){isEndOfTagSection(_0x16ea77)&&(this['cbs']['onopentagname'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x16ea77));}['stateBeforeClosingTagName'](_0x26119b){isWhitespace(_0x26119b)||(_0x26119b===CharCodes['Gt']?this['state']=State['Text']:(this['state']=this['isTagStartChar'](_0x26119b)?State['InClosingTagName']:State['InSpecialComment'],this['sectionStart']=this['index']));}['stateInClosingTagName'](_0x1dc8f6){(_0x1dc8f6===CharCodes['Gt']||isWhitespace(_0x1dc8f6))&&(this['cbs']['onclosetag'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['state']=State['AfterClosingTagName'],this['stateAfterClosingTagName'](_0x1dc8f6));}['stateAfterClosingTagName'](_0x5e0f69){(_0x5e0f69===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeAttributeName'](_0x2b1412){_0x2b1412===CharCodes['Gt']?(this['cbs']['onopentagend'](this['index']),this['isSpecial']?(this['state']=State['InSpecialTag'],this['sequenceIndex']=0x0):this['state']=State['Text'],this['sectionStart']=this['index']+0x1):_0x2b1412===CharCodes['Slash']?this['state']=State['InSelfClosingTag']:isWhitespace(_0x2b1412)||(this['state']=State['InAttributeName'],this['sectionStart']=this['index']);}['stateInSelfClosingTag'](_0x17cf45){_0x17cf45===CharCodes['Gt']?(this['cbs']['onselfclosingtag'](this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1,this['isSpecial']=!0x1):isWhitespace(_0x17cf45)||(this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x17cf45));}['stateInAttributeName'](_0xde5493){(_0xde5493===CharCodes['Eq']||isEndOfTagSection(_0xde5493))&&(this['cbs']['onattribname'](this['sectionStart'],this['index']),this['sectionStart']=this['index'],this['state']=State['AfterAttributeName'],this['stateAfterAttributeName'](_0xde5493));}['stateAfterAttributeName'](_0x592732){_0x592732===CharCodes['Eq']?this['state']=State['BeforeAttributeValue']:_0x592732===CharCodes['Slash']||_0x592732===CharCodes['Gt']?(this['cbs']['onattribend'](QuoteType['NoValue'],this['sectionStart']),this['sectionStart']=-0x1,this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x592732)):isWhitespace(_0x592732)||(this['cbs']['onattribend'](QuoteType['NoValue'],this['sectionStart']),this['state']=State['InAttributeName'],this['sectionStart']=this['index']);}['stateBeforeAttributeValue'](_0x4f5503){_0x4f5503===CharCodes['DoubleQuote']?(this['state']=State['InAttributeValueDq'],this['sectionStart']=this['index']+0x1):_0x4f5503===CharCodes['SingleQuote']?(this['state']=State['InAttributeValueSq'],this['sectionStart']=this['index']+0x1):isWhitespace(_0x4f5503)||(this['sectionStart']=this['index'],this['state']=State['InAttributeValueNq'],this['stateInAttributeValueNoQuotes'](_0x4f5503));}['handleInAttributeValue'](_0x4ab7e9,_0x273bad){_0x4ab7e9===_0x273bad||!this['decodeEntities']&&this['fastForwardTo'](_0x273bad)?(this['cbs']['onattribdata'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['cbs']['onattribend'](_0x273bad===CharCodes['DoubleQuote']?QuoteType['Double']:QuoteType['Single'],this['index']+0x1),this['state']=State['BeforeAttributeName']):this['decodeEntities']&&_0x4ab7e9===CharCodes['Amp']&&this['startEntity']();}['stateInAttributeValueDoubleQuotes'](_0x148353){this['handleInAttributeValue'](_0x148353,CharCodes['DoubleQuote']);}['stateInAttributeValueSingleQuotes'](_0x296093){this['handleInAttributeValue'](_0x296093,CharCodes['SingleQuote']);}['stateInAttributeValueNoQuotes'](_0x1beceb){isWhitespace(_0x1beceb)||_0x1beceb===CharCodes['Gt']?(this['cbs']['onattribdata'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['cbs']['onattribend'](QuoteType['Unquoted'],this['index']),this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x1beceb)):this['decodeEntities']&&_0x1beceb===CharCodes['Amp']&&this['startEntity']();}['stateBeforeDeclaration'](_0x3f7ce9){_0x3f7ce9===CharCodes['OpeningSquareBracket']?(this['state']=State['CDATASequence'],this['sequenceIndex']=0x0):this['state']=_0x3f7ce9===CharCodes['Dash']?State['BeforeComment']:State['InDeclaration'];}['stateInDeclaration'](_0x42b190){(_0x42b190===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['ondeclaration'](this['sectionStart'],this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateInProcessingInstruction'](_0xd6b5ca){(_0xd6b5ca===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['onprocessinginstruction'](this['sectionStart'],this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeComment'](_0x48293a){_0x48293a===CharCodes['Dash']?(this['state']=State['InCommentLike'],this['currentSequence']=Sequences['CommentEnd'],this['sequenceIndex']=0x2,this['sectionStart']=this['index']+0x1):this['state']=State['InDeclaration'];}['stateInSpecialComment'](_0x2807a1){(_0x2807a1===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['oncomment'](this['sectionStart'],this['index'],0x0),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeSpecialS'](_0x36bbd2){const _0x2a0b8c=0x20|_0x36bbd2;_0x2a0b8c===Sequences['ScriptEnd'][0x3]?this['startSpecial'](Sequences['ScriptEnd'],0x4):_0x2a0b8c===Sequences['StyleEnd'][0x3]?this['startSpecial'](Sequences['StyleEnd'],0x4):(this['state']=State['InTagName'],this['stateInTagName'](_0x36bbd2));}['stateBeforeSpecialT'](_0x12f562){switch(0x20|_0x12f562){case Sequences['TitleEnd'][0x3]:this['startSpecial'](Sequences['TitleEnd'],0x4);break;case Sequences['TextareaEnd'][0x3]:this['startSpecial'](Sequences['TextareaEnd'],0x4);break;case Sequences['XmpEnd'][0x3]:this['startSpecial'](Sequences['XmpEnd'],0x4);break;default:this['state']=State['InTagName'],this['stateInTagName'](_0x12f562);}}['startEntity'](){this['baseState']=this['state'],this['state']=State['InEntity'],this['entityStart']=this['index'],this['entityDecoder']['startEntity'](this['xmlMode']?DecodingMode['Strict']:this['baseState']===State['Text']||this['baseState']===State['InSpecialTag']?DecodingMode['Legacy']:DecodingMode['Attribute']);}['stateInEntity'](){const _0x3893ca=this['entityDecoder']['write'](this['buffer'],this['index']-this['offset']);_0x3893ca>=0x0?(this['state']=this['baseState'],0x0===_0x3893ca&&(this['index']=this['entityStart'])):this['index']=this['offset']+this['buffer']['length']-0x1;}['cleanup'](){this['running']&&this['sectionStart']!==this['index']&&(this['state']===State['Text']||this['state']===State['InSpecialTag']&&0x0===this['sequenceIndex']?(this['cbs']['ontext'](this['sectionStart'],this['index']),this['sectionStart']=this['index']):this['state']!==State['InAttributeValueDq']&&this['state']!==State['InAttributeValueSq']&&this['state']!==State['InAttributeValueNq']||(this['cbs']['onattribdata'](this['sectionStart'],this['index']),this['sectionStart']=this['index']));}['shouldContinue'](){return this['index']<this['buffer']['length']+this['offset']&&this['running'];}['parse'](){for(;this['shouldContinue']();){const _0xe24a5b=this['buffer']['charCodeAt'](this['index']-this['offset']);switch(this['state']){case State['Text']:this['stateText'](_0xe24a5b);break;case State['SpecialStartSequence']:this['stateSpecialStartSequence'](_0xe24a5b);break;case State['InSpecialTag']:this['stateInSpecialTag'](_0xe24a5b);break;case State['CDATASequence']:this['stateCDATASequence'](_0xe24a5b);break;case State['InAttributeValueDq']:this['stateInAttributeValueDoubleQuotes'](_0xe24a5b);break;case State['InAttributeName']:this['stateInAttributeName'](_0xe24a5b);break;case State['InCommentLike']:this['stateInCommentLike'](_0xe24a5b);break;case State['InSpecialComment']:this['stateInSpecialComment'](_0xe24a5b);break;case State['BeforeAttributeName']:this['stateBeforeAttributeName'](_0xe24a5b);break;case State['InTagName']:this['stateInTagName'](_0xe24a5b);break;case State['InClosingTagName']:this['stateInClosingTagName'](_0xe24a5b);break;case State['BeforeTagName']:this['stateBeforeTagName'](_0xe24a5b);break;case State['AfterAttributeName']:this['stateAfterAttributeName'](_0xe24a5b);break;case State['InAttributeValueSq']:this['stateInAttributeValueSingleQuotes'](_0xe24a5b);break;case State['BeforeAttributeValue']:this['stateBeforeAttributeValue'](_0xe24a5b);break;case State['BeforeClosingTagName']:this['stateBeforeClosingTagName'](_0xe24a5b);break;case State['AfterClosingTagName']:this['stateAfterClosingTagName'](_0xe24a5b);break;case State['BeforeSpecialS']:this['stateBeforeSpecialS'](_0xe24a5b);break;case State['BeforeSpecialT']:this['stateBeforeSpecialT'](_0xe24a5b);break;case State['InAttributeValueNq']:this['stateInAttributeValueNoQuotes'](_0xe24a5b);break;case State['InSelfClosingTag']:this['stateInSelfClosingTag'](_0xe24a5b);break;case State['InDeclaration']:this['stateInDeclaration'](_0xe24a5b);break;case State['BeforeDeclaration']:this['stateBeforeDeclaration'](_0xe24a5b);break;case State['BeforeComment']:this['stateBeforeComment'](_0xe24a5b);break;case State['InProcessingInstruction']:this['stateInProcessingInstruction'](_0xe24a5b);break;case State['InEntity']:this['stateInEntity']();}this['index']++;}this['cleanup']();}['finish'](){this['state']===State['InEntity']&&(this['entityDecoder']['end'](),this['state']=this['baseState']),this['handleTrailingData'](),this['cbs']['onend']();}['handleTrailingData'](){const _0x55ebf0=this['buffer']['length']+this['offset'];this['sectionStart']>=_0x55ebf0||(this['state']===State['InCommentLike']?this['currentSequence']===Sequences['CdataEnd']?this['cbs']['oncdata'](this['sectionStart'],_0x55ebf0,0x0):this['cbs']['oncomment'](this['sectionStart'],_0x55ebf0,0x0):this['state']===State['InTagName']||this['state']===State['BeforeAttributeName']||this['state']===State['BeforeAttributeValue']||this['state']===State['AfterAttributeName']||this['state']===State['InAttributeName']||this['state']===State['InAttributeValueSq']||this['state']===State['InAttributeValueDq']||this['state']===State['InAttributeValueNq']||this['state']===State['InClosingTagName']||this['cbs']['ontext'](this['sectionStart'],_0x55ebf0));}['emitCodePoint'](_0x2dd469,_0x4eab10){this['baseState']!==State['Text']&&this['baseState']!==State['InSpecialTag']?(this['sectionStart']<this['entityStart']&&this['cbs']['onattribdata'](this['sectionStart'],this['entityStart']),this['sectionStart']=this['entityStart']+_0x4eab10,this['index']=this['sectionStart']-0x1,this['cbs']['onattribentity'](_0x2dd469)):(this['sectionStart']<this['entityStart']&&this['cbs']['ontext'](this['sectionStart'],this['entityStart']),this['sectionStart']=this['entityStart']+_0x4eab10,this['index']=this['sectionStart']-0x1,this['cbs']['ontextentity'](_0x2dd469,this['sectionStart']));}}const formTags=new Set(['input','option','optgroup','select','button','datalist','textarea']),pTag=new Set(['p']),tableSectionTags=new Set(['thead','tbody']),ddtTags=new Set(['dd','dt']),rtpTags=new Set(['rt','rp']),openImpliesClose=new Map([['tr',new Set(['tr','th','td'])],['th',new Set(['th'])],['td',new Set(['thead','th','td'])],['body',new Set(['head','link','script'])],['li',new Set(['li'])],['p',pTag],['h1',pTag],['h2',pTag],['h3',pTag],['h4',pTag],['h5',pTag],['h6',pTag],['select',formTags],['input',formTags],['output',formTags],['button',formTags],['datalist',formTags],['textarea',formTags],['option',new Set(['option'])],['optgroup',new Set(['optgroup','option'])],['dd',ddtTags],['dt',ddtTags],['address',pTag],['article',pTag],['aside',pTag],['blockquote',pTag],['details',pTag],['div',pTag],['dl',pTag],['fieldset',pTag],['figcaption',pTag],['figure',pTag],['footer',pTag],['form',pTag],['header',pTag],['hr',pTag],['main',pTag],['nav',pTag],['ol',pTag],['pre',pTag],['section',pTag],['table',pTag],['ul',pTag],['rt',rtpTags],['rp',rtpTags],['tbody',tableSectionTags],['tfoot',tableSectionTags]]),voidElements=new Set(['area','base','basefont','br','col','command','embed','frame','hr','img','input','isindex','keygen','link','meta','param','source','track','wbr']),foreignContextElements=new Set(['math','svg']),htmlIntegrationElements=new Set(['mi','mo','mn','ms','mtext','annotation-xml','foreignobject','desc','title']),reNameEnd=/\s|\//;let Parser$1=class{constructor(_0x43d5ca,_0x51e55d={}){var _0x1c51da,_0x5d4045,_0x277d85,_0x48f64b,_0x44d933,_0xb167d5;this['options']=_0x51e55d,this['startIndex']=0x0,this['endIndex']=0x0,this['openTagStart']=0x0,this['tagname']='',this['attribname']='',this['attribvalue']='',this['attribs']=null,this['stack']=[],this['buffers']=[],this['bufferOffset']=0x0,this['writeIndex']=0x0,this['ended']=!0x1,this['cbs']=null!=_0x43d5ca?_0x43d5ca:{},this['htmlMode']=!this['options']['xmlMode'],this['lowerCaseTagNames']=null!==(_0x1c51da=_0x51e55d['lowerCaseTags'])&&void 0x0!==_0x1c51da?_0x1c51da:this['htmlMode'],this['lowerCaseAttributeNames']=null!==(_0x5d4045=_0x51e55d['lowerCaseAttributeNames'])&&void 0x0!==_0x5d4045?_0x5d4045:this['htmlMode'],this['recognizeSelfClosing']=null!==(_0x277d85=_0x51e55d['recognizeSelfClosing'])&&void 0x0!==_0x277d85?_0x277d85:!this['htmlMode'],this['tokenizer']=new(null!==(_0x48f64b=_0x51e55d['Tokenizer'])&&void 0x0!==_0x48f64b?_0x48f64b:Tokenizer)(this['options'],this),this['foreignContext']=[!this['htmlMode']],null===(_0xb167d5=(_0x44d933=this['cbs'])['onparserinit'])||void 0x0===_0xb167d5||_0xb167d5['call'](_0x44d933,this);}['ontext'](_0x274bfa,_0xf5e29a){var _0x146a0b,_0x2236fe;const _0x2551cf=this['getSlice'](_0x274bfa,_0xf5e29a);this['endIndex']=_0xf5e29a-0x1,null===(_0x2236fe=(_0x146a0b=this['cbs'])['ontext'])||void 0x0===_0x2236fe||_0x2236fe['call'](_0x146a0b,_0x2551cf),this['startIndex']=_0xf5e29a;}['ontextentity'](_0x3910e3,_0x418fef){var _0x150925,_0x53ed5e;this['endIndex']=_0x418fef-0x1,null===(_0x53ed5e=(_0x150925=this['cbs'])['ontext'])||void 0x0===_0x53ed5e||_0x53ed5e['call'](_0x150925,fromCodePoint$1(_0x3910e3)),this['startIndex']=_0x418fef;}['isVoidElement'](_0x5d514e){return this['htmlMode']&&voidElements['has'](_0x5d514e);}['onopentagname'](_0x14667e,_0x25289e){this['endIndex']=_0x25289e;let _0xeff9f8=this['getSlice'](_0x14667e,_0x25289e);this['lowerCaseTagNames']&&(_0xeff9f8=_0xeff9f8['toLowerCase']()),this['emitOpenTag'](_0xeff9f8);}['emitOpenTag'](_0x619cf2){var _0xd2d6c,_0x3cbe44,_0x47d7bd,_0x5e72bf;this['openTagStart']=this['startIndex'],this['tagname']=_0x619cf2;const _0x5996d7=this['htmlMode']&&openImpliesClose['get'](_0x619cf2);if(_0x5996d7)for(;this['stack']['length']>0x0&&_0x5996d7['has'](this['stack'][0x0]);){const _0x12856a=this['stack']['shift']();null===(_0x3cbe44=(_0xd2d6c=this['cbs'])['onclosetag'])||void 0x0===_0x3cbe44||_0x3cbe44['call'](_0xd2d6c,_0x12856a,!0x0);}this['isVoidElement'](_0x619cf2)||(this['stack']['unshift'](_0x619cf2),this['htmlMode']&&(foreignContextElements['has'](_0x619cf2)?this['foreignContext']['unshift'](!0x0):htmlIntegrationElements['has'](_0x619cf2)&&this['foreignContext']['unshift'](!0x1))),null===(_0x5e72bf=(_0x47d7bd=this['cbs'])['onopentagname'])||void 0x0===_0x5e72bf||_0x5e72bf['call'](_0x47d7bd,_0x619cf2),this['cbs']['onopentag']&&(this['attribs']={});}['endOpenTag'](_0x1d5fe7){var _0x5897c4,_0x166f6a;this['startIndex']=this['openTagStart'],this['attribs']&&(null===(_0x166f6a=(_0x5897c4=this['cbs'])['onopentag'])||void 0x0===_0x166f6a||_0x166f6a['call'](_0x5897c4,this['tagname'],this['attribs'],_0x1d5fe7),this['attribs']=null),this['cbs']['onclosetag']&&this['isVoidElement'](this['tagname'])&&this['cbs']['onclosetag'](this['tagname'],!0x0),this['tagname']='';}['onopentagend'](_0x2d233a){this['endIndex']=_0x2d233a,this['endOpenTag'](!0x1),this['startIndex']=_0x2d233a+0x1;}['onclosetag'](_0x5e4823,_0x2d4d06){var _0x46b105,_0x217d11,_0x24e245,_0x262d0f,_0x424edf,_0x130c68,_0x115b8b,_0x1500e0;this['endIndex']=_0x2d4d06;let _0x3f6189=this['getSlice'](_0x5e4823,_0x2d4d06);if(this['lowerCaseTagNames']&&(_0x3f6189=_0x3f6189['toLowerCase']()),this['htmlMode']&&(foreignContextElements['has'](_0x3f6189)||htmlIntegrationElements['has'](_0x3f6189))&&this['foreignContext']['shift'](),this['isVoidElement'](_0x3f6189))this['htmlMode']&&'br'===_0x3f6189&&(null===(_0x262d0f=(_0x24e245=this['cbs'])['onopentagname'])||void 0x0===_0x262d0f||_0x262d0f['call'](_0x24e245,'br'),null===(_0x130c68=(_0x424edf=this['cbs'])['onopentag'])||void 0x0===_0x130c68||_0x130c68['call'](_0x424edf,'br',{},!0x0),null===(_0x1500e0=(_0x115b8b=this['cbs'])['onclosetag'])||void 0x0===_0x1500e0||_0x1500e0['call'](_0x115b8b,'br',!0x1));else{const _0x5d6b86=this['stack']['indexOf'](_0x3f6189);if(-0x1!==_0x5d6b86)for(let _0x2f91f6=0x0;_0x2f91f6<=_0x5d6b86;_0x2f91f6++){const _0x42b62a=this['stack']['shift']();null===(_0x217d11=(_0x46b105=this['cbs'])['onclosetag'])||void 0x0===_0x217d11||_0x217d11['call'](_0x46b105,_0x42b62a,_0x2f91f6!==_0x5d6b86);}else this['htmlMode']&&'p'===_0x3f6189&&(this['emitOpenTag']('p'),this['closeCurrentTag'](!0x0));}this['startIndex']=_0x2d4d06+0x1;}['onselfclosingtag'](_0x5475b0){this['endIndex']=_0x5475b0,this['recognizeSelfClosing']||this['foreignContext'][0x0]?(this['closeCurrentTag'](!0x1),this['startIndex']=_0x5475b0+0x1):this['onopentagend'](_0x5475b0);}['closeCurrentTag'](_0x5b2e46){var _0x4977a6,_0x633459;const _0x57bb31=this['tagname'];this['endOpenTag'](_0x5b2e46),this['stack'][0x0]===_0x57bb31&&(null===(_0x633459=(_0x4977a6=this['cbs'])['onclosetag'])||void 0x0===_0x633459||_0x633459['call'](_0x4977a6,_0x57bb31,!_0x5b2e46),this['stack']['shift']());}['onattribname'](_0x5a6d02,_0x31837b){this['startIndex']=_0x5a6d02;const _0x4f15f7=this['getSlice'](_0x5a6d02,_0x31837b);this['attribname']=this['lowerCaseAttributeNames']?_0x4f15f7['toLowerCase']():_0x4f15f7;}['onattribdata'](_0x343d8d,_0x7883f7){this['attribvalue']+=this['getSlice'](_0x343d8d,_0x7883f7);}['onattribentity'](_0x34fcc4){this['attribvalue']+=fromCodePoint$1(_0x34fcc4);}['onattribend'](_0x2cc7b1,_0x5d7f75){var _0x13883d,_0x5d186a;this['endIndex']=_0x5d7f75,null===(_0x5d186a=(_0x13883d=this['cbs'])['onattribute'])||void 0x0===_0x5d186a||_0x5d186a['call'](_0x13883d,this['attribname'],this['attribvalue'],_0x2cc7b1===QuoteType['Double']?'\x22':_0x2cc7b1===QuoteType['Single']?'\x27':_0x2cc7b1===QuoteType['NoValue']?void 0x0:null),this['attribs']&&!Object['prototype']['hasOwnProperty']['call'](this['attribs'],this['attribname'])&&(this['attribs'][this['attribname']]=this['attribvalue']),this['attribvalue']='';}['getInstructionName'](_0x13b59e){const _0x1b22e1=_0x13b59e['search'](reNameEnd);let _0x4e1da7=_0x1b22e1<0x0?_0x13b59e:_0x13b59e['substr'](0x0,_0x1b22e1);return this['lowerCaseTagNames']&&(_0x4e1da7=_0x4e1da7['toLowerCase']()),_0x4e1da7;}['ondeclaration'](_0x5d00a6,_0x15cb5d){this['endIndex']=_0x15cb5d;const _0x3b4afd=this['getSlice'](_0x5d00a6,_0x15cb5d);if(this['cbs']['onprocessinginstruction']){const _0x473519=this['getInstructionName'](_0x3b4afd);this['cbs']['onprocessinginstruction']('!'+_0x473519,'!'+_0x3b4afd);}this['startIndex']=_0x15cb5d+0x1;}['onprocessinginstruction'](_0x29025b,_0x5a0e1b){this['endIndex']=_0x5a0e1b;const _0x5c5b92=this['getSlice'](_0x29025b,_0x5a0e1b);if(this['cbs']['onprocessinginstruction']){const _0x1d9835=this['getInstructionName'](_0x5c5b92);this['cbs']['onprocessinginstruction']('?'+_0x1d9835,'?'+_0x5c5b92);}this['startIndex']=_0x5a0e1b+0x1;}['oncomment'](_0x2b650e,_0x14e332,_0x26af79){var _0x685620,_0xdf6c6f,_0x27be66,_0x324168;this['endIndex']=_0x14e332,null===(_0xdf6c6f=(_0x685620=this['cbs'])['oncomment'])||void 0x0===_0xdf6c6f||_0xdf6c6f['call'](_0x685620,this['getSlice'](_0x2b650e,_0x14e332-_0x26af79)),null===(_0x324168=(_0x27be66=this['cbs'])['oncommentend'])||void 0x0===_0x324168||_0x324168['call'](_0x27be66),this['startIndex']=_0x14e332+0x1;}['oncdata'](_0x8da04f,_0x580a42,_0x25de37){var _0x117c52,_0x5b464a,_0xd374d5,_0x22243b,_0x324ae1,_0x2aefe4,_0xbd290d,_0x19683f,_0x5a7b37,_0xed63a3;this['endIndex']=_0x580a42;const _0x4b3c60=this['getSlice'](_0x8da04f,_0x580a42-_0x25de37);!this['htmlMode']||this['options']['recognizeCDATA']?(null===(_0x5b464a=(_0x117c52=this['cbs'])['oncdatastart'])||void 0x0===_0x5b464a||_0x5b464a['call'](_0x117c52),null===(_0x22243b=(_0xd374d5=this['cbs'])['ontext'])||void 0x0===_0x22243b||_0x22243b['call'](_0xd374d5,_0x4b3c60),null===(_0x2aefe4=(_0x324ae1=this['cbs'])['oncdataend'])||void 0x0===_0x2aefe4||_0x2aefe4['call'](_0x324ae1)):(null===(_0x19683f=(_0xbd290d=this['cbs'])['oncomment'])||void 0x0===_0x19683f||_0x19683f['call'](_0xbd290d,'[CDATA['+_0x4b3c60+']]'),null===(_0xed63a3=(_0x5a7b37=this['cbs'])['oncommentend'])||void 0x0===_0xed63a3||_0xed63a3['call'](_0x5a7b37)),this['startIndex']=_0x580a42+0x1;}['onend'](){var _0xa5eee0,_0x272f5a;if(this['cbs']['onclosetag']){this['endIndex']=this['startIndex'];for(let _0x4074e4=0x0;_0x4074e4<this['stack']['length'];_0x4074e4++)this['cbs']['onclosetag'](this['stack'][_0x4074e4],!0x0);}null===(_0x272f5a=(_0xa5eee0=this['cbs'])['onend'])||void 0x0===_0x272f5a||_0x272f5a['call'](_0xa5eee0);}['reset'](){var _0x401aad,_0x139a84,_0x552c85,_0x268c41;null===(_0x139a84=(_0x401aad=this['cbs'])['onreset'])||void 0x0===_0x139a84||_0x139a84['call'](_0x401aad),this['tokenizer']['reset'](),this['tagname']='',this['attribname']='',this['attribs']=null,this['stack']['length']=0x0,this['startIndex']=0x0,this['endIndex']=0x0,null===(_0x268c41=(_0x552c85=this['cbs'])['onparserinit'])||void 0x0===_0x268c41||_0x268c41['call'](_0x552c85,this),this['buffers']['length']=0x0,this['foreignContext']['length']=0x0,this['foreignContext']['unshift'](!this['htmlMode']),this['bufferOffset']=0x0,this['writeIndex']=0x0,this['ended']=!0x1;}['parseComplete'](_0x2c717e){this['reset'](),this['end'](_0x2c717e);}['getSlice'](_0x1d577f,_0x3b598b){for(;_0x1d577f-this['bufferOffset']>=this['buffers'][0x0]['length'];)this['shiftBuffer']();let _0x3bd8ab=this['buffers'][0x0]['slice'](_0x1d577f-this['bufferOffset'],_0x3b598b-this['bufferOffset']);for(;_0x3b598b-this['bufferOffset']>this['buffers'][0x0]['length'];)this['shiftBuffer'](),_0x3bd8ab+=this['buffers'][0x0]['slice'](0x0,_0x3b598b-this['bufferOffset']);return _0x3bd8ab;}['shiftBuffer'](){this['bufferOffset']+=this['buffers'][0x0]['length'],this['writeIndex']--,this['buffers']['shift']();}['write'](_0x176c2e){var _0x25d8c6,_0x160029;this['ended']?null===(_0x160029=(_0x25d8c6=this['cbs'])['onerror'])||void 0x0===_0x160029||_0x160029['call'](_0x25d8c6,new Error('.write()\x20after\x20done!')):(this['buffers']['push'](_0x176c2e),this['tokenizer']['running']&&(this['tokenizer']['write'](_0x176c2e),this['writeIndex']++));}['end'](_0x3afa7d){var _0xae46d3,_0x9e5f8f;this['ended']?null===(_0x9e5f8f=(_0xae46d3=this['cbs'])['onerror'])||void 0x0===_0x9e5f8f||_0x9e5f8f['call'](_0xae46d3,new Error('.end()\x20after\x20done!')):(_0x3afa7d&&this['write'](_0x3afa7d),this['ended']=!0x0,this['tokenizer']['end']());}['pause'](){this['tokenizer']['pause']();}['resume'](){for(this['tokenizer']['resume']();this['tokenizer']['running']&&this['writeIndex']<this['buffers']['length'];)this['tokenizer']['write'](this['buffers'][this['writeIndex']++]);this['ended']&&this['tokenizer']['end']();}['parseChunk'](_0x50cc70){this['write'](_0x50cc70);}['done'](_0x1b5793){this['end'](_0x1b5793);}};var ElementType;function isTag$1(_0x2fcb4d){return _0x2fcb4d['type']===ElementType['Tag']||_0x2fcb4d['type']===ElementType['Script']||_0x2fcb4d['type']===ElementType['Style'];}!function(_0x5f407d){_0x5f407d['Root']='root',_0x5f407d['Text']='text',_0x5f407d['Directive']='directive',_0x5f407d['Comment']='comment',_0x5f407d['Script']='script',_0x5f407d['Style']='style',_0x5f407d['Tag']='tag',_0x5f407d['CDATA']='cdata',_0x5f407d['Doctype']='doctype';}(ElementType||(ElementType={}));const Root=ElementType['Root'],Text$2=ElementType['Text'],Directive=ElementType['Directive'],Comment$2=ElementType['Comment'],Script=ElementType['Script'],Style=ElementType['Style'],Tag$1=ElementType['Tag'],CDATA$1=ElementType['CDATA'],Doctype=ElementType['Doctype'];let Node$1=class{constructor(){this['parent']=null,this['prev']=null,this['next']=null,this['startIndex']=null,this['endIndex']=null;}get['parentNode'](){return this['parent'];}set['parentNode'](_0x503394){this['parent']=_0x503394;}get['previousSibling'](){return this['prev'];}set['previousSibling'](_0x449c1c){this['prev']=_0x449c1c;}get['nextSibling'](){return this['next'];}set['nextSibling'](_0x1a6577){this['next']=_0x1a6577;}['cloneNode'](_0x582bce=!0x1){return cloneNode(this,_0x582bce);}};class DataNode extends Node$1{constructor(_0x447e95){super(),this['data']=_0x447e95;}get['nodeValue'](){return this['data'];}set['nodeValue'](_0x11e8be){this['data']=_0x11e8be;}}let Text$1=class extends DataNode{constructor(){super(...arguments),this['type']=ElementType['Text'];}get['nodeType'](){return 0x3;}},Comment$1=class extends DataNode{constructor(){super(...arguments),this['type']=ElementType['Comment'];}get['nodeType'](){return 0x8;}};class ProcessingInstruction extends DataNode{constructor(_0x587582,_0x5aad07){super(_0x5aad07),this['name']=_0x587582,this['type']=ElementType['Directive'];}get['nodeType'](){return 0x1;}}class NodeWithChildren extends Node$1{constructor(_0xc731bb){super(),this['children']=_0xc731bb;}get['firstChild'](){var _0x12aaa4;return null!==(_0x12aaa4=this['children'][0x0])&&void 0x0!==_0x12aaa4?_0x12aaa4:null;}get['lastChild'](){return this['children']['length']>0x0?this['children'][this['children']['length']-0x1]:null;}get['childNodes'](){return this['children'];}set['childNodes'](_0x25c779){this['children']=_0x25c779;}}class CDATA extends NodeWithChildren{constructor(){super(...arguments),this['type']=ElementType['CDATA'];}get['nodeType'](){return 0x4;}}class Document extends NodeWithChildren{constructor(){super(...arguments),this['type']=ElementType['Root'];}get['nodeType'](){return 0x9;}}let Element$3=class extends NodeWithChildren{constructor(_0x398267,_0x4783cc,_0x4590db=[],_0x2e7fb6='script'===_0x398267?ElementType['Script']:'style'===_0x398267?ElementType['Style']:ElementType['Tag']){super(_0x4590db),this['name']=_0x398267,this['attribs']=_0x4783cc,this['type']=_0x2e7fb6;}get['nodeType'](){return 0x1;}get['tagName'](){return this['name'];}set['tagName'](_0x5e1170){this['name']=_0x5e1170;}get['attributes'](){return Object['keys'](this['attribs'])['map'](_0x2fadd8=>{var _0x23dfa8,_0x28bd78;return{'name':_0x2fadd8,'value':this['attribs'][_0x2fadd8],'namespace':null===(_0x23dfa8=this['x-attribsNamespace'])||void 0x0===_0x23dfa8?void 0x0:_0x23dfa8[_0x2fadd8],'prefix':null===(_0x28bd78=this['x-attribsPrefix'])||void 0x0===_0x28bd78?void 0x0:_0x28bd78[_0x2fadd8]};});}};function isTag(_0x11bbf0){return isTag$1(_0x11bbf0);}function isCDATA(_0x461eb2){return _0x461eb2['type']===ElementType['CDATA'];}function isText$1(_0x3197c9){return _0x3197c9['type']===ElementType['Text'];}function isComment(_0x17f9c2){return _0x17f9c2['type']===ElementType['Comment'];}function isDirective(_0x31df36){return _0x31df36['type']===ElementType['Directive'];}function isDocument(_0x198fd3){return _0x198fd3['type']===ElementType['Root'];}function hasChildren(_0x3aed55){return Object['prototype']['hasOwnProperty']['call'](_0x3aed55,'children');}function cloneNode(_0x322279,_0x3c5aa8=!0x1){let _0x4d4f9a;if(isText$1(_0x322279))_0x4d4f9a=new Text$1(_0x322279['data']);else{if(isComment(_0x322279))_0x4d4f9a=new Comment$1(_0x322279['data']);else{if(isTag(_0x322279)){const _0x1c2965=_0x3c5aa8?cloneChildren(_0x322279['children']):[],_0x388264=new Element$3(_0x322279['name'],{..._0x322279['attribs']},_0x1c2965);_0x1c2965['forEach'](_0x92a189=>_0x92a189['parent']=_0x388264),null!=_0x322279['namespace']&&(_0x388264['namespace']=_0x322279['namespace']),_0x322279['x-attribsNamespace']&&(_0x388264['x-attribsNamespace']={..._0x322279['x-attribsNamespace']}),_0x322279['x-attribsPrefix']&&(_0x388264['x-attribsPrefix']={..._0x322279['x-attribsPrefix']}),_0x4d4f9a=_0x388264;}else{if(isCDATA(_0x322279)){const _0xfda2c5=_0x3c5aa8?cloneChildren(_0x322279['children']):[],_0x3d5a83=new CDATA(_0xfda2c5);_0xfda2c5['forEach'](_0x37c937=>_0x37c937['parent']=_0x3d5a83),_0x4d4f9a=_0x3d5a83;}else{if(isDocument(_0x322279)){const _0x151ce5=_0x3c5aa8?cloneChildren(_0x322279['children']):[],_0x22d655=new Document(_0x151ce5);_0x151ce5['forEach'](_0x55af1f=>_0x55af1f['parent']=_0x22d655),_0x322279['x-mode']&&(_0x22d655['x-mode']=_0x322279['x-mode']),_0x4d4f9a=_0x22d655;}else{if(!isDirective(_0x322279))throw new Error('Not\x20implemented\x20yet:\x20'+_0x322279['type']);{const _0x1aaf13=new ProcessingInstruction(_0x322279['name'],_0x322279['data']);null!=_0x322279['x-name']&&(_0x1aaf13['x-name']=_0x322279['x-name'],_0x1aaf13['x-publicId']=_0x322279['x-publicId'],_0x1aaf13['x-systemId']=_0x322279['x-systemId']),_0x4d4f9a=_0x1aaf13;}}}}}}return _0x4d4f9a['startIndex']=_0x322279['startIndex'],_0x4d4f9a['endIndex']=_0x322279['endIndex'],null!=_0x322279['sourceCodeLocation']&&(_0x4d4f9a['sourceCodeLocation']=_0x322279['sourceCodeLocation']),_0x4d4f9a;}function cloneChildren(_0x589507){const _0x2524f1=_0x589507['map'](_0x33f4da=>cloneNode(_0x33f4da,!0x0));for(let _0x40c61a=0x1;_0x40c61a<_0x2524f1['length'];_0x40c61a++)_0x2524f1[_0x40c61a]['prev']=_0x2524f1[_0x40c61a-0x1],_0x2524f1[_0x40c61a-0x1]['next']=_0x2524f1[_0x40c61a];return _0x2524f1;}const defaultOpts={'withStartIndices':!0x1,'withEndIndices':!0x1,'xmlMode':!0x1};class DomHandler{constructor(_0x1a2903,_0x59a04a,_0x5c3d68){this['dom']=[],this['root']=new Document(this['dom']),this['done']=!0x1,this['tagStack']=[this['root']],this['lastNode']=null,this['parser']=null,'function'==typeof _0x59a04a&&(_0x5c3d68=_0x59a04a,_0x59a04a=defaultOpts),'object'==typeof _0x1a2903&&(_0x59a04a=_0x1a2903,_0x1a2903=void 0x0),this['callback']=null!=_0x1a2903?_0x1a2903:null,this['options']=null!=_0x59a04a?_0x59a04a:defaultOpts,this['elementCB']=null!=_0x5c3d68?_0x5c3d68:null;}['onparserinit'](_0x1c224b){this['parser']=_0x1c224b;}['onreset'](){this['dom']=[],this['root']=new Document(this['dom']),this['done']=!0x1,this['tagStack']=[this['root']],this['lastNode']=null,this['parser']=null;}['onend'](){this['done']||(this['done']=!0x0,this['parser']=null,this['handleCallback'](null));}['onerror'](_0x498e5){this['handleCallback'](_0x498e5);}['onclosetag'](){this['lastNode']=null;const _0x2e4ae1=this['tagStack']['pop']();this['options']['withEndIndices']&&(_0x2e4ae1['endIndex']=this['parser']['endIndex']),this['elementCB']&&this['elementCB'](_0x2e4ae1);}['onopentag'](_0xedda00,_0x325667){const _0x34da84=this['options']['xmlMode']?ElementType['Tag']:void 0x0,_0x3608ed=new Element$3(_0xedda00,_0x325667,void 0x0,_0x34da84);this['addNode'](_0x3608ed),this['tagStack']['push'](_0x3608ed);}['ontext'](_0x18f1d4){const {lastNode:_0x5805e0}=this;if(_0x5805e0&&_0x5805e0['type']===ElementType['Text'])_0x5805e0['data']+=_0x18f1d4,this['options']['withEndIndices']&&(_0x5805e0['endIndex']=this['parser']['endIndex']);else{const _0x429355=new Text$1(_0x18f1d4);this['addNode'](_0x429355),this['lastNode']=_0x429355;}}['oncomment'](_0x226af7){if(this['lastNode']&&this['lastNode']['type']===ElementType['Comment'])return void(this['lastNode']['data']+=_0x226af7);const _0x479382=new Comment$1(_0x226af7);this['addNode'](_0x479382),this['lastNode']=_0x479382;}['oncommentend'](){this['lastNode']=null;}['oncdatastart'](){const _0x318a1d=new Text$1(''),_0x196984=new CDATA([_0x318a1d]);this['addNode'](_0x196984),_0x318a1d['parent']=_0x196984,this['lastNode']=_0x318a1d;}['oncdataend'](){this['lastNode']=null;}['onprocessinginstruction'](_0x1521e7,_0x54a0e3){const _0x391b28=new ProcessingInstruction(_0x1521e7,_0x54a0e3);this['addNode'](_0x391b28);}['handleCallback'](_0x421d83){if('function'==typeof this['callback'])this['callback'](_0x421d83,this['dom']);else{if(_0x421d83)throw _0x421d83;}}['addNode'](_0x4530aa){const _0x22dee5=this['tagStack'][this['tagStack']['length']-0x1],_0x3313bb=_0x22dee5['children'][_0x22dee5['children']['length']-0x1];this['options']['withStartIndices']&&(_0x4530aa['startIndex']=this['parser']['startIndex']),this['options']['withEndIndices']&&(_0x4530aa['endIndex']=this['parser']['endIndex']),_0x22dee5['children']['push'](_0x4530aa),_0x3313bb&&(_0x4530aa['prev']=_0x3313bb,_0x3313bb['next']=_0x4530aa),_0x4530aa['parent']=_0x22dee5,this['lastNode']=null;}}const xmlReplacer=/["&'<>$\x80-\uFFFF]/g,xmlCodeMap=new Map([[0x22,'&quot;'],[0x26,'&amp;'],[0x27,'&apos;'],[0x3c,'&lt;'],[0x3e,'&gt;']]),getCodePoint=null!=String['prototype']['codePointAt']?(_0x5e0611,_0x30659b)=>_0x5e0611['codePointAt'](_0x30659b):(_0x5240eb,_0x5e8e71)=>0xd800==(0xfc00&_0x5240eb['charCodeAt'](_0x5e8e71))?0x400*(_0x5240eb['charCodeAt'](_0x5e8e71)-0xd800)+_0x5240eb['charCodeAt'](_0x5e8e71+0x1)-0xdc00+0x10000:_0x5240eb['charCodeAt'](_0x5e8e71);function encodeXML(_0x25d435){let _0x204c23,_0x30db4f='',_0x4669d4=0x0;for(;null!==(_0x204c23=xmlReplacer['exec'](_0x25d435));){const _0x42e356=_0x204c23['index'],_0x4f562a=_0x25d435['charCodeAt'](_0x42e356),_0x31d36a=xmlCodeMap['get'](_0x4f562a);void 0x0!==_0x31d36a?(_0x30db4f+=_0x25d435['substring'](_0x4669d4,_0x42e356)+_0x31d36a,_0x4669d4=_0x42e356+0x1):(_0x30db4f+=_0x25d435['substring'](_0x4669d4,_0x42e356)+'&#x'+getCodePoint(_0x25d435,_0x42e356)['toString'](0x10)+';',_0x4669d4=xmlReplacer['lastIndex']+=Number(0xd800==(0xfc00&_0x4f562a)));}return _0x30db4f+_0x25d435['substr'](_0x4669d4);}function getEscaper(_0x4ad64f,_0x2d8f84){return function(_0x29b44f){let _0x30d48b,_0x52b5a4=0x0,_0x171420='';for(;_0x30d48b=_0x4ad64f['exec'](_0x29b44f);)_0x52b5a4!==_0x30d48b['index']&&(_0x171420+=_0x29b44f['substring'](_0x52b5a4,_0x30d48b['index'])),_0x171420+=_0x2d8f84['get'](_0x30d48b[0x0]['charCodeAt'](0x0)),_0x52b5a4=_0x30d48b['index']+0x1;return _0x171420+_0x29b44f['substring'](_0x52b5a4);};}const escapeAttribute=getEscaper(/["&\u00A0]/g,new Map([[0x22,'&quot;'],[0x26,'&amp;'],[0xa0,'&nbsp;']])),escapeText=getEscaper(/[&<>\u00A0]/g,new Map([[0x26,'&amp;'],[0x3c,'&lt;'],[0x3e,'&gt;'],[0xa0,'&nbsp;']])),elementNames=new Map(['altGlyph','altGlyphDef','altGlyphItem','animateColor','animateMotion','animateTransform','clipPath','feBlend','feColorMatrix','feComponentTransfer','feComposite','feConvolveMatrix','feDiffuseLighting','feDisplacementMap','feDistantLight','feDropShadow','feFlood','feFuncA','feFuncB','feFuncG','feFuncR','feGaussianBlur','feImage','feMerge','feMergeNode','feMorphology','feOffset','fePointLight','feSpecularLighting','feSpotLight','feTile','feTurbulence','foreignObject','glyphRef','linearGradient','radialGradient','textPath']['map'](_0x10fb30=>[_0x10fb30['toLowerCase'](),_0x10fb30])),attributeNames=new Map(['definitionURL','attributeName','attributeType','baseFrequency','baseProfile','calcMode','clipPathUnits','diffuseConstant','edgeMode','filterUnits','glyphRef','gradientTransform','gradientUnits','kernelMatrix','kernelUnitLength','keyPoints','keySplines','keyTimes','lengthAdjust','limitingConeAngle','markerHeight','markerUnits','markerWidth','maskContentUnits','maskUnits','numOctaves','pathLength','patternContentUnits','patternTransform','patternUnits','pointsAtX','pointsAtY','pointsAtZ','preserveAlpha','preserveAspectRatio','primitiveUnits','refX','refY','repeatCount','repeatDur','requiredExtensions','requiredFeatures','specularConstant','specularExponent','spreadMethod','startOffset','stdDeviation','stitchTiles','surfaceScale','systemLanguage','tableValues','targetX','targetY','textLength','viewBox','viewTarget','xChannelSelector','yChannelSelector','zoomAndPan']['map'](_0x7fedc4=>[_0x7fedc4['toLowerCase'](),_0x7fedc4])),unencodedElements=new Set(['style','script','xmp','iframe','noembed','noframes','plaintext','noscript']);function replaceQuotes(_0x31fb83){return _0x31fb83['replace'](/"/g,'&quot;');}function formatAttributes(_0x5b9fd,_0x1a7033){var _0x26fda7;if(!_0x5b9fd)return;const _0x57f6df=!0x1===(null!==(_0x26fda7=_0x1a7033['encodeEntities'])&&void 0x0!==_0x26fda7?_0x26fda7:_0x1a7033['decodeEntities'])?replaceQuotes:_0x1a7033['xmlMode']||'utf8'!==_0x1a7033['encodeEntities']?encodeXML:escapeAttribute;return Object['keys'](_0x5b9fd)['map'](_0x1d5ef6=>{var _0x16ebd3,_0x45f867;const _0x9005b2=null!==(_0x16ebd3=_0x5b9fd[_0x1d5ef6])&&void 0x0!==_0x16ebd3?_0x16ebd3:'';return'foreign'===_0x1a7033['xmlMode']&&(_0x1d5ef6=null!==(_0x45f867=attributeNames['get'](_0x1d5ef6))&&void 0x0!==_0x45f867?_0x45f867:_0x1d5ef6),_0x1a7033['emptyAttrs']||_0x1a7033['xmlMode']||''!==_0x9005b2?_0x1d5ef6+'=\x22'+_0x57f6df(_0x9005b2)+'\x22':_0x1d5ef6;})['join']('\x20');}const singleTag=new Set(['area','base','basefont','br','col','command','embed','frame','hr','img','input','isindex','keygen','link','meta','param','source','track','wbr']);function render(_0x990555,_0x37d6df={}){const _0x73fa76='length'in _0x990555?_0x990555:[_0x990555];let _0x15af4c='';for(let _0x3abf65=0x0;_0x3abf65<_0x73fa76['length'];_0x3abf65++)_0x15af4c+=renderNode(_0x73fa76[_0x3abf65],_0x37d6df);return _0x15af4c;}function renderNode(_0x390cc7,_0x3deac6){switch(_0x390cc7['type']){case Root:return render(_0x390cc7['children'],_0x3deac6);case Doctype:case Directive:return renderDirective(_0x390cc7);case Comment$2:return renderComment(_0x390cc7);case CDATA$1:return renderCdata(_0x390cc7);case Script:case Style:case Tag$1:return renderTag(_0x390cc7,_0x3deac6);case Text$2:return renderText(_0x390cc7,_0x3deac6);}}const foreignModeIntegrationPoints=new Set(['mi','mo','mn','ms','mtext','annotation-xml','foreignObject','desc','title']),foreignElements=new Set(['svg','math']);function renderTag(_0x498e8e,_0x3bc2b2){var _0x3d3980;'foreign'===_0x3bc2b2['xmlMode']&&(_0x498e8e['name']=null!==(_0x3d3980=elementNames['get'](_0x498e8e['name']))&&void 0x0!==_0x3d3980?_0x3d3980:_0x498e8e['name'],_0x498e8e['parent']&&foreignModeIntegrationPoints['has'](_0x498e8e['parent']['name'])&&(_0x3bc2b2={..._0x3bc2b2,'xmlMode':!0x1})),!_0x3bc2b2['xmlMode']&&foreignElements['has'](_0x498e8e['name'])&&(_0x3bc2b2={..._0x3bc2b2,'xmlMode':'foreign'});let _0x3e608b='<'+_0x498e8e['name'];const _0x49dc28=formatAttributes(_0x498e8e['attribs'],_0x3bc2b2);return _0x49dc28&&(_0x3e608b+='\x20'+_0x49dc28),0x0===_0x498e8e['children']['length']&&(_0x3bc2b2['xmlMode']?!0x1!==_0x3bc2b2['selfClosingTags']:_0x3bc2b2['selfClosingTags']&&singleTag['has'](_0x498e8e['name']))?(_0x3bc2b2['xmlMode']||(_0x3e608b+='\x20'),_0x3e608b+='/>'):(_0x3e608b+='>',_0x498e8e['children']['length']>0x0&&(_0x3e608b+=render(_0x498e8e['children'],_0x3bc2b2)),!_0x3bc2b2['xmlMode']&&singleTag['has'](_0x498e8e['name'])||(_0x3e608b+='</'+_0x498e8e['name']+'>')),_0x3e608b;}function renderDirective(_0x3c1082){return'<'+_0x3c1082['data']+'>';}function renderText(_0x4dc33f,_0x1878d5){var _0x1264b9;let _0x1a3dc3=_0x4dc33f['data']||'';return!0x1===(null!==(_0x1264b9=_0x1878d5['encodeEntities'])&&void 0x0!==_0x1264b9?_0x1264b9:_0x1878d5['decodeEntities'])||!_0x1878d5['xmlMode']&&_0x4dc33f['parent']&&unencodedElements['has'](_0x4dc33f['parent']['name'])||(_0x1a3dc3=_0x1878d5['xmlMode']||'utf8'!==_0x1878d5['encodeEntities']?encodeXML(_0x1a3dc3):escapeText(_0x1a3dc3)),_0x1a3dc3;}function renderCdata(_0xecd8a9){return'<![CDATA['+_0xecd8a9['children'][0x0]['data']+']]>';}function renderComment(_0x1c2b63){return'<!--'+_0x1c2b63['data']+'-->';}function textContent(_0x278e33){return Array['isArray'](_0x278e33)?_0x278e33['map'](textContent)['join'](''):hasChildren(_0x278e33)&&!isComment(_0x278e33)?textContent(_0x278e33['children']):isText$1(_0x278e33)?_0x278e33['data']:'';}function getChildren$1(_0x1cf81e){return hasChildren(_0x1cf81e)?_0x1cf81e['children']:[];}function getParent(_0x3698af){return _0x3698af['parent']||null;}function removeElement(_0x471877){if(_0x471877['prev']&&(_0x471877['prev']['next']=_0x471877['next']),_0x471877['next']&&(_0x471877['next']['prev']=_0x471877['prev']),_0x471877['parent']){const _0xa05868=_0x471877['parent']['children'],_0x2ce84d=_0xa05868['lastIndexOf'](_0x471877);_0x2ce84d>=0x0&&_0xa05868['splice'](_0x2ce84d,0x1);}_0x471877['next']=null,_0x471877['prev']=null,_0x471877['parent']=null;}function replaceElement(_0x1c9f38,_0xf5dec1){const _0x24df53=_0xf5dec1['prev']=_0x1c9f38['prev'];_0x24df53&&(_0x24df53['next']=_0xf5dec1);const _0x1454e3=_0xf5dec1['next']=_0x1c9f38['next'];_0x1454e3&&(_0x1454e3['prev']=_0xf5dec1);const _0x29cc93=_0xf5dec1['parent']=_0x1c9f38['parent'];if(_0x29cc93){const _0x125f67=_0x29cc93['children'];_0x125f67[_0x125f67['lastIndexOf'](_0x1c9f38)]=_0xf5dec1,_0x1c9f38['parent']=null;}}function appendChild(_0x3a92dc,_0x527cbf){if(removeElement(_0x527cbf),_0x527cbf['next']=null,_0x527cbf['parent']=_0x3a92dc,_0x3a92dc['children']['push'](_0x527cbf)>0x1){const _0x3193a2=_0x3a92dc['children'][_0x3a92dc['children']['length']-0x2];_0x3193a2['next']=_0x527cbf,_0x527cbf['prev']=_0x3193a2;}else _0x527cbf['prev']=null;}function append(_0x1c7aa4,_0x2ea9de){removeElement(_0x2ea9de);const {parent:_0x5760e0}=_0x1c7aa4,_0x4a4419=_0x1c7aa4['next'];if(_0x2ea9de['next']=_0x4a4419,_0x2ea9de['prev']=_0x1c7aa4,_0x1c7aa4['next']=_0x2ea9de,_0x2ea9de['parent']=_0x5760e0,_0x4a4419){if(_0x4a4419['prev']=_0x2ea9de,_0x5760e0){const _0x19e724=_0x5760e0['children'];_0x19e724['splice'](_0x19e724['lastIndexOf'](_0x4a4419),0x0,_0x2ea9de);}}else _0x5760e0&&_0x5760e0['children']['push'](_0x2ea9de);}function prependChild(_0x11e49f,_0x143c4a){if(removeElement(_0x143c4a),_0x143c4a['parent']=_0x11e49f,_0x143c4a['prev']=null,0x1!==_0x11e49f['children']['unshift'](_0x143c4a)){const _0x2b9cdc=_0x11e49f['children'][0x1];_0x2b9cdc['prev']=_0x143c4a,_0x143c4a['next']=_0x2b9cdc;}else _0x143c4a['next']=null;}function prepend(_0x39a7ce,_0x74a50b){removeElement(_0x74a50b);const {parent:_0x169120}=_0x39a7ce;if(_0x169120){const _0xb9b394=_0x169120['children'];_0xb9b394['splice'](_0xb9b394['indexOf'](_0x39a7ce),0x0,_0x74a50b);}_0x39a7ce['prev']&&(_0x39a7ce['prev']['next']=_0x74a50b),_0x74a50b['parent']=_0x169120,_0x74a50b['prev']=_0x39a7ce['prev'],_0x74a50b['next']=_0x39a7ce,_0x39a7ce['prev']=_0x74a50b;}function find$1(_0x5d4bab,_0x170609,_0x43cbb2,_0x302258){const _0x1ff596=[],_0x61c8c3=[Array['isArray'](_0x170609)?_0x170609:[_0x170609]],_0x35a871=[0x0];for(;;){if(_0x35a871[0x0]>=_0x61c8c3[0x0]['length']){if(0x1===_0x35a871['length'])return _0x1ff596;_0x61c8c3['shift'](),_0x35a871['shift']();continue;}const _0x3b65a9=_0x61c8c3[0x0][_0x35a871[0x0]++];if(_0x5d4bab(_0x3b65a9)&&(_0x1ff596['push'](_0x3b65a9),--_0x302258<=0x0))return _0x1ff596;hasChildren(_0x3b65a9)&&_0x3b65a9['children']['length']>0x0&&(_0x35a871['unshift'](0x0),_0x61c8c3['unshift'](_0x3b65a9['children']));}}function findOne(_0x36ac84,_0x3500da,_0x4aec05=!0x0){const _0x538157=Array['isArray'](_0x3500da)?_0x3500da:[_0x3500da];for(let _0x473a2a=0x0;_0x473a2a<_0x538157['length'];_0x473a2a++){const _0x370669=_0x538157[_0x473a2a];if(isTag(_0x370669)&&_0x36ac84(_0x370669))return _0x370669;if(_0x4aec05&&hasChildren(_0x370669)&&_0x370669['children']['length']>0x0){const _0x4b1cd0=findOne(_0x36ac84,_0x370669['children'],!0x0);if(_0x4b1cd0)return _0x4b1cd0;}}return null;}function findAll(_0x371a7f,_0x396b46){const _0x2a12f0=[],_0x2a97b7=[Array['isArray'](_0x396b46)?_0x396b46:[_0x396b46]],_0x38e393=[0x0];for(;;){if(_0x38e393[0x0]>=_0x2a97b7[0x0]['length']){if(0x1===_0x2a97b7['length'])return _0x2a12f0;_0x2a97b7['shift'](),_0x38e393['shift']();continue;}const _0x179fbc=_0x2a97b7[0x0][_0x38e393[0x0]++];isTag(_0x179fbc)&&_0x371a7f(_0x179fbc)&&_0x2a12f0['push'](_0x179fbc),hasChildren(_0x179fbc)&&_0x179fbc['children']['length']>0x0&&(_0x38e393['unshift'](0x0),_0x2a97b7['unshift'](_0x179fbc['children']));}}function parseDocument(_0x1ec282,_0x236365){const _0x506bf2=new DomHandler(void 0x0,_0x236365);return new Parser$1(_0x506bf2,_0x236365)['end'](_0x1ec282),_0x506bf2['root'];}function parse$2(_0x2596d2){return parseDocument(_0x2596d2);}function serialize(_0x2a917b){return render(_0x2a917b);}function findByAttribute(_0x1c91be,_0x1e0509,_0x28b971){const _0x112e95=null!==_0x1e0509?_0xd8ae7c=>_0xd8ae7c['attribs'][_0x1c91be]===_0x1e0509:_0x2a7e63=>Boolean(_0x2a7e63['attribs'][_0x1c91be]);return findOne(_0x2283fb=>isTag(_0x2283fb)&&_0x112e95(_0x2283fb),_0x28b971);}function findAllByAttribute(_0x1fc7dc,_0x4c8302,_0x2198db){const _0x528e73=null!==_0x4c8302?_0x34dab2=>_0x34dab2['attribs'][_0x1fc7dc]===_0x4c8302:_0x195ad1=>Boolean(_0x195ad1['attribs'][_0x1fc7dc]);return findAll(_0x3af596=>isTag(_0x3af596)&&_0x528e73(_0x3af596),_0x2198db);}function findAllComments(_0x2c5376){return find$1(_0x4d8cba=>isComment(_0x4d8cba),_0x2c5376,!0x0,0x1/0x0);}function getAttribute(_0x1cc661,_0x162467){return _0x1cc661&&isTag(_0x1cc661)?_0x1cc661['attribs'][_0x162467]:null;}function setAttribute(_0x600709,_0x4d3c3b,_0x4889ee){isTag(_0x600709)&&(null===_0x4889ee?delete _0x600709['attribs'][_0x4d3c3b]:_0x600709['attribs'][_0x4d3c3b]=_0x4889ee);}function insertElement(_0x4ca98a,_0x44b4bb,_0x519dbc){const _0x3c3cfa=_0x44b4bb['cloneNode'](!0x0);'beforebegin'===_0x519dbc?prepend(_0x4ca98a,_0x3c3cfa):'afterbegin'===_0x519dbc?prependChild(_0x4ca98a,_0x3c3cfa):'beforeend'===_0x519dbc?appendChild(_0x4ca98a,_0x3c3cfa):'afterend'===_0x519dbc&&append(_0x4ca98a,_0x3c3cfa);}function moveElement(_0x3ccea5,_0xb7fd67){removeElement(_0x3ccea5),replaceElement(_0xb7fd67,_0x3ccea5);}function clone$2(_0xe0c7f1){return _0xe0c7f1['cloneNode'](!0x0);}function getParents(_0x223607){const _0x4a7636=[];let _0x5cab00=_0x223607;for(;_0x5cab00;)_0x5cab00=getParent(_0x5cab00),_0x5cab00&&_0x4a7636['push'](_0x5cab00);return _0x4a7636;}function normalizeHTML(_0x235f2e){return _0x235f2e['replace'](/^\s+/gm,'')['replace'](/\s+$/gm,'')['replace'](/\n*/g,'')['replace'](/\s+/g,'\x20')['replace'](/>\s*</g,'><');}function areNodesSame(_0x2c1952,_0x16262b){return normalizeHTML(serialize(_0x2c1952))===normalizeHTML(serialize(_0x16262b));}function getNodeNestingLevel(_0x3aedcf){let _0x265f63=0x0;for(;_0x3aedcf['parentNode'];)_0x3aedcf=_0x3aedcf['parentNode'],_0x265f63++;return _0x265f63;}function removeElementsAfter(_0x548013){const _0x1c2575=[];let _0x724996=_0x548013['nextSibling'];for(;_0x724996;)_0x1c2575['push'](_0x724996),_0x724996=_0x724996['nextSibling'];_0x1c2575['forEach'](_0x392736=>{removeElement(_0x392736);});}class AIResponseParser extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_m2html'];constructor(){super(),this['_m2html']=new MarkdownGfmMdToHtml();}['convertMarkdownToHTML'](_0x4a7589){const _0x52002f=this['_m2html']['parse'](_0x4a7589);return this['parseAndNormalizeHTML'](_0x52002f);}['parseAndNormalizeHTML'](_0x294d59){return this['_parseHTML'](_0x294d59);}['_parseHTML'](_0x4e5bfe){const _0x4403b3=parse$2('<dummy>'+_0x4e5bfe['replace'](/^\t+/gm,'\x20')['replace'](/\n*/g,'')['replace'](/\s+/g,'\x20')['replace'](/<[^>]*?$/g,'')+'</dummy>');return _0x4403b3['children']=_0x4403b3['children'][0x0]['children'],_0x4403b3;}}class AIResponseApplier extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_generateUid'];['_touchedNodesState']={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};['_existingDataIds']=new Set();constructor(_0x15b421){super(),this['_generateUid']=_0x15b421||uid;}['merge'](_0x2244ad,_0x34fa17,_0x1be4bf){const _0x4b47c5=clone$2(_0x2244ad);if(0x0===_0x34fa17['childNodes']['length']){const _0x536a27=[];return findAllByAttribute('data-id','new-element',_0x4b47c5)['forEach'](_0x4a1a55=>{const _0x14455f=this['_generateUid']();setAttribute(_0x4a1a55,'data-id',_0x14455f),_0x536a27['push'](_0x14455f);}),this['_removeSpecialComments'](_0x4b47c5),{'parsedContent':_0x4b47c5,'newNodeIds':_0x536a27,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x1be4bf&&_0x1be4bf['markUnstableElements']&&this['_markLastTagElementUnstable'](_0x4b47c5),this['_touchedNodesState']['newIds']=[],this['_touchedNodesState']['modifiedIds']=[],this['_touchedNodesState']['removedIds']=[],this['_touchedNodesState']['invalidIds']=[],this['_touchedNodesState']['lastTouchedId']=null,this['_existingDataIds']=new Set(findAllByAttribute('data-id',null,_0x34fa17)['map'](_0x53cd76=>getAttribute(_0x53cd76,'data-id'))['filter'](_0x4c7afb=>!!_0x4c7afb));let _0x50e676=-0x1,_0x5d5814=!0x1;const _0x2afe91=_0x4b47c5['childNodes'],_0xe768a3=Array['from'](_0x2afe91)['filter'](_0x1c0f02=>!(0x3===_0x1c0f02['nodeType']&&''===serialize(_0x1c0f02)['trim']())),_0x4623fc=_0xe768a3['length'];for(let _0x364c9a=0x0;_0x364c9a<_0x4623fc;_0x364c9a++){const _0xa1497b=_0xe768a3[_0x364c9a],_0x4e4597=_0xe768a3[_0x364c9a+0x1];if(this['_isNewNode'](_0xa1497b)){if(-0x1===_0x50e676&&(_0x50e676=_0x364c9a),this['_markWrappedElements'](_0xa1497b),!this['_isNewNode'](_0x4e4597)){const [_0x122bb9,_0x1fedef]=this['_findReferenceNode'](_0xa1497b,_0x5d5814,_0x34fa17);if(_0x122bb9){const _0x1f899b=Array['from'](_0xe768a3)['slice'](_0x50e676,_0x364c9a+0x1);this['_insertNodes'](_0x122bb9,_0x1f899b,_0x1fedef),_0x50e676=-0x1;}}}else{if(this['_isExistingContentComment'](_0xa1497b))_0x5d5814=!0x0;else{if(this['_isExistingNode'](_0xa1497b)){const _0x4a3de5=getAttribute(_0xa1497b,'data-id');if(_0x4a3de5&&this['_existingDataIds']['has'](_0x4a3de5)){const _0x253a4b=findByAttribute('data-id',_0x4a3de5,_0x34fa17);this['_replaceNode'](_0x253a4b,_0xa1497b);}if(this['_touchedNodesState']['removedIds']['includes'](_0x4a3de5)){const _0x185275=this['_touchedNodesState']['removedIds']['indexOf'](_0x4a3de5);this['_touchedNodesState']['removedIds']['splice'](_0x185275,0x1);}}else{if(this['_isDelNode'](_0xa1497b)){const _0x8eb580=getAttribute(_0xa1497b,'data-id');this['_touchedNodesState']['modifiedIds']['includes'](_0x8eb580)||this['_storeDeletedElementIds'](_0xa1497b);}}}}}for(const _0x55f3c1 of this['_touchedNodesState']['removedIds']){const _0x1fc6a4=findByAttribute('data-id',_0x55f3c1,_0x34fa17);if(_0x1fc6a4){if(_0x1be4bf&&_0x1be4bf['replaceRemovedWith']){this['_touchedNodesState']['lastTouchedId']=_0x55f3c1;const _0x1dc94d=_0x1be4bf['replaceRemovedWith']['cloneNode'](!0x0);setAttribute(_0x1dc94d,'data-id',_0x55f3c1),setAttribute(_0x1dc94d,'data-removed','true'),replaceElement(_0x1fc6a4,_0x1dc94d);}else removeElement(_0x1fc6a4);}}if(findAllByAttribute('data-wrapped-id',null,_0x34fa17)['forEach'](_0x23352e=>{const _0x3f11d=findByAttribute('data-id',getAttribute(_0x23352e,'data-wrapped-id'),_0x34fa17);_0x3f11d&&moveElement(_0x3f11d,_0x23352e);}),findAllByAttribute('data-id','new-element',_0x34fa17)['forEach'](_0x35b8bb=>{const _0x2da800=this['_getUid'](_0x35b8bb);setAttribute(_0x35b8bb,'data-id',_0x2da800),this['_touchedNodesState']['newIds']['push'](_0x2da800);}),this['_removeSpecialComments'](_0x34fa17),_0x1be4bf&&_0x1be4bf['markUnstableElements']&&this['_markUnstableElements'](_0x34fa17,_0x1be4bf['markUnstableElementsDepth']||0x0),_0x1be4bf&&_0x1be4bf['cutAfterLastChange']&&this['_touchedNodesState']['lastTouchedId']){let _0x12e24f=findByAttribute('data-id',this['_touchedNodesState']['lastTouchedId'],_0x34fa17);for(;_0x12e24f;)removeElementsAfter(_0x12e24f),_0x12e24f=_0x12e24f['parentNode'];}return{'parsedContent':_0x34fa17,'newNodeIds':this['_touchedNodesState']['newIds'],'modifiedNodeIds':this['_touchedNodesState']['modifiedIds'],'removedNodeIds':this['_touchedNodesState']['removedIds']};}['_insertNodes'](_0x5a8e2d,_0x397d98,_0x38240b){for(const _0x527cf4 of _0x397d98){const _0xa6fa79=this['_getUid'](_0x527cf4);setAttribute(_0x527cf4,'data-id',_0xa6fa79),this['_touchedNodesState']['newIds']['push'](_0xa6fa79),this['_touchedNodesState']['lastTouchedId']=_0xa6fa79;}const _0x6a962c='afterbegin'===_0x38240b||'afterend'===_0x38240b?_0x397d98['reverse']():_0x397d98;for(const _0x34c89e of _0x6a962c)insertElement(_0x5a8e2d,_0x34c89e,_0x38240b);}['_replaceNode'](_0x19ace8,_0x43e68a){if(!_0x19ace8)return;if(areNodesSame(_0x19ace8,_0x43e68a))return;const _0x548145=this['_getUid'](_0x19ace8);setAttribute(_0x43e68a,'data-id',_0x548145),this['_touchedNodesState']['modifiedIds']['push'](_0x548145),this['_touchedNodesState']['lastTouchedId']=_0x548145,replaceElement(_0x19ace8,_0x43e68a['cloneNode'](!0x0));}['_findReferenceNode'](_0x8d114f,_0x5ec9e5,_0x4c10cc){const _0x1c24d8=this['_findPrevElementWithDataId'](_0x8d114f,!0x1);if(_0x1c24d8){const _0x5b0eba=this['_getNodeDataId'](_0x1c24d8),_0x34bc4c=findByAttribute('data-id',_0x5b0eba,_0x4c10cc);if(_0x34bc4c)return[_0x34bc4c,'afterend'];this['_touchedNodesState']['invalidIds']['push'](_0x5b0eba);}const _0x1876c2=this['_findNextElementWithDataId'](_0x8d114f,!0x1);if(_0x1876c2){const _0x193e6d=this['_getNodeDataId'](_0x1876c2),_0x4ca75f=findByAttribute('data-id',_0x193e6d,_0x4c10cc);if(_0x4ca75f)return[_0x4ca75f,'beforebegin'];this['_touchedNodesState']['invalidIds']['push'](_0x193e6d);}return _0x5ec9e5?_0x8d114f['nextSibling']?this['_findFallbackReferenceNode'](_0x8d114f,_0x4c10cc):[_0x4c10cc['childNodes'][_0x4c10cc['childNodes']['length']-0x1],'afterend']:[_0x4c10cc['childNodes'][0x0],'beforebegin'];}['_findFallbackReferenceNode'](_0x2bf555,_0x6c3ede){const _0x630b23=[],_0x351b69=this['_findPrevElementWithDataId'](_0x2bf555,!0x0);if(_0x351b69){const _0x440864=findByAttribute('data-id',this['_getNodeDataId'](_0x351b69),_0x6c3ede);_0x440864&&_0x630b23['push']([_0x440864,'afterend']);}const _0x494ab9=this['_findNextElementWithDataId'](_0x2bf555,!0x0);if(_0x494ab9){const _0x56f03f=findByAttribute('data-id',this['_getNodeDataId'](_0x494ab9),_0x6c3ede);_0x56f03f&&_0x630b23['push']([_0x56f03f,'beforebegin']);}if(_0x630b23['length']>0x1)return getNodeNestingLevel(_0x630b23[0x0][0x0])<=getNodeNestingLevel(_0x630b23[0x1][0x0])?_0x630b23[0x0]:_0x630b23[0x1];return 0x1===_0x630b23['length']?_0x630b23[0x0]:[_0x6c3ede['lastChild'],'afterend'];}['_findNextElementWithDataId'](_0x37658b,_0x3aea85){let _0x291db3=_0x37658b['nextSibling'],_0x3582af=null,_0x10be3f=!0x1;for(;_0x291db3;){if(isComment(_0x291db3)){if(this['_isDelNode'](_0x291db3)&&(_0x3582af=_0x291db3),this['_isExistingContentComment'](_0x291db3)&&_0x3aea85&&!_0x10be3f){_0x10be3f=!0x0,_0x291db3=_0x291db3['nextSibling'];continue;}break;}const _0x1f6aca=getAttribute(_0x291db3,'data-id');if(_0x1f6aca&&'new-element'!==_0x1f6aca&&this['_existingDataIds']['has'](_0x1f6aca)){_0x3582af=_0x291db3;break;}_0x291db3=_0x291db3['nextSibling'];}return _0x3582af;}['_findPrevElementWithDataId'](_0x4fa75e,_0x38412e){let _0x1ce5ae=_0x4fa75e['previousSibling'],_0x454d3a=null,_0x190778=!0x1;for(;_0x1ce5ae;){if(isComment(_0x1ce5ae)){if(this['_isDelNode'](_0x1ce5ae)&&(_0x454d3a=_0x1ce5ae),this['_isExistingContentComment'](_0x1ce5ae)&&_0x38412e&&!_0x190778){_0x190778=!0x0,_0x1ce5ae=_0x1ce5ae['previousSibling'];continue;}break;}const _0x405125=getAttribute(_0x1ce5ae,'data-id');if(_0x405125&&'new-element'!==_0x405125&&this['_existingDataIds']['has'](_0x405125)){_0x454d3a=_0x1ce5ae;break;}_0x1ce5ae=_0x1ce5ae['previousSibling'];}return _0x454d3a;}['_markWrappedElements'](_0x32ac38){isTag(_0x32ac38)&&findAllByAttribute('data-id',null,_0x32ac38)['forEach'](_0x55225d=>{this['_isExistingNode'](_0x55225d)&&!this['_hasWrappedParent'](_0x55225d)&&(setAttribute(_0x55225d,'data-wrapped-id',getAttribute(_0x55225d,'data-id')),setAttribute(_0x55225d,'data-id',null));});}['_getNodeDataId'](_0x3e81dd){if(!_0x3e81dd)return null;if(isTag(_0x3e81dd))return getAttribute(_0x3e81dd,'data-id');if(isComment(_0x3e81dd)){const _0x236a8e=serialize(_0x3e81dd)['match'](/removed[\s*-]data-id="([^"]+)"/);if(_0x236a8e&&_0x236a8e[0x1])return _0x236a8e[0x1];}return null;}['_storeDeletedElementIds'](_0x19a502){if(isComment(_0x19a502)){const _0x1fcb5d=serialize(_0x19a502)['match'](/removed[\s*-]data-id="([^"]+)"/);_0x1fcb5d&&_0x1fcb5d[0x1]&&this['_touchedNodesState']['removedIds']['push'](_0x1fcb5d[0x1]);}}['_getUid'](_0x400abb){return this['_isExistingNode'](_0x400abb)?getAttribute(_0x400abb,'data-id'):this['_generateUid']();}['_removeSpecialComments'](_0x27701b){findAllComments(_0x27701b)['filter'](_0x4c2452=>this['_isDelNode'](_0x4c2452)||this['_isExistingContentComment'](_0x4c2452))['forEach'](_0x3a8260=>{removeElement(_0x3a8260);});}['_markLastTagElementUnstable'](_0x3a7180){const _0x264d7d=_0x3a7180['childNodes'],_0x1523a6=_0x264d7d[_0x264d7d['length']-0x1];_0x1523a6&&isTag(_0x1523a6)&&setAttribute(_0x1523a6,'data-unstable','true');}['_markUnstableElements'](_0x4d590e,_0x3af054){const _0x343ecb=findByAttribute('data-unstable','true',_0x4d590e);if(!_0x343ecb)return;const _0x20399e=getParents(_0x343ecb)['slice'](0x0,-0x1),_0x21d42a=_0x20399e['length'];let _0x383fc5=_0x343ecb;if(_0x21d42a>_0x3af054){let _0x451c60=_0x21d42a,_0x478da2=null;for(;_0x451c60>_0x3af054&&_0x451c60>=0x0;)_0x451c60--,_0x478da2=_0x20399e[_0x451c60];_0x478da2&&(_0x383fc5=_0x478da2,setAttribute(_0x343ecb,'data-unstable',null),setAttribute(_0x478da2,'data-unstable','true'));}else{if(_0x21d42a<_0x3af054){let _0x505fc8=_0x21d42a,_0x1aa49c=_0x343ecb;for(;_0x505fc8<_0x3af054;){const _0x1e4752=_0x1aa49c['childNodes']['filter'](_0xc88f75=>isTag(_0xc88f75));if(0x0===_0x1e4752['length'])break;_0x505fc8++,_0x1aa49c=_0x1e4752[_0x1e4752['length']-0x1];}_0x1aa49c&&(_0x383fc5=_0x1aa49c,setAttribute(_0x343ecb,'data-unstable',null),setAttribute(_0x1aa49c,'data-unstable','true'));}}let _0xd9666e=_0x383fc5;for(;_0xd9666e;){for(;_0xd9666e['nextSibling'];)_0xd9666e=_0xd9666e['nextSibling'],isTag(_0xd9666e)&&setAttribute(_0xd9666e,'data-unstable','true');_0xd9666e=_0xd9666e['parentNode'];}}['_isNewNode'](_0x3a8132){return Boolean('new-element'===getAttribute(_0x3a8132,'data-id'));}['_isExistingNode'](_0x4af9de){return Boolean((getAttribute(_0x4af9de,'data-id')||'')['length']>0x0&&'new-element'!==getAttribute(_0x4af9de,'data-id'));}['_isDelNode'](_0x6b8248){return!!_0x6b8248&&Boolean(isComment(_0x6b8248)&&serialize(_0x6b8248)['match'](/removed[\s*-]data-id="[^"]+"/));}['_hasWrappedParent'](_0xf94cb9){let _0x1d4158=_0xf94cb9['parentNode'];for(;_0x1d4158;){if(getAttribute(_0x1d4158,'data-wrapped-id'))return!0x0;_0x1d4158=_0x1d4158['parentNode'];}return!0x1;}['_isExistingContentComment'](_0x284704){return Boolean(isComment(_0x284704)&&serialize(_0x284704)['match'](/\s*existing[\s*-](content|document)\s*/g));}}const AI_REPLY_TYPES=['modification-delta','text-delta','web-search','reasoning'],AI_REPLY_TYPES_IGNORED=['conversation-title'],AI_REPLY_TITLE_TYPE='conversation-title';class AIReply extends ObservableMixin(){['id'];['interactionId'];['type'];['sources']=[];['parsedContent']=new Document([]);['parsedMergedContent']=new Document([]);['changeGroups']=[];['areActionsDisabled']=!0x1;['documentContextContent'];['aiResponseParser'];['aiResponseApplier'];['editor'];constructor({type:_0x85e72e,content:_0x81d06='',isDone:_0x25c1b4=!0x1,interactionId:_0x20b1d8,areActionsDisabled:_0x3295aa,documentContextContent:_0x63d5c,editor:_0x4f985e}){super(),this['id']=uid(),this['interactionId']=_0x20b1d8,this['type']=_0x85e72e,this['areActionsDisabled']=!!_0x3295aa,this['editor']=_0x4f985e,this['aiResponseParser']=new AIResponseParser(),this['aiResponseApplier']=new AIResponseApplier(),this['documentContextContent']=parse$2(_0x63d5c||''),this['set']('isDone',_0x25c1b4),this['on']('change:content',()=>{this['onContentChange']();}),this['set']('content',_0x81d06);}['appendContent'](_0x3fc650){this['set']('content',this['content']+_0x3fc650);}['done'](){this['isDone']||(this['set']('isDone',!0x0),this['onContentChange']());}['destroy'](){this['stopListening']();}['setChangeGroupState'](_0x485b63,_0x4be3a2){this['changeGroups'][_0x485b63]['state']=_0x4be3a2,this['fire']('replyChangeGroupStateUpdated',{'reply':this,'index':_0x485b63,'state':_0x4be3a2});}['onContentChange'](){if('modification-delta'===this['type']){this['parsedContent']=this['aiResponseParser']['parseAndNormalizeHTML'](this['content']);const _0x382e4e=this['changeGroups'];this['updateChangeGroups']();const _0x3e8217=this['_getDifferentChangeGroups'](_0x382e4e,this['changeGroups']);(_0x3e8217['length']||this['isDone'])&&this['fire']('replyContentUpdated',this,_0x3e8217);}else this['parsedContent']=this['aiResponseParser']['convertMarkdownToHTML'](this['content']),this['fire']('replyContentUpdated',this);}['_getDifferentChangeGroups'](_0x27b99b,_0x3b43b0){const _0x140996=[];for(const _0xa9c62b of _0x3b43b0){const _0x5c61f7=_0x27b99b[_0xa9c62b['index']];_0x5c61f7?_0x5c61f7['changes']['length']!==_0xa9c62b['changes']['length']?_0x140996['push'](_0xa9c62b):_0x5c61f7['changes']['forEach']((_0xf32e7d,_0x4d798f)=>{const _0x144334=_0xa9c62b['changes'][_0x4d798f];_0xf32e7d['id']!==_0x144334['id']&&_0x140996['push'](_0xa9c62b);}):_0x140996['push'](_0xa9c62b);}return _0x140996;}['updateChangeGroups'](){const _0x57c3d2=new Element$3('p',{},[new Element$3('span',{'style':'color:\x20#808080;\x20font-style:\x20italic'},[new Text$1(getTranslation$i(this['editor']['locale'],'AI_SUGGESTION_CONTENT_PART_REMOVED'))])]),_0xf35a2e=this['aiResponseApplier']['merge'](this['parsedContent'],this['documentContextContent']['cloneNode'](!0x0),{'markUnstableElements':!this['isDone'],'replaceRemovedWith':_0x57c3d2,'cutAfterLastChange':!this['isDone']});if(!_0xf35a2e['modifiedNodeIds']['length']&&!this['isDone'])return;this['parsedMergedContent']=_0xf35a2e['parsedContent'];let _0x130086=[];if(findAll(_0x54a972=>{const _0x1f3860=getAttribute(_0x54a972,'data-id');if(!_0x1f3860||!_0x5a9504(_0x1f3860))return!0x1;const _0xd2ff19=[_0x54a972,...getParents(_0x54a972)]['at'](-0x2);if(_0x54a972!=_0xd2ff19){const _0x867c4=getAttribute(_0xd2ff19,'data-id');_0x5a9504(_0x867c4)||(_0x130086['push']({'node':_0xd2ff19,'id':_0x867c4,'type':'modified'}),_0xf35a2e['modifiedNodeIds']['push'](_0x867c4));}else _0xf35a2e['modifiedNodeIds']['includes'](_0x1f3860)?_0x130086['push']({'node':_0x54a972,'type':'modified','id':_0x1f3860}):_0xf35a2e['newNodeIds']['includes'](_0x1f3860)?_0x130086['push']({'node':_0x54a972,'type':'new','id':_0x1f3860,'anchorId':getAttribute(_0x54a972['previousSibling'],'data-id')}):_0x130086['push']({'node':_0x54a972,'type':'removed','id':_0x1f3860});return!0x0;},this['parsedMergedContent']),_0x130086=_0x130086['filter'](({node:_0x198db5})=>[...getParents(_0x198db5),_0x198db5]['every'](_0x279ee5=>!getAttribute(_0x279ee5,'data-unstable'))),0x0==_0x130086['length'])return;const _0x41dfca=[[_0x130086[0x0]]];for(let _0x2bfff7=0x1;_0x2bfff7<_0x130086['length'];_0x2bfff7++){const _0x4ff77e=_0x41dfca[_0x41dfca['length']-0x1],_0x32dc6b=_0x4ff77e[_0x4ff77e['length']-0x1];_0x130086[_0x2bfff7]['node']['previousSibling']==_0x32dc6b['node']&&'modified'!=_0x130086[_0x2bfff7]['type']&&'modified'!=_0x32dc6b['type']?_0x4ff77e['push'](_0x130086[_0x2bfff7]):_0x41dfca['push']([_0x130086[_0x2bfff7]]);}for(const _0x57f906 of _0x41dfca){const _0x20c129=_0x57f906[0x0],_0xf20ceb=_0x57f906[_0x57f906['length']-0x1],_0x33958c=_0x34aabe(_0x20c129['node']['previousSibling']);_0x33958c&&_0x57f906['unshift'](_0x33958c);const _0x2ad7c9=_0x34aabe(_0xf20ceb['node']['nextSibling']);_0x2ad7c9&&_0x57f906['push'](_0x2ad7c9);}function _0x5a9504(_0x5d45c5){return _0xf35a2e['modifiedNodeIds']['includes'](_0x5d45c5)||_0xf35a2e['newNodeIds']['includes'](_0x5d45c5)||_0xf35a2e['removedNodeIds']['includes'](_0x5d45c5);}function _0x34aabe(_0x3d40f2){if(_0x3d40f2&&getAttribute(_0x3d40f2,'data-id')&&!getAttribute(_0x3d40f2,'data-unstable')){const _0x591aab=getAttribute(_0x3d40f2,'data-id');if(!_0x5a9504(_0x591aab))return{'node':_0x3d40f2,'type':'context','id':_0x591aab};}return null;}this['changeGroups']=_0x41dfca['map']((_0x1e04e3,_0x502b03)=>({'changes':_0x1e04e3,'state':'pending','index':_0x502b03}));}}function isValidReplyType(_0x38f17b){return Object['values'](AI_REPLY_TYPES)['includes'](_0x38f17b);}function isIgnoredReplyType(_0x306fb2){return AI_REPLY_TYPES_IGNORED['includes'](_0x306fb2);}function isReplyTitleType(_0xd0cefa){return _0xd0cefa===AI_REPLY_TITLE_TYPE;}function isSourceType(_0x1bf40f){return'source'===_0x1bf40f;}const AI_MODEL_EVENT_NAMES=['interactionCreated','interactionStarted','interactionStopped','interactionFinished','interactionDestroyed','replyCreated','replyContentUpdated','replyChangeGroupStateUpdated','setConversationTitle','webSearchStarted','webSearchFinished','reasoningStarted','reasoningFinished','error'];class AIInteraction extends EmitterMixin(){['id'];['replies']=[];['currentReply'];['messageId'];['actionCallId'];['currentRequest'];['connector'];['isStopped']=!0x1;['isDestroyed']=!0x1;['editor'];['_isReasoning']=!0x1;['_isWebSearching']=!0x1;constructor({connector:_0x33ce6e,editor:_0x403ff5}){super(),this['id']=uid(),this['connector']=_0x33ce6e,this['isStopped']=!0x0,this['editor']=_0x403ff5;}async['start'](){let _0x48d886;const _0x2cd1bb=[];this['isStopped']=!0x1;try{this['currentRequest']=await this['sendRequest'](),this['fire']('interactionStarted',this);const _0x1b3190=await this['currentRequest']['getStream']();for await(const _0x1d272b of _0x1b3190){if(this['isStopped'])return;if('error'===_0x1d272b['event'])return void this['fire']('error',{'error':new CKEditorError('ai-chat-interaction-error',this)});if('message-metadata'!==_0x1d272b['event']){if('action-metadata'!==_0x1d272b['event']){if(isReplyTitleType(_0x1d272b['event'])&&this['setConversationTitle'](_0x1d272b['data']['conversationTitle'],!0x0),isSourceType(_0x1d272b['event']))_0x2cd1bb['push'](_0x1d272b['data']['source']);else{if(isValidReplyType(_0x1d272b['event'])){if(_0x1d272b['event']!==_0x48d886){if(_0x48d886=_0x1d272b['event'],'web-search'===_0x1d272b['event']){this['_isWebSearching']||(this['_isWebSearching']=!0x0,this['fire']('webSearchStarted',this));continue;}if('reasoning'===_0x1d272b['event']){this['_isReasoning']||(this['_isReasoning']=!0x0,this['fire']('reasoningStarted',this));continue;}this['_isReasoning']&&(this['_isReasoning']=!0x1,this['fire']('reasoningFinished',this)),this['_isWebSearching']&&(this['_isWebSearching']=!0x1,this['fire']('webSearchFinished',this)),this['currentReply']&&this['currentReply']['done'](),this['currentReply']=this['createReply']({'type':_0x1d272b['event'],'interactionId':this['id']}),_0x2cd1bb['length']>0x0&&'modification-delta'===_0x1d272b['event']&&(this['currentReply']['sources']=_0x2cd1bb['splice'](0x0));}_0x1d272b['data']['textDelta']&&this['currentReply']['appendContent'](_0x1d272b['data']['textDelta']);}else isIgnoredReplyType(_0x1d272b['event'])||logWarning('ai-interaction-invalid-event-type',{'chunk':_0x1d272b});}}else this['actionCallId']=_0x1d272b['data']['callId'];}else this['messageId']=_0x1d272b['data']['id'];}}finally{this['isStopped']||(_0x2cd1bb['length']>0x0&&(this['currentReply']['sources']=_0x2cd1bb['splice'](0x0)),this['_finalizeInteraction'](),this['fire']('interactionFinished',this));}}['stop'](){this['isStopped']||(this['_finalizeInteraction'](),this['fire']('interactionStopped',this));}['getReply'](_0x1414bd){return this['replies']['find'](_0x26e00c=>_0x26e00c['id']===_0x1414bd);}['destroy'](){this['isDestroyed']||(this['stop'](),this['replies']['forEach'](_0x502b08=>_0x502b08['destroy']()),this['replies']=[],this['isDestroyed']=!0x0,this['fire']('interactionDestroyed',this),this['stopListening']());}['createReply'](_0x24954c){const _0x4bca4b=new AIReply({'editor':this['editor'],'documentContextContent':this['getDocumentContext']()?.['content'],..._0x24954c});return this['replies']['push'](_0x4bca4b),_0x4bca4b['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['fire']('replyCreated',_0x4bca4b),_0x4bca4b;}['setConversationTitle'](_0x535b21,_0x3811dd=!0x1){this['fire']('setConversationTitle',_0x535b21,_0x3811dd);}['_finalizeInteraction'](){this['isStopped']=!0x0,this['currentRequest']&&this['currentRequest']['abortController']['abort'](),this['currentReply']&&this['currentReply']['done'](),this['currentRequest']=this['currentReply']=void 0x0;}}var AIContextItemType=function(_0x4db70d){return _0x4db70d['FILE']='file',_0x4db70d['DOCUMENT']='document',_0x4db70d['URL']='web-resource',_0x4db70d['TEXT']='text',_0x4db70d['SELECTION']='selection',_0x4db70d;}({}),AIContextTextResourceType=function(_0x308b12){return _0x308b12['TEXT']='text',_0x308b12['MARKDOWN']='markdown',_0x308b12['HTML']='html',_0x308b12;}({});const AI_CONTEXT_MODEL_EVENT_NAMES=['contextItemAdded','contextItemRemoved','contextItemLoadingEnded','contextSent','error','addContextOptionsChanged','sourceResourcesLoaded','resourceStateChanged','uploadProgressChanged'];class AIChatContext extends ObservableMixin(){['_connector'];['_config'];['_ownerId'];constructor({connector:_0x939a42,config:_0x4073ff,ownerId:_0x43d58f}){super(),this['_connector']=_0x939a42,this['_config']=_0x4073ff,this['_ownerId']=_0x43d58f;}['init'](){this['_pendingContextItems']=new Map(),this['_conversationContextItems']=new Map(),this['_ongoingUploads']=new Map(),this['_ongoingUploadOperations']=new Map(),this['_setAddContextOptionsDefaultState']();}['getPendingContextItems'](){return this['_pendingContextItems'];}async['populateFromMessage'](_0x1ac6eb){const _0x225d5a=await this['_createContextItemFromContent'](_0x1ac6eb);return this['_addToConversationContextItem'](_0x225d5a),'current-document'===_0x225d5a['uiId']&&this['_toggleAddCurrentDocumentOptionVisibility'](),_0x225d5a;}async['_createContextItemFromContent'](_0x505dcf){if(_0x505dcf['type']===AIContextItemType['DOCUMENT']){const _0x5b325b=await this['_connector']['fetchDocument'](this['_ownerId'],_0x505dcf['id'])['getDocument']();return{'id':'current-document','uiId':'current-document','label':'Current\x20document','type':_0x505dcf['type'],'content':_0x5b325b['content'],'hidden':this['_conversationContextItems']['has']('current-document'),'version':_0x5b325b['attributes']?.['version'],'sessionId':_0x5b325b['attributes']?.['sessionId']};}return{'id':_0x505dcf['id'],'uiId':_0x505dcf['id'],'label':_0x505dcf['attributes']?.['label']||_0x505dcf['name']||_0x505dcf['url']||_0x505dcf['id'],'type':_0x505dcf['type'],..._0x505dcf?.['attributes']?.['resourceId']?{'resourceId':_0x505dcf['attributes']?.['resourceId']}:{}};}['getSentContextItems'](){return new Map(this['_conversationContextItems']);}['removeFromContext'](_0xa6c9f3){const _0x2bf9c2=this['_pendingContextItems']['get'](_0xa6c9f3);_0x2bf9c2?.['isReadOnly']||this['_removeContextItem'](_0xa6c9f3);}['clearPendingContextItems'](){if(0x0===this['_pendingContextItems']['size'])return;for(const _0x4a5c75 of this['_pendingContextItems']['values']())this['_removeContextItem'](_0x4a5c75['uiId']);const _0x3e57d2=this['_conversationContextItems']['get']('current-document')||this['_pendingContextItems']['get']('current-document');_0x3e57d2&&this['_addContextItem']({..._0x3e57d2,'isReadOnly':!0x0,'hidden':!0x0});}['addToConversationContext'](_0x395073){for(const _0x368ab6 of _0x395073['values']())this['_addToConversationContextItem'](_0x368ab6);this['clearPendingContextItems'](),this['fire']('contextSent',{'contextItems':Array['from'](this['getSentContextItems']()['values']())});}['isCurrentDocumentInContext'](){return this['_pendingContextItems']['has']('current-document');}['isSelectionInContext'](){return this['_pendingContextItems']['has']('selection');}['isCurrentDocumentInConversation'](){return this['_conversationContextItems']['has']('current-document');}static['mapContextItemsToRequestData'](_0x17c1e8){return Array['from'](_0x17c1e8['values']())['map'](_0x47d1b5=>this['_mapContextItemToRequestData'](_0x47d1b5))['filter'](_0x1005a2=>null!==_0x1005a2);}async['addFilesToContext'](_0x1f3376,_0x378cca,_0x7f44d1=AIContextItemType['FILE']){const _0x568a65='files-'+uid();this['_startUploadOperation'](_0x568a65);try{await Promise['all'](_0x1f3376['map'](async _0x25d7b4=>{const _0x328407='file-'+uid(),_0x6357d4=escape(_0x25d7b4['name']);try{this['_addContextItem']({'type':_0x7f44d1,'label':_0x378cca?.['label']||_0x6357d4,'uiId':_0x328407,'resourceId':_0x378cca?.['resourceId']},!0x0);const _0x1405e9=this['_connector']['uploadFile'](this['_ownerId'],_0x25d7b4,_0x378cca);this['_ongoingUploads']['set'](_0x328407,_0x1405e9['abortController']);const {id:_0x4fe3c6}=await _0x1405e9['getId']();this['_ongoingUploads']['delete'](_0x328407),this['_finishContextItemLoading']({'type':_0x7f44d1,'id':_0x4fe3c6,'label':_0x378cca?.['label']||_0x6357d4,'uiId':_0x328407,'resourceId':_0x378cca?.['resourceId']},!0x1);}catch(_0x261000){this['_ongoingUploads']['delete'](_0x328407);if(!_0x261000['message']['startsWith']('ai-request-aborted')){const _0x24db05=new CKEditorError('ai-chat-file-upload-failed',null,{'fileName':_0x6357d4});_0x24db05['stack']=_0x261000['stack'],this['fire']('error',{'error':_0x24db05,'fileName':_0x6357d4});}this['_removeContextItem'](_0x328407);}}));}finally{this['_finishUploadOperation'](_0x568a65);}}['addCurrentDocumentToContext'](_0x1c9ca3){if(this['isCurrentDocumentInContext']())return;const _0x1f9df3={'type':AIContextItemType['DOCUMENT'],'uiId':'current-document','label':_0x1c9ca3,'isReadOnly':this['_conversationContextItems']['has']('current-document'),'hidden':this['_conversationContextItems']['has']('current-document')};this['_addContextItem'](_0x1f9df3);}async['updateCurrentDocument'](_0x17e368,_0x202e08,_0x35ba91,_0x40302f){const _0x5e5c0c=this['_pendingContextItems']['get']('current-document');if(_0x5e5c0c&&_0x17e368){_0x5e5c0c['selection']=_0x40302f?_0x40302f['map'](_0x2887c1=>({'start':_0x2887c1['start'],'end':_0x2887c1['end']})):[];try{if(_0x5e5c0c['version']===_0x202e08)return;const {id:_0x2f425a}=await this['_connector']['uploadDocument'](this['_ownerId'],_0x17e368,{'version':_0x202e08,'sessionId':_0x35ba91})['getId']();_0x5e5c0c['id']=_0x2f425a,_0x5e5c0c['content']=_0x17e368,_0x5e5c0c['version']=_0x202e08,_0x5e5c0c['sessionId']=_0x35ba91;}catch(_0x5bf6d2){const _0x33437f=new CKEditorError('ai-chat-document-upload-failed',null);_0x33437f['stack']=_0x5bf6d2['stack'],this['fire']('error',{'error':_0x33437f});}}}['addSelectionToContext'](_0x3773ab){this['_addContextItem']({'type':AIContextItemType['SELECTION'],'label':_0x3773ab,'uiId':'selection','content':_0x3773ab});}['removeSelectionFromContext'](){this['_removeContextItem']('selection');}async['addUrlToContext'](_0x4083eb,_0x3c6a6c){const _0x1f3f76='url-'+uid();this['_startUploadOperation'](_0x1f3f76);const _0x24b00a='url-'+uid();try{this['_addContextItem']({'type':AIContextItemType['URL'],'label':_0x3c6a6c?.['label']||_0x4083eb,'uiId':_0x24b00a,'resourceId':_0x3c6a6c?.['resourceId']},!0x0);const _0x2e6bcb=this['_connector']['uploadUrl'](this['_ownerId'],_0x4083eb,_0x3c6a6c);this['_ongoingUploads']['set'](_0x24b00a,_0x2e6bcb['abortController']);const {id:_0xb6b918}=await _0x2e6bcb['getId']();this['_ongoingUploads']['delete'](_0x24b00a),this['_finishContextItemLoading']({'type':AIContextItemType['URL'],'id':_0xb6b918,'label':_0x3c6a6c?.['label']||_0x4083eb,'uiId':_0x24b00a,'resourceId':_0x3c6a6c?.['resourceId']},!0x1);}catch(_0x1b4a52){this['_ongoingUploads']['delete'](_0x24b00a),(_0x1b4a52['message']['startsWith']('ai-request-aborted')||this['fire']('error',{'error':new CKEditorError('ai-chat-url-upload-failed',this,{'url':_0x4083eb,'originalError':_0x1b4a52}),'url':_0x4083eb}),this['_removeContextItem'](_0x24b00a));}finally{this['_finishUploadOperation'](_0x1f3f76);}}async['loadSourceResources'](_0x44e673,_0x5b7095,_0x4a5b16){const _0x62a276=this['_addContextOptionsState']['sources']['find'](_0x3af181=>_0x3af181['id']===_0x44e673);if(!_0x62a276)return this['fire']('error',{'error':new CKEditorError('ai-chat-source-not-found',this,{'sourceId':_0x44e673}),'sourceId':_0x44e673}),[];try{const _0x5b3700=(await _0x62a276['getResources'](_0x5b7095))['map'](_0x31892d=>{const _0x202c0d=this['_isResourceInContext'](_0x31892d['id']);return{..._0x31892d,'isInContext':_0x202c0d};});return _0x62a276['resources']=_0x5b3700,this['fire']('sourceResourcesLoaded',{'sourceId':_0x44e673,'source':_0x62a276,'resources':_0x5b3700,'uid':_0x4a5b16}),_0x5b3700;}catch(_0x4d0713){return this['fire']('error',{'error':new CKEditorError('ai-chat-source-resources-load-failed',this,{'sourceId':_0x44e673,'originalError':_0x4d0713}),'sourceId':_0x44e673,'sourceLabel':_0x62a276['label']}),[];}}async['addResourceToContext'](_0x4164af,_0x5b6eda){if(this['_isResourceInContext'](_0x5b6eda['id']))return;let _0x3f6aa4=_0x5b6eda['data'];if(!_0x3f6aa4&&_0x4164af['getData'])try{_0x3f6aa4=await _0x4164af['getData'](_0x5b6eda['id']);}catch(_0x5814ab){return void this['fire']('error',{'error':new CKEditorError('ai-chat-resource-load-failed',this,{'resourceId':_0x5b6eda['id'],'sourceId':_0x4164af['id'],'originalError':_0x5814ab}),'resourceId':_0x5b6eda['id'],'sourceId':_0x4164af['id']});}if(_0x3f6aa4)switch(_0x5b6eda['type']){case AIContextItemType['URL']:if('string'!=typeof _0x3f6aa4)return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x5b6eda['id'],'sourceId':_0x4164af['id'],'expectedType':'string','actualType':typeof _0x3f6aa4}),'resourceId':_0x5b6eda['id'],'sourceId':_0x4164af['id']});await this['addUrlToContext'](_0x3f6aa4,{'label':_0x5b6eda['label'],'resourceId':_0x5b6eda['id']});break;case AIContextItemType['FILE']:if(!(_0x3f6aa4 instanceof File))return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x5b6eda['id'],'sourceId':_0x4164af['id'],'expectedType':'File','actualType':typeof _0x3f6aa4}),'resourceId':_0x5b6eda['id'],'sourceId':_0x4164af['id']});await this['addFilesToContext']([_0x3f6aa4],{'label':_0x5b6eda['label'],'resourceId':_0x5b6eda['id']});break;case AIContextItemType['TEXT']:if('object'!=typeof _0x3f6aa4||!('content'in _0x3f6aa4)||!('type'in _0x3f6aa4))return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x5b6eda['id'],'sourceId':_0x4164af['id'],'expectedType':'object\x20with\x20content\x20and\x20type\x20properties','actualType':typeof _0x3f6aa4}),'resourceId':_0x5b6eda['id'],'sourceId':_0x4164af['id']});_0x3f6aa4=AIChatContext['_convertTextResourceToFile'](_0x3f6aa4,_0x5b6eda['label']),await this['addFilesToContext']([_0x3f6aa4],{'label':_0x5b6eda['label'],'resourceId':_0x5b6eda['id']},AIContextItemType['TEXT']);break;default:this['fire']('error',{'error':new CKEditorError('ai-chat-context-unsupported-type',this,{'resourceId':_0x5b6eda['id'],'sourceId':_0x4164af['id'],'resourceType':_0x5b6eda['type']}),'resourceId':_0x5b6eda['id'],'sourceId':_0x4164af['id']});}else this['fire']('error',{'error':new CKEditorError('ai-chat-resource-no-data',this,{'resourceId':_0x5b6eda['id'],'sourceId':_0x4164af['id']}),'resourceId':_0x5b6eda['id'],'sourceId':_0x4164af['id']});}static['_convertTextResourceToFile'](_0x4d0906,_0xf6d1a1){switch(_0x4d0906['type']){case AIContextTextResourceType['MARKDOWN']:return new File([_0x4d0906['content']],_0xf6d1a1,{'type':'text/markdown'});case AIContextTextResourceType['HTML']:return new File([_0x4d0906['content']],_0xf6d1a1,{'type':'text/html'});default:return new File([_0x4d0906['content']],_0xf6d1a1,{'type':'text/plain'});}}static['_mapContextItemToRequestData'](_0x5da6ea){switch(_0x5da6ea['type']){case AIContextItemType['FILE']:return{'type':AIContextItemType['FILE'],'id':_0x5da6ea['id']};case AIContextItemType['URL']:return{'type':AIContextItemType['URL'],'id':_0x5da6ea['id']};case AIContextItemType['DOCUMENT']:return{'type':AIContextItemType['DOCUMENT'],'id':_0x5da6ea['id'],..._0x5da6ea['selection']?.['length']&&{'selection':_0x5da6ea['selection']}};case AIContextItemType['TEXT']:return{'type':AIContextItemType['FILE'],'id':_0x5da6ea['id']};default:return null;}}['_addContextItem'](_0x3cbaeb,_0x11af4f=!0x1){if(this['_pendingContextItems']['set'](_0x3cbaeb['uiId'],_0x3cbaeb),_0x3cbaeb['hidden']||this['fire']('contextItemAdded',{'contextItem':_0x3cbaeb,'isLoading':_0x11af4f}),'current-document'===_0x3cbaeb['uiId']&&this['_toggleAddCurrentDocumentOptionVisibility'](),_0x3cbaeb['resourceId']){const _0x4f6348=this['_findSourceIdsByResourceId'](_0x3cbaeb['resourceId']);_0x4f6348&&_0x4f6348['forEach'](_0x23998c=>{this['_updateResourceInContextState'](_0x23998c,_0x3cbaeb['resourceId'],!0x0);});}}['_removeContextItem'](_0x2e56bf){const _0x2a7578=this['_pendingContextItems']['get'](_0x2e56bf),_0x21f9eb=this['_ongoingUploads']['get'](_0x2e56bf);if(_0x21f9eb&&(_0x21f9eb['abort'](),this['_ongoingUploads']['delete'](_0x2e56bf)),_0x2a7578?.['resourceId']){const _0x5043d2=this['_findSourceIdsByResourceId'](_0x2a7578['resourceId']);_0x5043d2&&_0x5043d2['forEach'](_0xa6265e=>{this['_updateResourceInContextState'](_0xa6265e,_0x2a7578['resourceId'],!0x1);});}this['_pendingContextItems']['delete'](_0x2e56bf),this['fire']('contextItemRemoved',{'uiId':_0x2e56bf,'type':_0x2a7578?.['type']}),'current-document'===_0x2e56bf&&this['_toggleAddCurrentDocumentOptionVisibility']();}['_finishContextItemLoading'](_0x24c212,_0x5a241f){if(this['_pendingContextItems']['has'](_0x24c212['uiId'])&&(this['_pendingContextItems']['set'](_0x24c212['uiId'],_0x24c212),this['fire']('contextItemLoadingEnded',{'contextItem':_0x24c212,'isLoading':_0x5a241f}),_0x24c212['resourceId'])){const _0x4e9f19=this['_findSourceIdsByResourceId'](_0x24c212['resourceId']);_0x4e9f19&&_0x4e9f19['forEach'](_0xa85dfe=>{this['_updateResourceInContextState'](_0xa85dfe,_0x24c212['resourceId'],!0x0);});}}['_addToConversationContextItem'](_0x288819){this['_conversationContextItems']['set'](_0x288819['uiId'],_0x288819);}['_setAddContextOptionsDefaultState'](){this['_addContextOptionsState']={'document':{'enabled':!0x1!==this['_config']?.['document']?.['enabled'],'isHidden':!0x1},'urls':{'enabled':!0x1!==this['_config']?.['urls']?.['enabled']},'files':{'enabled':!0x1!==this['_config']?.['files']?.['enabled']},'sources':this['_getCustomSourcesInitialState']()},this['fire']('addContextOptionsChanged',{'options':this['_addContextOptionsState']});}['_getCustomSourcesInitialState'](){return this['_config']?.['sources']?.['map'](_0x2574f1=>({..._0x2574f1,'resources':[]}))??[];}['_toggleAddCurrentDocumentOptionVisibility'](){const _0x459733=this['isCurrentDocumentInContext']()||this['isCurrentDocumentInConversation']();this['_addContextOptionsState']['document']['isHidden']=_0x459733,this['fire']('addContextOptionsChanged',{'options':this['_addContextOptionsState']});}['_isResourceInContext'](_0x113626){for(const _0x578880 of this['_pendingContextItems']['values']())if(_0x578880['resourceId']===_0x113626)return!0x0;for(const _0x57f10e of this['_conversationContextItems']['values']())if(_0x57f10e['resourceId']===_0x113626)return!0x0;return!0x1;}['_findSourceIdsByResourceId'](_0x2c09f2){const _0x1b1272=[];for(const _0x3f0c98 of this['_addContextOptionsState']['sources']){_0x3f0c98['resources']['find'](_0x2123fc=>_0x2123fc['id']===_0x2c09f2)&&_0x1b1272['push'](_0x3f0c98['id']);}return 0x0===_0x1b1272['length']?null:_0x1b1272;}['_updateResourceInContextState'](_0x11518f,_0x2a4882,_0x543d49){const _0x5c089d=this['_addContextOptionsState']['sources']['find'](_0x25f568=>_0x25f568['id']===_0x11518f);if(!_0x5c089d)return;const _0x5b2ca0=_0x5c089d['resources']['find'](_0x21803f=>_0x21803f['id']===_0x2a4882);_0x5b2ca0&&(_0x5b2ca0['isInContext']=_0x543d49,this['fire']('resourceStateChanged',{'sourceId':_0x11518f,'resourceId':_0x2a4882,'isInContext':_0x543d49}));}['_startUploadOperation'](_0x46f838){this['_ongoingUploadOperations']['set'](_0x46f838,!0x0),this['_ongoingUploadOperations']['size']&&this['fire']('uploadProgressChanged',{'isUploadInProgress':!0x0});}['_finishUploadOperation'](_0x37c70a){this['_ongoingUploadOperations']['delete'](_0x37c70a),0x0===this['_ongoingUploadOperations']['size']&&this['fire']('uploadProgressChanged',{'isUploadInProgress':!0x1});}}const CAPABILITIES_MODEL_EVENT_NAMES=['capabilitiesUpdated'];class AICapabilities extends EmitterMixin(){['_isWebSearchEnabled'];['_isReasoningEnabled'];constructor(){super(),this['_isWebSearchEnabled']=!0x1,this['_isReasoningEnabled']=!0x1;}['init'](){this['reset']();}['reset'](){this['setWebSearch'](!0x1),this['setReasoning'](!0x1);}['getCapabilitiesConfig'](){return{'isWebSearchEnabled':this['_isWebSearchEnabled'],'isReasoningEnabled':this['_isReasoningEnabled']};}static['getCapabilitiesRequestData'](_0x36a02e){const _0x5123cf={};return _0x36a02e&&_0x36a02e['isWebSearchEnabled']&&(_0x5123cf['webSearch']={}),_0x36a02e&&_0x36a02e['isReasoningEnabled']&&(_0x5123cf['reasoning']={}),_0x5123cf;}['toggleWebSearch'](){this['setWebSearch'](!this['_isWebSearchEnabled']);}['toggleReasoning'](){this['setReasoning'](!this['_isReasoningEnabled']);}['setWebSearch'](_0x2a4700){_0x2a4700!==this['_isWebSearchEnabled']&&(this['_isWebSearchEnabled']=_0x2a4700,this['fire']('capabilitiesUpdated',this['getCapabilitiesConfig']()));}['setReasoning'](_0x3d2362){_0x3d2362!==this['_isReasoningEnabled']&&(this['_isReasoningEnabled']=_0x3d2362,this['fire']('capabilitiesUpdated',this['getCapabilitiesConfig']()));}}class AIChatInteraction extends AIInteraction{['userMessage'];['conversationId'];['contextItems']=new Map();['model'];['quickActionData'];constructor(_0x4f246b){super(_0x4f246b),this['conversationId']=_0x4f246b['conversationId'],this['contextItems']=_0x4f246b['contextItems'],this['capabilities']=_0x4f246b['capabilities'],this['userMessage']=_0x4f246b['userMessage'],this['model']=_0x4f246b['model'],this['quickActionData']=_0x4f246b['quickActionData'];}async['sendRequest'](){return this['connector']['queryAssistant']({'message':this['userMessage'],'conversationId':this['conversationId'],'parts':AIChatContext['mapContextItemsToRequestData'](this['contextItems']),'capabilities':AICapabilities['getCapabilitiesRequestData'](this['capabilities']),'model':this['model'],'quickActionData':this['quickActionData']});}['getDocumentContext'](){return this['contextItems']['get']('current-document');}}class AIChatConversation extends EmitterMixin(){['id'];['isStarted']=!0x1;['interactions']=[];['currentInteraction'];['selectedModel'];['connector'];['options'];constructor(_0x571724){super(),this['options']=_0x571724,this['connector']=_0x571724['connector'],this['chatModels']=_0x571724['chatModels'],this['id']=_0x571724['conversationId'];}async['init'](_0x285552){try{this['chatContext']=new AIChatContext({'connector':this['connector'],'config':_0x285552,'ownerId':this['id']}),this['chatContext']['delegate'](...AI_CONTEXT_MODEL_EVENT_NAMES)['to'](this),this['chatContext']['init'](),this['chatCapabilities']=new AICapabilities(),this['chatCapabilities']['delegate'](...CAPABILITIES_MODEL_EVENT_NAMES)['to'](this),this['chatCapabilities']['init']();const _0x54f775=await this['chatModels']['getAvailableModels']();this['fire']('conversationInitialized',{'availableModels':_0x54f775});const _0x3ecac5=await this['chatModels']['getModel'](this['options']['selectedModelId']);_0x3ecac5&&await this['setModel'](_0x3ecac5);}catch(_0x3142a9){const _0x1ae6cf=new CKEditorError('ai-chat-conversation-init-failed',null,{'message':_0x3142a9['message']});_0x1ae6cf['stack']=_0x3142a9['stack'],this['fire']('error',{'error':_0x1ae6cf});}}async['start'](){if(this['isStarted'])throw new CKEditorError('ai-chat-conversation-already-started',null,{'conversation':this});if(!this['selectedModel'])throw new CKEditorError('ai-chat-conversation-start-no-model-selected',null,{'conversation':this});try{const {id:_0x29dc98}=await this['connector']['startConversation'](this['id'],this['options']['group'])['getConversation']();this['id']=_0x29dc98,this['isStarted']=!0x0,this['fire']('conversationStarted',{'conversationId':this['id'],'selectedModel':this['selectedModel']});}catch(_0x28d120){const _0x2e3fc1=new CKEditorError('ai-chat-conversation-start-failed',null,{'message':_0x28d120['message']});_0x2e3fc1['stack']=_0x28d120['stack'],this['fire']('error',{'error':_0x2e3fc1});}}async['load'](_0x534686,_0xeb0ec6){try{const _0x5186d7=await this['connector']['fetchConversation'](_0x534686)['getConversation'](),_0x5a76a7=await this['connector']['fetchConversationMessages'](_0x534686)['getMessages'](),_0x31b141=_0x5a76a7[0x0]['model'];this['isStarted']=!0x0,this['id']=_0x5186d7['id'],'title'in _0x5186d7?this['fire']('setConversationTitle',_0x5186d7['title'],!0x0):this['fire']('setConversationTitle','',!0x0);const _0x59fb95=(await this['chatModels']['getAll']())['find'](_0x3e9071=>_0x3e9071['id']['toLowerCase']()===_0x31b141['toLowerCase']());return this['selectedModel']=_0x59fb95,this['fire']('modelSelected',{'selectedModel':_0x59fb95,'isDisabled':!0x0}),await this['_processMessagesToInteractions'](_0x5a76a7,_0xeb0ec6,_0x31b141),this['currentInteraction']=void 0x0,this;}catch(_0x195cbe){const _0x2fac0f=new CKEditorError('ai-chat-conversation-init-from-id-failed',null,{'message':_0x195cbe['message'],'conversationId':_0x534686});throw _0x2fac0f['stack']=_0x195cbe['stack'],this['fire']('error',{'error':_0x2fac0f}),_0x2fac0f;}}async['_processMessagesToInteractions'](_0x4cb8a4,_0x5d6892,_0x329bff){let _0x556ac1;for(const _0x608586 of _0x4cb8a4)if('user'===_0x608586['role']){const _0x4cfacb=await this['_extractContextItems'](_0x608586),_0x7acb0a={'isReasoningEnabled':Object['hasOwn'](_0x608586['capabilities'],'reasoning'),'isWebSearchEnabled':Object['hasOwn'](_0x608586['capabilities'],'webSearch')};_0x556ac1=this['createInteraction']({'userMessage':_0x608586['prompt'],'contextItems':_0x4cfacb,'capabilities':_0x7acb0a,'modelId':_0x329bff,'quickActionData':_0x608586['attributes']?.['quickActionData']}),this['currentInteraction']=_0x556ac1,this['chatContext']['addToConversationContext'](this['currentInteraction']['contextItems']);}else{if('assistant'===_0x608586['role']&&_0x556ac1)for(const _0x282326 of _0x608586['content']){const _0x5175bd='text'===_0x282326['type']?'text-delta':'modification-delta',_0x35e5c2=_0x556ac1['getDocumentContext']()?.['sessionId']!==_0x5d6892;_0x556ac1['currentReply']=_0x556ac1['createReply']({'type':_0x5175bd,'isDone':!0x0,'interactionId':_0x556ac1['id'],'areActionsDisabled':_0x35e5c2}),_0x556ac1['currentReply']['appendContent'](_0x282326['content']);}}}async['_extractContextItems'](_0x32b87b){const _0x27caf3=new Map();if(!_0x32b87b['content'])return _0x27caf3;for(const _0x432abe of _0x32b87b['content']){const _0x2de16f=await this['chatContext']['populateFromMessage'](_0x432abe);_0x2de16f&&_0x27caf3['set'](_0x2de16f['id'],_0x2de16f);}return _0x27caf3;}async['handleUserInteraction']({userMessage:_0xf6d36c,quickActionData:_0x1a9bf8}){if(!this['isStarted'])throw new CKEditorError('ai-chat-handle-user-conversation-not-initialized',null,{'conversation':this});if(this['currentInteraction'])throw new CKEditorError('ai-chat-handle-user-interaction-already-in-progress',null,{'conversation':this});try{const _0x510a18=this['chatContext']['getPendingContextItems'](),_0x2616e5=this['chatCapabilities']['getCapabilitiesConfig'](),_0x2ef45f=this['selectedModel']['id'];this['currentInteraction']=this['createInteraction']({'userMessage':_0xf6d36c,'contextItems':_0x510a18,'capabilities':_0x2616e5,'modelId':_0x2ef45f,'quickActionData':_0x1a9bf8}),await this['currentInteraction']['start'](),this['chatContext']['addToConversationContext'](this['currentInteraction']['contextItems']);}catch(_0x5c5ebe){this['fire']('error',{'interactionId':this['currentInteraction']?this['currentInteraction']['id']:void 0x0,'error':_0x5c5ebe});}finally{this['currentInteraction']?.['stop'](),this['currentInteraction']=void 0x0;}}['createInteraction']({userMessage:_0x2073b2,contextItems:_0xf2cf3b,capabilities:_0x47ccee,modelId:_0x4de997,quickActionData:_0x3a8ef0}){const _0x7e8e12=new AIChatInteraction({'userMessage':_0x2073b2,'contextItems':_0xf2cf3b,'capabilities':_0x47ccee,'conversationId':this['id'],'connector':this['connector'],'editor':this['options']['getEditor']&&this['options']['getEditor'](),'model':_0x4de997,'quickActionData':_0x3a8ef0});return _0x7e8e12['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['interactions']['push'](_0x7e8e12),this['fire']('interactionCreated',_0x7e8e12),_0x7e8e12;}['getInteraction'](_0x41c31b){return this['interactions']['find'](_0xb4266f=>_0xb4266f['id']===_0x41c31b);}['removeInteraction'](_0x18c5d8){const _0x249acc=this['getInteraction'](_0x18c5d8);_0x249acc&&(_0x249acc['destroy'](),this['interactions']['splice'](this['interactions']['indexOf'](_0x249acc),0x1));}get['lastInteraction'](){return this['interactions'][this['interactions']['length']-0x1];}['addCurrentDocumentToContext'](_0x4b918d){this['chatContext']['addCurrentDocumentToContext'](_0x4b918d);}async['updateCurrentDocumentInContext']({content:_0x155ed4,version:_0x2d2f9e,sessionId:_0x1f2b9e,selections:_0x5dd8cb}){await this['chatContext']['updateCurrentDocument'](_0x155ed4,_0x2d2f9e,_0x1f2b9e,_0x5dd8cb);}['getCurrentDocumentContext'](){return this['currentInteraction']?.['getDocumentContext']()?.['content']||'';}['addSelectionToContext'](_0x50b1a7){this['chatContext']['addSelectionToContext'](_0x50b1a7);}['removeSelectionFromContext'](){this['chatContext']['removeSelectionFromContext']();}['addFilesToContext'](_0x7e762c){this['chatContext']['addFilesToContext'](_0x7e762c);}['addUrlToContext'](_0x4a79c7){this['chatContext']['addUrlToContext'](_0x4a79c7);}['addResourceToContext'](_0x1e1f4f,_0x589fae){this['chatContext']['addResourceToContext'](_0x1e1f4f,_0x589fae);}['loadSourceResources'](_0x3cf6d6,_0x4679d9,_0x4047fb){return this['chatContext']['loadSourceResources'](_0x3cf6d6,_0x4679d9,_0x4047fb);}['removeFromContext'](_0x90a2c2){this['chatContext']['removeFromContext'](_0x90a2c2);}['toggleWebSearch'](){this['chatCapabilities']['toggleWebSearch']();}['toggleReasoning'](){this['chatCapabilities']['toggleReasoning']();}['isCurrentDocumentInContext'](){return this['chatContext']['isCurrentDocumentInContext']();}['isCurrentDocumentInConversation'](){return this['chatContext']['isCurrentDocumentInConversation']();}['isSelectionInContext'](){return this['chatContext']['isSelectionInContext']();}async['setModel'](_0x3ce1cc){_0x3ce1cc?!0x1===await this['chatModels']['isAvailable'](_0x3ce1cc)&&(logWarning('ai-chat-conversation-set-model-not-available',{'conversation':this,'model':_0x3ce1cc}),_0x3ce1cc=(await this['chatModels']['getAvailableModels']())[0x0]):(logWarning('ai-chat-conversation-set-model-null',{'conversation':this}),_0x3ce1cc=(await this['chatModels']['getAvailableModels']())[0x0]),_0x3ce1cc['id']!==this['selectedModel']?.['id']&&(this['selectedModel']=_0x3ce1cc,this['chatCapabilities']['reset'](),this['fire']('modelSelected',{'selectedModel':_0x3ce1cc}));}}function getEditorFromContext(_0x31fdff){if(_0x31fdff instanceof Editor)return _0x31fdff;if(_0x31fdff?.['editors']&&_0x31fdff['editors']['get'](0x0))return _0x31fdff['editors']['length']>0x1&&console['warn']('AIChat:\x20Multiple\x20editor\x20instances\x20detected.\x20Only\x20the\x20first\x20editor\x20instance\x20will\x20be\x20used\x20for\x20AI\x20operations.\x20This\x20configuration\x20is\x20not\x20fully\x20supported\x20and\x20may\x20lead\x20to\x20unexpected\x20behavior.'),_0x31fdff['editors']['get'](0x0);throw new CKEditorError('ai-get-editor-from-context-no-editor');}const AI_VISUAL_SELECTION_MARKER_NAME='ai-selection';class AIEditing extends ContextPlugin{['_displayedFakeSelectionId']=null;['_displayedFakeSelectionLocked']=!0x1;['_sessionId'];static get['pluginName'](){return'AIEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['sessionId'](){if(!this['_sessionId']){const _0x1ea43a=getEditorFromContext(this['context']),_0x1afc2d=_0x1ea43a['plugins']['has']('RealTimeCollaborationClient')&&_0x1ea43a['plugins']['get']('RealTimeCollaborationClient')['sessionId'];this['_sessionId']=_0x1afc2d||uid();}return this['_sessionId'];}['getDocumentData'](){const _0x4e219b=getEditorFromContext(this['context']),_0x5bee8a=_0x4e219b['model'],_0x48a450=_0x4e219b['data']['toView'](_0x5bee8a['document']['getRoot'](),{'convertAiChatSelectionMarker':!0x0}),_0x1e939=new ViewDowncastWriter(_0x4e219b['editing']['view']['document']);this['_setDataIdsOnChildren'](_0x48a450,_0x1e939);let _0x5129a7=_0x4e219b['data']['processor']['toData'](_0x48a450);const _0xe1878d=this['_getMarkersInDocumentOrder'](),_0x5b8ea9=[];for(const _0x3125d5 of _0xe1878d){const _0x35249b='<'+_0x3125d5['name']+':start></'+_0x3125d5['name']+':start>',_0xdb7702=_0x5129a7['indexOf'](_0x35249b);_0x5129a7=_0x5129a7['substring'](0x0,_0xdb7702)+_0x5129a7['substring'](_0xdb7702+_0x35249b['length']);const _0x54f876='<'+_0x3125d5['name']+':end></'+_0x3125d5['name']+':end>',_0x4346b8=_0x5129a7['indexOf'](_0x54f876);_0x5129a7=_0x5129a7['substring'](0x0,_0x4346b8)+_0x5129a7['substring'](_0x4346b8+_0x54f876['length']),_0x5b8ea9['push']({'markerName':_0x3125d5['name'],'start':_0xdb7702,'end':_0x4346b8,'htmlFragment':_0x5129a7['substring'](_0xdb7702,_0x4346b8)});}return{'content':_0x5129a7,'version':_0x4e219b['model']['document']['version'],'sessionId':this['sessionId'],'selections':_0x5b8ea9};}async['afterInit'](){this['context']instanceof Editor?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x29a7e0,_0x555046)=>{_0x555046['on']('ready',()=>{this['_integrateEditor'](_0x555046);});});}['_integrateEditor'](_0x412a57){_0x412a57['conversion']['for']('editingDowncast')['markerToHighlight']({'model':AI_VISUAL_SELECTION_MARKER_NAME,'view':{'classes':['ck-fake-ai-selection','ck-ai-assistant-ui_theme'],'priority':0xc}}),_0x412a57['conversion']['for']('dataDowncast')['markerToElement']({'model':AI_VISUAL_SELECTION_MARKER_NAME,'view':(_0x3901a3,{writer:_0x1938cf,options:_0x24bc6a})=>_0x24bc6a['convertAiChatSelectionMarker']?_0x1938cf['createUIElement'](_0x3901a3['markerName']+':'+(_0x3901a3['isOpening']?'start':'end')):null});}['showFakeVisualSelection'](_0x18eb4a,_0x418bd5,_0xd4ebbb=!0x1,_0x18c729=!0x1){if(this['_displayedFakeSelectionLocked']&&!_0x18c729)return!0x1;this['_displayedFakeSelectionId']&&this['hideFakeVisualSelection'](this['_displayedFakeSelectionId']),this['_displayedFakeSelectionId']=_0x418bd5,this['_displayedFakeSelectionLocked']=_0xd4ebbb;const _0x3e92d1=getEditorFromContext(this['context'])['model'];return _0x3e92d1['change'](_0x16184b=>{let _0x4b485d=0x0;for(let _0x367773 of _0x18eb4a){const _0x5994fe=AI_VISUAL_SELECTION_MARKER_NAME+':'+_0x4b485d;if(_0x367773['start']['isAtEnd']){const _0x43339a=_0x367773['start']['getLastMatchingPosition'](({item:_0xd7d789})=>!_0x3e92d1['schema']['isContent'](_0xd7d789),{'boundaries':_0x367773});_0x367773=_0x16184b['createRange'](_0x43339a,_0x367773['end']);}_0x16184b['addMarker'](_0x5994fe,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x367773}),_0x4b485d++;}}),window['getSelection']()?.['removeAllRanges'](),!0x0;}['hideFakeVisualSelection'](_0x2f615f){if(this['_displayedFakeSelectionId']!=_0x2f615f)return!0x1;this['_displayedFakeSelectionId']=null,this['_displayedFakeSelectionLocked']=!0x1;const _0x4c6054=getEditorFromContext(this['context']),_0x14996b=_0x4c6054['model']['markers']['getMarkersGroup'](AI_VISUAL_SELECTION_MARKER_NAME);return _0x4c6054['model']['change'](_0x41691a=>{for(const _0x525dcc of _0x14996b)_0x41691a['removeMarker'](_0x525dcc);}),!0x0;}['modelToViewWithIds'](_0x1d5f52){const _0x4567f4=getEditorFromContext(this['context']),_0x119d8c=_0x4567f4['data']['toView'](_0x1d5f52),_0x48f184=new ViewDowncastWriter(_0x4567f4['editing']['view']['document']);return this['_setDataIdsOnChildren'](_0x119d8c,_0x48f184),_0x119d8c;}['_setDataIdsOnChildren'](_0x158043,_0x2b415e){let _0x3eaa18=!0x1;const _0x30cb16=new Set();for(const _0x7e9665 of _0x158043['getChildren']()){const _0x3f186d=_0x7e9665['is']('emptyElement')||_0x7e9665['is']('containerElement');if(!_0x7e9665['is']('element'))continue;(this['_setDataIdsOnChildren'](_0x7e9665,_0x2b415e)||_0x3f186d)&&(_0x2b415e['setAttribute']('data-id',this['_nextDataId'](_0x30cb16),_0x7e9665),_0x3eaa18=!0x0);}return _0x3eaa18;}['_nextDataId'](_0x79943d){let _0x24bcee;do{_0x24bcee='';for(let _0x1a8a28=0x0;_0x1a8a28<0x4;_0x1a8a28++)_0x24bcee+=String['fromCharCode'](0x61+Math['floor'](0x1a*Math['random']()));}while(_0x79943d['has'](_0x24bcee));return _0x79943d['add'](_0x24bcee),_0x24bcee;}['getSelectionText'](){const {model:_0x188715}=getEditorFromContext(this['context']),_0xe26b8e=_0x188715['document']['selection'],_0x71272c=_0x188715['getSelectedContent'](_0xe26b8e),_0x4cb2b3=[],_0x49a01c=_0x188715['createRangeIn'](_0x71272c)['getWalker']();for(const {item:_0x5f0fd9}of _0x49a01c)_0x5f0fd9['is']('$textProxy')?_0x4cb2b3['push'](_0x5f0fd9['data']):_0x5f0fd9['is']('element')&&_0x4cb2b3['length']>0x0&&'\x20'!==_0x4cb2b3[_0x4cb2b3['length']-0x1]&&_0x4cb2b3['push']('\x20');return'\x22'+_0x4cb2b3['join']('')['trim']()+'\x22';}['_getMarkersInDocumentOrder'](){const _0xd86a16=getEditorFromContext(this['context'])['model'];return Array['from'](_0xd86a16['markers']['getMarkersGroup'](AI_VISUAL_SELECTION_MARKER_NAME))['sort']((_0x47c29d,_0x397120)=>_0x47c29d['getStart']()['isBefore'](_0x397120['getStart']())?-0x1:_0x47c29d['getStart']()['isAfter'](_0x397120['getStart']())?0x1:0x0);}}class AIChatModels extends EmitterMixin(){['_modelList']=[];['_connector'];['_displayedModels'];['_defaultModelId'];constructor({connector:_0x1824ce,displayedModels:_0x3d35bf,defaultModelId:_0x4a1631}){super(),this['_connector']=_0x1824ce,this['_displayedModels']=_0x3d35bf,this['_defaultModelId']=_0x4a1631;}async['getAll'](){if(!this['_modelList']['length']){const _0x4008c6=this['_connector']['getModels'](),_0x22c864=(await _0x4008c6['list']())['items']['sort']((_0x272d6a,_0x3aef85)=>{const _0x5771e6=Object['values'](_0x272d6a['capabilities'])['filter'](_0x56d1bc=>_0x56d1bc['enabled'])['length'],_0x2cc22d=Object['values'](_0x3aef85['capabilities'])['filter'](_0x52c93=>_0x52c93['enabled'])['length'];return _0x2cc22d-_0x5771e6;});this['_modelList']=_0x22c864;}return this['_modelList'];}async['getAvailableModels'](){const _0x2926a6=await this['getAll']();return this['_filterModels'](_0x2926a6,this['_displayedModels']);}async['getModel'](_0x3930ad){const _0x4684a1=await this['getAll']();if(!_0x4684a1['length'])return null;if(_0x3930ad){const _0xec88c7=_0x4684a1['find'](_0x4c291a=>_0x4c291a['id']===_0x3930ad);if(_0xec88c7)return _0xec88c7;logWarning('ai-chat-model-id-unrecognized',{'modelId':_0x3930ad,'fallBackModelId':this['_defaultModelId']});}return this['getDefault']();}async['getDefault'](){const _0x5bbbbe=await this['getAvailableModels']();if(!_0x5bbbbe['length'])return null;if(this['_defaultModelId']){const _0x1f8599=_0x5bbbbe['find'](_0x310d3f=>_0x310d3f['id']===this['_defaultModelId']);if(_0x1f8599)return _0x1f8599;logWarning('ai-chat-default-model-id-unrecognized',{'defaultModelId':this['_defaultModelId'],'fallBackModelId':_0x5bbbbe[0x0]['id']});}return _0x5bbbbe[0x0];}async['isAvailable'](_0x44c69e){return(await this['getAvailableModels']())['some'](_0x23125d=>_0x23125d['name']===_0x44c69e['name']&&_0x23125d['provider']===_0x44c69e['provider']);}['_filterModels'](_0x3edf53,_0x4ea96f){let _0x56c5a7;if(_0x4ea96f){_0x56c5a7=[];const _0x2062ca='string'==typeof _0x4ea96f?[_0x4ea96f['toLocaleLowerCase']()]:_0x4ea96f['map'](_0x3e4043=>_0x3e4043['toLocaleLowerCase']());for(const _0x3a1063 of _0x2062ca)for(const _0xba0eb2 of _0x3edf53)(_0xba0eb2['id']['toLocaleLowerCase']()===_0x3a1063||_0xba0eb2['name']['toLocaleLowerCase']()===_0x3a1063||_0xba0eb2['provider']['toLocaleLowerCase']()===_0x3a1063||_0xba0eb2['id']['toLocaleLowerCase']()['startsWith'](_0x3a1063))&&_0x56c5a7['push'](_0xba0eb2);}else _0x56c5a7=_0x3edf53;return _0x56c5a7;}}class Permissions extends ContextPlugin{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x4622f6,_0x511a3f){let _0x5dbdc1;if(_0x511a3f||(_0x511a3f=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x511a3f?_0x5dbdc1=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x5dbdc1=this['context']['editors']['find'](_0x991971=>_0x991971['config']['get']('collaboration.channelId')==_0x511a3f)),!_0x5dbdc1)throw new CKEditorError('permissions-set-permissions-invalid-channel-id',null);const _0x4620c3=_0x5dbdc1['plugins'],_0x377d10=_0x4620c3['has']('CommentsRepository')?_0x4620c3['get']('CommentsRepository'):void 0x0,_0x31ed88=_0x4620c3['has']('CommentsOnly')&&_0x4620c3['get']('CommentsOnly'),_0x143b59=_0x4622f6['includes']('document:write'),_0x25f0d2=_0x4622f6['includes']('comment:modify_all'),_0x16ea21=_0x4622f6['includes']('comment:admin'),_0x445ed7=_0x4622f6['includes']('comment:write'),_0x511863=_0x445ed7||_0x16ea21,_0x5d6b3d=_0x511863||_0x25f0d2,_0x67f75e=_0x143b59||_0x511863;(_0x31ed88&&(_0x31ed88['isEnabled']=!_0x143b59&&_0x5d6b3d),_0x5dbdc1 instanceof Editor)&&(!(_0x143b59||_0x5d6b3d&&_0x377d10)?_0x5dbdc1['enableReadOnlyMode']('no-permissions'):_0x5dbdc1['disableReadOnlyMode']('no-permissions'));if(_0x377d10){_0x377d10['setPermissions']({'admin':_0x16ea21,'modifyAll':_0x25f0d2,'write':_0x445ed7,'resolve':_0x67f75e},_0x511a3f);const _0x45f9c9=_0x5dbdc1 instanceof Editor&&_0x5dbdc1['commands']['get']('addCommentThread');_0x45f9c9&&(_0x511863?_0x45f9c9['clearForceDisabled']('noPermissions'):_0x45f9c9['forceDisabled']('noPermissions'));}}}function getTranslation$h(_0x1acf4e,_0x52d654){const t=_0x1acf4e['t'];switch(_0x52d654){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');case'Today':return t('Today');case'Yesterday':return t('Yesterday');case'Last':return t('Last');case'Monday':return t('Monday');case'Tuesday':return t('Tuesday');case'Wednesday':return t('Wednesday');case'Thursday':return t('Thursday');case'Friday':return t('Friday');case'Saturday':return t('Saturday');case'Sunday':return t('Sunday');default:return'';}}class Users extends ContextPlugin{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Permissions];}constructor(_0x258ea1){super(_0x258ea1),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new Collection(),this['_locale']=_0x258ea1['locale'],this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser']({id:_0x44f14c,name:_0x56e23d,..._0x1ae04f}){if(!_0x44f14c||'string'!=typeof _0x44f14c)throw new CKEditorError('users-add-invalid-id');if(this['users']['has'](_0x44f14c))throw new CKEditorError('users-add-duplicated-id',null,{'id':_0x44f14c});const _0x27d444=this['context']['config']['get']('users.getInitialsCallback'),_0x9c261={..._0x1ae04f,'id':_0x44f14c,'name':normalizeName(this['_locale'],_0x56e23d),'color':this['_getNextColor']()};_0x9c261['name']=normalizeName(this['_locale'],_0x9c261['name']);const _0x58d758=new User$1(_0x9c261,_0x27d444);return this['users']['add'](_0x58d758),_0x58d758;}['getUser'](_0x433dfe){return this['users']['get'](_0x433dfe);}['useAnonymousUser'](){const _0x551613=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x551613);}['defineMe'](_0x1b181b){if(this['_myId'])throw new CKEditorError('users-me-already-defined',null);const _0x37261=this['getUser'](_0x1b181b);if(!_0x37261)throw new CKEditorError('users-me-missing-user',null);this['_myId']=_0x1b181b,_0x37261['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x43184b=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x43184b&&(this['_lastColor']=0x0),new CollaborationUserColor(this['_lastColor']++);}['_addAnonymousUser'](){const _0x197b28=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x197b28,'name':getTranslation$h(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}let User$1=class{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x4152d2,_0x22efa0){this['id']=_0x4152d2['id'],this['color']=_0x4152d2['color'],this['name']=_0x4152d2['name'],this['initials']=_0x22efa0?_0x22efa0(this['name']):this['_computeInitials'](),this['avatar']=_0x4152d2['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x197b94=this['name']['split']('\x20')['filter'](_0x3657bd=>/^[\p{Letter}]/u['test'](_0x3657bd));return 0x1===_0x197b94['length']?this['_getInitial'](_0x197b94[0x0]):0x0===_0x197b94['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x197b94[0x0])+this['_getInitial'](_0x197b94[_0x197b94['length']-0x1]);}['_getInitial'](_0x3e2542){return String['fromCodePoint'](_0x3e2542['codePointAt'](0x0))['toUpperCase']();}};function normalizeName(_0x3f0a65,_0x29e449=''){return''==(_0x29e449=_0x29e449['trim']())?getTranslation$h(_0x3f0a65,'Anonymous'):_0x29e449;}class CollaborationUserColor{['_id'];constructor(_0x342207){this['_id']=_0x342207;}get['id'](){return this['_id'];}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['id'];}['getSelectionClass'](){return'ck-user__selection--'+this['id'];}['getMarkerClass'](){return'ck-user__marker--'+this['id'];}}class UserView extends View{['name'];['notificationView'];constructor(_0x25f045,_0x12173e,_0x758a0){super(_0x25f045),this['name']=_0x12173e['name'],this['notificationView']=null;const _0x3c989a=['ck','ck-user'],_0x3b7ff1=['ck','ck-user__img'];if(_0x12173e['isAnonymous']&&_0x3b7ff1['push']('ck-user__anonymous'),!_0x12173e['isAnonymous']&&_0x12173e['isMe']&&_0x3c989a['push']('ck-user_me'),_0x12173e['avatar']&&_0x3b7ff1['push']('ck-user__avatar'),_0x758a0){const _0x5f0fbc=new IconView();_0x5f0fbc['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x5f0fbc['content']=IconNotification,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x758a0},'children':[_0x5f0fbc]};}const _0x4096dd=[{'tag':'div','attributes':{'class':_0x3b7ff1,'style':{'background-image':_0x12173e['avatar']?'url(\x27'+_0x12173e['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x12173e['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x12173e['name']},'children':[{'text':_0x12173e['initials']}]}];this['notificationView']&&_0x4096dd['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x3c989a,'data-user-id':_0x12173e['id']},'children':_0x4096dd});}}class AriaDescriptionView extends View{['id'];constructor(_0x3bbda9,_0x1b2f61){super(_0x3bbda9),this['id']='ck-aria-description-'+uid(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x1b2f61}]});}}class LateFocusButtonView extends ButtonView{['render'](){super['render'](),delayFocusUntilMouseup(this);}}class LateFocusDropdownButtonView extends DropdownButtonView{['render'](){super['render'](),delayFocusUntilMouseup(this);}}function delayFocusUntilMouseup(_0x43264d){_0x43264d['listenTo'](_0x43264d['element'],'mousedown',(_0x22ba62,_0x99b97f)=>{_0x99b97f['stopPropagation'](),_0x99b97f['preventDefault']();}),_0x43264d['listenTo'](_0x43264d['element'],'mouseup',()=>{_0x43264d['element']['focus']();});}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(_0x10adbe){super('Invalid\x20DateTime:\x20'+_0x10adbe['toMessage']());}}class InvalidIntervalError extends LuxonError{constructor(_0x371bb2){super('Invalid\x20Interval:\x20'+_0x371bb2['toMessage']());}}class InvalidDurationError extends LuxonError{constructor(_0x2c0d0f){super('Invalid\x20Duration:\x20'+_0x2c0d0f['toMessage']());}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(_0x200b09){super('Invalid\x20unit\x20'+_0x200b09);}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super('Zone\x20is\x20an\x20abstract\x20class');}}const n='numeric',s$1='short',l='long',DATE_SHORT={'year':n,'month':n,'day':n},DATE_MED={'year':n,'month':s$1,'day':n},DATE_MED_WITH_WEEKDAY={'year':n,'month':s$1,'day':n,'weekday':s$1},DATE_FULL={'year':n,'month':l,'day':n},DATE_HUGE={'year':n,'month':l,'day':n,'weekday':l},TIME_SIMPLE={'hour':n,'minute':n},TIME_WITH_SECONDS={'hour':n,'minute':n,'second':n},TIME_WITH_SHORT_OFFSET={'hour':n,'minute':n,'second':n,'timeZoneName':s$1},TIME_WITH_LONG_OFFSET={'hour':n,'minute':n,'second':n,'timeZoneName':l},TIME_24_SIMPLE={'hour':n,'minute':n,'hourCycle':'h23'},TIME_24_WITH_SECONDS={'hour':n,'minute':n,'second':n,'hourCycle':'h23'},TIME_24_WITH_SHORT_OFFSET={'hour':n,'minute':n,'second':n,'hourCycle':'h23','timeZoneName':s$1},TIME_24_WITH_LONG_OFFSET={'hour':n,'minute':n,'second':n,'hourCycle':'h23','timeZoneName':l},DATETIME_SHORT={'year':n,'month':n,'day':n,'hour':n,'minute':n},DATETIME_SHORT_WITH_SECONDS={'year':n,'month':n,'day':n,'hour':n,'minute':n,'second':n},DATETIME_MED={'year':n,'month':s$1,'day':n,'hour':n,'minute':n},DATETIME_MED_WITH_SECONDS={'year':n,'month':s$1,'day':n,'hour':n,'minute':n,'second':n},DATETIME_MED_WITH_WEEKDAY={'year':n,'month':s$1,'day':n,'weekday':s$1,'hour':n,'minute':n},DATETIME_FULL={'year':n,'month':l,'day':n,'hour':n,'minute':n,'timeZoneName':s$1},DATETIME_FULL_WITH_SECONDS={'year':n,'month':l,'day':n,'hour':n,'minute':n,'second':n,'timeZoneName':s$1},DATETIME_HUGE={'year':n,'month':l,'day':n,'weekday':l,'hour':n,'minute':n,'timeZoneName':l},DATETIME_HUGE_WITH_SECONDS={'year':n,'month':l,'day':n,'weekday':l,'hour':n,'minute':n,'second':n,'timeZoneName':l};class Zone{get['type'](){throw new ZoneIsAbstractError();}get['name'](){throw new ZoneIsAbstractError();}get['ianaName'](){return this['name'];}get['isUniversal'](){throw new ZoneIsAbstractError();}['offsetName'](_0x348cf5,_0x53c8b5){throw new ZoneIsAbstractError();}['formatOffset'](_0x492b8a,_0x9fbe99){throw new ZoneIsAbstractError();}['offset'](_0x31d030){throw new ZoneIsAbstractError();}['equals'](_0x3b8073){throw new ZoneIsAbstractError();}get['isValid'](){throw new ZoneIsAbstractError();}}let singleton$1=null;class SystemZone extends Zone{static get['instance'](){return null===singleton$1&&(singleton$1=new SystemZone()),singleton$1;}get['type'](){return'system';}get['name'](){return new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];}get['isUniversal'](){return!0x1;}['offsetName'](_0x2f45ff,{format:_0x393e79,locale:_0x5e5eed}){return parseZoneInfo(_0x2f45ff,_0x393e79,_0x5e5eed);}['formatOffset'](_0x4ee061,_0x4a9a00){return formatOffset(this['offset'](_0x4ee061),_0x4a9a00);}['offset'](_0x2371b4){return-new Date(_0x2371b4)['getTimezoneOffset']();}['equals'](_0x247245){return'system'===_0x247245['type'];}get['isValid'](){return!0x0;}}const dtfCache=new Map();function makeDTF(_0x39a016){let _0x210c63=dtfCache['get'](_0x39a016);return void 0x0===_0x210c63&&(_0x210c63=new Intl['DateTimeFormat']('en-US',{'hour12':!0x1,'timeZone':_0x39a016,'year':'numeric','month':'2-digit','day':'2-digit','hour':'2-digit','minute':'2-digit','second':'2-digit','era':'short'}),dtfCache['set'](_0x39a016,_0x210c63)),_0x210c63;}const typeToPos={'year':0x0,'month':0x1,'day':0x2,'era':0x3,'hour':0x4,'minute':0x5,'second':0x6};function hackyOffset(_0x473e86,_0x8c870b){const _0x132833=_0x473e86['format'](_0x8c870b)['replace'](/\u200E/g,''),_0x5ab233=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/['exec'](_0x132833),[,_0x5b2e18,_0x4d64b2,_0x49d6b5,_0x249ac9,_0x32de05,_0x3913ed,_0x39f99f]=_0x5ab233;return[_0x49d6b5,_0x5b2e18,_0x4d64b2,_0x249ac9,_0x32de05,_0x3913ed,_0x39f99f];}function partsOffset(_0x5043ba,_0x2cd879){const _0x22d35c=_0x5043ba['formatToParts'](_0x2cd879),_0x227288=[];for(let _0x2663ea=0x0;_0x2663ea<_0x22d35c['length'];_0x2663ea++){const {type:_0x19380e,value:_0x1b1ae2}=_0x22d35c[_0x2663ea],_0x4e6f5c=typeToPos[_0x19380e];'era'===_0x19380e?_0x227288[_0x4e6f5c]=_0x1b1ae2:isUndefined(_0x4e6f5c)||(_0x227288[_0x4e6f5c]=parseInt(_0x1b1ae2,0xa));}return _0x227288;}const ianaZoneCache=new Map();class IANAZone extends Zone{static['create'](_0x19265f){let _0x360b0d=ianaZoneCache['get'](_0x19265f);return void 0x0===_0x360b0d&&ianaZoneCache['set'](_0x19265f,_0x360b0d=new IANAZone(_0x19265f)),_0x360b0d;}static['resetCache'](){ianaZoneCache['clear'](),dtfCache['clear']();}static['isValidSpecifier'](_0x1bf5bf){return this['isValidZone'](_0x1bf5bf);}static['isValidZone'](_0x3eb786){if(!_0x3eb786)return!0x1;try{return new Intl['DateTimeFormat']('en-US',{'timeZone':_0x3eb786})['format'](),!0x0;}catch(_0x31e537){return!0x1;}}constructor(_0x2503e2){super(),this['zoneName']=_0x2503e2,this['valid']=IANAZone['isValidZone'](_0x2503e2);}get['type'](){return'iana';}get['name'](){return this['zoneName'];}get['isUniversal'](){return!0x1;}['offsetName'](_0x488bc1,{format:_0x3573f2,locale:_0xc39f60}){return parseZoneInfo(_0x488bc1,_0x3573f2,_0xc39f60,this['name']);}['formatOffset'](_0x257da4,_0x47e0ae){return formatOffset(this['offset'](_0x257da4),_0x47e0ae);}['offset'](_0x13c686){if(!this['valid'])return NaN;const _0x55eb8c=new Date(_0x13c686);if(isNaN(_0x55eb8c))return NaN;const _0x2fda64=makeDTF(this['name']);let [_0x127d3e,_0xc8cadd,_0x3e612d,_0x278802,_0x35b4f2,_0x2d5249,_0x25eaf5]=_0x2fda64['formatToParts']?partsOffset(_0x2fda64,_0x55eb8c):hackyOffset(_0x2fda64,_0x55eb8c);'BC'===_0x278802&&(_0x127d3e=0x1-Math['abs'](_0x127d3e));let _0x16b85f=+_0x55eb8c;const _0x5cc258=_0x16b85f%0x3e8;return _0x16b85f-=_0x5cc258>=0x0?_0x5cc258:0x3e8+_0x5cc258,(objToLocalTS({'year':_0x127d3e,'month':_0xc8cadd,'day':_0x3e612d,'hour':0x18===_0x35b4f2?0x0:_0x35b4f2,'minute':_0x2d5249,'second':_0x25eaf5,'millisecond':0x0})-_0x16b85f)/0xea60;}['equals'](_0x5c3dbc){return'iana'===_0x5c3dbc['type']&&_0x5c3dbc['name']===this['name'];}get['isValid'](){return this['valid'];}}let intlLFCache={};function getCachedLF(_0x4d1158,_0x422f62={}){const _0x2a512b=JSON['stringify']([_0x4d1158,_0x422f62]);let _0x3f0556=intlLFCache[_0x2a512b];return _0x3f0556||(_0x3f0556=new Intl['ListFormat'](_0x4d1158,_0x422f62),intlLFCache[_0x2a512b]=_0x3f0556),_0x3f0556;}const intlDTCache=new Map();function getCachedDTF(_0x2411e2,_0x4c96f1={}){const _0x586a3a=JSON['stringify']([_0x2411e2,_0x4c96f1]);let _0x475339=intlDTCache['get'](_0x586a3a);return void 0x0===_0x475339&&(_0x475339=new Intl['DateTimeFormat'](_0x2411e2,_0x4c96f1),intlDTCache['set'](_0x586a3a,_0x475339)),_0x475339;}const intlNumCache=new Map();function getCachedINF(_0x35544d,_0x1aba08={}){const _0x2b6549=JSON['stringify']([_0x35544d,_0x1aba08]);let _0x23a54e=intlNumCache['get'](_0x2b6549);return void 0x0===_0x23a54e&&(_0x23a54e=new Intl['NumberFormat'](_0x35544d,_0x1aba08),intlNumCache['set'](_0x2b6549,_0x23a54e)),_0x23a54e;}const intlRelCache=new Map();function getCachedRTF(_0x415a65,_0x4e378e={}){const {base:_0x33117a,..._0x430064}=_0x4e378e,_0x2aa227=JSON['stringify']([_0x415a65,_0x430064]);let _0x574c9a=intlRelCache['get'](_0x2aa227);return void 0x0===_0x574c9a&&(_0x574c9a=new Intl['RelativeTimeFormat'](_0x415a65,_0x4e378e),intlRelCache['set'](_0x2aa227,_0x574c9a)),_0x574c9a;}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl['DateTimeFormat']()['resolvedOptions']()['locale'],sysLocaleCache);}const intlResolvedOptionsCache=new Map();function getCachedIntResolvedOptions(_0x586130){let _0x22d528=intlResolvedOptionsCache['get'](_0x586130);return void 0x0===_0x22d528&&(_0x22d528=new Intl['DateTimeFormat'](_0x586130)['resolvedOptions'](),intlResolvedOptionsCache['set'](_0x586130,_0x22d528)),_0x22d528;}const weekInfoCache=new Map();function getCachedWeekInfo(_0x4d74bd){let _0x31f14d=weekInfoCache['get'](_0x4d74bd);if(!_0x31f14d){const _0x3733fd=new Intl['Locale'](_0x4d74bd);_0x31f14d='getWeekInfo'in _0x3733fd?_0x3733fd['getWeekInfo']():_0x3733fd['weekInfo'],'minimalDays'in _0x31f14d||(_0x31f14d={...fallbackWeekSettings,..._0x31f14d}),weekInfoCache['set'](_0x4d74bd,_0x31f14d);}return _0x31f14d;}function parseLocaleString(_0x1133d1){const _0x20e1fb=_0x1133d1['indexOf']('-x-');-0x1!==_0x20e1fb&&(_0x1133d1=_0x1133d1['substring'](0x0,_0x20e1fb));const _0x70314c=_0x1133d1['indexOf']('-u-');if(-0x1===_0x70314c)return[_0x1133d1];{let _0x944bf,_0x8002c7;try{_0x944bf=getCachedDTF(_0x1133d1)['resolvedOptions'](),_0x8002c7=_0x1133d1;}catch(_0x37242d){const _0x89ed8d=_0x1133d1['substring'](0x0,_0x70314c);_0x944bf=getCachedDTF(_0x89ed8d)['resolvedOptions'](),_0x8002c7=_0x89ed8d;}const {numberingSystem:_0x4a43cc,calendar:_0x52da34}=_0x944bf;return[_0x8002c7,_0x4a43cc,_0x52da34];}}function intlConfigString(_0x27484c,_0x54ea9b,_0x57625a){return _0x57625a||_0x54ea9b?(_0x27484c['includes']('-u-')||(_0x27484c+='-u'),_0x57625a&&(_0x27484c+='-ca-'+_0x57625a),_0x54ea9b&&(_0x27484c+='-nu-'+_0x54ea9b),_0x27484c):_0x27484c;}function mapMonths(_0x134461){const _0x3c376f=[];for(let _0x258ac6=0x1;_0x258ac6<=0xc;_0x258ac6++){const _0x477e45=DateTime['utc'](0x7d9,_0x258ac6,0x1);_0x3c376f['push'](_0x134461(_0x477e45));}return _0x3c376f;}function mapWeekdays(_0x486650){const _0x202992=[];for(let _0x10ee29=0x1;_0x10ee29<=0x7;_0x10ee29++){const _0x454202=DateTime['utc'](0x7e0,0xb,0xd+_0x10ee29);_0x202992['push'](_0x486650(_0x454202));}return _0x202992;}function listStuff(_0x2b00f5,_0x4b7b31,_0x146bfb,_0x2d7bb7){const _0x22db90=_0x2b00f5['listingMode']();return'error'===_0x22db90?null:'en'===_0x22db90?_0x146bfb(_0x4b7b31):_0x2d7bb7(_0x4b7b31);}function supportsFastNumbers(_0x4850fa){return(!_0x4850fa['numberingSystem']||'latn'===_0x4850fa['numberingSystem'])&&('latn'===_0x4850fa['numberingSystem']||!_0x4850fa['locale']||_0x4850fa['locale']['startsWith']('en')||'latn'===getCachedIntResolvedOptions(_0x4850fa['locale'])['numberingSystem']);}class PolyNumberFormatter{constructor(_0x4b32a7,_0x2840ef,_0x20f9c7){this['padTo']=_0x20f9c7['padTo']||0x0,this['floor']=_0x20f9c7['floor']||!0x1;const {padTo:_0x10bea7,floor:_0x3a9957,..._0xbb34b0}=_0x20f9c7;if(!_0x2840ef||Object['keys'](_0xbb34b0)['length']>0x0){const _0x96493b={'useGrouping':!0x1,..._0x20f9c7};_0x20f9c7['padTo']>0x0&&(_0x96493b['minimumIntegerDigits']=_0x20f9c7['padTo']),this['inf']=getCachedINF(_0x4b32a7,_0x96493b);}}['format'](_0x4a1f64){if(this['inf']){const _0x290c18=this['floor']?Math['floor'](_0x4a1f64):_0x4a1f64;return this['inf']['format'](_0x290c18);}return padStart(this['floor']?Math['floor'](_0x4a1f64):roundTo(_0x4a1f64,0x3),this['padTo']);}}class PolyDateFormatter{constructor(_0x2a2c60,_0x545130,_0x16d568){let _0x287287;if(this['opts']=_0x16d568,this['originalZone']=void 0x0,this['opts']['timeZone'])this['dt']=_0x2a2c60;else{if('fixed'===_0x2a2c60['zone']['type']){const _0x7eb879=_0x2a2c60['offset']/0x3c*-0x1,_0x71c59b=_0x7eb879>=0x0?'Etc/GMT+'+_0x7eb879:'Etc/GMT'+_0x7eb879;0x0!==_0x2a2c60['offset']&&IANAZone['create'](_0x71c59b)['valid']?(_0x287287=_0x71c59b,this['dt']=_0x2a2c60):(_0x287287='UTC',this['dt']=0x0===_0x2a2c60['offset']?_0x2a2c60:_0x2a2c60['setZone']('UTC')['plus']({'minutes':_0x2a2c60['offset']}),this['originalZone']=_0x2a2c60['zone']);}else'system'===_0x2a2c60['zone']['type']?this['dt']=_0x2a2c60:'iana'===_0x2a2c60['zone']['type']?(this['dt']=_0x2a2c60,_0x287287=_0x2a2c60['zone']['name']):(_0x287287='UTC',this['dt']=_0x2a2c60['setZone']('UTC')['plus']({'minutes':_0x2a2c60['offset']}),this['originalZone']=_0x2a2c60['zone']);}const _0x52270f={...this['opts']};_0x52270f['timeZone']=_0x52270f['timeZone']||_0x287287,this['dtf']=getCachedDTF(_0x545130,_0x52270f);}['format'](){return this['originalZone']?this['formatToParts']()['map'](({value:_0x2f3376})=>_0x2f3376)['join'](''):this['dtf']['format'](this['dt']['toJSDate']());}['formatToParts'](){const _0x56d045=this['dtf']['formatToParts'](this['dt']['toJSDate']());return this['originalZone']?_0x56d045['map'](_0x426bdb=>{if('timeZoneName'===_0x426bdb['type']){const _0x2e26d9=this['originalZone']['offsetName'](this['dt']['ts'],{'locale':this['dt']['locale'],'format':this['opts']['timeZoneName']});return{..._0x426bdb,'value':_0x2e26d9};}return _0x426bdb;}):_0x56d045;}['resolvedOptions'](){return this['dtf']['resolvedOptions']();}}class PolyRelFormatter{constructor(_0x64c98e,_0x385a56,_0x158478){this['opts']={'style':'long',..._0x158478},!_0x385a56&&hasRelative()&&(this['rtf']=getCachedRTF(_0x64c98e,_0x158478));}['format'](_0x4dbc80,_0x5661e0){return this['rtf']?this['rtf']['format'](_0x4dbc80,_0x5661e0):formatRelativeTime(_0x5661e0,_0x4dbc80,this['opts']['numeric'],'long'!==this['opts']['style']);}['formatToParts'](_0x792813,_0x42dc67){return this['rtf']?this['rtf']['formatToParts'](_0x792813,_0x42dc67):[];}}const fallbackWeekSettings={'firstDay':0x1,'minimalDays':0x4,'weekend':[0x6,0x7]};class Locale{static['fromOpts'](_0x32ad59){return Locale['create'](_0x32ad59['locale'],_0x32ad59['numberingSystem'],_0x32ad59['outputCalendar'],_0x32ad59['weekSettings'],_0x32ad59['defaultToEN']);}static['create'](_0xa0e753,_0x3f4946,_0xb86254,_0x29e709,_0x4e90e5=!0x1){const _0x2425e9=_0xa0e753||Settings['defaultLocale'],_0x25a466=_0x2425e9||(_0x4e90e5?'en-US':systemLocale()),_0x4220fc=_0x3f4946||Settings['defaultNumberingSystem'],_0x4e2d80=_0xb86254||Settings['defaultOutputCalendar'],_0x55acb7=validateWeekSettings(_0x29e709)||Settings['defaultWeekSettings'];return new Locale(_0x25a466,_0x4220fc,_0x4e2d80,_0x55acb7,_0x2425e9);}static['resetCache'](){sysLocaleCache=null,intlDTCache['clear'](),intlNumCache['clear'](),intlRelCache['clear'](),intlResolvedOptionsCache['clear'](),weekInfoCache['clear']();}static['fromObject']({locale:_0x225664,numberingSystem:_0x4a20bf,outputCalendar:_0x5e0ec4,weekSettings:_0x5e4bd9}={}){return Locale['create'](_0x225664,_0x4a20bf,_0x5e0ec4,_0x5e4bd9);}constructor(_0x523798,_0x44d404,_0x36f641,_0x4725e6,_0x298a0e){const [_0x412705,_0x4ce9c9,_0x1ca18f]=parseLocaleString(_0x523798);this['locale']=_0x412705,this['numberingSystem']=_0x44d404||_0x4ce9c9||null,this['outputCalendar']=_0x36f641||_0x1ca18f||null,this['weekSettings']=_0x4725e6,this['intl']=intlConfigString(this['locale'],this['numberingSystem'],this['outputCalendar']),this['weekdaysCache']={'format':{},'standalone':{}},this['monthsCache']={'format':{},'standalone':{}},this['meridiemCache']=null,this['eraCache']={},this['specifiedLocale']=_0x298a0e,this['fastNumbersCached']=null;}get['fastNumbers'](){return null==this['fastNumbersCached']&&(this['fastNumbersCached']=supportsFastNumbers(this)),this['fastNumbersCached'];}['listingMode'](){const _0x547b8b=this['isEnglish'](),_0x10b631=!(null!==this['numberingSystem']&&'latn'!==this['numberingSystem']||null!==this['outputCalendar']&&'gregory'!==this['outputCalendar']);return _0x547b8b&&_0x10b631?'en':'intl';}['clone'](_0x1db1a0){return _0x1db1a0&&0x0!==Object['getOwnPropertyNames'](_0x1db1a0)['length']?Locale['create'](_0x1db1a0['locale']||this['specifiedLocale'],_0x1db1a0['numberingSystem']||this['numberingSystem'],_0x1db1a0['outputCalendar']||this['outputCalendar'],validateWeekSettings(_0x1db1a0['weekSettings'])||this['weekSettings'],_0x1db1a0['defaultToEN']||!0x1):this;}['redefaultToEN'](_0x5c6516={}){return this['clone']({..._0x5c6516,'defaultToEN':!0x0});}['redefaultToSystem'](_0x11b2b2={}){return this['clone']({..._0x11b2b2,'defaultToEN':!0x1});}['months'](_0x2d27b6,_0x4179a0=!0x1){return listStuff(this,_0x2d27b6,months,()=>{const _0x1226fd=_0x4179a0?{'month':_0x2d27b6,'day':'numeric'}:{'month':_0x2d27b6},_0x2f76c9=_0x4179a0?'format':'standalone';return this['monthsCache'][_0x2f76c9][_0x2d27b6]||(this['monthsCache'][_0x2f76c9][_0x2d27b6]=mapMonths(_0x1b516a=>this['extract'](_0x1b516a,_0x1226fd,'month'))),this['monthsCache'][_0x2f76c9][_0x2d27b6];});}['weekdays'](_0x1c2322,_0xad37f0=!0x1){return listStuff(this,_0x1c2322,weekdays,()=>{const _0x352feb=_0xad37f0?{'weekday':_0x1c2322,'year':'numeric','month':'long','day':'numeric'}:{'weekday':_0x1c2322},_0x3dc4aa=_0xad37f0?'format':'standalone';return this['weekdaysCache'][_0x3dc4aa][_0x1c2322]||(this['weekdaysCache'][_0x3dc4aa][_0x1c2322]=mapWeekdays(_0x21571=>this['extract'](_0x21571,_0x352feb,'weekday'))),this['weekdaysCache'][_0x3dc4aa][_0x1c2322];});}['meridiems'](){return listStuff(this,void 0x0,()=>meridiems,()=>{if(!this['meridiemCache']){const _0x50ebab={'hour':'numeric','hourCycle':'h12'};this['meridiemCache']=[DateTime['utc'](0x7e0,0xb,0xd,0x9),DateTime['utc'](0x7e0,0xb,0xd,0x13)]['map'](_0x290c32=>this['extract'](_0x290c32,_0x50ebab,'dayperiod'));}return this['meridiemCache'];});}['eras'](_0x3b6a05){return listStuff(this,_0x3b6a05,eras,()=>{const _0x4e3607={'era':_0x3b6a05};return this['eraCache'][_0x3b6a05]||(this['eraCache'][_0x3b6a05]=[DateTime['utc'](-0x28,0x1,0x1),DateTime['utc'](0x7e1,0x1,0x1)]['map'](_0xebcd0b=>this['extract'](_0xebcd0b,_0x4e3607,'era'))),this['eraCache'][_0x3b6a05];});}['extract'](_0x14f528,_0x20c599,_0x3ca314){const _0x4c7283=this['dtFormatter'](_0x14f528,_0x20c599)['formatToParts']()['find'](_0xf08d34=>_0xf08d34['type']['toLowerCase']()===_0x3ca314);return _0x4c7283?_0x4c7283['value']:null;}['numberFormatter'](_0x36c932={}){return new PolyNumberFormatter(this['intl'],_0x36c932['forceSimple']||this['fastNumbers'],_0x36c932);}['dtFormatter'](_0x2b359d,_0xcf632e={}){return new PolyDateFormatter(_0x2b359d,this['intl'],_0xcf632e);}['relFormatter'](_0x383fe9={}){return new PolyRelFormatter(this['intl'],this['isEnglish'](),_0x383fe9);}['listFormatter'](_0xad720e={}){return getCachedLF(this['intl'],_0xad720e);}['isEnglish'](){return'en'===this['locale']||'en-us'===this['locale']['toLowerCase']()||getCachedIntResolvedOptions(this['intl'])['locale']['startsWith']('en-us');}['getWeekSettings'](){return this['weekSettings']?this['weekSettings']:hasLocaleWeekInfo()?getCachedWeekInfo(this['locale']):fallbackWeekSettings;}['getStartOfWeek'](){return this['getWeekSettings']()['firstDay'];}['getMinDaysInFirstWeek'](){return this['getWeekSettings']()['minimalDays'];}['getWeekendDays'](){return this['getWeekSettings']()['weekend'];}['equals'](_0x7dac40){return this['locale']===_0x7dac40['locale']&&this['numberingSystem']===_0x7dac40['numberingSystem']&&this['outputCalendar']===_0x7dac40['outputCalendar'];}['toString'](){return'Locale('+this['locale']+',\x20'+this['numberingSystem']+',\x20'+this['outputCalendar']+')';}}let singleton=null;class FixedOffsetZone extends Zone{static get['utcInstance'](){return null===singleton&&(singleton=new FixedOffsetZone(0x0)),singleton;}static['instance'](_0x21aeb7){return 0x0===_0x21aeb7?FixedOffsetZone['utcInstance']:new FixedOffsetZone(_0x21aeb7);}static['parseSpecifier'](_0x1094ae){if(_0x1094ae){const _0x5893e6=_0x1094ae['match'](/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(_0x5893e6)return new FixedOffsetZone(signedOffset(_0x5893e6[0x1],_0x5893e6[0x2]));}return null;}constructor(_0x1c5bc3){super(),this['fixed']=_0x1c5bc3;}get['type'](){return'fixed';}get['name'](){return 0x0===this['fixed']?'UTC':'UTC'+formatOffset(this['fixed'],'narrow');}get['ianaName'](){return 0x0===this['fixed']?'Etc/UTC':'Etc/GMT'+formatOffset(-this['fixed'],'narrow');}['offsetName'](){return this['name'];}['formatOffset'](_0x1921fb,_0x445972){return formatOffset(this['fixed'],_0x445972);}get['isUniversal'](){return!0x0;}['offset'](){return this['fixed'];}['equals'](_0x223514){return'fixed'===_0x223514['type']&&_0x223514['fixed']===this['fixed'];}get['isValid'](){return!0x0;}}class InvalidZone extends Zone{constructor(_0x49a657){super(),this['zoneName']=_0x49a657;}get['type'](){return'invalid';}get['name'](){return this['zoneName'];}get['isUniversal'](){return!0x1;}['offsetName'](){return null;}['formatOffset'](){return'';}['offset'](){return NaN;}['equals'](){return!0x1;}get['isValid'](){return!0x1;}}function normalizeZone(_0x4cfe2c,_0x5c2f28){if(isUndefined(_0x4cfe2c)||null===_0x4cfe2c)return _0x5c2f28;if(_0x4cfe2c instanceof Zone)return _0x4cfe2c;if(isString(_0x4cfe2c)){const _0x34b5b3=_0x4cfe2c['toLowerCase']();return'default'===_0x34b5b3?_0x5c2f28:'local'===_0x34b5b3||'system'===_0x34b5b3?SystemZone['instance']:'utc'===_0x34b5b3||'gmt'===_0x34b5b3?FixedOffsetZone['utcInstance']:FixedOffsetZone['parseSpecifier'](_0x34b5b3)||IANAZone['create'](_0x4cfe2c);}return isNumber(_0x4cfe2c)?FixedOffsetZone['instance'](_0x4cfe2c):'object'==typeof _0x4cfe2c&&'offset'in _0x4cfe2c&&'function'==typeof _0x4cfe2c['offset']?_0x4cfe2c:new InvalidZone(_0x4cfe2c);}const numberingSystems={'arab':'[٠-٩]','arabext':'[۰-۹]','bali':'[᭐-᭙]','beng':'[০-৯]','deva':'[०-९]','fullwide':'[０-９]','gujr':'[૦-૯]','hanidec':'[〇|一|二|三|四|五|六|七|八|九]','khmr':'[០-៩]','knda':'[೦-೯]','laoo':'[໐-໙]','limb':'[᥆-᥏]','mlym':'[൦-൯]','mong':'[᠐-᠙]','mymr':'[၀-၉]','orya':'[୦-୯]','tamldec':'[௦-௯]','telu':'[౦-౯]','thai':'[๐-๙]','tibt':'[༠-༩]','latn':'\x5cd'},numberingSystemsUTF16={'arab':[0x660,0x669],'arabext':[0x6f0,0x6f9],'bali':[0x1b50,0x1b59],'beng':[0x9e6,0x9ef],'deva':[0x966,0x96f],'fullwide':[0xff10,0xff17],'gujr':[0xae6,0xaef],'khmr':[0x17e0,0x17e9],'knda':[0xce6,0xcef],'laoo':[0xed0,0xed9],'limb':[0x1946,0x194f],'mlym':[0xd66,0xd6f],'mong':[0x1810,0x1819],'mymr':[0x1040,0x1049],'orya':[0xb66,0xb6f],'tamldec':[0xbe6,0xbef],'telu':[0xc66,0xc6f],'thai':[0xe50,0xe59],'tibt':[0xf20,0xf29]},hanidecChars=numberingSystems['hanidec']['replace'](/[\[|\]]/g,'')['split']('');function parseDigits(_0x4c2536){let _0x47c9ed=parseInt(_0x4c2536,0xa);if(isNaN(_0x47c9ed)){_0x47c9ed='';for(let _0x563b0c=0x0;_0x563b0c<_0x4c2536['length'];_0x563b0c++){const _0x47b1b6=_0x4c2536['charCodeAt'](_0x563b0c);if(-0x1!==_0x4c2536[_0x563b0c]['search'](numberingSystems['hanidec']))_0x47c9ed+=hanidecChars['indexOf'](_0x4c2536[_0x563b0c]);else for(const _0x17d1ac in numberingSystemsUTF16){const [_0x48a45c,_0x4a6778]=numberingSystemsUTF16[_0x17d1ac];_0x47b1b6>=_0x48a45c&&_0x47b1b6<=_0x4a6778&&(_0x47c9ed+=_0x47b1b6-_0x48a45c);}}return parseInt(_0x47c9ed,0xa);}return _0x47c9ed;}const digitRegexCache=new Map();function resetDigitRegexCache(){digitRegexCache['clear']();}function digitRegex({numberingSystem:_0x41a99e},_0x18a2ff=''){const _0x514002=_0x41a99e||'latn';let _0x5538fb=digitRegexCache['get'](_0x514002);void 0x0===_0x5538fb&&(_0x5538fb=new Map(),digitRegexCache['set'](_0x514002,_0x5538fb));let _0xc988d6=_0x5538fb['get'](_0x18a2ff);return void 0x0===_0xc988d6&&(_0xc988d6=new RegExp(''+numberingSystems[_0x514002]+_0x18a2ff),_0x5538fb['set'](_0x18a2ff,_0xc988d6)),_0xc988d6;}let now=()=>Date['now'](),defaultZone='system',defaultLocale=null,defaultNumberingSystem=null,defaultOutputCalendar=null,twoDigitCutoffYear=0x3c,throwOnInvalid,defaultWeekSettings=null;class Settings{static get['now'](){return now;}static set['now'](_0x28a286){now=_0x28a286;}static set['defaultZone'](_0x511314){defaultZone=_0x511314;}static get['defaultZone'](){return normalizeZone(defaultZone,SystemZone['instance']);}static get['defaultLocale'](){return defaultLocale;}static set['defaultLocale'](_0x40d022){defaultLocale=_0x40d022;}static get['defaultNumberingSystem'](){return defaultNumberingSystem;}static set['defaultNumberingSystem'](_0x457f49){defaultNumberingSystem=_0x457f49;}static get['defaultOutputCalendar'](){return defaultOutputCalendar;}static set['defaultOutputCalendar'](_0x3ac493){defaultOutputCalendar=_0x3ac493;}static get['defaultWeekSettings'](){return defaultWeekSettings;}static set['defaultWeekSettings'](_0x339c6f){defaultWeekSettings=validateWeekSettings(_0x339c6f);}static get['twoDigitCutoffYear'](){return twoDigitCutoffYear;}static set['twoDigitCutoffYear'](_0x4444ef){twoDigitCutoffYear=_0x4444ef%0x64;}static get['throwOnInvalid'](){return throwOnInvalid;}static set['throwOnInvalid'](t){throwOnInvalid=t;}static['resetCaches'](){Locale['resetCache'](),IANAZone['resetCache'](),DateTime['resetCache'](),resetDigitRegexCache();}}class Invalid{constructor(_0x527909,_0x525eb8){this['reason']=_0x527909,this['explanation']=_0x525eb8;}['toMessage'](){return this['explanation']?this['reason']+':\x20'+this['explanation']:this['reason'];}}const nonLeapLadder=[0x0,0x1f,0x3b,0x5a,0x78,0x97,0xb5,0xd4,0xf3,0x111,0x130,0x14e],leapLadder=[0x0,0x1f,0x3c,0x5b,0x79,0x98,0xb6,0xd5,0xf4,0x112,0x131,0x14f];function unitOutOfRange(_0x30c9a4,_0x21a9d6){return new Invalid('unit\x20out\x20of\x20range','you\x20specified\x20'+_0x21a9d6+'\x20(of\x20type\x20'+typeof _0x21a9d6+')\x20as\x20a\x20'+_0x30c9a4+',\x20which\x20is\x20invalid');}function dayOfWeek(_0x33d386,_0x30d7eb,_0x332732){const _0x51a814=new Date(Date['UTC'](_0x33d386,_0x30d7eb-0x1,_0x332732));_0x33d386<0x64&&_0x33d386>=0x0&&_0x51a814['setUTCFullYear'](_0x51a814['getUTCFullYear']()-0x76c);const _0x49caa3=_0x51a814['getUTCDay']();return 0x0===_0x49caa3?0x7:_0x49caa3;}function computeOrdinal(_0xe83908,_0x3bb2f0,_0x939fe5){return _0x939fe5+(isLeapYear(_0xe83908)?leapLadder:nonLeapLadder)[_0x3bb2f0-0x1];}function uncomputeOrdinal(_0x1fe81c,_0x332ef8){const _0x458eaa=isLeapYear(_0x1fe81c)?leapLadder:nonLeapLadder,_0x4c0574=_0x458eaa['findIndex'](_0x4cd5d6=>_0x4cd5d6<_0x332ef8);return{'month':_0x4c0574+0x1,'day':_0x332ef8-_0x458eaa[_0x4c0574]};}function isoWeekdayToLocal(_0x1930cc,_0x4f748a){return(_0x1930cc-_0x4f748a+0x7)%0x7+0x1;}function gregorianToWeek(_0x4cb8bd,_0x3c4ae8=0x4,_0x58a8f2=0x1){const {year:_0x22d73a,month:_0x263907,day:_0xf62975}=_0x4cb8bd,_0xb1330d=computeOrdinal(_0x22d73a,_0x263907,_0xf62975),_0x81bb56=isoWeekdayToLocal(dayOfWeek(_0x22d73a,_0x263907,_0xf62975),_0x58a8f2);let _0x237db1,_0x23215f=Math['floor']((_0xb1330d-_0x81bb56+0xe-_0x3c4ae8)/0x7);return _0x23215f<0x1?(_0x237db1=_0x22d73a-0x1,_0x23215f=weeksInWeekYear(_0x237db1,_0x3c4ae8,_0x58a8f2)):_0x23215f>weeksInWeekYear(_0x22d73a,_0x3c4ae8,_0x58a8f2)?(_0x237db1=_0x22d73a+0x1,_0x23215f=0x1):_0x237db1=_0x22d73a,{'weekYear':_0x237db1,'weekNumber':_0x23215f,'weekday':_0x81bb56,...timeObject(_0x4cb8bd)};}function weekToGregorian(_0x3e82ad,_0x89cafb=0x4,_0x482be0=0x1){const {weekYear:_0x7cb9ed,weekNumber:_0x2b8931,weekday:_0x1dc5a9}=_0x3e82ad,_0x2525eb=isoWeekdayToLocal(dayOfWeek(_0x7cb9ed,0x1,_0x89cafb),_0x482be0),_0x4bdba5=daysInYear(_0x7cb9ed);let _0x232f38,_0x8bc143=0x7*_0x2b8931+_0x1dc5a9-_0x2525eb-0x7+_0x89cafb;_0x8bc143<0x1?(_0x232f38=_0x7cb9ed-0x1,_0x8bc143+=daysInYear(_0x232f38)):_0x8bc143>_0x4bdba5?(_0x232f38=_0x7cb9ed+0x1,_0x8bc143-=daysInYear(_0x7cb9ed)):_0x232f38=_0x7cb9ed;const {month:_0x1297b1,day:_0x4f2402}=uncomputeOrdinal(_0x232f38,_0x8bc143);return{'year':_0x232f38,'month':_0x1297b1,'day':_0x4f2402,...timeObject(_0x3e82ad)};}function gregorianToOrdinal(_0x5f1faf){const {year:_0x21472f,month:_0x14d4c7,day:_0x219289}=_0x5f1faf;return{'year':_0x21472f,'ordinal':computeOrdinal(_0x21472f,_0x14d4c7,_0x219289),...timeObject(_0x5f1faf)};}function ordinalToGregorian(_0x1bb27e){const {year:_0x9eca21,ordinal:_0x2c1b39}=_0x1bb27e,{month:_0xbff625,day:_0x473a2e}=uncomputeOrdinal(_0x9eca21,_0x2c1b39);return{'year':_0x9eca21,'month':_0xbff625,'day':_0x473a2e,...timeObject(_0x1bb27e)};}function usesLocalWeekValues(_0x1ecb65,_0x324e0f){if(!isUndefined(_0x1ecb65['localWeekday'])||!isUndefined(_0x1ecb65['localWeekNumber'])||!isUndefined(_0x1ecb65['localWeekYear'])){if(!isUndefined(_0x1ecb65['weekday'])||!isUndefined(_0x1ecb65['weekNumber'])||!isUndefined(_0x1ecb65['weekYear']))throw new ConflictingSpecificationError('Cannot\x20mix\x20locale-based\x20week\x20fields\x20with\x20ISO-based\x20week\x20fields');return isUndefined(_0x1ecb65['localWeekday'])||(_0x1ecb65['weekday']=_0x1ecb65['localWeekday']),isUndefined(_0x1ecb65['localWeekNumber'])||(_0x1ecb65['weekNumber']=_0x1ecb65['localWeekNumber']),isUndefined(_0x1ecb65['localWeekYear'])||(_0x1ecb65['weekYear']=_0x1ecb65['localWeekYear']),delete _0x1ecb65['localWeekday'],delete _0x1ecb65['localWeekNumber'],delete _0x1ecb65['localWeekYear'],{'minDaysInFirstWeek':_0x324e0f['getMinDaysInFirstWeek'](),'startOfWeek':_0x324e0f['getStartOfWeek']()};}return{'minDaysInFirstWeek':0x4,'startOfWeek':0x1};}function hasInvalidWeekData(_0x394ae2,_0x307612=0x4,_0x2fc97c=0x1){const _0x386cfb=isInteger(_0x394ae2['weekYear']),_0x383f06=integerBetween(_0x394ae2['weekNumber'],0x1,weeksInWeekYear(_0x394ae2['weekYear'],_0x307612,_0x2fc97c)),_0x5c1562=integerBetween(_0x394ae2['weekday'],0x1,0x7);return _0x386cfb?_0x383f06?!_0x5c1562&&unitOutOfRange('weekday',_0x394ae2['weekday']):unitOutOfRange('week',_0x394ae2['weekNumber']):unitOutOfRange('weekYear',_0x394ae2['weekYear']);}function hasInvalidOrdinalData(_0x48096e){const _0x2be214=isInteger(_0x48096e['year']),_0x1616d7=integerBetween(_0x48096e['ordinal'],0x1,daysInYear(_0x48096e['year']));return _0x2be214?!_0x1616d7&&unitOutOfRange('ordinal',_0x48096e['ordinal']):unitOutOfRange('year',_0x48096e['year']);}function hasInvalidGregorianData(_0x108b6f){const _0x1163c9=isInteger(_0x108b6f['year']),_0x3b39b0=integerBetween(_0x108b6f['month'],0x1,0xc),_0x35ffc5=integerBetween(_0x108b6f['day'],0x1,daysInMonth(_0x108b6f['year'],_0x108b6f['month']));return _0x1163c9?_0x3b39b0?!_0x35ffc5&&unitOutOfRange('day',_0x108b6f['day']):unitOutOfRange('month',_0x108b6f['month']):unitOutOfRange('year',_0x108b6f['year']);}function hasInvalidTimeData(_0xe8de59){const {hour:_0x41e92e,minute:_0x849257,second:_0x31c13c,millisecond:_0x43d4e2}=_0xe8de59,_0x2cc238=integerBetween(_0x41e92e,0x0,0x17)||0x18===_0x41e92e&&0x0===_0x849257&&0x0===_0x31c13c&&0x0===_0x43d4e2,_0x230293=integerBetween(_0x849257,0x0,0x3b),_0x4d23e3=integerBetween(_0x31c13c,0x0,0x3b),_0x332084=integerBetween(_0x43d4e2,0x0,0x3e7);return _0x2cc238?_0x230293?_0x4d23e3?!_0x332084&&unitOutOfRange('millisecond',_0x43d4e2):unitOutOfRange('second',_0x31c13c):unitOutOfRange('minute',_0x849257):unitOutOfRange('hour',_0x41e92e);}function isUndefined(_0x1f7ccb){return void 0x0===_0x1f7ccb;}function isNumber(_0x4ec640){return'number'==typeof _0x4ec640;}function isInteger(_0x2c61f2){return'number'==typeof _0x2c61f2&&_0x2c61f2%0x1==0x0;}function isString(_0x5caa33){return'string'==typeof _0x5caa33;}function isDate(_0x500aea){return'[object\x20Date]'===Object['prototype']['toString']['call'](_0x500aea);}function hasRelative(){try{return'undefined'!=typeof Intl&&!!Intl['RelativeTimeFormat'];}catch(_0x4a6ded){return!0x1;}}function hasLocaleWeekInfo(){try{return'undefined'!=typeof Intl&&!!Intl['Locale']&&('weekInfo'in Intl['Locale']['prototype']||'getWeekInfo'in Intl['Locale']['prototype']);}catch(_0x536f8f){return!0x1;}}function maybeArray(_0x9ae0c3){return Array['isArray'](_0x9ae0c3)?_0x9ae0c3:[_0x9ae0c3];}function bestBy(_0x595384,_0x758328,_0x2d5c6a){if(0x0!==_0x595384['length'])return _0x595384['reduce']((_0x1eadb8,_0x21a384)=>{const _0x57916b=[_0x758328(_0x21a384),_0x21a384];return _0x1eadb8&&_0x2d5c6a(_0x1eadb8[0x0],_0x57916b[0x0])===_0x1eadb8[0x0]?_0x1eadb8:_0x57916b;},null)[0x1];}function pick$2(_0x4539af,_0x54e7d3){return _0x54e7d3['reduce']((_0x44dba1,_0x28cf72)=>(_0x44dba1[_0x28cf72]=_0x4539af[_0x28cf72],_0x44dba1),{});}function hasOwnProperty(_0x3fc41d,_0x29f856){return Object['prototype']['hasOwnProperty']['call'](_0x3fc41d,_0x29f856);}function validateWeekSettings(_0x4570d5){if(null==_0x4570d5)return null;if('object'!=typeof _0x4570d5)throw new InvalidArgumentError('Week\x20settings\x20must\x20be\x20an\x20object');if(!integerBetween(_0x4570d5['firstDay'],0x1,0x7)||!integerBetween(_0x4570d5['minimalDays'],0x1,0x7)||!Array['isArray'](_0x4570d5['weekend'])||_0x4570d5['weekend']['some'](_0x8e131d=>!integerBetween(_0x8e131d,0x1,0x7)))throw new InvalidArgumentError('Invalid\x20week\x20settings');return{'firstDay':_0x4570d5['firstDay'],'minimalDays':_0x4570d5['minimalDays'],'weekend':Array['from'](_0x4570d5['weekend'])};}function integerBetween(_0x1261bc,_0x1c26bf,_0x112d22){return isInteger(_0x1261bc)&&_0x1261bc>=_0x1c26bf&&_0x1261bc<=_0x112d22;}function floorMod(_0x480acf,_0x46a71c){return _0x480acf-_0x46a71c*Math['floor'](_0x480acf/_0x46a71c);}function padStart(_0x2f35d9,_0x343129=0x2){let _0x5d87f5;return _0x5d87f5=_0x2f35d9<0x0?'-'+(''+-_0x2f35d9)['padStart'](_0x343129,'0'):(''+_0x2f35d9)['padStart'](_0x343129,'0'),_0x5d87f5;}function parseInteger(_0x49d632){return isUndefined(_0x49d632)||null===_0x49d632||''===_0x49d632?void 0x0:parseInt(_0x49d632,0xa);}function parseFloating(_0x55bd6d){return isUndefined(_0x55bd6d)||null===_0x55bd6d||''===_0x55bd6d?void 0x0:parseFloat(_0x55bd6d);}function parseMillis(_0x5e963f){if(!isUndefined(_0x5e963f)&&null!==_0x5e963f&&''!==_0x5e963f){const _0x54f5bd=0x3e8*parseFloat('0.'+_0x5e963f);return Math['floor'](_0x54f5bd);}}function roundTo(_0x3c2736,_0x3c20c1,_0x2ab2cd=!0x1){const _0x50593a=0xa**_0x3c20c1;return(_0x2ab2cd?Math['trunc']:Math['round'])(_0x3c2736*_0x50593a)/_0x50593a;}function isLeapYear(_0x48048f){return _0x48048f%0x4==0x0&&(_0x48048f%0x64!=0x0||_0x48048f%0x190==0x0);}function daysInYear(_0x340c49){return isLeapYear(_0x340c49)?0x16e:0x16d;}function daysInMonth(_0x3dab37,_0x4d18cd){const _0x4669b4=floorMod(_0x4d18cd-0x1,0xc)+0x1;return 0x2===_0x4669b4?isLeapYear(_0x3dab37+(_0x4d18cd-_0x4669b4)/0xc)?0x1d:0x1c:[0x1f,null,0x1f,0x1e,0x1f,0x1e,0x1f,0x1f,0x1e,0x1f,0x1e,0x1f][_0x4669b4-0x1];}function objToLocalTS(_0x2a006b){let _0x5cc7d1=Date['UTC'](_0x2a006b['year'],_0x2a006b['month']-0x1,_0x2a006b['day'],_0x2a006b['hour'],_0x2a006b['minute'],_0x2a006b['second'],_0x2a006b['millisecond']);return _0x2a006b['year']<0x64&&_0x2a006b['year']>=0x0&&(_0x5cc7d1=new Date(_0x5cc7d1),_0x5cc7d1['setUTCFullYear'](_0x2a006b['year'],_0x2a006b['month']-0x1,_0x2a006b['day'])),+_0x5cc7d1;}function firstWeekOffset(_0x451df0,_0x290316,_0x5471bd){return-isoWeekdayToLocal(dayOfWeek(_0x451df0,0x1,_0x290316),_0x5471bd)+_0x290316-0x1;}function weeksInWeekYear(_0x2d7256,_0xb225f5=0x4,_0x1f8761=0x1){const _0x586926=firstWeekOffset(_0x2d7256,_0xb225f5,_0x1f8761),_0x1132f7=firstWeekOffset(_0x2d7256+0x1,_0xb225f5,_0x1f8761);return(daysInYear(_0x2d7256)-_0x586926+_0x1132f7)/0x7;}function untruncateYear(_0x3554d2){return _0x3554d2>0x63?_0x3554d2:_0x3554d2>Settings['twoDigitCutoffYear']?0x76c+_0x3554d2:0x7d0+_0x3554d2;}function parseZoneInfo(_0x186e8a,_0x313a8e,_0x2403bb,_0x32a8b4=null){const _0x4fa804=new Date(_0x186e8a),_0x1997f5={'hourCycle':'h23','year':'numeric','month':'2-digit','day':'2-digit','hour':'2-digit','minute':'2-digit'};_0x32a8b4&&(_0x1997f5['timeZone']=_0x32a8b4);const _0x2cc8c7={'timeZoneName':_0x313a8e,..._0x1997f5},_0x53751d=new Intl['DateTimeFormat'](_0x2403bb,_0x2cc8c7)['formatToParts'](_0x4fa804)['find'](_0xa52faf=>'timezonename'===_0xa52faf['type']['toLowerCase']());return _0x53751d?_0x53751d['value']:null;}function signedOffset(_0x579529,_0x1ed7f6){let _0x6afd72=parseInt(_0x579529,0xa);Number['isNaN'](_0x6afd72)&&(_0x6afd72=0x0);const _0x72c9dd=parseInt(_0x1ed7f6,0xa)||0x0;return 0x3c*_0x6afd72+(_0x6afd72<0x0||Object['is'](_0x6afd72,-0x0)?-_0x72c9dd:_0x72c9dd);}function asNumber$2(_0x389413){const _0x359c84=Number(_0x389413);if('boolean'==typeof _0x389413||''===_0x389413||Number['isNaN'](_0x359c84))throw new InvalidArgumentError('Invalid\x20unit\x20value\x20'+_0x389413);return _0x359c84;}function normalizeObject(_0x50bd76,_0x20f4e8){const _0x64abb1={};for(const _0x25828e in _0x50bd76)if(hasOwnProperty(_0x50bd76,_0x25828e)){const _0x5fc2c9=_0x50bd76[_0x25828e];if(null==_0x5fc2c9)continue;_0x64abb1[_0x20f4e8(_0x25828e)]=asNumber$2(_0x5fc2c9);}return _0x64abb1;}function formatOffset(_0x197ae2,_0x1cc573){const _0xad213d=Math['trunc'](Math['abs'](_0x197ae2/0x3c)),_0x47f7b4=Math['trunc'](Math['abs'](_0x197ae2%0x3c)),_0x22618f=_0x197ae2>=0x0?'+':'-';switch(_0x1cc573){case'short':return''+_0x22618f+padStart(_0xad213d,0x2)+':'+padStart(_0x47f7b4,0x2);case'narrow':return''+_0x22618f+_0xad213d+(_0x47f7b4>0x0?':'+_0x47f7b4:'');case'techie':return''+_0x22618f+padStart(_0xad213d,0x2)+padStart(_0x47f7b4,0x2);default:throw new RangeError('Value\x20format\x20'+_0x1cc573+'\x20is\x20out\x20of\x20range\x20for\x20property\x20format');}}function timeObject(_0x2c49df){return pick$2(_0x2c49df,['hour','minute','second','millisecond']);}const monthsLong=['January','February','March','April','May','June','July','August','September','October','November','December'],monthsShort=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],monthsNarrow=['J','F','M','A','M','J','J','A','S','O','N','D'];function months(_0x34bc7a){switch(_0x34bc7a){case'narrow':return[...monthsNarrow];case'short':return[...monthsShort];case'long':return[...monthsLong];case'numeric':return['1','2','3','4','5','6','7','8','9','10','11','12'];case'2-digit':return['01','02','03','04','05','06','07','08','09','10','11','12'];default:return null;}}const weekdaysLong=['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'],weekdaysShort=['Mon','Tue','Wed','Thu','Fri','Sat','Sun'],weekdaysNarrow=['M','T','W','T','F','S','S'];function weekdays(_0x3e5404){switch(_0x3e5404){case'narrow':return[...weekdaysNarrow];case'short':return[...weekdaysShort];case'long':return[...weekdaysLong];case'numeric':return['1','2','3','4','5','6','7'];default:return null;}}const meridiems=['AM','PM'],erasLong=['Before\x20Christ','Anno\x20Domini'],erasShort=['BC','AD'],erasNarrow=['B','A'];function eras(_0x1d309e){switch(_0x1d309e){case'narrow':return[...erasNarrow];case'short':return[...erasShort];case'long':return[...erasLong];default:return null;}}function meridiemForDateTime(_0x4226b0){return meridiems[_0x4226b0['hour']<0xc?0x0:0x1];}function weekdayForDateTime(_0x7b4088,_0x28e231){return weekdays(_0x28e231)[_0x7b4088['weekday']-0x1];}function monthForDateTime(_0x51918c,_0x1213fa){return months(_0x1213fa)[_0x51918c['month']-0x1];}function eraForDateTime(_0x46a749,_0x5a4fe6){return eras(_0x5a4fe6)[_0x46a749['year']<0x0?0x0:0x1];}function formatRelativeTime(_0x2a4e8e,_0xb0ee66,_0xb5339a='always',_0x5581cf=!0x1){const _0x3f51e8={'years':['year','yr.'],'quarters':['quarter','qtr.'],'months':['month','mo.'],'weeks':['week','wk.'],'days':['day','day','days'],'hours':['hour','hr.'],'minutes':['minute','min.'],'seconds':['second','sec.']},_0x4c8d88=-0x1===['hours','minutes','seconds']['indexOf'](_0x2a4e8e);if('auto'===_0xb5339a&&_0x4c8d88){const _0x5c4b5f='days'===_0x2a4e8e;switch(_0xb0ee66){case 0x1:return _0x5c4b5f?'tomorrow':'next\x20'+_0x3f51e8[_0x2a4e8e][0x0];case-0x1:return _0x5c4b5f?'yesterday':'last\x20'+_0x3f51e8[_0x2a4e8e][0x0];case 0x0:return _0x5c4b5f?'today':'this\x20'+_0x3f51e8[_0x2a4e8e][0x0];}}const _0x3d5681=Object['is'](_0xb0ee66,-0x0)||_0xb0ee66<0x0,_0x350402=Math['abs'](_0xb0ee66),_0x547cf4=0x1===_0x350402,_0x55bad4=_0x3f51e8[_0x2a4e8e],_0x502abb=_0x5581cf?_0x547cf4?_0x55bad4[0x1]:_0x55bad4[0x2]||_0x55bad4[0x1]:_0x547cf4?_0x3f51e8[_0x2a4e8e][0x0]:_0x2a4e8e;return _0x3d5681?_0x350402+'\x20'+_0x502abb+'\x20ago':'in\x20'+_0x350402+'\x20'+_0x502abb;}function stringifyTokens(_0x462157,_0x1a98c9){let _0x4c13b8='';for(const _0xb73873 of _0x462157)_0xb73873['literal']?_0x4c13b8+=_0xb73873['val']:_0x4c13b8+=_0x1a98c9(_0xb73873['val']);return _0x4c13b8;}const macroTokenToFormatOpts={'D':DATE_SHORT,'DD':DATE_MED,'DDD':DATE_FULL,'DDDD':DATE_HUGE,'t':TIME_SIMPLE,'tt':TIME_WITH_SECONDS,'ttt':TIME_WITH_SHORT_OFFSET,'tttt':TIME_WITH_LONG_OFFSET,'T':TIME_24_SIMPLE,'TT':TIME_24_WITH_SECONDS,'TTT':TIME_24_WITH_SHORT_OFFSET,'TTTT':TIME_24_WITH_LONG_OFFSET,'f':DATETIME_SHORT,'ff':DATETIME_MED,'fff':DATETIME_FULL,'ffff':DATETIME_HUGE,'F':DATETIME_SHORT_WITH_SECONDS,'FF':DATETIME_MED_WITH_SECONDS,'FFF':DATETIME_FULL_WITH_SECONDS,'FFFF':DATETIME_HUGE_WITH_SECONDS};class Formatter{static['create'](_0x713f0e,_0x1e53a8={}){return new Formatter(_0x713f0e,_0x1e53a8);}static['parseFormat'](_0x23fd31){let _0x5a7d31=null,_0x28ba27='',_0x217e0c=!0x1;const _0x460afe=[];for(let _0x366ada=0x0;_0x366ada<_0x23fd31['length'];_0x366ada++){const _0x56323b=_0x23fd31['charAt'](_0x366ada);'\x27'===_0x56323b?(_0x28ba27['length']>0x0&&_0x460afe['push']({'literal':_0x217e0c||/^\s+$/['test'](_0x28ba27),'val':_0x28ba27}),_0x5a7d31=null,_0x28ba27='',_0x217e0c=!_0x217e0c):_0x217e0c||_0x56323b===_0x5a7d31?_0x28ba27+=_0x56323b:(_0x28ba27['length']>0x0&&_0x460afe['push']({'literal':/^\s+$/['test'](_0x28ba27),'val':_0x28ba27}),_0x28ba27=_0x56323b,_0x5a7d31=_0x56323b);}return _0x28ba27['length']>0x0&&_0x460afe['push']({'literal':_0x217e0c||/^\s+$/['test'](_0x28ba27),'val':_0x28ba27}),_0x460afe;}static['macroTokenToFormatOpts'](_0x353ff5){return macroTokenToFormatOpts[_0x353ff5];}constructor(_0x45a7ac,_0xe01c6f){this['opts']=_0xe01c6f,this['loc']=_0x45a7ac,this['systemLoc']=null;}['formatWithSystemDefault'](_0x488eb5,_0x51d32a){return null===this['systemLoc']&&(this['systemLoc']=this['loc']['redefaultToSystem']()),this['systemLoc']['dtFormatter'](_0x488eb5,{...this['opts'],..._0x51d32a})['format']();}['dtFormatter'](_0x5334f3,_0xcaef9d={}){return this['loc']['dtFormatter'](_0x5334f3,{...this['opts'],..._0xcaef9d});}['formatDateTime'](_0x24f328,_0x69a06a){return this['dtFormatter'](_0x24f328,_0x69a06a)['format']();}['formatDateTimeParts'](_0x3977b1,_0x4a4315){return this['dtFormatter'](_0x3977b1,_0x4a4315)['formatToParts']();}['formatInterval'](_0xe67ea7,_0x43d4ed){return this['dtFormatter'](_0xe67ea7['start'],_0x43d4ed)['dtf']['formatRange'](_0xe67ea7['start']['toJSDate'](),_0xe67ea7['end']['toJSDate']());}['resolvedOptions'](_0xa2d002,_0x9c778a){return this['dtFormatter'](_0xa2d002,_0x9c778a)['resolvedOptions']();}['num'](_0x495c1e,_0x57d470=0x0){if(this['opts']['forceSimple'])return padStart(_0x495c1e,_0x57d470);const _0x4f2741={...this['opts']};return _0x57d470>0x0&&(_0x4f2741['padTo']=_0x57d470),this['loc']['numberFormatter'](_0x4f2741)['format'](_0x495c1e);}['formatDateTimeFromString'](_0x5ac049,_0x23b1ea){const _0x58342a='en'===this['loc']['listingMode'](),_0x2734dd=this['loc']['outputCalendar']&&'gregory'!==this['loc']['outputCalendar'],_0x121c7f=(_0x4cf97d,_0x53eba1)=>this['loc']['extract'](_0x5ac049,_0x4cf97d,_0x53eba1),_0x3af2dc=_0x472383=>_0x5ac049['isOffsetFixed']&&0x0===_0x5ac049['offset']&&_0x472383['allowZ']?'Z':_0x5ac049['isValid']?_0x5ac049['zone']['formatOffset'](_0x5ac049['ts'],_0x472383['format']):'',_0x181f67=(_0x1d316a,_0x1c4f38)=>_0x58342a?monthForDateTime(_0x5ac049,_0x1d316a):_0x121c7f(_0x1c4f38?{'month':_0x1d316a}:{'month':_0x1d316a,'day':'numeric'},'month'),_0x229ce8=(_0x333297,_0x3f193c)=>_0x58342a?weekdayForDateTime(_0x5ac049,_0x333297):_0x121c7f(_0x3f193c?{'weekday':_0x333297}:{'weekday':_0x333297,'month':'long','day':'numeric'},'weekday'),_0x1c2dd0=_0x320ce6=>{const _0x175516=Formatter['macroTokenToFormatOpts'](_0x320ce6);return _0x175516?this['formatWithSystemDefault'](_0x5ac049,_0x175516):_0x320ce6;},_0x44035d=_0x58580f=>_0x58342a?eraForDateTime(_0x5ac049,_0x58580f):_0x121c7f({'era':_0x58580f},'era');return stringifyTokens(Formatter['parseFormat'](_0x23b1ea),_0xde2946=>{switch(_0xde2946){case'S':return this['num'](_0x5ac049['millisecond']);case'u':case'SSS':return this['num'](_0x5ac049['millisecond'],0x3);case's':return this['num'](_0x5ac049['second']);case'ss':return this['num'](_0x5ac049['second'],0x2);case'uu':return this['num'](Math['floor'](_0x5ac049['millisecond']/0xa),0x2);case'uuu':return this['num'](Math['floor'](_0x5ac049['millisecond']/0x64));case'm':return this['num'](_0x5ac049['minute']);case'mm':return this['num'](_0x5ac049['minute'],0x2);case'h':return this['num'](_0x5ac049['hour']%0xc==0x0?0xc:_0x5ac049['hour']%0xc);case'hh':return this['num'](_0x5ac049['hour']%0xc==0x0?0xc:_0x5ac049['hour']%0xc,0x2);case'H':return this['num'](_0x5ac049['hour']);case'HH':return this['num'](_0x5ac049['hour'],0x2);case'Z':return _0x3af2dc({'format':'narrow','allowZ':this['opts']['allowZ']});case'ZZ':return _0x3af2dc({'format':'short','allowZ':this['opts']['allowZ']});case'ZZZ':return _0x3af2dc({'format':'techie','allowZ':this['opts']['allowZ']});case'ZZZZ':return _0x5ac049['zone']['offsetName'](_0x5ac049['ts'],{'format':'short','locale':this['loc']['locale']});case'ZZZZZ':return _0x5ac049['zone']['offsetName'](_0x5ac049['ts'],{'format':'long','locale':this['loc']['locale']});case'z':return _0x5ac049['zoneName'];case'a':return _0x58342a?meridiemForDateTime(_0x5ac049):_0x121c7f({'hour':'numeric','hourCycle':'h12'},'dayperiod');case'd':return _0x2734dd?_0x121c7f({'day':'numeric'},'day'):this['num'](_0x5ac049['day']);case'dd':return _0x2734dd?_0x121c7f({'day':'2-digit'},'day'):this['num'](_0x5ac049['day'],0x2);case'c':case'E':return this['num'](_0x5ac049['weekday']);case'ccc':return _0x229ce8('short',!0x0);case'cccc':return _0x229ce8('long',!0x0);case'ccccc':return _0x229ce8('narrow',!0x0);case'EEE':return _0x229ce8('short',!0x1);case'EEEE':return _0x229ce8('long',!0x1);case'EEEEE':return _0x229ce8('narrow',!0x1);case'L':return _0x2734dd?_0x121c7f({'month':'numeric','day':'numeric'},'month'):this['num'](_0x5ac049['month']);case'LL':return _0x2734dd?_0x121c7f({'month':'2-digit','day':'numeric'},'month'):this['num'](_0x5ac049['month'],0x2);case'LLL':return _0x181f67('short',!0x0);case'LLLL':return _0x181f67('long',!0x0);case'LLLLL':return _0x181f67('narrow',!0x0);case'M':return _0x2734dd?_0x121c7f({'month':'numeric'},'month'):this['num'](_0x5ac049['month']);case'MM':return _0x2734dd?_0x121c7f({'month':'2-digit'},'month'):this['num'](_0x5ac049['month'],0x2);case'MMM':return _0x181f67('short',!0x1);case'MMMM':return _0x181f67('long',!0x1);case'MMMMM':return _0x181f67('narrow',!0x1);case'y':return _0x2734dd?_0x121c7f({'year':'numeric'},'year'):this['num'](_0x5ac049['year']);case'yy':return _0x2734dd?_0x121c7f({'year':'2-digit'},'year'):this['num'](_0x5ac049['year']['toString']()['slice'](-0x2),0x2);case'yyyy':return _0x2734dd?_0x121c7f({'year':'numeric'},'year'):this['num'](_0x5ac049['year'],0x4);case'yyyyyy':return _0x2734dd?_0x121c7f({'year':'numeric'},'year'):this['num'](_0x5ac049['year'],0x6);case'G':return _0x44035d('short');case'GG':return _0x44035d('long');case'GGGGG':return _0x44035d('narrow');case'kk':return this['num'](_0x5ac049['weekYear']['toString']()['slice'](-0x2),0x2);case'kkkk':return this['num'](_0x5ac049['weekYear'],0x4);case'W':return this['num'](_0x5ac049['weekNumber']);case'WW':return this['num'](_0x5ac049['weekNumber'],0x2);case'n':return this['num'](_0x5ac049['localWeekNumber']);case'nn':return this['num'](_0x5ac049['localWeekNumber'],0x2);case'ii':return this['num'](_0x5ac049['localWeekYear']['toString']()['slice'](-0x2),0x2);case'iiii':return this['num'](_0x5ac049['localWeekYear'],0x4);case'o':return this['num'](_0x5ac049['ordinal']);case'ooo':return this['num'](_0x5ac049['ordinal'],0x3);case'q':return this['num'](_0x5ac049['quarter']);case'qq':return this['num'](_0x5ac049['quarter'],0x2);case'X':return this['num'](Math['floor'](_0x5ac049['ts']/0x3e8));case'x':return this['num'](_0x5ac049['ts']);default:return _0x1c2dd0(_0xde2946);}});}['formatDurationFromString'](_0x595056,_0x39e108){const _0x4a4a84=_0x10ffde=>{switch(_0x10ffde[0x0]){case'S':return'millisecond';case's':return'second';case'm':return'minute';case'h':return'hour';case'd':return'day';case'w':return'week';case'M':return'month';case'y':return'year';default:return null;}},_0xb45eee=Formatter['parseFormat'](_0x39e108),_0xc1b9ab=_0xb45eee['reduce']((_0x358f1b,{literal:_0x363f59,val:_0x596783})=>_0x363f59?_0x358f1b:_0x358f1b['concat'](_0x596783),[]),_0x1ddfc7=_0x595056['shiftTo'](..._0xc1b9ab['map'](_0x4a4a84)['filter'](t=>t));return stringifyTokens(_0xb45eee,(_0x4cf80e=>_0x4fd6bd=>{const _0x3c45f0=_0x4a4a84(_0x4fd6bd);return _0x3c45f0?this['num'](_0x4cf80e['get'](_0x3c45f0),_0x4fd6bd['length']):_0x4fd6bd;})(_0x1ddfc7));}}const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(..._0x29fe9e){const _0x11bba7=_0x29fe9e['reduce']((_0x1b9049,_0x1423d)=>_0x1b9049+_0x1423d['source'],'');return RegExp('^'+_0x11bba7+'$');}function combineExtractors(..._0x2dcdf7){return _0x43ea2a=>_0x2dcdf7['reduce'](([_0x39735d,_0x4b2410,_0x5411c7],_0x2eb705)=>{const [_0x1742d1,_0x57b638,_0x519047]=_0x2eb705(_0x43ea2a,_0x5411c7);return[{..._0x39735d,..._0x1742d1},_0x57b638||_0x4b2410,_0x519047];},[{},null,0x1])['slice'](0x0,0x2);}function parse$1(_0x458fc4,..._0x4c93d8){if(null==_0x458fc4)return[null,null];for(const [_0x444176,_0x53ba62]of _0x4c93d8){const _0x50e290=_0x444176['exec'](_0x458fc4);if(_0x50e290)return _0x53ba62(_0x50e290);}return[null,null];}function simpleParse(..._0x330dab){return(_0x389398,_0x107643)=>{const _0x38979c={};let _0x1284f0;for(_0x1284f0=0x0;_0x1284f0<_0x330dab['length'];_0x1284f0++)_0x38979c[_0x330dab[_0x1284f0]]=parseInteger(_0x389398[_0x107643+_0x1284f0]);return[_0x38979c,null,_0x107643+_0x1284f0];};}const offsetRegex=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone='(?:'+offsetRegex['source']+'?(?:\x5c[('+ianaRegex['source']+')\x5c])?)?',isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(''+isoTimeBaseRegex['source']+isoExtendedZone),isoTimeExtensionRegex=RegExp('(?:T'+isoTimeRegex['source']+')?'),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse('weekYear','weekNumber','weekDay'),extractISOOrdinalData=simpleParse('year','ordinal'),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(isoTimeBaseRegex['source']+'\x20?(?:'+offsetRegex['source']+'|('+ianaRegex['source']+'))?'),sqlTimeExtensionRegex=RegExp('(?:\x20'+sqlTimeRegex['source']+')?');function int(_0x53bb7a,_0x1ca672,_0x35c300){const _0x1a1623=_0x53bb7a[_0x1ca672];return isUndefined(_0x1a1623)?_0x35c300:parseInteger(_0x1a1623);}function extractISOYmd(_0x356b3b,_0x58899b){return[{'year':int(_0x356b3b,_0x58899b),'month':int(_0x356b3b,_0x58899b+0x1,0x1),'day':int(_0x356b3b,_0x58899b+0x2,0x1)},null,_0x58899b+0x3];}function extractISOTime(_0xc5bdf0,_0x20c638){return[{'hours':int(_0xc5bdf0,_0x20c638,0x0),'minutes':int(_0xc5bdf0,_0x20c638+0x1,0x0),'seconds':int(_0xc5bdf0,_0x20c638+0x2,0x0),'milliseconds':parseMillis(_0xc5bdf0[_0x20c638+0x3])},null,_0x20c638+0x4];}function extractISOOffset(_0xde47ef,_0x5c62d5){const _0x22780c=!_0xde47ef[_0x5c62d5]&&!_0xde47ef[_0x5c62d5+0x1],_0x8c506f=signedOffset(_0xde47ef[_0x5c62d5+0x1],_0xde47ef[_0x5c62d5+0x2]);return[{},_0x22780c?null:FixedOffsetZone['instance'](_0x8c506f),_0x5c62d5+0x3];}function extractIANAZone(_0x3d7ba1,_0x10cad2){return[{},_0x3d7ba1[_0x10cad2]?IANAZone['create'](_0x3d7ba1[_0x10cad2]):null,_0x10cad2+0x1];}const isoTimeOnly=RegExp('^T?'+isoTimeBaseRegex['source']+'$'),isoDuration=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration(_0x4b6896){const [_0x4dee8e,_0x38b101,_0xc4d922,_0x5afbdb,_0x202595,_0x52cbd4,_0x5bb1c9,_0x26bdeb,_0xfa642b]=_0x4b6896,_0x41f7ee='-'===_0x4dee8e[0x0],_0x2fb05d=_0x26bdeb&&'-'===_0x26bdeb[0x0],_0xa7515e=(_0x74de7d,_0x21d6fa=!0x1)=>void 0x0!==_0x74de7d&&(_0x21d6fa||_0x74de7d&&_0x41f7ee)?-_0x74de7d:_0x74de7d;return[{'years':_0xa7515e(parseFloating(_0x38b101)),'months':_0xa7515e(parseFloating(_0xc4d922)),'weeks':_0xa7515e(parseFloating(_0x5afbdb)),'days':_0xa7515e(parseFloating(_0x202595)),'hours':_0xa7515e(parseFloating(_0x52cbd4)),'minutes':_0xa7515e(parseFloating(_0x5bb1c9)),'seconds':_0xa7515e(parseFloating(_0x26bdeb),'-0'===_0x26bdeb),'milliseconds':_0xa7515e(parseMillis(_0xfa642b),_0x2fb05d)}];}const obsOffsets={'GMT':0x0,'EDT':-0xf0,'EST':-0x12c,'CDT':-0x12c,'CST':-0x168,'MDT':-0x168,'MST':-0x1a4,'PDT':-0x1a4,'PST':-0x1e0};function fromStrings(_0x286616,_0x71b7ba,_0x5313f7,_0x309502,_0x23bc69,_0x542076,_0x38705a){const _0x244786={'year':0x2===_0x71b7ba['length']?untruncateYear(parseInteger(_0x71b7ba)):parseInteger(_0x71b7ba),'month':monthsShort['indexOf'](_0x5313f7)+0x1,'day':parseInteger(_0x309502),'hour':parseInteger(_0x23bc69),'minute':parseInteger(_0x542076)};return _0x38705a&&(_0x244786['second']=parseInteger(_0x38705a)),_0x286616&&(_0x244786['weekday']=_0x286616['length']>0x3?weekdaysLong['indexOf'](_0x286616)+0x1:weekdaysShort['indexOf'](_0x286616)+0x1),_0x244786;}const rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(_0x36e2ab){const [,_0x129ff6,_0x1394b2,_0x2429f1,_0x32284f,_0x173518,_0x39bdc1,_0x2b351b,_0x5d03e4,_0x1114f3,_0x2cdde0,_0x229c39]=_0x36e2ab,_0x55ba06=fromStrings(_0x129ff6,_0x32284f,_0x2429f1,_0x1394b2,_0x173518,_0x39bdc1,_0x2b351b);let _0x273117;return _0x273117=_0x5d03e4?obsOffsets[_0x5d03e4]:_0x1114f3?0x0:signedOffset(_0x2cdde0,_0x229c39),[_0x55ba06,new FixedOffsetZone(_0x273117)];}function preprocessRFC2822(_0x33090d){return _0x33090d['replace'](/\([^()]*\)|[\n\t]/g,'\x20')['replace'](/(\s\s+)/g,'\x20')['trim']();}const rfc1123=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(_0x534a30){const [,_0x131f8a,_0x4bc9d4,_0x1c4094,_0x2bede6,_0x11cb94,_0x2dcfd8,_0x1735d7]=_0x534a30;return[fromStrings(_0x131f8a,_0x2bede6,_0x1c4094,_0x4bc9d4,_0x11cb94,_0x2dcfd8,_0x1735d7),FixedOffsetZone['utcInstance']];}function extractASCII(_0x100da5){const [,_0x269349,_0x51dc80,_0x4fed05,_0x2532b5,_0x21fbc2,_0x47b490,_0x408d6f]=_0x100da5;return[fromStrings(_0x269349,_0x408d6f,_0x51dc80,_0x4fed05,_0x2532b5,_0x21fbc2,_0x47b490),FixedOffsetZone['utcInstance']];}const isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset,extractIANAZone),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(_0x2d1a0b){return parse$1(_0x2d1a0b,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset]);}function parseRFC2822Date(_0xd44359){return parse$1(preprocessRFC2822(_0xd44359),[rfc2822,extractRFC2822]);}function parseHTTPDate(_0x3a54b6){return parse$1(_0x3a54b6,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII]);}function parseISODuration(_0x3ea964){return parse$1(_0x3ea964,[isoDuration,extractISODuration]);}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(_0x4577b5){return parse$1(_0x4577b5,[isoTimeOnly,extractISOTimeOnly]);}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(_0x58343a){return parse$1(_0x58343a,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone]);}const INVALID$2='Invalid\x20Duration',lowOrderMatrix={'weeks':{'days':0x7,'hours':0xa8,'minutes':0x2760,'seconds':0x93a80,'milliseconds':0x240c8400},'days':{'hours':0x18,'minutes':0x5a0,'seconds':0x15180,'milliseconds':0x5265c00},'hours':{'minutes':0x3c,'seconds':0xe10,'milliseconds':0x36ee80},'minutes':{'seconds':0x3c,'milliseconds':0xea60},'seconds':{'milliseconds':0x3e8}},casualMatrix={'years':{'quarters':0x4,'months':0xc,'weeks':0x34,'days':0x16d,'hours':0x2238,'minutes':0x80520,'seconds':0x1e13380,'milliseconds':0x757b12c00},'quarters':{'months':0x3,'weeks':0xd,'days':0x5b,'hours':0x888,'minutes':0x1ffe0,'seconds':0x77f880,'milliseconds':0x1d4a2b400},'months':{'weeks':0x4,'days':0x1e,'hours':0x2d0,'minutes':0xa8c0,'seconds':0x278d00,'milliseconds':0x9a7ec800},...lowOrderMatrix},daysInYearAccurate=365.2425,daysInMonthAccurate=30.436875,accurateMatrix={'years':{'quarters':0x4,'months':0xc,'weeks':daysInYearAccurate/0x7,'days':daysInYearAccurate,'hours':0x18*daysInYearAccurate,'minutes':0x18*daysInYearAccurate*0x3c,'seconds':0x18*daysInYearAccurate*0x3c*0x3c,'milliseconds':0x18*daysInYearAccurate*0x3c*0x3c*0x3e8},'quarters':{'months':0x3,'weeks':daysInYearAccurate/0x1c,'days':daysInYearAccurate/0x4,'hours':0x18*daysInYearAccurate/0x4,'minutes':0x18*daysInYearAccurate*0x3c/0x4,'seconds':0x18*daysInYearAccurate*0x3c*0x3c/0x4,'milliseconds':0x18*daysInYearAccurate*0x3c*0x3c*0x3e8/0x4},'months':{'weeks':daysInMonthAccurate/0x7,'days':daysInMonthAccurate,'hours':0x18*daysInMonthAccurate,'minutes':0x18*daysInMonthAccurate*0x3c,'seconds':0x18*daysInMonthAccurate*0x3c*0x3c,'milliseconds':0x18*daysInMonthAccurate*0x3c*0x3c*0x3e8},...lowOrderMatrix},orderedUnits$1=['years','quarters','months','weeks','days','hours','minutes','seconds','milliseconds'],reverseUnits=orderedUnits$1['slice'](0x0)['reverse']();function clone$1(_0x3998fd,_0x241160,_0x107b20=!0x1){const _0x11f6ba={'values':_0x107b20?_0x241160['values']:{..._0x3998fd['values'],..._0x241160['values']||{}},'loc':_0x3998fd['loc']['clone'](_0x241160['loc']),'conversionAccuracy':_0x241160['conversionAccuracy']||_0x3998fd['conversionAccuracy'],'matrix':_0x241160['matrix']||_0x3998fd['matrix']};return new Duration(_0x11f6ba);}function durationToMillis(_0x1103e4,_0x3ee5f3){let _0x1e02d2=_0x3ee5f3['milliseconds']??0x0;for(const _0x3bc99d of reverseUnits['slice'](0x1))_0x3ee5f3[_0x3bc99d]&&(_0x1e02d2+=_0x3ee5f3[_0x3bc99d]*_0x1103e4[_0x3bc99d]['milliseconds']);return _0x1e02d2;}function normalizeValues(_0x491dd5,_0x5199c6){const _0xfbd0c9=durationToMillis(_0x491dd5,_0x5199c6)<0x0?-0x1:0x1;orderedUnits$1['reduceRight']((_0x133ab9,_0x13aacb)=>{if(isUndefined(_0x5199c6[_0x13aacb]))return _0x133ab9;if(_0x133ab9){const _0x13f18=_0x5199c6[_0x133ab9]*_0xfbd0c9,_0x338be1=_0x491dd5[_0x13aacb][_0x133ab9],_0x405e79=Math['floor'](_0x13f18/_0x338be1);_0x5199c6[_0x13aacb]+=_0x405e79*_0xfbd0c9,_0x5199c6[_0x133ab9]-=_0x405e79*_0x338be1*_0xfbd0c9;}return _0x13aacb;},null),orderedUnits$1['reduce']((_0x248544,_0x3aab40)=>{if(isUndefined(_0x5199c6[_0x3aab40]))return _0x248544;if(_0x248544){const _0x66f3cf=_0x5199c6[_0x248544]%0x1;_0x5199c6[_0x248544]-=_0x66f3cf,_0x5199c6[_0x3aab40]+=_0x66f3cf*_0x491dd5[_0x248544][_0x3aab40];}return _0x3aab40;},null);}function removeZeroes(_0x10069e){const _0x218550={};for(const [_0x283ef4,_0x540eb1]of Object['entries'](_0x10069e))0x0!==_0x540eb1&&(_0x218550[_0x283ef4]=_0x540eb1);return _0x218550;}class Duration{constructor(_0x1e35c2){const _0x49e8e4='longterm'===_0x1e35c2['conversionAccuracy']||!0x1;let _0x1a44b6=_0x49e8e4?accurateMatrix:casualMatrix;_0x1e35c2['matrix']&&(_0x1a44b6=_0x1e35c2['matrix']),this['values']=_0x1e35c2['values'],this['loc']=_0x1e35c2['loc']||Locale['create'](),this['conversionAccuracy']=_0x49e8e4?'longterm':'casual',this['invalid']=_0x1e35c2['invalid']||null,this['matrix']=_0x1a44b6,this['isLuxonDuration']=!0x0;}static['fromMillis'](_0x548d60,_0x34083b){return Duration['fromObject']({'milliseconds':_0x548d60},_0x34083b);}static['fromObject'](_0x3789ae,_0x3b3892={}){if(null==_0x3789ae||'object'!=typeof _0x3789ae)throw new InvalidArgumentError('Duration.fromObject:\x20argument\x20expected\x20to\x20be\x20an\x20object,\x20got\x20'+(null===_0x3789ae?'null':typeof _0x3789ae));return new Duration({'values':normalizeObject(_0x3789ae,Duration['normalizeUnit']),'loc':Locale['fromObject'](_0x3b3892),'conversionAccuracy':_0x3b3892['conversionAccuracy'],'matrix':_0x3b3892['matrix']});}static['fromDurationLike'](_0x3837eb){if(isNumber(_0x3837eb))return Duration['fromMillis'](_0x3837eb);if(Duration['isDuration'](_0x3837eb))return _0x3837eb;if('object'==typeof _0x3837eb)return Duration['fromObject'](_0x3837eb);throw new InvalidArgumentError('Unknown\x20duration\x20argument\x20'+_0x3837eb+'\x20of\x20type\x20'+typeof _0x3837eb);}static['fromISO'](_0x581e0e,_0x1294f1){const [_0x3e0b94]=parseISODuration(_0x581e0e);return _0x3e0b94?Duration['fromObject'](_0x3e0b94,_0x1294f1):Duration['invalid']('unparsable','the\x20input\x20\x22'+_0x581e0e+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['fromISOTime'](_0x1d5d7c,_0x4a9c4e){const [_0x356e47]=parseISOTimeOnly(_0x1d5d7c);return _0x356e47?Duration['fromObject'](_0x356e47,_0x4a9c4e):Duration['invalid']('unparsable','the\x20input\x20\x22'+_0x1d5d7c+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['invalid'](_0x445db1,_0x3b3b7d=null){if(!_0x445db1)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20Duration\x20is\x20invalid');const _0x34505c=_0x445db1 instanceof Invalid?_0x445db1:new Invalid(_0x445db1,_0x3b3b7d);if(Settings['throwOnInvalid'])throw new InvalidDurationError(_0x34505c);return new Duration({'invalid':_0x34505c});}static['normalizeUnit'](_0x3a0b4a){const _0x5a7b43={'year':'years','years':'years','quarter':'quarters','quarters':'quarters','month':'months','months':'months','week':'weeks','weeks':'weeks','day':'days','days':'days','hour':'hours','hours':'hours','minute':'minutes','minutes':'minutes','second':'seconds','seconds':'seconds','millisecond':'milliseconds','milliseconds':'milliseconds'}[_0x3a0b4a?_0x3a0b4a['toLowerCase']():_0x3a0b4a];if(!_0x5a7b43)throw new InvalidUnitError(_0x3a0b4a);return _0x5a7b43;}static['isDuration'](_0x9507e){return _0x9507e&&_0x9507e['isLuxonDuration']||!0x1;}get['locale'](){return this['isValid']?this['loc']['locale']:null;}get['numberingSystem'](){return this['isValid']?this['loc']['numberingSystem']:null;}['toFormat'](_0x5686d5,_0x16c18e={}){const _0xaca781={..._0x16c18e,'floor':!0x1!==_0x16c18e['round']&&!0x1!==_0x16c18e['floor']};return this['isValid']?Formatter['create'](this['loc'],_0xaca781)['formatDurationFromString'](this,_0x5686d5):INVALID$2;}['toHuman'](_0x3c29b1={}){if(!this['isValid'])return INVALID$2;const _0x41f965=orderedUnits$1['map'](_0x4c941c=>{const _0x2bc3b4=this['values'][_0x4c941c];return isUndefined(_0x2bc3b4)?null:this['loc']['numberFormatter']({'style':'unit','unitDisplay':'long',..._0x3c29b1,'unit':_0x4c941c['slice'](0x0,-0x1)})['format'](_0x2bc3b4);})['filter'](_0x2deb58=>_0x2deb58);return this['loc']['listFormatter']({'type':'conjunction','style':_0x3c29b1['listStyle']||'narrow',..._0x3c29b1})['format'](_0x41f965);}['toObject'](){return this['isValid']?{...this['values']}:{};}['toISO'](){if(!this['isValid'])return null;let _0xee6936='P';return 0x0!==this['years']&&(_0xee6936+=this['years']+'Y'),0x0===this['months']&&0x0===this['quarters']||(_0xee6936+=this['months']+0x3*this['quarters']+'M'),0x0!==this['weeks']&&(_0xee6936+=this['weeks']+'W'),0x0!==this['days']&&(_0xee6936+=this['days']+'D'),0x0===this['hours']&&0x0===this['minutes']&&0x0===this['seconds']&&0x0===this['milliseconds']||(_0xee6936+='T'),0x0!==this['hours']&&(_0xee6936+=this['hours']+'H'),0x0!==this['minutes']&&(_0xee6936+=this['minutes']+'M'),0x0===this['seconds']&&0x0===this['milliseconds']||(_0xee6936+=roundTo(this['seconds']+this['milliseconds']/0x3e8,0x3)+'S'),'P'===_0xee6936&&(_0xee6936+='T0S'),_0xee6936;}['toISOTime'](_0x44522d={}){if(!this['isValid'])return null;const _0x4cb0c0=this['toMillis']();if(_0x4cb0c0<0x0||_0x4cb0c0>=0x5265c00)return null;return _0x44522d={'suppressMilliseconds':!0x1,'suppressSeconds':!0x1,'includePrefix':!0x1,'format':'extended',..._0x44522d,'includeOffset':!0x1},DateTime['fromMillis'](_0x4cb0c0,{'zone':'UTC'})['toISOTime'](_0x44522d);}['toJSON'](){return this['toISO']();}['toString'](){return this['toISO']();}[Symbol['for']('nodejs.util.inspect.custom')](){return this['isValid']?'Duration\x20{\x20values:\x20'+JSON['stringify'](this['values'])+'\x20}':'Duration\x20{\x20Invalid,\x20reason:\x20'+this['invalidReason']+'\x20}';}['toMillis'](){return this['isValid']?durationToMillis(this['matrix'],this['values']):NaN;}['valueOf'](){return this['toMillis']();}['plus'](_0x260e2a){if(!this['isValid'])return this;const _0x4c553c=Duration['fromDurationLike'](_0x260e2a),_0x577c74={};for(const _0xbfbd01 of orderedUnits$1)(hasOwnProperty(_0x4c553c['values'],_0xbfbd01)||hasOwnProperty(this['values'],_0xbfbd01))&&(_0x577c74[_0xbfbd01]=_0x4c553c['get'](_0xbfbd01)+this['get'](_0xbfbd01));return clone$1(this,{'values':_0x577c74},!0x0);}['minus'](_0x96e12b){if(!this['isValid'])return this;const _0x4c67cd=Duration['fromDurationLike'](_0x96e12b);return this['plus'](_0x4c67cd['negate']());}['mapUnits'](_0x1a7827){if(!this['isValid'])return this;const _0x18ec9c={};for(const _0x26e9f1 of Object['keys'](this['values']))_0x18ec9c[_0x26e9f1]=asNumber$2(_0x1a7827(this['values'][_0x26e9f1],_0x26e9f1));return clone$1(this,{'values':_0x18ec9c},!0x0);}['get'](_0x51ec1c){return this[Duration['normalizeUnit'](_0x51ec1c)];}['set'](_0x13da28){if(!this['isValid'])return this;return clone$1(this,{'values':{...this['values'],...normalizeObject(_0x13da28,Duration['normalizeUnit'])}});}['reconfigure']({locale:_0x4c49dd,numberingSystem:_0x38c72b,conversionAccuracy:_0x422a76,matrix:_0x3a3a70}={}){return clone$1(this,{'loc':this['loc']['clone']({'locale':_0x4c49dd,'numberingSystem':_0x38c72b}),'matrix':_0x3a3a70,'conversionAccuracy':_0x422a76});}['as'](_0x280e2b){return this['isValid']?this['shiftTo'](_0x280e2b)['get'](_0x280e2b):NaN;}['normalize'](){if(!this['isValid'])return this;const _0x53c250=this['toObject']();return normalizeValues(this['matrix'],_0x53c250),clone$1(this,{'values':_0x53c250},!0x0);}['rescale'](){if(!this['isValid'])return this;return clone$1(this,{'values':removeZeroes(this['normalize']()['shiftToAll']()['toObject']())},!0x0);}['shiftTo'](..._0x2ee4f5){if(!this['isValid'])return this;if(0x0===_0x2ee4f5['length'])return this;_0x2ee4f5=_0x2ee4f5['map'](_0x1164fc=>Duration['normalizeUnit'](_0x1164fc));const _0x1305bc={},_0x1b8099={},_0x58f4fe=this['toObject']();let _0x297c1e;for(const _0x5d476a of orderedUnits$1)if(_0x2ee4f5['indexOf'](_0x5d476a)>=0x0){_0x297c1e=_0x5d476a;let _0x268658=0x0;for(const _0x23a947 in _0x1b8099)_0x268658+=this['matrix'][_0x23a947][_0x5d476a]*_0x1b8099[_0x23a947],_0x1b8099[_0x23a947]=0x0;isNumber(_0x58f4fe[_0x5d476a])&&(_0x268658+=_0x58f4fe[_0x5d476a]);const _0x154cd5=Math['trunc'](_0x268658);_0x1305bc[_0x5d476a]=_0x154cd5,_0x1b8099[_0x5d476a]=(0x3e8*_0x268658-0x3e8*_0x154cd5)/0x3e8;}else isNumber(_0x58f4fe[_0x5d476a])&&(_0x1b8099[_0x5d476a]=_0x58f4fe[_0x5d476a]);for(const _0x3c8d74 in _0x1b8099)0x0!==_0x1b8099[_0x3c8d74]&&(_0x1305bc[_0x297c1e]+=_0x3c8d74===_0x297c1e?_0x1b8099[_0x3c8d74]:_0x1b8099[_0x3c8d74]/this['matrix'][_0x297c1e][_0x3c8d74]);return normalizeValues(this['matrix'],_0x1305bc),clone$1(this,{'values':_0x1305bc},!0x0);}['shiftToAll'](){return this['isValid']?this['shiftTo']('years','months','weeks','days','hours','minutes','seconds','milliseconds'):this;}['negate'](){if(!this['isValid'])return this;const _0xb6d9c5={};for(const _0x14e371 of Object['keys'](this['values']))_0xb6d9c5[_0x14e371]=0x0===this['values'][_0x14e371]?0x0:-this['values'][_0x14e371];return clone$1(this,{'values':_0xb6d9c5},!0x0);}get['years'](){return this['isValid']?this['values']['years']||0x0:NaN;}get['quarters'](){return this['isValid']?this['values']['quarters']||0x0:NaN;}get['months'](){return this['isValid']?this['values']['months']||0x0:NaN;}get['weeks'](){return this['isValid']?this['values']['weeks']||0x0:NaN;}get['days'](){return this['isValid']?this['values']['days']||0x0:NaN;}get['hours'](){return this['isValid']?this['values']['hours']||0x0:NaN;}get['minutes'](){return this['isValid']?this['values']['minutes']||0x0:NaN;}get['seconds'](){return this['isValid']?this['values']['seconds']||0x0:NaN;}get['milliseconds'](){return this['isValid']?this['values']['milliseconds']||0x0:NaN;}get['isValid'](){return null===this['invalid'];}get['invalidReason'](){return this['invalid']?this['invalid']['reason']:null;}get['invalidExplanation'](){return this['invalid']?this['invalid']['explanation']:null;}['equals'](_0x54a9f1){if(!this['isValid']||!_0x54a9f1['isValid'])return!0x1;if(!this['loc']['equals'](_0x54a9f1['loc']))return!0x1;function _0x558b6a(_0x18c835,_0x14c101){return void 0x0===_0x18c835||0x0===_0x18c835?void 0x0===_0x14c101||0x0===_0x14c101:_0x18c835===_0x14c101;}for(const _0xc90f0a of orderedUnits$1)if(!_0x558b6a(this['values'][_0xc90f0a],_0x54a9f1['values'][_0xc90f0a]))return!0x1;return!0x0;}}const INVALID$1='Invalid\x20Interval';function validateStartEnd(_0x4a0bd1,_0x4337c9){return _0x4a0bd1&&_0x4a0bd1['isValid']?_0x4337c9&&_0x4337c9['isValid']?_0x4337c9<_0x4a0bd1?Interval['invalid']('end\x20before\x20start','The\x20end\x20of\x20an\x20interval\x20must\x20be\x20after\x20its\x20start,\x20but\x20you\x20had\x20start='+_0x4a0bd1['toISO']()+'\x20and\x20end='+_0x4337c9['toISO']()):null:Interval['invalid']('missing\x20or\x20invalid\x20end'):Interval['invalid']('missing\x20or\x20invalid\x20start');}class Interval{constructor(_0x5663c4){this['s']=_0x5663c4['start'],this['e']=_0x5663c4['end'],this['invalid']=_0x5663c4['invalid']||null,this['isLuxonInterval']=!0x0;}static['invalid'](_0x51a0bb,_0x46d85e=null){if(!_0x51a0bb)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20Interval\x20is\x20invalid');const _0x26f2d9=_0x51a0bb instanceof Invalid?_0x51a0bb:new Invalid(_0x51a0bb,_0x46d85e);if(Settings['throwOnInvalid'])throw new InvalidIntervalError(_0x26f2d9);return new Interval({'invalid':_0x26f2d9});}static['fromDateTimes'](_0x1d28c9,_0x1615d4){const _0x42699e=friendlyDateTime(_0x1d28c9),_0x78c621=friendlyDateTime(_0x1615d4),_0x4ba871=validateStartEnd(_0x42699e,_0x78c621);return null==_0x4ba871?new Interval({'start':_0x42699e,'end':_0x78c621}):_0x4ba871;}static['after'](_0x5521ff,_0x56cf4d){const _0x3c7f33=Duration['fromDurationLike'](_0x56cf4d),_0x581266=friendlyDateTime(_0x5521ff);return Interval['fromDateTimes'](_0x581266,_0x581266['plus'](_0x3c7f33));}static['before'](_0x5ddd2d,_0x548a31){const _0x5ad003=Duration['fromDurationLike'](_0x548a31),_0x31a6a6=friendlyDateTime(_0x5ddd2d);return Interval['fromDateTimes'](_0x31a6a6['minus'](_0x5ad003),_0x31a6a6);}static['fromISO'](_0x454f00,_0x2dd03e){const [_0x3e0c9e,_0x55b8b3]=(_0x454f00||'')['split']('/',0x2);if(_0x3e0c9e&&_0x55b8b3){let _0x2ab5e4,_0x457a6f,_0x11df42,_0x4d3efc;try{_0x2ab5e4=DateTime['fromISO'](_0x3e0c9e,_0x2dd03e),_0x457a6f=_0x2ab5e4['isValid'];}catch(_0x5bf6b1){_0x457a6f=!0x1;}try{_0x11df42=DateTime['fromISO'](_0x55b8b3,_0x2dd03e),_0x4d3efc=_0x11df42['isValid'];}catch(_0x122606){_0x4d3efc=!0x1;}if(_0x457a6f&&_0x4d3efc)return Interval['fromDateTimes'](_0x2ab5e4,_0x11df42);if(_0x457a6f){const _0x99bab9=Duration['fromISO'](_0x55b8b3,_0x2dd03e);if(_0x99bab9['isValid'])return Interval['after'](_0x2ab5e4,_0x99bab9);}else{if(_0x4d3efc){const _0x577490=Duration['fromISO'](_0x3e0c9e,_0x2dd03e);if(_0x577490['isValid'])return Interval['before'](_0x11df42,_0x577490);}}}return Interval['invalid']('unparsable','the\x20input\x20\x22'+_0x454f00+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['isInterval'](_0x4b233e){return _0x4b233e&&_0x4b233e['isLuxonInterval']||!0x1;}get['start'](){return this['isValid']?this['s']:null;}get['end'](){return this['isValid']?this['e']:null;}get['lastDateTime'](){return this['isValid']&&this['e']?this['e']['minus'](0x1):null;}get['isValid'](){return null===this['invalidReason'];}get['invalidReason'](){return this['invalid']?this['invalid']['reason']:null;}get['invalidExplanation'](){return this['invalid']?this['invalid']['explanation']:null;}['length'](_0x45a4f7='milliseconds'){return this['isValid']?this['toDuration'](_0x45a4f7)['get'](_0x45a4f7):NaN;}['count'](_0x5b6448='milliseconds',_0x181943){if(!this['isValid'])return NaN;const _0x2d32ce=this['start']['startOf'](_0x5b6448,_0x181943);let _0x5f0bc5;return _0x5f0bc5=_0x181943?.['useLocaleWeeks']?this['end']['reconfigure']({'locale':_0x2d32ce['locale']}):this['end'],_0x5f0bc5=_0x5f0bc5['startOf'](_0x5b6448,_0x181943),Math['floor'](_0x5f0bc5['diff'](_0x2d32ce,_0x5b6448)['get'](_0x5b6448))+(_0x5f0bc5['valueOf']()!==this['end']['valueOf']());}['hasSame'](_0x47dbc5){return!!this['isValid']&&(this['isEmpty']()||this['e']['minus'](0x1)['hasSame'](this['s'],_0x47dbc5));}['isEmpty'](){return this['s']['valueOf']()===this['e']['valueOf']();}['isAfter'](_0x558c14){return!!this['isValid']&&this['s']>_0x558c14;}['isBefore'](_0x169131){return!!this['isValid']&&this['e']<=_0x169131;}['contains'](_0x4d3467){return!!this['isValid']&&(this['s']<=_0x4d3467&&this['e']>_0x4d3467);}['set']({start:_0xd2f289,end:_0x39f01b}={}){return this['isValid']?Interval['fromDateTimes'](_0xd2f289||this['s'],_0x39f01b||this['e']):this;}['splitAt'](..._0x220379){if(!this['isValid'])return[];const _0x11b6d3=_0x220379['map'](friendlyDateTime)['filter'](_0x490b01=>this['contains'](_0x490b01))['sort']((_0x5a1c4a,_0x509bcb)=>_0x5a1c4a['toMillis']()-_0x509bcb['toMillis']()),_0x26d718=[];let {s:_0x4fc4fc}=this,_0x560ac7=0x0;for(;_0x4fc4fc<this['e'];){const _0x40d72b=_0x11b6d3[_0x560ac7]||this['e'],_0x3713b6=+_0x40d72b>+this['e']?this['e']:_0x40d72b;_0x26d718['push'](Interval['fromDateTimes'](_0x4fc4fc,_0x3713b6)),_0x4fc4fc=_0x3713b6,_0x560ac7+=0x1;}return _0x26d718;}['splitBy'](_0x10b5e7){const _0x3c6002=Duration['fromDurationLike'](_0x10b5e7);if(!this['isValid']||!_0x3c6002['isValid']||0x0===_0x3c6002['as']('milliseconds'))return[];let _0x1fb3ac,{s:_0x27a068}=this,_0x5920b3=0x1;const _0x20fbe4=[];for(;_0x27a068<this['e'];){const _0x2bfe7a=this['start']['plus'](_0x3c6002['mapUnits'](_0x51b3ea=>_0x51b3ea*_0x5920b3));_0x1fb3ac=+_0x2bfe7a>+this['e']?this['e']:_0x2bfe7a,_0x20fbe4['push'](Interval['fromDateTimes'](_0x27a068,_0x1fb3ac)),_0x27a068=_0x1fb3ac,_0x5920b3+=0x1;}return _0x20fbe4;}['divideEqually'](_0x3cae8f){return this['isValid']?this['splitBy'](this['length']()/_0x3cae8f)['slice'](0x0,_0x3cae8f):[];}['overlaps'](_0x467a9b){return this['e']>_0x467a9b['s']&&this['s']<_0x467a9b['e'];}['abutsStart'](_0x98a352){return!!this['isValid']&&+this['e']===+_0x98a352['s'];}['abutsEnd'](_0x578fe8){return!!this['isValid']&&+_0x578fe8['e']===+this['s'];}['engulfs'](_0x598f6f){return!!this['isValid']&&(this['s']<=_0x598f6f['s']&&this['e']>=_0x598f6f['e']);}['equals'](_0x5664c7){return!(!this['isValid']||!_0x5664c7['isValid'])&&(this['s']['equals'](_0x5664c7['s'])&&this['e']['equals'](_0x5664c7['e']));}['intersection'](_0x31c035){if(!this['isValid'])return this;const _0x365ba6=this['s']>_0x31c035['s']?this['s']:_0x31c035['s'],_0x39c7b3=this['e']<_0x31c035['e']?this['e']:_0x31c035['e'];return _0x365ba6>=_0x39c7b3?null:Interval['fromDateTimes'](_0x365ba6,_0x39c7b3);}['union'](_0x5c231b){if(!this['isValid'])return this;const _0x31e683=this['s']<_0x5c231b['s']?this['s']:_0x5c231b['s'],_0x35ab33=this['e']>_0x5c231b['e']?this['e']:_0x5c231b['e'];return Interval['fromDateTimes'](_0x31e683,_0x35ab33);}static['merge'](_0x428d14){const [_0x15536c,_0x5c1d74]=_0x428d14['sort']((_0x48d477,_0x4ad929)=>_0x48d477['s']-_0x4ad929['s'])['reduce'](([_0x1fdf1c,_0x197f5d],_0x3b067a)=>_0x197f5d?_0x197f5d['overlaps'](_0x3b067a)||_0x197f5d['abutsStart'](_0x3b067a)?[_0x1fdf1c,_0x197f5d['union'](_0x3b067a)]:[_0x1fdf1c['concat']([_0x197f5d]),_0x3b067a]:[_0x1fdf1c,_0x3b067a],[[],null]);return _0x5c1d74&&_0x15536c['push'](_0x5c1d74),_0x15536c;}static['xor'](_0x296220){let _0xbb2ce1=null,_0x1b83fa=0x0;const _0x518ee=[],_0x2043e0=_0x296220['map'](_0x31b60c=>[{'time':_0x31b60c['s'],'type':'s'},{'time':_0x31b60c['e'],'type':'e'}]),_0x155f06=Array['prototype']['concat'](..._0x2043e0)['sort']((_0x485522,_0x11fbec)=>_0x485522['time']-_0x11fbec['time']);for(const _0x2ca5ae of _0x155f06)_0x1b83fa+='s'===_0x2ca5ae['type']?0x1:-0x1,0x1===_0x1b83fa?_0xbb2ce1=_0x2ca5ae['time']:(_0xbb2ce1&&+_0xbb2ce1!==+_0x2ca5ae['time']&&_0x518ee['push'](Interval['fromDateTimes'](_0xbb2ce1,_0x2ca5ae['time'])),_0xbb2ce1=null);return Interval['merge'](_0x518ee);}['difference'](..._0xefc1b){return Interval['xor']([this]['concat'](_0xefc1b))['map'](_0x6b8332=>this['intersection'](_0x6b8332))['filter'](_0x14f3cc=>_0x14f3cc&&!_0x14f3cc['isEmpty']());}['toString'](){return this['isValid']?'['+this['s']['toISO']()+'\x20–\x20'+this['e']['toISO']()+')':INVALID$1;}[Symbol['for']('nodejs.util.inspect.custom')](){return this['isValid']?'Interval\x20{\x20start:\x20'+this['s']['toISO']()+',\x20end:\x20'+this['e']['toISO']()+'\x20}':'Interval\x20{\x20Invalid,\x20reason:\x20'+this['invalidReason']+'\x20}';}['toLocaleString'](_0x16dfe8=DATE_SHORT,_0x1ebeb4={}){return this['isValid']?Formatter['create'](this['s']['loc']['clone'](_0x1ebeb4),_0x16dfe8)['formatInterval'](this):INVALID$1;}['toISO'](_0x1f7649){return this['isValid']?this['s']['toISO'](_0x1f7649)+'/'+this['e']['toISO'](_0x1f7649):INVALID$1;}['toISODate'](){return this['isValid']?this['s']['toISODate']()+'/'+this['e']['toISODate']():INVALID$1;}['toISOTime'](_0x1d6611){return this['isValid']?this['s']['toISOTime'](_0x1d6611)+'/'+this['e']['toISOTime'](_0x1d6611):INVALID$1;}['toFormat'](_0x115cc8,{separator:_0x55d1e5='\x20–\x20'}={}){return this['isValid']?''+this['s']['toFormat'](_0x115cc8)+_0x55d1e5+this['e']['toFormat'](_0x115cc8):INVALID$1;}['toDuration'](_0x490913,_0x2e4599){return this['isValid']?this['e']['diff'](this['s'],_0x490913,_0x2e4599):Duration['invalid'](this['invalidReason']);}['mapEndpoints'](_0x39de9c){return Interval['fromDateTimes'](_0x39de9c(this['s']),_0x39de9c(this['e']));}}class Info{static['hasDST'](_0x24744e=Settings['defaultZone']){const _0x752eac=DateTime['now']()['setZone'](_0x24744e)['set']({'month':0xc});return!_0x24744e['isUniversal']&&_0x752eac['offset']!==_0x752eac['set']({'month':0x6})['offset'];}static['isValidIANAZone'](_0x30ca4b){return IANAZone['isValidZone'](_0x30ca4b);}static['normalizeZone'](_0x8b950c){return normalizeZone(_0x8b950c,Settings['defaultZone']);}static['getStartOfWeek']({locale:_0x2cc289=null,locObj:_0x280b8f=null}={}){return(_0x280b8f||Locale['create'](_0x2cc289))['getStartOfWeek']();}static['getMinimumDaysInFirstWeek']({locale:_0x224f91=null,locObj:_0xa9f6fd=null}={}){return(_0xa9f6fd||Locale['create'](_0x224f91))['getMinDaysInFirstWeek']();}static['getWeekendWeekdays']({locale:_0x4ac210=null,locObj:_0x195bee=null}={}){return(_0x195bee||Locale['create'](_0x4ac210))['getWeekendDays']()['slice']();}static['months'](_0xffe391='long',{locale:_0x4735b4=null,numberingSystem:_0x4d155f=null,locObj:_0x24483c=null,outputCalendar:_0x501ffa='gregory'}={}){return(_0x24483c||Locale['create'](_0x4735b4,_0x4d155f,_0x501ffa))['months'](_0xffe391);}static['monthsFormat'](_0x8c35ec='long',{locale:_0x5387d=null,numberingSystem:_0x3a52d7=null,locObj:_0x3ff02f=null,outputCalendar:_0x11cc48='gregory'}={}){return(_0x3ff02f||Locale['create'](_0x5387d,_0x3a52d7,_0x11cc48))['months'](_0x8c35ec,!0x0);}static['weekdays'](_0x1bf72c='long',{locale:_0x5c6230=null,numberingSystem:_0x50430a=null,locObj:_0x46f396=null}={}){return(_0x46f396||Locale['create'](_0x5c6230,_0x50430a,null))['weekdays'](_0x1bf72c);}static['weekdaysFormat'](_0x34107a='long',{locale:_0x1480d3=null,numberingSystem:_0x27d504=null,locObj:_0x9b25db=null}={}){return(_0x9b25db||Locale['create'](_0x1480d3,_0x27d504,null))['weekdays'](_0x34107a,!0x0);}static['meridiems']({locale:_0x455a4c=null}={}){return Locale['create'](_0x455a4c)['meridiems']();}static['eras'](_0x2031ec='short',{locale:_0x50916f=null}={}){return Locale['create'](_0x50916f,null,'gregory')['eras'](_0x2031ec);}static['features'](){return{'relative':hasRelative(),'localeWeek':hasLocaleWeekInfo()};}}function dayDiff(_0x2e0285,_0x22bff3){const _0x445b7c=_0x1ce345=>_0x1ce345['toUTC'](0x0,{'keepLocalTime':!0x0})['startOf']('day')['valueOf'](),_0xfd925=_0x445b7c(_0x22bff3)-_0x445b7c(_0x2e0285);return Math['floor'](Duration['fromMillis'](_0xfd925)['as']('days'));}function highOrderDiffs(_0x249df0,_0x2de73c,_0x43a09c){const _0xf70297=[['years',(_0x13e892,_0x464241)=>_0x464241['year']-_0x13e892['year']],['quarters',(_0x430cf2,_0x5d97db)=>_0x5d97db['quarter']-_0x430cf2['quarter']+0x4*(_0x5d97db['year']-_0x430cf2['year'])],['months',(_0x10fa74,_0x37e3ad)=>_0x37e3ad['month']-_0x10fa74['month']+0xc*(_0x37e3ad['year']-_0x10fa74['year'])],['weeks',(_0x222173,_0x4647a3)=>{const _0x5b4339=dayDiff(_0x222173,_0x4647a3);return(_0x5b4339-_0x5b4339%0x7)/0x7;}],['days',dayDiff]],_0x5304dc={},_0x11ec21=_0x249df0;let _0x501fb6,_0x16fa03;for(const [_0x13edc5,_0x588e98]of _0xf70297)_0x43a09c['indexOf'](_0x13edc5)>=0x0&&(_0x501fb6=_0x13edc5,_0x5304dc[_0x13edc5]=_0x588e98(_0x249df0,_0x2de73c),_0x16fa03=_0x11ec21['plus'](_0x5304dc),_0x16fa03>_0x2de73c?(_0x5304dc[_0x13edc5]--,(_0x249df0=_0x11ec21['plus'](_0x5304dc))>_0x2de73c&&(_0x16fa03=_0x249df0,_0x5304dc[_0x13edc5]--,_0x249df0=_0x11ec21['plus'](_0x5304dc))):_0x249df0=_0x16fa03);return[_0x249df0,_0x5304dc,_0x16fa03,_0x501fb6];}function diff(_0x1ec75f,_0x51ac4f,_0x55bf99,_0x5dc6b8){let [_0x2a73f0,_0x3bdf3d,_0x415a18,_0x64cabf]=highOrderDiffs(_0x1ec75f,_0x51ac4f,_0x55bf99);const _0x4bc1bb=_0x51ac4f-_0x2a73f0,_0x23e387=_0x55bf99['filter'](_0x1a7db5=>['hours','minutes','seconds','milliseconds']['indexOf'](_0x1a7db5)>=0x0);0x0===_0x23e387['length']&&(_0x415a18<_0x51ac4f&&(_0x415a18=_0x2a73f0['plus']({[_0x64cabf]:0x1})),_0x415a18!==_0x2a73f0&&(_0x3bdf3d[_0x64cabf]=(_0x3bdf3d[_0x64cabf]||0x0)+_0x4bc1bb/(_0x415a18-_0x2a73f0)));const _0xadd345=Duration['fromObject'](_0x3bdf3d,_0x5dc6b8);return _0x23e387['length']>0x0?Duration['fromMillis'](_0x4bc1bb,_0x5dc6b8)['shiftTo'](..._0x23e387)['plus'](_0xadd345):_0xadd345;}const MISSING_FTP='missing\x20Intl.DateTimeFormat.formatToParts\x20support';function intUnit(_0x5ba888,_0x4a96c0=_0x1fc62d=>_0x1fc62d){return{'regex':_0x5ba888,'deser':([_0x1608ab])=>_0x4a96c0(parseDigits(_0x1608ab))};}const NBSP=String['fromCharCode'](0xa0),spaceOrNBSP='[\x20'+NBSP+']',spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,'g');function fixListRegex(_0x504d96){return _0x504d96['replace'](/\./g,'\x5c.?')['replace'](spaceOrNBSPRegExp,spaceOrNBSP);}function stripInsensitivities(_0x3e8874){return _0x3e8874['replace'](/\./g,'')['replace'](spaceOrNBSPRegExp,'\x20')['toLowerCase']();}function oneOf(_0x87031e,_0x3e7e4a){return null===_0x87031e?null:{'regex':RegExp(_0x87031e['map'](fixListRegex)['join']('|')),'deser':([_0xdc4114])=>_0x87031e['findIndex'](_0x25c0f7=>stripInsensitivities(_0xdc4114)===stripInsensitivities(_0x25c0f7))+_0x3e7e4a};}function offset(_0x890796,_0x5f4997){return{'regex':_0x890796,'deser':([,_0x496404,_0x4f061a])=>signedOffset(_0x496404,_0x4f061a),'groups':_0x5f4997};}function simple(_0x25631b){return{'regex':_0x25631b,'deser':([_0x3c4d64])=>_0x3c4d64};}function escapeToken(_0x30c6b4){return _0x30c6b4['replace'](/[\-\[\]{}()*+?.,\\\^$|#\s]/g,'\x5c$&');}function unitForToken(_0x1372a3,_0x57cbd4){const _0x17e7e7=digitRegex(_0x57cbd4),_0x55549f=digitRegex(_0x57cbd4,'{2}'),_0x371a69=digitRegex(_0x57cbd4,'{3}'),_0x4f5acd=digitRegex(_0x57cbd4,'{4}'),_0x3ad2b4=digitRegex(_0x57cbd4,'{6}'),_0x476564=digitRegex(_0x57cbd4,'{1,2}'),_0x269c05=digitRegex(_0x57cbd4,'{1,3}'),_0x62b318=digitRegex(_0x57cbd4,'{1,6}'),_0x185d2d=digitRegex(_0x57cbd4,'{1,9}'),_0x56e845=digitRegex(_0x57cbd4,'{2,4}'),_0x48ec0e=digitRegex(_0x57cbd4,'{4,6}'),_0x875557=t=>({'regex':RegExp(escapeToken(t['val'])),'deser':([_0xc0af5a])=>_0xc0af5a,'literal':!0x0}),_0x1b2fc0=(t=>{if(_0x1372a3['literal'])return _0x875557(t);switch(t['val']){case'G':return oneOf(_0x57cbd4['eras']('short'),0x0);case'GG':return oneOf(_0x57cbd4['eras']('long'),0x0);case'y':return intUnit(_0x62b318);case'yy':case'kk':return intUnit(_0x56e845,untruncateYear);case'yyyy':case'kkkk':return intUnit(_0x4f5acd);case'yyyyy':return intUnit(_0x48ec0e);case'yyyyyy':return intUnit(_0x3ad2b4);case'M':case'L':case'd':case'H':case'h':case'm':case'q':case's':case'W':return intUnit(_0x476564);case'MM':case'LL':case'dd':case'HH':case'hh':case'mm':case'qq':case'ss':case'WW':return intUnit(_0x55549f);case'MMM':return oneOf(_0x57cbd4['months']('short',!0x0),0x1);case'MMMM':return oneOf(_0x57cbd4['months']('long',!0x0),0x1);case'LLL':return oneOf(_0x57cbd4['months']('short',!0x1),0x1);case'LLLL':return oneOf(_0x57cbd4['months']('long',!0x1),0x1);case'o':case'S':return intUnit(_0x269c05);case'ooo':case'SSS':return intUnit(_0x371a69);case'u':return simple(_0x185d2d);case'uu':return simple(_0x476564);case'uuu':case'E':case'c':return intUnit(_0x17e7e7);case'a':return oneOf(_0x57cbd4['meridiems'](),0x0);case'EEE':return oneOf(_0x57cbd4['weekdays']('short',!0x1),0x1);case'EEEE':return oneOf(_0x57cbd4['weekdays']('long',!0x1),0x1);case'ccc':return oneOf(_0x57cbd4['weekdays']('short',!0x0),0x1);case'cccc':return oneOf(_0x57cbd4['weekdays']('long',!0x0),0x1);case'Z':case'ZZ':return offset(new RegExp('([+-]'+_0x476564['source']+')(?::('+_0x55549f['source']+'))?'),0x2);case'ZZZ':return offset(new RegExp('([+-]'+_0x476564['source']+')('+_0x55549f['source']+')?'),0x2);case'z':return simple(/[a-z_+-/]{1,256}?/i);case'\x20':return simple(/[^\S\n\r]/);default:return _0x875557(t);}})(_0x1372a3)||{'invalidReason':MISSING_FTP};return _0x1b2fc0['token']=_0x1372a3,_0x1b2fc0;}const partTypeStyleToTokenVal={'year':{'2-digit':'yy','numeric':'yyyyy'},'month':{'numeric':'M','2-digit':'MM','short':'MMM','long':'MMMM'},'day':{'numeric':'d','2-digit':'dd'},'weekday':{'short':'EEE','long':'EEEE'},'dayperiod':'a','dayPeriod':'a','hour12':{'numeric':'h','2-digit':'hh'},'hour24':{'numeric':'H','2-digit':'HH'},'minute':{'numeric':'m','2-digit':'mm'},'second':{'numeric':'s','2-digit':'ss'},'timeZoneName':{'long':'ZZZZZ','short':'ZZZ'}};function tokenForPart(_0x2421d4,_0x4288cc,_0x296652){const {type:_0x36ea10,value:_0x342cdc}=_0x2421d4;if('literal'===_0x36ea10){const _0x29c33a=/^\s+$/['test'](_0x342cdc);return{'literal':!_0x29c33a,'val':_0x29c33a?'\x20':_0x342cdc};}const _0x583c19=_0x4288cc[_0x36ea10];let _0x5d33e0=_0x36ea10;'hour'===_0x36ea10&&(_0x5d33e0=null!=_0x4288cc['hour12']?_0x4288cc['hour12']?'hour12':'hour24':null!=_0x4288cc['hourCycle']?'h11'===_0x4288cc['hourCycle']||'h12'===_0x4288cc['hourCycle']?'hour12':'hour24':_0x296652['hour12']?'hour12':'hour24');let _0x8ea616=partTypeStyleToTokenVal[_0x5d33e0];if('object'==typeof _0x8ea616&&(_0x8ea616=_0x8ea616[_0x583c19]),_0x8ea616)return{'literal':!0x1,'val':_0x8ea616};}function buildRegex(_0x385d74){const _0xb7cb11=_0x385d74['map'](_0x1da82b=>_0x1da82b['regex'])['reduce']((_0x506588,_0x656439)=>_0x506588+'('+_0x656439['source']+')','');return['^'+_0xb7cb11+'$',_0x385d74];}function match(_0x28da99,_0x442825,_0x47db55){const _0x299978=_0x28da99['match'](_0x442825);if(_0x299978){const _0x1f644f={};let _0x4566c6=0x1;for(const _0x18c94e in _0x47db55)if(hasOwnProperty(_0x47db55,_0x18c94e)){const _0x5f0e71=_0x47db55[_0x18c94e],_0x2e8b5d=_0x5f0e71['groups']?_0x5f0e71['groups']+0x1:0x1;!_0x5f0e71['literal']&&_0x5f0e71['token']&&(_0x1f644f[_0x5f0e71['token']['val'][0x0]]=_0x5f0e71['deser'](_0x299978['slice'](_0x4566c6,_0x4566c6+_0x2e8b5d))),_0x4566c6+=_0x2e8b5d;}return[_0x299978,_0x1f644f];}return[_0x299978,{}];}function dateTimeFromMatches(_0x441467){let _0x2a7736,_0x4bc68f=null;isUndefined(_0x441467['z'])||(_0x4bc68f=IANAZone['create'](_0x441467['z'])),isUndefined(_0x441467['Z'])||(_0x4bc68f||(_0x4bc68f=new FixedOffsetZone(_0x441467['Z'])),_0x2a7736=_0x441467['Z']),isUndefined(_0x441467['q'])||(_0x441467['M']=0x3*(_0x441467['q']-0x1)+0x1),isUndefined(_0x441467['h'])||(_0x441467['h']<0xc&&0x1===_0x441467['a']?_0x441467['h']+=0xc:0xc===_0x441467['h']&&0x0===_0x441467['a']&&(_0x441467['h']=0x0)),0x0===_0x441467['G']&&_0x441467['y']&&(_0x441467['y']=-_0x441467['y']),isUndefined(_0x441467['u'])||(_0x441467['S']=parseMillis(_0x441467['u']));const _0x5dedf0=Object['keys'](_0x441467)['reduce']((_0x3a3f7b,_0x4c45d0)=>{const _0x58d994=(_0x367a60=>{switch(_0x367a60){case'S':return'millisecond';case's':return'second';case'm':return'minute';case'h':case'H':return'hour';case'd':return'day';case'o':return'ordinal';case'L':case'M':return'month';case'y':return'year';case'E':case'c':return'weekday';case'W':return'weekNumber';case'k':return'weekYear';case'q':return'quarter';default:return null;}})(_0x4c45d0);return _0x58d994&&(_0x3a3f7b[_0x58d994]=_0x441467[_0x4c45d0]),_0x3a3f7b;},{});return[_0x5dedf0,_0x4bc68f,_0x2a7736];}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||(dummyDateTimeCache=DateTime['fromMillis'](0x16a2e5618e3)),dummyDateTimeCache;}function maybeExpandMacroToken(_0x4bc3f1,_0x36ca47){if(_0x4bc3f1['literal'])return _0x4bc3f1;const _0x2eec42=formatOptsToTokens(Formatter['macroTokenToFormatOpts'](_0x4bc3f1['val']),_0x36ca47);return null==_0x2eec42||_0x2eec42['includes'](void 0x0)?_0x4bc3f1:_0x2eec42;}function expandMacroTokens(_0x872afe,_0x43fee5){return Array['prototype']['concat'](..._0x872afe['map'](t=>maybeExpandMacroToken(t,_0x43fee5)));}class TokenParser{constructor(_0x1ddd0b,_0xc60eaa){if(this['locale']=_0x1ddd0b,this['format']=_0xc60eaa,this['tokens']=expandMacroTokens(Formatter['parseFormat'](_0xc60eaa),_0x1ddd0b),this['units']=this['tokens']['map'](t=>unitForToken(t,_0x1ddd0b)),this['disqualifyingUnit']=this['units']['find'](t=>t['invalidReason']),!this['disqualifyingUnit']){const [_0x4e53ed,_0x45f55f]=buildRegex(this['units']);this['regex']=RegExp(_0x4e53ed,'i'),this['handlers']=_0x45f55f;}}['explainFromTokens'](_0x506828){if(this['isValid']){const [_0x1db562,_0x5858c3]=match(_0x506828,this['regex'],this['handlers']),[_0x5cadb1,_0x2adc40,_0x20c696]=_0x5858c3?dateTimeFromMatches(_0x5858c3):[null,null,void 0x0];if(hasOwnProperty(_0x5858c3,'a')&&hasOwnProperty(_0x5858c3,'H'))throw new ConflictingSpecificationError('Can\x27t\x20include\x20meridiem\x20when\x20specifying\x2024-hour\x20format');return{'input':_0x506828,'tokens':this['tokens'],'regex':this['regex'],'rawMatches':_0x1db562,'matches':_0x5858c3,'result':_0x5cadb1,'zone':_0x2adc40,'specificOffset':_0x20c696};}return{'input':_0x506828,'tokens':this['tokens'],'invalidReason':this['invalidReason']};}get['isValid'](){return!this['disqualifyingUnit'];}get['invalidReason'](){return this['disqualifyingUnit']?this['disqualifyingUnit']['invalidReason']:null;}}function explainFromTokens(_0x5a3214,_0x4429ef,_0x20ab29){return new TokenParser(_0x5a3214,_0x20ab29)['explainFromTokens'](_0x4429ef);}function parseFromTokens(_0x19dc94,_0x43196e,_0x3f38d1){const {result:_0x1a92aa,zone:_0x52633f,specificOffset:_0x5be67c,invalidReason:_0x272f8c}=explainFromTokens(_0x19dc94,_0x43196e,_0x3f38d1);return[_0x1a92aa,_0x52633f,_0x5be67c,_0x272f8c];}function formatOptsToTokens(_0x37c84c,_0x4c0be7){if(!_0x37c84c)return null;const _0x426d1b=Formatter['create'](_0x4c0be7,_0x37c84c)['dtFormatter'](getDummyDateTime()),_0xe8d0d6=_0x426d1b['formatToParts'](),_0x14a1df=_0x426d1b['resolvedOptions']();return _0xe8d0d6['map'](_0x82ae41=>tokenForPart(_0x82ae41,_0x37c84c,_0x14a1df));}const INVALID='Invalid\x20DateTime',MAX_DATE=0x1eb208c2dc0000;function unsupportedZone(_0x16d3e4){return new Invalid('unsupported\x20zone','the\x20zone\x20\x22'+_0x16d3e4['name']+'\x22\x20is\x20not\x20supported');}function possiblyCachedWeekData(_0x3d3002){return null===_0x3d3002['weekData']&&(_0x3d3002['weekData']=gregorianToWeek(_0x3d3002['c'])),_0x3d3002['weekData'];}function possiblyCachedLocalWeekData(_0x5d7188){return null===_0x5d7188['localWeekData']&&(_0x5d7188['localWeekData']=gregorianToWeek(_0x5d7188['c'],_0x5d7188['loc']['getMinDaysInFirstWeek'](),_0x5d7188['loc']['getStartOfWeek']())),_0x5d7188['localWeekData'];}function clone(_0x2af9c3,_0x12ec61){const _0x2fc994={'ts':_0x2af9c3['ts'],'zone':_0x2af9c3['zone'],'c':_0x2af9c3['c'],'o':_0x2af9c3['o'],'loc':_0x2af9c3['loc'],'invalid':_0x2af9c3['invalid']};return new DateTime({..._0x2fc994,..._0x12ec61,'old':_0x2fc994});}function fixOffset(_0x1ec847,_0x73a6ab,_0x1a8bc6){let _0x48f2e0=_0x1ec847-0x3c*_0x73a6ab*0x3e8;const _0x46fd9c=_0x1a8bc6['offset'](_0x48f2e0);if(_0x73a6ab===_0x46fd9c)return[_0x48f2e0,_0x73a6ab];_0x48f2e0-=0x3c*(_0x46fd9c-_0x73a6ab)*0x3e8;const _0x43c9b5=_0x1a8bc6['offset'](_0x48f2e0);return _0x46fd9c===_0x43c9b5?[_0x48f2e0,_0x46fd9c]:[_0x1ec847-0x3c*Math['min'](_0x46fd9c,_0x43c9b5)*0x3e8,Math['max'](_0x46fd9c,_0x43c9b5)];}function tsToObj(_0x350e1f,_0x37b179){const _0x55768b=new Date(_0x350e1f+=0x3c*_0x37b179*0x3e8);return{'year':_0x55768b['getUTCFullYear'](),'month':_0x55768b['getUTCMonth']()+0x1,'day':_0x55768b['getUTCDate'](),'hour':_0x55768b['getUTCHours'](),'minute':_0x55768b['getUTCMinutes'](),'second':_0x55768b['getUTCSeconds'](),'millisecond':_0x55768b['getUTCMilliseconds']()};}function objToTS(_0x2c8b3e,_0x3ede82,_0x1e6ad7){return fixOffset(objToLocalTS(_0x2c8b3e),_0x3ede82,_0x1e6ad7);}function adjustTime(_0x193016,_0x265c99){const _0x4ebeea=_0x193016['o'],_0x473f74=_0x193016['c']['year']+Math['trunc'](_0x265c99['years']),_0x1240fb=_0x193016['c']['month']+Math['trunc'](_0x265c99['months'])+0x3*Math['trunc'](_0x265c99['quarters']),_0x23430b={..._0x193016['c'],'year':_0x473f74,'month':_0x1240fb,'day':Math['min'](_0x193016['c']['day'],daysInMonth(_0x473f74,_0x1240fb))+Math['trunc'](_0x265c99['days'])+0x7*Math['trunc'](_0x265c99['weeks'])},_0x44122d=Duration['fromObject']({'years':_0x265c99['years']-Math['trunc'](_0x265c99['years']),'quarters':_0x265c99['quarters']-Math['trunc'](_0x265c99['quarters']),'months':_0x265c99['months']-Math['trunc'](_0x265c99['months']),'weeks':_0x265c99['weeks']-Math['trunc'](_0x265c99['weeks']),'days':_0x265c99['days']-Math['trunc'](_0x265c99['days']),'hours':_0x265c99['hours'],'minutes':_0x265c99['minutes'],'seconds':_0x265c99['seconds'],'milliseconds':_0x265c99['milliseconds']})['as']('milliseconds'),_0x315e93=objToLocalTS(_0x23430b);let [_0x2b1941,_0x1f81f4]=fixOffset(_0x315e93,_0x4ebeea,_0x193016['zone']);return 0x0!==_0x44122d&&(_0x2b1941+=_0x44122d,_0x1f81f4=_0x193016['zone']['offset'](_0x2b1941)),{'ts':_0x2b1941,'o':_0x1f81f4};}function parseDataToDateTime(_0x4bd5e7,_0x20a853,_0x507c56,_0x2adf83,_0x4a22fc,_0x5ec4f2){const {setZone:_0x15f456,zone:_0x2a139d}=_0x507c56;if(_0x4bd5e7&&0x0!==Object['keys'](_0x4bd5e7)['length']||_0x20a853){const _0x2811f3=_0x20a853||_0x2a139d,_0x33de77=DateTime['fromObject'](_0x4bd5e7,{..._0x507c56,'zone':_0x2811f3,'specificOffset':_0x5ec4f2});return _0x15f456?_0x33de77:_0x33de77['setZone'](_0x2a139d);}return DateTime['invalid'](new Invalid('unparsable','the\x20input\x20\x22'+_0x4a22fc+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20'+_0x2adf83));}function toTechFormat(_0xe7dfa3,_0x4cbcf2,_0x24c80b=!0x0){return _0xe7dfa3['isValid']?Formatter['create'](Locale['create']('en-US'),{'allowZ':_0x24c80b,'forceSimple':!0x0})['formatDateTimeFromString'](_0xe7dfa3,_0x4cbcf2):null;}function toISODate(_0x19591c,_0xb1e50a){const _0x285ba4=_0x19591c['c']['year']>0x270f||_0x19591c['c']['year']<0x0;let _0x1eabf4='';return _0x285ba4&&_0x19591c['c']['year']>=0x0&&(_0x1eabf4+='+'),_0x1eabf4+=padStart(_0x19591c['c']['year'],_0x285ba4?0x6:0x4),_0xb1e50a?(_0x1eabf4+='-',_0x1eabf4+=padStart(_0x19591c['c']['month']),_0x1eabf4+='-',_0x1eabf4+=padStart(_0x19591c['c']['day'])):(_0x1eabf4+=padStart(_0x19591c['c']['month']),_0x1eabf4+=padStart(_0x19591c['c']['day'])),_0x1eabf4;}function toISOTime(_0x3bb311,_0x5a2bd7,_0x214944,_0x517083,_0x407eff,_0x2bbe90){let _0x1934db=padStart(_0x3bb311['c']['hour']);return _0x5a2bd7?(_0x1934db+=':',_0x1934db+=padStart(_0x3bb311['c']['minute']),0x0===_0x3bb311['c']['millisecond']&&0x0===_0x3bb311['c']['second']&&_0x214944||(_0x1934db+=':')):_0x1934db+=padStart(_0x3bb311['c']['minute']),0x0===_0x3bb311['c']['millisecond']&&0x0===_0x3bb311['c']['second']&&_0x214944||(_0x1934db+=padStart(_0x3bb311['c']['second']),0x0===_0x3bb311['c']['millisecond']&&_0x517083||(_0x1934db+='.',_0x1934db+=padStart(_0x3bb311['c']['millisecond'],0x3))),_0x407eff&&(_0x3bb311['isOffsetFixed']&&0x0===_0x3bb311['offset']&&!_0x2bbe90?_0x1934db+='Z':_0x3bb311['o']<0x0?(_0x1934db+='-',_0x1934db+=padStart(Math['trunc'](-_0x3bb311['o']/0x3c)),_0x1934db+=':',_0x1934db+=padStart(Math['trunc'](-_0x3bb311['o']%0x3c))):(_0x1934db+='+',_0x1934db+=padStart(Math['trunc'](_0x3bb311['o']/0x3c)),_0x1934db+=':',_0x1934db+=padStart(Math['trunc'](_0x3bb311['o']%0x3c)))),_0x2bbe90&&(_0x1934db+='['+_0x3bb311['zone']['ianaName']+']'),_0x1934db;}const defaultUnitValues={'month':0x1,'day':0x1,'hour':0x0,'minute':0x0,'second':0x0,'millisecond':0x0},defaultWeekUnitValues={'weekNumber':0x1,'weekday':0x1,'hour':0x0,'minute':0x0,'second':0x0,'millisecond':0x0},defaultOrdinalUnitValues={'ordinal':0x1,'hour':0x0,'minute':0x0,'second':0x0,'millisecond':0x0},orderedUnits=['year','month','day','hour','minute','second','millisecond'],orderedWeekUnits=['weekYear','weekNumber','weekday','hour','minute','second','millisecond'],orderedOrdinalUnits=['year','ordinal','hour','minute','second','millisecond'];function normalizeUnit(_0x4b52aa){const _0x4613ff={'year':'year','years':'year','month':'month','months':'month','day':'day','days':'day','hour':'hour','hours':'hour','minute':'minute','minutes':'minute','quarter':'quarter','quarters':'quarter','second':'second','seconds':'second','millisecond':'millisecond','milliseconds':'millisecond','weekday':'weekday','weekdays':'weekday','weeknumber':'weekNumber','weeksnumber':'weekNumber','weeknumbers':'weekNumber','weekyear':'weekYear','weekyears':'weekYear','ordinal':'ordinal'}[_0x4b52aa['toLowerCase']()];if(!_0x4613ff)throw new InvalidUnitError(_0x4b52aa);return _0x4613ff;}function normalizeUnitWithLocalWeeks(_0x499487){switch(_0x499487['toLowerCase']()){case'localweekday':case'localweekdays':return'localWeekday';case'localweeknumber':case'localweeknumbers':return'localWeekNumber';case'localweekyear':case'localweekyears':return'localWeekYear';default:return normalizeUnit(_0x499487);}}function guessOffsetForZone(_0x2b1b0f){if(void 0x0===zoneOffsetTs&&(zoneOffsetTs=Settings['now']()),'iana'!==_0x2b1b0f['type'])return _0x2b1b0f['offset'](zoneOffsetTs);const _0x157e47=_0x2b1b0f['name'];let _0x6bfe43=zoneOffsetGuessCache['get'](_0x157e47);return void 0x0===_0x6bfe43&&(_0x6bfe43=_0x2b1b0f['offset'](zoneOffsetTs),zoneOffsetGuessCache['set'](_0x157e47,_0x6bfe43)),_0x6bfe43;}function quickDT(_0x347db8,_0x19b745){const _0x35ed06=normalizeZone(_0x19b745['zone'],Settings['defaultZone']);if(!_0x35ed06['isValid'])return DateTime['invalid'](unsupportedZone(_0x35ed06));const _0x270835=Locale['fromObject'](_0x19b745);let _0x336f28,_0x2cb17c;if(isUndefined(_0x347db8['year']))_0x336f28=Settings['now']();else{for(const _0x534432 of orderedUnits)isUndefined(_0x347db8[_0x534432])&&(_0x347db8[_0x534432]=defaultUnitValues[_0x534432]);const _0x27bba0=hasInvalidGregorianData(_0x347db8)||hasInvalidTimeData(_0x347db8);if(_0x27bba0)return DateTime['invalid'](_0x27bba0);const _0xb9ec5b=guessOffsetForZone(_0x35ed06);[_0x336f28,_0x2cb17c]=objToTS(_0x347db8,_0xb9ec5b,_0x35ed06);}return new DateTime({'ts':_0x336f28,'zone':_0x35ed06,'loc':_0x270835,'o':_0x2cb17c});}function diffRelative(_0x5e1fcb,_0x4d016c,_0x262ec6){const _0x29e9d6=!!isUndefined(_0x262ec6['round'])||_0x262ec6['round'],_0x5f3364=(_0x211816,_0xb836a8)=>{return _0x211816=roundTo(_0x211816,_0x29e9d6||_0x262ec6['calendary']?0x0:0x2,!0x0),_0x4d016c['loc']['clone'](_0x262ec6)['relFormatter'](_0x262ec6)['format'](_0x211816,_0xb836a8);},_0xe926c7=_0x376b96=>_0x262ec6['calendary']?_0x4d016c['hasSame'](_0x5e1fcb,_0x376b96)?0x0:_0x4d016c['startOf'](_0x376b96)['diff'](_0x5e1fcb['startOf'](_0x376b96),_0x376b96)['get'](_0x376b96):_0x4d016c['diff'](_0x5e1fcb,_0x376b96)['get'](_0x376b96);if(_0x262ec6['unit'])return _0x5f3364(_0xe926c7(_0x262ec6['unit']),_0x262ec6['unit']);for(const _0x2d3c19 of _0x262ec6['units']){const _0x22b17=_0xe926c7(_0x2d3c19);if(Math['abs'](_0x22b17)>=0x1)return _0x5f3364(_0x22b17,_0x2d3c19);}return _0x5f3364(_0x5e1fcb>_0x4d016c?-0x0:0x0,_0x262ec6['units'][_0x262ec6['units']['length']-0x1]);}function lastOpts(_0x1d6ef3){let _0xfd4fbd,_0x55ecb7={};return _0x1d6ef3['length']>0x0&&'object'==typeof _0x1d6ef3[_0x1d6ef3['length']-0x1]?(_0x55ecb7=_0x1d6ef3[_0x1d6ef3['length']-0x1],_0xfd4fbd=Array['from'](_0x1d6ef3)['slice'](0x0,_0x1d6ef3['length']-0x1)):_0xfd4fbd=Array['from'](_0x1d6ef3),[_0x55ecb7,_0xfd4fbd];}let zoneOffsetTs;const zoneOffsetGuessCache=new Map();class DateTime{constructor(_0x426bd1){const _0x3a34e9=_0x426bd1['zone']||Settings['defaultZone'];let _0x5ebeda=_0x426bd1['invalid']||(Number['isNaN'](_0x426bd1['ts'])?new Invalid('invalid\x20input'):null)||(_0x3a34e9['isValid']?null:unsupportedZone(_0x3a34e9));this['ts']=isUndefined(_0x426bd1['ts'])?Settings['now']():_0x426bd1['ts'];let _0x2ea20c=null,_0x3ecaa6=null;if(!_0x5ebeda){if(_0x426bd1['old']&&_0x426bd1['old']['ts']===this['ts']&&_0x426bd1['old']['zone']['equals'](_0x3a34e9))[_0x2ea20c,_0x3ecaa6]=[_0x426bd1['old']['c'],_0x426bd1['old']['o']];else{const _0x3d362f=isNumber(_0x426bd1['o'])&&!_0x426bd1['old']?_0x426bd1['o']:_0x3a34e9['offset'](this['ts']);_0x2ea20c=tsToObj(this['ts'],_0x3d362f),_0x5ebeda=Number['isNaN'](_0x2ea20c['year'])?new Invalid('invalid\x20input'):null,_0x2ea20c=_0x5ebeda?null:_0x2ea20c,_0x3ecaa6=_0x5ebeda?null:_0x3d362f;}}this['_zone']=_0x3a34e9,this['loc']=_0x426bd1['loc']||Locale['create'](),this['invalid']=_0x5ebeda,this['weekData']=null,this['localWeekData']=null,this['c']=_0x2ea20c,this['o']=_0x3ecaa6,this['isLuxonDateTime']=!0x0;}static['now'](){return new DateTime({});}static['local'](){const [_0x179aba,_0x4c6bf7]=lastOpts(arguments),[_0x43e3da,_0x3a3093,_0x3d5260,_0x1081d7,_0x5070e3,_0x2c2ab6,_0x2d649c]=_0x4c6bf7;return quickDT({'year':_0x43e3da,'month':_0x3a3093,'day':_0x3d5260,'hour':_0x1081d7,'minute':_0x5070e3,'second':_0x2c2ab6,'millisecond':_0x2d649c},_0x179aba);}static['utc'](){const [_0x2f0039,_0x2814df]=lastOpts(arguments),[_0x40f56d,_0x20265e,_0x1bdb16,_0x2f3615,_0x2318a7,_0x1e995e,_0x4fbd55]=_0x2814df;return _0x2f0039['zone']=FixedOffsetZone['utcInstance'],quickDT({'year':_0x40f56d,'month':_0x20265e,'day':_0x1bdb16,'hour':_0x2f3615,'minute':_0x2318a7,'second':_0x1e995e,'millisecond':_0x4fbd55},_0x2f0039);}static['fromJSDate'](_0x38282c,_0x2808a1={}){const _0x4cb7e2=isDate(_0x38282c)?_0x38282c['valueOf']():NaN;if(Number['isNaN'](_0x4cb7e2))return DateTime['invalid']('invalid\x20input');const _0x370467=normalizeZone(_0x2808a1['zone'],Settings['defaultZone']);return _0x370467['isValid']?new DateTime({'ts':_0x4cb7e2,'zone':_0x370467,'loc':Locale['fromObject'](_0x2808a1)}):DateTime['invalid'](unsupportedZone(_0x370467));}static['fromMillis'](_0x2b387d,_0x418a55={}){if(isNumber(_0x2b387d))return _0x2b387d<-MAX_DATE||_0x2b387d>MAX_DATE?DateTime['invalid']('Timestamp\x20out\x20of\x20range'):new DateTime({'ts':_0x2b387d,'zone':normalizeZone(_0x418a55['zone'],Settings['defaultZone']),'loc':Locale['fromObject'](_0x418a55)});throw new InvalidArgumentError('fromMillis\x20requires\x20a\x20numerical\x20input,\x20but\x20received\x20a\x20'+typeof _0x2b387d+'\x20with\x20value\x20'+_0x2b387d);}static['fromSeconds'](_0x59e14b,_0x272e4f={}){if(isNumber(_0x59e14b))return new DateTime({'ts':0x3e8*_0x59e14b,'zone':normalizeZone(_0x272e4f['zone'],Settings['defaultZone']),'loc':Locale['fromObject'](_0x272e4f)});throw new InvalidArgumentError('fromSeconds\x20requires\x20a\x20numerical\x20input');}static['fromObject'](_0x1ad58d,_0x4bb824={}){_0x1ad58d=_0x1ad58d||{};const _0x2f9c12=normalizeZone(_0x4bb824['zone'],Settings['defaultZone']);if(!_0x2f9c12['isValid'])return DateTime['invalid'](unsupportedZone(_0x2f9c12));const _0x246a61=Locale['fromObject'](_0x4bb824),_0x44c5f9=normalizeObject(_0x1ad58d,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:_0x4e9bc7,startOfWeek:_0x4458a3}=usesLocalWeekValues(_0x44c5f9,_0x246a61),_0x39db21=Settings['now'](),_0x53d516=isUndefined(_0x4bb824['specificOffset'])?_0x2f9c12['offset'](_0x39db21):_0x4bb824['specificOffset'],_0x2f6131=!isUndefined(_0x44c5f9['ordinal']),_0x472609=!isUndefined(_0x44c5f9['year']),_0x250c86=!isUndefined(_0x44c5f9['month'])||!isUndefined(_0x44c5f9['day']),_0x47303e=_0x472609||_0x250c86,_0x492364=_0x44c5f9['weekYear']||_0x44c5f9['weekNumber'];if((_0x47303e||_0x2f6131)&&_0x492364)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20weekYear/weekNumber\x20units\x20with\x20year/month/day\x20or\x20ordinals');if(_0x250c86&&_0x2f6131)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20ordinal\x20dates\x20with\x20month/day');const _0x4ea42d=_0x492364||_0x44c5f9['weekday']&&!_0x47303e;let _0x23bdf0,_0xaa5b2c,_0x3fac69=tsToObj(_0x39db21,_0x53d516);_0x4ea42d?(_0x23bdf0=orderedWeekUnits,_0xaa5b2c=defaultWeekUnitValues,_0x3fac69=gregorianToWeek(_0x3fac69,_0x4e9bc7,_0x4458a3)):_0x2f6131?(_0x23bdf0=orderedOrdinalUnits,_0xaa5b2c=defaultOrdinalUnitValues,_0x3fac69=gregorianToOrdinal(_0x3fac69)):(_0x23bdf0=orderedUnits,_0xaa5b2c=defaultUnitValues);let _0x20eeff=!0x1;for(const _0x9c8d33 of _0x23bdf0){isUndefined(_0x44c5f9[_0x9c8d33])?_0x44c5f9[_0x9c8d33]=_0x20eeff?_0xaa5b2c[_0x9c8d33]:_0x3fac69[_0x9c8d33]:_0x20eeff=!0x0;}const _0x4fa388=(_0x4ea42d?hasInvalidWeekData(_0x44c5f9,_0x4e9bc7,_0x4458a3):_0x2f6131?hasInvalidOrdinalData(_0x44c5f9):hasInvalidGregorianData(_0x44c5f9))||hasInvalidTimeData(_0x44c5f9);if(_0x4fa388)return DateTime['invalid'](_0x4fa388);const _0x1fa907=_0x4ea42d?weekToGregorian(_0x44c5f9,_0x4e9bc7,_0x4458a3):_0x2f6131?ordinalToGregorian(_0x44c5f9):_0x44c5f9,[_0x2b52f3,_0x1089f2]=objToTS(_0x1fa907,_0x53d516,_0x2f9c12),_0x10229d=new DateTime({'ts':_0x2b52f3,'zone':_0x2f9c12,'o':_0x1089f2,'loc':_0x246a61});return _0x44c5f9['weekday']&&_0x47303e&&_0x1ad58d['weekday']!==_0x10229d['weekday']?DateTime['invalid']('mismatched\x20weekday','you\x20can\x27t\x20specify\x20both\x20a\x20weekday\x20of\x20'+_0x44c5f9['weekday']+'\x20and\x20a\x20date\x20of\x20'+_0x10229d['toISO']()):_0x10229d['isValid']?_0x10229d:DateTime['invalid'](_0x10229d['invalid']);}static['fromISO'](_0x587e35,_0x4e56f3={}){const [_0x17b001,_0x3ea1d4]=parseISODate(_0x587e35);return parseDataToDateTime(_0x17b001,_0x3ea1d4,_0x4e56f3,'ISO\x208601',_0x587e35);}static['fromRFC2822'](_0xa6787c,_0x336f79={}){const [_0x238f6d,_0x580da4]=parseRFC2822Date(_0xa6787c);return parseDataToDateTime(_0x238f6d,_0x580da4,_0x336f79,'RFC\x202822',_0xa6787c);}static['fromHTTP'](_0x54e448,_0x293fb8={}){const [_0x19faa6,_0x11de69]=parseHTTPDate(_0x54e448);return parseDataToDateTime(_0x19faa6,_0x11de69,_0x293fb8,'HTTP',_0x293fb8);}static['fromFormat'](_0xc49c50,_0x368882,_0x1a5223={}){if(isUndefined(_0xc49c50)||isUndefined(_0x368882))throw new InvalidArgumentError('fromFormat\x20requires\x20an\x20input\x20string\x20and\x20a\x20format');const {locale:_0x10463f=null,numberingSystem:_0x2664d3=null}=_0x1a5223,_0x42ccad=Locale['fromOpts']({'locale':_0x10463f,'numberingSystem':_0x2664d3,'defaultToEN':!0x0}),[_0x498384,_0x789fee,_0x28feaf,_0x357dfe]=parseFromTokens(_0x42ccad,_0xc49c50,_0x368882);return _0x357dfe?DateTime['invalid'](_0x357dfe):parseDataToDateTime(_0x498384,_0x789fee,_0x1a5223,'format\x20'+_0x368882,_0xc49c50,_0x28feaf);}static['fromString'](_0x5b82df,_0xf782af,_0x186548={}){return DateTime['fromFormat'](_0x5b82df,_0xf782af,_0x186548);}static['fromSQL'](_0x246d57,_0x1fd84b={}){const [_0x28069d,_0x5072e7]=parseSQL(_0x246d57);return parseDataToDateTime(_0x28069d,_0x5072e7,_0x1fd84b,'SQL',_0x246d57);}static['invalid'](_0x105373,_0x118b75=null){if(!_0x105373)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20DateTime\x20is\x20invalid');const _0x1995e8=_0x105373 instanceof Invalid?_0x105373:new Invalid(_0x105373,_0x118b75);if(Settings['throwOnInvalid'])throw new InvalidDateTimeError(_0x1995e8);return new DateTime({'invalid':_0x1995e8});}static['isDateTime'](_0x1e4413){return _0x1e4413&&_0x1e4413['isLuxonDateTime']||!0x1;}static['parseFormatForOpts'](_0x21562b,_0x5b3b21={}){const _0x43027c=formatOptsToTokens(_0x21562b,Locale['fromObject'](_0x5b3b21));return _0x43027c?_0x43027c['map'](t=>t?t['val']:null)['join'](''):null;}static['expandFormat'](_0x1740bb,_0x36acb3={}){return expandMacroTokens(Formatter['parseFormat'](_0x1740bb),Locale['fromObject'](_0x36acb3))['map'](t=>t['val'])['join']('');}static['resetCache'](){zoneOffsetTs=void 0x0,zoneOffsetGuessCache['clear']();}['get'](_0x52d5c5){return this[_0x52d5c5];}get['isValid'](){return null===this['invalid'];}get['invalidReason'](){return this['invalid']?this['invalid']['reason']:null;}get['invalidExplanation'](){return this['invalid']?this['invalid']['explanation']:null;}get['locale'](){return this['isValid']?this['loc']['locale']:null;}get['numberingSystem'](){return this['isValid']?this['loc']['numberingSystem']:null;}get['outputCalendar'](){return this['isValid']?this['loc']['outputCalendar']:null;}get['zone'](){return this['_zone'];}get['zoneName'](){return this['isValid']?this['zone']['name']:null;}get['year'](){return this['isValid']?this['c']['year']:NaN;}get['quarter'](){return this['isValid']?Math['ceil'](this['c']['month']/0x3):NaN;}get['month'](){return this['isValid']?this['c']['month']:NaN;}get['day'](){return this['isValid']?this['c']['day']:NaN;}get['hour'](){return this['isValid']?this['c']['hour']:NaN;}get['minute'](){return this['isValid']?this['c']['minute']:NaN;}get['second'](){return this['isValid']?this['c']['second']:NaN;}get['millisecond'](){return this['isValid']?this['c']['millisecond']:NaN;}get['weekYear'](){return this['isValid']?possiblyCachedWeekData(this)['weekYear']:NaN;}get['weekNumber'](){return this['isValid']?possiblyCachedWeekData(this)['weekNumber']:NaN;}get['weekday'](){return this['isValid']?possiblyCachedWeekData(this)['weekday']:NaN;}get['isWeekend'](){return this['isValid']&&this['loc']['getWeekendDays']()['includes'](this['weekday']);}get['localWeekday'](){return this['isValid']?possiblyCachedLocalWeekData(this)['weekday']:NaN;}get['localWeekNumber'](){return this['isValid']?possiblyCachedLocalWeekData(this)['weekNumber']:NaN;}get['localWeekYear'](){return this['isValid']?possiblyCachedLocalWeekData(this)['weekYear']:NaN;}get['ordinal'](){return this['isValid']?gregorianToOrdinal(this['c'])['ordinal']:NaN;}get['monthShort'](){return this['isValid']?Info['months']('short',{'locObj':this['loc']})[this['month']-0x1]:null;}get['monthLong'](){return this['isValid']?Info['months']('long',{'locObj':this['loc']})[this['month']-0x1]:null;}get['weekdayShort'](){return this['isValid']?Info['weekdays']('short',{'locObj':this['loc']})[this['weekday']-0x1]:null;}get['weekdayLong'](){return this['isValid']?Info['weekdays']('long',{'locObj':this['loc']})[this['weekday']-0x1]:null;}get['offset'](){return this['isValid']?+this['o']:NaN;}get['offsetNameShort'](){return this['isValid']?this['zone']['offsetName'](this['ts'],{'format':'short','locale':this['locale']}):null;}get['offsetNameLong'](){return this['isValid']?this['zone']['offsetName'](this['ts'],{'format':'long','locale':this['locale']}):null;}get['isOffsetFixed'](){return this['isValid']?this['zone']['isUniversal']:null;}get['isInDST'](){return!this['isOffsetFixed']&&(this['offset']>this['set']({'month':0x1,'day':0x1})['offset']||this['offset']>this['set']({'month':0x5})['offset']);}['getPossibleOffsets'](){if(!this['isValid']||this['isOffsetFixed'])return[this];const _0x136980=0x5265c00,_0x53e7ef=0xea60,_0x4fccaf=objToLocalTS(this['c']),_0x27d048=this['zone']['offset'](_0x4fccaf-_0x136980),_0x182bf7=this['zone']['offset'](_0x4fccaf+_0x136980),_0x4e8404=this['zone']['offset'](_0x4fccaf-_0x27d048*_0x53e7ef),_0x35d3c8=this['zone']['offset'](_0x4fccaf-_0x182bf7*_0x53e7ef);if(_0x4e8404===_0x35d3c8)return[this];const _0x21ce21=_0x4fccaf-_0x4e8404*_0x53e7ef,_0x70e8d6=_0x4fccaf-_0x35d3c8*_0x53e7ef,_0x715f3=tsToObj(_0x21ce21,_0x4e8404),_0x4ff2e2=tsToObj(_0x70e8d6,_0x35d3c8);return _0x715f3['hour']===_0x4ff2e2['hour']&&_0x715f3['minute']===_0x4ff2e2['minute']&&_0x715f3['second']===_0x4ff2e2['second']&&_0x715f3['millisecond']===_0x4ff2e2['millisecond']?[clone(this,{'ts':_0x21ce21}),clone(this,{'ts':_0x70e8d6})]:[this];}get['isInLeapYear'](){return isLeapYear(this['year']);}get['daysInMonth'](){return daysInMonth(this['year'],this['month']);}get['daysInYear'](){return this['isValid']?daysInYear(this['year']):NaN;}get['weeksInWeekYear'](){return this['isValid']?weeksInWeekYear(this['weekYear']):NaN;}get['weeksInLocalWeekYear'](){return this['isValid']?weeksInWeekYear(this['localWeekYear'],this['loc']['getMinDaysInFirstWeek'](),this['loc']['getStartOfWeek']()):NaN;}['resolvedLocaleOptions'](_0x3ccc9a={}){const {locale:_0x54b14a,numberingSystem:_0x40811e,calendar:_0x32e772}=Formatter['create'](this['loc']['clone'](_0x3ccc9a),_0x3ccc9a)['resolvedOptions'](this);return{'locale':_0x54b14a,'numberingSystem':_0x40811e,'outputCalendar':_0x32e772};}['toUTC'](_0x53bc54=0x0,_0x53a85d={}){return this['setZone'](FixedOffsetZone['instance'](_0x53bc54),_0x53a85d);}['toLocal'](){return this['setZone'](Settings['defaultZone']);}['setZone'](_0x18e4a8,{keepLocalTime:_0x44376e=!0x1,keepCalendarTime:_0x14c51a=!0x1}={}){if((_0x18e4a8=normalizeZone(_0x18e4a8,Settings['defaultZone']))['equals'](this['zone']))return this;if(_0x18e4a8['isValid']){let _0x70cd93=this['ts'];if(_0x44376e||_0x14c51a){const _0xffc2df=_0x18e4a8['offset'](this['ts']),_0x4616f3=this['toObject']();[_0x70cd93]=objToTS(_0x4616f3,_0xffc2df,_0x18e4a8);}return clone(this,{'ts':_0x70cd93,'zone':_0x18e4a8});}return DateTime['invalid'](unsupportedZone(_0x18e4a8));}['reconfigure']({locale:_0x215f9c,numberingSystem:_0x7ba699,outputCalendar:_0x4f1aa6}={}){return clone(this,{'loc':this['loc']['clone']({'locale':_0x215f9c,'numberingSystem':_0x7ba699,'outputCalendar':_0x4f1aa6})});}['setLocale'](_0x1e55a9){return this['reconfigure']({'locale':_0x1e55a9});}['set'](_0x575495){if(!this['isValid'])return this;const _0x5cda2f=normalizeObject(_0x575495,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:_0x4b613a,startOfWeek:_0x12596e}=usesLocalWeekValues(_0x5cda2f,this['loc']),_0x4f771d=!isUndefined(_0x5cda2f['weekYear'])||!isUndefined(_0x5cda2f['weekNumber'])||!isUndefined(_0x5cda2f['weekday']),_0xffc5e3=!isUndefined(_0x5cda2f['ordinal']),_0x43e2ff=!isUndefined(_0x5cda2f['year']),_0x46c5e4=!isUndefined(_0x5cda2f['month'])||!isUndefined(_0x5cda2f['day']),_0x4fdc4d=_0x43e2ff||_0x46c5e4,_0x37a842=_0x5cda2f['weekYear']||_0x5cda2f['weekNumber'];if((_0x4fdc4d||_0xffc5e3)&&_0x37a842)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20weekYear/weekNumber\x20units\x20with\x20year/month/day\x20or\x20ordinals');if(_0x46c5e4&&_0xffc5e3)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20ordinal\x20dates\x20with\x20month/day');let _0x7e2be;_0x4f771d?_0x7e2be=weekToGregorian({...gregorianToWeek(this['c'],_0x4b613a,_0x12596e),..._0x5cda2f},_0x4b613a,_0x12596e):isUndefined(_0x5cda2f['ordinal'])?(_0x7e2be={...this['toObject'](),..._0x5cda2f},isUndefined(_0x5cda2f['day'])&&(_0x7e2be['day']=Math['min'](daysInMonth(_0x7e2be['year'],_0x7e2be['month']),_0x7e2be['day']))):_0x7e2be=ordinalToGregorian({...gregorianToOrdinal(this['c']),..._0x5cda2f});const [_0x1e4245,_0x380316]=objToTS(_0x7e2be,this['o'],this['zone']);return clone(this,{'ts':_0x1e4245,'o':_0x380316});}['plus'](_0x349062){if(!this['isValid'])return this;return clone(this,adjustTime(this,Duration['fromDurationLike'](_0x349062)));}['minus'](_0x210dc7){if(!this['isValid'])return this;return clone(this,adjustTime(this,Duration['fromDurationLike'](_0x210dc7)['negate']()));}['startOf'](_0x36304a,{useLocaleWeeks:_0x5687b9=!0x1}={}){if(!this['isValid'])return this;const _0x2c08b1={},_0x153577=Duration['normalizeUnit'](_0x36304a);switch(_0x153577){case'years':_0x2c08b1['month']=0x1;case'quarters':case'months':_0x2c08b1['day']=0x1;case'weeks':case'days':_0x2c08b1['hour']=0x0;case'hours':_0x2c08b1['minute']=0x0;case'minutes':_0x2c08b1['second']=0x0;case'seconds':_0x2c08b1['millisecond']=0x0;}if('weeks'===_0x153577){if(_0x5687b9){const _0x348e02=this['loc']['getStartOfWeek'](),{weekday:_0x53c907}=this;_0x53c907<_0x348e02&&(_0x2c08b1['weekNumber']=this['weekNumber']-0x1),_0x2c08b1['weekday']=_0x348e02;}else _0x2c08b1['weekday']=0x1;}if('quarters'===_0x153577){const _0x581a05=Math['ceil'](this['month']/0x3);_0x2c08b1['month']=0x3*(_0x581a05-0x1)+0x1;}return this['set'](_0x2c08b1);}['endOf'](_0xa7cd37,_0xa7f4c2){return this['isValid']?this['plus']({[_0xa7cd37]:0x1})['startOf'](_0xa7cd37,_0xa7f4c2)['minus'](0x1):this;}['toFormat'](_0x4de434,_0x46b5a3={}){return this['isValid']?Formatter['create'](this['loc']['redefaultToEN'](_0x46b5a3))['formatDateTimeFromString'](this,_0x4de434):INVALID;}['toLocaleString'](_0x5b78e6=DATE_SHORT,_0x13671f={}){return this['isValid']?Formatter['create'](this['loc']['clone'](_0x13671f),_0x5b78e6)['formatDateTime'](this):INVALID;}['toLocaleParts'](_0x2a8b9a={}){return this['isValid']?Formatter['create'](this['loc']['clone'](_0x2a8b9a),_0x2a8b9a)['formatDateTimeParts'](this):[];}['toISO']({format:_0x16bc3e='extended',suppressSeconds:_0x43168f=!0x1,suppressMilliseconds:_0x372a6c=!0x1,includeOffset:_0x4c4fea=!0x0,extendedZone:_0x4762f1=!0x1}={}){if(!this['isValid'])return null;const _0x22e4cb='extended'===_0x16bc3e;let _0x36267d=toISODate(this,_0x22e4cb);return _0x36267d+='T',_0x36267d+=toISOTime(this,_0x22e4cb,_0x43168f,_0x372a6c,_0x4c4fea,_0x4762f1),_0x36267d;}['toISODate']({format:_0x44c1aa='extended'}={}){return this['isValid']?toISODate(this,'extended'===_0x44c1aa):null;}['toISOWeekDate'](){return toTechFormat(this,'kkkk-\x27W\x27WW-c');}['toISOTime']({suppressMilliseconds:_0x83142b=!0x1,suppressSeconds:_0x2e0234=!0x1,includeOffset:_0x5731fa=!0x0,includePrefix:_0x344fc2=!0x1,extendedZone:_0x11a465=!0x1,format:_0x9cc31f='extended'}={}){if(!this['isValid'])return null;return(_0x344fc2?'T':'')+toISOTime(this,'extended'===_0x9cc31f,_0x2e0234,_0x83142b,_0x5731fa,_0x11a465);}['toRFC2822'](){return toTechFormat(this,'EEE,\x20dd\x20LLL\x20yyyy\x20HH:mm:ss\x20ZZZ',!0x1);}['toHTTP'](){return toTechFormat(this['toUTC'](),'EEE,\x20dd\x20LLL\x20yyyy\x20HH:mm:ss\x20\x27GMT\x27');}['toSQLDate'](){return this['isValid']?toISODate(this,!0x0):null;}['toSQLTime']({includeOffset:_0x4ccfc9=!0x0,includeZone:_0x554d02=!0x1,includeOffsetSpace:_0x41c6d9=!0x0}={}){let _0x3049ae='HH:mm:ss.SSS';return(_0x554d02||_0x4ccfc9)&&(_0x41c6d9&&(_0x3049ae+='\x20'),_0x554d02?_0x3049ae+='z':_0x4ccfc9&&(_0x3049ae+='ZZ')),toTechFormat(this,_0x3049ae,!0x0);}['toSQL'](_0x3f78c7={}){return this['isValid']?this['toSQLDate']()+'\x20'+this['toSQLTime'](_0x3f78c7):null;}['toString'](){return this['isValid']?this['toISO']():INVALID;}[Symbol['for']('nodejs.util.inspect.custom')](){return this['isValid']?'DateTime\x20{\x20ts:\x20'+this['toISO']()+',\x20zone:\x20'+this['zone']['name']+',\x20locale:\x20'+this['locale']+'\x20}':'DateTime\x20{\x20Invalid,\x20reason:\x20'+this['invalidReason']+'\x20}';}['valueOf'](){return this['toMillis']();}['toMillis'](){return this['isValid']?this['ts']:NaN;}['toSeconds'](){return this['isValid']?this['ts']/0x3e8:NaN;}['toUnixInteger'](){return this['isValid']?Math['floor'](this['ts']/0x3e8):NaN;}['toJSON'](){return this['toISO']();}['toBSON'](){return this['toJSDate']();}['toObject'](_0x335962={}){if(!this['isValid'])return{};const _0x3c069a={...this['c']};return _0x335962['includeConfig']&&(_0x3c069a['outputCalendar']=this['outputCalendar'],_0x3c069a['numberingSystem']=this['loc']['numberingSystem'],_0x3c069a['locale']=this['loc']['locale']),_0x3c069a;}['toJSDate'](){return new Date(this['isValid']?this['ts']:NaN);}['diff'](_0x585ce5,_0x2708c0='milliseconds',_0x51dcc4={}){if(!this['isValid']||!_0x585ce5['isValid'])return Duration['invalid']('created\x20by\x20diffing\x20an\x20invalid\x20DateTime');const _0x567d7e={'locale':this['locale'],'numberingSystem':this['numberingSystem'],..._0x51dcc4},_0xa78a72=maybeArray(_0x2708c0)['map'](Duration['normalizeUnit']),_0x336921=_0x585ce5['valueOf']()>this['valueOf'](),_0x5aa9a5=diff(_0x336921?this:_0x585ce5,_0x336921?_0x585ce5:this,_0xa78a72,_0x567d7e);return _0x336921?_0x5aa9a5['negate']():_0x5aa9a5;}['diffNow'](_0x499cf5='milliseconds',_0x416fed={}){return this['diff'](DateTime['now'](),_0x499cf5,_0x416fed);}['until'](_0x577b58){return this['isValid']?Interval['fromDateTimes'](this,_0x577b58):this;}['hasSame'](_0x4969b6,_0x392300,_0x45ac1d){if(!this['isValid'])return!0x1;const _0x130934=_0x4969b6['valueOf'](),_0x4f9d0f=this['setZone'](_0x4969b6['zone'],{'keepLocalTime':!0x0});return _0x4f9d0f['startOf'](_0x392300,_0x45ac1d)<=_0x130934&&_0x130934<=_0x4f9d0f['endOf'](_0x392300,_0x45ac1d);}['equals'](_0x14e387){return this['isValid']&&_0x14e387['isValid']&&this['valueOf']()===_0x14e387['valueOf']()&&this['zone']['equals'](_0x14e387['zone'])&&this['loc']['equals'](_0x14e387['loc']);}['toRelative'](_0x5b34c6={}){if(!this['isValid'])return null;const _0x5bcf39=_0x5b34c6['base']||DateTime['fromObject']({},{'zone':this['zone']}),_0x2897aa=_0x5b34c6['padding']?this<_0x5bcf39?-_0x5b34c6['padding']:_0x5b34c6['padding']:0x0;let _0x41aa88=['years','months','days','hours','minutes','seconds'],_0x5dedb1=_0x5b34c6['unit'];return Array['isArray'](_0x5b34c6['unit'])&&(_0x41aa88=_0x5b34c6['unit'],_0x5dedb1=void 0x0),diffRelative(_0x5bcf39,this['plus'](_0x2897aa),{..._0x5b34c6,'numeric':'always','units':_0x41aa88,'unit':_0x5dedb1});}['toRelativeCalendar'](_0x5b87e1={}){return this['isValid']?diffRelative(_0x5b87e1['base']||DateTime['fromObject']({},{'zone':this['zone']}),this,{..._0x5b87e1,'numeric':'auto','units':['years','months','days'],'calendary':!0x0}):null;}static['min'](..._0x291e74){if(!_0x291e74['every'](DateTime['isDateTime']))throw new InvalidArgumentError('min\x20requires\x20all\x20arguments\x20be\x20DateTimes');return bestBy(_0x291e74,_0x53a9ef=>_0x53a9ef['valueOf'](),Math['min']);}static['max'](..._0x230e0f){if(!_0x230e0f['every'](DateTime['isDateTime']))throw new InvalidArgumentError('max\x20requires\x20all\x20arguments\x20be\x20DateTimes');return bestBy(_0x230e0f,_0x5e3363=>_0x5e3363['valueOf'](),Math['max']);}static['fromFormatExplain'](_0x2d8fbf,_0x14cb6a,_0x3aaf20={}){const {locale:_0x1323b2=null,numberingSystem:_0x458847=null}=_0x3aaf20;return explainFromTokens(Locale['fromOpts']({'locale':_0x1323b2,'numberingSystem':_0x458847,'defaultToEN':!0x0}),_0x2d8fbf,_0x14cb6a);}static['fromStringExplain'](_0x15096f,_0x5cdddb,_0x46f5c7={}){return DateTime['fromFormatExplain'](_0x15096f,_0x5cdddb,_0x46f5c7);}static['buildFormatParser'](_0x239c10,_0x383189={}){const {locale:_0x468d46=null,numberingSystem:_0x4404db=null}=_0x383189,_0x1fcd13=Locale['fromOpts']({'locale':_0x468d46,'numberingSystem':_0x4404db,'defaultToEN':!0x0});return new TokenParser(_0x1fcd13,_0x239c10);}static['fromFormatParser'](_0x35ed83,_0x369dde,_0x2a2761={}){if(isUndefined(_0x35ed83)||isUndefined(_0x369dde))throw new InvalidArgumentError('fromFormatParser\x20requires\x20an\x20input\x20string\x20and\x20a\x20format\x20parser');const {locale:_0x5e6c05=null,numberingSystem:_0x5e9e86=null}=_0x2a2761,_0x368c54=Locale['fromOpts']({'locale':_0x5e6c05,'numberingSystem':_0x5e9e86,'defaultToEN':!0x0});if(!_0x368c54['equals'](_0x369dde['locale']))throw new InvalidArgumentError('fromFormatParser\x20called\x20with\x20a\x20locale\x20of\x20'+_0x368c54+',\x20but\x20the\x20format\x20parser\x20was\x20created\x20for\x20'+_0x369dde['locale']);const {result:_0xeead66,zone:_0x21bf6d,specificOffset:_0xd7dade,invalidReason:_0x3be176}=_0x369dde['explainFromTokens'](_0x35ed83);return _0x3be176?DateTime['invalid'](_0x3be176):parseDataToDateTime(_0xeead66,_0x21bf6d,_0x2a2761,'format\x20'+_0x369dde['format'],_0x35ed83,_0xd7dade);}static get['DATE_SHORT'](){return DATE_SHORT;}static get['DATE_MED'](){return DATE_MED;}static get['DATE_MED_WITH_WEEKDAY'](){return DATE_MED_WITH_WEEKDAY;}static get['DATE_FULL'](){return DATE_FULL;}static get['DATE_HUGE'](){return DATE_HUGE;}static get['TIME_SIMPLE'](){return TIME_SIMPLE;}static get['TIME_WITH_SECONDS'](){return TIME_WITH_SECONDS;}static get['TIME_WITH_SHORT_OFFSET'](){return TIME_WITH_SHORT_OFFSET;}static get['TIME_WITH_LONG_OFFSET'](){return TIME_WITH_LONG_OFFSET;}static get['TIME_24_SIMPLE'](){return TIME_24_SIMPLE;}static get['TIME_24_WITH_SECONDS'](){return TIME_24_WITH_SECONDS;}static get['TIME_24_WITH_SHORT_OFFSET'](){return TIME_24_WITH_SHORT_OFFSET;}static get['TIME_24_WITH_LONG_OFFSET'](){return TIME_24_WITH_LONG_OFFSET;}static get['DATETIME_SHORT'](){return DATETIME_SHORT;}static get['DATETIME_SHORT_WITH_SECONDS'](){return DATETIME_SHORT_WITH_SECONDS;}static get['DATETIME_MED'](){return DATETIME_MED;}static get['DATETIME_MED_WITH_SECONDS'](){return DATETIME_MED_WITH_SECONDS;}static get['DATETIME_MED_WITH_WEEKDAY'](){return DATETIME_MED_WITH_WEEKDAY;}static get['DATETIME_FULL'](){return DATETIME_FULL;}static get['DATETIME_FULL_WITH_SECONDS'](){return DATETIME_FULL_WITH_SECONDS;}static get['DATETIME_HUGE'](){return DATETIME_HUGE;}static get['DATETIME_HUGE_WITH_SECONDS'](){return DATETIME_HUGE_WITH_SECONDS;}}function friendlyDateTime(_0x4b2421){if(DateTime['isDateTime'](_0x4b2421))return _0x4b2421;if(_0x4b2421&&_0x4b2421['valueOf']&&isNumber(_0x4b2421['valueOf']()))return DateTime['fromJSDate'](_0x4b2421);if(_0x4b2421&&'object'==typeof _0x4b2421)return DateTime['fromObject'](_0x4b2421);throw new InvalidArgumentError('Unknown\x20datetime\x20argument:\x20'+_0x4b2421+',\x20of\x20type\x20'+typeof _0x4b2421);}function getDateTimeFormatter(_0xaddfad={},_0x28e916){if(void 0x0!==_0xaddfad['dateTimeFormat']&&'function'!=typeof _0xaddfad['dateTimeFormat'])throw new CKEditorError('invalid-date-time-format');return _0x966370=>{const _0x21e13e='string'==typeof _0x966370?DateTime['fromISO'](_0x966370):DateTime['fromJSDate'](_0x966370),_0x20b8fc=DateTime['now'](),_0x438e82=Math['floor'](_0x20b8fc['diff'](_0x21e13e,'days')['days']);return _0xaddfad['dateTimeFormat']?_0xaddfad['dateTimeFormat'](_0x21e13e['toJSDate'](),_0x28e916&&_0x28e916['t']?_0x28e916['t']:void 0x0):0x0===_0x438e82?_0x28e916?getTranslation$h(_0x28e916,'Today')+'\x20'+_0x21e13e['toFormat']('hh:mma'):_0x21e13e['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x438e82?_0x28e916?getTranslation$h(_0x28e916,'Yesterday')+'\x20'+_0x21e13e['toFormat']('hh:mma'):_0x21e13e['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x438e82<0x7?_0x28e916?getTranslation$h(_0x28e916,'Last')+'\x20'+getTranslation$h(_0x28e916,_0x21e13e['toFormat']('EEEE'))+'\x20'+_0x21e13e['toFormat']('hh:mma'):_0x21e13e['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x21e13e['toFormat']('LL-dd-yyyy\x20hh:mma');};}function getMarkerDomElement(_0x1c83cb,_0x1ace50){const _0x195a44=_0x1c83cb['mapper']['markerNameToElements'](_0x1ace50['name']);if(!_0x195a44)return null;const _0x2bc990=first(_0x195a44['values']());return _0x1c83cb['view']['domConverter']['mapViewToDom'](_0x2bc990)||null;}function getAllMarkersDomElementsSorted(_0x5e792e,_0x23eb37){if(0x0===_0x23eb37['length'])return null;const _0x4437db=[],_0x17431a=_0x5e792e['view']['domConverter'];for(const _0x30537d of _0x23eb37){const _0x176ab3=_0x5e792e['mapper']['markerNameToElements'](_0x30537d['name']);if(!_0x176ab3)continue;const _0x36a785=Array['from'](_0x176ab3)['map'](_0x526136=>_0x17431a['mapViewToDom'](_0x526136))['filter'](_0x356efb=>!!_0x356efb);_0x4437db['push'](..._0x36a785);}if(0x0===_0x4437db['length'])return null;const _0x2d86ae=[];for(const _0x89e87d of _0x4437db){const _0x7c903f=_0x89e87d['getClientRects']()['item'](0x0);_0x7c903f&&_0x2d86ae['push']({'x':_0x7c903f['x'],'y':_0x7c903f['y'],'domElement':_0x89e87d});}return 0x0===_0x2d86ae['length']?null:(_0x2d86ae['sort']((_0x2908e3,_0x188de7)=>_0x2908e3['y']-_0x188de7['y']||_0x2908e3['x']-_0x188de7['x']),_0x2d86ae['map'](_0x2154e2=>_0x2154e2['domElement']));}function trimHtml(_0x3e019d,{limit:_0x5d2a88,suffix:_0x7359bf='...'}){const _0x294ffb=[];let _0x13688a=0x0;const _0x7d5851=_0x3e019d['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x205c12=0x0;_0x205c12<_0x7d5851['length'];_0x205c12++){let _0x522e49=_0x7d5851[_0x205c12];const _0x51ae0e=splitCharactersToArray(_0x522e49);if(_0x522e49['startsWith']('<')){if(_0x13688a>=_0x5d2a88){const _0x59e845=_0x522e49['match'](/[a-zA-Z]+/);if(!_0x59e845){_0x7d5851[_0x205c12]='';continue;}const _0x249fac=_0x59e845[0x0];_0x522e49['startsWith']('</')?(_0x294ffb['length']&&(_0x522e49=''),_0x294ffb['pop']()):(_0x294ffb['push'](_0x249fac),_0x522e49='');}}else{if(_0x13688a>=_0x5d2a88)_0x522e49='';else{if(_0x13688a+_0x51ae0e['length']>=_0x5d2a88){let _0x456526=_0x5d2a88-_0x13688a;if('\x20'===_0x51ae0e[_0x456526-0x1])_0x456526--;else{const _0x103ea4=_0x51ae0e['slice'](_0x456526)['indexOf']('\x20');-0x1!==_0x103ea4?_0x456526+=_0x103ea4:_0x456526=_0x522e49['length'];}_0x522e49=_0x51ae0e['slice'](0x0,_0x456526)['join']('')+_0x7359bf,_0x13688a=_0x5d2a88;}else _0x13688a+=_0x51ae0e['length'];}}_0x7d5851[_0x205c12]=_0x522e49;}return _0x7d5851['join']('\x0a')['replace'](/\n/g,'');}function splitCharactersToArray(_0x2c213b){const _0x2a8455=[];for(let _0x5b19e6=0x0;_0x5b19e6<_0x2c213b['length'];_0x5b19e6++){const _0xd50194=_0x2c213b['substring'](_0x5b19e6)['match'](/^&[a-z0-9#]+;/);if(_0xd50194){const _0x337517=_0xd50194[0x0];_0x2a8455['push'](_0x337517),_0x5b19e6+=_0x337517['length']-0x1;}else _0x2a8455['push'](_0x2c213b[_0x5b19e6]);}return _0x2a8455;}class ConfirmView extends View{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x890040){super(_0x890040);const _0x5a59de=this['bindTemplate'];this['set']('message',getTranslation$h(_0x890040,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x890040,getTranslation$h(_0x890040,'Yes'),IconCheck,'submit'),this['cancelView']=this['_createButtonView'](_0x890040,getTranslation$h(_0x890040,'No'),IconCancel,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-confirm-view'],'tabindex':-0x1,'role':'alertdialog'},'children':[{'tag':'div','attributes':{'class':'ck-confirm-view-inner','role':'presentation'},'children':[{'tag':'p','children':[{'text':_0x5a59de['to']('message')}]},{'tag':'div','attributes':{'class':'ck-confirm-view-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['cancelView']['element']['focus']({'preventScroll':!0x0});}['_createButtonView'](_0x429c94,_0x37b435,_0x72ec6f,_0x4ea6ac){const _0x30bc4e=new ButtonView(_0x429c94);return _0x30bc4e['label']=_0x37b435,_0x30bc4e['icon']=_0x72ec6f,_0x30bc4e['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x4ea6ac}}),_0x30bc4e['on']('execute',()=>this['fire'](_0x4ea6ac)),_0x30bc4e;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0xcc3b31=>{this['keystrokes']['listenTo'](_0xcc3b31['element']),this['focusTracker']['add'](_0xcc3b31['element']);}),this['keystrokes']['set']('esc',(_0x59a157,_0x924a58)=>{this['fire']('cancel'),_0x924a58();});}}function ConfirmMixin(_0x32b8a3){return class extends _0x32b8a3{['showConfirm'](_0xdcc080,_0x1d235d){return this['confirmView']=new ConfirmView(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0xdcc080,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x1d235d['appendChild'](this['confirmView']['element']),_0x1d235d['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x513fd9,_0x249caf,_0x2069db)=>{_0x2069db||_0x1d235d['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x41a785=>this['confirmView']['on']('submit',_0x41a785));}['cancelConfirm'](){this['isConfirm']&&this['confirmView']['fire']('cancel');}['_removeConfirm'](){this['element']&&this['confirmView']&&this['confirmView']['element']&&(this['element']['focus'](),this['confirmView']['element']['remove'](),this['deregisterChild'](this['confirmView']),this['isConfirm']=!0x1,this['fire']('removeConfirm'),this['confirmView']['destroy'](),this['confirmView']=void 0x0);}};}function hashObject(_0x3464ff){let _0x437a83=0x0,_0x1059bf=0x0;for(const _0x10cdc9 of objectToNumberGenerator(_0x3464ff))_0x437a83=(_0x437a83<<0x5)-_0x437a83+_0x10cdc9,_0x437a83&=_0x437a83,[_0x437a83,_0x1059bf]=[_0x1059bf,_0x437a83];return toString$1(_0x437a83)+toString$1(_0x1059bf);}function*toNumberGenerator(_0x7f384c){null==_0x7f384c||null==_0x7f384c?yield 0x12b9b0a1:0x0===_0x7f384c||!0x1===_0x7f384c?yield 0x0:0x1===_0x7f384c||0x1==_0x7f384c?yield 0x1:Array['isArray'](_0x7f384c)?yield*arrayToNumberGenerator(_0x7f384c):'object'==typeof _0x7f384c?yield*objectToNumberGenerator(_0x7f384c):'string'==typeof _0x7f384c?yield*stringToNumberGenerator(_0x7f384c):'number'==typeof _0x7f384c&&(yield _0x7f384c);}function*objectToNumberGenerator(_0xfcddce){if(yield charCode('{'),_0xfcddce){const _0x3c0541=Object['keys'](_0xfcddce)['sort']();for(const _0x5b6a15 of _0x3c0541){yield*stringToNumberGenerator(_0x5b6a15),yield charCode(':');const _0x1669ed=_0xfcddce[_0x5b6a15];yield*toNumberGenerator(_0x1669ed);}}yield charCode('}');}function*arrayToNumberGenerator(_0x3791ea){for(const _0x498be0 of _0x3791ea)yield*toNumberGenerator(_0x498be0);}function*stringToNumberGenerator(_0x427c5a){yield charCode('\x22');for(const _0x2f687c of _0x427c5a)yield charCode(_0x2f687c);yield charCode('\x22');}function charCode(_0x182b4e){return _0x182b4e['charCodeAt'](0x0);}function toString$1(_0x7d00c2){return(_0x7d00c2*=Math['sign'](_0x7d00c2))['toString'](0x24);}const blackListedConfigOptions=['initialData','context','toolbar','rootsAttributes'],blackListedPlugins$2=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function skipRtcPlugins(_0x26c121,_0x44f1b6,_0x20b8f7,_0x4e6312=[]){const _0x416490='string'==typeof _0x26c121?_0x20b8f7['get'](_0x26c121)['constructor']:_0x26c121['prototype']['constructor'];if(_0x44f1b6['has'](_0x416490))return _0x44f1b6['get'](_0x416490);_0x44f1b6['set'](_0x416490,!0x0);const _0x2bf359=[...blackListedPlugins$2,..._0x4e6312]['map'](_0x332352=>{if(_0x20b8f7['has'](_0x332352))return _0x20b8f7['get'](_0x332352)['constructor'];})['filter'](_0x36c458=>_0x36c458);if(_0x416490&&_0x2bf359['includes'](_0x416490))return _0x44f1b6['set'](_0x416490,!0x1),!0x1;if(!_0x416490['requires'])return _0x44f1b6['set'](_0x416490,!0x0),!0x0;const _0x2e5c0b=_0x416490['requires']['every'](_0xfac6af=>skipRtcPlugins(_0xfac6af,_0x44f1b6,_0x20b8f7,_0x4e6312));return _0x44f1b6['set'](_0x416490,_0x2e5c0b),_0x2e5c0b;}function sanitizeEditorConfig(_0x50537a,_0x1f491e){const _0x1840d5={};for(const _0x374b45 of _0x50537a['config']['names']())blackListedConfigOptions['includes'](_0x374b45)||(_0x1840d5[_0x374b45]=_0x50537a['config']['get'](_0x374b45));const _0x2eada5=_0x1840d5['plugins']||[],_0x568cdf=_0x50537a['constructor']['builtinPlugins']||[],_0x29fb31=_0x2eada5['length']?_0x2eada5:_0x568cdf,_0x5b8c7b=_0x1840d5['extraPlugins']||[];delete _0x1840d5['extraPlugins'];const _0x54fcee=_0x1840d5['removePlugins']||[];delete _0x1840d5['removePlugins'];const _0x27239b=_0x50537a['_context']['config']['get']('plugins')||[],_0x924d3b=_0x29fb31['concat'](_0x5b8c7b)['concat'](_0x27239b)['map'](_0x48e6a5=>'string'==typeof _0x48e6a5?_0x568cdf['find'](_0x2f36b8=>_0x2f36b8['pluginName']==_0x48e6a5):_0x48e6a5)['filter'](_0x58329a=>!_0x54fcee['includes'](_0x58329a)&&!_0x54fcee['includes'](_0x58329a['pluginName'])),_0x3de874=Array['from'](new Set(_0x924d3b)),_0x2cc090=new Map();return _0x1840d5['plugins']=_0x3de874['filter'](_0x5b8716=>skipRtcPlugins(_0x5b8716,_0x2cc090,_0x50537a['plugins'],_0x1f491e)),_0x1840d5;}function surroundingMarkersDetector(_0x67f6bf,_0x121d07){const _0x2010f8=[];_0x67f6bf['document']['selection']['on']('change:range',()=>{const _0x43f1b3=getSurroundingMarkers(_0x67f6bf,_0x67f6bf['document']['selection']['focus']),_0x12beec=[],_0x163fc9=[],_0x3db011=[];for(const _0x1a3540 of _0x2010f8)_0x43f1b3['includes'](_0x1a3540)||_0x12beec['push'](_0x1a3540);for(const _0x267525 of _0x43f1b3)_0x2010f8['includes'](_0x267525)||_0x163fc9['push'](_0x267525),_0x3db011['push'](_0x267525);(_0x12beec['length']||_0x163fc9['length'])&&_0x121d07({'left':_0x12beec,'entered':_0x163fc9}),_0x2010f8['length']=0x0,_0x2010f8['push'](..._0x3db011);});}function getSurroundingMarkers(_0x29a878,_0x254204){const _0x13ab5b=[];for(const _0x1ef5af of _0x29a878['markers']){const _0x25f631=_0x1ef5af['getRange']();(_0x25f631['containsPosition'](_0x254204)||_0x25f631['start']['isEqual'](_0x254204)||_0x25f631['end']['isEqual'](_0x254204))&&_0x13ab5b['push'](_0x1ef5af);}return _0x13ab5b;}const FOCUS_ANNOTATION_KEYSTROKE='Ctrl+Shift+E';function setupThreadKeyboardNavigation(_0x3aedce,_0x21ae0b){const _0x20be85=_0x3aedce['element'];_0x3aedce['keystrokes']['listenTo'](_0x20be85);for(const _0x354b24 of _0x21ae0b)addViewToFocusCyclerNavigation(_0x3aedce,_0x354b24);_0x21ae0b['on']('change',(_0x28318e,_0x560ec9)=>{for(const _0x6d03c0 of _0x560ec9['removed'])removeViewFromFocusCyclerNavigation(_0x3aedce,_0x6d03c0);for(const _0x3452db of Array['from'](_0x560ec9['added'])['reverse']())addViewToFocusCyclerNavigation(_0x3aedce,_0x3452db);}),_0x3aedce['keystrokes']['set']('enter',(_0x47ed7a,_0x42a31b)=>{_0x20be85===_0x47ed7a['target']&&(_0x3aedce['focusCycler']['focusFirst'](),_0x42a31b());},{'filter':_0x5d39f8=>_0x5d39f8['target']===_0x20be85}),_0x3aedce['keystrokes']['set']('esc',(_0xa1ea48,_0x5b8e63)=>{_0x20be85!==_0xa1ea48['target']?_0x3aedce['focus']():_0x3aedce['fire']('escape'),_0x5b8e63();}),_0x3aedce['keystrokes']['set']('arrowdown',(_0x3e3c65,_0x5c3af3)=>{_0x20be85===_0x3e3c65['target']&&(_0x3aedce['fire']('arrowdown'),_0x5c3af3());}),_0x3aedce['keystrokes']['set']('arrowup',(_0x46d53f,_0xf4969e)=>{_0x20be85===_0x46d53f['target']&&(_0x3aedce['fire']('arrowup'),_0xf4969e());});}function addViewToFocusCyclerNavigation(_0x128ae0,_0x171b9b){_0x171b9b['isRendered']&&(_0x128ae0['focusTracker']['add'](_0x171b9b['element']),_0x128ae0['keystrokes']['listenTo'](_0x171b9b['element']),isViewWithFocusCycler(_0x171b9b)&&areFocusCyclerActionsCompatible(_0x128ae0['focusCycler'],_0x171b9b['focusCycler'])&&_0x128ae0['focusCycler']['chain'](_0x171b9b['focusCycler']));}function removeViewFromFocusCyclerNavigation(_0x35989c,_0x5948ca){_0x35989c['focusTracker']['remove'](_0x5948ca['element']),_0x35989c['keystrokes']['stopListening'](_0x5948ca['element']),isViewWithFocusCycler(_0x5948ca)&&_0x35989c['focusCycler']['unchain'](_0x5948ca['focusCycler']);}function areFocusCyclerActionsCompatible(_0x43b42b,_0x552938){const _0x3728a0=_0x43b42b['actions'],_0x23950a=_0x552938['actions'];for(const _0x298d32 of Object['keys'](_0x3728a0))if(_0x298d32 in _0x23950a&&_0x3728a0[_0x298d32]!==_0x23950a[_0x298d32])return!0x1;return!0x0;}class Diff{['diff'](_0x338a62,_0x245ec5,_0x1d1308={}){let _0x48727f;'function'==typeof _0x1d1308?(_0x48727f=_0x1d1308,_0x1d1308={}):'callback'in _0x1d1308&&(_0x48727f=_0x1d1308['callback']);const _0x324243=this['castInput'](_0x338a62,_0x1d1308),_0x241376=this['castInput'](_0x245ec5,_0x1d1308),_0x382148=this['removeEmpty'](this['tokenize'](_0x324243,_0x1d1308)),_0x43d6fa=this['removeEmpty'](this['tokenize'](_0x241376,_0x1d1308));return this['diffWithOptionsObj'](_0x382148,_0x43d6fa,_0x1d1308,_0x48727f);}['diffWithOptionsObj'](_0x56d388,_0x43ba60,_0x295964,_0xdf5c12){var _0x4f3bda;const _0x3ce4da=_0x183dee=>(_0x183dee=this['postProcess'](_0x183dee,_0x295964),_0xdf5c12?void setTimeout(function(){_0xdf5c12(_0x183dee);},0x0):_0x183dee),_0x53ca35=_0x43ba60['length'],_0x29970f=_0x56d388['length'];let _0x4d309d=0x1,_0x2343c8=_0x53ca35+_0x29970f;null!=_0x295964['maxEditLength']&&(_0x2343c8=Math['min'](_0x2343c8,_0x295964['maxEditLength']));const _0x23bab3=null!==(_0x4f3bda=_0x295964['timeout'])&&void 0x0!==_0x4f3bda?_0x4f3bda:0x1/0x0,_0x18563b=Date['now']()+_0x23bab3,_0x34dbe2=[{'oldPos':-0x1,'lastComponent':void 0x0}];let _0x1437aa=this['extractCommon'](_0x34dbe2[0x0],_0x43ba60,_0x56d388,0x0,_0x295964);if(_0x34dbe2[0x0]['oldPos']+0x1>=_0x29970f&&_0x1437aa+0x1>=_0x53ca35)return _0x3ce4da(this['buildValues'](_0x34dbe2[0x0]['lastComponent'],_0x43ba60,_0x56d388));let _0x361733=-0x1/0x0,_0x94ae86=0x1/0x0;const _0xea7966=()=>{for(let _0x25139a=Math['max'](_0x361733,-_0x4d309d);_0x25139a<=Math['min'](_0x94ae86,_0x4d309d);_0x25139a+=0x2){let _0x547768;const _0xc882cb=_0x34dbe2[_0x25139a-0x1],_0xc2225=_0x34dbe2[_0x25139a+0x1];_0xc882cb&&(_0x34dbe2[_0x25139a-0x1]=void 0x0);let _0x404db6=!0x1;if(_0xc2225){const _0xb09998=_0xc2225['oldPos']-_0x25139a;_0x404db6=_0xc2225&&0x0<=_0xb09998&&_0xb09998<_0x53ca35;}const _0x4dea4b=_0xc882cb&&_0xc882cb['oldPos']+0x1<_0x29970f;if(_0x404db6||_0x4dea4b){if(_0x547768=!_0x4dea4b||_0x404db6&&_0xc882cb['oldPos']<_0xc2225['oldPos']?this['addToPath'](_0xc2225,!0x0,!0x1,0x0,_0x295964):this['addToPath'](_0xc882cb,!0x1,!0x0,0x1,_0x295964),_0x1437aa=this['extractCommon'](_0x547768,_0x43ba60,_0x56d388,_0x25139a,_0x295964),_0x547768['oldPos']+0x1>=_0x29970f&&_0x1437aa+0x1>=_0x53ca35)return _0x3ce4da(this['buildValues'](_0x547768['lastComponent'],_0x43ba60,_0x56d388))||!0x0;_0x34dbe2[_0x25139a]=_0x547768,_0x547768['oldPos']+0x1>=_0x29970f&&(_0x94ae86=Math['min'](_0x94ae86,_0x25139a-0x1)),_0x1437aa+0x1>=_0x53ca35&&(_0x361733=Math['max'](_0x361733,_0x25139a+0x1));}else _0x34dbe2[_0x25139a]=void 0x0;}_0x4d309d++;};if(_0xdf5c12)!function _0x42d8c4(){setTimeout(function(){if(_0x4d309d>_0x2343c8||Date['now']()>_0x18563b)return _0xdf5c12(void 0x0);_0xea7966()||_0x42d8c4();},0x0);}();else for(;_0x4d309d<=_0x2343c8&&Date['now']()<=_0x18563b;){const _0x54455d=_0xea7966();if(_0x54455d)return _0x54455d;}}['addToPath'](_0x286038,_0x4037b3,_0x4809d4,_0x448596,_0x47edc2){const _0x591a2f=_0x286038['lastComponent'];return _0x591a2f&&!_0x47edc2['oneChangePerToken']&&_0x591a2f['added']===_0x4037b3&&_0x591a2f['removed']===_0x4809d4?{'oldPos':_0x286038['oldPos']+_0x448596,'lastComponent':{'count':_0x591a2f['count']+0x1,'added':_0x4037b3,'removed':_0x4809d4,'previousComponent':_0x591a2f['previousComponent']}}:{'oldPos':_0x286038['oldPos']+_0x448596,'lastComponent':{'count':0x1,'added':_0x4037b3,'removed':_0x4809d4,'previousComponent':_0x591a2f}};}['extractCommon'](_0x524dfb,_0x588a31,_0x2cc9b5,_0x5c8624,_0x375900){const _0x1eaa42=_0x588a31['length'],_0x54d63d=_0x2cc9b5['length'];let _0x43d2a9=_0x524dfb['oldPos'],_0xdbf979=_0x43d2a9-_0x5c8624,_0x3473cb=0x0;for(;_0xdbf979+0x1<_0x1eaa42&&_0x43d2a9+0x1<_0x54d63d&&this['equals'](_0x2cc9b5[_0x43d2a9+0x1],_0x588a31[_0xdbf979+0x1],_0x375900);)_0xdbf979++,_0x43d2a9++,_0x3473cb++,_0x375900['oneChangePerToken']&&(_0x524dfb['lastComponent']={'count':0x1,'previousComponent':_0x524dfb['lastComponent'],'added':!0x1,'removed':!0x1});return _0x3473cb&&!_0x375900['oneChangePerToken']&&(_0x524dfb['lastComponent']={'count':_0x3473cb,'previousComponent':_0x524dfb['lastComponent'],'added':!0x1,'removed':!0x1}),_0x524dfb['oldPos']=_0x43d2a9,_0xdbf979;}['equals'](_0x44d9a1,_0x22d521,_0x87f21c){return _0x87f21c['comparator']?_0x87f21c['comparator'](_0x44d9a1,_0x22d521):_0x44d9a1===_0x22d521||!!_0x87f21c['ignoreCase']&&_0x44d9a1['toLowerCase']()===_0x22d521['toLowerCase']();}['removeEmpty'](_0x5561e8){const _0x4e1e92=[];for(let _0x5b5d11=0x0;_0x5b5d11<_0x5561e8['length'];_0x5b5d11++)_0x5561e8[_0x5b5d11]&&_0x4e1e92['push'](_0x5561e8[_0x5b5d11]);return _0x4e1e92;}['castInput'](_0xd56dd3,_0x17c18d){return _0xd56dd3;}['tokenize'](_0x16ab06,_0x4808a5){return Array['from'](_0x16ab06);}['join'](_0x3d34a9){return _0x3d34a9['join']('');}['postProcess'](_0x3100ae,_0x1aa5f3){return _0x3100ae;}get['useLongestToken'](){return!0x1;}['buildValues'](_0x3b18d7,_0x4d42b7,_0x4a8cb0){const _0x1b9f1b=[];let _0x318a94;for(;_0x3b18d7;)_0x1b9f1b['push'](_0x3b18d7),_0x318a94=_0x3b18d7['previousComponent'],delete _0x3b18d7['previousComponent'],_0x3b18d7=_0x318a94;_0x1b9f1b['reverse']();const _0x3bb8a0=_0x1b9f1b['length'];let _0x29d15b=0x0,_0x46a327=0x0,_0x19c941=0x0;for(;_0x29d15b<_0x3bb8a0;_0x29d15b++){const _0x2e1418=_0x1b9f1b[_0x29d15b];if(_0x2e1418['removed'])_0x2e1418['value']=this['join'](_0x4a8cb0['slice'](_0x19c941,_0x19c941+_0x2e1418['count'])),_0x19c941+=_0x2e1418['count'];else{if(!_0x2e1418['added']&&this['useLongestToken']){let _0x53c8aa=_0x4d42b7['slice'](_0x46a327,_0x46a327+_0x2e1418['count']);_0x53c8aa=_0x53c8aa['map'](function(_0x48684b,_0x48604c){const _0xc3d61c=_0x4a8cb0[_0x19c941+_0x48604c];return _0xc3d61c['length']>_0x48684b['length']?_0xc3d61c:_0x48684b;}),_0x2e1418['value']=this['join'](_0x53c8aa);}else _0x2e1418['value']=this['join'](_0x4d42b7['slice'](_0x46a327,_0x46a327+_0x2e1418['count']));_0x46a327+=_0x2e1418['count'],_0x2e1418['added']||(_0x19c941+=_0x2e1418['count']);}}return _0x1b9f1b;}}class ArrayDiff extends Diff{['tokenize'](_0x16a464){return _0x16a464['slice']();}['join'](_0x18c08d){return _0x18c08d;}['removeEmpty'](_0x5325f2){return _0x5325f2;}}const arrayDiff=new ArrayDiff();function diffArrays(_0x1326af,_0x40a7fb,_0x441d03){return arrayDiff['diff'](_0x1326af,_0x40a7fb,_0x441d03);}const DATA_ID_MODEL_ATTRIBUTE='$elementId',DATA_ID_VIEW_ATTRIBUTE='data-id';class DocumentCompare extends ContextPlugin{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof Editor?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x38a6b1,_0x1d1daf)=>{_0x1d1daf['on']('ready',()=>{this['_integrateEditor'](_0x1d1daf);});});}get['editor'](){if(this['context']instanceof Editor)return this['context'];{const _0x571cc7=this['context']['editors']['first'];if(!_0x571cc7)throw new CKEditorError('documentcompare-no-editor',this);return _0x571cc7;}}['getDiff'](_0x593a12,_0xdd7d2d,_0x35fa2f={'anchor':'main','markDeletions':!0x1}){let _0x5cc028,_0x302352;const _0x189e3c=this['editor'];if('string'==typeof _0x35fa2f['anchor']){const _0x1694bb=_0x189e3c['model']['document']['getRoot'](_0x35fa2f['anchor']);if(!_0x1694bb)throw new CKEditorError('documentcompare-compare-no-root',this,{'anchor':_0x35fa2f['anchor']});_0x5cc028=_0x1694bb,_0x302352=_0x189e3c['model']['createPositionAt'](_0x1694bb,0x0);}else _0x5cc028=_0x35fa2f['anchor']['clone'](),_0x302352=_0x35fa2f['anchor']['clone']();const _0x5111cf=_0x189e3c['data']['parse'](_0x593a12,_0x5cc028),_0x2df496=_0x189e3c['data']['parse'](_0xdd7d2d,_0x5cc028);return new DocumentDiff(_0x5111cf,_0x2df496,_0x189e3c,{'anchor':_0x302352,'markDeletions':_0x35fa2f['markDeletions']});}['isMarkedRemoveOperation'](_0x1d3a7a){return'marker'==_0x1d3a7a['type']&&_0x1d3a7a['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x5d8509){_0x5d8509['conversion']['for']('upcast')['add'](_0x341855=>{_0x341855['on']('element',(_0x4d6390,_0x285044,_0x28018f)=>{if(_0x285044['modelRange'])for(const _0x7606f4 of _0x285044['modelRange']['getItems']({'shallow':!0x0})){if(_0x7606f4['is']('$textProxy'))continue;const _0x2608a6=_0x285044['viewItem']['getAttribute'](DATA_ID_VIEW_ATTRIBUTE);_0x2608a6&&_0x28018f['writer']['setAttribute'](DATA_ID_MODEL_ATTRIBUTE,_0x2608a6,_0x7606f4);}},{'priority':'lowest'});}),_0x5d8509['model']['schema']['addAttributeCheck'](()=>!0x0,DATA_ID_MODEL_ATTRIBUTE);}}class DocumentDiff{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x453225,_0x3036a0,_0x2f50c4,_0x3bbaf0){this['_editor']=_0x2f50c4,this['_markDeletions']=!!_0x3bbaf0['markDeletions'],this['_anchor']=_0x3bbaf0['anchor'];const _0x3fb80c=this['_tokenizeModel'](_0x453225),_0x1aeaf0=this['_tokenizeModel'](_0x3036a0);this['_diffItems']=this['_diffModelTokens'](_0x3fb80c,_0x1aeaf0),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x453225['markers'],_0x3036a0['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x4e866e=this['_editor']['model']['document'],_0x45ac07=[];let _0x3f6a29=_0x4e866e['version'];for(const _0x3cd96d of this['_operationsData'])switch(_0x3cd96d['type']){case'attribute':{const _0x2cd78d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3cd96d['path']),_0x52e848=_0x2cd78d['getShiftedBy'](_0x3cd96d['howMany']),_0x4f5a4f=new ModelRange(_0x2cd78d,_0x52e848),_0xd992=JSON['parse'](_0x3cd96d['oldValue']),_0x213d84=JSON['parse'](_0x3cd96d['newValue']);_0x45ac07['push'](new AttributeOperation(_0x4f5a4f,_0x3cd96d['key'],_0xd992,_0x213d84,_0x3f6a29++));break;}case'insert':{const _0x2925f6=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3cd96d['path']),_0x11cc6c=this['_makeModelFromTokens'](_0x3cd96d['tokens']);_0x45ac07['push'](new InsertOperation(_0x2925f6,_0x11cc6c,_0x3f6a29++));break;}case'remove':{const _0x127ad0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3cd96d['path']),_0x2fb27a=new ModelPosition(_0x4e866e['graveyard'],[0x0]);_0x45ac07['push'](new MoveOperation(_0x127ad0,_0x3cd96d['howMany'],_0x2fb27a,_0x3f6a29++));break;}case'rename':{const _0x5ea082=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3cd96d['path']);_0x45ac07['push'](new RenameOperation(_0x5ea082,_0x3cd96d['oldName'],_0x3cd96d['newName'],_0x3f6a29++));break;}case'split':{const _0x52e7ca=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3cd96d['path']),_0x543705=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3cd96d['path']['slice'](0x0,-0x1));_0x543705['offset']++,_0x45ac07['push'](new SplitOperation(_0x52e7ca,Number['NEGATIVE_INFINITY'],_0x543705,null,_0x3f6a29++));break;}case'merge':{const _0x481765=_0x3cd96d['path']['slice'](),_0x19b232=_0x481765['slice'](0x0,-0x1);_0x19b232[_0x19b232['length']-0x1]++,_0x19b232['push'](0x0);const _0x784d10=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x19b232),_0x296fa5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x481765),_0x549c80=new ModelPosition(_0x4e866e['graveyard'],[0x0]);_0x45ac07['push'](new MergeOperation(_0x784d10,Number['NEGATIVE_INFINITY'],_0x296fa5,_0x549c80,_0x3f6a29++));break;}case'marker':case'markedRemove':{let _0x57a838=null;if(_0x3cd96d['range']){const _0x459d85=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3cd96d['range']['start']),_0x3d3847=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3cd96d['range']['end']);_0x57a838=new ModelRange(_0x459d85,_0x3d3847);}const _0x48b909='marker'==_0x3cd96d['type']?_0x3cd96d['name']:'$markedRemove:'+uid();_0x45ac07['push'](new MarkerOperation(_0x48b909,null,_0x57a838,_0x4e866e['model']['markers'],!0x0,_0x3f6a29++));break;}case'unwrap':{const _0x2b0ef1=_0x3cd96d['path']['slice']();_0x2b0ef1['push'](0x0);const _0x33cb52=_0x3cd96d['path']['slice'](),_0x467bde=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2b0ef1),_0x2d0bd0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x33cb52),_0x1b3685=new ModelPosition(_0x4e866e['graveyard'],[0x0]);_0x45ac07['push'](new MoveOperation(_0x467bde,_0x3cd96d['howMany'],_0x2d0bd0,_0x3f6a29++)),_0x45ac07['push'](new MoveOperation(_0x2d0bd0['getShiftedBy'](_0x3cd96d['howMany']),0x1,_0x1b3685,_0x3f6a29++));break;}case'wrap':{const _0xde22c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3cd96d['range']['start']),_0x2a3ea9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3cd96d['range']['end']),_0x469ef5=_0x3cd96d['token']['element']['_clone'](!0x1),_0x5ceca7=_0x3cd96d['range']['end']['slice']();_0x5ceca7['push'](0x0);const _0xcd6dd3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5ceca7);_0x45ac07['push'](new InsertOperation(_0x2a3ea9,_0x469ef5,_0x3f6a29++)),_0x45ac07['push'](new MoveOperation(_0xde22c,_0x2a3ea9['offset']-_0xde22c['offset'],_0xcd6dd3,_0x3f6a29++));break;}}return _0x45ac07;}['_tokenizeModel'](_0x5019a0){const _0x53e78d=[],_0x184ee0=ModelRange['_createIn'](_0x5019a0),_0x583185=new ModelTreeWalker({'boundaries':_0x184ee0});let _0x2a00e2='',_0x2cf432=null;const _0x48b2da=[''],_0x527e22=new Map();for(const _0x836387 of _0x583185)if('elementStart'==_0x836387['type']||'elementEnd'==_0x836387['type']){let _0x2c4bb9=_0x48b2da[0x0];''!==_0x2a00e2&&(_0x53e78d['push'](...this['_makeTokensFromTextByWords'](_0x2a00e2,_0x2cf432,_0x2c4bb9)),_0x2a00e2='');const _0x5b892a=_0x836387['item'];let _0x48d6d2;_0x5b892a['getAttribute'](DATA_ID_MODEL_ATTRIBUTE)?_0x48d6d2=_0x5b892a['getAttribute'](DATA_ID_MODEL_ATTRIBUTE):'elementStart'==_0x836387['type']?(_0x48d6d2=uid(),_0x527e22['set'](_0x5b892a,_0x48d6d2)):_0x48d6d2=_0x527e22['get'](_0x5b892a);const _0x3767d9=this['_getElementCategory'](_0x5b892a);'solid'==_0x3767d9&&('elementStart'==_0x836387['type']?(_0x2c4bb9=_0x48d6d2,_0x48b2da['unshift'](_0x2c4bb9)):_0x48b2da['shift']());const _0xe01f43={'type':'element','element':_0x5b892a,'elementId':_0x48d6d2,'category':_0x3767d9,'isStart':'elementStart'==_0x836387['type'],'limitId':_0x2c4bb9};_0x53e78d['push'](_0xe01f43);}else''==_0x2a00e2&&(_0x2cf432=_0x836387['previousPosition']['clone']()),_0x2a00e2+=_0x836387['item']['data'];return''!==_0x2a00e2&&_0x53e78d['push'](...this['_makeTokensFromTextByWords'](_0x2a00e2,_0x2cf432,_0x48b2da[0x0])),_0x53e78d;}['_makeTokensFromTextByWords'](_0x41d042,_0x30688f,_0x1a64de){const _0x1c123c=_0x41d042['matchAll'](/(\s)/g),_0x5ee997=Array['from'](_0x1c123c)['map'](_0x49a7fa=>_0x49a7fa['index']);_0x5ee997['push'](_0x41d042['length']),0x0==_0x5ee997[0x0]&&_0x5ee997['shift']();const _0x28acd3=[],_0x393284=_0x30688f['parent'];let _0x1066ae=0x0,_0x10ed1a=_0x30688f['offset'];for(let _0x3c7f1f=0x0;_0x3c7f1f<_0x5ee997['length'];_0x3c7f1f++)_0x28acd3['push']({'type':'text','data':_0x41d042['slice'](_0x1066ae,_0x5ee997[_0x3c7f1f]),'parent':_0x393284,'offset':_0x10ed1a,'limitId':_0x1a64de}),_0x1066ae=_0x5ee997[_0x3c7f1f],_0x10ed1a=_0x30688f['offset']+_0x5ee997[_0x3c7f1f];return _0x28acd3;}['_getElementCategory'](_0x212432){const _0x5e7772=this['_editor']['model']['schema'];return _0x5e7772['isLimit'](_0x212432)||_0x5e7772['isContent'](_0x212432)||_0x5e7772['isInline'](_0x212432)?'solid':_0x5e7772['isBlock'](_0x212432)?'block':'container';}['_diffModelTokens'](_0x2f6e0d,_0x5b0d8b){const _0x322ccb=diffArrays(_0x2f6e0d,_0x5b0d8b,{'comparator':compareModelTokens});this['_handleUnclosedBlockOpeningTags'](_0x322ccb);const _0x3721fa=_0x322ccb['flatMap'](_0x39ef7d=>{const _0x10cdaa=_0x39ef7d['added']?'added':_0x39ef7d['removed']?'removed':'unchanged';return _0x39ef7d['value']['map'](_0x227dc1=>({'token':_0x227dc1,'change':_0x10cdaa}));});let _0xfecad3=0x0;for(const _0x39bc03 of _0x3721fa)'added'!=_0x39bc03['change']&&('unchanged'==_0x39bc03['change']&&(_0x39bc03['before']=_0x2f6e0d[_0xfecad3]),_0xfecad3++);return _0x3721fa;}['_handleUnclosedBlockOpeningTags'](_0x263c6f){for(let _0x5bdb8c=0x0;_0x5bdb8c<_0x263c6f['length']-0x1;_0x5bdb8c++)if(_0x263c6f[_0x5bdb8c]['removed']&&_0x263c6f[_0x5bdb8c+0x1]['added']){const _0x3757ae=this['_findUnclosedBlockOpeningToken'](_0x263c6f[_0x5bdb8c]['value']);if(null!==_0x3757ae){const _0x2d394c=this['_findUnclosedBlockOpeningToken'](_0x263c6f[_0x5bdb8c+0x1]['value']),_0x19a384=_0x263c6f[_0x5bdb8c]['value']['splice'](_0x3757ae),_0x262b37=_0x263c6f[_0x5bdb8c+0x1]['value']['splice'](_0x2d394c),_0x39049b=[_0x262b37['shift']()];_0x19a384['shift']();const _0x5caa7f={'value':_0x19a384,'removed':!0x0},_0x5531de={'value':_0x262b37,'added':!0x0},_0x3c425b={'value':_0x39049b};_0x263c6f['splice'](_0x5bdb8c+0x2,0x0,_0x3c425b,_0x5caa7f,_0x5531de);}}}['_findUnclosedBlockOpeningToken'](_0x31c80e){let _0x353ed9=0x0,_0x5e6b98=-0x1;for(let _0x2f8731=0x0;_0x2f8731<_0x31c80e['length'];_0x2f8731++){const _0x45bcb4=_0x31c80e[_0x2f8731];'element'==_0x45bcb4['type']&&'block'==_0x45bcb4['category']&&(_0x353ed9+=_0x45bcb4['isStart']?0x1:-0x1,_0x45bcb4['isStart']&&(_0x5e6b98=_0x2f8731));}return 0x0===_0x353ed9?null:_0x5e6b98;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x49748b=0x0;_0x49748b<this['_diffItems']['length'];_0x49748b++){const _0x258576=this['_diffItems'][_0x49748b]['change'],_0x185296=[];_0x185296['push'](this['_diffItems'][_0x49748b]);let _0x441564=_0x49748b+0x1;for(;this['_diffItems'][_0x441564]&&this['_diffItems'][_0x441564]['change']==_0x258576;)_0x185296['push'](this['_diffItems'][_0x441564]),_0x441564++,_0x49748b++;const _0x4a3dda=_0x185296['map'](_0x5937b0=>_0x5937b0['token']);if('unchanged'==_0x258576)_0x185296['map'](_0x5f14b3=>_0x5f14b3['before'])['forEach'](_0x28f10d=>this['_traverseOverItem'](_0x28f10d));else{if('removed'==_0x258576){if(this['_markDeletions']){const _0x4a3f77=this['_path']['slice']();_0x4a3dda['forEach'](_0x3bc2be=>this['_traverseOverItem'](_0x3bc2be));const _0x296324=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x4a3f77,'end':_0x296324}});}else this['_handleChanged'](_0x4a3dda,!0x0,this['_path']['slice']());}else{const _0x35b8bc=_0x4a3dda['filter'](_0x5b4fd7=>'element'!=_0x5b4fd7['type']||'container'!=_0x5b4fd7['category']);this['_handleChanged'](_0x35b8bc,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x5874d3=0x0;_0x5874d3<this['_diffItems']['length'];_0x5874d3++){const _0x29a502=this['_diffItems'][_0x5874d3]['change'],_0x320c10=[];_0x320c10['push'](this['_diffItems'][_0x5874d3]);let _0x3b25d0=_0x5874d3+0x1;for(;this['_diffItems'][_0x3b25d0]&&this['_diffItems'][_0x3b25d0]['change']==_0x29a502;)_0x320c10['push'](this['_diffItems'][_0x3b25d0]),_0x3b25d0++,_0x5874d3++;const _0x5e6953=_0x320c10['map'](_0x1d5d24=>_0x1d5d24['token']);if('unchanged'==_0x29a502){const _0x580ea2=_0x320c10['map'](_0x520ef5=>_0x520ef5['before']);this['_handleUnchanged'](_0x580ea2,_0x5e6953);}else('removed'!=_0x29a502||this['_markDeletions'])&&_0x5e6953['forEach'](_0x2ba89f=>{this['_traverseOverItem'](_0x2ba89f);});}}['_calculateMarkersOperationsData'](_0x1cf31e,_0x35ccfa){const _0x1a28ac={};for(const [_0x51adc4]of _0x1cf31e)_0x1a28ac[_0x51adc4]=null;for(const [_0x33ab61,_0x241beb]of _0x35ccfa)_0x1a28ac[_0x33ab61]=_0x241beb;const _0x158d4e=Object['entries'](_0x1a28ac)['map'](([_0x46cd86,_0x342acd])=>({'type':'marker','name':_0x46cd86,'range':_0x342acd?{'start':_0x342acd['start']['path']['slice'](),'end':_0x342acd['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x158d4e);}['_handleUnwraps'](){const _0x22b958=new Map(),_0x3bd9d6=[],_0x3b2e2d=[0x0];let _0x3e1692=this['_diffItems']['length']+0x1;for(let _0x48185d=this['_diffItems']['length']-0x1;_0x48185d>=0x0;_0x48185d--){const {token:_0x4c341a,before:_0x19cf98,change:_0x575212}=this['_diffItems'][_0x48185d];if('removed'!=_0x575212&&(_0x3e1692=_0x48185d),'element'!=_0x4c341a['type']||'container'!=_0x4c341a['category']||'added'==_0x575212)continue;const _0x2044eb=_0x19cf98?_0x19cf98['element']:_0x4c341a['element'];if(_0x4c341a['isStart']){const _0x4fe571=_0x22b958['get'](_0x2044eb),_0x5199a4=this['_diffItems'][_0x4fe571];('removed'==_0x575212||'removed'==_0x5199a4['change'])&&_0x3e1692<_0x4fe571&&(this['_operationsData']['push']({'type':'unwrap','path':_0x2044eb['getPath'](),'howMany':_0x2044eb['maxOffset']+_0x3b2e2d[0x0]}),_0x3b2e2d['shift'](),_0x3b2e2d[0x0]+=_0x2044eb['maxOffset']-0x1,_0x3bd9d6['push'](_0x48185d),_0x3bd9d6['push'](_0x4fe571));}else _0x22b958['set'](_0x2044eb,_0x48185d),_0x3b2e2d['unshift'](0x0);}_0x3bd9d6['sort']((_0x294363,_0x3f94ab)=>_0x3f94ab-_0x294363),_0x3bd9d6['forEach'](_0x40c8c2=>{const _0x4d5654=this['_diffItems'][_0x40c8c2];'removed'==_0x4d5654['change']?this['_diffItems']['splice'](_0x40c8c2,0x1):(_0x4d5654['change']='added',delete _0x4d5654['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x2e1d04=[];for(let _0xdfe35e=0x0;_0xdfe35e<this['_diffItems']['length'];_0xdfe35e++){const {change:_0x398909,token:_0x129293}=this['_diffItems'][_0xdfe35e];if('added'==_0x398909&&'element'==_0x129293['type']&&'container'==_0x129293['category']){if(_0x129293['isStart'])_0x2e1d04['push'](this['_path']['slice']());else{if(!_0x129293['isStart']){const _0x2a5541=_0x2e1d04['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x2a5541,'end':this['_path']['slice']()},'token':_0x129293}),this['_path'][this['_path']['length']-0x1]=_0x2a5541[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x398909||this['_markDeletions'])&&this['_traverseOverItem'](_0x129293);}}['_handleUnchanged'](_0x340854,_0x1c522d){for(let _0x5eb449=0x0;_0x5eb449<_0x340854['length'];_0x5eb449++){const _0x4428e1=_0x340854[_0x5eb449];if('element'==_0x4428e1['type']&&_0x4428e1['isStart']){const _0x3b0eab=_0x1c522d[_0x5eb449];'block'==_0x4428e1['category']&&this['_handleElementRename'](_0x4428e1['element'],_0x3b0eab['element'],this['_path']),this['_handleElementAttributeChanges'](_0x4428e1['element'],_0x3b0eab['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x3b0eab);}else{if('element'!=_0x4428e1['type']||_0x4428e1['isStart']){if('text'==_0x4428e1['type']){const _0x3f0c35=this['_path']['slice'](),_0x19100e=[],_0x14f8f5=[];for(;_0x340854[_0x5eb449]&&'text'==_0x340854[_0x5eb449]['type'];)_0x19100e['push'](_0x340854[_0x5eb449]),_0x14f8f5['push'](_0x1c522d[_0x5eb449]),this['_path'][this['_path']['length']-0x1]+=_0x340854[_0x5eb449]['data']['length'],_0x5eb449++;_0x5eb449--,this['_handleTextAttributeChanges'](_0x19100e,_0x14f8f5,_0x3f0c35);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x3b02a9,_0x43566a,_0x44cd12){const _0x277d54=[],_0x5af78f=[],_0x20c224=_0x44cd12['slice']();for(let _0x4c1171=0x0;_0x4c1171<_0x3b02a9['length'];_0x4c1171++){const _0x43aef6=_0x3b02a9[_0x4c1171],_0x2b5e28=_0x44cd12['slice']();if('element'!=_0x43aef6['type']||_0x43aef6['isStart'])'element'==_0x43aef6['type']&&_0x43aef6['isStart']?(_0x44cd12['push'](0x0),_0x43566a||this['_parents']['push'](_0x43aef6),_0x5af78f['push']({'before':_0x2b5e28,'after':_0x44cd12['slice'](),'index':_0x4c1171})):_0x44cd12[_0x44cd12['length']-0x1]+=_0x43aef6['data']['length'];else{let _0x9c581d;_0x44cd12['pop'](),_0x44cd12[_0x44cd12['length']-0x1]++,_0x9c581d=_0x43566a?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x5af78f['length']?_0x5af78f['pop']():_0x277d54['push']({'before':_0x2b5e28,'after':_0x44cd12['slice'](),'index':_0x4c1171,'related':_0x9c581d});}}if(_0x5af78f['length']!==_0x277d54['length'])throw new CKEditorError('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x3b02a9,'isRemove':_0x43566a});const _0x58ca08=[{'after':_0x20c224['slice'](),'index':-0x1},..._0x277d54,..._0x5af78f,{'before':_0x44cd12['slice'](),'index':_0x3b02a9['length']}];if(_0x43566a){for(let _0x12fd49=_0x58ca08['length']-0x1;_0x12fd49>=0x1;_0x12fd49--){const _0x587b05=_0x58ca08[_0x12fd49-0x1]['after'],_0x1dcc34=_0x58ca08[_0x12fd49]['before'],_0x38977e=_0x1dcc34[_0x1dcc34['length']-0x1]-_0x587b05[_0x587b05['length']-0x1];_0x38977e&&(this['_operationsData']['push']({'type':'remove','path':_0x587b05,'howMany':_0x38977e}),_0x1dcc34[_0x1dcc34['length']-0x1]-=_0x38977e);}for(const {before:_0x203c07}of _0x277d54)this['_operationsData']['push']({'type':'merge','path':_0x203c07});}else for(let _0x32c3c7=0x0;_0x32c3c7<_0x58ca08['length']-0x1;_0x32c3c7++){const _0x1d7027=_0x58ca08[_0x32c3c7]['after'],_0x238c0d=_0x58ca08[_0x32c3c7+0x1]['before'],_0x6ee4c0=_0x58ca08[_0x32c3c7]['index']+0x1,_0x761a0d=_0x58ca08[_0x32c3c7+0x1]['index'];if(_0x6ee4c0!==_0x761a0d&&this['_operationsData']['push']({'type':'insert','path':_0x1d7027,'tokens':_0x3b02a9['slice'](_0x6ee4c0,_0x761a0d)}),_0x32c3c7<_0x277d54['length']){this['_operationsData']['push']({'type':'split','path':_0x238c0d});const _0x4ada86=_0x3b02a9[_0x5af78f[_0x5af78f['length']-0x1-_0x32c3c7]['index']],_0x5a7c53=_0x277d54[_0x32c3c7]['after'],_0x5f2834=_0x277d54[_0x32c3c7]['related']['element'];this['_handleElementRename'](_0x5f2834,_0x4ada86['element'],_0x5a7c53),this['_handleElementAttributeChanges'](_0x5f2834,_0x4ada86['element'],_0x5a7c53);}}}['_traverseOverItem'](_0xb538bb){'element'==_0xb538bb['type']&&_0xb538bb['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0xb538bb)):'element'!=_0xb538bb['type']||_0xb538bb['isStart']?'text'==_0xb538bb['type']&&(this['_path'][this['_path']['length']-0x1]+=_0xb538bb['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x5f19ca,_0x30846b,_0x11caab){_0x5f19ca['name']!=_0x30846b['name']&&this['_operationsData']['push']({'type':'rename','path':_0x11caab['slice'](),'oldName':_0x5f19ca['name'],'newName':_0x30846b['name']});}['_handleElementAttributeChanges'](_0x11acf6,_0x397d00,_0xc38cc){const _0x4ba638=this['_getAttributeChanges'](_0x11acf6['getAttributes'](),_0x397d00['getAttributes']());for(const _0x4f6428 in _0x4ba638){const {oldValue:_0x53322a,newValue:_0x56c06d}=_0x4ba638[_0x4f6428];this['_operationsData']['push']({'type':'attribute','path':_0xc38cc['slice'](),'howMany':0x1,'key':_0x4f6428,'oldValue':_0x53322a,'newValue':_0x56c06d});}}['_handleTextAttributeChanges'](_0x549e53,_0x224e6b,_0x56a83f){const _0x58d890=this['_operationsData'],_0x2f0662=_0x549e53[0x0]['parent'],_0x4ce661=_0x549e53[0x0]['offset'],_0x538a5b=_0x224e6b[0x0]['parent'],_0x2afb0f=_0x224e6b[0x0]['offset'],_0x122dd6=_0x549e53['reduce']((_0x4b7d4e,_0x1230f2)=>_0x4b7d4e+_0x1230f2['data']['length'],0x0),_0xf885f4=this['_getAttrsForOffsets'](_0x2f0662,_0x4ce661,_0x122dd6),_0xa8a50d=this['_getAttrsForOffsets'](_0x538a5b,_0x2afb0f,_0x122dd6),_0x41a90d={};for(let _0x75ffd7=0x0;_0x75ffd7<_0x122dd6;_0x75ffd7++){const _0x832953=_0xf885f4[_0x4ce661+_0x75ffd7],_0x46d52a=_0xa8a50d[_0x2afb0f+_0x75ffd7],_0x38b6c2=this['_getAttributeChanges'](_0x832953,_0x46d52a);for(const _0x573c78 in _0x41a90d)_0x38b6c2[_0x573c78]||_0x2be925(_0x573c78);for(const _0xf7ffdb in _0x38b6c2){const {oldValue:_0x482a71,newValue:_0x3f2429}=_0x38b6c2[_0xf7ffdb],_0x5b3ac2=_0x41a90d[_0xf7ffdb];_0x5b3ac2?_0x5b3ac2['oldValue']==_0x482a71&&_0x5b3ac2['newValue']==_0x3f2429?_0x5b3ac2['length']++:(_0x2be925(_0xf7ffdb),_0x41a90d[_0xf7ffdb]={'oldValue':_0x482a71,'newValue':_0x3f2429,'start':_0x75ffd7,'length':0x1}):_0x41a90d[_0xf7ffdb]={'oldValue':_0x482a71,'newValue':_0x3f2429,'start':_0x75ffd7,'length':0x1};}}for(const _0x2c37a0 in _0x41a90d)_0x2be925(_0x2c37a0);function _0x2be925(_0x6a84f0){const _0x499860=_0x41a90d[_0x6a84f0],_0x5d21c8=_0x56a83f['slice']();_0x5d21c8[_0x5d21c8['length']-0x1]+=_0x499860['start'],_0x58d890['push']({'type':'attribute','path':_0x5d21c8,'howMany':_0x499860['length'],'key':_0x6a84f0,'oldValue':_0x499860['oldValue'],'newValue':_0x499860['newValue']}),delete _0x41a90d[_0x6a84f0];}}['_getAttributeChanges'](_0x519c99,_0x56e170){const _0x108229={};for(const [_0x307355,_0x59f8ed]of _0x519c99)_0x108229[_0x307355]={'oldValue':JSON['stringify'](_0x59f8ed),'newValue':'null'};for(const [_0xd84a79,_0x3c1b36]of _0x56e170){const _0x1da32c=JSON['stringify'](_0x3c1b36);_0x108229[_0xd84a79]?_0x108229[_0xd84a79]['oldValue']==_0x1da32c?delete _0x108229[_0xd84a79]:_0x108229[_0xd84a79]['newValue']=_0x1da32c:_0x108229[_0xd84a79]={'oldValue':'null','newValue':_0x1da32c};}return delete _0x108229[DATA_ID_MODEL_ATTRIBUTE],_0x108229;}['_getAttrsForOffsets'](_0x484991,_0xb13273,_0xcd9d28){const _0x275e02=new Array(_0xb13273+_0xcd9d28);let _0x438afc=_0x484991['getChildAtOffset'](_0xb13273),_0x4ccfff=_0x438afc['startOffset'];for(;_0x438afc&&_0x4ccfff<_0xb13273+_0xcd9d28;){const _0x2282af=Array['from'](_0x438afc['getAttributes']());_0x275e02['fill'](_0x2282af,_0x4ccfff,_0x4ccfff+_0x438afc['offsetSize']),_0x4ccfff+=_0x438afc['offsetSize'],_0x438afc=_0x438afc['nextSibling'];}return _0x275e02;}['_getPositionFromAnchorAndPath'](_0x27cdea,_0x46826f){const _0xf5f1a3=[..._0x27cdea['path']['slice'](0x0,-0x1),_0x27cdea['offset']+_0x46826f[0x0],..._0x46826f['slice'](0x1)];return new ModelPosition(_0x27cdea['root'],_0xf5f1a3);}['_makeModelFromTokens'](_0x248dfb){const _0x2f4ddf=[];let _0x154d90=null;for(const _0x3feb45 of _0x248dfb)if('element'!=_0x3feb45['type']||_0x3feb45['isStart']||_0x154d90!=_0x3feb45['element']){if(!_0x154d90){if('text'==_0x3feb45['type']){const _0x37d0cf=ModelPosition['_createAt'](_0x3feb45['parent'],_0x3feb45['offset']),_0x27a4e8=ModelRange['_createFromPositionAndShift'](_0x37d0cf,_0x3feb45['data']['length']),_0x23806f=Array['from'](_0x27a4e8['getItems']())['map'](_0x468b4e=>new ModelText(_0x468b4e['data'],_0x468b4e['getAttributes']()));_0x2f4ddf['push'](..._0x23806f);}else{_0x154d90=_0x3feb45['element'];const _0x5d3881=_0x3feb45['element']['_clone'](!0x0);_0x5d3881['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);for(const _0x5320bd of this['_editor']['model']['createRangeIn'](_0x5d3881)['getItems']())_0x5320bd['is']('element')&&_0x5320bd['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);_0x2f4ddf['push'](_0x5d3881);}}}else _0x154d90=null;return _0x2f4ddf;}}function compareModelTokens(_0x307e43,_0x50ea73){return _0x307e43['type']===_0x50ea73['type']&&(_0x307e43['limitId']===_0x50ea73['limitId']&&('text'==_0x307e43['type']?_0x307e43['data']==_0x50ea73['data']:compareModelElementTokens(_0x307e43,_0x50ea73)));}function compareModelElementTokens(_0x323bf2,_0x5531f2){return _0x323bf2['isStart']==_0x5531f2['isStart']&&((!_0x323bf2['isStart']||_0x323bf2['elementId']==_0x5531f2['elementId'])&&(_0x323bf2['category']==_0x5531f2['category']&&('block'==_0x323bf2['category']||('container'!=_0x323bf2['category']||_0x323bf2['elementId']==_0x5531f2['elementId'])&&_0x323bf2['element']['name']==_0x5531f2['element']['name'])));}function getOperationsFromReply({editor:_0x8d29b,interaction:_0x51343c,reply:_0x1f95c3,groups:_0x4c7173,transform:_0xf6d9d9,documentCompare:_0x5e039d,documentCompareOptions:_0x4678ff}){const _0x59f4df=_0x51343c['getDocumentContext']();if(!_0x59f4df)return[];const _0x1b07c4=_0x59f4df['content'],_0xab5768=_0x59f4df['version'],_0x491c99=_0x1f95c3['documentContextContent']['cloneNode'](!0x0);for(const {changes:_0x64124e}of _0x4c7173){const _0x394351=_0x64124e['filter'](_0x29791b=>'new'!=_0x29791b['type'])['map'](_0x3d0b11=>findByAttribute('data-id',_0x3d0b11['id'],_0x491c99)),_0x26644e=_0x64124e['filter'](_0x429e57=>'removed'!=_0x429e57['type'])['map'](_0x4220f1=>_0x4220f1['node']['cloneNode'](!0x0));let _0x427010=null;if(_0x394351['length']){_0x427010=_0x394351[0x0]['previousSibling'];for(let _0x2a7f08=0x0;_0x2a7f08<_0x394351['length'];_0x2a7f08++)removeElement(_0x394351[_0x2a7f08]);}if(_0x26644e['length']){_0x427010||(_0x64124e[0x0]['anchorId']?_0x427010=findByAttribute('data-id',_0x64124e[0x0]['anchorId'],_0x491c99):(_0x427010=_0x26644e['shift'](),prependChild(_0x491c99,_0x427010)));for(let _0x595bcc=0x0;_0x595bcc<_0x26644e['length'];_0x595bcc++)append(_0x427010,_0x26644e[_0x595bcc]),_0x427010=_0x26644e[_0x595bcc];}}const _0x117563=serialize(_0x491c99),_0x1ac80c=_0x5e039d['getDiff'](_0x1b07c4,_0x117563,_0x4678ff)['getOperations']();if(_0xf6d9d9){const _0x35a40f=_0x8d29b['model']['document']['history']['getOperations'](_0xab5768),_0x3f8e76={'document':_0x8d29b['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1};return transformOperationSets(_0x1ac80c,_0x35a40f,_0x3f8e76)['operationsA'];}return _0x1ac80c;}function getSuggestionPartsFromReply({editor:_0x36db4c,changeGroups:_0x3ef0fa,documentContextContent:_0x1a5497,showDiff:_0x3ae360,trimUnchanged:_0x40c177=!0x0}){return _0x3ef0fa['map'](_0x1c1bec=>{const _0x345e3a=new Document([]),_0x4c7882=new Document([]);for(const _0x2532f4 of _0x1c1bec['changes'])if(_0x3ae360&&'removed'==_0x2532f4['type']||_0x4c7882['children']['push'](_0x2532f4['node']['cloneNode'](!0x0)),'new'!=_0x2532f4['type']&&(_0x3ae360||'removed'!=_0x2532f4['type'])){const _0x5f27fb=findOne(_0x1b4a31=>getAttribute(_0x1b4a31,'data-id')==_0x2532f4['id'],_0x1a5497,!0x0);_0x5f27fb&&_0x345e3a['children']['push'](_0x5f27fb['cloneNode'](!0x0));}const {content:_0x4513df,hasChanges:_0x337e18}=passThroughEditorDataPipeline(_0x36db4c,_0x345e3a,_0x4c7882,_0x3ae360,_0x40c177);return{'type':_0x1c1bec['changes'][0x0]['type'],'index':_0x1c1bec['index'],'content':_0x4513df,'hasChanges':_0x337e18};});}function passThroughEditorDataPipeline(_0x17f329,_0x5deff7,_0x39ef86,_0x59ac4f,_0x5940d9=!0x0){const _0x4c145b=_0x17f329['plugins']['get']('DocumentCompare'),_0x1772d6=_0x17f329['plugins']['get']('TrackChangesEditing'),_0x21dae9=serialize(_0x5deff7),_0x18402b=serialize(_0x39ef86),_0x119e02=_0x17f329['data']['parse'](_0x21dae9,'$root'),_0x2caf72=_0x17f329['model']['createPositionAt'](_0x119e02,0x0),_0x3dfa3d=_0x4c145b['getDiff'](_0x21dae9,_0x18402b,{'anchor':_0x2caf72,'markDeletions':_0x59ac4f})['getOperations']();if(0x0==_0x3dfa3d['length'])return{'content':_0x5deff7['cloneNode'](!0x0),'hasChanges':!0x1};if(_0x59ac4f?_0x1772d6['_applyOperationsAsSuggestions'](_0x3dfa3d):_0x17f329['model']['change'](_0x448cb1=>{for(const _0x599b97 of _0x3dfa3d)if('remove'==_0x599b97['type']){const _0x3ff3c2=_0x599b97['sourcePosition'],_0x1f083e=_0x599b97['howMany'],_0x273a08=new _DetachOperation(_0x3ff3c2,_0x1f083e);_0x448cb1['batch']['addOperation'](_0x273a08),_0x17f329['model']['applyOperation'](_0x273a08);}else{if('marker'==_0x599b97['type']){const _0x2f14c5=_0x599b97['name'],_0x307175=_0x599b97['newRange'];_0x119e02['markers']['set'](_0x2f14c5,_0x307175);}else _0x599b97['baseVersion']=null,_0x599b97['isDocumentOperation']=!0x1,_0x448cb1['batch']['addOperation'](_0x599b97),_0x17f329['model']['applyOperation'](_0x599b97);}}),_0x5940d9){const _0x5ef846=getMinimalSelection(_0x17f329,_0x3dfa3d,_0x119e02);expandSelectionWithContext(_0x17f329['model'],_0x5ef846),shrinkFragmentToSelection(_0x17f329['model'],_0x5ef846);}return{'content':parse$2(_0x17f329['data']['stringify'](_0x119e02,{'showSuggestionHighlights':!0x0})),'hasChanges':!0x0};}function getMinimalSelection(_0x5b86e8,_0x590bec,_0x4b38ce){const _0x49f688=_0x5b86e8['plugins']['get']('DocumentCompare');let _0x20cd62=_0x5b86e8['model']['createPositionAt'](_0x4b38ce,Number['POSITIVE_INFINITY']),_0x20b0d1=_0x5b86e8['model']['createPositionAt'](_0x4b38ce,0x0);for(const _0xf64648 of _0x590bec){let _0x236719,_0x2f90b6;if(_0x49f688['isMarkedRemoveOperation'](_0xf64648))_0x236719=_0xf64648['newRange']['start'],_0x2f90b6=_0xf64648['newRange']['end'];else switch(_0x20cd62=_0x20cd62['getTransformedByOperation'](_0xf64648),_0x20b0d1=_0x20b0d1['getTransformedByOperation'](_0xf64648),_0xf64648['type']){case'rename':_0x236719=_0xf64648['position'],_0x2f90b6=_0x236719['getShiftedBy'](0x1);break;case'addAttribute':case'removeAttribute':case'changeAttribute':_0x236719=_0xf64648['range']['start'],_0x2f90b6=_0xf64648['range']['end'];break;case'insert':_0x236719=_0xf64648['position'],_0x2f90b6=_0x236719['getShiftedBy'](_0xf64648['howMany']);break;case'split':_0x236719=_0xf64648['splitPosition'],_0x2f90b6=_0xf64648['moveTargetPosition'];break;case'merge':{const _0x193a46=_0xf64648['targetPosition']['path']['slice'](0x0,-0x1);_0x236719=_0x5b86e8['model']['createPositionFromPath'](_0x4b38ce,_0x193a46),_0x2f90b6=_0x236719['getShiftedBy'](0x1);break;}case'remove':{const _0x4d9fe2=_0xf64648['howMany'],_0x364974=_0xf64648['sourcePosition']['_getTransformedByInsertion'](_0xf64648['targetPosition'],_0x4d9fe2),_0x2ab4f7=_0xf64648['getMovedRangeStart']();'remove'==_0xf64648['type']?(_0x236719=_0x364974,_0x2f90b6=_0x364974):(_0x236719=_0x2ab4f7,_0x2f90b6=_0x2ab4f7['getShiftedBy'](_0x4d9fe2));break;}}_0x236719&&_0x236719['isBefore'](_0x20cd62)&&(_0x20cd62=_0x236719['clone'](),_0x20cd62['stickiness']='toNone'),_0x2f90b6&&_0x2f90b6['isAfter'](_0x20b0d1)&&(_0x20b0d1=_0x2f90b6['clone'](),_0x20b0d1['stickiness']='toNone');}return _0x5b86e8['model']['createSelection'](_0x5b86e8['model']['createRange'](_0x20cd62,_0x20b0d1));}function expandSelectionWithContext(_0x1a6d58,_0x1ea4c3){expandSelection(_0x1a6d58,_0x1ea4c3,'forward');const _0x1f3b59=_0x1ea4c3['getFirstRange']();_0x1ea4c3['setTo']([]),_0x1ea4c3['setTo'](_0x1f3b59,{'backward':!0x0}),expandSelection(_0x1a6d58,_0x1ea4c3,'backward');}function expandSelection(_0x242b1f,_0x59ad88,_0x3a92e5){let _0x1db415=0x14;for(;_0x1db415;){_0x242b1f['modifySelection'](_0x59ad88,{'unit':'word','direction':_0x3a92e5}),_0x1db415--;const _0x1a5664=_0x59ad88['focus']['forward'==_0x3a92e5?'nodeBefore':'nodeAfter'];if(_0x1a5664&&_0x1a5664['is']('element')&&_0x242b1f['schema']['isBlock'](_0x1a5664)&&_0x242b1f['schema']['isObject'](_0x1a5664))break;}}function shrinkFragmentToSelection(_0x136581,_0x539a42){const _0x1e8f0a=_0x539a42['getFirstRange']()['start'];let _0x14b5e8=_0x539a42['getFirstRange']()['end'];const _0x1c7221=_0x1e8f0a['root'];(_0x14b5e8['textNode']||_0x14b5e8['nodeAfter']&&_0x14b5e8['nodeAfter']['is']('$text'))&&(_insertIntoModelNodeList(_0x14b5e8,'...'),_0x14b5e8=_0x14b5e8['getShiftedBy'](0x3)),(_0x1e8f0a['textNode']||_0x1e8f0a['nodeBefore']&&_0x1e8f0a['nodeBefore']['is']('$text'))&&(_insertIntoModelNodeList(_0x1e8f0a,'...'),_transformMarkersByInsertion(_0x1c7221,_0x1e8f0a,0x3),_0x1e8f0a['parent']==_0x14b5e8['parent']&&(_0x14b5e8=_0x14b5e8['getShiftedBy'](0x3)));const _0x23ab62=_0x136581['createRange'](_0x136581['createPositionAt'](_0x1c7221,0x0),_0x1e8f0a),_0x28ac6a=_0x136581['createRange'](_0x14b5e8,_0x136581['createPositionAt'](_0x1c7221,'end')),_0x140672=[..._0x23ab62['getMinimalFlatRanges'](),..._0x28ac6a['getMinimalFlatRanges']()];_0x140672['reverse']();for(const _0x2d6c78 of _0x140672)_removeFromModelNodeList(_0x2d6c78),_transformMarkersByDeletion(_0x1c7221,_0x2d6c78);}function _transformMarkersByDeletion(_0x3d0235,_0x3e25dd){for(const [_0xf402dd,_0x7dc82c]of _0x3d0235['markers']){const _0xaf74b6=_0x7dc82c['_getTransformedByDeletion'](_0x3e25dd['start'],_0x3e25dd['end']['offset']-_0x3e25dd['start']['offset']);null!=_0xaf74b6?_0x3d0235['markers']['set'](_0xf402dd,_0xaf74b6):_0x3d0235['markers']['delete'](_0xf402dd);}}function _transformMarkersByInsertion(_0xc8cbb9,_0x57796a,_0x991cfd){for(let [_0x3b6382,_0x473137]of _0xc8cbb9['markers']){const _0x5506f2=_0x473137['_getTransformedByInsertion'](_0x57796a,_0x991cfd,!0x1);_0x473137=_0x5506f2[0x0],_0xc8cbb9['markers']['set'](_0x3b6382,_0x473137);}}class AIMiniToolbarView extends ToolbarView{['copyButton'];['likeButton'];['dislikeButton'];['showChangesButton'];['_config'];constructor(_0x3ae4eb,_0x1daea3={},_0x1f901){super(_0x3ae4eb),this['set']('isLoading',!0x1),this['_config']={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x1daea3};const _0x635601=!(this['_config']['showCopy']||this['_config']['showChanges']||this['_config']['showLike']||this['_config']['showDislike']||this['_config']['customView']?.['length']);this['class']=_0x635601?'ck-ai-mini-toolbar\x20ck-hidden':'ck-ai-mini-toolbar',this['_config']['showCopy']&&(this['_setupCopyButton'](),this['items']['add'](this['copyButton'])),this['_config']['showChanges']&&(this['_setupShowChangesButton'](_0x1f901),this['items']['add'](this['showChangesButton'])),this['_setupRatingButtons'](),this['_config']['showLike']&&this['items']['add'](this['likeButton']),this['_config']['showDislike']&&this['items']['add'](this['dislikeButton']),this['_config']['customView']&&this['items']['addMany'](this['_config']['customView']);}['_setupRatingButtons'](){this['likeButton']=new ButtonView(this['locale']),this['likeButton']['set']({'icon':IconThumbUp,'label':getTranslation$i(this['locale'],'AI_MINI_TOOLBAR_LIKE'),'tooltip':!0x0}),this['likeButton']['bind']('isEnabled')['to'](this,'isLoading',_0x24dc37=>!_0x24dc37),this['likeButton']['on']('execute',()=>{this['fire']('like');}),this['dislikeButton']=new ButtonView(this['locale']),this['dislikeButton']['set']({'icon':IconThumbDown,'label':getTranslation$i(this['locale'],'AI_MINI_TOOLBAR_DISLIKE'),'tooltip':!0x0}),this['dislikeButton']['bind']('isEnabled')['to'](this,'isLoading',_0x22873a=>!_0x22873a),this['dislikeButton']['on']('execute',()=>{this['fire']('dislike');});}['_setupCopyButton'](){this['copyButton']=new ButtonView(this['locale']),this['copyButton']['set']({'icon':_0x548bd1,'label':getTranslation$i(this['locale'],'AI_MINI_TOOLBAR_COPY'),'class':'ck-ai-mini-toolbar-copy-button','tooltip':!0x0}),this['copyButton']['bind']('isEnabled')['to'](this,'isLoading',_0x43eaea=>!_0x43eaea);const _0x43fdcb=new IconView();_0x43fdcb['set']({'content':_0x2a9685}),_0x43fdcb['extendTemplate']({'attributes':{'class':['ck-ai-mini-toolbar-copy-button__check-mark']}}),this['copyButton']['on']('execute',()=>{this['copyButton']['class']='ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied',setTimeout(()=>{this['copyButton']['class']='ck-ai-mini-toolbar-copy-button';},0x7d0);}),this['copyButton']['children']['add'](_0x43fdcb);}['_setupShowChangesButton'](_0x27092a){this['showChangesButton']=new ButtonView(this['locale']),this['showChangesButton']['set']({'icon':IconShowChangesOff,'label':getTranslation$i(this['locale'],'AI_SUGGESTION_BUTTON_SHOW_CHANGES'),'withText':'full'==this['_config']['showChanges'],'tooltip':'full'!=this['_config']['showChanges'],'isOn':_0x27092a}),this['showChangesButton']['bind']('isEnabled')['to'](this,'isLoading',_0x413d81=>!_0x413d81),this['showChangesButton']['on']('execute',()=>{const _0x494e4a=!this['showChangesButton']['isOn'];this['showChangesButton']['set']({'isOn':_0x494e4a,'icon':_0x494e4a?IconShowChangesOn:IconShowChangesOff}),this['fire']('toggleShowChanges',_0x494e4a);});}}class AISuggestionHeaderView extends View{['showChangesToggleView'];constructor(_0x2fcd6f,_0x24a254){super(_0x2fcd6f),this['set']('isShowChangesToggleVisible',!0x0),this['showChangesToggleView']=new ShowChangesToggleView(_0x2fcd6f),this['showChangesToggleView']['set']({'class':'ck-ai-suggestion__header__show-changes-toggle','label':getTranslation$i(_0x2fcd6f,'AI_SUGGESTION_BUTTON_SHOW_CHANGES'),'withText':!0x0}),this['showChangesToggleView']['isOn']=_0x24a254['showDiff'],this['showChangesToggleView']['bind']('isVisible')['to'](this,'isShowChangesToggleVisible'),this['showChangesToggleView']['bind']('icon')['to'](this['showChangesToggleView'],'isOn',_0x4332e6=>_0x4332e6?_0x19dfc9:_0x350f3a),this['showChangesToggleView']['on']('execute',()=>{this['showChangesToggleView']['isOn']=!this['showChangesToggleView']['isOn'],this['fire']('toggleShowChanges',{'isOn':this['showChangesToggleView']['isOn']});});const _0x164345=new IconView();_0x164345['content']=IconDocument,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__header',!0x1===_0x24a254['showHeader']?'ck-hidden':null]['filter'](Boolean)},'children':[_0x164345,{'tag':'span','children':[getTranslation$i(_0x2fcd6f,'AI_SUGGESTION_HEADER_TITLE')]},this['showChangesToggleView']]});}}class ShowChangesToggleView extends ButtonView{['render'](){super['render'](),this['children']['remove'](this['iconView']),this['children']['add'](this['iconView']);}}var DOCUMENT_FRAGMENT_NODE=0xb,range;function morphAttrs(_0xcc5a5b,_0x4effb0){var _0x185621,_0x2afdca,_0x31299a,_0x269417,_0x33981b=_0x4effb0['attributes'];if(_0x4effb0['nodeType']!==DOCUMENT_FRAGMENT_NODE&&_0xcc5a5b['nodeType']!==DOCUMENT_FRAGMENT_NODE){for(var _0x4d7753=_0x33981b['length']-0x1;_0x4d7753>=0x0;_0x4d7753--)_0x2afdca=(_0x185621=_0x33981b[_0x4d7753])['name'],_0x31299a=_0x185621['namespaceURI'],_0x269417=_0x185621['value'],_0x31299a?(_0x2afdca=_0x185621['localName']||_0x2afdca,_0xcc5a5b['getAttributeNS'](_0x31299a,_0x2afdca)!==_0x269417&&('xmlns'===_0x185621['prefix']&&(_0x2afdca=_0x185621['name']),_0xcc5a5b['setAttributeNS'](_0x31299a,_0x2afdca,_0x269417))):_0xcc5a5b['getAttribute'](_0x2afdca)!==_0x269417&&_0xcc5a5b['setAttribute'](_0x2afdca,_0x269417);for(var _0x3d0305=_0xcc5a5b['attributes'],_0xa811c4=_0x3d0305['length']-0x1;_0xa811c4>=0x0;_0xa811c4--)_0x2afdca=(_0x185621=_0x3d0305[_0xa811c4])['name'],(_0x31299a=_0x185621['namespaceURI'])?(_0x2afdca=_0x185621['localName']||_0x2afdca,_0x4effb0['hasAttributeNS'](_0x31299a,_0x2afdca)||_0xcc5a5b['removeAttributeNS'](_0x31299a,_0x2afdca)):_0x4effb0['hasAttribute'](_0x2afdca)||_0xcc5a5b['removeAttribute'](_0x2afdca);}}var NS_XHTML='http://www.w3.org/1999/xhtml',doc$1='undefined'==typeof document?void 0x0:document,HAS_TEMPLATE_SUPPORT=!!doc$1&&'content'in doc$1['createElement']('template'),HAS_RANGE_SUPPORT=!!doc$1&&doc$1['createRange']&&'createContextualFragment'in doc$1['createRange']();function createFragmentFromTemplate(_0x367378){var _0x57ae8d=doc$1['createElement']('template');return _0x57ae8d['innerHTML']=_0x367378,_0x57ae8d['content']['childNodes'][0x0];}function createFragmentFromRange(_0x485f06){return range||(range=doc$1['createRange']())['selectNode'](doc$1['body']),range['createContextualFragment'](_0x485f06)['childNodes'][0x0];}function createFragmentFromWrap(_0x37fa21){var _0x130d7c=doc$1['createElement']('body');return _0x130d7c['innerHTML']=_0x37fa21,_0x130d7c['childNodes'][0x0];}function toElement(_0x1358b1){return _0x1358b1=_0x1358b1['trim'](),HAS_TEMPLATE_SUPPORT?createFragmentFromTemplate(_0x1358b1):HAS_RANGE_SUPPORT?createFragmentFromRange(_0x1358b1):createFragmentFromWrap(_0x1358b1);}function compareNodeNames(_0x2fb7b8,_0x3c5982){var _0xf1aa68,_0x117f52,_0x5dbc50=_0x2fb7b8['nodeName'],_0x32451d=_0x3c5982['nodeName'];return _0x5dbc50===_0x32451d||(_0xf1aa68=_0x5dbc50['charCodeAt'](0x0),_0x117f52=_0x32451d['charCodeAt'](0x0),_0xf1aa68<=0x5a&&_0x117f52>=0x61?_0x5dbc50===_0x32451d['toUpperCase']():_0x117f52<=0x5a&&_0xf1aa68>=0x61&&_0x32451d===_0x5dbc50['toUpperCase']());}function createElementNS(_0x23b094,_0x31aafb){return _0x31aafb&&_0x31aafb!==NS_XHTML?doc$1['createElementNS'](_0x31aafb,_0x23b094):doc$1['createElement'](_0x23b094);}function moveChildren(_0x24d6b7,_0x3a4351){for(var _0x1708a9=_0x24d6b7['firstChild'];_0x1708a9;){var _0xed04c8=_0x1708a9['nextSibling'];_0x3a4351['appendChild'](_0x1708a9),_0x1708a9=_0xed04c8;}return _0x3a4351;}function syncBooleanAttrProp(_0x212862,_0x32bc7c,_0x663ab9){_0x212862[_0x663ab9]!==_0x32bc7c[_0x663ab9]&&(_0x212862[_0x663ab9]=_0x32bc7c[_0x663ab9],_0x212862[_0x663ab9]?_0x212862['setAttribute'](_0x663ab9,''):_0x212862['removeAttribute'](_0x663ab9));}var specialElHandlers={'OPTION':function(_0x1745af,_0x244ad4){var _0x411522=_0x1745af['parentNode'];if(_0x411522){var _0x11a333=_0x411522['nodeName']['toUpperCase']();'OPTGROUP'===_0x11a333&&(_0x11a333=(_0x411522=_0x411522['parentNode'])&&_0x411522['nodeName']['toUpperCase']()),'SELECT'!==_0x11a333||_0x411522['hasAttribute']('multiple')||(_0x1745af['hasAttribute']('selected')&&!_0x244ad4['selected']&&(_0x1745af['setAttribute']('selected','selected'),_0x1745af['removeAttribute']('selected')),_0x411522['selectedIndex']=-0x1);}syncBooleanAttrProp(_0x1745af,_0x244ad4,'selected');},'INPUT':function(_0x5d9310,_0x3af92c){syncBooleanAttrProp(_0x5d9310,_0x3af92c,'checked'),syncBooleanAttrProp(_0x5d9310,_0x3af92c,'disabled'),_0x5d9310['value']!==_0x3af92c['value']&&(_0x5d9310['value']=_0x3af92c['value']),_0x3af92c['hasAttribute']('value')||_0x5d9310['removeAttribute']('value');},'TEXTAREA':function(_0x27f258,_0x1f625d){var _0x4868b5=_0x1f625d['value'];_0x27f258['value']!==_0x4868b5&&(_0x27f258['value']=_0x4868b5);var _0x56e86a=_0x27f258['firstChild'];if(_0x56e86a){var _0xdf24fc=_0x56e86a['nodeValue'];if(_0xdf24fc==_0x4868b5||!_0x4868b5&&_0xdf24fc==_0x27f258['placeholder'])return;_0x56e86a['nodeValue']=_0x4868b5;}},'SELECT':function(_0x2f806f,_0x354218){if(!_0x354218['hasAttribute']('multiple')){for(var _0x57ad36,_0xdf6215,_0x53f6e3=-0x1,_0x5c67dc=0x0,_0xb3aeb6=_0x2f806f['firstChild'];_0xb3aeb6;)if('OPTGROUP'===(_0xdf6215=_0xb3aeb6['nodeName']&&_0xb3aeb6['nodeName']['toUpperCase']()))(_0xb3aeb6=(_0x57ad36=_0xb3aeb6)['firstChild'])||(_0xb3aeb6=_0x57ad36['nextSibling'],_0x57ad36=null);else{if('OPTION'===_0xdf6215){if(_0xb3aeb6['hasAttribute']('selected')){_0x53f6e3=_0x5c67dc;break;}_0x5c67dc++;}!(_0xb3aeb6=_0xb3aeb6['nextSibling'])&&_0x57ad36&&(_0xb3aeb6=_0x57ad36['nextSibling'],_0x57ad36=null);}_0x2f806f['selectedIndex']=_0x53f6e3;}}},ELEMENT_NODE=0x1,DOCUMENT_FRAGMENT_NODE$1=0xb,TEXT_NODE=0x3,COMMENT_NODE=0x8;function noop(){}function defaultGetNodeKey(_0x5f0112){if(_0x5f0112)return _0x5f0112['getAttribute']&&_0x5f0112['getAttribute']('id')||_0x5f0112['id'];}function morphdomFactory(_0x1e33a0){return function(_0x2c6ac3,_0x561c20,_0x42c9e3){if(_0x42c9e3||(_0x42c9e3={}),'string'==typeof _0x561c20){if('#document'===_0x2c6ac3['nodeName']||'HTML'===_0x2c6ac3['nodeName']||'BODY'===_0x2c6ac3['nodeName']){var _0x18f323=_0x561c20;(_0x561c20=doc$1['createElement']('html'))['innerHTML']=_0x18f323;}else _0x561c20=toElement(_0x561c20);}else _0x561c20['nodeType']===DOCUMENT_FRAGMENT_NODE$1&&(_0x561c20=_0x561c20['firstElementChild']);var _0x19f05a=_0x42c9e3['getNodeKey']||defaultGetNodeKey,_0x2a1787=_0x42c9e3['onBeforeNodeAdded']||noop,_0x10f3ed=_0x42c9e3['onNodeAdded']||noop,_0x1f8635=_0x42c9e3['onBeforeElUpdated']||noop,_0x353d43=_0x42c9e3['onElUpdated']||noop,_0x442366=_0x42c9e3['onBeforeNodeDiscarded']||noop,_0x56f3a0=_0x42c9e3['onNodeDiscarded']||noop,_0x22369d=_0x42c9e3['onBeforeElChildrenUpdated']||noop,_0x94471f=_0x42c9e3['skipFromChildren']||noop,_0x2cede6=_0x42c9e3['addChild']||function(_0x5b4263,_0x565cb6){return _0x5b4263['appendChild'](_0x565cb6);},_0x51216c=!0x0===_0x42c9e3['childrenOnly'],_0x137a48=Object['create'](null),_0x359252=[];function _0x4bba22(_0x5d3dd5){_0x359252['push'](_0x5d3dd5);}function _0x1c5201(_0x4a3164,_0x60d23d){if(_0x4a3164['nodeType']===ELEMENT_NODE)for(var _0x40d3f4=_0x4a3164['firstChild'];_0x40d3f4;){var _0x7fcf40=void 0x0;_0x60d23d&&(_0x7fcf40=_0x19f05a(_0x40d3f4))?_0x4bba22(_0x7fcf40):(_0x56f3a0(_0x40d3f4),_0x40d3f4['firstChild']&&_0x1c5201(_0x40d3f4,_0x60d23d)),_0x40d3f4=_0x40d3f4['nextSibling'];}}function _0x12ea05(_0x20b960,_0x1b48ec,_0x10c751){!0x1!==_0x442366(_0x20b960)&&(_0x1b48ec&&_0x1b48ec['removeChild'](_0x20b960),_0x56f3a0(_0x20b960),_0x1c5201(_0x20b960,_0x10c751));}function _0xc16c68(_0x134bf9){if(_0x134bf9['nodeType']===ELEMENT_NODE||_0x134bf9['nodeType']===DOCUMENT_FRAGMENT_NODE$1)for(var _0x319ef9=_0x134bf9['firstChild'];_0x319ef9;){var _0x49d49a=_0x19f05a(_0x319ef9);_0x49d49a&&(_0x137a48[_0x49d49a]=_0x319ef9),_0xc16c68(_0x319ef9),_0x319ef9=_0x319ef9['nextSibling'];}}function _0x1fd196(_0x1067cd){_0x10f3ed(_0x1067cd);for(var _0x50d7a3=_0x1067cd['firstChild'];_0x50d7a3;){var _0x2b07b6=_0x50d7a3['nextSibling'],_0x289283=_0x19f05a(_0x50d7a3);if(_0x289283){var _0x498093=_0x137a48[_0x289283];_0x498093&&compareNodeNames(_0x50d7a3,_0x498093)?(_0x50d7a3['parentNode']['replaceChild'](_0x498093,_0x50d7a3),_0x6f0ce4(_0x498093,_0x50d7a3)):_0x1fd196(_0x50d7a3);}else _0x1fd196(_0x50d7a3);_0x50d7a3=_0x2b07b6;}}function _0x6f0ce4(_0xf486df,_0x5f202a,_0x218f2d){var _0x5f854c=_0x19f05a(_0x5f202a);if(_0x5f854c&&delete _0x137a48[_0x5f854c],!_0x218f2d){var _0xa6ef45=_0x1f8635(_0xf486df,_0x5f202a);if(!0x1===_0xa6ef45)return;if(_0xa6ef45 instanceof HTMLElement&&_0xc16c68(_0xf486df=_0xa6ef45),_0x1e33a0(_0xf486df,_0x5f202a),_0x353d43(_0xf486df),!0x1===_0x22369d(_0xf486df,_0x5f202a))return;}'TEXTAREA'!==_0xf486df['nodeName']?function(_0x957a53,_0x35b7e4){var _0x5c670c,_0x57a012,_0x516d94,_0x1e4fa1,_0x3cb2bb,_0x460c73=_0x94471f(_0x957a53,_0x35b7e4),_0x5effdf=_0x35b7e4['firstChild'],_0x1ae3ab=_0x957a53['firstChild'];t:for(;_0x5effdf;){for(_0x1e4fa1=_0x5effdf['nextSibling'],_0x5c670c=_0x19f05a(_0x5effdf);!_0x460c73&&_0x1ae3ab;){if(_0x516d94=_0x1ae3ab['nextSibling'],_0x5effdf['isSameNode']&&_0x5effdf['isSameNode'](_0x1ae3ab)){_0x5effdf=_0x1e4fa1,_0x1ae3ab=_0x516d94;continue t;}_0x57a012=_0x19f05a(_0x1ae3ab);var _0x3d5fd0=_0x1ae3ab['nodeType'],_0x500787=void 0x0;if(_0x3d5fd0===_0x5effdf['nodeType']&&(_0x3d5fd0===ELEMENT_NODE?(_0x5c670c?_0x5c670c!==_0x57a012&&((_0x3cb2bb=_0x137a48[_0x5c670c])?_0x516d94===_0x3cb2bb?_0x500787=!0x1:(_0x957a53['insertBefore'](_0x3cb2bb,_0x1ae3ab),_0x57a012?_0x4bba22(_0x57a012):_0x12ea05(_0x1ae3ab,_0x957a53,!0x0),_0x57a012=_0x19f05a(_0x1ae3ab=_0x3cb2bb)):_0x500787=!0x1):_0x57a012&&(_0x500787=!0x1),(_0x500787=!0x1!==_0x500787&&compareNodeNames(_0x1ae3ab,_0x5effdf))&&_0x6f0ce4(_0x1ae3ab,_0x5effdf)):_0x3d5fd0!==TEXT_NODE&&_0x3d5fd0!=COMMENT_NODE||(_0x500787=!0x0,_0x1ae3ab['nodeValue']!==_0x5effdf['nodeValue']&&(_0x1ae3ab['nodeValue']=_0x5effdf['nodeValue']))),_0x500787){_0x5effdf=_0x1e4fa1,_0x1ae3ab=_0x516d94;continue t;}_0x57a012?_0x4bba22(_0x57a012):_0x12ea05(_0x1ae3ab,_0x957a53,!0x0),_0x1ae3ab=_0x516d94;}if(_0x5c670c&&(_0x3cb2bb=_0x137a48[_0x5c670c])&&compareNodeNames(_0x3cb2bb,_0x5effdf))_0x460c73||_0x2cede6(_0x957a53,_0x3cb2bb),_0x6f0ce4(_0x3cb2bb,_0x5effdf);else{var _0x4e8c16=_0x2a1787(_0x5effdf);!0x1!==_0x4e8c16&&(_0x4e8c16&&(_0x5effdf=_0x4e8c16),_0x5effdf['actualize']&&(_0x5effdf=_0x5effdf['actualize'](_0x957a53['ownerDocument']||doc$1)),_0x2cede6(_0x957a53,_0x5effdf),_0x1fd196(_0x5effdf));}_0x5effdf=_0x1e4fa1,_0x1ae3ab=_0x516d94;}!function(_0x417f5a,_0x5ada23,_0x49a220){for(;_0x5ada23;){var _0xbb2778=_0x5ada23['nextSibling'];(_0x49a220=_0x19f05a(_0x5ada23))?_0x4bba22(_0x49a220):_0x12ea05(_0x5ada23,_0x417f5a,!0x0),_0x5ada23=_0xbb2778;}}(_0x957a53,_0x1ae3ab,_0x57a012);var _0x4f1dd5=specialElHandlers[_0x957a53['nodeName']];_0x4f1dd5&&_0x4f1dd5(_0x957a53,_0x35b7e4);}(_0xf486df,_0x5f202a):specialElHandlers['TEXTAREA'](_0xf486df,_0x5f202a);}_0xc16c68(_0x2c6ac3);var _0x4c9866=_0x2c6ac3,_0x53b541=_0x4c9866['nodeType'],_0x1338f2=_0x561c20['nodeType'];if(!_0x51216c){if(_0x53b541===ELEMENT_NODE)_0x1338f2===ELEMENT_NODE?compareNodeNames(_0x2c6ac3,_0x561c20)||(_0x56f3a0(_0x2c6ac3),_0x4c9866=moveChildren(_0x2c6ac3,createElementNS(_0x561c20['nodeName'],_0x561c20['namespaceURI']))):_0x4c9866=_0x561c20;else{if(_0x53b541===TEXT_NODE||_0x53b541===COMMENT_NODE){if(_0x1338f2===_0x53b541)return _0x4c9866['nodeValue']!==_0x561c20['nodeValue']&&(_0x4c9866['nodeValue']=_0x561c20['nodeValue']),_0x4c9866;_0x4c9866=_0x561c20;}}}if(_0x4c9866===_0x561c20)_0x56f3a0(_0x2c6ac3);else{if(_0x561c20['isSameNode']&&_0x561c20['isSameNode'](_0x4c9866))return;if(_0x6f0ce4(_0x4c9866,_0x561c20,_0x51216c),_0x359252)for(var _0x1dbb7e=0x0,_0x157373=_0x359252['length'];_0x1dbb7e<_0x157373;_0x1dbb7e++){var _0x36396b=_0x137a48[_0x359252[_0x1dbb7e]];_0x36396b&&_0x12ea05(_0x36396b,_0x36396b['parentNode'],!0x1);}}return!_0x51216c&&_0x4c9866!==_0x2c6ac3&&_0x2c6ac3['parentNode']&&(_0x4c9866['actualize']&&(_0x4c9866=_0x4c9866['actualize'](_0x2c6ac3['ownerDocument']||doc$1)),_0x2c6ac3['parentNode']['replaceChild'](_0x4c9866,_0x2c6ac3)),_0x4c9866;};}var morphdom=morphdomFactory(morphAttrs);class HTMLStreamer{['options'];['isStreaming']=!0x1;['document']=null;['nodesList']=[];['currentIndex']=0x0;['timeoutAbortController']=null;constructor(_0x520ef0){this['options']={'delay':_0x520ef0['delay']??0x14,'textNodeStyle':_0x520ef0['textNodeStyle'],'onStreamUpdate':_0x520ef0['onStreamUpdate']||(()=>{})};}async['stream']({document:_0x4a62e3,targetElement:_0xe755d8,abortSignal:_0x4a33be}){this['isStreaming']&&this['stop'](),_0x4a33be?.['addEventListener']('abort',this['stop']['bind'](this)),this['document']=cloneNode(_0x4a62e3,!0x0),this['nodesList']=this['getParsedDocumentNodeList'](),this['isStreaming']=!0x0,this['currentIndex']>this['nodesList']['length']&&(logWarning('ai-html-streamer-current-index-out-of-bounds',{'currentIndex':this['currentIndex'],'nodeList':this['nodesList']}),this['currentIndex']=this['nodesList']['length']);for(let _0x148a20=0x0;_0x148a20<this['currentIndex'];_0x148a20++)this['nodesList'][_0x148a20]['shouldBeStreamed']=!0x0;let _0x132f48=0x0;for(let _0x6abf25=this['currentIndex'];_0x6abf25<this['nodesList']['length'];_0x6abf25++){const _0x4f6ef2=Date['now'](),_0x4473a4=this['nodesList'][_0x6abf25],_0xa03853=_0x4f6ef2-_0x132f48;_0x4473a4['shouldBeStreamed']=!0x0;let _0x2782a4=_0x4473a4['parent'];for(;_0x2782a4;)_0x2782a4['shouldBeStreamed']=!0x0,_0x2782a4=_0x2782a4['parent'];if(_0xa03853<this['options']['delay'])try{const {promise:_0x39867f,abortController:_0x309c63}=createAbortableTimeout(this['options']['delay']-_0xa03853);this['timeoutAbortController']=_0x309c63,await _0x39867f;}catch(_0x4e75ce){return;}morphdom(_0xe755d8,'<'+_0xe755d8['tagName']+'>'+this['renderNode'](this['document'])+'</'+_0xe755d8['tagName']+'>',{'childrenOnly':!0x0}),this['options']['onStreamUpdate']&&this['options']['onStreamUpdate'](),this['currentIndex']=_0x6abf25,_0x132f48=Date['now']();}this['isStreaming']=!0x1;}['cleanUpAnimations']({targetElement:_0x18320f}){Array['from'](_0x18320f['querySelectorAll']('span[data-ck-html-streamer-word-chunk]'))['reverse']()['forEach'](_0x2fb1c2=>{_0x2fb1c2['replaceWith'](_0x2fb1c2['childNodes'][0x0]);});}['stop'](){this['isStreaming']=!0x1,this['timeoutAbortController']&&(this['timeoutAbortController']['abort'](),this['timeoutAbortController']=null);}['renderNode'](_0x7cb9f2){let _0x1e612c='';if(isParsedDocumentNode(_0x7cb9f2)){for(const _0xe7b660 of _0x7cb9f2['children'])_0x1e612c+=this['renderNode'](_0xe7b660);}else{if(isParsedElementNode(_0x7cb9f2)){if(!_0x7cb9f2['shouldBeStreamed'])return'';const _0xf10ce8=_0x7cb9f2,_0x5534a6=Object['entries'](_0xf10ce8['attribs'])['map'](([_0x23c1c4,_0x12c212])=>_0x23c1c4+'=\x22'+_0x12c212+'\x22')['join']('\x20');_0x1e612c+='<'+_0xf10ce8['tagName']+(_0x5534a6?'\x20'+_0x5534a6:'')+'>';for(const _0x864a3b of getChildren$1(_0xf10ce8))_0x1e612c+=this['renderNode'](_0x864a3b);_0x1e612c+='</'+_0xf10ce8['tagName']+'>';}else{if(!isParsedTextNode(_0x7cb9f2))return'';if(!_0x7cb9f2['shouldBeStreamed'])return'';canBecomeWordChunkSpan(_0x7cb9f2)?_0x1e612c+=render(new Element$3('span',{'data-ck-html-streamer-word-chunk':'','style':this['options']['textNodeStyle']},[_0x7cb9f2])):_0x1e612c+=render(_0x7cb9f2);}}return _0x1e612c;}['getParsedDocumentNodeList'](){const _0x4e89d2=[];return traverseParsedDocument(this['document'],_0x26f06f=>{if(isParsedTextNode(_0x26f06f)){const _0x3984c4=this['splitTextNodeIntoWordNodes'](_0x26f06f);_0x3984c4['length']&&_0x4e89d2['push'](..._0x3984c4);}_0x26f06f['isWordSplitSource']||_0x26f06f['isWordSplitResult']||_0x4e89d2['push'](_0x26f06f);}),_0x4e89d2;}['splitTextNodeIntoWordNodes'](_0x1de78d){if(_0x1de78d['isWordSplitSource']||_0x1de78d['isWordSplitResult'])return[];const _0x31a5e1=textContent(_0x1de78d)['match'](/(?:\s*\S+\s*)/g),_0x3678f6=[];if(_0x31a5e1&&_0x31a5e1['length']>0x1){for(const _0x4ccca4 of _0x31a5e1){const _0x70649b=new Text$1(_0x4ccca4);_0x70649b['isWordSplitResult']=!0x0,prepend(_0x1de78d,_0x70649b),_0x3678f6['push'](_0x70649b);}_0x1de78d['isWordSplitSource']=!0x0,removeElement(_0x1de78d);}return _0x3678f6;}}const ELEMENTS_THAT_ALLOW_SPANS=['p','li','td','th','span','h1','h2','h3','h4','h5','h6','b','strong','i','em','mark','del','ins','sup','sub','a','code','div'];function traverseParsedDocument(_0xdd406c,_0x43ce76){const _0xc57992=_0x20ecd6=>{if(_0x43ce76(_0x20ecd6),_0x20ecd6 instanceof NodeWithChildren)for(let _0x103890=0x0;_0x103890<_0x20ecd6['children']['length'];_0x103890++){const _0x580e5c=_0x20ecd6['children'][_0x103890];_0xc57992(_0x580e5c);}};for(let _0x5ea14a=0x0;_0x5ea14a<_0xdd406c['children']['length'];_0x5ea14a++)_0xc57992(_0xdd406c['children'][_0x5ea14a]);}function canBecomeWordChunkSpan(_0x5c0f1f){return!(!_0x5c0f1f['parent']||!isParsedElementNode(_0x5c0f1f['parent']))&&(!!ELEMENTS_THAT_ALLOW_SPANS['includes'](_0x5c0f1f['parent']['tagName'])&&!textContent(_0x5c0f1f)['match'](/^\s*[<>]\s*$/));}function isParsedTextNode(_0x4a44e7){return isText$1(_0x4a44e7);}function isParsedElementNode(_0x5dd172){return isTag(_0x5dd172);}function isParsedDocumentNode(_0x366077){return isDocument(_0x366077);}function createAbortableTimeout(_0x565985){const _0x3a262d=new AbortController();return{'promise':new Promise((_0x19edad,_0x292ac7)=>{const _0x3c6ca6=setTimeout(_0x19edad,_0x565985);_0x3a262d['signal']['addEventListener']('abort',()=>{clearTimeout(_0x3c6ca6),_0x292ac7();});}),'abortController':_0x3a262d};}const AI_SUGGESTION_UI_EVENT_NAMES=['showChangeInText','insertSuggestion','applySuggestion','rejectSuggestion','mouseOverSuggestion','mouseLeaveSuggestion','toggleSuggestionDisplayMode','like','dislike'];class AISuggestionBodyViewContentPartView extends View{['htmlStreamer'];['children'];['headerView'];['contentView'];constructor(_0x49cae9,{part:_0x437df3,areActionsDisabled:_0x2ba59d}){super(_0x49cae9),this['set']('partDefinition',_0x437df3),this['set']('state','pending'),this['set']('isVisible',!0x1),this['bind']('isEnabled')['to'](this,'state',_0x2fb199=>'pending'==_0x2fb199&&!_0x2ba59d),this['children']=this['createCollection'](),this['htmlStreamer']=new HTMLStreamer({'textNodeStyle':'animation:\x20ck-html-streamer-fade-in\x20.5s','delay':0x14}),this['headerView']=new AISuggestionBodyViewContentPartHeaderView(_0x49cae9,_0x437df3),this['headerView']['bind']('partDefinition')['to'](this),this['headerView']['bind']('isEnabled')['to'](this),this['headerView']['bind']('state')['to'](this),this['headerView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this);const _0x4a0026=this['bindTemplate'];this['contentView']=new View(),this['contentView']['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content','ck-reset_all-excluded','ck-ai-suggestion__body__content-part__content']}}),this['children']['addMany']([this['contentView']]),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__body__content-part',_0x4a0026['to']('state',_0x5bb451=>'ck-ai-suggestion__body__content-part_'+_0x5bb451),_0x4a0026['to']('isEnabled',_0x54d59d=>_0x54d59d?'ck-ai-suggestion__body__content-part_active':void 0x0),_0x4a0026['if']('isVisible','ck-hidden',_0x58865a=>!_0x58865a)]},'children':this['children'],'on':{'mouseenter':_0x4a0026['to'](()=>{this['isEnabled']&&this['fire']('mouseOverSuggestion',{'index':_0x437df3['index']});}),'mouseleave':_0x4a0026['to'](()=>{this['isEnabled']&&this['fire']('mouseLeaveSuggestion',{'index':_0x437df3['index']});})}});}async['updateContent']({part:_0x5d7b37,renderingStrategy:_0x44acb4,showUnchangedParts:_0x2f9a00=!0x1,abortSignal:_0x3c30c0}){this['partDefinition']=_0x5d7b37,this['isVisible']=this['partDefinition']['hasChanges']||_0x2f9a00,this['isVisible']&&('streaming'===_0x44acb4?await this['htmlStreamer']['stream']({'document':this['partDefinition']['content'],'targetElement':this['contentView']['element'],'abortSignal':_0x3c30c0}):this['contentView']['element']['innerHTML']=serialize(this['partDefinition']['content']));}['toggleHeader'](_0x1dd74d){_0x1dd74d?this['children']['has'](this['headerView'])||this['children']['add'](this['headerView'],0x0):this['children']['has'](this['headerView'])&&this['children']['remove'](this['headerView']);}}class AISuggestionBodyViewContentPartHeaderView extends View{['children'];['_toolbarView'];['_iconStateAccepted'];['_iconStateRejected'];['_iconStateOutdated'];constructor(_0x2a100,_0x3663ad){super(_0x2a100),this['set']('partDefinition',_0x3663ad),this['set']('isEnabled',!0x0),this['set']('state','pending');const _0x595417=new IconView();_0x595417['content']=IconThreeStars,_0x595417['extendTemplate']({'attributes':{'class':['ck-ai-suggestion__body__content-part__icon-title']}});const _0x46b9e6=new ButtonView(_0x2a100);_0x46b9e6['set']({'label':getTranslation$i(_0x2a100,'AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT'),'tooltip':!0x0,'withText':!0x1,'icon':IconDocumentWithLoupe}),_0x46b9e6['bind']('isEnabled')['to'](this),_0x46b9e6['on']('execute',()=>{this['fire']('showChangeInText',{'index':_0x3663ad['index']});});const _0x35c8c3=new ButtonView(_0x2a100);_0x35c8c3['set']({'label':getTranslation$i(_0x2a100,'AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION'),'tooltip':!0x0,'withText':!0x1,'icon':IconAddComment}),_0x35c8c3['bind']('isEnabled')['to'](this),_0x35c8c3['on']('execute',()=>{this['fire']('insertSuggestion',{'index':_0x3663ad['index']});});const _0x538bb0=new ButtonView(_0x2a100);_0x538bb0['set']({'label':getTranslation$i(_0x2a100,'AI_SUGGESTION_CONTENT_PART_DELETE'),'tooltip':!0x0,'withText':!0x1,'icon':IconRemove}),_0x538bb0['on']('execute',()=>{this['fire']('rejectSuggestion',{'index':_0x3663ad['index']});}),_0x538bb0['bind']('isEnabled')['to'](this),this['_toolbarView']=new ToolbarView(_0x2a100),this['_toolbarView']['items']['addMany']([_0x46b9e6,_0x35c8c3,_0x538bb0]),this['_iconStateAccepted']=new IconView(),this['_iconStateAccepted']['content']=IconDocumentWithCheckmark,this['_iconStateAccepted']['extendTemplate']({'attributes':{'class':['ck-ai-suggestion__body__content-part__icon-accepted'],'data-cke-tooltip-text':getTranslation$i(_0x2a100,'AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED'),'data-cke-tooltip-position':'n'}}),this['_iconStateRejected']=new IconView(),this['_iconStateRejected']['content']=IconDocumentWithCross,this['_iconStateRejected']['extendTemplate']({'attributes':{'class':['ck-ai-suggestion__body__content-part__icon-rejected'],'data-cke-tooltip-text':getTranslation$i(_0x2a100,'AI_SUGGESTION_CONTENT_PART_REJECTED'),'data-cke-tooltip-position':'n'}}),this['_iconStateOutdated']=new IconView(),this['_iconStateOutdated']['content']=IconDocumentWithCross,this['_iconStateOutdated']['extendTemplate']({'attributes':{'class':['ck-ai-suggestion__body__content-part__icon-outdated'],'data-cke-tooltip-text':getTranslation$i(_0x2a100,'AI_SUGGESTION_CONTENT_PART_OUTDATED'),'data-cke-tooltip-position':'n'}});const _0x4e8fe4=new View(_0x2a100);_0x4e8fe4['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__body__content-part__title__label']},'children':[getTranslation$i(_0x2a100,'AI_SUGGESTION_CONTENT_PART_TITLE',(_0x3663ad['index']+0x1)['toString']())]}),this['children']=this['createCollection'](),this['children']['addMany']([_0x595417,_0x4e8fe4,this['_toolbarView']]),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-ai-suggestion__body__content-part__title']},'children':this['children']}),this['on']('change:state',(_0x4bbead,_0x544bbd,_0x333c87,_0x27dbce)=>{switch(_0x27dbce){case'pending':this['children']['remove'](this['_toolbarView']);break;case'accepted':this['children']['remove'](this['_iconStateAccepted']);break;case'rejected':this['children']['remove'](this['_iconStateRejected']);break;case'outdated':this['children']['remove'](this['_iconStateOutdated']);}switch(_0x333c87){case'pending':this['children']['add'](this['_toolbarView']);break;case'accepted':this['children']['add'](this['_iconStateAccepted']);break;case'rejected':this['children']['add'](this['_iconStateRejected']);break;case'outdated':this['children']['add'](this['_iconStateOutdated']);}});}}class PromiseQueue extends EmitterMixin(){['queue']=[];['isProcessing']=!0x1;['_abortController'];async['enqueue'](_0x48a824){const _0x1e7101=this['createTask'](_0x48a824);return this['queue']['push'](_0x1e7101),this['_processQueue'](),_0x1e7101['completePromise'];}['abort'](){this['isProcessing']&&(this['_abortController']['abort'](),this['_abortController']=void 0x0,this['queue']=[],this['fire']('_queueEmpty'),this['isProcessing']=!0x1);}get['queueEmptyPromise'](){return this['queue']['length']||this['isProcessing']?new Promise(_0x504ac7=>{this['once']('_queueEmpty',()=>{_0x504ac7();});}):Promise['resolve']();}async['_processQueue'](){if(!this['isProcessing']){this['_abortController']=new AbortController(),this['isProcessing']=!0x0;try{for(;this['queue']['length']&&this['isProcessing'];){const _0x6440=this['queue']['shift']();try{await _0x6440['callback'](this['_abortController']['signal']),_0x6440['resolve']();}catch(_0xa5b512){_0x6440['reject'](_0xa5b512);}}}finally{this['isProcessing']=!0x1,this['_abortController']=void 0x0;}this['fire']('_queueEmpty');}}['createTask'](_0x1ad6ed){let _0x39be6b,_0xb4b6f5;const _0x2b9d0e=new Promise((_0x2621e5,_0x3b3408)=>{_0x39be6b=_0x2621e5,_0xb4b6f5=_0x3b3408;});return{'callback':_0x1ad6ed,'resolve':_0x39be6b,'reject':_0xb4b6f5,'completePromise':_0x2b9d0e};}}class AIChatFeedItemView extends View{['options'];['content']='';['htmlStreamer'];['children'];constructor(_0x106023){super();const _0x254d4e=this['bindTemplate'];this['set']('isDone',!0x1),this['set']('isVisible',!0x0),this['htmlStreamer']=new HTMLStreamer({'textNodeStyle':'animation:\x20ck-html-streamer-fade-in\x20.5s','delay':0x14}),this['options']=_0x106023,this['children']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__item',_0x254d4e['if']('isDone','ck-ai-chat__feed__item_done'),_0x254d4e['if']('isVisible','ck-hidden',_0x59bb47=>!_0x59bb47),'ck-ai-chat__feed__text-item'],'data-cke-ai-id':this['options']['id']},'children':this['children']});}['markAsDone'](){this['htmlStreamer']['cleanUpAnimations']({'targetElement':this['element']}),this['element']['querySelectorAll']('[data-id]')['forEach'](_0x544001=>{_0x544001['removeAttribute']('data-id');}),this['isDone']=!0x0;}async['streamIntoElement'](_0x3a9238,_0x913f31,_0x1e1169){await this['htmlStreamer']['stream']({'document':_0x3a9238,'targetElement':_0x913f31,'abortSignal':_0x1e1169});}}class AIChatFeedErrorItemView extends AIChatFeedItemView{constructor(_0x2fd839){super(_0x2fd839),this['extendTemplate']({'attributes':{'class':['ck-ai-chat-error','warning'===_0x2fd839['level']?'ck-ai-chat-error_warning':'']}});}['render'](){super['render'](),this['setContent'](this['options']['initialContent']),this['markAsDone']();}['setContent'](_0x59272e){this['element']['innerHTML']=_0x59272e;}}class AISuggestionBodyView extends View{['_children'];['_areActionsDisabled'];['_showUnchangedParts'];['_updateContentPartsPromiseQueue'];['_emptyPartsWarningView'];constructor(_0x294114,{areActionsDisabled:_0x21a90e,showUnchangedParts:_0x5dfaf9}){super(_0x294114),this['_areActionsDisabled']=_0x21a90e,this['_showUnchangedParts']=_0x5dfaf9,this['set']('hasPendingParts',!0x1),this['_children']=this['createCollection'](),this['_updateContentPartsPromiseQueue']=new PromiseQueue(),this['_emptyPartsWarningView']=new AIChatFeedErrorItemView({'id':'empty-parts-warning','initialContent':getTranslation$i(_0x294114,'AI_SUGGESTION_EMPTY_PART_WARNING'),'level':'warning'}),this['_emptyPartsWarningView']['isVisible']=!0x1,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__body']},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__body__content-parts']},'children':this['_children']},this['_emptyPartsWarningView']]});}get['partsCount'](){return this['_children']['length'];}async['updateContentParts']({parts:_0x705129,renderingStrategy:_0x41d429,abortSignal:_0x5b2978}){for(const _0x494913 of _0x705129)this['_updateContentPartsPromiseQueue']['enqueue'](async _0x11559d=>{let _0x26b41e=this['_children']['find'](_0x2f782f=>_0x2f782f['partDefinition']['index']==_0x494913['index']);_0x26b41e||(_0x26b41e=new AISuggestionBodyViewContentPartView(this['locale'],{'part':_0x494913,'areActionsDisabled':this['_areActionsDisabled']}),_0x26b41e['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['_children']['add'](_0x26b41e),this['hasPendingParts']=!0x0),0x2===this['_children']['length']&&this['_children']['first']['toggleHeader'](!0x0),_0x26b41e['toggleHeader'](this['_children']['length']>0x1),await _0x26b41e['updateContent']({'part':_0x494913,'renderingStrategy':_0x41d429,'showUnchangedParts':this['_showUnchangedParts'],'abortSignal':_0x11559d});});return _0x5b2978?.['addEventListener']('abort',()=>{this['_updateContentPartsPromiseQueue']['abort']();}),this['_updateContentPartsPromiseQueue']['queueEmptyPromise'];}['updatePartState'](_0x4e03b2,_0x210dd4){this['_children']['get'](_0x4e03b2)['state']=_0x210dd4,this['hasPendingParts']='pending'==_0x210dd4||Array['from'](this['_children'])['some'](_0xd052cd=>'pending'==_0xd052cd['state']);}['getPartView'](_0x3d2f92){return this['_children']['get'](_0x3d2f92);}['markAsDone'](){if(!this['_showUnchangedParts']){const _0xd0d118=!this['_children']['find'](_0x49e8e0=>_0x49e8e0['partDefinition']['hasChanges']),_0x3ad53e=!!this['_children']['find'](_0x4255c1=>!_0x4255c1['partDefinition']['hasChanges']);this['_emptyPartsWarningView']['isVisible']=0x0==this['_children']['length']||_0x3ad53e,_0xd0d118?this['_emptyPartsWarningView']['setContent'](getTranslation$i(this['locale'],'AI_SUGGESTION_NO_PARTS_WARNING')):this['_emptyPartsWarningView']['setContent'](getTranslation$i(this['locale'],'AI_SUGGESTION_EMPTY_PART_WARNING'));}}get['hasNonEmptyParts'](){return!!this['_children']['find'](_0x245303=>_0x245303['partDefinition']['hasChanges']);}}class AISpinnerView extends SpinnerView{constructor(_0x531c14=void 0x0){super();const _0x1bdd59=_0x531c14?'ck-ai-spinner_'+_0x531c14:'';this['extendTemplate']({'tag':'span','attributes':{'class':['ck-ai-spinner',_0x1bdd59]}});}}class AISuggestionContainerView extends View{['bodyView'];['miniToolbarView'];['children'];['headerView'];['loaderView'];['errorView'];['sourcesView'];constructor(_0x28533d,{showDiff:_0x268df8,areActionsDisabled:_0x46a8fa,miniToolbarConfig:_0x4313a2,hideHeader:_0x27800e,showLoader:_0x4620f5,showUnchangedParts:_0x821450}){super(_0x28533d),this['set']('areChangesVisible',!0x1),this['set']('isLoaderVisible',!!_0x4620f5),this['set']('isErrorVisible',!0x1),this['set']('isLoading',!0x1),this['children']=this['createCollection'](),_0x27800e||(this['headerView']=new AISuggestionHeaderView(_0x28533d,{'showDiff':_0x268df8}),this['headerView']['on']('toggleShowChanges',(_0x3b41b4,_0x36de37)=>{this['areChangesVisible']=_0x36de37['isOn'],this['fire']('toggleSuggestionDisplayMode',{'showDiff':_0x36de37['isOn']});}),this['children']['add'](this['headerView'])),this['bodyView']=new AISuggestionBodyView(_0x28533d,{'areActionsDisabled':_0x46a8fa,'showUnchangedParts':!!_0x821450}),this['bodyView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['bodyView']['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoaderVisible','ck-hidden'),this['bindTemplate']['if']('isErrorVisible','ck-hidden')]}}),this['miniToolbarView']=new AIMiniToolbarView(_0x28533d,_0x4313a2,_0x268df8),this['miniToolbarView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['miniToolbarView']['on']('toggleShowChanges',(_0x2412f5,_0x7c7e14)=>{this['areChangesVisible']=_0x7c7e14,this['fire']('toggleSuggestionDisplayMode',{'showDiff':_0x7c7e14});}),this['miniToolbarView']['bind']('isLoading')['to'](this),this['children']['add'](this['bodyView']),this['children']['add'](this['miniToolbarView']),this['sourcesView']=new AIWebSourcesView(this['locale']),this['children']['add'](this['sourcesView']),_0x4620f5&&(this['loaderView']=this['_createLoaderView'](),this['children']['add'](this['loaderView'])),this['errorView']=this['_createErrorView'](),this['children']['add'](this['errorView']),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__container','ck-rounded-corners']},'children':this['children']});}async['updateContent'](_0xf8bab5){await this['bodyView']['updateContentParts'](_0xf8bab5);}['updateSources'](_0x3c74bf){this['sourcesView']['children']['addMany'](_0x3c74bf['map'](_0x1ea94f=>new AIWebSourceView(this['locale'],_0x1ea94f))),this['sourcesView']['isVisible']=!0x0;}['showLoader'](){this['loaderView']&&(this['isLoaderVisible']=!0x0);}['hideLoader'](){this['loaderView']&&(this['isLoaderVisible']=!0x1);}['showError'](_0x3a505f){if(this['errorView']){const _0x1f0e41=this['errorView']['element']?.['querySelector']('.ck-ai-suggestion__error-text');_0x1f0e41&&(_0x1f0e41['textContent']=_0x3a505f),this['isErrorVisible']=!0x0;}}['hideError'](){this['errorView']&&(this['isErrorVisible']=!0x1);}['markAsDone'](){this['bodyView']['markAsDone'](),this['headerView']&&(this['headerView']['isShowChangesToggleVisible']=this['bodyView']['hasNonEmptyParts']);}['setLoading'](){this['isLoading']=!0x0;}['clearLoading'](){this['isLoading']=!0x1;}['setErrorState'](){this['miniToolbarView']&&(this['miniToolbarView']['isLoading']=!0x0),this['headerView']?.['showChangesToggleView']&&(this['headerView']['showChangesToggleView']['isEnabled']=!0x1);}['clearErrorState'](){this['miniToolbarView']&&(this['miniToolbarView']['isLoading']=!0x1),this['headerView']?.['showChangesToggleView']&&(this['headerView']['showChangesToggleView']['isEnabled']=!0x0);}['addNavigationItem'](_0x58168a){this['miniToolbarView']['items']['add'](_0x58168a);}['removeNavigationItem'](_0x101554){this['miniToolbarView']['items']['remove'](_0x101554);}['_createLoaderView'](){const _0x36e99d=new View(this['locale']),_0xbbafeb=new AISpinnerView('small');_0xbbafeb['isVisible']=!0x0;const _0x5b7243=new View(this['locale']);return _0x5b7243['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__loader-text']},'children':[getTranslation$i(this['locale'],'AI_CHAT_IS_WRITING')]}),_0x36e99d['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__loader',this['bindTemplate']['if']('isLoaderVisible','ck-hidden',_0x332a9e=>!_0x332a9e)]},'children':[_0xbbafeb,_0x5b7243]}),_0x36e99d;}['_createErrorView'](){const _0x4f8f5e=new View(this['locale']),_0x27d14d=new View(this['locale']);return _0x27d14d['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__error-text']},'children':[getTranslation$i(this['locale'],'AI_CHAT_GENERIC_ERROR')]}),_0x4f8f5e['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__error',this['bindTemplate']['if']('isErrorVisible','ck-hidden',_0x1ac384=>!_0x1ac384)]},'children':[_0x27d14d]}),_0x4f8f5e;}}class AIWebSourcesView extends View{['children'];constructor(_0xc13846){super(_0xc13846),this['children']=this['createCollection'](),this['set']('isVisible',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-sources',this['bindTemplate']['if']('isVisible','ck-hidden',_0x29fd57=>!_0x29fd57)]},'children':this['children']});const _0x1f185d=new View(this['locale']),_0x26a634=new IconView();_0x26a634['content']=IconWeb,_0x1f185d['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-sources__header']},'children':[_0x26a634,{'tag':'span','children':[{'text':getTranslation$i(this['locale'],'AI_CHAT_SOURCES_HEADER')}]}]}),this['children']['add'](_0x1f185d);}}class AIWebSourceView extends ButtonView{constructor(_0x4f7850,_0xa3d74d){super(_0x4f7850),this['set']({'label':_0xa3d74d['title'],'tooltip':_0xa3d74d['title'],'class':['ck\x20ck-ai-web-source'],'withText':!0x0});const _0x2c301b=this['bindTemplate'];if(this['extendTemplate']({'on':{'click':_0x2c301b['to'](()=>{window['open'](_0xa3d74d['url'],'_blank');})}}),_0xa3d74d['favicon']){const _0x1c8f84=new View(_0x4f7850);_0x1c8f84['setTemplate']({'tag':'img','attributes':{'src':_0xa3d74d['favicon']||IconWeb,'alt':_0xa3d74d['title'],'class':['ck-ai-web-source__image']}}),this['children']['add'](_0x1c8f84);}else this['set']('icon',IconWeb);}}class AIBalloonToolbarView extends ToolbarView{constructor(_0x9c5603,_0x5fadb3=!0x0,_0x135f17=!0x0){super(_0x9c5603),this['set']('isLoading',!0x1),_0x5fadb3&&(this['applyButton']=this['_createButton'](getTranslation$i(_0x9c5603,'AI_BALLOON_APPLY_BUTTON'),'ck-ai-button-primary'),this['applyButton']['bind']('isEnabled')['to'](this,'isLoading',_0x42f1d1=>!_0x42f1d1),this['items']['add'](this['applyButton'])),_0x135f17&&(this['suggestButton']=this['_createButton'](getTranslation$i(_0x9c5603,'AI_BALLOON_SUGGEST_BUTTON'),_0x5fadb3?'ck-ai-button-secondary':'ck-ai-button-primary'),this['suggestButton']['bind']('isEnabled')['to'](this,'isLoading',_0x2b2675=>!_0x2b2675),this['items']['add'](this['suggestButton'])),this['extendTemplate']({'attributes':{'class':['ck-ai-balloon__toolbar']}});}['_createButton'](_0x132d22,_0x4a25bd){const _0x4fad38=new ButtonView(this['locale']);return _0x4fad38['set']({'label':_0x132d22,'class':_0x4a25bd||'','isVisible':!0x0,'withText':!0x0}),_0x4fad38;}}class AIBalloonDisclaimerView extends View{constructor(_0x34d379){super(_0x34d379),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-balloon__disclaimer']},'children':[{'tag':'p','attributes':{'class':['ck','ck-ai-balloon__disclaimer-content']},'children':[{'text':getTranslation$i(_0x34d379,'AI_DISCLAIMER_TEXT')}]}]});}}const AI_BALLOON_VIEW_EVENT_NAMES=['applySuggestion','insertSuggestion','showNext','showPrevious'];class AIBalloonView extends View{['focusTracker'];['keystrokes'];['focusCycler'];['_dropdownConfig'];['_focusables'];constructor(_0x1636e5,_0x4abeec,_0x102de9,_0x54ac64){super(_0x1636e5),this['_dropdownConfig']=_0x102de9,this['set']('isLoading',!0x1),this['set']('isTrackChangesOn',_0x54ac64),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['_focusables']=this['createCollection'](),this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['_dialogContent']=new ViewCollection(),this['_addContentView'](_0x4abeec['mainView']),this['_addDisclaimerView'](),this['_addToolbar'](_0x4abeec['showApplyButton'],_0x4abeec['showSuggestButton']),this['toolbar']['bind']('isLoading')['to'](this),this['_focusables']['clear'](),this['_focusables']['addMany']([this['toolbar']]),this['setTemplate']({'tag':'div','attributes':{'class':'ai-balloon-content'},'children':this['_dialogContent']}),this['listenTo'](this,'change:isTrackChangesOn',()=>{this['_dialogContent']['remove'](this['toolbar']),this['_addToolbar'](_0x4abeec['showApplyButton'],_0x4abeec['showSuggestButton']);});}['render'](){super['render']();for(const _0x25c685 of this['_focusables'])this['focusTracker']['add'](_0x25c685['element']);this['keystrokes']['listenTo'](this['element']);}['focus'](_0x3382e8){-0x1===_0x3382e8?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['setLoading'](){this['isLoading']=!0x0;}['clearLoading'](){this['isLoading']=!0x1;}['setupRotator'](_0x43f48e){const _0x59b084=this['_createNextButtonView'](),_0x434e2e=this['_createPreviousButtonView']();_0x43f48e['view']['headerView']['children']['add'](_0x59b084,0x2),_0x43f48e['view']['headerView']['children']['add'](_0x434e2e,0x0),this['_focusables']['addMany']([_0x59b084,_0x434e2e]),this['focusTracker']['add'](_0x59b084['element']),this['focusTracker']['add'](_0x434e2e['element']);}['_addContentView'](_0xe7d3e9){this['_mainView']=_0xe7d3e9,this['_dialogContent']['add'](this['_mainView']);}['_addDisclaimerView'](){this['disclaimerView']=new AIBalloonDisclaimerView(this['locale']),this['_dialogContent']['add'](this['disclaimerView']);}['_addToolbar'](_0x490eb0=!0x0,_0x5abb11=!0x0){_0x490eb0=_0x490eb0&&!this['isTrackChangesOn']&&this['_dropdownConfig']['includes']('applySuggestion'),_0x5abb11=_0x5abb11&&this['_dropdownConfig']['includes']('insertSuggestion'),this['toolbar']=new AIBalloonToolbarView(this['locale'],_0x490eb0,_0x5abb11),this['toolbar']['applyButton']?.['on']('execute',()=>{this['fire']('applySuggestion');}),this['toolbar']['suggestButton']?.['on']('execute',()=>{this['fire']('insertSuggestion');}),this['_dialogContent']['add'](this['toolbar']);}['_createNextButtonView'](){const _0x4be814=new ButtonView(this['locale']);return _0x4be814['set']({'icon':IconNextArrow,'tooltip':getTranslation$i(this['locale'],'AI_BALLOON_NEXT_TOOLTIP')}),_0x4be814['on']('execute',()=>{this['fire']('showNext');}),_0x4be814;}['_createPreviousButtonView'](){const _0x3c3f85=new ButtonView(this['locale']);return _0x3c3f85['set']({'icon':IconPreviousArrow,'tooltip':getTranslation$i(this['locale'],'AI_BALLOON_PREVIOUS_TOOLTIP')}),_0x3c3f85['on']('execute',()=>{this['fire']('showPrevious');}),_0x3c3f85;}}const ACTIONS=['applySuggestion','insertSuggestion','showChangeInText'];class AIChatFeedSuggestionItemActionsView extends View{['actionsButton'];['children'];['applySuggestionModel'];['showChangeInTextModel'];['insertSuggestionModel'];['_partsCount']=0x1;['_dropdownOriginalConfig'];['_dropdownCurrentConfig'];['_firstRender']=!0x0;constructor(_0x4b5377,_0x396117){super(_0x4b5377),this['_dropdownOriginalConfig']=_0x396117||[...ACTIONS],this['_dropdownCurrentConfig']=[...this['_dropdownOriginalConfig']];const _0x333875=this['bindTemplate'];this['set']('isEnabled',!0x0),this['set']('isVisible',!0x0),this['applySuggestionModel']=new UIModel({'label':getLabelForAction('applySuggestion',_0x4b5377,this['_partsCount']),'icon':IconCheck,'withText':!0x0,'type':'button','actionName':'applySuggestion'}),this['showChangeInTextModel']=new UIModel({'label':getLabelForAction('showChangeInText',_0x4b5377,this['_partsCount']),'icon':IconDocumentWithLoupe,'withText':!0x0,'type':'button','actionName':'showChangeInText'}),this['insertSuggestionModel']=new UIModel({'label':getLabelForAction('insertSuggestion',_0x4b5377,this['_partsCount']),'icon':IconAddComment,'withText':!0x0,'type':'button','actionName':'insertSuggestion'}),this['actionsButton']=this['_createActionsDropdownOrButton'](_0x4b5377),this['children']=this['createCollection']([this['actionsButton']]),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__ai-suggestion__actions',_0x333875['if']('isVisible','ck-hidden',_0x59e7a7=>!_0x59e7a7)]},'children':this['children']}),this['listenTo'](this,'change:isTrackChangesOn',()=>{this['_dropdownCurrentConfig']=this['isTrackChangesOn']?this['_dropdownOriginalConfig']['filter'](_0x25d91d=>'applySuggestion'!==_0x25d91d):[...this['_dropdownOriginalConfig']],this['_updateDropdownActions'](_0x4b5377);});}['_updateDropdownActions'](_0x463c10){this['children']['has'](this['actionsButton'])&&(this['children']['remove'](this['actionsButton']),this['actionsButton']['destroy']()),0x0!=this['_dropdownCurrentConfig']['length']&&(this['actionsButton']=this['_createActionsDropdownOrButton'](_0x463c10),this['children']['add'](this['actionsButton']));}['_createActionsDropdownOrButton'](_0x2363f6){const _0x2c435f=0x1===this['_dropdownCurrentConfig']['length']?this['_createActionsButton'](_0x2363f6):this['_createActionsDropdown'](_0x2363f6),_0x1b5d6f=this['_firstRender']?'':'ck-ai-chat__feed__ai-suggestion__actions--no-animation';_0x2c435f['set']({'label':getLabelForAction(this['_dropdownCurrentConfig'][0x0],_0x2363f6,this['_partsCount']),'tooltip':getTooltipForAction(this['_dropdownCurrentConfig'][0x0],_0x2363f6,this['_partsCount']),'withText':!0x0,'class':'ck-ai-chat__feed__ai-suggestion__actions\x20'+_0x1b5d6f});for(const _0x31a55d of this['_dropdownCurrentConfig'])_0x2c435f['on'](_0x31a55d,()=>{this['fire'](_0x31a55d);});return this['_firstRender']=!0x1,_0x2c435f;}['_createActionsButton'](_0x30f283){const _0x1c3f51=new ButtonView(_0x30f283);return _0x1c3f51['set']({'class':'ck-ai-button-primary','withText':!0x0}),_0x1c3f51['on']('execute',()=>{_0x1c3f51['fire'](this['_dropdownCurrentConfig'][0x0]);}),_0x1c3f51;}['_createActionsDropdown'](_0x56d021){const _0x4ddf08=new AIBalloonDropdownView(_0x56d021,{'listItemModels':this['_dropdownCurrentConfig']['map'](_0x1c2da4=>{switch(_0x1c2da4){case'applySuggestion':return this['applySuggestionModel'];case'showChangeInText':return this['showChangeInTextModel'];case'insertSuggestion':return this['insertSuggestionModel'];}})});return _0x4ddf08['set']({'label':getLabelForAction(this['_dropdownCurrentConfig'][0x0],_0x56d021,this['_partsCount']),'tooltip':getTooltipForAction(this['_dropdownCurrentConfig'][0x0],_0x56d021,this['_partsCount']),'withText':!0x0,'class':'ck-ai-chat__feed__ai-suggestion__actions','balloonPanelClass':'ck-ai-chat__feed__ai-suggestion__actions__balloon'}),_0x4ddf08['bind']('isEnabled')['to'](this),_0x4ddf08;}['updateLabels'](_0x42ac44){const _0x3ed4d5=this['locale'];this['_partsCount']=_0x42ac44||this['_partsCount'],this['actionsButton']['set']({'label':getLabelForAction(this['_dropdownCurrentConfig'][0x0],_0x3ed4d5,this['_partsCount']),'tooltip':getTooltipForAction(this['_dropdownCurrentConfig'][0x0],_0x3ed4d5,this['_partsCount'])}),this['applySuggestionModel']['label']=getLabelForAction('applySuggestion',_0x3ed4d5,this['_partsCount']),this['showChangeInTextModel']['label']=getLabelForAction('showChangeInText',_0x3ed4d5,this['_partsCount']),this['insertSuggestionModel']['label']=getLabelForAction('insertSuggestion',_0x3ed4d5,this['_partsCount']);}}class AIBalloonDropdownView extends SplitButtonView{['bodyCollection'];['balloonPanelView'];['listView'];['keystrokeHandler'];constructor(_0x1e781d,_0x2a7d79){super(_0x1e781d),this['balloonPanelView']=new BalloonPanelView(this['locale']),this['bodyCollection']=new BodyCollection(this['locale']),this['bodyCollection']['attachToDom'](),this['set']('balloonPanelClass',''),this['balloonPanelView']['bind']('class')['to'](this,'balloonPanelClass'),this['listView']=this['_setUpList'](_0x2a7d79['listItemModels']['slice'](0x1)),this['bodyCollection']['add'](this['balloonPanelView']),this['balloonPanelView']['content']['add'](this['listView']),this['arrowView']['unbind']('tooltip'),this['arrowView']['set']('tooltip',getTranslation$i(this['locale'],'AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP')),this['_setUpKeystrokes'](),this['on']('execute',()=>{const _0x4ad1a2=_0x2a7d79['listItemModels'][0x0]['actionName'];this['fire'](_0x4ad1a2),this['balloonPanelView']['hide'](),this['arrowView']['focus']();}),this['on']('open',()=>{this['balloonPanelView']['isVisible']?(this['balloonPanelView']['hide'](),this['arrowView']['focus']()):(this['balloonPanelView']['pin']({'target':this['element'],'positions':['ltr'===this['locale']['uiLanguageDirection']?balloonPanelPositionSouthEast:balloonPanelPositionSouthWest]}),this['listView']['focus']());}),clickOutsideHandler({'emitter':this['balloonPanelView'],'callback':()=>{this['balloonPanelView']['hide']();},'activator':()=>this['balloonPanelView']['isVisible'],'contextElements':()=>[this['element'],this['balloonPanelView']['element']]});}['_setUpList'](_0xba1409){const _0xc2aa6f=this['locale'],_0x19744e=new ListView(_0xc2aa6f);for(const _0x271e84 of _0xba1409){const _0x42948b=new ListItemView(_0xc2aa6f),_0x38c274=new ListItemButtonView(_0xc2aa6f);_0x38c274['bind'](...Object['keys'](_0x271e84))['to'](_0x271e84),_0x38c274['delegate']('execute')['to'](_0x19744e),_0x42948b['children']['add'](_0x38c274),_0x19744e['items']['add'](_0x42948b);}return _0x19744e['items']['delegate']('execute')['to'](this),_0x19744e['on']('execute',_0x2306e8=>{const _0x12f3fc=_0x2306e8['source'];this['fire'](_0x12f3fc['actionName']),this['balloonPanelView']['hide'](),this['arrowView']['focus']();}),_0x19744e;}['_setUpKeystrokes'](){this['keystrokeHandler']=new KeystrokeHandler(),this['keystrokeHandler']['listenTo'](this['balloonPanelView']['element']),this['keystrokeHandler']['set']('esc',(_0x49f1fc,_0x3c448d)=>{this['balloonPanelView']['hide'](),this['arrowView']['focus'](),_0x3c448d();});}['destroy'](){super['destroy'](),this['keystrokeHandler']['destroy'](),this['balloonPanelView']['destroy'](),this['bodyCollection']['detachFromDom']();}}function balloonPanelPositionSouthEast(_0x28ca61){return{'top':_0x28ca61['bottom'],'left':_0x28ca61['left'],'name':'arrowless','config':{'withArrow':!0x1}};}function balloonPanelPositionSouthWest(_0x26bb88,_0x47d0fd){return{'top':_0x26bb88['bottom'],'left':_0x26bb88['left']-(_0x47d0fd['width']-_0x26bb88['width']),'name':'arrowless','config':{'withArrow':!0x1}};}function getLabelForAction(_0x5d03e8,_0x59b317,_0x2e90d7){switch(_0x5d03e8){case'applySuggestion':return getTranslation$i(_0x59b317,'AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL',_0x2e90d7);case'showChangeInText':return getTranslation$i(_0x59b317,'AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT',_0x2e90d7);case'insertSuggestion':return getTranslation$i(_0x59b317,'AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION',_0x2e90d7);}}function getTooltipForAction(_0x93decb,_0x4bff90,_0x4003bd){switch(_0x93decb){case'applySuggestion':return getTranslation$i(_0x4bff90,'AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP',_0x4003bd);case'showChangeInText':return getTranslation$i(_0x4bff90,'AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP',_0x4003bd);case'insertSuggestion':return getTranslation$i(_0x4bff90,'AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP',_0x4003bd);}}class AIBalloon extends ContextPlugin{static get['requires'](){return[AIConnector,AIEditing];}static get['pluginName'](){return'AIBalloon';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['isOpen']=!0x1;['_config'];['open'](_0x2d3390){const _0x151f8b=getEditorFromContext(this['context']);this['_config']=_0x2d3390;const _0x474d08=this['context']['config']['get']('ai.availableReplyActions')||[...ACTIONS],_0x501d61=_0x151f8b?.['commands']['get']('trackChanges'),_0xa2051d=_0x501d61?.['value'];this['balloonView']=new AIBalloonView(_0x151f8b['locale'],_0x2d3390,_0x474d08,!!_0xa2051d),this['balloonView']['delegate'](...AI_BALLOON_VIEW_EVENT_NAMES)['to'](this),_0x501d61&&this['balloonView']['bind']('isTrackChangesOn')['to'](_0x501d61,'value'),this['_showDialog'](_0x2d3390);}['close'](){getEditorFromContext(this['context'])['plugins']['get']('Dialog')['hide']();}['_setupVisualSelection'](_0x406254,_0x5b1b60){this['context']['plugins']['get'](AIEditing)['showFakeVisualSelection'](_0x406254,'ai-balloon-'+_0x5b1b60,!0x0,!0x0);}['_showDialog'](_0x1edfc9){const _0x3a6820=getEditorFromContext(this['context']);this['_setupVisualSelection'](_0x1edfc9['ranges'],_0x1edfc9['index']),_0x3a6820['plugins']['get']('Dialog')['show']({'title':_0x1edfc9['title'],'icon':_0x1edfc9['icon'],'hasCloseButton':!0x0,'id':'aiBalloon','position':this['_calculateDialogPosition']['bind'](this),'className':'ai-balloon'+(_0x1edfc9['showRotator']?'\x20ai-balloon-rotator':''),'content':this['balloonView'],'onShow':_0x37e47a=>{_0x1edfc9['showRotator']&&this['balloonView']['setupRotator'](_0x37e47a),this['isOpen']=!0x0;},'onHide':()=>{this['context']['plugins']['get']('AIEditing')['hideFakeVisualSelection']('ai-balloon-'+_0x1edfc9['index']),this['fire']('dialogClosed'),this['isOpen']=!0x1;}});}['_calculateDialogPosition'](_0x175073,_0x4ee8c0){const _0x54614d=getEditorFromContext(this['context']);if(!_0x4ee8c0)return null;const _0x64f823=getAllMarkersDomElementsSorted(_0x54614d['editing'],[..._0x54614d['model']['markers']['getMarkersGroup']('ai-selection'),..._0x54614d['model']['markers']['getMarkersGroup']('ai-balloon-selection')]);if(!_0x64f823||0x0===_0x64f823['length'])return{'left':Math['round'](_0x4ee8c0['left']+_0x4ee8c0['width']/0x2-_0x175073['width']/0x2),'top':Math['round'](_0x4ee8c0['top']+_0x4ee8c0['height']/0x2-_0x175073['height']/0x2)};const _0x2c414e=Math['round'](_0x4ee8c0['left']+_0x4ee8c0['width']/0x2-_0x175073['width']/0x2),_0xc64095=_0x64f823[0x0]['getBoundingClientRect'](),_0x24b316=_0x64f823[_0x64f823['length']-0x1]['getBoundingClientRect'](),_0x3ccaa5=_0x175073['height'],_0x3738be=this['_config']['showRotator']?0x8:0x0;return{'left':_0x2c414e,'top':this['_calculateOptimalTopPosition'](_0xc64095,_0x24b316,_0x3ccaa5,_0x3738be)};}['_calculateOptimalTopPosition'](_0x1c3240,_0x52cea5,_0x1dc3b0,_0x5a4a67=0x0){const _0x12b9ec=_0x52cea5['top']+_0x52cea5['height'],_0x2a7d95=_0x1c3240['top']-_0x1dc3b0-_0x5a4a67,_0x2414a6=window['innerHeight']-_0x12b9ec-0xa,_0x56270c=_0x1c3240['top']-_0x5a4a67-0xa;let _0x45c244;if(_0x2414a6>=_0x1dc3b0)_0x45c244=_0x12b9ec+0xa;else{if(_0x56270c>=_0x1dc3b0)_0x45c244=_0x2a7d95-0xa;else _0x45c244=_0x1c3240['top']+(_0x52cea5['top']+_0x52cea5['height'])/0x2-(_0x1dc3b0+_0x5a4a67)/0x2;}return _0x45c244;}}class AIChatController extends ContextPlugin{['_aiEditing'];['_aiConnector'];['_aiChatUi'];['_aiChatModels'];['_batchToChanges']=new Map();['_previewedChangeGroup']=null;['_balloonShowDiff']=!0x1;static get['requires'](){return[AIConnector,AIBalloon,DocumentCompare];}static get['pluginName'](){return'AIChatController';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_aiConnector']=this['context']['plugins']['get']('AIConnector'),this['_aiChatUi']=this['context']['plugins']['get']('AIChatUI'),this['_aiEditing']=this['context']['plugins']['get']('AIEditing'),this['_aiChatModels']=new AIChatModels({'connector':this['_aiConnector'],'displayedModels':this['context']['config']['get']('ai.chat.models.displayedModels'),'defaultModelId':this['context']['config']['get']('ai.chat.models.defaultModelId')});const _0x565c9d=this['context']['plugins']['get']('AITabs');this['listenTo'](this['_aiChatUi'],'startConversation',()=>{this['_startConversationSafely']();}),this['listenTo'](this['_aiChatUi'],'sendUserMessage',(_0x1dd667,_0x489085)=>{this['_handleUIUserMessage']({'userMessage':_0x489085});}),this['listenTo'](_0x565c9d,'resizedTabs',(_0x25f7fc,_0x28b98e)=>{this['_setIsMaximized'](_0x28b98e);}),this['listenTo'](this['_aiChatUi'],'resizeTabs',()=>{_0x565c9d['resize']();}),this['listenTo'](this['_aiChatUi'],'abortPromptStream',async()=>{await this['_stopLastInteraction'](),await this['_flushLastInteractionUI']();}),this['listenTo'](this['_aiChatUi'],'addDocumentToContext',()=>{this['activeConversation']?.['addCurrentDocumentToContext'](getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'));}),this['listenTo'](this['_aiChatUi'],'addFileToContext',(_0x5b0cb3,_0x48ccc7)=>{this['activeConversation']?.['addFilesToContext'](Array['from'](_0x48ccc7));}),this['listenTo'](this['_aiChatUi'],'addUrlToContext',(_0x5f10c2,_0x22d7fd)=>{this['activeConversation']?.['addUrlToContext'](_0x22d7fd);}),this['listenTo'](this['_aiChatUi'],'addResourceToContext',(_0x268c6a,_0x5adf96)=>{this['activeConversation']?.['addResourceToContext'](_0x5adf96['source'],_0x5adf96['resource']);}),this['listenTo'](this['_aiChatUi'],'removeContextItem',(_0x146557,_0xa4e570)=>{this['_removeFromContext'](_0xa4e570);}),this['listenTo'](this['_aiChatUi'],'loadSourceResources',(_0x25d1f4,_0x1a061c)=>{this['activeConversation']?.['loadSourceResources'](_0x1a061c['sourceId'],_0x1a061c['query'],_0x1a061c['uid']);}),this['listenTo'](this['_aiChatUi'],'toggleWebSearch',()=>{this['_toggleWebSearch']();}),this['listenTo'](this['_aiChatUi'],'toggleReasoning',()=>{this['_toggleReasoning']();}),this['listenTo'](this['_aiChatUi'],'selectModel',(_0x38bbce,_0x365b48)=>{this['activeConversation']?.['setModel'](_0x365b48);}),this['listenTo'](this['_aiChatUi'],'like',(_0x2cc8e6,{replyId:_0x46508f})=>{console['log']('Liked\x20response',_0x46508f);}),this['listenTo'](this['_aiChatUi'],'dislike',(_0x6e2b57,{replyId:_0x16b71a})=>{console['log']('Disliked\x20response',_0x16b71a);}),this['listenTo'](this['_aiChatUi'],'insertSuggestion',(_0x3bb02b,_0x4d5274)=>{this['context']['plugins']['get'](AIBalloon)['close'](),this['_insertSuggestion'](_0x4d5274);}),this['listenTo'](this['_aiChatUi'],'showChangeInText',(_0x326852,{replyId:_0x46207b,partIndex:_0xfb9e7e})=>{this['_balloonShowDiff']=this['_aiChatUi']['showDiff'],this['_openBalloonFor'](_0x46207b,_0xfb9e7e);}),this['listenTo'](this['_aiChatUi'],'mouseOverSuggestion',(_0x1342c0,{replyId:_0x346cde,partIndex:_0x3bcd80})=>{const _0x35770f=this['_getDocumentRangeForReplyChanges'](_0x346cde,_0x3bcd80);_0x35770f&&'$graveyard'!=_0x35770f['range']['root']['rootName']&&this['_aiEditing']['showFakeVisualSelection']([_0x35770f['range']],'ai-chat-controller-mouse-over');}),this['listenTo'](this['_aiChatUi'],'mouseLeaveSuggestion',()=>{this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over');}),this['listenTo'](this['_aiChatUi'],'applySuggestion',(_0xd97863,_0x3c96ce)=>{this['context']['plugins']['get'](AIBalloon)['close'](),this['_applySuggestion'](_0x3c96ce);}),this['listenTo'](this['_aiChatUi'],'toggleSuggestionDisplayMode',async(_0x2380ff,_0x10ab49)=>{const {reply:_0x578221}=this['getInteractionAndReplyById'](_0x10ab49['replyId']),_0x500648=getSuggestionPartsFromReply({'editor':getEditorFromContext(this['context']),'changeGroups':_0x578221['changeGroups'],'documentContextContent':_0x578221['documentContextContent'],'showDiff':_0x10ab49['showDiff']});await this['_aiChatUi']['updateFeedItemAIReplySuggestionContent']({'id':_0x578221['id'],'parts':_0x500648,'renderingStrategy':'static'});}),this['listenTo'](this['_aiChatUi'],'rejectSuggestion',(_0x2a6f7e,{replyId:_0x2d2436,partIndex:_0x538b6a})=>{this['_previewedChangeGroup']?.['replyId']==_0x2d2436&&this['_previewedChangeGroup']?.['partIndex']==_0x538b6a&&this['context']['plugins']['get'](AIBalloon)['close']();const {reply:_0x1af868}=this['getInteractionAndReplyById'](_0x2d2436);_0x1af868['setChangeGroupState'](_0x538b6a,'rejected'),this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over');});}async['afterInit'](){this['context']instanceof Editor?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x5aebe8,_0x1eb98e)=>{_0x1eb98e['on']('ready',()=>{this['_integrateEditor'](_0x1eb98e);});}),await this['_startConversationSafely']();}['_insertSuggestion'](_0x29bed5){const _0x5946a9=getEditorFromContext(this['context']);if(!_0x5946a9['plugins']['has']('TrackChangesEditing'))return;const _0x3236ea=this['context']['plugins']['get']('DocumentCompare'),{reply:_0x9a59cc,interaction:_0x410a5a}=this['getInteractionAndReplyById'](_0x29bed5['replyId']),_0x50349e=this['_getDocumentRangeForReplyChanges'](_0x29bed5['replyId'],_0x29bed5['partIndex']),_0x16fd5f=void 0x0!==_0x29bed5['partIndex']?[_0x9a59cc['changeGroups'][_0x29bed5['partIndex']]]:_0x9a59cc['changeGroups']['filter'](_0x42033d=>'pending'==_0x42033d['state']),_0x22b945=_0x16fd5f['map'](_0x34245d=>_0x9a59cc['changeGroups']['indexOf'](_0x34245d));if(!_0x50349e||'$graveyard'==_0x50349e['range']['root']['rootName'])return void _0x22b945['forEach'](_0x22f4f4=>_0x9a59cc['setChangeGroupState'](_0x22f4f4,'outdated'));_0x22b945['forEach'](_0x357bf3=>_0x9a59cc['setChangeGroupState'](_0x357bf3,'accepted'));const _0x36ea19=getOperationsFromReply({'editor':_0x5946a9,'reply':_0x9a59cc,'interaction':_0x410a5a,'groups':_0x16fd5f,'transform':!0x0,'documentCompare':_0x3236ea,'documentCompareOptions':{'anchor':'main','markDeletions':!0x0}});let _0x1dc516;_0x50349e&&this['_scrollToSuggestionRange'](_0x50349e['range']),_0x5946a9['model']['change'](_0x4e22fa=>{_0x1dc516=_0x4e22fa['batch'],_0x5946a9['plugins']['get']('TrackChangesEditing')['_applyOperationsAsSuggestions'](_0x36ea19),this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over');}),this['_batchToChanges']['set'](_0x1dc516,{'interactionId':_0x410a5a['id'],'replyId':_0x9a59cc['id'],'indexes':_0x22b945['slice']()}),this['_updateRatings'](_0x9a59cc);}['_applySuggestion'](_0x1e7840){const _0x4a62de=getEditorFromContext(this['context']),_0x46c965=this['context']['plugins']['get'](DocumentCompare),{reply:_0x2906e2,interaction:_0x14a259}=this['getInteractionAndReplyById'](_0x1e7840['replyId']),_0x4b9b5a=this['_getDocumentRangeForReplyChanges'](_0x1e7840['replyId'],_0x1e7840['partIndex']),_0x51685b=void 0x0!==_0x1e7840['partIndex']?[_0x2906e2['changeGroups'][_0x1e7840['partIndex']]]:_0x2906e2['changeGroups']['filter'](_0x58ad1c=>'pending'==_0x58ad1c['state']),_0x23b0a8=_0x51685b['map'](_0x2caee3=>_0x2906e2['changeGroups']['indexOf'](_0x2caee3));if(!_0x4b9b5a||'$graveyard'==_0x4b9b5a['range']['root']['rootName'])return void _0x23b0a8['forEach'](_0x4b47da=>_0x2906e2['setChangeGroupState'](_0x4b47da,'outdated'));_0x23b0a8['forEach'](_0x44324d=>_0x2906e2['setChangeGroupState'](_0x44324d,'accepted'));const _0x628a90=getOperationsFromReply({'editor':_0x4a62de,'reply':_0x2906e2,'interaction':_0x14a259,'groups':_0x51685b,'transform':!0x0,'documentCompare':_0x46c965,'documentCompareOptions':{'anchor':'main','markDeletions':!0x1}});let _0xaaf89;_0x4b9b5a&&this['_scrollToSuggestionRange'](_0x4b9b5a['range']),_0x4a62de['model']['change'](_0x442e00=>{_0xaaf89=_0x442e00['batch'];for(const _0x1f081d of _0x628a90)_0x1f081d['baseVersion']=_0x4a62de['model']['document']['version'],_0x442e00['batch']['addOperation'](_0x1f081d),_0x4a62de['model']['applyOperation'](_0x1f081d);}),this['_batchToChanges']['set'](_0xaaf89,{'interactionId':_0x14a259['id'],'replyId':_0x2906e2['id'],'indexes':_0x23b0a8['slice']()}),this['_updateRatings'](_0x2906e2);}['_openBalloonFor'](_0x4754c9,_0x105720){const _0x41aaca=getEditorFromContext(this['context']),_0x4b3800=this['_getDocumentRangeForReplyChanges'](_0x4754c9,_0x105720),_0x40ed57=this['context']['plugins']['get'](AIBalloon);if(!_0x4b3800)return void _0x40ed57['close']();const {range:_0x5ebcfd,currentIndex:_0x13cef9,previousIndex:_0x1ee181,nextIndex:_0x50aacb}=_0x4b3800;if('$graveyard'==_0x5ebcfd['root']['rootName']){const {reply:_0x2f5061}=this['getInteractionAndReplyById'](_0x4754c9);return _0x2f5061['setChangeGroupState'](_0x13cef9,'outdated'),void _0x40ed57['close']();}if(this['_previewedChangeGroup']?.['replyId']==_0x4754c9&&this['_previewedChangeGroup']?.['partIndex']==_0x13cef9)return;this['_previewedChangeGroup']={'replyId':_0x4754c9,'partIndex':_0x13cef9};const _0x9d4b58=new AISuggestionContainerView(_0x41aaca['locale'],{'showDiff':this['_balloonShowDiff'],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':'full'},'hideHeader':!0x0}),{reply:_0x1b801b}=this['getInteractionAndReplyById'](_0x4754c9),_0x421347=getSuggestionPartsFromReply({'editor':_0x41aaca,'changeGroups':[_0x1b801b['changeGroups'][_0x13cef9]],'documentContextContent':_0x1b801b['documentContextContent'],'showDiff':this['_balloonShowDiff']});_0x9d4b58['updateContent']({'parts':_0x421347,'renderingStrategy':'static'});const _0x7b736=_0x13cef9!==_0x1ee181;this['_scrollToSuggestionRange'](_0x5ebcfd,!0x0),_0x40ed57['open']({'index':_0x13cef9,'title':getTranslation$i(this['context']['locale'],'AI_BALLOON_HEADER_TITLE',(_0x13cef9+0x1)['toString']()),'icon':IconAI,'mainView':_0x9d4b58,'showRotator':_0x7b736,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x5ebcfd]}),this['_aiChatUi']['scrollFeedToSuggestion'](_0x4754c9,_0x13cef9),this['listenTo'](_0x9d4b58,'toggleSuggestionDisplayMode',(_0x34027d,{showDiff:_0x5edd38})=>{this['_balloonShowDiff']=_0x5edd38;const {reply:_0xed7c1c}=this['getInteractionAndReplyById'](_0x4754c9),_0x44ab02=getSuggestionPartsFromReply({'editor':_0x41aaca,'changeGroups':[_0xed7c1c['changeGroups'][_0x13cef9]],'documentContextContent':_0xed7c1c['documentContextContent'],'showDiff':_0x5edd38});_0x9d4b58['updateContent']({'parts':_0x44ab02,'renderingStrategy':'static'});}),this['listenTo'](_0x40ed57,'applySuggestion',()=>{this['_applySuggestion']({'replyId':_0x4754c9,'partIndex':_0x13cef9}),_0x7b736?this['_openBalloonFor'](_0x4754c9,_0x50aacb):_0x40ed57['close']();}),this['listenTo'](_0x40ed57,'insertSuggestion',()=>{this['_insertSuggestion']({'replyId':_0x4754c9,'partIndex':_0x13cef9}),_0x7b736?this['_openBalloonFor'](_0x4754c9,_0x50aacb):_0x40ed57['close']();}),_0x7b736&&(this['listenTo'](_0x40ed57,'showNext',()=>{this['_openBalloonFor'](_0x4754c9,_0x50aacb);}),this['listenTo'](_0x40ed57,'showPrevious',()=>{this['_openBalloonFor'](_0x4754c9,_0x1ee181);})),this['listenTo'](_0x40ed57,'dialogClosed',()=>{this['stopListening'](_0x40ed57),this['stopListening'](_0x9d4b58),this['_previewedChangeGroup']=null;});}['_getDocumentRangeForReplyChanges'](_0x11b7e7,_0x1e81e3){const _0x45a155=getEditorFromContext(this['context']),{reply:_0x2bbd59,interaction:_0x25e8ce}=this['getInteractionAndReplyById'](_0x11b7e7),_0x430bfd=_0x2bbd59['changeGroups']['filter'](_0x3407c5=>'pending'==_0x3407c5['state']),_0x5526e5=_0x430bfd['map'](_0x559e55=>_0x2bbd59['changeGroups']['indexOf'](_0x559e55));void 0x0===_0x1e81e3&&(_0x1e81e3=_0x5526e5[0x0]);const _0x11def2=_0x5526e5['indexOf'](_0x1e81e3);if(-0x1==_0x11def2)return null;const _0x3b32a4=0x0==_0x11def2?_0x5526e5[_0x5526e5['length']-0x1]:_0x5526e5[_0x11def2-0x1],_0x366ee2=_0x11def2==_0x5526e5['length']-0x1?_0x5526e5[0x0]:_0x5526e5[_0x11def2+0x1],_0x5dc91b=_0x430bfd[_0x11def2],_0x15c53b=new Document([]),_0x64f5a=new Document([]);for(const _0x41ee18 of _0x5dc91b['changes'])if('removed'!=_0x41ee18['type']&&_0x64f5a['children']['push'](_0x41ee18['node']['cloneNode'](!0x0)),'new'!=_0x41ee18['type']){const _0x2fca37=findOne(_0x5d57b8=>getAttribute(_0x5d57b8,'data-id')==_0x41ee18['id'],_0x2bbd59['documentContextContent'],!0x0);_0x15c53b['children']['push'](_0x2fca37['cloneNode'](!0x0));}if(0x0==_0x15c53b['children']['length']){if(_0x5dc91b['changes'][0x0]['anchorId']){const _0x4cb6fe=findByAttribute('data-id',_0x5dc91b['changes'][0x0]['anchorId'],_0x2bbd59['documentContextContent']);_0x15c53b['children']['unshift'](_0x4cb6fe['cloneNode'](!0x0)),_0x64f5a['children']['unshift'](_0x4cb6fe['cloneNode'](!0x0)),_0x4cb6fe['nextSibling']&&(_0x15c53b['children']['push'](_0x4cb6fe['nextSibling']['cloneNode'](!0x0)),_0x64f5a['children']['push'](_0x4cb6fe['nextSibling']['cloneNode'](!0x0)));}else{const _0x49ac9c=_0x2bbd59['documentContextContent']['children'][0x0];if(!_0x49ac9c)return null;_0x15c53b['children']['push'](_0x49ac9c['cloneNode'](!0x0)),_0x64f5a['children']['push'](_0x49ac9c['cloneNode'](!0x0));}}const _0x5dc599=_0x25e8ce['getDocumentContext'](),_0x359646=_0x45a155['data']['parse'](_0x5dc599['content']),_0x5cf769=serialize(_0x15c53b),_0x4b62f0=_0x45a155['data']['parse'](_0x5cf769),_0x14e125=_0x45a155['data']['parse'](_0x5cf769),_0x1f7d59=_0x45a155['model']['createPositionAt'](_0x4b62f0,0x0),_0x339906=serialize(_0x64f5a),_0x5229a4={'anchor':_0x1f7d59,'markDeletions':!0x1},_0x4829ce=_0x45a155['plugins']['get'](DocumentCompare)['getDiff'](_0x5cf769,_0x339906,_0x5229a4)['getOperations']();if(!_0x4829ce['length'])return null;_0x45a155['model']['change'](_0x4594f4=>{for(const _0x30c495 of _0x4829ce)if('remove'==_0x30c495['type']){const _0x597da8=_0x30c495['sourcePosition'],_0x21c235=_0x30c495['howMany'],_0x1b77d2=new _DetachOperation(_0x597da8,_0x21c235);_0x4594f4['batch']['addOperation'](_0x1b77d2),_0x45a155['model']['applyOperation'](_0x1b77d2);}else'marker'!==_0x30c495['type']&&(_0x30c495['baseVersion']=null,_0x30c495['isDocumentOperation']=!0x1,_0x4594f4['batch']['addOperation'](_0x30c495),_0x45a155['model']['applyOperation'](_0x30c495));});const _0x538d17=getMinimalSelection(_0x45a155,_0x4829ce,_0x4b62f0);expandSelectionWithContext(_0x45a155['model'],_0x538d17);const _0x3e8000=_0x538d17['getFirstRange']()['start']['path']['slice'](),_0x26d158=_0x538d17['getFirstRange']()['end']['path']['slice'](),_0x19e22a=[];let _0x306b54=_0x4b62f0,_0x1eb0a0=_0x14e125;for(let _0x417203=0x0;_0x417203<_0x26d158['length'];_0x417203++){const _0x5ae360=_0x306b54['maxOffset']-_0x26d158[_0x417203];_0x19e22a[_0x417203]=_0x1eb0a0['maxOffset']-_0x5ae360,_0x306b54=_0x306b54['getChildAtOffset'](_0x26d158[_0x417203]),_0x1eb0a0=_0x1eb0a0['getChildAtOffset'](_0x19e22a[_0x417203]);}const _0x48524a=_0x45a155['model']['createRange'](_0x45a155['model']['createPositionFromPath'](_0x14e125,_0x3e8000),_0x45a155['model']['createPositionFromPath'](_0x14e125,_0x19e22a)),_0x3c6fd2=_0x14e125['getChild'](0x0)['getAttribute'](DATA_ID_MODEL_ATTRIBUTE),_0x54e045=Array['from'](_0x359646['getChildren']())['find'](_0x217bbe=>_0x217bbe['getAttribute'](DATA_ID_MODEL_ATTRIBUTE)==_0x3c6fd2)['getPath'](),_0x250505=_0x48524a['start']['path']['slice'](),_0x7e1a3b=_0x48524a['end']['path']['slice']();_0x250505[0x0]=_0x54e045[0x0]+_0x250505[0x0],_0x7e1a3b[0x0]=_0x54e045[0x0]+_0x7e1a3b[0x0];let _0x523077=_0x45a155['model']['createRange'](_0x45a155['model']['createPositionFromPath'](_0x45a155['model']['document']['getRoot'](),_0x250505),_0x45a155['model']['createPositionFromPath'](_0x45a155['model']['document']['getRoot'](),_0x7e1a3b));const _0x12567a=_0x45a155['model']['document']['history']['getOperations'](_0x5dc599['version']);for(const _0xfa31b2 of _0x12567a)_0x523077=ModelRange['_createFromRanges'](_0x523077['getTransformedByOperation'](_0xfa31b2));return{'range':_0x523077,'previousIndex':_0x3b32a4,'nextIndex':_0x366ee2,'currentIndex':_0x1e81e3};}['_integrateEditor'](_0x227bf2){if(!_0x227bf2['plugins']['has']('Undo'))return;const _0x137f58=_0x227bf2['commands']['get']('undo'),_0x3fc28e=_0x227bf2['commands']['get']('redo');this['listenTo'](_0x137f58,'revert',(_0x560ba3,_0x22988c,_0x5d40c2)=>{const _0x487118=this['_batchToChanges']['get'](_0x22988c);if(!_0x487118)return;const _0x557583=this['activeConversation']['getInteraction'](_0x487118['interactionId'])['getReply'](_0x487118['replyId']);_0x487118['indexes']['forEach'](_0x2cdd50=>_0x557583['setChangeGroupState'](_0x2cdd50,'pending')),this['_batchToChanges']['delete'](_0x22988c),this['_batchToChanges']['set'](_0x5d40c2,_0x487118);}),this['listenTo'](_0x3fc28e,'revert',(_0x1abe97,_0x23fd1b,_0xf4bed5)=>{const _0x31304d=this['_batchToChanges']['get'](_0x23fd1b);if(!_0x31304d)return;const _0x3a3ea3=this['activeConversation']['getInteraction'](_0x31304d['interactionId'])['getReply'](_0x31304d['replyId']);_0x31304d['indexes']['forEach'](_0x107dec=>_0x3a3ea3['setChangeGroupState'](_0x107dec,'accepted')),this['_batchToChanges']['delete'](_0x23fd1b),this['_batchToChanges']['set'](_0xf4bed5,_0x31304d);});}async['loadConversation'](_0x25d6d4){this['context']['plugins']['get'](AIBalloon)['close'](),this['_aiChatUi']['setFeedItemRenderingStrategy']('static'),this['_aiChatUi']['toggleLoadingSkeleton'](!0x0),await this['_stopLastInteraction']();try{const _0x2816e5=this['context']['plugins']['get'](AITabs);this['updateConversationTitle']('\x20'),_0x2816e5['view']['activateTab']('chat'),await this['_startConversationSafely'](_0x25d6d4);const {sessionId:_0x30de17}=this['_aiEditing']['getDocumentData']();await this['activeConversation']['load'](_0x25d6d4,_0x30de17),this['activeConversation']['isCurrentDocumentInConversation']()&&this['activeConversation']['addCurrentDocumentToContext'](getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'));}catch(_0xa1cdca){console['error']('Failed\x20to\x20load\x20conversation',_0xa1cdca);}finally{this['_aiChatUi']['setFeedItemRenderingStrategy']('streaming'),this['_aiChatUi']['toggleLoadingSkeleton'](!0x1);}}['handleRemovedConversation'](_0x4230fb){this['activeConversation']['id']===_0x4230fb&&this['_startConversationSafely']();}async['addSelectionToChatContext'](){const _0x1de21d=this['_aiEditing']['getSelectionText']();this['activeConversation']?.['addSelectionToContext'](_0x1de21d),this['activeConversation']?.['addCurrentDocumentToContext'](getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'));}['removeSelectionFromChatContext'](){this['activeConversation']?.['removeSelectionFromContext']();}['focusPromptInput'](){this['_aiChatUi']['focusPromptInput']();}async['startConversation'](){await this['_startConversationSafely']();}async['sendMessage']({message:_0x2ebd60,quickActionData:_0x26fb99}){await this['_handleUIUserMessage']({'userMessage':_0x2ebd60,'quickActionData':_0x26fb99});}['getGroupId'](){const _0x988eb=this['context']['config']['get']('collaboration.channelId');if(!_0x988eb)throw new CKEditorError('ai-chat-missing-channel-id',this);return _0x988eb;}async['_startConversationSafely'](_0x13e9e2){try{this['_aiChatUi']['enableControls'](),await this['_handleStartConversation'](_0x13e9e2);}catch(_0x59fc24){logError('ai-chat-conversation-start-failed',_0x59fc24),this['activeConversation']=void 0x0,this['_aiChatUi']['disableControls']();}}async['_handleStartConversation'](_0x5625cf){const _0x4c88b8=this['context']['plugins']['get'](AIBalloon);let _0x2882a8;_0x4c88b8['isOpen']&&_0x4c88b8['close'](),_0x5625cf||!this['activeConversation']?_0x2882a8=this['context']['config']['get']('ai.chat.models.defaultModelId'):this['_aiChatUi']['isModelAvailable']&&(_0x2882a8=this['activeConversation']['selectedModel']['id']),await this['_stopLastInteraction']();const _0x579054=this['getGroupId'](),_0x593dfb=_0x5625cf||uid();this['activeConversation']=new AIChatConversation({'connector':this['_aiConnector'],'chatModels':this['_aiChatModels'],'selectedModelId':_0x2882a8,'conversationId':_0x593dfb,'group':_0x579054,'getEditor':()=>getEditorFromContext(this['context'])}),this['activeConversation']['on']('conversationInitialized',(_0x296cea,_0x5a36a8)=>{this['_aiChatUi']['createConversation'](_0x5a36a8),this['_aiChatUi']['resetMessageInput'](),this['_aiChatUi']['clearPendingContextUI'](),this['_aiChatUi']['clearConversationContextUI'](),_0x5625cf||(this['_aiChatUi']['resetConversationTitle'](),this['activeConversation']?.['addCurrentDocumentToContext'](getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_CURRENT_DOCUMENT')));}),this['activeConversation']['on']('uploadProgressChanged',(_0x3661e2,_0x86a966)=>{this['_aiChatUi']['setIsUploadInProgress'](_0x86a966['isUploadInProgress']);}),this['activeConversation']['on']('interactionCreated',(_0x58793d,_0x428096)=>{this['_aiChatUi']['addFeedItemUserMessage'](_0x428096);}),this['activeConversation']['on']('webSearchStarted',()=>{this['_aiChatUi']['setLoadingMessage']({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this['activeConversation']['on']('reasoningStarted',()=>{this['_aiChatUi']['setLoadingMessage']({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this['activeConversation']['on']('webSearchFinished',(_0x19fad5,_0x534d72)=>{this['_aiChatUi']['addFeedInteractionHeader'](_0x534d72,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this['activeConversation']['on']('reasoningFinished',(_0x3af98c,_0x25bee5)=>{this['_aiChatUi']['addFeedInteractionHeader'](_0x25bee5,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this['activeConversation']['on']('interactionStarted',()=>{this['_aiChatUi']['startInteraction']();}),this['activeConversation']['on']('interactionFinished',async()=>{await this['_aiChatUi']['finishInteraction']();}),this['activeConversation']['on']('interactionDestroyed',(_0x16314b,_0x1b3500)=>{this['_aiChatUi']['removeFeedInteraction'](_0x1b3500['id']);}),this['activeConversation']['on']('setConversationTitle',(_0x33253f,_0x3da291,_0x144067)=>{this['updateConversationTitle'](_0x3da291,_0x144067);}),this['activeConversation']['on']('replyCreated',(_0x34cc5a,_0x3ea723)=>{'text-delta'===_0x3ea723['type']?this['_aiChatUi']['addFeedItemAIReply'](_0x3ea723):this['_aiChatUi']['addFeedItemAISuggestion'](_0x3ea723);}),this['activeConversation']['on']('replyContentUpdated',async(_0x2e3fbd,_0x3f3dd7,_0x3503de)=>{await this['_updateReplyContent']({'reply':_0x3f3dd7,'changeGroups':_0x3503de});}),this['activeConversation']['on']('replyChangeGroupStateUpdated',(_0xb0388a,{reply:_0x568c09,index:_0x17711e,state:_0x4b5644})=>{this['_aiChatUi']['updateFeedItemAIReplySuggestionPartState']({'id':_0x568c09['id'],'index':_0x17711e,'state':_0x4b5644});}),this['activeConversation']['on']('contextItemAdded',(_0x81e44c,_0x3f3579)=>{if(this['_aiChatUi']['addContextItem'](_0x3f3579['contextItem'],_0x3f3579['isLoading']),'selection'===_0x3f3579['contextItem']['type']){const _0x1811bc=[...getEditorFromContext(this['context'])['model']['document']['selection']['getRanges']()];this['_aiEditing']['showFakeVisualSelection'](_0x1811bc,'ai-conversation-'+this['activeConversation']?.['id']);}}),this['activeConversation']['on']('contextItemRemoved',(_0x48e491,_0x4fe3b6)=>{this['_aiChatUi']['removeContextItem'](_0x4fe3b6['uiId']),'current-document'==_0x4fe3b6['uiId']&&this['removeSelectionFromChatContext'](),'selection'===_0x4fe3b6['type']&&this['_aiEditing']['hideFakeVisualSelection']('ai-conversation-'+this['activeConversation']?.['id']);}),this['activeConversation']['on']('contextItemLoadingEnded',(_0x5044a5,_0x1d6547)=>{this['_aiChatUi']['setContextItemLoading'](_0x1d6547['contextItem']['uiId'],_0x1d6547['isLoading']);}),this['activeConversation']['on']('contextSent',(_0x48e37e,_0x1d6677)=>{this['_aiChatUi']['setConversationContext'](_0x1d6677['contextItems']);}),this['activeConversation']['on']('addContextOptionsChanged',(_0x44abd4,_0x82ba94)=>{this['_aiChatUi']['setAddContextOptions'](_0x82ba94['options']);}),this['activeConversation']['on']('sourceResourcesLoaded',(_0x24ccae,_0x280a31)=>{this['_aiChatUi']['populateSourceResourceBalloon'](_0x280a31['sourceId'],_0x280a31['source'],_0x280a31['resources'],_0x280a31['uid']);}),this['activeConversation']['on']('resourceStateChanged',(_0x4bef20,_0x39edac)=>{this['_aiChatUi']['updateResourceState'](_0x39edac['sourceId'],_0x39edac['resourceId'],_0x39edac['isInContext']);}),this['activeConversation']['on']('capabilitiesUpdated',(_0xca1d4f,_0x561059)=>{this['_aiChatUi']['updateCapabilities'](_0x561059);}),this['activeConversation']['on']('modelSelected',(_0x22cdb2,_0x3096a2)=>{this['_aiChatUi']['setSelectedModel'](_0x3096a2['selectedModel'],_0x3096a2['isDisabled']);}),this['activeConversation']['on']('error',(_0x1325b1,{error:_0x473878,interactionId:_0xecfdb6,fileName:_0x3f6a87,url:_0x463ed9,sourceId:_0x2323cc,sourceLabel:_0x30d51f})=>{const _0x47de1a=_0xecfdb6?_0xecfdb6+':'+uid():uid();_0x473878['message']['startsWith']('ai-request-aborted')?this['_aiChatUi']['addFeedItemStaticMessage']({'staticMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_ABORTED_MESSAGE'),'id':_0x47de1a}):_0x473878['message']['startsWith']('ai-chat-conversation-init-failed')||_0x473878['message']['startsWith']('ai-chat-conversation-start-failed')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_START_CONVERSATION'),'id':_0x47de1a}),this['_logError'](_0x473878)):_0x473878['message']['startsWith']('ai-chat-file-upload-failed')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE',_0x3f6a87),'id':_0x47de1a}):_0x473878['message']['startsWith']('ai-chat-url-upload-failed')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL',_0x463ed9),'id':_0x47de1a}):_0x473878['message']['startsWith']('ai-chat-context-invalid-data')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_INVALID_DATA'),'id':_0x47de1a}):_0x473878['message']['startsWith']('ai-chat-context-unsupported-type')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE'),'id':_0x47de1a}):_0x473878['message']['startsWith']('ai-chat-source-resources-load-failed')?(_0x2323cc&&this['_aiChatUi']['closeSourceResourceBalloon'](_0x2323cc),this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES',_0x30d51f||'source'),'id':_0x47de1a}),this['_logError'](_0x473878)):_0x473878['message']['startsWith']('ai-chat-resource-load-failed')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_RESOURCE_LOAD_FAILED'),'id':_0x47de1a}),this['_logError'](_0x473878)):(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_GENERIC_ERROR'),'id':_0x47de1a}),this['_logError'](_0x473878));}),await this['activeConversation']['init'](this['context']['config']['get']('ai.chat.context')),_0x5625cf||await this['activeConversation']['start']();}async['_handleUIUserMessage']({userMessage:_0x528e21,quickActionData:_0x4a9121}){if(!this['activeConversation'])throw new CKEditorError('ai-chat-controller-no-active-conversation');this['activeConversation']['isCurrentDocumentInContext']()&&await this['activeConversation']['updateCurrentDocumentInContext'](this['_aiEditing']['getDocumentData']()),this['activeConversation']['id']&&this['activeConversation']['isStarted']&&await this['activeConversation']['handleUserInteraction']({'userMessage':_0x528e21,'quickActionData':_0x4a9121}),this['_removeAISelectionMarkers']();}['_removeAISelectionMarkers'](){const _0x472217=getEditorFromContext(this['context'])['model'],_0x5f3173=Array['from'](_0x472217['markers']['getMarkersGroup'](AI_VISUAL_SELECTION_MARKER_NAME));_0x472217['change'](_0x289e98=>{_0x5f3173['forEach'](_0x3e8fb9=>_0x289e98['removeMarker'](_0x3e8fb9));});}['_showConversationHistory'](){console['log']('Showing\x20conversation\x20history...');}['_setIsMaximized'](_0x5953df){this['_aiChatUi']['setIsMaximized'](_0x5953df);}['_logError'](_0x198ad2){logError(_0x198ad2['message']);}['_removeFromContext'](_0x350e01){this['activeConversation']?.['removeFromContext'](_0x350e01);}['_toggleWebSearch'](){this['activeConversation']?.['toggleWebSearch']();}['_toggleReasoning'](){this['activeConversation']?.['toggleReasoning']();}['getInteractionAndReplyById'](_0x1e7275){const [_0x327370,_0x4b306a]=_0x1e7275['split'](':'),_0x12a9b4=this['activeConversation']['getInteraction'](_0x327370),_0x35283c=_0x12a9b4['getReply'](_0x4b306a);return{'interaction':_0x12a9b4,'reply':_0x35283c};}['_scrollToSuggestionRange'](_0x49ad27,_0x54d50a=!0x1){const _0x4187c0=getEditorFromContext(this['context']),_0x4e55e3={'target':_0x4187c0['editing']['view']['domConverter']['viewRangeToDom'](_0x4187c0['editing']['mapper']['toViewRange'](_0x49ad27)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x54d50a};_0x54d50a&&(_0x4e55e3['alignToTop']=!0x0),scrollViewportToShowTarget(_0x4e55e3);}['updateConversationTitle'](_0x7e7798,_0x14c1e8=!0x1){this['_aiChatUi']['setConversationTitle'](_0x7e7798||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION'),_0x14c1e8);}async['_updateReplyContent']({reply:_0x1c0635,changeGroups:_0x2db7fa,renderingStrategy:_0x1a835c}){const {id:_0xee49e8,isDone:_0x594e5d,type:_0x2da236,parsedContent:_0x5a1156}=_0x1c0635;if('modification-delta'===_0x2da236){const _0x20521a=getSuggestionPartsFromReply({'editor':getEditorFromContext(this['context']),'showDiff':this['_aiChatUi']['showDiff'],'changeGroups':_0x2db7fa,'documentContextContent':_0x1c0635['documentContextContent']});await this['_aiChatUi']['updateFeedItemAIReplySuggestionContent']({'id':_0xee49e8,'parts':_0x20521a,'renderingStrategy':_0x1a835c,'isDone':_0x594e5d});}else'text-delta'===_0x2da236&&await this['_aiChatUi']['updateFeedItemAIReplyContent']({'id':_0xee49e8,'parsedContent':_0x5a1156,'renderingStrategy':_0x1a835c,'isDone':_0x594e5d});_0x594e5d&&_0x1c0635['sources']['length']>0x0&&this['_aiChatUi']['updateFeedItemAIReplySources'](_0xee49e8,_0x1c0635['sources']);}async['_stopLastInteraction'](){const _0x433472=this['activeConversation']?.['lastInteraction'];_0x433472&&(_0x433472['stop'](),this['_aiChatUi']['stopInteraction'](_0x433472));}async['_flushLastInteractionUI'](){const _0x408f24=this['activeConversation']?.['lastInteraction'];if(_0x408f24){for await(const _0xa19fba of _0x408f24['replies'])await this['_updateReplyContent']({'reply':_0xa19fba,'changeGroups':_0xa19fba['changeGroups'],'renderingStrategy':'static'});}}['_updateRatings'](_0x3647a9){const _0x1bbc31={'positiveCount':_0x3647a9['changeGroups']['filter'](_0x5a39d7=>'accepted'===_0x5a39d7['state'])['length'],'totalCount':_0x3647a9['changeGroups']['length']},_0x57a0cd=this['activeConversation']['getInteraction'](_0x3647a9['interactionId'])['messageId'];this['_aiConnector']['upsertAIChatRating'](this['activeConversation']['id'],_0x57a0cd,_0x1bbc31);}}const AI_CHAT_UI_EVENT_NAMES=[...AI_SUGGESTION_UI_EVENT_NAMES,'startConversation','resizeTabs','sendUserMessage','abortPromptStream','addDocumentToContext','addFileToContext','addUrlToContext','addResourceToContext','removeContextItem','loadSourceResources','toggleWebSearch','toggleReasoning','selectModel'];class AIChatFeedSuggestionItemView extends AIChatFeedItemView{['containerView'];['actionsView'];constructor(_0x25dd25,_0x5dfd21){super(_0x5dfd21),this['containerView']=new AISuggestionContainerView(_0x25dd25,{'showDiff':_0x5dfd21['showDiff'],'areActionsDisabled':_0x5dfd21['areActionsDisabled']}),this['containerView']['on']('toggleSuggestionDisplayMode',(_0x1e9ff4,_0x3085d8)=>{this['fire']('toggleSuggestionDisplayMode',{'replyId':this['options']['id'],'showDiff':_0x3085d8['showDiff']});}),this['containerView']['on']('like',()=>{this['fire']('like',{'replyId':this['options']['id']});}),this['containerView']['on']('dislike',()=>{this['fire']('dislike',{'replyId':this['options']['id']});}),this['containerView']['on']('showChangeInText',(_0x5908c2,{index:_0x441b9d})=>{this['fire']('showChangeInText',{'replyId':this['options']['id'],'partIndex':_0x441b9d});}),this['containerView']['on']('insertSuggestion',(_0xd5ff3a,{index:_0x476477})=>{this['fire']('insertSuggestion',{'replyId':this['options']['id'],'partIndex':_0x476477});}),this['containerView']['on']('rejectSuggestion',(_0x192590,{index:_0x214ed0})=>{this['fire']('rejectSuggestion',{'replyId':this['options']['id'],'partIndex':_0x214ed0});}),this['containerView']['on']('mouseOverSuggestion',(_0x440370,{index:_0x3b4565})=>{this['fire']('mouseOverSuggestion',{'replyId':this['options']['id'],'partIndex':_0x3b4565});}),this['containerView']['on']('mouseLeaveSuggestion',(_0x158e27,{index:_0x143ffa})=>{this['fire']('mouseLeaveSuggestion',{'replyId':this['options']['id'],'partIndex':_0x143ffa});}),this['actionsView']=new AIChatFeedSuggestionItemActionsView(_0x25dd25,this['options']['dropdownConfig']),this['actionsView']['bind']('isTrackChangesOn')['to'](this,'isTrackChangesOn'),this['actionsView']['on']('showChangeInText',()=>{this['fire']('showChangeInText',{'replyId':this['options']['id']});}),this['actionsView']['on']('insertSuggestion',()=>{this['fire']('insertSuggestion',{'replyId':this['options']['id']});}),this['actionsView']['on']('applySuggestion',()=>{this['fire']('applySuggestion',{'replyId':this['options']['id']});}),_0x5dfd21['areActionsDisabled']?this['actionsView']['isEnabled']=!0x1:this['actionsView']['bind']('isEnabled')['to'](this['containerView']['bodyView'],'hasPendingParts'),this['children']['addMany']([this['containerView'],this['actionsView']]),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__ai-suggestion']}});}async['updateContent'](_0x494f34){await this['containerView']['updateContent'](_0x494f34),this['actionsView']['updateLabels'](this['containerView']['bodyView']['partsCount']);}['updatePartState'](_0x4450dd,_0x572467){this['containerView']['bodyView']['updatePartState'](_0x4450dd,_0x572467);}['updateSources'](_0xdece2f){this['containerView']['updateSources'](_0xdece2f);}['getPartView'](_0x30701b){return this['containerView']['bodyView']['getPartView'](_0x30701b);}['markAsDone'](){super['markAsDone'](),this['containerView']['markAsDone'](),this['actionsView']['isVisible']=this['containerView']['bodyView']['hasNonEmptyParts'];}}class AIChatFeedReplyItemView extends AIChatFeedItemView{['replyContainer'];constructor(_0x129636,_0xaae656){super(_0xaae656),this['locale']=_0x129636,this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__ai-reply']}}),this['replyContainer']=new View(),this['replyContainer']['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-ai-chat__feed__ai-reply-container']}}),this['children']['add'](this['replyContainer']);}async['render'](){super['render'](),this['options']['initialContent']&&(await this['updateContent']({'parsedContent':parse$2(this['options']['initialContent']),'renderingStrategy':'static'}),this['markAsDone']());}async['updateContent']({parsedContent:_0x314b50,renderingStrategy:_0x699943,abortSignal:_0x4b17cc}){'streaming'===_0x699943?await this['streamIntoElement'](_0x314b50,this['replyContainer']['element'],_0x4b17cc):this['replyContainer']['element']['innerHTML']=render(_0x314b50);}['updateSources'](_0x46dfa2){const _0xe5f365=new AIWebSourcesView(this['locale']);_0xe5f365['children']['addMany'](_0x46dfa2['map'](_0x1fc894=>new AIWebSourceView(this['locale'],_0x1fc894))),_0xe5f365['isVisible']=!0x0,this['children']['add'](_0xe5f365);}}const CONTEXT_TYPES_TO_ICONS={'file':IconFileUpload,'document':IconDocument$1,'web-resource':IconLink,'text':IconFileUpload,'selection':IconSelection},TOOLTIP_MAX_CHAR_LENGTH=0x78,CSS_CLASSES$7={'contextChip':'ck-ai-chat-context-chip','contextChipWide':'ck-ai-chat-context-chip_wide','contextChipDocument':'ck-ai-chat-context-chip_document','contextChipLabel':'ck-ai-chat-context-chip__label','contextChipTypeIcon':'ck-ai-chat-context-chip__type-icon','chipTooltip':'ck-ai-chat-context-controls__chip-tooltip'},TOOLTIP_CONFIG={'position':'n'};class AIChatContextItemButtonView extends ButtonView{constructor(_0x294b3c,_0x223bcc,_0xbcce50,_0x1c4d73,_0x2ada5a=!0x1){super(_0x294b3c),this['_isAnimationOnEnterEnabled']=_0x1c4d73,this['_initializeProperties'](_0x223bcc,_0xbcce50,_0x2ada5a),this['_setupTemplate']();}['render'](){super['render'](),this['_isAnimationOnEnterEnabled']&&this['element']&&(this['element']['classList']['add']('ck-ai-chat-context-chip_new-chip'),this['_handleAnimationEndOnce'](this['element'],()=>{this['element']&&this['element']['classList']['remove']('ck-ai-chat-context-chip_new-chip');}));}['disableAnimationOnEnter'](){this['_isAnimationOnEnterEnabled']=!0x1,this['element']&&this['element']['classList']['remove']('ck-ai-chat-context-chip_new-chip');}['_initializeProperties'](_0x2c0d71,_0x129db9,_0x83e51a){this['set']('label',_0x2c0d71['label']),this['set']('tooltip',!0x0),this['set']('itemType',_0x2c0d71['type']),this['set']('id',_0x2c0d71['uiId']),this['set']('readonly',_0x129db9),this['set']('isLoading',_0x83e51a);}['_setupTemplate'](){const _0x4d2ff9=this['_createIconView'](),_0x517c2a=this['_createRemoveButton'](),_0x545490=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':this['_createTemplateAttributes'](_0x545490),'children':this['_createTemplateChildren'](_0x4d2ff9,_0x517c2a,_0x545490)});}['_createTemplateAttributes'](_0x205d73){return{'class':[CSS_CLASSES$7['contextChip'],_0x205d73['if']('itemType',CSS_CLASSES$7['contextChipDocument'],_0x355f43=>'document'==_0x355f43),_0x205d73['if']('itemType',CSS_CLASSES$7['contextChipWide'],_0xcf3d74=>'selection'==_0xcf3d74)],'data-cke-tooltip-text':_0x205d73['to']('label',getTooltipForLabel),'data-cke-tooltip-position':TOOLTIP_CONFIG['position'],'data-cke-tooltip-class':CSS_CLASSES$7['chipTooltip']};}['_createTemplateChildren'](_0x3332c1,_0x21b930,_0x45fede){const _0x4a06dc=this['_createLabelElement'](_0x45fede),_0x187fd9=this['_createLoaderIcon']();return this['readonly']?[_0x3332c1,_0x4a06dc]:[_0x3332c1,_0x187fd9,_0x4a06dc,_0x21b930];}['_createLabelElement'](_0x392d6e){return{'tag':'span','attributes':{'class':CSS_CLASSES$7['contextChipLabel']},'children':[{'text':_0x392d6e['to']('label')}]};}['_createRemoveButton'](){const _0x1c29a2=new ButtonView(this['locale']);return _0x1c29a2['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT'),'icon':IconClose}),this['_setupRemoveButtonEvent'](_0x1c29a2),_0x1c29a2;}['_setupRemoveButtonEvent'](_0x1801ae){_0x1801ae['on']('execute',()=>{this['fire']('removeContextItemChip',this['id']);});}['_createIconView'](){const _0x5ad786=this['bindTemplate'],_0x5f7803=new IconView();return _0x5f7803['content']=CONTEXT_TYPES_TO_ICONS[this['itemType']],_0x5f7803['extendTemplate']({'attributes':{'class':[CSS_CLASSES$7['contextChipTypeIcon'],_0x5ad786['if']('isLoading','ck-hidden',_0xe614a6=>_0xe614a6)]}}),_0x5f7803;}['_handleAnimationEndOnce'](_0x475ac1,_0x4b4fac){if(!_0x475ac1)return;const _0x4cf23e=()=>{_0x4b4fac(),_0x475ac1['removeEventListener']('animationend',_0x4cf23e),_0x475ac1['removeEventListener']('webkitAnimationEnd',_0x4cf23e);};_0x475ac1['addEventListener']('animationend',_0x4cf23e),_0x475ac1['addEventListener']('webkitAnimationEnd',_0x4cf23e);}['_createLoaderIcon'](){const _0x2412f1=new AISpinnerView('small');return _0x2412f1['bind']('isVisible')['to'](this,'isLoading',_0x23013e=>_0x23013e),_0x2412f1;}}function getTooltipForLabel(_0x41a09e){if(!_0x41a09e)return _0x41a09e;if(_0x41a09e['length']<=TOOLTIP_MAX_CHAR_LENGTH)return _0x41a09e;const _0x500eb5=_0x41a09e['slice'](0x0,TOOLTIP_MAX_CHAR_LENGTH),_0x49a9f1=_0x500eb5['lastIndexOf']('\x20');return(_0x49a9f1>0x0?_0x500eb5['slice'](0x0,_0x49a9f1):_0x500eb5)+'…';}const DEFAULT_CONFIG={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},FALLBACK_CONTAINER_WIDTH='300px';class AIChatChipsOverflowManager{['_locale'];['_config'];['_visibleChips'];['_overflowChips'];['_showMoreButtonView']=null;['_showMoreBalloonPanelView']=null;['_containerElement']=null;['_bodyCollection'];['_parentView']=null;['_intersectionObserver']=null;['_pendingCalculation']=!0x1;constructor(_0x9684ef,_0x28b9e2,_0x4cbeef,_0xd125ef,_0x189a91){this['_locale']=_0x9684ef,this['_visibleChips']=_0x28b9e2,this['_config']={...DEFAULT_CONFIG,..._0x4cbeef,'cssClasses':{'controlsButton':'','calculationContainer':'ck-calculation-container',..._0x4cbeef['cssClasses']}},this['_overflowChips']=new Collection(),this['_bodyCollection']=_0xd125ef,this['_parentView']=_0x189a91||null;}['setContainerElement'](_0x1bb128){this['_intersectionObserver']&&(this['_intersectionObserver']['disconnect'](),this['_intersectionObserver']=null),this['_containerElement']=_0x1bb128,this['_setupVisibilityObserver']();}get['showMoreButtonView'](){return this['_showMoreButtonView'];}get['overflowChips'](){return this['_overflowChips'];}['reorganizeChips'](){requestAnimationFrame(()=>{this['_checkAndHandleOverflow']();});}['showBalloonPanel'](){this['_showMoreButtonView']&&this['_showMoreBalloonPanelView']&&(this['_updateBalloonContent'](),this['_showMoreButtonView']['isOn']=!0x0,this['_showMoreBalloonPanelView']['show'](),this['_showMoreBalloonPanelView']['pin']({'target':this['_showMoreButtonView']['element'],'limiter':document['querySelector']('.ck-ai-chat')}));}['hideBalloonPanel'](){this['_showMoreButtonView']&&this['_showMoreBalloonPanelView']&&(this['_showMoreButtonView']['isOn']=!0x1,this['_showMoreBalloonPanelView']['hide']());}['clear'](){this['_overflowChips']['clear'](),this['hideBalloonPanel'](),this['_updateShowMoreButtonVisibility'](),this['_showMoreButtonView']&&(this['_showMoreButtonView']['label']=''),this['_showMoreBalloonPanelView']&&this['_showMoreBalloonPanelView']['content']['clear']();}['destroy'](){this['_intersectionObserver']&&(this['_intersectionObserver']['disconnect'](),this['_intersectionObserver']=null),this['_showMoreButtonView']&&(this['_showMoreButtonView']['destroy'](),this['_showMoreButtonView']=null),this['_showMoreBalloonPanelView']&&(this['_showMoreBalloonPanelView']['destroy'](),this['_showMoreBalloonPanelView']=null);}['_checkAndHandleOverflow'](){if(!this['_containerElement'])return;if(!this['_isContainerVisible']())return void(this['_pendingCalculation']=!0x0);this['_pendingCalculation']=!0x1;const _0x234437=[...this['_visibleChips'],...this['_overflowChips']],_0x5c59d0=this['_createCalculationContainer'](),_0x1c9b1b=this['_calculateOverflowInContainer'](_0x5c59d0,_0x234437),_0x474e79=_0x5c59d0['_ancestorsToRestore'];_0x474e79&&this['_restoreAncestorVisibility'](_0x474e79),_0x5c59d0['remove'](),this['_applyOverflowResults'](_0x234437,_0x1c9b1b);}['_createShowMoreButton'](){this['_showMoreButtonView']=this['_createShowMoreButtonView'](),this['_showMoreBalloonPanelView']=this['_createShowMoreBalloonPanelView'](),this['_showMoreButtonView']['render'](),this['_containerElement']['appendChild'](this['_showMoreButtonView']['element']),this['_showMoreButtonView']['on']('execute',()=>{this['_handleShowMoreButtonClick']();}),clickOutsideHandler({'emitter':this['_showMoreBalloonPanelView'],'contextElements':[this['_showMoreBalloonPanelView']['element'],this['_showMoreButtonView']['element']],'callback':()=>this['hideBalloonPanel'](),'activator':()=>this['_showMoreButtonView']['isOn']});}['_createShowMoreButtonView'](){const _0x44a337=new ButtonView(this['_locale']);_0x44a337['set']({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x255451=[this['_config']['cssClasses']['showMoreButton']];return this['_config']['cssClasses']['controlsButton']&&_0x255451['push'](this['_config']['cssClasses']['controlsButton']),_0x44a337['extendTemplate']({'attributes':{'class':_0x255451}}),_0x44a337;}['_createShowMoreBalloonPanelView'](){const _0x397c=new BalloonPanelView(this['_locale']);return _0x397c['extendTemplate']({'attributes':{'class':this['_config']['cssClasses']['showMoreBalloon']}}),this['_bodyCollection']['add'](_0x397c),_0x397c;}['_updateBalloonContent'](){if(this['_showMoreBalloonPanelView']&&(this['_showMoreBalloonPanelView']['content']['clear'](),this['_overflowChips']['length']>0x0)){this['_overflowChips']['forEach'](_0x4ea899=>{_0x4ea899['disableAnimationOnEnter']();});const _0x30b05e=new View(this['_locale']);_0x30b05e['setTemplate']({'tag':'div','attributes':{'class':this['_config']['cssClasses']['overflowContainer']},'children':this['_overflowChips']}),this['_showMoreBalloonPanelView']['content']['add'](_0x30b05e);}}['_handleShowMoreButtonClick'](){this['_showMoreButtonView']['isOn']?this['hideBalloonPanel']():this['showBalloonPanel']();}['_updateShowMoreButtonVisibility'](){const _0x838057=this['_overflowChips']['length']>0x0;this['_showMoreButtonView']?.['element']&&(this['_showMoreButtonView']['element']['style']['display']=_0x838057?'':'none');}['_repinBalloonPanel'](){this['_showMoreButtonView']?.['isOn']&&this['_showMoreBalloonPanelView']?.['isVisible']&&this['_showMoreButtonView']['element']&&this['_showMoreBalloonPanelView']['pin']({'target':this['_showMoreButtonView']['element'],'limiter':document['querySelector']('.ck-ai-chat')});}['_findTargetContainer'](_0x116f3a){const _0x2a6957=this['_containerElement']?.['tagName']['toLowerCase']()||'div',_0x29a1c5=this['_containerElement']?.['classList'];if(_0x29a1c5){const _0x3009e5=_0x29a1c5[0x0]||'',_0x488804=_0x116f3a['querySelector']('.'+_0x3009e5),_0x5b6302=_0x116f3a['querySelector'](_0x2a6957);return _0x488804||_0x5b6302||_0x116f3a;}return _0x116f3a['querySelector'](_0x2a6957)||_0x116f3a;}['_calculateContainerWidth'](){const _0x36c828=this['_parentView']?.['element']||this['_containerElement'];if(!_0x36c828)return FALLBACK_CONTAINER_WIDTH;const _0x2deafd=window['getComputedStyle'](_0x36c828)['width'];if('auto'===_0x2deafd||'0px'===_0x2deafd||!_0x2deafd){const _0x3e314e=_0x36c828['parentElement'];if(_0x3e314e){const _0x22651a=window['getComputedStyle'](_0x3e314e);return'auto'!==_0x22651a['width']?_0x22651a['width']:FALLBACK_CONTAINER_WIDTH;}return FALLBACK_CONTAINER_WIDTH;}return _0x2deafd;}['_applyCalculationStyles'](_0x2b380b,_0x439028){this['_config']['cssClasses']['calculationContainer']&&_0x2b380b['classList']['add'](this['_config']['cssClasses']['calculationContainer']),_0x2b380b['style']['width']=_0x439028,_0x2b380b['style']['position']='absolute',_0x2b380b['style']['top']='-9999px',_0x2b380b['style']['left']='-9999px',_0x2b380b['style']['opacity']='0',_0x2b380b['style']['pointerEvents']='none',_0x2b380b['style']['zIndex']='-1',_0x2b380b['style']['visibility']='visible\x20!important',_0x2b380b['style']['display']='block\x20!important',_0x2b380b['style']['boxSizing']='border-box';}['_restoreAncestorVisibility'](_0x3b6f3d){_0x3b6f3d['forEach'](({element:_0x501c6e,originalDisplay:_0x2d8c78,originalVisibility:_0x47c117})=>{_0x501c6e['style']['display']=_0x2d8c78,_0x501c6e['style']['visibility']=_0x47c117;});}['_makeAncestorsVisible'](_0x501392){const _0x29711a=[];let _0x507c48=_0x501392;for(;_0x507c48&&_0x507c48!==document['body'];){const _0x2412d6=window['getComputedStyle'](_0x507c48);'none'!==_0x2412d6['display']&&'hidden'!==_0x2412d6['visibility']||(_0x29711a['push']({'element':_0x507c48,'originalDisplay':_0x507c48['style']['display'],'originalVisibility':_0x507c48['style']['visibility']}),_0x507c48['style']['display']='block',_0x507c48['style']['visibility']='visible'),_0x507c48=_0x507c48['parentElement'];}return _0x29711a;}['_createContainerElements'](){let _0x47fbaf,_0x269f40;return this['_parentView']?.['element']?(_0x47fbaf=this['_parentView']['element']['cloneNode'](!0x0),_0x269f40=this['_findTargetContainer'](_0x47fbaf)):(_0x47fbaf=document['createElement']('div'),_0x269f40=_0x47fbaf),{'calculationContainer':_0x47fbaf,'targetContainer':_0x269f40};}['_createCalculationContainer'](){const {calculationContainer:_0x245964,targetContainer:_0x313099}=this['_createContainerElements'](),_0x5e7def=this['_calculateContainerWidth']();this['_applyCalculationStyles'](_0x245964,_0x5e7def);const _0x17c5ed=this['_parentView']?.['element']||this['_containerElement'],_0x1f9c7a=_0x17c5ed?.['parentElement'];_0x1f9c7a?_0x1f9c7a['appendChild'](_0x245964):document['body']['appendChild'](_0x245964),_0x245964['_targetContainer']=_0x313099;const _0x5db01f=this['_makeAncestorsVisible'](_0x1f9c7a||null);return _0x245964['offsetWidth'],_0x245964['_ancestorsToRestore']=_0x5db01f,_0x245964;}['_calculateOverflowInContainer'](_0x2fc197,_0x2b1a1a){const _0x5cf931=_0x2fc197['_targetContainer']||_0x2fc197,_0x4754db=[],{rowCount:_0x474400}=this['_renderChipsAndCountRows'](_0x5cf931,_0x2b1a1a);if(_0x474400<=this['_config']['maxVisibleRows'])return _0x4754db;const _0x5f2811=_0x2b1a1a['slice']();for(;_0x5f2811['length']>0x0;){if(this['_testButtonFit'](_0x2fc197,_0x5cf931,_0x5f2811)){const _0x144af7=_0x2b1a1a['filter'](_0x376a0d=>!_0x5f2811['includes'](_0x376a0d));_0x4754db['push'](..._0x144af7);break;}if(!_0x5f2811['pop']())break;}return _0x4754db;}['_renderChipsAndCountRows'](_0x40cae8,_0x3f2b0d){_0x40cae8['innerHTML']='',_0x3f2b0d['forEach'](_0x3615f2=>{if(_0x3615f2['element']){const _0x469d25=_0x3615f2['element']['cloneNode'](!0x0);_0x40cae8['appendChild'](_0x469d25);}}),_0x40cae8['offsetWidth'];const _0x136b2c=_0x40cae8['children'],_0x3507a5=[];return Array['from'](_0x136b2c)['forEach'](_0x3804a1=>{const _0x5d95a3=_0x3804a1['getBoundingClientRect']()['top'];_0x3507a5['some'](_0x225de7=>Math['abs'](_0x225de7-_0x5d95a3)<this['_config']['rowDetectionTolerance'])||_0x3507a5['push'](_0x5d95a3);}),{'rowCount':_0x3507a5['length']};}['_createMockButton'](){const _0x1fbc2b=document['createElement']('button');return _0x1fbc2b['className']=this['_config']['cssClasses']['showMoreButton'],this['_config']['cssClasses']['controlsButton']&&_0x1fbc2b['classList']['add'](this['_config']['cssClasses']['controlsButton']),_0x1fbc2b['textContent']='+\x201',_0x1fbc2b;}['_testButtonFit'](_0x37b8b9,_0x2b3b40,_0x1b4596){this['_renderChipsAndCountRows'](_0x2b3b40,_0x1b4596);const _0x355b56=this['_createMockButton']();_0x37b8b9['appendChild'](_0x355b56),_0x37b8b9['offsetWidth'];const _0x3c478e=[..._0x2b3b40['children'],_0x355b56],_0x48353b=[];_0x3c478e['forEach'](_0x4d0e3d=>{const _0x3052b9=_0x4d0e3d['getBoundingClientRect']()['top'];_0x48353b['some'](_0x76a7f4=>Math['abs'](_0x76a7f4-_0x3052b9)<this['_config']['rowDetectionTolerance'])||_0x48353b['push'](_0x3052b9);});const _0x12e57b=_0x48353b['length'];return _0x355b56['remove'](),_0x12e57b<=this['_config']['maxVisibleRows'];}['_distributeChips'](_0x359b6a,_0x4d19ee){this['_visibleChips']['clear'](),this['_overflowChips']['clear'](),_0x359b6a['forEach'](_0x390173=>{_0x4d19ee['includes'](_0x390173)?this['_overflowChips']['add'](_0x390173):this['_visibleChips']['add'](_0x390173);});}['_updateOverflowUI'](_0x1db7f3){if(_0x1db7f3>0x0&&!this['_showMoreButtonView']&&this['_createShowMoreButton'](),_0x1db7f3>0x0&&this['_showMoreButtonView']){const _0x1b1c8e=''+this['_config']['showMoreLabelPrefix']+(_0x1db7f3<0x63?_0x1db7f3:'99');this['_showMoreButtonView']['label']=_0x1b1c8e;}this['_updateBalloonContent'](),this['_updateShowMoreButtonVisibility'](),this['_repinBalloonPanel']();}['_applyOverflowResults'](_0x5f1cc4,_0x4f19c5){this['_distributeChips'](_0x5f1cc4,_0x4f19c5),this['_updateOverflowUI'](_0x4f19c5['length']);}['_setupVisibilityObserver'](){this['_containerElement']&&'undefined'!=typeof IntersectionObserver&&(this['_intersectionObserver']=new IntersectionObserver(_0x4820cc=>{_0x4820cc[0x0]['isIntersecting']&&this['_pendingCalculation']&&requestAnimationFrame(()=>{this['_checkAndHandleOverflow']();});},{'threshold':0.01,'rootMargin':'50px'}),this['_intersectionObserver']['observe'](this['_containerElement']));}['_isContainerVisible'](){if(!this['_containerElement'])return!0x1;if(!this['_containerElement']['isConnected'])return!0x1;const _0x3e72a3=this['_containerElement']['getBoundingClientRect']();if(0x0===_0x3e72a3['width']||0x0===_0x3e72a3['height'])return!0x1;const _0x2c6e89=window['innerHeight']||document['documentElement']['clientHeight'],_0x3f849c=window['innerWidth']||document['documentElement']['clientWidth'],_0x25d32d=0xc8;return _0x3e72a3['bottom']>=-0xc8&&_0x3e72a3['top']<=_0x2c6e89+_0x25d32d&&_0x3e72a3['right']>=-0xc8&&_0x3e72a3['left']<=_0x3f849c+_0x25d32d;}}const CSS_CLASSES$6={'CONTEXT_CHIPS':'ck-ai-chat__feed__context-chips','CONTEXT_CHIPS_VISIBLE':'ck-ai-chat-context-chips-wrapper','CONTEXT_CHIPS_OVERFLOW':'ck-ai-chat-context-chips-wrapper-balloon','CONTROLS_BUTTON':'ck-ai-chat-controls-button','SHOW_MORE_BUTTON':'ck-ai-chat-controls_context_show-more-button','SHOW_MORE_BALLOON':'ck-ai-chat-context-controls__show-more-balloon-panel'};class AIChatFeedContextChipsView extends View{['_contextChips']=this['createCollection']();['_overflowManager'];['_bodyCollection'];constructor(_0x5ae71b,_0x152fe3,_0x561b2f){super(_0x5ae71b),this['_bodyCollection']=_0x561b2f,this['_createContextChips'](_0x152fe3);const _0x4e3c88={'cssClasses':{'showMoreButton':CSS_CLASSES$6['SHOW_MORE_BUTTON'],'showMoreBalloon':CSS_CLASSES$6['SHOW_MORE_BALLOON'],'overflowContainer':CSS_CLASSES$6['CONTEXT_CHIPS_OVERFLOW'],'controlsButton':CSS_CLASSES$6['CONTROLS_BUTTON']}};this['_overflowManager']=new AIChatChipsOverflowManager(_0x5ae71b,this['_contextChips'],_0x4e3c88,this['_bodyCollection'],this),this['setTemplate']({'tag':'div','attributes':{'class':[CSS_CLASSES$6['CONTEXT_CHIPS'],'ck','ck-reset_all']},'children':[{'tag':'div','attributes':{'class':CSS_CLASSES$6['CONTEXT_CHIPS_VISIBLE']},'children':this['_contextChips']}]});}['render'](){super['render']();const _0x1aec1d=this['element']['querySelector']('.'+CSS_CLASSES$6['CONTEXT_CHIPS_VISIBLE']);_0x1aec1d&&(this['_overflowManager']['setContainerElement'](_0x1aec1d),this['_overflowManager']['reorganizeChips']());}['destroy'](){super['destroy'](),this['_overflowManager']['destroy']();}['_createContextChips'](_0x1012ec){for(const _0x434b11 of _0x1012ec){const _0x32773a=new AIChatContextItemButtonView(this['locale'],_0x434b11,!0x0,!0x1);this['_contextChips']['add'](_0x32773a);}}}class AIChatFeedUserMessageItemView extends AIChatFeedItemView{['_contextChipsView']=null;['_locale'];['_bodyCollection'];['_messageContentView'];constructor(_0x392289,_0x97b813,_0x219a22){super(_0x97b813),this['_locale']=_0x392289,this['_bodyCollection']=_0x219a22,this['_createContextChipsView'](),this['_createMessageContentView'](),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__user-message']}});}['_createContextChipsView'](){this['options']['contextItems']&&this['options']['contextItems']['length']>0x0&&(this['_contextChipsView']=new AIChatFeedContextChipsView(this['_locale'],this['options']['contextItems']['filter'](_0x5626ba=>!_0x5626ba['hidden']),this['_bodyCollection']),this['_contextChipsView']['extendTemplate']({'attributes':{'class':'ck-ai-chat__feed__context-chips'}}),this['children']['add'](this['_contextChipsView']));}['_createMessageContentView'](){this['_messageContentView']=new View(this['_locale']),this['_messageContentView']['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-chat__feed__message-content'}}),this['children']['add'](this['_messageContentView']);}['render'](){super['render'](),this['_messageContentView']['element']['innerHTML']=this['options']['initialContent'],this['markAsDone']();}}class AIChatFeedInteractionHeaderView extends AIChatFeedItemView{['capabilities'];constructor(_0x2756e0,_0x54836a){super(_0x54836a);const {isWebSearchEnabled:_0xa2f058,isReasoningEnabled:_0x7b30b1}=_0x54836a['capabilities'],_0x580c48=[];let _0x1a4a8a='';_0xa2f058&&_0x7b30b1?(_0x1a4a8a=getTranslation$i(_0x2756e0,'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING'),_0x580c48['push'](createIcon(IconWeb)),_0x580c48['push'](createIcon(IconBulb))):_0xa2f058?(_0x1a4a8a=getTranslation$i(_0x2756e0,'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH'),_0x580c48['push'](createIcon(IconWeb))):_0x7b30b1&&(_0x1a4a8a=getTranslation$i(_0x2756e0,'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING'),_0x580c48['push'](createIcon(IconBulb))),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__interaction-header',_0x1a4a8a?'':'ck-hidden']}});const _0x4bf03a=new View();_0x4bf03a['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__interaction-header__capabilities']},'children':[..._0x580c48,{'tag':'span','attributes':{'class':['ck-ai-chat__feed__interaction-header__capabilities__text']},'children':[_0x1a4a8a]}]}),this['children']['add'](_0x4bf03a),this['capabilities']=_0x54836a['capabilities'];}}function createIcon(_0x3b7768){const _0x820f63=new IconView();return _0x820f63['content']=_0x3b7768,_0x820f63;}const BOTTOM_THRESHOLD=0x5,USER_CANCEL_EVENT_NAMES=['wheel','touchstart','pointerdown','keydown'],USER_CANCEL_SCROLL_KEYS=['ArrowUp','ArrowDown','PageUp','PageDown','Home','End','\x20'];class ScrollManager{['element'];['animationFrameId'];['isRunning'];['abortController'];['isUserPaused'];constructor(_0x465422){this['element']=_0x465422,this['animationFrameId']=null,this['isRunning']=!0x1,this['abortController']=new AbortController(),this['isUserPaused']=!0x1;for(const _0x582e6a of USER_CANCEL_EVENT_NAMES){const _0x13657e='keydown'!==_0x582e6a;this['element']['addEventListener'](_0x582e6a,this['_onUserEvent']['bind'](this),{'passive':_0x13657e,'signal':this['abortController']['signal']});}}['start'](){this['isRunning']||(this['isRunning']=!0x0,this['isUserPaused']=!0x1,this['animationFrameId']=requestAnimationFrame(this['_rafUpdate']['bind'](this)));}['stop'](){requestAnimationFrame(()=>{this['_stop']();});}['destroy'](){this['_stop'](),this['abortController']['abort']();}['_stop'](){null!==this['animationFrameId']&&(cancelAnimationFrame(this['animationFrameId']),this['animationFrameId']=null),this['isRunning']&&(this['isRunning']=!0x1),this['isUserPaused']=!0x1;}['_onUserEvent'](_0x19b536){if(this['isRunning']){if('keydown'===_0x19b536['type']){const _0x1b067b=_0x19b536['key'];if(!USER_CANCEL_SCROLL_KEYS['includes'](_0x1b067b))return;}_0x19b536 instanceof WheelEvent?_0x19b536['deltaY']<0x0?this['isUserPaused']=!0x0:this['isUserPaused']=!this['_isAtBottom']():this['isUserPaused']=!0x0;}}['_isAtBottom'](){const {scrollTop:_0x41e3ba,scrollHeight:_0x111bee,clientHeight:_0x5ed606}=this['element'];return _0x111bee-_0x41e3ba-_0x5ed606<=BOTTOM_THRESHOLD;}['_rafUpdate'](){this['isRunning']&&(this['isUserPaused']||this['element']['scrollTo']({'top':this['element']['scrollHeight'],'behavior':'auto'}),this['animationFrameId']=requestAnimationFrame(this['_rafUpdate']['bind'](this)));}}class AISkeletonView extends View{constructor(_0x540805,_0x3f0c18){super(_0x540805),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-skeleton']},'children':this['_createSkeletonItems'](_0x3f0c18)});}['_createSkeletonItems'](_0x527e42){const _0x45d0f9=['ck','ck-ai-skeleton__item'];return _0x527e42['map'](_0x4efd87=>{let _0x3e69f0='';switch(_0x4efd87['attributes']['align']){case'right':_0x3e69f0='margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;';break;case'center':_0x3e69f0='margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;';break;case'left':_0x3e69f0='margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;';}return{'tag':_0x4efd87['tag'],'attributes':{'class':[..._0x45d0f9,_0x4efd87['attributes']['class']?_0x4efd87['attributes']['class']:''],'style':'width:\x20'+_0x4efd87['attributes']['width']+';\x20height:\x20'+_0x4efd87['attributes']['height']+';'+_0x3e69f0}};});}}const SKELETON_DEFINITIONS={'aiFeed':[{'tag':'div','attributes':{'width':'100%','height':'72px','align':'right'}},{'tag':'div','attributes':{'width':'250px','height':'40px','align':'right'}},{'tag':'div','attributes':{'width':'100%','height':'88px','align':'right'}},{'tag':'div','attributes':{'width':'150px','height':'40px','align':'right'}},{'tag':'div','attributes':{'width':'100%','height':'140px','align':'right'}},{'tag':'div','attributes':{'width':'250px','height':'40px','align':'right'}},{'tag':'div','attributes':{'width':'100%','height':'88px','align':'right'}}],'aiHistory':generateSkeletonDefinitions(0x5,'100%','44px','right'),'aiChatResources':generateSkeletonDefinitions(0x8,'100%','24px','right'),'aiReviewChecks':[{'tag':'div','attributes':{'width':'128px','height':'24px','align':'left'}},{'tag':'div','attributes':{'width':'100%','height':'24px','align':'left'}},{'tag':'div','attributes':{'width':'128px','height':'24px','align':'left'}}]};function generateSkeletonDefinitions(_0x3a5343,_0x3dd32e,_0x55a4dc,_0x1a5a23){return new Array(_0x3a5343)['fill'](null)['map'](()=>({'tag':'div','attributes':{'width':_0x3dd32e,'height':_0x55a4dc,'align':_0x1a5a23}}));}class AIChatFeedView extends View{['children'];['scrollManager'];['_bodyCollection'];constructor(_0x42a272,_0x30352c){super(_0x42a272),this['_bodyCollection']=_0x30352c,this['set']('isPending',!0x1),this['set']('loadingMessage',''),this['set']('isLoadingSkeletonVisible',!0x1),this['set']('isTrackChangesOn',!0x1),this['children']=this['createCollection'](),this['children']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['_setupTemplate']();}['render'](){super['render'](),this['scrollManager']=new ScrollManager(this['element']);}['destroy'](){super['destroy'](),this['scrollManager']['destroy']();}['clear'](){this['children']['clear']();}['addItem'](_0x163db2,_0x1297e5){let _0x3fa26f;'ai-reply'===_0x163db2?_0x3fa26f=new AIChatFeedReplyItemView(this['locale'],_0x1297e5):'ai-suggestion-reply'===_0x163db2?(_0x3fa26f=new AIChatFeedSuggestionItemView(this['locale'],_0x1297e5),_0x3fa26f['bind']('isTrackChangesOn')['to'](this,'isTrackChangesOn')):_0x3fa26f='user-message'===_0x163db2?new AIChatFeedUserMessageItemView(this['locale'],_0x1297e5,this['_bodyCollection']):'interaction-header'===_0x163db2?new AIChatFeedInteractionHeaderView(this['locale'],_0x1297e5):new AIChatFeedErrorItemView(_0x1297e5),this['children']['add'](_0x3fa26f);}async['updateReplyItem']({id:_0x2cb062,parsedContent:_0x3de96b,renderingStrategy:_0x166bef,abortSignal:_0x57544e}){const _0x48f265=this['getItemById'](_0x2cb062);if(!(_0x48f265 instanceof AIChatFeedReplyItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-reply-item',null,{'itemView':_0x48f265,'id':_0x2cb062,'parsedContent':_0x3de96b});await _0x48f265['updateContent']({'parsedContent':_0x3de96b,'renderingStrategy':_0x166bef,'abortSignal':_0x57544e});}async['updateWebSources'](_0x51a637,_0x2722eb){const _0x24e8a2=this['getItemById'](_0x51a637);if(_0x24e8a2 instanceof AIChatFeedSuggestionItemView)_0x24e8a2['updateSources'](_0x2722eb);else{if(!(_0x24e8a2 instanceof AIChatFeedReplyItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-or-reply-item',null,{'itemView':_0x24e8a2,'id':_0x51a637,'sources':_0x2722eb});_0x24e8a2['updateSources'](_0x2722eb);}}async['updateSuggestionItem']({id:_0x53c5f1,parts:_0x1d54fa,renderingStrategy:_0x26434b,abortSignal:_0xdf0374}){const _0x1e7186=this['getItemById'](_0x53c5f1);if(!(_0x1e7186 instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',null,{'itemView':_0x1e7186,'id':_0x53c5f1,'parts':_0x1d54fa});await _0x1e7186['updateContent']({'parts':_0x1d54fa,'renderingStrategy':_0x26434b,'abortSignal':_0xdf0374});}['updateSuggestionPartState']({id:_0x7c81e2,index:_0x418e46,state:_0x4fbc6c}){const _0x2c3bee=this['getItemById'](_0x7c81e2);if(!(_0x2c3bee instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',this,{'id':_0x7c81e2});_0x2c3bee['updatePartState'](_0x418e46,_0x4fbc6c);}['markItemAsDone'](_0xf615cd){this['getItemById'](_0xf615cd)['markAsDone']();}['getItemIds'](){return this['children']['map'](_0x11d401=>_0x11d401['options']['id']);}['removeItem'](_0x5b6907){this['children']['remove'](this['getItemById'](_0x5b6907));}['scrollToSuggestion'](_0x13f16b,_0x46d1a6){const _0x1b9fbb=this['getItemById'](_0x13f16b);if(!(_0x1b9fbb instanceof AIChatFeedSuggestionItemView))return void logWarning('ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item',{'replyId':_0x13f16b,'partIndex':_0x46d1a6});const _0xa85740=_0x1b9fbb['getPartView'](_0x46d1a6);_0xa85740?scrollViewportToShowTarget({'target':_0xa85740['element'],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):logWarning('ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found',{'replyId':_0x13f16b,'partIndex':_0x46d1a6});}['_setupTemplate'](){this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed']},'children':this['_createTemplateChildren']()});}['_createTemplateChildren'](){const _0xe778d4=this['_createSkeletonLoader']();return[this['_createFeedItems'](),_0xe778d4,this['_createFeedLoader']()];}['_createSkeletonLoader'](){const _0x5f32b0=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiFeed']);return _0x5f32b0['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoadingSkeletonVisible','ck-hidden',_0xea5ac1=>!_0xea5ac1)]}}),_0x5f32b0;}['_createFeedItems'](){const _0x28143d=new View(this['locale']);return _0x28143d['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__items',this['bindTemplate']['if']('isLoadingSkeletonVisible','ck-hidden')]},'children':this['children']}),_0x28143d;}['_createFeedLoader'](){const _0xdefea3=new View(this['locale']);return _0xdefea3['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__loader',this['bindTemplate']['if']('isPending','ck-hidden',_0x298f28=>!_0x298f28)]},'children':this['_createLoaderChildren']()}),_0xdefea3;}['_createLoaderChildren'](){const _0x39b174=new AISpinnerView();return _0x39b174['isVisible']=!0x0,[_0x39b174,{'tag':'span','attributes':{'class':['ck','ck-ai-chat__loader-text']},'children':[{'text':this['bindTemplate']['to']('loadingMessage')}]}];}['getItemById'](_0x29d89e){const _0x345e6a=this['children']['find'](_0x1f6d6d=>_0x1f6d6d['options']['id']['includes'](_0x29d89e));if(!_0x345e6a)throw new CKEditorError('ai-chat-feed-view-item-not-found',this,{'id':_0x29d89e});return _0x345e6a;}['setLoadingMessage'](_0x273a9e){this['set']('loadingMessage',_0x273a9e);}['toggleLoadingSkeleton'](_0x32db24){this['set']('isLoadingSkeletonVisible',_0x32db24);}['startAutoScroll'](){this['scrollManager']['start']();}['stopAutoScroll'](){this['scrollManager']['stop']();}}class AIChatPromptSuggestionsListView extends ListView{['filter'](){let _0x24b63c=0x0;for(const _0x1b1283 of this['items'])_0x24b63c+=_0x1b1283['items']['length'];return{'resultsCount':_0x24b63c,'totalItemsCount':_0x24b63c};}}class AIChatPromptInputView extends AutocompleteView{['submitButtonView'];static ['MIN_ROWS']=0x1;static ['MAX_ROWS']=0xc;['_addContextButtonView'];['_queryViewResizeObserver'];constructor(_0x5d784a,_0x79422c){super(_0x5d784a,{'queryView':{'label':'','creator':createLabeledTextarea,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new AIChatPromptSuggestionsListView(_0x5d784a),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this['set']('isEmpty',!0x0),this['set']('isUploadInProgress',!0x1),this['_addContextButtonView']=_0x79422c,this['_queryViewResizeObserver']=null,this['queryView']['fieldView']['minRows']=AIChatPromptInputView['MIN_ROWS'],this['queryView']['fieldView']['maxRows']=AIChatPromptInputView['MAX_ROWS'],this['queryView']['fieldWrapperChildren']['add'](this['_addContextButtonView']),this['_setUpAddContextButtonPositioning'](),this['extendTemplate']({'attributes':{'class':['ck','ck-ai-chat__prompt-input']}}),this['submitButtonView']=this['_createSubmitButton'](),this['submitButtonView']['bind']('isEnabled')['to'](this,'isEmpty',this,'isUploadInProgress',(_0x280abc,_0x581488)=>!_0x280abc&&!_0x581488),this['focusableChildren']['add'](this['submitButtonView']);}['render'](){super['render'](),this['queryView']['fieldWrapperChildren']['add'](this['submitButtonView']),this['keystrokes']['set']('enter',(_0x542cad,_0x3b6807)=>{this['isUploadInProgress']||this['isEmpty']||_0x542cad['target']==this['queryView']['fieldView']['element']&&(this['submit'](),_0x3b6807());}),this['queryView']['fieldView']['on']('update',()=>{this['isEmpty']=''===this['queryView']['fieldView']['element']['value']?.['trim']();});}['destroy'](){super['destroy'](),this['_queryViewResizeObserver']&&this['_queryViewResizeObserver']['destroy']();}['submit'](){const _0x159dc7=this['queryView']['fieldView']['element']['value']?.['trim']();if(!_0x159dc7)return this['queryView']['errorText']=getTranslation$i(this['locale'],'AI_CHAT_PROMPT_EMPTY_ERROR'),void(this['queryView']['fieldView']['hasError']=!0x0);this['queryView']['fieldView']['hasError']=!0x1;const _0x111743=escape(_0x159dc7);this['fire']('sendUserMessage',_0x111743),this['queryView']['fieldView']['reset']();}['setPlaceholderText'](_0x1a7797){this['queryView']['fieldView']['set']('placeholder',_0x1a7797);}['_createSubmitButton'](){const _0x2e5637=new ButtonView(this['locale']);return _0x2e5637['set']({'icon':IconSubmit,'label':getTranslation$i(this['locale'],'AI_CHAT_LABEL_SUBMIT'),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-chat__prompt-submit-button','isEnabled':!0x1}),_0x2e5637['on']('execute',()=>{this['submit']();}),_0x2e5637;}['setIsUploadInProgress'](_0x16127f){this['isUploadInProgress']=_0x16127f;}['_setUpAddContextButtonPositioning'](){const _0x2dc342=this['locale'],_0x2674f5=()=>{_0xd4e5e['window']['requestAnimationFrame'](()=>{if(isVisible(this['element'])){const _0x2bb679=new Rect(this['queryView']['fieldView']['element']),_0x73d114=new Rect(this['_addContextButtonView']['element']),_0x3cb459=_0x2bb679['width'],_0x3503f5='rtl'===_0x2dc342['uiLanguageDirection']?'right':'left';_0x2bb679['excludeScrollbarsAndBorders']();const _0x2a4713=_0x3cb459-_0x2bb679['width']+0x1;this['_addContextButtonView']['element']['style'][_0x3503f5]='calc('+(_0x3cb459-_0x73d114['width']-_0x2a4713)+'px\x20-\x20var(--ck-spacing-tiny))';}});};this['queryView']['fieldView']['on']('update',_0x2674f5),this['on']('render',()=>{_0x2674f5(),this['_queryViewResizeObserver']=new _0xf5cfe0(this['queryView']['fieldView']['element'],()=>{_0x2674f5();});});}}const CSS_CLASSES$5={'PROMPT_CAPABILITIES':'ck-ai-chat__prompt-capabilities','CONTROLS_BUTTON':'ck-ai-chat-controls-button','COMMANDS_BUTTON':'ck-ai-chat-controls-button--commands','MODEL_SELECTION':'ck-ai-chat-controls__model-selection','MODEL_SELECTION_ITEM_NAME':'ck-ai-chat-controls__model-selection__item-name','MODEL_SELECTION_ITEM_DESCRIPTION':'ck-ai-chat-controls__model-selection__item-description','MODEL_SELECTION_ITEM_CAPABILITIES':'ck-ai-chat-controls__model-selection__item-capabilities'},TOOLTIP_POSITION$3='n';class AIChatPromptCapabilitiesView extends View{['_webSearchButton'];['_reasoningButton'];['_commandsButton'];['_modelSelectionDropdown'];['_modelSelectionDropdownItems'];['_modelNameView'];constructor(_0x2629d2){super(_0x2629d2),this['set']('webSearchActive',!0x1),this['set']('reasoningActive',!0x1),this['set']('modelSelectorVisible',!0x0),this['set']('modelSelectorEnabled',!0x0),this['set']('activeModelId',null),this['set']('activeModelName',null),this['_modelSelectionDropdown']=this['_createModelSelectionDropdown'](),this['_modelNameView']=this['_createModelNameView'](),this['_webSearchButton']=this['_createWebSearchButton'](),this['_reasoningButton']=this['_createReasoningButton'](),this['_commandsButton']=this['_createCommandsButton'](),this['_modelSelectionDropdown']['buttonView']['bind']('isVisible')['to'](this,'modelSelectorVisible',_0x31f39e=>_0x31f39e),this['_modelSelectionDropdown']['buttonView']['bind']('tooltip')['to'](this,'modelSelectorEnabled',_0x45a874=>_0x45a874?this['_modelSelectionDropdown']['buttonView']['label']:getTranslation$i(this['locale'],'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP')),this['_modelSelectionDropdown']['bind']('isEnabled')['to'](this,'modelSelectorEnabled',_0x27a00c=>_0x27a00c),this['_webSearchButton']['bind']('isOn')['to'](this,'webSearchActive',_0x53a978=>_0x53a978),this['_webSearchButton']['bind']('withText')['to'](this,'modelSelectorVisible',_0x160507=>!_0x160507),this['_webSearchButton']['bind']('tooltip')['to'](this,'webSearchActive',_0xa37898=>getTranslation$i(this['locale'],_0xa37898?'AI_CHAT_DISABLE_WEB_SEARCH':'AI_CHAT_ENABLE_WEB_SEARCH')),this['_reasoningButton']['bind']('isOn')['to'](this,'reasoningActive',_0x331389=>_0x331389),this['_reasoningButton']['bind']('withText')['to'](this,'modelSelectorVisible',_0x23139c=>!_0x23139c),this['_reasoningButton']['bind']('tooltip')['to'](this,'reasoningActive',_0x20bad4=>getTranslation$i(this['locale'],_0x20bad4?'AI_CHAT_DISABLE_REASONING':'AI_CHAT_ENABLE_REASONING')),this['setTemplate']({'tag':'div','attributes':{'class':[CSS_CLASSES$5['PROMPT_CAPABILITIES']]},'children':[this['_modelSelectionDropdown'],this['_modelNameView'],this['_webSearchButton'],this['_reasoningButton'],this['_commandsButton']]}),this['_modelSelectionDropdownItems']=new Collection(),addListToDropdown(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']);}['setModelList'](_0x559d1a,_0x393d60){if(this['set']('modelSelectorVisible',!(_0x393d60&&_0x559d1a['length']<=0x1)),this['_modelSelectionDropdownItems']['clear'](),_0x559d1a?.['length'])for(const _0x4c78fb of _0x559d1a){const _0x505410=new UIModel({'label':_0x4c78fb['name'],'withText':!0x0,'role':'menuitemradio','id':_0x4c78fb['id'],'model':_0x4c78fb});_0x505410['bind']('isOn')['to'](this,'activeModelId',_0x57edda=>_0x57edda===_0x4c78fb['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x505410,'labelView':new ModelButtonLabelView$1(this['locale'],_0x4c78fb)});}}['setWebSearch'](_0x480de5){this['set']('webSearchActive',_0x480de5);}['setReasoning'](_0x3de10b){this['set']('reasoningActive',_0x3de10b);}['setModel'](_0x4bd85c){if(!_0x4bd85c)return;this['activeModelId']=_0x4bd85c['id'],this['activeModelName']=_0x4bd85c['name']||_0x4bd85c['id'],this['_modelSelectionDropdown']['buttonView']['set']('label',_0x4bd85c['name']),this['_modelSelectionDropdown']['buttonView']['set']('tooltip',_0x4bd85c['name']);const _0xec645b=_0x4bd85c['capabilities']['webSearch']?.['enabled']??!0x1;this['set']('webSearchActive',!0x1),this['_webSearchButton']['set']('isOn',!0x1),this['_webSearchButton']['set']('isEnabled',_0xec645b),this['_webSearchButton']['set']('isVisible',_0xec645b);const _0x4da3cd=_0x4bd85c['capabilities']['reasoning']?.['enabled']??!0x1;this['set']('reasoningActive',!0x1),this['_reasoningButton']['set']('isOn',!0x1),this['_reasoningButton']['set']('isEnabled',_0x4da3cd),this['_reasoningButton']['set']('isVisible',_0x4da3cd);}['enableModelSelector'](){this['set']('modelSelectorEnabled',!0x0),this['set']('modelSelectorVisible',!0x0);}['disableModelSelector'](_0x2689bd){this['set']('modelSelectorEnabled',!0x1),_0x2689bd&&this['set']('modelSelectorVisible',!0x1);}['_createWebSearchButton'](){const _0x5def25=new ButtonView();return _0x5def25['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_SEARCH_WEB'),'icon':IconWeb,'class':CSS_CLASSES$5['CONTROLS_BUTTON'],'isToggleable':!0x0,'tooltipPosition':TOOLTIP_POSITION$3}),_0x5def25['on']('execute',()=>{this['fire']('toggleWebSearch');}),_0x5def25;}['_createReasoningButton'](){const _0x5074c6=new ButtonView();return _0x5074c6['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_REASONING'),'icon':IconBulb,'class':CSS_CLASSES$5['CONTROLS_BUTTON'],'isToggleable':!0x0,'tooltipPosition':TOOLTIP_POSITION$3}),_0x5074c6['on']('execute',()=>{this['fire']('toggleReasoning');}),_0x5074c6;}['_createCommandsButton'](){const _0x210c79=new ButtonView();return _0x210c79['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_COMMANDS'),'icon':IconAI,'withText':!0x0,'class':CSS_CLASSES$5['CONTROLS_BUTTON'],'isToggleable':!0x0,'tooltip':getTranslation$i(this['locale'],'AI_CHAT_COMMANDS'),'tooltipPosition':TOOLTIP_POSITION$3}),_0x210c79['extendTemplate']({'attributes':{'class':[CSS_CLASSES$5['COMMANDS_BUTTON']]}}),_0x210c79['on']('execute',()=>{console['log']('Commands\x20are\x20not\x20implemented\x20yet.'),alert('Commands\x20are\x20not\x20implemented\x20yet.');}),_0x210c79;}['_createModelSelectionDropdown'](){const _0xfef761=createDropdown(this['locale']);return _0xfef761['set']({'panelPosition':'ne','class':[CSS_CLASSES$5['MODEL_SELECTION']]}),_0xfef761['buttonView']['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP'),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION$3}),this['listenTo'](_0xfef761,'execute',_0x501e98=>{this['fire']('selectModel',_0x501e98['source']['model']);}),_0xfef761;}['_createModelNameView'](){const _0x3e53fa=new ModelNameView(this['locale']);return _0x3e53fa['bind']('text')['to'](this,'activeModelName',_0x1122dc=>_0x1122dc??''),_0x3e53fa['bind']('isVisible')['to'](this,'modelSelectorVisible',this,'activeModelName',(_0x255efc,_0x3adb84)=>!_0x255efc&&!_0x3adb84?.['toLowerCase']()['startsWith']('agent')),_0x3e53fa;}}let ModelButtonLabelView$1=class extends ButtonLabelView{constructor(_0x4ecf15,_0x240387){super();const _0x56d861=this['bindTemplate'],_0x2e187d=this['createCollection']();this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x56d861['to']('style'),'id':_0x56d861['to']('id')},'children':[{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_NAME']]},'children':[{'text':_0x56d861['to']('text')}]},{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_DESCRIPTION']]},'children':[{'tag':'span','children':[{'text':_0x240387['description']}]}]},{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_CAPABILITIES']]},'children':_0x2e187d}]}),_0x2e187d['addMany'](this['_getCapabilityParts'](_0x4ecf15,IconWeb,'AI_CHAT_SEARCH_WEB',_0x240387['capabilities']['webSearch']?.['enabled']??!0x1)),_0x2e187d['addMany'](this['_getCapabilityParts'](_0x4ecf15,IconBulb,'AI_CHAT_REASONING',_0x240387['capabilities']['reasoning']?.['enabled']??!0x1));}['_getCapabilityParts'](_0x107de2,_0x4f13a4,_0x28b252,_0x3d4e2a){const _0x4606fe=new IconView();_0x4606fe['content']=_0x4f13a4;const _0x1e1ce4=new View(_0x107de2);_0x1e1ce4['setTemplate']({'tag':'span','children':[{'text':getTranslation$i(_0x107de2,_0x28b252)+':\x20'}]});const _0x3f1653=new View(_0x107de2);return _0x3f1653['setTemplate']({'tag':'span','children':[{'text':getTranslation$i(_0x107de2,_0x3d4e2a?'AI_CHAT_CAPABILITIES_YES':'AI_CHAT_CAPABILITIES_NO')}]}),[_0x4606fe,_0x1e1ce4,_0x3f1653];}};class ModelNameView extends View{constructor(_0x5b0929){super(_0x5b0929),this['set']('text',void 0x0),this['set']('isVisible',!0x0);const _0x207712=this['bindTemplate'];this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-chat-controls__model-name',_0x207712['if']('isVisible','ck-hidden',_0x55253e=>!_0x55253e)]},'children':[{'text':_0x207712['to']('text')}]});}}const CSS_CLASSES$4={'URL_FORM':'ck-ai-chat-context-controls__url-form','URL_INPUT_SECTION':'ck-ai-chat-context-controls__url-input-section'},TOOLTIP_POSITION$2='n';class AIChatContextPanelUrlInputView extends View{['focusTracker'];['keystrokes'];['_focusables'];['focusCycler'];['urlInputField'];['backButton'];['confirmButton'];constructor(_0x30ad80){super(_0x30ad80),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['backButton']=this['_createBackButton'](),this['urlInputField']=this['_createUrlInputField'](),this['confirmButton']=this['_createConfirmButton'](),this['_focusables']=this['createCollection']([this['backButton'],this['urlInputField'],this['confirmButton']]),this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_setupTemplate'](),this['_setupEventHandlers'](),this['_setupKeystrokes']();}['render'](){super['render'](),this['_focusables']['forEach'](_0x11c6c6=>{this['focusTracker']['add'](_0x11c6c6['element']),this['keystrokes']['listenTo'](_0x11c6c6['element']);}),submitHandler({'view':this}),this['focus']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['focus'](){this['urlInputField']['focus']();}['getValue'](){return this['urlInputField']['fieldView']['element']?.['value']?.['trim']()||'';}['clear'](){this['urlInputField']['fieldView']['element']['value']='',this['urlInputField']['errorText']=null,this['confirmButton']['isEnabled']=!0x1;}['setError'](_0x1ba524){this['urlInputField']['errorText']=_0x1ba524,this['_updateConfirmButtonState'](),this['fire']('refreshBalloon');}['clearError'](){this['urlInputField']['errorText']=null,this['_updateConfirmButtonState']();}['_createBackButton'](){const _0x4d7dc6=new ButtonView(this['locale']);return _0x4d7dc6['set']({'icon':IconPreviousArrow,'tooltip':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT'),'tooltipPosition':TOOLTIP_POSITION$2,'class':'ck-button-icon\x20ck-button-back'}),_0x4d7dc6;}['_createUrlInputField'](){const _0x264fe9=new LabeledFieldView(this['locale'],createLabeledInputText);return _0x264fe9['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_LABEL'),'class':'ck-labeled-field-view_empty'}),_0x264fe9['fieldView']['set']({'placeholder':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_PLACEHOLDER')}),_0x264fe9;}['_createConfirmButton'](){const _0x4b87bf=new ButtonView(this['locale']);return _0x4b87bf['set']({'icon':_0x2a9685,'tooltip':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_ADD_URL'),'tooltipPosition':TOOLTIP_POSITION$2,'class':'ck-button-icon','type':'submit','isEnabled':!0x1}),_0x4b87bf;}['_setupTemplate'](){const _0x4ce0f5=new FormHeaderView(this['locale'],{'label':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_ADD_URL'),'class':'ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url'});_0x4ce0f5['children']['add'](this['backButton'],0x0),this['setTemplate']({'tag':'form','attributes':{'class':CSS_CLASSES$4['URL_FORM'],'tabindex':'-1'},'children':[_0x4ce0f5,{'tag':'div','attributes':{'class':CSS_CLASSES$4['URL_INPUT_SECTION']},'children':[this['urlInputField'],this['confirmButton']]}]});}['_setupEventHandlers'](){this['backButton']['on']('execute',()=>{this['clear'](),this['fire']('cancel');}),this['urlInputField']['fieldView']['on']('input',()=>{this['clearError'](),this['_updateConfirmButtonState'](),this['fire']('refreshBalloon');}),this['on']('submit',_0x8d49c5=>{_0x8d49c5['stop'](),this['_handleSubmit']();});}['_setupKeystrokes'](){this['keystrokes']['set']('esc',(_0x11ab0b,_0x3fbf5e)=>{this['clear'](),this['fire']('cancel'),_0x3fbf5e();});}['_handleSubmit'](){const _0x35920a=this['getValue']()['trim']();_0x35920a?this['_isValidUrl'](_0x35920a)?(this['clearError'](),this['fire']('submitUrl',_0x35920a)):this['setError'](getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_INVALID_ERROR')):this['setError'](getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_EMPTY_ERROR'));}['_updateConfirmButtonState'](){const _0x9c5f3=this['getValue']()['trim'](),_0x363959=!!this['urlInputField']['errorText'];this['confirmButton']['isEnabled']=_0x9c5f3['length']>0x0&&!_0x363959;}['_isValidUrl'](_0x18bbce){try{return!!new URL(_0x18bbce);}catch{return!0x1;}}}const CSS_CLASSES$3={'ITEM':'ck-ai-chat-resources__item','ITEM_IN_CONTEXT':'ck-ai-chat-resources__item--in-context','ITEM_TITLE':'ck-ai-chat-resources__item-title','ITEM_ICON':'ck-ai-chat-resources__item__icon'};class AIChatResourceListItemView extends ListItemView{['resource'];['_titleView'];['_iconView'];constructor(_0x136d53,_0x513de9){super(_0x136d53),this['resource']=_0x513de9,this['set']('isInContext',!!_0x513de9['isInContext']),this['_titleView']=this['_createTitleView'](),this['_iconView']=this['_createIconView'](),this['_setupTemplate']();}['render'](){super['render']();}['getResourceIcon'](_0x1dab29){if(_0x1dab29['isInContext'])return _0x2a9685;switch(_0x1dab29['type']){case AIContextItemType['DOCUMENT']:return IconDocument$1;case AIContextItemType['URL']:return IconLink;case AIContextItemType['FILE']:case AIContextItemType['TEXT']:return IconFileUpload;default:return IconDocumentOutline;}}['highlightText'](_0x24c482){if(!_0x24c482||''===_0x24c482['trim']())return void this['_titleView']['highlightText'](null);const _0x25f559=new RegExp(escapeRegExp$1(_0x24c482),'gi');this['_titleView']['highlightText'](_0x25f559);}['updateResourceState'](_0x4c4fbb){this['resource']['isInContext']=_0x4c4fbb,this['isInContext']=_0x4c4fbb,this['_updateIcon']();}['_createTitleView'](){const _0x5cc58d=new HighlightedTextView();return _0x5cc58d['text']=this['resource']['label'],_0x5cc58d['extendTemplate']({'tag':'span','attributes':{'class':[CSS_CLASSES$3['ITEM_TITLE']]}}),_0x5cc58d;}['_createIconView'](){const _0x200787=new IconView();return _0x200787['content']=this['getResourceIcon'](this['resource']),_0x200787;}['_setupTemplate'](){const _0x311d5e=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':[CSS_CLASSES$3['ITEM'],_0x311d5e['if']('isVisible','ck-hidden',_0x5297d6=>!_0x5297d6),_0x311d5e['if']('isInContext',CSS_CLASSES$3['ITEM_IN_CONTEXT'])]},'children':[{'tag':'div','attributes':{'class':[CSS_CLASSES$3['ITEM_ICON']]},'children':[this['_iconView']]},this['_titleView']],'on':{'click':_0x311d5e['to']('execute')}});}['_updateIcon'](){this['_iconView']['content']=this['getResourceIcon'](this['resource']);}}const CSS_CLASSES$2={'LIST':'ck-ai-chat-resources__list'};class AIChatContextResourcesListView extends ListView{['_source'];constructor(_0xc68a3e,_0x1dbe47){super(_0xc68a3e),this['_source']=_0x1dbe47,this['extendTemplate']({'attributes':{'class':[CSS_CLASSES$2['LIST']]}});}['setResources'](_0x1a3787,_0x3a24bd){this['items']['clear']();let _0x11408b=_0x1a3787;if(this['_source']['useDefaultFiltering']&&_0x3a24bd&&''!==_0x3a24bd['trim']()){const _0x24d1f5=new RegExp(_0x3a24bd['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),'gi');_0x11408b=_0x1a3787['filter'](_0x59bd9b=>_0x24d1f5['test'](_0x59bd9b['label']));}for(const _0x4355af of _0x11408b){const _0x5c378e=new AIChatResourceListItemView(this['locale'],_0x4355af);_0x5c378e['on']('execute',()=>{this['_handleResourceSelection'](this['_source'],_0x4355af);}),this['items']['add'](_0x5c378e);}this['_source']['useDefaultFiltering']&&this['highlightText'](_0x3a24bd);}['highlightText'](_0x4fe33b){this['_source']['useDefaultFiltering']&&this['items']['forEach'](_0x204166=>{_0x204166['highlightText'](_0x4fe33b);});}['updateResourceState'](_0x1bd63e,_0x46ed6c){for(const _0x56b20c of this['items']){const _0x567ee1=_0x56b20c;_0x567ee1['resource']['id']===_0x1bd63e&&_0x567ee1['updateResourceState'](_0x46ed6c);}}['_handleResourceSelection'](_0x3afe52,_0x3a580a){this['fire']('addResourceToContext',{'source':_0x3afe52,'resource':_0x3a580a});}}class AIChatContextResourcesSearchInputView extends LabeledFieldView{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0xa7423e){const t=_0xa7423e['t'],_0x21d198={'showResetButton':!0x0,'showIcon':!0x0,'creator':createLabeledInputText,'label':getTranslation$i(_0xa7423e,'AI_CHAT_SEARCH_RESOURCES')};super(_0xa7423e,_0x21d198['creator']),this['label']=_0x21d198['label'],this['_viewConfig']=_0x21d198,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0xa7423e,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x4106a2){this['fire']('search',_0x4106a2);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new IconView(),this['iconView']['content']=IconLoupe,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0xf95c9e,t){this['resetButtonView']=new ButtonView(_0xf95c9e),this['resetButtonView']['set']({'label':t('Clear'),'icon':IconCancel,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x23e86d=>!_0x23e86d),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}class AIChatContextResourcesView extends View{['_searchView'];['_resourcesListView'];['_skeletonLoader'];['_source'];['children'];['_latestLoadResourcesUid']=null;constructor(_0x10dab1,_0x2657f3){super(_0x10dab1),this['_source']=_0x2657f3,this['set']('isLoading',!0x0),this['_searchView']=this['_createSearchView']();const _0x2b872a=this['_createSearchSection']();this['_resourcesListView']=this['_createResourcesListView'](),this['_skeletonLoader']=this['_createSkeletonView'](),this['children']=new ViewCollection([_0x2b872a,this['_skeletonLoader'],this['_resourcesListView']]),this['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-chat-resources'},'children':this['children']});}['_createSearchView'](){return new AIChatContextResourcesSearchInputView(this['locale']);}['_createSearchSection'](){const _0x3d6432=new View(this['locale']);return _0x3d6432['setTemplate']({'tag':'div','attributes':{'class':'ck\x20ck-search'},'children':[this['_searchView']]}),this['_searchView']['on']('search',(_0x5ed5c3,_0x85e98c)=>{this['loadResources'](_0x85e98c),this['_source']['useDefaultFiltering']&&this['_resourcesListView']['highlightText'](_0x85e98c);}),_0x3d6432;}['_createResourcesListView'](){const _0x120e12=new AIChatContextResourcesListView(this['locale'],this['_source']);return _0x120e12['delegate']('addResourceToContext')['to'](this),_0x120e12['extendTemplate']({'attributes':{'class':this['bindTemplate']['if']('isLoading','ck-hidden')}}),_0x120e12;}['_createSkeletonView'](){const _0x8a9311=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiChatResources']);return _0x8a9311['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoading','ck-hidden',_0x13316c=>!_0x13316c)]}}),_0x8a9311;}['render'](){super['render'](),this['loadResources']('');}['loadResources'](_0x23938c){const _0x54f4d1=uid();this['_latestLoadResourcesUid']=_0x54f4d1,this['fire']('loadSourceResources',{'sourceId':this['_source']['id'],'query':_0x23938c,'uid':_0x54f4d1}),this['isLoading']=!0x0;}['setResources'](_0x1698f7,_0x9822ca){if(_0x9822ca&&_0x9822ca!==this['_latestLoadResourcesUid'])return;const _0x2885b7=this['_source']['useDefaultFiltering']?this['_searchView']['getQuery']():'';this['_resourcesListView']['setResources'](_0x1698f7,_0x2885b7),requestAnimationFrame(()=>{this['isLoading']=!0x1;});}['updateResourceState'](_0x71f2e3,_0x3e3618){this['_resourcesListView']['updateResourceState'](_0x71f2e3,_0x3e3618);}}const CSS_CLASSES$1={'SOURCE_BALLOON_PANEL':'ck-ai-chat-context-controls__source-balloon-panel','SOURCE_BACK_BUTTON':'ck-button-icon\x20ck-button-back','SOURCE_HEADER':'ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source'},TOOLTIP_POSITION$1='n';class AIChatResourcesBalloonView{['_sourceResourceBalloons']=new Map();['_bodyCollection'];['_locale'];['_config'];constructor(_0x30daf8,_0x45e8cd,_0x437c58){this['_locale']=_0x30daf8,this['_bodyCollection']=_0x45e8cd,this['_config']=_0x437c58;}['showSourceResourcesBalloon'](_0x3a68c9){let _0x53cedd=this['_sourceResourceBalloons']['get'](_0x3a68c9['id']);_0x53cedd||(_0x53cedd=this['_createSourceResourceBalloonPanel'](),this['_sourceResourceBalloons']['set'](_0x3a68c9['id'],_0x53cedd),this['_setupSingleResourceBalloonClickOutsideHandler'](_0x53cedd)),this['_addSourceResourceContent'](_0x53cedd,_0x3a68c9),_0x53cedd['show']();const _0x18408e=this['_config']['getTargetElement']();_0x18408e&&_0x53cedd['pin']({'target':_0x18408e,'limiter':this['_config']['getLimiterElement']()});}['populateSourceResourceBalloon'](_0x51d0f6,_0x2913da,_0x5c7d02){const _0x5c6ee8=this['_sourceResourceBalloons']['get'](_0x51d0f6);if(!_0x5c6ee8)return;const _0x32125c=this['_getResourcesViewFromBalloon'](_0x5c6ee8);_0x32125c&&_0x32125c['setResources'](_0x2913da,_0x5c7d02);}['closeSourceResourceBalloon'](_0x19974b){const _0x568ba5=this['_sourceResourceBalloons']['get'](_0x19974b);_0x568ba5&&requestAnimationFrame(()=>{_0x568ba5['hide'](),this['_sourceResourceBalloons']['delete'](_0x19974b),this['_config']['onBalloonClosed']();});}['isAnyResourceBalloonVisible'](){for(const _0x2b7cda of this['_sourceResourceBalloons']['values']())if(_0x2b7cda['isVisible'])return!0x0;return!0x1;}['updateResourceState'](_0x46461f,_0x4f5342,_0x5bc77d){const _0x91e998=this['_sourceResourceBalloons']['get'](_0x46461f);if(!_0x91e998||!_0x91e998['isVisible'])return;const _0x232efe=this['_config']['getTargetElement']();if(!_0x232efe)return;_0x91e998['pin']({'target':_0x232efe,'limiter':this['_config']['getLimiterElement']()});const _0x1ac067=this['_getResourcesViewFromBalloon'](_0x91e998);_0x1ac067&&_0x1ac067['updateResourceState'](_0x4f5342,_0x5bc77d);}['destroy'](){for(const _0x51ab68 of this['_sourceResourceBalloons']['values']())_0x51ab68['destroy']();this['_sourceResourceBalloons']['clear']();}['_createSourceResourceBalloonPanel'](){const _0x4a0043=new BalloonPanelView(this['_locale']);return _0x4a0043['extendTemplate']({'attributes':{'class':CSS_CLASSES$1['SOURCE_BALLOON_PANEL']}}),this['_bodyCollection']['add'](_0x4a0043),_0x4a0043;}['_addSourceResourceContent'](_0x1f73e3,_0x2cb1fa){_0x1f73e3['content']['clear']();const _0x5ce05e=this['_createBalloonHeader'](_0x1f73e3,_0x2cb1fa);_0x1f73e3['content']['add'](_0x5ce05e);const _0x19ca16=this['_createBalloonResourcesView'](_0x2cb1fa);_0x1f73e3['content']['add'](_0x19ca16);}['_createBalloonHeader'](_0x16f819,_0x1dc138){const _0x425efb=this['_createBackButton'](_0x16f819),_0x69a63=new FormHeaderView(this['_locale'],{'label':_0x1dc138['label'],'class':CSS_CLASSES$1['SOURCE_HEADER']});return _0x69a63['children']['add'](_0x425efb,0x0),_0x69a63;}['_createBackButton'](_0x1d3c5e){const _0x387bad=new ButtonView(this['_locale']);return _0x387bad['set']({'icon':IconPreviousArrow,'tooltip':getTranslation$i(this['_locale'],'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT'),'tooltipPosition':TOOLTIP_POSITION$1,'class':CSS_CLASSES$1['SOURCE_BACK_BUTTON']}),_0x387bad['on']('execute',()=>{_0x1d3c5e['hide'](),this['_config']['onBackToContext']();}),_0x387bad;}['_createBalloonResourcesView'](_0x332e31){const _0x39389f=new AIChatContextResourcesView(this['_locale'],_0x332e31);return _0x39389f['on']('loadSourceResources',(_0x413546,_0xb8f8b4)=>{this['_config']['onLoadSourceResources'](_0xb8f8b4);}),_0x39389f['on']('addResourceToContext',(_0x5f21db,_0x5067ee)=>{this['_config']['onResourceSelected'](_0x5067ee['source'],_0x5067ee['resource']),this['closeSourceResourceBalloon'](_0x332e31['id']);}),_0x39389f;}['_getResourcesViewFromBalloon'](_0x1021ba){const _0x3c26ca=_0x1021ba['content']['get'](0x1);return _0x3c26ca instanceof AIChatContextResourcesView?_0x3c26ca:null;}['_setupSingleResourceBalloonClickOutsideHandler'](_0x181884){clickOutsideHandler({'emitter':_0x181884,'contextElements':[_0x181884['element']],'callback':()=>{_0x181884['hide'](),this['_config']['onBalloonClosed']();},'activator':()=>_0x181884['isVisible']});}}const CONTEXT_PANEL_VIEW_EVENT_NAMES=['addDocumentToContext','addFileToContext','addUrlToContext','addResourceToContext','removeContextItem','loadSourceResources'],CSS_CLASSES={'CONTEXT_CONTROLS':'ck-ai-chat-context-controls','PENDING_CONTEXTS':'ck-ai-chat-context-controls__pending-contexts','ADD_CONTEXT_BALLOON':'ck-ai-chat-context-controls__add-context-balloon-panel','ADD_CONTEXT_BUTTON':'ck-ai-chat-context-controls__add-context-button','URL_BALLOON':'ck-ai-chat-context-controls__url-balloon-panel','BALLOON_BUTTON':'ck-ai-chat-context-controls__balloon-button','BALLOON_BUTTON_SOURCE':'ck-ai-chat-context-controls__balloon-button-source','CONTROLS_BUTTON':'ck-ai-chat-controls-button','CONVERSATION_CONTEXT_CHIPS':'ck-ai-chat-context-chips-wrapper-balloon','SHOW_MORE_BUTTON':'ck-ai-chat-controls_context_show-more-button','SHOW_MORE_BALLOON':'ck-ai-chat-context-controls__show-more-balloon-panel','CHAT_CONTAINER':'ck-ai-chat'},TOOLTIP_POSITION='sw',BALLOON_POSITIONS=[BalloonPanelView['defaultPositions']['northArrowSouthWest'],BalloonPanelView['defaultPositions']['northArrowSouth'],BalloonPanelView['defaultPositions']['northArrowSouthEast'],BalloonPanelView['defaultPositions']['southArrowNorthWest'],BalloonPanelView['defaultPositions']['southArrowNorth'],BalloonPanelView['defaultPositions']['southArrowNorthEast']];class AIChatContextPanelView extends View{['addContextButtonView'];['_currentContextsChips']=this['createCollection']();['_conversationContextsChips']=this['createCollection']();['_overflowManager'];['_addContextBalloonPanelView'];['_urlBalloonPanelView'];['_urlInputView'];['_resourcesBalloonView'];['_addContextBalloonConfig'];['bodyCollection'];constructor(_0x239d61,_0x144fe5){super(_0x239d61),this['bodyCollection']=_0x144fe5,this['_currentContextsChips']=this['createCollection'](),this['_conversationContextsChips']=this['createCollection'](),this['addContextButtonView']=this['_createAddContextButtonView'](_0x239d61),this['_addContextBalloonPanelView']=this['_createAddContextBalloonPanelView'](_0x239d61),this['_urlBalloonPanelView']=this['_createUrlBalloonPanelView'](_0x239d61),this['_resourcesBalloonView']=this['_createResourcesBalloonView'](_0x239d61,_0x144fe5);const _0x525146={'cssClasses':{'showMoreButton':CSS_CLASSES['SHOW_MORE_BUTTON'],'showMoreBalloon':CSS_CLASSES['SHOW_MORE_BALLOON'],'overflowContainer':CSS_CLASSES['CONVERSATION_CONTEXT_CHIPS'],'controlsButton':CSS_CLASSES['CONTROLS_BUTTON']}};this['_overflowManager']=new AIChatChipsOverflowManager(_0x239d61,this['_currentContextsChips'],_0x525146,this['bodyCollection'],this),this['_addContextBalloonConfig']={'buttonView':this['addContextButtonView'],'balloonView':this['_addContextBalloonPanelView'],'hideMethod':this['hideAddContextBalloonPanel']['bind'](this),'showMethod':this['showAddContextBalloonPanel']['bind'](this)},this['_setupTemplate'](),this['_bindEventHandlers']();}['render'](){super['render'](),this['_setupAllBalloonClickOutsideHandlers'](),this['_overflowManager']['setContainerElement'](this['element']),this['_overflowManager']['reorganizeChips']();}['destroy'](){super['destroy'](),this['_overflowManager']['destroy'](),this['_resourcesBalloonView']['destroy']();}['addContextItem'](_0x398f98,_0x58a012){const _0x59de7c=this['_createContextButton'](_0x398f98,'current',!0x0,_0x58a012);this['_addContextToCollection'](_0x59de7c,this['_currentContextsChips']),this['_overflowManager']['reorganizeChips']();}['removeContextItem'](_0x3d5b31){this['_removeContextFromCollection'](_0x3d5b31,this['_currentContextsChips']),this['_removeContextFromCollection'](_0x3d5b31,this['_overflowManager']['overflowChips']),this['_overflowManager']['reorganizeChips']();}['setContextItemLoading'](_0x4bebbd,_0x4906ff){let _0x52d270=this['_currentContextsChips']['find'](_0x352c58=>_0x352c58['id']===_0x4bebbd);_0x52d270||(_0x52d270=this['_overflowManager']['overflowChips']['find'](_0x2928c9=>_0x2928c9['id']===_0x4bebbd)),_0x52d270&&(_0x52d270['isLoading']=_0x4906ff);}['setConversationContext'](_0x289af1){this['_conversationContextsChips']['clear']();for(const _0x25f037 of _0x289af1){const _0x58ae27=this['_createContextButton'](_0x25f037,'conversation',!0x1,!0x1);this['_addContextToCollection'](_0x58ae27,this['_conversationContextsChips']);}}['clearCurrentContextItems'](){this['_currentContextsChips']['clear'](),this['_overflowManager']['clear']();}['clearConversationContextItems'](){this['_conversationContextsChips']['clear']();}['updateResourceState'](_0xe64f3f,_0x5ba4d0,_0x2a89f8){this['_resourcesBalloonView']['updateResourceState'](_0xe64f3f,_0x5ba4d0,_0x2a89f8);}['hideAddContextBalloonPanel'](){this['_toggleAddContextBalloon'](!0x1);}['showAddContextBalloonPanel'](){this['_toggleAddContextBalloon'](!0x0);}['hideUrlBalloonPanel'](){this['_urlBalloonPanelView']['hide'](),this['addContextButtonView']['isOn']=!0x1,this['_urlInputView']&&this['_urlInputView']['clear']();}['showUrlBalloonPanel'](){this['_urlBalloonPanelView']['show'](),this['addContextButtonView']['isOn']=!0x0;}['_showSourceResourcesBalloon'](_0x3c6bfa){this['_resourcesBalloonView']['showSourceResourcesBalloon'](_0x3c6bfa),this['addContextButtonView']['isOn']=!0x0;}['populateSourceResourceBalloon'](_0x23c14b,_0x2cfa88,_0x4751a3,_0x810005){this['_resourcesBalloonView']['populateSourceResourceBalloon'](_0x23c14b,_0x4751a3,_0x810005);}['closeSourceResourceBalloon'](_0x1b4297){this['_resourcesBalloonView']['closeSourceResourceBalloon'](_0x1b4297),this['addContextButtonView']['isOn']=!0x1;}['setAddContextOptions'](_0x3e5698){this['_setBalloonPanelContent'](this['_addContextBalloonPanelView'],this['locale'],_0x3e5698),this['_setAddContextButtonEnabled'](_0x3e5698);}['_setAddContextButtonEnabled'](_0xf0c745){const _0x29d9c5=!_0xf0c745['document']['isHidden']&&_0xf0c745['document']['enabled'],_0x20bccd=_0xf0c745['urls']['enabled'],_0x21870c=_0xf0c745['files']['enabled'];this['addContextButtonView']['isEnabled']=_0x29d9c5||_0x20bccd||_0x21870c;}['_setupTemplate'](){this['setTemplate']({'tag':'div','attributes':{'class':[CSS_CLASSES['CONTEXT_CONTROLS'],'ck-reset_all-excluded']},'children':[{'tag':'div','attributes':{'class':CSS_CLASSES['PENDING_CONTEXTS']},'children':this['_currentContextsChips']}]});}['_bindEventHandlers'](){this['addContextButtonView']['on']('execute',()=>{this['_handleAddContextButtonClick']();});}['_createAddContextButtonView'](_0x5fbf86){const _0xe6a4d5=new ButtonView(_0x5fbf86);return _0xe6a4d5['set']({'label':getTranslation$i(_0x5fbf86,'AI_CHAT_CONTEXT_ADD_CONTEXT'),'class':CSS_CLASSES['CONTROLS_BUTTON']+'\x20'+CSS_CLASSES['ADD_CONTEXT_BUTTON'],'icon':IconPaperClip,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION}),_0xe6a4d5;}['_createAddContextBalloonPanelView'](_0x5e5398){return this['_createBaseBalloonPanel'](_0x5e5398,CSS_CLASSES['ADD_CONTEXT_BALLOON']);}['_createUrlBalloonPanelView'](_0x517cb8){const _0x27964e=this['_createBaseBalloonPanel'](_0x517cb8,CSS_CLASSES['URL_BALLOON']);return this['_addUrlContent'](_0x27964e,_0x517cb8),_0x27964e;}['_createResourcesBalloonView'](_0x4f82e4,_0x52bcc0){const _0x4b5632={'onBackToContext':()=>{this['showAddContextBalloonPanel'](),this['_addContextBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS});},'onResourceSelected':(_0xa8d956,_0x32cf9d)=>{this['fire']('addResourceToContext',{'source':_0xa8d956,'resource':_0x32cf9d});},'onLoadSourceResources':_0x395649=>{this['fire']('loadSourceResources',_0x395649);},'onBalloonClosed':()=>{this['addContextButtonView']['isOn']=!0x1;},'getLimiterElement':()=>this['_getLimiterElement'](),'getTargetElement':()=>this['addContextButtonView']['element']};return new AIChatResourcesBalloonView(_0x4f82e4,_0x52bcc0,_0x4b5632);}['_getLimiterElement'](){return this['element']?.['closest']('.'+CSS_CLASSES['CHAT_CONTAINER'])||document['body'];}['_createBaseBalloonPanel'](_0x1b6838,_0x1a6cb1){const _0x223522=new BalloonPanelView(_0x1b6838);return _0x223522['extendTemplate']({'attributes':{'class':_0x1a6cb1}}),this['bodyCollection']['add'](_0x223522),_0x223522;}['_setBalloonPanelContent'](_0x55516d,_0x4727bf,_0x22c856){if(_0x55516d['content']['clear'](),!_0x22c856['document']['isHidden']&&_0x22c856['document']['enabled']){const _0x2eae7b=this['_createBalloonButton'](_0x4727bf,{'label':getTranslation$i(_0x4727bf,'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'),'icon':IconDocument$1});_0x2eae7b['on']('execute',()=>{this['fire']('addDocumentToContext'),this['hideAddContextBalloonPanel']();}),_0x55516d['content']['add'](_0x2eae7b);}if(_0x22c856['urls']['enabled']){const _0x33007c=this['_createBalloonButton'](_0x4727bf,{'label':getTranslation$i(_0x4727bf,'AI_CHAT_CONTEXT_URL_LABEL'),'icon':IconLink});_0x33007c['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['showUrlBalloonPanel'](),this['_urlBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS}),this['_urlInputView']['focus']();}),_0x55516d['content']['add'](_0x33007c);}if(_0x22c856['files']['enabled']){const _0x3f98cb=new FileDialogButtonView(_0x4727bf);_0x3f98cb['set']({'label':getTranslation$i(_0x4727bf,'AI_CHAT_CONTEXT_FILE_LABEL'),'icon':IconBrowseFiles,'withText':!0x0,'tooltip':!0x0,'class':CSS_CLASSES['BALLOON_BUTTON'],'allowMultipleFiles':!0x0}),_0x3f98cb['on']('done',(_0x4ca143,_0x2ff7c9)=>{this['fire']('addFileToContext',_0x2ff7c9),this['hideAddContextBalloonPanel']();}),_0x3f98cb['tooltip']=!0x0,_0x55516d['content']['add'](_0x3f98cb);}for(const _0x627a96 of _0x22c856['sources']){const _0x12f257=this['_createBalloonButton'](_0x4727bf,{'label':_0x627a96['label'],'icon':_0x627a96['icon']||IconDocumentOutline,'type':'source'});_0x55516d['content']['add'](_0x12f257),_0x12f257['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['_showSourceResourcesBalloon'](_0x627a96);});}}['_addUrlContent'](_0x4f3e79,_0x4e63a9){this['_urlInputView']=new AIChatContextPanelUrlInputView(_0x4e63a9),this['_urlInputView']['on']('submitUrl',(_0xdeee15,_0x205fc1)=>{this['_handleUrlSubmit'](_0x205fc1);}),this['_urlInputView']['on']('cancel',()=>{this['hideUrlBalloonPanel'](),this['showAddContextBalloonPanel'](),this['_addContextBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS});}),this['_urlInputView']['on']('refreshBalloon',()=>{this['_urlBalloonPanelView']['isVisible']&&this['_urlBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS});}),_0x4f3e79['content']['add'](this['_urlInputView']);}['_createBalloonButton'](_0x281f71,_0x5b6342){const _0xbb663e='source'===_0x5b6342['type']?new SourcesBalloonButtonView(_0x281f71):new ButtonView(_0x281f71);return _0xbb663e['set']({'label':_0x5b6342['label'],'icon':_0x5b6342['icon'],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION,'class':CSS_CLASSES['BALLOON_BUTTON']}),_0xbb663e;}['_setupAllBalloonClickOutsideHandlers'](){this['_setupAddContextBalloonClickOutsideHandler'](),this['_setupUrlBalloonClickOutsideHandler']();}['_setupUrlBalloonClickOutsideHandler'](){clickOutsideHandler({'emitter':this['_urlBalloonPanelView'],'contextElements':[this['_urlBalloonPanelView']['element']],'callback':()=>{this['hideUrlBalloonPanel']();},'activator':()=>this['_urlBalloonPanelView']['isVisible']});}['_toggleAddContextBalloon'](_0x3c7a6e){const _0x239df3=this['_addContextBalloonConfig'];_0x239df3['buttonView']['isOn']=_0x3c7a6e,_0x3c7a6e?_0x239df3['balloonView']['show']():_0x239df3['balloonView']['hide']();}['_setupAddContextBalloonClickOutsideHandler'](){const {balloonView:_0x2168cf,buttonView:_0x10bc76,hideMethod:_0x245441}=this['_addContextBalloonConfig'];clickOutsideHandler({'emitter':_0x2168cf,'contextElements':[_0x2168cf['element'],_0x10bc76['element']],'callback':()=>{_0x245441();},'activator':()=>_0x10bc76['isOn']&&!this['_urlBalloonPanelView']['isVisible']&&!this['_resourcesBalloonView']['isAnyResourceBalloonVisible']()});}['_createContextButton'](_0x33f30d,_0x2b7f79,_0x43cc62=!0x1,_0x5904b0=!0x1){const _0x274fef='conversation'===_0x2b7f79||!0x0===_0x33f30d['isReadOnly'],_0x23baed=new AIChatContextItemButtonView(this['locale'],_0x33f30d,_0x274fef,_0x43cc62,_0x5904b0);return _0x274fef||_0x23baed['on']('removeContextItemChip',()=>{this['fire']('removeContextItem',_0x23baed['id']);}),_0x23baed;}['_addContextToCollection'](_0x117505,_0x4efe79){_0x4efe79['add'](_0x117505,0x0);}['_removeContextFromCollection'](_0x417434,_0x442040){const _0x3cd1da=_0x442040['find'](_0x322d3c=>_0x322d3c['id']===_0x417434);_0x3cd1da&&_0x442040['remove'](_0x3cd1da);}['_handleAddContextButtonClick'](){this['addContextButtonView']['isOn']?this['hideAddContextBalloonPanel']():(this['showAddContextBalloonPanel'](),this['_addContextBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS}));}['_handleUrlSubmit'](_0x5c18c4){this['_urlInputView']['clear'](),this['hideUrlBalloonPanel'](),this['fire']('addUrlToContext',_0x5c18c4);}}class SourcesBalloonButtonView extends ButtonView{['arrowView'];constructor(_0x513ec7){super(_0x513ec7),this['set']({'withText':!0x0,'role':'menuitem'}),this['arrowView']=this['_createArrowView'](),this['extendTemplate']({'attributes':{'class':[CSS_CLASSES['BALLOON_BUTTON_SOURCE']]}});}['render'](){super['render'](),this['children']['add'](this['arrowView']);}['_createArrowView'](){const _0x10655a=new IconView();return _0x10655a['content']=IconDropdownArrow,_0x10655a['extendTemplate']({'attributes':{'class':CSS_CLASSES['BALLOON_BUTTON_SOURCE']+'__arrow'}}),_0x10655a;}}class AIChatControlsLoaderView extends View{['_cancelButtonView'];['_loaderView'];constructor(_0x3eebe5){super(_0x3eebe5),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_loaderView']=this['_createLoaderView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-controls-loader-wrapper','ck-reset_all']},'children':[this['_loaderView'],this['_cancelButtonView']]});}['_createCancelButtonView'](){const _0x121643=new ButtonView(this['locale']);return _0x121643['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_STOP_GENERATING'),'withText':!0x0,'class':'ai-chat-controls-loader__cancel-button','icon':IconStop}),_0x121643['on']('execute',()=>{this['fire']('abortPromptStream');}),_0x121643;}['_createLoaderView'](){const _0x450024=new View(this['locale']);return _0x450024['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-controls-loader']},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-controls-loader-icon']},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-controls-loader-icon-dot']}},{'tag':'div','attributes':{'class':['ck-ai-chat-controls-loader-icon-dot']}},{'tag':'div','attributes':{'class':['ck-ai-chat-controls-loader-icon-dot']}}]},{'text':getTranslation$i(this['locale'],'AI_CHAT_IS_WRITING')}]}),_0x450024;}}class AIChatControlsView extends View{['_displayedModels']=[];['_contextPanelView'];['_promptInputView'];['_promptCapabilitiesView'];['_loaderView'];['_modelUnavailableMessageView'];['_shouldRestorePromptInputFocus'];constructor(_0x5a9c3c,_0x8b20b9){super(_0x5a9c3c),this['_contextPanelView']=this['_createContextPanelView'](_0x5a9c3c,_0x8b20b9),this['_promptInputView']=this['_createPromptInputView'](_0x5a9c3c),this['_promptCapabilitiesView']=this['_createPromptCapabilitiesView'](_0x5a9c3c),this['_loaderView']=this['_createLoaderView'](_0x5a9c3c),this['_modelUnavailableMessageView']=this['_createModelUnavailableMessageView'](_0x5a9c3c),this['_shouldRestorePromptInputFocus']=!0x1,this['_promptInputView']['delegate']('sendUserMessage')['to'](this),this['_loaderView']['delegate']('abortPromptStream')['to'](this),this['_promptCapabilitiesView']['delegate']('toggleWebSearch')['to'](this),this['_promptCapabilitiesView']['delegate']('toggleReasoning')['to'](this),this['_promptCapabilitiesView']['delegate']('selectModel')['to'](this),this['_contextPanelView']['delegate'](...CONTEXT_PANEL_VIEW_EVENT_NAMES)['to'](this),this['set']('isModelAvailable',!0x0),this['set']('isDisabled',!0x1);const _0x420aeb=this['bindTemplate'];this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-ai-chat-controls',_0x420aeb['if']('isDisabled','ck-ai-chat-controls-disabled')]},'children':[{'tag':'div','attributes':{'class':[_0x420aeb['if']('isLoading','ck-hidden',_0xfc7ed8=>_0xfc7ed8||!this['isModelAvailable']),_0x420aeb['if']('isModelAvailable','ck-hidden',_0x52a349=>!_0x52a349||this['isLoading'])]},'children':[this['_contextPanelView'],this['_promptInputView'],this['_promptCapabilitiesView']]},{'tag':'div','attributes':{'class':[_0x420aeb['if']('isLoading','ck-hidden',_0x239476=>!_0x239476)]},'children':[this['_loaderView']]},{'tag':'div','attributes':{'class':[_0x420aeb['if']('isModelAvailable','ck-hidden',_0x52ca11=>_0x52ca11)]},'children':[this['_modelUnavailableMessageView']]}]}),clickOutsideHandler({'emitter':this['_promptInputView'],'activator':()=>this['isLoading'],'contextElements':()=>[this['element']],'callback':()=>{this['_shouldRestorePromptInputFocus']=!0x1;}}),this['on']('change:isLoading',this['_handlePromptInputFocus'],{'priority':'low'});}['_createContextPanelView'](_0x140139,_0x1f19de){return new AIChatContextPanelView(_0x140139,_0x1f19de);}['_createPromptInputView'](_0x5a2c9f){return new AIChatPromptInputView(_0x5a2c9f,this['_contextPanelView']['addContextButtonView']);}['_createPromptCapabilitiesView'](_0x58e0b8){return new AIChatPromptCapabilitiesView(_0x58e0b8);}['_createLoaderView'](_0x2d87d1){return new AIChatControlsLoaderView(_0x2d87d1);}['_createModelUnavailableMessageView'](_0x5c2fad){const _0x48af35=new AIChatModelUnavailableMessageView(_0x5c2fad);return _0x48af35['delegate']('startConversation')['to'](this),_0x48af35;}['_handlePromptInputFocus'](_0x208fc0,_0x4021f1,_0x262baf){_0x262baf?this['_shouldRestorePromptInputFocus']=!0x0:this['_shouldRestorePromptInputFocus']&&this['_promptInputView']['focus']();}['addContextItem'](_0x1411aa,_0x273008){this['_contextPanelView']['addContextItem'](_0x1411aa,_0x273008);}['removeContextItem'](_0x3c1061){this['_contextPanelView']['removeContextItem'](_0x3c1061);}['setContextItemLoading'](_0x3b23ac,_0x1b604d){this['_contextPanelView']['setContextItemLoading'](_0x3b23ac,_0x1b604d);}['setIsUploadInProgress'](_0x258f8a){this['_promptInputView']['setIsUploadInProgress'](_0x258f8a);}['setConversationContext'](_0x116ce9){this['_contextPanelView']['setConversationContext'](_0x116ce9);}['clearPendingContextUI'](){this['_contextPanelView']['clearCurrentContextItems']();}['clearConversationContextUI'](){this['_contextPanelView']['clearConversationContextItems']();}['updateResourceState'](_0x4e737d,_0x1560cf,_0x423548){this['_contextPanelView']['updateResourceState'](_0x4e737d,_0x1560cf,_0x423548);}['setWebSearch'](_0x487610){this['_promptCapabilitiesView']['setWebSearch'](_0x487610);}['setReasoning'](_0x18f595){this['_promptCapabilitiesView']['setReasoning'](_0x18f595);}['resetMessageInput'](){this['_promptInputView']['reset']();}['setAddContextOptions'](_0x1a25a0){this['_contextPanelView']['setAddContextOptions'](_0x1a25a0);}['setInputPlaceholder'](_0x96f121){this['_promptInputView']['setPlaceholderText'](_0x96f121);}['setModelList'](_0x594d55,_0x4c104c){this['_displayedModels']=_0x594d55,this['_promptCapabilitiesView']['setModelList'](_0x594d55,_0x4c104c);}['setModel'](_0x3d6375){const _0x51090b=_0x3d6375?this['_displayedModels']['find'](_0x4e563c=>_0x4e563c['id']===_0x3d6375['id']):null;_0x51090b?(this['isModelAvailable']=!0x0,this['_promptCapabilitiesView']['setModel'](_0x3d6375)):_0x3d6375?.['id']['startsWith']('agent')?(this['isModelAvailable']=!0x0,this['_promptCapabilitiesView']['setModel'](this['_displayedModels'][0x0])):this['isModelAvailable']=!0x1;}['enableModelSelector'](){this['_promptCapabilitiesView']['enableModelSelector']();}['disableModelSelector'](_0x475d78){this['_promptCapabilitiesView']['disableModelSelector'](_0x475d78);}['populateSourceResourceBalloon'](_0x219c1a,_0x5458e8,_0x56e4e1,_0x11bad5){this['_contextPanelView']['populateSourceResourceBalloon'](_0x219c1a,_0x5458e8,_0x56e4e1,_0x11bad5);}['closeSourceResourceBalloon'](_0x1a0338){this['_contextPanelView']['closeSourceResourceBalloon'](_0x1a0338);}['focusPromptInput'](){this['_promptInputView']['focus']();}}class AIChatModelUnavailableMessageView extends View{constructor(_0x49490e){super(_0x49490e);const _0x3dde61=new ButtonView(_0x49490e);_0x3dde61['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON'),'withText':!0x0,'class':['ck-ai-chat-controls__start-new-chat-button'],'tooltip':''}),_0x3dde61['delegate']('execute')['to'](this,'startConversation'),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-controls-model-unavailable-message']},'children':[{'tag':'p','children':[{'text':getTranslation$i(this['locale'],'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT')+'\x20'},_0x3dde61]}]});}}class AIChatHeaderView extends FormHeaderView{['conversationStartButton'];['resizeButton'];constructor(_0x322d36,_0x4bbe37){super(_0x322d36,{'label':getTranslation$i(_0x322d36,'AI_CHAT_HEADING'),'class':'ck-ai-header\x20ck-ai-header_chat','icon':IconAIChat}),this['set']('isMaximized',!0x1),this['conversationStartButton']=this['_createStartConversationButton'](_0x322d36),this['children']['add'](this['conversationStartButton']),_0x4bbe37&&(this['resizeButton']=createResizeButton(_0x322d36,this),this['children']['add'](this['resizeButton']));}['_createStartConversationButton'](_0x22834f){const _0x993237=new ButtonView(_0x22834f);return _0x993237['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_LABEL_NEW_CHAT'),'withText':!0x0,'icon':IconPlus,'class':'ck-ai-chat__start-conversation'}),_0x993237['on']('execute',()=>{this['fire']('startConversation');}),_0x993237;}}class AIDisclaimerView extends View{constructor(_0x1371c0){super(_0x1371c0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-disclaimer']},'children':[{'tag':'p','attributes':{'class':['ck','ck-ai-disclaimer__content']},'children':[{'text':getTranslation$i(_0x1371c0,'AI_DISCLAIMER_TEXT')}]}]});}}class AIChatView extends View{['chatHeader'];['chatFeed'];['chatControls'];['chatDisclaimer'];['_bodyCollection'];constructor(_0x19d2fd,_0x20622e){super(_0x19d2fd),this['_bodyCollection']=new BodyCollection(_0x19d2fd),this['_bodyCollection']['attachToDom'](),this['chatHeader']=new AIChatHeaderView(_0x19d2fd,_0x20622e),this['chatHeader']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatFeed']=new AIChatFeedView(_0x19d2fd,this['_bodyCollection']),this['chatFeed']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatControls']=new AIChatControlsView(_0x19d2fd,this['_bodyCollection']),this['chatControls']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatDisclaimer']=new AIDisclaimerView(_0x19d2fd),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-chat','ck-rounded-corners'],'dir':_0x19d2fd['uiLanguageDirection']},'children':[this['chatHeader'],this['chatFeed'],this['chatControls'],this['chatDisclaimer']]});}['populateSourceResourceBalloon'](_0x260989,_0x161440,_0x42b8c2,_0x4fb9b8){this['chatControls']['populateSourceResourceBalloon'](_0x260989,_0x161440,_0x42b8c2,_0x4fb9b8);}['closeSourceResourceBalloon'](_0xbd53d6){this['chatControls']['closeSourceResourceBalloon'](_0xbd53d6);}['destroy'](){this['_bodyCollection']['detachFromDom'](),super['destroy']();}}const AI_CHAT_TITLE_ANIMATION_INTERVAL=0x1e;class AIChatUI extends ContextPlugin{static get['requires'](){return[AITabs];}['_view'];static get['pluginName'](){return'AIChatUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['feedItemRenderingStrategy']='streaming';['showDiff']=!0x0;['_promiseQueue'];['_interactionPromiseResolver'];['_titleAnimationInterval']=void 0x0;['_isTrackChangesCommandValueBound']=!0x1;constructor(_0x58279d){super(_0x58279d);const _0x205181=this['context']['plugins']['get']('AITabs');this['set']('isBusy',!0x1),this['_promiseQueue']=new PromiseQueue(),this['_view']=new AIChatView(this['context']['locale'],_0x205181['showResizeButton']),this['_view']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['_view']['on']('toggleSuggestionDisplayMode',(_0xa283d0,{showDiff:_0x2bdfb2})=>{this['showDiff']=_0x2bdfb2;}),_0x205181['view']['addTab']({'id':'chat','buttonLabel':getTranslation$i(this['context']['locale'],'AI_CHAT_HEADING'),'buttonIcon':IconAIChat,'order':0x0,'content':this['_view']}),this['_view']['chatControls']['bind']('isLoading')['to'](this,'isBusy',_0x30ddcc=>_0x30ddcc),this['_view']['chatFeed']['bind']('isPending')['to'](this,'isBusy',_0x44835b=>_0x44835b),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder']()),this['bind']('isModelAvailable')['to'](this['_view']['chatControls'],'isModelAvailable');}['destroy'](){super['destroy'](),this['_titleAnimationInterval']&&clearInterval(this['_titleAnimationInterval']);}['createConversation'](_0x2943c0){this['_view']['chatFeed']['clear'](),this['_view']['chatControls']['enableModelSelector'](),this['_view']['chatControls']['setModelList'](_0x2943c0['availableModels'],!this['context']['config']['get']('ai.chat.models.modelSelectorAlwaysVisible')),this['addFeedItemStaticMessage']({'id':'conversation-start','staticMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_WELCOME_MESSAGE')});}['addFeedItemStaticMessage']({id:_0x50d091,staticMessage:_0x4a9eec}){this['_view']['chatFeed']['addItem']('ai-reply',{'id':_0x50d091,'initialContent':'<p>'+_0x4a9eec+'</p>'});}['addFeedItemUserMessage'](_0x80e57){const _0x143372=_0x80e57['quickActionData']?.['displayedPrompt']||_0x80e57['userMessage'];this['_view']['chatFeed']['addItem']('user-message',{'contextItems':Array['from'](_0x80e57['contextItems']['values']()),'initialContent':'<p>'+_0x143372+'</p>','id':_0x80e57['id']});}['addFeedItemError']({errorMessage:_0xd95300,id:_0x3a1b64}){this['_view']['chatFeed']['addItem']('error-message',{'initialContent':'<p>'+_0xd95300+'</p>','id':_0x3a1b64});}['addFeedItemAIReply'](_0x33c340){return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-reply',{'id':_0x33c340['interactionId']+':'+_0x33c340['id']}),this['setLoadingMessage'](null);});}async['addFeedItemAISuggestion'](_0x45baab){const _0x3c9640=getEditorFromContext(this['context']);if(_0x3c9640){const _0x3a9b69=_0x3c9640['commands']['get']('trackChanges');_0x3a9b69&&!this['_isTrackChangesCommandValueBound']&&(this['_isTrackChangesCommandValueBound']=!0x0,this['_view']['chatFeed']['bind']('isTrackChangesOn')['to'](_0x3a9b69,'value'));}return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-suggestion-reply',{'id':_0x45baab['interactionId']+':'+_0x45baab['id'],'areActionsDisabled':_0x45baab['areActionsDisabled'],'showDiff':this['showDiff'],'dropdownConfig':this['context']['config']['get']('ai.availableReplyActions')}),this['setLoadingMessage'](null);});}['addFeedInteractionHeader'](_0x288dd2,_0xd8e9af){const _0x1b31f4=this['_view']['chatFeed']['children']['last'];if(_0x1b31f4 instanceof AIChatFeedInteractionHeaderView)return this['_view']['chatFeed']['children']['remove'](_0x1b31f4),void this['_view']['chatFeed']['addItem']('interaction-header',{'id':_0x288dd2['id'],'capabilities':{'isWebSearchEnabled':_0x1b31f4['capabilities']['isWebSearchEnabled']||_0xd8e9af['isWebSearchEnabled'],'isReasoningEnabled':_0x1b31f4['capabilities']['isReasoningEnabled']||_0xd8e9af['isReasoningEnabled']}});this['_view']['chatFeed']['addItem']('interaction-header',{'id':_0x288dd2['id'],'capabilities':_0xd8e9af});}['updateFeedInteractionHeader'](_0x387741){const _0x377d23=this['_view']['chatFeed']['children']['find'](_0x2fba75=>_0x2fba75['options']['id']==_0x387741['id']&&_0x2fba75 instanceof AIChatFeedInteractionHeaderView);_0x377d23&&_0x377d23['set']('isVisible',_0x387741['isVisible']);}async['updateFeedItemAIReplyContent'](_0x811707){const _0x3aa447=_0x811707['renderingStrategy']||this['feedItemRenderingStrategy'];return this['_promiseQueue']['enqueue'](async _0x50ae8d=>{await this['_view']['chatFeed']['updateReplyItem']({..._0x811707,'abortSignal':_0x50ae8d,'renderingStrategy':_0x3aa447}),_0x811707['isDone']&&this['markFeedItemAsDone'](_0x811707['id']);});}['updateFeedItemAIReplySources'](_0x63ada9,_0x145b55){this['_view']['chatFeed']['updateWebSources'](_0x63ada9,_0x145b55);}async['updateFeedItemAIReplySuggestionContent'](_0x1a05c6){const _0x5a599d=_0x1a05c6['renderingStrategy']||this['feedItemRenderingStrategy'];return this['_promiseQueue']['enqueue'](async _0x9634e3=>{await this['_view']['chatFeed']['updateSuggestionItem']({..._0x1a05c6,'abortSignal':_0x9634e3,'renderingStrategy':_0x5a599d}),_0x1a05c6['isDone']&&this['markFeedItemAsDone'](_0x1a05c6['id']);});}['updateFeedItemAIReplySuggestionPartState'](_0x537e71){this['_view']['chatFeed']['updateSuggestionPartState'](_0x537e71);}['markFeedItemAsDone'](_0x47c8fb){this['_view']['chatFeed']['markItemAsDone'](_0x47c8fb);}['removeFeedInteraction'](_0x55a4fc){this['_view']['chatFeed']['getItemIds']()['filter'](_0x40a71c=>_0x40a71c['startsWith'](_0x55a4fc))['forEach'](_0x40f332=>this['_view']['chatFeed']['removeItem'](_0x40f332));}['startInteraction'](){this['setLoadingMessage']({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this['_view']['chatControls']['disableModelSelector'](!this['context']['config']['get']('ai.chat.models.modelSelectorAlwaysVisible')),this['isBusy']=!0x0,this['_view']['chatFeed']['startAutoScroll']();}['stopInteraction'](_0x42250f){this['_promiseQueue']['abort'](),this['_view']['chatFeed']['getItemIds']()['filter'](_0x212715=>_0x212715['startsWith'](_0x42250f['id']))['forEach'](_0x3c9ac7=>this['markFeedItemAsDone'](_0x3c9ac7)),this['isBusy']=!0x1,this['_view']['chatFeed']['stopAutoScroll']();}async['finishInteraction'](){return this['_promiseQueue']['queueEmptyPromise']['then'](()=>{this['isBusy']=!0x1,this['_view']['chatFeed']['stopAutoScroll']();});}['addContextItem'](_0x2dde38,_0x4db51e){this['_view']['chatControls']['addContextItem'](_0x2dde38,_0x4db51e);}['removeContextItem'](_0x2911d5){this['_view']['chatControls']['removeContextItem'](_0x2911d5);}['setContextItemLoading'](_0x21dcd2,_0x433d30){this['_view']['chatControls']['setContextItemLoading'](_0x21dcd2,_0x433d30);}['setIsUploadInProgress'](_0x599182){this['_view']['chatControls']['setIsUploadInProgress'](_0x599182);}['setConversationContext'](_0x437715){this['_view']['chatControls']['setConversationContext'](_0x437715);}['clearPendingContextUI'](){this['_view']['chatControls']['clearPendingContextUI']();}['clearConversationContextUI'](){this['_view']['chatControls']['clearConversationContextUI']();}['updateResourceState'](_0x3377cc,_0x544670,_0x220924){this['_view']['chatControls']['updateResourceState'](_0x3377cc,_0x544670,_0x220924);}['resetMessageInput'](){this['_view']['chatControls']['resetMessageInput'](),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder']());}['setAddContextOptions'](_0x478c13){this['_view']['chatControls']['setAddContextOptions'](_0x478c13);}['updateCapabilities'](_0x430aff){this['_view']['chatControls']['setWebSearch'](_0x430aff['isWebSearchEnabled']),this['_view']['chatControls']['setReasoning'](_0x430aff['isReasoningEnabled']),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder'](_0x430aff));}['setSelectedModel'](_0x5e87fc,_0x2d412a){this['_view']['chatControls']['setModel'](_0x5e87fc),_0x2d412a&&this['_view']['chatControls']['disableModelSelector'](!0x1);}['setFeedItemRenderingStrategy'](_0x1f6921){this['feedItemRenderingStrategy']=_0x1f6921;}['toggleLoadingSkeleton'](_0x96bc94){this['_view']['chatFeed']['toggleLoadingSkeleton'](_0x96bc94);}['resetConversationTitle'](){this['setConversationTitle'](getTranslation$i(this['context']['locale'],'AI_CHAT_HEADING'));}['setConversationTitle'](_0x8bad31,_0x3757cc=!0x1){if(_0x3757cc&&!_isMotionReduced()&&_0x8bad31['length'])return this['_view']['chatHeader']['label']='',void this['_animateConversationTitle'](_0x8bad31);this['_view']['chatHeader']['label']=_0x8bad31;}['setLoadingMessage'](_0x59117){const _0x1348f8=this['_getLoadingMessage'](_0x59117);this['_view']['chatFeed']['setLoadingMessage'](_0x1348f8);}['_animateConversationTitle'](_0x1ce1b8){let _0x2e796e=0x0;clearInterval(this['_titleAnimationInterval']),this['_titleAnimationInterval']=setInterval(()=>{this['_view']['chatHeader']['label']=this['_view']['chatHeader']['label']+_0x1ce1b8[_0x2e796e],_0x2e796e++,_0x2e796e===_0x1ce1b8['length']&&clearInterval(this['_titleAnimationInterval']);},AI_CHAT_TITLE_ANIMATION_INTERVAL);}['setIsMaximized'](_0x44e00c){this['_view']['chatHeader']['isMaximized']=_0x44e00c;}['_getLoadingMessage'](_0x103b8e){return _0x103b8e?_0x103b8e['isWebSearchEnabled']&&_0x103b8e['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING'):_0x103b8e['isWebSearchEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH'):_0x103b8e['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_REASONING'):getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR'):'';}['_getInputPlaceholder'](_0x5b4f0a){return _0x5b4f0a?_0x5b4f0a['isWebSearchEnabled']&&_0x5b4f0a['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING'):_0x5b4f0a['isWebSearchEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH'):_0x5b4f0a['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING'):getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR'):getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR');}['populateSourceResourceBalloon'](_0x336ca7,_0x445383,_0x9abc89,_0x1b30ea){this['_view']['populateSourceResourceBalloon'](_0x336ca7,_0x445383,_0x9abc89,_0x1b30ea);}['closeSourceResourceBalloon'](_0x20a3d3){this['_view']['closeSourceResourceBalloon'](_0x20a3d3);}['focusPromptInput'](){this['_view']['chatControls']['focusPromptInput']();}['scrollFeedToSuggestion'](_0x2af435,_0x49f52f){this['_view']['chatFeed']['scrollToSuggestion'](_0x2af435,_0x49f52f);}['disableControls'](){this['_view']['chatControls']['isDisabled']=!0x0;}['enableControls'](){this['_view']['chatControls']['isDisabled']=!0x1;}}class AIChatHistorySectionListView extends ListView{['sections'];constructor(_0x2b5125,_0x4e555c){super(_0x2b5125),this['sections']=_0x4e555c,this['items']['addMany'](this['sections']),this['extendTemplate']({'attributes':{'class':['ck-ai-chat-history__sections']}});}['filter'](_0x307324){let _0x264a8c=0x0,_0x1b3128=0x0;for(const _0x225786 of this['sections']){const {resultsCount:_0x25f0b2,totalItemsCount:_0x15ae28}=_0x225786['filter'](_0x307324);_0x264a8c+=_0x25f0b2,_0x1b3128+=_0x15ae28;}return{'resultsCount':_0x264a8c,'totalItemsCount':_0x1b3128};}}class AIChatHistoryListView extends ListItemView{['title'];['itemsViews'];['_itemsListView'];constructor(_0x181dc6,{title:_0x324766,items:_0x4d5dd8}){super(_0x181dc6);const _0x18a9e0=this['bindTemplate'];this['set']('isVisible',!0x0),this['title']=_0x324766,this['itemsViews']=_0x4d5dd8;const _0x19ca55=new View(_0x181dc6);_0x19ca55['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-history__section-title']},'children':[this['title']]}),this['_itemsListView']=new ListView(_0x181dc6),this['_itemsListView']['items']['addMany'](this['itemsViews']),this['setTemplate']({'tag':'li','attributes':{'class':['ck-ai-chat-history__section',_0x18a9e0['if']('isVisible','ck-hidden',_0x252056=>!_0x252056)]},'children':[_0x19ca55,this['_itemsListView']]});}['filter'](_0x3acb7e){const _0x1142c3=this['itemsViews']['length'];let _0x4756cd=0x0;for(const _0x26b452 of this['itemsViews']){if(_0x3acb7e){const _0x1e9a72=_0x26b452['isMatching'](_0x3acb7e);_0x26b452['isVisible']=!!_0x1e9a72,_0x26b452['highlightText'](_0x3acb7e);}else _0x26b452['isVisible']=!0x0,_0x26b452['highlightText'](null);_0x26b452['isVisible']&&_0x4756cd++;}return this['isVisible']=_0x4756cd>0x0,{'resultsCount':_0x4756cd,'totalItemsCount':_0x1142c3};}['getItem'](_0x59f244){return this['itemsViews']['find'](_0x568b03=>_0x568b03['id']===_0x59f244);}['removeItem'](_0x3eac1c){const _0x40a9c4=this['itemsViews']['indexOf'](_0x3eac1c);-0x1!==_0x40a9c4&&(this['itemsViews']['splice'](_0x40a9c4,0x1),this['_itemsListView']['items']['remove'](_0x3eac1c));}}class AIChatHistoryListItemView extends ConfirmMixin(ListItemView){['id'];static ['LOADING_LABELS']={'remove':'AI_CHAT_HISTORY_LOADING_REMOVING','rename':'AI_CHAT_HISTORY_LOADING_RENAMING','pin':'AI_CHAT_HISTORY_LOADING_PINNING','unpin':'AI_CHAT_HISTORY_LOADING_UNPINNING'};['actions'];['mainContent'];['_titleView'];constructor(_0x86d5db,_0x23b9ff){super(_0x86d5db);const _0x29ad2e=this['bindTemplate'];this['set']('isEdit',!0x1),this['set']('isVisible',!0x0),this['set']('pinned',!!_0x23b9ff['pinned']),this['set']('loadingState',null),this['id']=_0x23b9ff['id'];const {title:_0x3cf948,createdAt:_0x1837e1,active:_0x11fa41=!0x1}=_0x23b9ff;this['_titleView']=new HighlightedTextView(),this['_titleView']['text']=_0x3cf948,this['_titleView']['extendTemplate']({'attributes':{'class':['ck-ai-chat-history__item-title']}});const _0x22ec4c=this['_createCheckView'](),_0x4a10c7=this['_createPinButtonView'](_0x86d5db),_0x3af1c4=this['_createMenuDropdownView'](),_0x2cbd25=this['_createEditInputView'](_0x86d5db,_0x3cf948),_0x581eea=this['_createAcceptEditButtonView'](_0x86d5db,_0x2cbd25),_0x2aa53b=this['_createCancelEditButtonView'](_0x86d5db,_0x2cbd25);this['actions']=this['createCollection'](),this['mainContent']=this['createCollection'](),this['mainContent']['add'](this['_titleView']),this['actions']['add'](_0x4a10c7),this['actions']['add'](_0x3af1c4),this['on']('change:isEdit',(_0x10807f,_0x55ae9f,_0x4eca97)=>{this['actions']['clear'](),this['mainContent']['clear'](),_0x4eca97?(this['actions']['add'](_0x581eea),this['actions']['add'](_0x2aa53b),this['mainContent']['add'](_0x2cbd25),_0x2cbd25['element']['focus']()):(this['actions']['add'](_0x4a10c7),this['actions']['add'](_0x3af1c4),this['mainContent']['add'](this['_titleView']));}),this['setTemplate']({'tag':'li','attributes':{'class':['ck-ai-chat-history__item',_0x11fa41?'ck-ai-chat-history__item--active':'',_0x29ad2e['if']('isVisible','ck-hidden',_0x556487=>!_0x556487),_0x29ad2e['if']('isEdit','ck-ai-chat-history__item--edit')],'role':'listitem'},'children':[{'tag':'span','attributes':{'class':['ck-ai-chat-history__item-check-container']},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-check',_0x29ad2e['if']('loadingState','ck-hidden',_0x31b6bc=>!!_0x31b6bc)]},'children':_0x11fa41?[_0x22ec4c]:[]},{'tag':'div','attributes':{'class':['ck-ai-loader',_0x29ad2e['if']('loadingState','ck-hidden',_0x5cb28d=>!_0x5cb28d)]},'children':[this['_createSpinnerView']()]}]},{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-row']},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-content']},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-title',_0x29ad2e['if']('loadingState','ck-hidden',_0x2174fe=>!!_0x2174fe)]},'children':this['mainContent']},{'tag':'div','attributes':{'class':['ck-ai-loader__text',_0x29ad2e['if']('loadingState','ck-hidden',_0x5f12fb=>!_0x5f12fb)]},'children':[{'text':_0x29ad2e['to']('loadingState',_0x588289=>_0x588289?getTranslation$i(this['locale'],AIChatHistoryListItemView['LOADING_LABELS'][_0x588289]):'')}]}]},{'tag':'span','attributes':{'class':['ck-ai-chat-history__item-date']},'children':[_0x1837e1]}]},{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-actions']},'children':this['actions']}]}]}),this['on']('click',()=>{this['isEdit']||this['fire']('selectConversation',{'id':this['id']});});}['updateTitle'](_0x40a1d8){this['_titleView']['text']=escape(_0x40a1d8);}['updateLoadingState'](_0x1809ae,_0x516d3a){this['set']('loadingState',_0x516d3a?_0x1809ae:null);}['_createCheckView'](){const _0x71a44=new IconView();return _0x71a44['set']({'content':IconCheck}),_0x71a44;}['_createPinButtonView'](_0x59c3c0){const _0x2cce=new ButtonView(_0x59c3c0);return _0x2cce['set']({'label':getTranslation$i(_0x59c3c0,'AI_CHAT_HISTORY_PIN_BUTTON'),'icon':IconPin,'withText':!0x1,'tooltip':!0x0}),_0x2cce['bind']('isOn')['to'](this,'pinned'),_0x2cce['on']('execute',()=>{const _0x3f0930=!this['pinned'];this['fire']('setConversationPinned',{'id':this['id'],'pinned':_0x3f0930});}),_0x2cce;}['_createMenuDropdownView'](){const _0x7b7c72=createDropdown(this['locale'],LateFocusDropdownButtonView),_0x503e8d=_0x7b7c72['panelView']['children'];_0x7b7c72['buttonView']['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SHOW_MORE_ITEMS'),'icon':IconThreeHorizontalDots}),_0x7b7c72['panelPosition']='sw';const _0x8a53a3=new ButtonView(this['locale']);_0x8a53a3['label']=getTranslation$i(this['locale'],'AI_CHAT_HISTORY_EDIT_NAME'),_0x8a53a3['withText']=!0x0,_0x8a53a3['on']('execute',()=>{this['isEdit']=!0x0;});const _0x3d4eb2=new ButtonView(this['locale']);_0x3d4eb2['label']=getTranslation$i(this['locale'],'AI_CHAT_HISTORY_REMOVE'),_0x3d4eb2['withText']=!0x0,_0x3d4eb2['on']('execute',()=>{this['showConfirm'](getTranslation$i(this['locale'],'AI_CHAT_HISTORY_REMOVE_CONFIRM'),this['element'])['then'](()=>{this['fire']('removeConversation',{'id':this['id']});});});const _0x3590fe=new ListView(this['locale']),_0x22cc26=new ListItemView(this['locale']);_0x22cc26['children']['add'](_0x8a53a3);const _0x3e4c59=new ListItemView(this['locale']);return _0x3e4c59['children']['add'](_0x3d4eb2),_0x3590fe['items']['addMany']([_0x22cc26,_0x3e4c59]),_0x503e8d['add'](_0x3590fe),_0x7b7c72;}['_createEditInputView'](_0x349716,_0x1aff79){const _0x4b9644=new InputTextView(_0x349716),_0x1c1a92=_0x4b9644['bindTemplate'];return _0x4b9644['value']=_0x1aff79,_0x4b9644['extendTemplate']({'on':{'keydown':_0x1c1a92['to'](_0x5d3c29=>{'Enter'==_0x5d3c29['key']&&this['_commitEditInputValue'](_0x4b9644);})}}),_0x4b9644;}['_createAcceptEditButtonView'](_0x5a4d87,_0x52e3e1){const _0x4d42a1=new ButtonView(_0x5a4d87);return _0x4d42a1['set']({'icon':IconCheck,'withText':!0x1,'tooltip':getTranslation$i(_0x5a4d87,'AI_CHAT_HISTORY_ACCEPT')}),_0x4d42a1['extendTemplate']({'attributes':{'class':['ck-confirm-view-submit']}}),_0x4d42a1['on']('execute',()=>{this['_commitEditInputValue'](_0x52e3e1);}),_0x4d42a1;}['_commitEditInputValue'](_0x1421c9){const _0x220648=_0x1421c9['element']['value']||'';this['_titleView']['text']=_0x220648,this['isEdit']=!0x1,this['fire']('editConversationTitle',{'id':this['id'],'title':_0x220648});}['_createCancelEditButtonView'](_0x4ca1e3,_0xa971bb){const _0x1af6de=new ButtonView(_0x4ca1e3);return _0x1af6de['set']({'icon':IconCancel,'withText':!0x1,'tooltip':getTranslation$i(_0x4ca1e3,'AI_CHAT_HISTORY_CANCEL')}),_0x1af6de['extendTemplate']({'attributes':{'class':['ck-confirm-view-cancel']}}),_0x1af6de['on']('execute',()=>{this['isEdit']=!0x1,_0xa971bb['value']=this['_titleView']['text']||'',this['fire']('edit:cancel');}),_0x1af6de;}['_createSpinnerView'](){const _0x3be065=new AISpinnerView('tiny');return _0x3be065['isVisible']=!0x0,_0x3be065;}['isMatching'](_0x1c2726){return this['_titleView']&&'string'==typeof this['_titleView']['text']&&this['_titleView']['text']['match'](_0x1c2726)?{'title':!0x0}:null;}['highlightText'](_0x1a3e37){this['_titleView']['highlightText'](_0x1a3e37);}}class AIChatHistoryView extends View{['searchView'];['errorView'];['skeletonView'];['emptyView'];['sectionsView'];['resizeButton'];constructor(_0x3ddc67,_0x4c371f){super(_0x3ddc67),this['set']('hasItems',!0x1),this['set']('isLoading',!0x0),this['set']('errorMessage',''),this['set']('isMaximized',!0x1),this['set']('isSearchViewVisible',!0x1),this['set']('isEmptyViewVisible',!0x1);const _0x18dfbf=new FormHeaderView(_0x3ddc67,{'label':getTranslation$i(_0x3ddc67,'AI_CHAT_HISTORY_HEADING'),'icon':IconAIHistory,'class':'ck-ai-header\x20ck-ai-header_history'});_0x4c371f&&(this['resizeButton']=createResizeButton(_0x3ddc67,this),_0x18dfbf['children']['add'](this['resizeButton'])),this['sectionsView']=new AIChatHistorySectionListView(_0x3ddc67,[]),this['sectionsView']['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),this['errorView']=this['_createErrorView'](),this['skeletonView']=this['_createSkeletonView'](),this['emptyView']=this['_createEmptyStateView'](),this['searchView']=this['_createSearchView'](),this['on']('change:isLoading',()=>this['_updateViewVisibility']()),this['on']('change:hasItems',()=>this['_updateViewVisibility']()),this['on']('change:errorMessage',()=>this['_updateViewVisibility']()),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-chat-history','ck-rounded-corners'],'dir':'ltr'},'children':[_0x18dfbf,{'tag':'div','attributes':{'class':['ck-ai-chat-history__content']},'children':[this['skeletonView'],this['errorView'],this['emptyView'],this['searchView']]}]});}['_updateViewVisibility'](){this['isSearchViewVisible']=!this['isLoading']&&this['hasItems']&&!this['errorMessage'],this['isEmptyViewVisible']=!this['isLoading']&&!this['hasItems']&&!this['errorMessage'];}['_createSearchView'](){const _0x52bec9=new SearchTextView(this['locale'],{'filteredView':this['sectionsView'],'queryView':{'label':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_LABEL')},'infoView':{'text':{'notFound':{'primary':_0x2f38fe=>getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY',_0x2f38fe),'secondary':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY')}}}});return _0x52bec9['on']('render',()=>{this['searchView']['children']['add'](this['errorView'],0x1);}),_0x52bec9['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isSearchViewVisible','ck-hidden',_0x438143=>!_0x438143)]}}),_0x52bec9;}['_createSkeletonView'](){const _0x59a94a=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiHistory']);return _0x59a94a['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoading','ck-hidden',_0x4e5c7f=>!_0x4e5c7f)]}}),_0x59a94a;}['_createErrorView'](){const _0x5bb092=new View(this['locale']),_0x445866=new ButtonView(this['locale']);return _0x445866['set']({'withText':!0x1,'icon':IconCancel,'class':'ck-ai-chat-error__dismiss-button'}),_0x445866['bind']('isVisible')['to'](this,'hasItems',_0x4454a9=>!!_0x4454a9),_0x445866['on']('execute',()=>{this['errorMessage']='';}),_0x5bb092['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-error',this['bindTemplate']['if']('errorMessage','ck-hidden',_0x310ed7=>!_0x310ed7)]},'children':[{'tag':'p','children':[{'text':this['bindTemplate']['to']('errorMessage')}]},_0x445866]}),_0x5bb092;}['_createEmptyStateView'](){const _0x3002d4=new ButtonView(this['locale']);_0x3002d4['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_LABEL_NEW_CHAT'),'withText':!0x0,'icon':IconPlus,'class':'ck-ai-chat__start-conversation'}),_0x3002d4['on']('execute',()=>{this['fire']('openChat');});const _0x1a8598=new View(this['locale']);return _0x1a8598['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-history__empty',this['bindTemplate']['if']('isEmptyViewVisible','ck-hidden',_0x145137=>!_0x145137)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-history__empty-message']},'children':[getTranslation$i(this['locale'],'AI_CHAT_HISTORY_EMPTY_MESSAGE')]},_0x3002d4]}),_0x1a8598;}['_createListItemViews'](_0x48eabf,_0x789f13){const _0x4c16e2=[];for(const _0x4ec8d5 of _0x48eabf){const _0x2f2994=new AIChatHistoryListItemView(_0x789f13,_0x4ec8d5);_0x2f2994['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x4c16e2['push'](_0x2f2994);}return _0x4c16e2;}['updateHistoryItemsWithCategories'](_0x3c0f97){const _0x54b5b4=this['locale']||'en',_0x6a73d4=[];for(const _0x3ed8d6 of _0x3c0f97){const _0x54b533=this['_createListItemViews'](_0x3ed8d6['items'],_0x54b5b4);_0x6a73d4['push'](new AIChatHistoryListView(_0x54b5b4,{'title':_0x3ed8d6['title'],'items':_0x54b533}));}this['sectionsView']['sections']=_0x6a73d4,this['sectionsView']['items']['clear'](),this['sectionsView']['items']['addMany'](_0x6a73d4),this['hasItems']=_0x3c0f97['some'](_0xf6de7c=>_0xf6de7c['items']['length']>0x0),this['_refreshSearch']();}['removeHistoryItem'](_0x15fd86){for(const _0x44d3db of this['sectionsView']['sections']){const _0x3ace94=_0x44d3db['getItem'](_0x15fd86);if(_0x3ace94){if(_0x44d3db['removeItem'](_0x3ace94),0x0===_0x44d3db['itemsViews']['length']){const _0x4c570b=this['sectionsView']['sections']['indexOf'](_0x44d3db);-0x1!==_0x4c570b&&(this['sectionsView']['sections']['splice'](_0x4c570b,0x1),this['sectionsView']['items']['remove'](_0x44d3db));}this['hasItems']=this['sectionsView']['sections']['length']>0x0,this['_refreshSearch']();break;}}}['updateItemTitle'](_0x25e5f5,_0xf06b){for(const _0x513b7f of this['sectionsView']['sections']){const _0x30d329=_0x513b7f['getItem'](_0x25e5f5);if(_0x30d329){_0x30d329['updateTitle'](_0xf06b);break;}}}['updateItemLoadingState'](_0x245c4f,_0x536a9a,_0x568aac){for(const _0x33b98b of this['sectionsView']['sections']){const _0xd0c051=_0x33b98b['getItem'](_0x245c4f);if(_0xd0c051){_0xd0c051['updateLoadingState'](_0x536a9a,_0x568aac);break;}}}['_refreshSearch'](){if(this['hasItems']){const _0x46b51e=this['searchView']['queryView']['fieldView']?.['element']?.['value']||'';this['searchView']['search'](_0x46b51e);}}}const AI_CHAT_HISTORY_UI_EVENT_NAMES=['showConversationHistory','removeConversation','editConversationTitle','setConversationPinned','selectConversation','openChat','resizeTabs'];class AIChatHistoryUI extends ContextPlugin{static get['requires'](){return[AITabs];}['_historyView'];static get['pluginName'](){return'AIChatHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9922c3){super(_0x9922c3);const _0x44da12=this['context']['plugins']['get']('AITabs');this['_historyView']=new AIChatHistoryView(this['context']['locale'],_0x44da12['showResizeButton']),this['_historyView']['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x44da12['view']['addTab']({'id':'history','buttonLabel':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_HEADING'),'buttonIcon':IconAIHistory,'order':0x0,'content':this['_historyView']});}['removeHistoryItem'](_0x55e1e5){this['_historyView']['removeHistoryItem'](_0x55e1e5);}['updateItems'](_0x1c9685){this['_historyView']['updateHistoryItemsWithCategories'](_0x1c9685);}['updateItemTitle'](_0x25beba,_0x25c5eb){this['_historyView']['updateItemTitle'](_0x25beba,_0x25c5eb);}['updateItemLoadingState'](_0x598df7,_0x2cc2d2,_0x31b319){this['_historyView']['updateItemLoadingState'](_0x598df7,_0x2cc2d2,_0x31b319);}['setLoadingSkeleton'](_0x4dc818){this['_historyView']['isLoading']=_0x4dc818;}['showError'](_0x3f7224){this['_historyView']['errorMessage']=_0x3f7224;}['hideError'](){this['_historyView']['errorMessage']='';}['setIsMaximized'](_0x2fdcc9){this['_historyView']['isMaximized']=_0x2fdcc9;}}class AIChatHistoryItem extends ObservableMixin(){['id'];['createdAt'];constructor({id:_0x3ecf45,title:_0x1b8c36,createdAt:_0x1f87bb,updatedAt:_0xc5b70a,pinned:_0xd9eaad}){super(),this['id']=_0x3ecf45,this['createdAt']=new Date(_0x1f87bb),this['set']('title',_0x1b8c36),this['set']('updatedAt',_0xc5b70a?new Date(_0xc5b70a):null),this['set']('pinned',_0xd9eaad||!0x1);}['updateTitle'](_0x592065){this['set']('title',escape(_0x592065)),this['updatedAt']=new Date();}['updatePinned'](_0x175f65){this['set']('pinned',_0x175f65),this['updatedAt']=new Date();}}class AIChatHistoryConversations extends EmitterMixin(){['items']=[];['connector'];['group'];constructor({connector:_0x228011,group:_0x57383b}){super(),this['connector']=_0x228011,this['group']=_0x57383b;}async['init'](){try{const _0x530841=this['connector']['fetchConversations'](this['group']),_0x36b496=await _0x530841['getConversations']();this['loadItems'](_0x36b496);}catch(_0x1e6ba1){this['fire']('error',{'error':_0x1e6ba1,'operation':'init'});}}['addItem'](_0x52b185){this['items']['push'](_0x52b185);}async['removeItem'](_0x57d4e6){const _0x287c02=this['items']['findIndex'](_0x11d6d1=>_0x11d6d1['id']===_0x57d4e6);if(-0x1===_0x287c02)return!0x1;try{return await this['connector']['deleteConversation'](_0x57d4e6)['execute'](),this['items']['splice'](_0x287c02,0x1),this['fire']('itemRemoved',{'itemId':_0x57d4e6}),!0x0;}catch(_0x2f4598){return this['fire']('error',{'error':_0x2f4598,'operation':'removeItem','itemId':_0x57d4e6}),!0x1;}}['getItem'](_0x1f3551){return this['items']['find'](_0x2c146b=>_0x2c146b['id']===_0x1f3551);}async['updateItemTitle'](_0x5f5643,_0x15fe00){const _0x27151c=this['getItem'](_0x5f5643);if(!_0x27151c)return!0x1;try{return await this['connector']['updateConversation'](_0x5f5643,{'title':_0x15fe00})['getResult'](),_0x27151c['updateTitle'](_0x15fe00),this['fire']('itemUpdated',{'itemId':_0x5f5643,'updates':{'title':_0x15fe00}}),!0x0;}catch(_0x185d11){return this['fire']('error',{'error':_0x185d11,'operation':'updateItemTitle','itemId':_0x5f5643}),!0x1;}}async['updateItemPinned'](_0x45a0d8,_0x2c38a9){const _0x4eac3c=this['getItem'](_0x45a0d8);if(!_0x4eac3c)return!0x1;try{return await this['connector']['updateConversation'](_0x45a0d8,{'pinned':_0x2c38a9})['getResult'](),_0x4eac3c['updatePinned'](_0x2c38a9),this['fire']('itemUpdated',{'itemId':_0x45a0d8,'updates':{'pinned':_0x2c38a9}}),!0x0;}catch(_0x38fbab){return this['fire']('error',{'error':_0x38fbab,'operation':'updateItemPinned','itemId':_0x45a0d8}),!0x1;}}['loadItems'](_0x5e8263){try{this['items']=[],_0x5e8263['map'](_0x26b654=>{this['addItem'](new AIChatHistoryItem(_0x26b654));}),this['fire']('itemsLoaded',{'items':[...this['items']]});}catch(_0x1c8c7f){this['fire']('error',{'error':_0x1c8c7f,'operation':'loadItems'});}}['getItems'](_0x5a10af={}){const _0x4057f5=void 0x0!==_0x5a10af['pinned']&&_0x5a10af['pinned'],_0x3cf44e=_0x5a10af['from']?new Date(_0x5a10af['from']['getFullYear'](),_0x5a10af['from']['getMonth'](),_0x5a10af['from']['getDate']()):null,_0x53bca6=_0x5a10af['to']?new Date(_0x5a10af['to']['getFullYear'](),_0x5a10af['to']['getMonth'](),_0x5a10af['to']['getDate']()):null;return this['items']['filter'](_0x46f19a=>{if(_0x46f19a['pinned']!==_0x4057f5)return!0x1;if(_0x53bca6){const _0x2497c3=new Date(_0x46f19a['createdAt']['getFullYear'](),_0x46f19a['createdAt']['getMonth'](),_0x46f19a['createdAt']['getDate']());return _0x3cf44e?_0x3cf44e['getTime']()===_0x53bca6['getTime']()?_0x2497c3['getTime']()===_0x3cf44e['getTime']():_0x2497c3<_0x53bca6&&_0x2497c3>=_0x3cf44e:_0x2497c3<_0x53bca6;}return!0x0;});}}class AIChatHistoryController extends ContextPlugin{['_aiConnector'];['_aiChatHistoryUi'];['_aiChatController'];static get['requires'](){return[AIConnector,AIChatController,AIChatHistoryUI,AITabs];}static get['pluginName'](){return'AIChatHistoryController';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_aiConnector']=this['context']['plugins']['get'](AIConnector),this['_aiChatHistoryUi']=this['context']['plugins']['get'](AIChatHistoryUI),this['_aiChatController']=this['context']['plugins']['get'](AIChatController);const _0x1bc3f7=this['context']['plugins']['get'](AITabs),_0x5e3db1=this['_aiChatController']['getGroupId']();this['history']=new AIChatHistoryConversations({'connector':this['_aiConnector'],'group':_0x5e3db1}),this['listenTo'](this['_aiChatHistoryUi'],'removeConversation',(_0x251f4f,_0x55ecee)=>{this['_setItemLoading'](_0x55ecee['id'],'remove'),this['_handleRemove'](_0x55ecee['id']);}),this['listenTo'](this['_aiChatHistoryUi'],'editConversationTitle',(_0xf39b81,_0x2e6762)=>{this['_setItemLoading'](_0x2e6762['id'],'rename'),this['_handleEditTitle'](_0x2e6762['id'],_0x2e6762['title']);}),this['listenTo'](this['history'],'itemUpdated',(_0x4da995,_0x4bfc01)=>{void 0x0!==_0x4bfc01['updates']['title']&&this['_aiChatHistoryUi']['updateItemTitle'](_0x4bfc01['itemId'],_0x4bfc01['updates']['title']),void 0x0!==_0x4bfc01['updates']['pinned']&&this['_updateHistoryItemsUI'](),this['_clearItemLoading'](_0x4bfc01['itemId']);}),this['listenTo'](this['history'],'itemRemoved',(_0x3b9f80,_0x2349a6)=>{this['_aiChatController']['handleRemovedConversation'](_0x2349a6['itemId']),this['_aiChatHistoryUi']['removeHistoryItem'](_0x2349a6['itemId']),this['_clearItemLoading'](_0x2349a6['itemId']);}),this['listenTo'](this['history'],'itemsLoaded',()=>{this['_updateHistoryItemsUI']();}),this['listenTo'](this['history'],'error',(_0x1ac0aa,_0x3453a1)=>{this['_handleHistoryErrorUI'](_0x3453a1['error'],_0x3453a1['operation'],_0x3453a1['itemId']);}),this['listenTo'](this['_aiChatHistoryUi'],'selectConversation',(_0x355667,_0x3680b4)=>{this['_handleSelectConversation'](_0x3680b4['id']);}),this['listenTo'](this['_aiChatHistoryUi'],'setConversationPinned',(_0x422dc2,_0x311559)=>{const _0x1b569b=_0x311559['pinned']?'pin':'unpin';this['_setItemLoading'](_0x311559['id'],_0x1b569b),this['_handleTogglePin'](_0x311559['id'],_0x311559['pinned']);}),this['listenTo'](this['_aiChatHistoryUi'],'openChat',()=>{_0x1bc3f7['view']['activateTab']('chat');}),this['listenTo'](this['_aiChatController'],'change:activeConversation',()=>{this['_updateHistoryItemsUI']();}),_0x1bc3f7['view']['on']('activateTab:history',()=>{this['_showConversationHistory']();}),this['listenTo'](_0x1bc3f7,'resizedTabs',(_0x1a27ef,_0x5062d4)=>{this['_setIsMaximized'](_0x5062d4);}),this['listenTo'](this['_aiChatHistoryUi'],'resizeTabs',()=>{_0x1bc3f7['resize']();});}async['_handleEditTitle'](_0x28f5ed,_0x501b71){await this['history']['updateItemTitle'](_0x28f5ed,_0x501b71);}async['_handleTogglePin'](_0x5e3184,_0x263305){await this['history']['updateItemPinned'](_0x5e3184,_0x263305);}async['_handleRemove'](_0x2d8acc){await this['history']['removeItem'](_0x2d8acc);}async['_handleSelectConversation'](_0x2bb319){await this['_aiChatController']['loadConversation'](_0x2bb319);}async['_showConversationHistory'](){this['_aiChatHistoryUi']['showError'](''),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x0),await this['history']['init'](),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x1);}['_updateHistoryItemsUI'](){const _0x45f595=this['_aiChatController']['activeConversation']?.['id'],_0x2b6e17=this['_getCategorizedItems']()['map'](_0x2f8900=>({'title':_0x2f8900['title'],'items':_0x2f8900['items']['map'](_0x19d06e=>({'id':_0x19d06e['id'],'title':_0x19d06e['title']||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION'),'createdAt':new Date(_0x19d06e['createdAt'])['toLocaleDateString'](),'active':_0x19d06e['id']===_0x45f595,'pinned':_0x19d06e['pinned']}))}));this['_aiChatHistoryUi']['updateItems'](_0x2b6e17);}['_setItemLoading'](_0x5dd4bb,_0x1969c3){this['_aiChatHistoryUi']['updateItemLoadingState'](_0x5dd4bb,_0x1969c3,!0x0);}['_clearItemLoading'](_0x266297){this['_aiChatHistoryUi']['updateItemLoadingState'](_0x266297,null,!0x1);}['_handleHistoryErrorUI'](_0x13edcd,_0x3f44ef,_0x369440){const _0xcbc72=this['_generateErrorMessage'](_0x3f44ef,_0x369440);this['_aiChatHistoryUi']['showError'](_0xcbc72),_0x369440&&this['_clearItemLoading'](_0x369440),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x1);}['_generateErrorMessage'](_0xd5c95f,_0x42f57e){const _0x4cc6dc=_0x42f57e?this['history']['getItem'](_0x42f57e):null,_0x292556=_0x4cc6dc?.['title']||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION');switch(_0xd5c95f){case'updateItemTitle':return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE',_0x292556);case'updateItemPinned':{const _0x33b482=getTranslation$i(this['context']['locale'],_0x4cc6dc?.['pinned']?'AI_CHAT_HISTORY_UNPIN_ACTION':'AI_CHAT_HISTORY_PIN_ACTION');return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED',[_0x33b482,_0x292556]);}case'removeItem':return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM',_0x292556);case'init':case'loadItems':return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_LOAD_ITEMS');default:return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_GENERIC');}}['_getCategorizedItems'](){const _0x2d09ee=new Date(),_0x21d9f2=new Date(_0x2d09ee['getFullYear'](),_0x2d09ee['getMonth'](),_0x2d09ee['getDate']()),_0x372367=new Date(_0x21d9f2);_0x372367['setDate'](_0x372367['getDate']()-0x1);const _0x9ffff7=new Date(_0x21d9f2);_0x9ffff7['setDate'](_0x9ffff7['getDate']()-0xe);const _0x378bb4=this['history']['getItems']({'pinned':!0x0}),_0x2bb48e=this['history']['getItems']({'from':_0x21d9f2,'to':_0x21d9f2}),_0x4038ba=this['history']['getItems']({'from':_0x372367,'to':_0x372367}),_0x24766e=this['history']['getItems']({'from':_0x9ffff7,'to':_0x372367}),_0x7fec45=this['history']['getItems']({'to':_0x9ffff7}),_0x4a6357=[];return _0x378bb4['length']>0x0&&_0x4a6357['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_PINNED'),'items':_0x378bb4}),_0x2bb48e['length']>0x0&&_0x4a6357['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_TODAY'),'items':_0x2bb48e}),_0x4038ba['length']>0x0&&_0x4a6357['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_YESTERDAY'),'items':_0x4038ba}),_0x24766e['length']>0x0&&_0x4a6357['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS'),'items':_0x24766e}),_0x7fec45['length']>0x0&&_0x4a6357['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_LATER'),'items':_0x7fec45}),_0x4a6357;}['_setIsMaximized'](_0x4dc1a5){this['_aiChatHistoryUi']['setIsMaximized'](_0x4dc1a5);}}class AIChatHistory extends ContextPlugin{static get['requires'](){return[AIChatHistoryController,AIChatHistoryUI];}static get['pluginName'](){return'AIChatHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class AIChat extends ContextPlugin{static get['requires'](){return[AIChatController,AIEditing,AIChatUI,AIChatHistory];}static get['pluginName'](){return'AIChat';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x591e3c){super(_0x591e3c),this['context']['config']['define']('ai.chat.context',{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this['context']['config']['define']('ai.chat.models',{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async['addSelectionToChatContext'](){await this['context']['plugins']['get'](AIChatController)['addSelectionToChatContext']();}async['startConversation'](){await this['context']['plugins']['get'](AIChatController)['startConversation']();}async['sendMessage']({message:_0x27309,quickActionData:_0x1ba660}){await this['context']['plugins']['get'](AIChatController)['sendMessage']({'message':_0x27309,'quickActionData':_0x1ba660});}['removeSelectionFromChatContext'](){this['context']['plugins']['get'](AIChatController)['removeSelectionFromChatContext']();}['focusPromptInput'](){this['context']['plugins']['get'](AIChatController)['focusPromptInput']();}}class ToggleAICommand extends _0x142ccd{constructor(_0x1cd925){super(_0x1cd925);const _0xb46b4d=_0x1cd925['plugins']['get']('AITabs')['view'];this['bind']('value')['to'](_0xb46b4d,'isVisible'),this['isEnabled']=!0x0;}['execute'](){const _0x480a11=this['editor']['plugins']['get']('AITabs')['view'];_0x480a11['isVisible']=!_0x480a11['isVisible'];}}class AIToggleButtonUI extends Plugin{static get['requires'](){return[AITabs];}static get['pluginName'](){return'AIToggleButtonUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2d0854=this['editor'];_0x2d0854['commands']['add']('toggleAi',new ToggleAICommand(_0x2d0854)),_0x2d0854['ui']['componentFactory']['add']('toggleAi',()=>{const _0x3dd9d7=this['_createAIUIButton'](ButtonView);return _0x3dd9d7['set']({'tooltip':!0x0,'class':'ck-ai-toggle-button'}),_0x3dd9d7;}),_0x2d0854['ui']['componentFactory']['add']('menuBar:toggleAi',()=>{const _0x57374f=this['_createAIUIButton'](MenuBarMenuListItemButtonView);return _0x57374f['set']({'role':'menuitemcheckbox'}),_0x57374f;});}['_createAIUIButton'](_0x5e5677){const _0x145be0=this['editor'],_0x40e53f=_0x145be0['commands']['get']('toggleAi'),_0x5e4e61=new _0x5e5677(_0x145be0['locale']);return _0x5e4e61['set']({'label':getTranslation$i(_0x145be0['locale'],'AI_TOGGLE_BUTTON_LABEL'),'icon':IconAIAskAI,'isToggleable':!0x0}),_0x5e4e61['bind']('isEnabled')['to'](_0x40e53f),_0x5e4e61['bind']('isOn')['to'](_0x40e53f,'value',_0x909792=>!!_0x909792),this['listenTo'](_0x5e4e61,'execute',()=>{_0x40e53f['execute']();}),_0x5e4e61;}}class AIEditorIntegration extends Plugin{static get['requires'](){return[AIToggleButtonUI];}static get['pluginName'](){return'AIEditorIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}function aiQuickActionsButtonCreator(_0x56ad7d,_0x2d0db7,_0xdf637b=!0x1,_0x2aed27=!0x0,_0x5925f3=!0x0){return()=>{const _0x10e28b=_0x56ad7d['locale'],_0x2acd1b=new ButtonView(_0x10e28b),_0x36fada=_0x2acd1b['bindTemplate'];_0x5925f3&&_0x2acd1b['extendTemplate']({'on':{'mouseenter':_0x36fada['to'](()=>{_0x2acd1b['focus']();})}});const _0x16b0cb=_0x2d0db7['icon']??_0x2d0db7['parent']?.['icon'];return _0x2acd1b['set']({'label':_0x2d0db7['displayedPrompt'],'withText':_0xdf637b,'role':'menuitem','icon':_0x2aed27?_0x16b0cb??IconAIQuickActions:void 0x0,'tooltip':!_0xdf637b,'class':'ck-ai-quick-actions-button'}),_0x2acd1b['on']('execute',()=>{_0x56ad7d['editing']['view']['focus'](),_0x56ad7d['commands']['execute']('aiQuickAction',_0x2d0db7);}),_0x2acd1b;};}const UI_ROLES={'MENU':'menu','MENU_ITEM':'menuitem'};class AIQuickActionsDropdownContentView extends View{['_bodyCollection'];['optionsListView'];['focusTracker'];['keystrokes'];['_focusables'];['focusCycler'];['_openNestedPanels']=new Set();constructor(_0x4691ba,_0x1bacb1,_0xe17f14,_0x408e2f){const _0x2229fe=_0x4691ba['locale'];super(_0x2229fe),this['_bodyCollection']=_0x408e2f;const _0x4e9237=this['_createListItems'](_0x4691ba,_0x1bacb1,_0xe17f14);this['optionsListView']=new ListView(_0x2229fe),this['optionsListView']['role']=UI_ROLES['MENU'],this['optionsListView']['items']['addMany'](_0x4e9237),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['_focusables']=_0x4e9237,this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions','ck-rounded-corners'],'dir':_0x2229fe['uiLanguageDirection']},'children':[this['optionsListView']]});}['_createListItems'](_0x169dd1,_0x5897bb,_0x599b8c){const _0x231807=new ViewCollection();return _0x5897bb['forEach'](_0x55b2e4=>{'actions'in _0x55b2e4?_0x231807['add'](this['_createActionGroupButton'](_0x169dd1,_0x55b2e4,_0x599b8c)):_0x231807['add'](this['_createActionButton'](_0x169dd1,_0x55b2e4));}),_0x231807;}['_createActionButton'](_0x56457b,_0x54a0cd){const _0x314882=new ListItemView(this['locale']),_0x256a75=aiQuickActionsButtonCreator(_0x56457b,_0x54a0cd,!0x0,void 0x0!==_0x54a0cd['icon'])();return _0x314882['children']['add'](_0x256a75),_0x314882;}['_createActionGroupButton'](_0x4e901b,_0x2da116,_0x4729c4){const _0x1ca549=new ListItemView(this['locale']),_0x6a91d5=new DropdownMenuButtonView(this['locale']),_0x546221=_0x6a91d5['bindTemplate'],_0x31ffa5='rtl'===_0x4729c4['locale']['uiLanguageDirection']?'ArrowRight':'ArrowLeft',_0xb748bc=this['_createGroupActionsList'](_0x4e901b,_0x2da116['actions'],_0x4729c4);_0x6a91d5['set']({'label':_0x2da116['label'],'withText':!0x0,'role':UI_ROLES['MENU_ITEM'],'icon':_0x2da116['icon']??IconAIQuickActions}),_0x6a91d5['extendTemplate']({'on':{'mouseenter':_0x546221['to'](()=>{_0x6a91d5['focus']();})}});const _0x247665=new BalloonPanelView(this['locale']);return _0x247665['extendTemplate']({'attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions-group-panel','ck-dropdown-menu__nested-menu__panel']},'on':{'keydown':_0x546221['to'](_0x19aab2=>{_0x19aab2['key']==_0x31ffa5&&(_0x6a91d5['focus'](),this['_hideNestedPanel'](_0x247665));})}}),_0x6a91d5['bind']('isOn')['to'](_0x247665,'isVisible'),this['_bodyCollection']['add'](_0x247665),_0x247665['content']['add'](_0xb748bc),this['_setupGroupMenuBehavior'](_0x6a91d5,_0x247665),_0x1ca549['children']['add'](_0x6a91d5),_0x1ca549;}['_createGroupActionsList'](_0x3a02a5,_0x23965d,_0x2c6d80){const _0x1f0236=new ListView(this['locale']);return _0x1f0236['extendTemplate']({'attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions-group-list','ck-dropdown-menu-list']}}),_0x23965d['forEach'](_0x43cf14=>{const _0x1ae4e1=new ListItemView(this['locale']),_0x32b54e=aiQuickActionsButtonCreator(_0x3a02a5,_0x43cf14,!0x0,!0x1)();_0x1ae4e1['children']['add'](_0x32b54e),_0x2c6d80['focusTracker']['add'](_0x32b54e),_0x1f0236['items']['add'](_0x1ae4e1);}),_0x1f0236;}['_setupGroupMenuBehavior'](_0x327d0f,_0x2c6a1d){const _0x1eb12b=_0x327d0f['bindTemplate'],_0x26369e='rtl'===_0x327d0f['locale']['uiLanguageDirection']?'ArrowLeft':'ArrowRight';_0x327d0f['extendTemplate']({'attributes':{'class':['ck-ai-quick-actions-group-button']},'on':{'mouseenter':_0x1eb12b['to'](()=>{this['_showNestedPanel'](_0x2c6a1d,_0x327d0f);}),'mouseleave':_0x1eb12b['to'](_0x1a777e=>{const _0x5cabe9=_0x1a777e['relatedTarget'];this['_isMovingToNestedMenu'](_0x5cabe9,_0x2c6a1d)||this['_hideNestedPanel'](_0x2c6a1d);}),'keydown':_0x1eb12b['to'](_0x1313a0=>{_0x1313a0['key']==_0x26369e&&(this['_showNestedPanel'](_0x2c6a1d,_0x327d0f),_0x2c6a1d['content']['get'](0x0)['focus']());})}}),_0x2c6a1d['on']('render',()=>{_0x2c6a1d['element']?.['addEventListener']('mouseleave',_0x5253c6=>{const _0x4da89a=_0x5253c6['relatedTarget'];_0x327d0f['element']?.['contains'](_0x4da89a)||this['_isMovingToNestedMenu'](_0x4da89a,_0x2c6a1d)||this['_hideNestedPanel'](_0x2c6a1d);});});}['_showNestedPanel'](_0x3a6ccc,_0x4fc287){this['_openNestedPanels']['forEach'](_0x4887b0=>{_0x4887b0!==_0x3a6ccc&&_0x4887b0['isVisible']&&_0x4887b0['hide']();}),_0x3a6ccc['show'](),_0x3a6ccc['pin']({'positions':[DropdownMenuPanelPositioningFunctions['eastSouth']],'target':_0x4fc287['element'],'fitInViewport':!0x0}),this['_openNestedPanels']['add'](_0x3a6ccc);}['_hideNestedPanel'](_0x3dba7a){_0x3dba7a['hide'](),this['_openNestedPanels']['delete'](_0x3dba7a);}['_hideAllNestedPanels'](){this['_openNestedPanels']['forEach'](_0x595361=>_0x595361['hide']()),this['_openNestedPanels']['clear']();}['_isMovingToNestedMenu'](_0x584589,_0x3721e9){if(!_0x584589)return!0x1;if(_0x3721e9['element']?.['contains'](_0x584589))return!0x0;const _0x2bbd9d=_0x584589;return _0x2bbd9d['closest']&&(null!==_0x2bbd9d['closest']('.ck-ai-quick-actions-group-panel')||null!==_0x2bbd9d['closest']('.ck-ai-quick-actions-group-list')||null!==_0x2bbd9d['closest']('.ck-ai-quick-actions-group-button'));}['destroy'](){this['_hideAllNestedPanels'](),this['_bodyCollection']['detachFromDom'](),super['destroy']();}['focus'](){this['optionsListView']['focus']();}}function aiQuickActionsDropdownCreator(_0x5e19a3,_0x539006,_0x4b5c9e,_0x2f12a7){return()=>{const _0xf0a347=_0x5e19a3['locale'],_0x31e07e=createDropdown(_0xf0a347);_0x31e07e['buttonView']['set']({'icon':_0x4b5c9e['icon']??IconAIQuickActions,'label':_0x4b5c9e['label'],'tooltip':!0x0}),_0x31e07e['set']({'class':'ck-ai-quick-actions-dropdown'});const _0x56f78d=new AIQuickActionsDropdownContentView(_0x5e19a3,_0x539006,_0x31e07e,_0x2f12a7);return _0x31e07e['panelView']['children']['add'](_0x56f78d),_0x31e07e;};}const AI_QUICK_ACTIONS_EXPLAIN_PROMPT='<task>For\x20given\x20selected\x20part\x20of\x20HTML\x20document\x20you\x20must\x20explain\x20the\x20meaning\x20of\x20it\x27s\x20content\x20clearly\x20and\x20in\x20plain\x20language.</task><rules>1.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is:-\x20If\x20it\x20looks\x20like\x20a\x20definition\x20explain\x20the\x20concept\x20in\x20simple\x20terms.-\x20If\x20it\x20looks\x20like\x20a\x20description\x20clarify\x20what\x20it\x20is\x20describing\x20and\x20why\x20it\x20matters.-\x20If\x20it\x20contains\x20technical\x20terms\x20or\x20jargon\x20break\x20them\x20down\x20into\x20everyday\x20language.-\x20If\x20it\x20looks\x20instructional\x20restate\x20as\x20clear\x20steps\x20someone\x20can\x20follow.-\x20If\x20it\x20provides\x20examples\x20explain\x20what\x20the\x20example\x20shows\x20and\x20why\x20it\x27s\x20relevant.-\x20If\x20it\x20presents\x20an\x20argument\x20or\x20claim\x20restate\x20the\x20claim\x20neutrally\x20and\x20explain\x20its\x20purpose.-\x20If\x20it\x20is\x20narrative/story-like\x20explain\x20what\x20event\x20or\x20situation\x20is\x20being\x20described.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20explain\x20what\x20the\x20data\x20indicates.-\x20If\x20it\x20is\x20a\x20quotation\x20explain\x20the\x20meaning\x20of\x20the\x20quote\x20in\x20context.-\x20If\x20it\x20compares/contrasts\x20things\x20explain\x20the\x20key\x20differences\x20or\x20similarities\x20simply.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20give\x20a\x20clear,\x20plain-language\x20explanation\x20of\x20its\x20meaning,\x20focusing\x20on\x20usefulness.2.\x20Provide\x20context\x20if\x20the\x20meaning\x20could\x20be\x20unclear\x20without\x20it.\x20(e.g.,\x20explain\x20where\x20such\x20a\x20term\x20might\x20be\x20used,\x20or\x20why\x20it\x20is\x20important).3.\x20Keep\x20the\x20explanation\x20short\x20but\x20complete\x20(2–5\x20sentences).Avoid\x20overly\x20technical\x20detail\x20unless\x20it\x20is\x20necessary\x20for\x20understanding.4.\x20Do\x20not\x20simply\x20repeat\x20the\x20original\x20text\x20—\x20restate\x20and\x20expand\x20it\x20in\x20plain\x20words.5.\x20If\x20possible,\x20add\x20a\x20short\x20example\x20or\x20analogy\x20to\x20make\x20it\x20easier\x20to\x20understand.6.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20explanation.7.\x20Your\x20explanation\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20explanation.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>',AI_QUICK_ACTIONS_SUMMARIZE_PROMPT='<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>',AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS_PROMPT='<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20extract\x20and\x20present\x20the\x20key\x20points\x20from\x20its\x20content.</task><rules>1.\x20Present\x20the\x20output\x20as\x20a\x20clear,\x20structured\x20list\x20(bullets\x20or\x20numbered).-\x20Each\x20point\x20should\x20be\x20concise\x20(one\x20sentence\x20or\x20less).-\x20Do\x20not\x20merge\x20distinct\x20ideas\x20into\x20one\x20bullet.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20extraction\x20style:-\x20If\x20it\x20is\x20descriptive\x20capture\x20the\x20main\x20attributes\x20or\x20features.-\x20If\x20it\x20is\x20argumentative\x20extract\x20the\x20main\x20claim\x20and\x20supporting\x20reasons\x20separately.-\x20If\x20it\x20is\x20narrative/story-like\x20extract\x20the\x20main\x20events\x20in\x20chronological\x20order.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20highlight\x20the\x20most\x20important\x20facts\x20or\x20numbers.-\x20If\x20it\x20is\x20instructional\x20list\x20the\x20steps\x20or\x20main\x20actions\x20in\x20simplified\x20form.-\x20If\x20it\x20provides\x20comparisons\x20extract\x20the\x20contrasted\x20items\x20and\x20their\x20differences/similarities.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20category\x20above\x20extract\x20the\x20main\x20ideas\x20in\x20plain,\x20short\x20statements.3.\x20Keep\x20the\x20list\x20between\x203–7\x20items\x20where\x20possible.-\x20If\x20the\x20text\x20is\x20very\x20short,\x20fewer\x20items\x20are\x20fine.-\x20If\x20it\x20is\x20very\x20long,\x20focus\x20on\x20the\x20most\x20important\x20ideas\x20only.4.\x20Do\x20not\x20copy\x20long\x20text\x20fragments\x20—\x20restate\x20in\x20simple\x20words.5.\x20Do\x20not\x20add\x20interpretation,\x20evaluation,\x20or\x20commentary\x20beyond\x20the\x20text.6.\x20Ensure\x20the\x20list\x20can\x20stand\x20alone\x20without\x20requiring\x20the\x20reader\x20to\x20see\x20the\x20original\x20document.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20key\x20points.8.\x20Your\x20key\x20points\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20extracted\x20key\x20points.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>';var AIQuickActionType=function(_0x523714){return _0x523714['CHAT']='CHAT',_0x523714['ACTION']='ACTION',_0x523714['REVIEW']='REVIEW',_0x523714;}({}),AIQuickActionTypeToPluginName=function(_0x3cb62a){return _0x3cb62a['CHAT']='AIChat',_0x3cb62a['ACTION']='AIActions',_0x3cb62a['REVIEW']='AIReviewMode',_0x3cb62a;}({});class AIQuickActionsUI extends Plugin{static get['requires'](){return[BalloonToolbar];}static get['pluginName'](){return'AIQuickActionsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_prepareQuickActionsDefinition'](this['_getDefaultAndCustomActions']()),this['_initializeQuickActionsComponentsAndCommands']();}static['getDefaultQuickActions'](_0x3a5ae2){return getDefaultQuickActions(_0x3a5ae2);}['_getDefaultAndCustomActions'](){const _0x43a8a2=AIQuickActionsUI['getDefaultQuickActions'](this['editor']['locale']),_0x581b48=(this['editor']['config']['get']('ai.quickActions.extraCommands')||[])['map'](_0x2b62f1=>({..._0x2b62f1,'icon':void 0x0})),_0x5d25b2=_0x43a8a2['find'](_0x3bbb79=>'other'===_0x3bbb79['id']);return _0x5d25b2['actions']['push'](..._0x581b48),_0x43a8a2;}['_initializeQuickActionsComponentsAndCommands'](){const _0x2ae1f0=new BodyCollection(this['editor']['locale']);_0x2ae1f0['attachToDom'](),this['_initializeQuickActionsDropdown'](_0x2ae1f0),this['_initializeQuickActionsMenuBar'](),this['_initializeQuickActionsComponents'](_0x2ae1f0);}['_initializeQuickActionsDropdown'](_0x1e368b){this['editor']['ui']['componentFactory']['add']('aiQuickActions',aiQuickActionsDropdownCreator(this['editor'],this['_quickActionsDefinition'],{'icon':IconAIQuickActions,'label':getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_HEADING')},_0x1e368b));}['_prepareQuickActionsDefinition'](_0x4fabf1){this['_quickActionsDefinition']=_0x4fabf1['map'](_0xdc7c13=>{if('actions'in _0xdc7c13){const _0xfb5c0b=_0xdc7c13;return{..._0xfb5c0b,'actions':_0xfb5c0b['actions']['map'](_0x2b416d=>{const {actions:_0x3294e0,..._0x5d8bbe}=_0xfb5c0b;return{..._0x2b416d,'parent':_0x5d8bbe};})['filter'](_0x10839c=>this['_shouldIncludeAction'](_0x10839c))};}return _0xdc7c13;})['filter'](_0x1e12f5=>'actions'in _0x1e12f5?_0x1e12f5['actions']['length']>0x0:this['_shouldIncludeAction'](_0x1e12f5));}['_shouldIncludeAction'](_0x37bcde){const _0x2a8ecf=this['editor']['config']['get']('ai.quickActions.removeCommands')||[];return this['editor']['plugins']['has'](AIQuickActionTypeToPluginName[_0x37bcde['type']])&&!_0x2a8ecf['includes'](_0x37bcde['id']);}['_initializeQuickActionsComponents'](_0x12a70b){this['_quickActionsDefinition']['forEach'](_0x1fc63f=>{if('actions'in _0x1fc63f){const _0x38eff6=aiQuickActionsDropdownCreator(this['editor'],_0x1fc63f['actions'],_0x1fc63f,_0x12a70b);this['editor']['ui']['componentFactory']['add'](_0x1fc63f['id'],_0x38eff6),_0x1fc63f['actions']['forEach'](_0x1e374d=>{const _0xb95226=aiQuickActionsButtonCreator(this['editor'],_0x1e374d);this['editor']['ui']['componentFactory']['add'](_0x1e374d['id'],_0xb95226);});}else{const _0x4bf194=aiQuickActionsButtonCreator(this['editor'],_0x1fc63f,!0x1,!0x0,!0x1);this['editor']['ui']['componentFactory']['add'](_0x1fc63f['id'],_0x4bf194);}});}['_initializeQuickActionsMenuBar'](){this['editor']['ui']['componentFactory']['add']('menuBar:aiQuickActions',_0x441af5=>{const _0x4e4102=new MenuBarMenuView(_0x441af5),_0x2ede02=getTranslation$i(_0x441af5,'AI_QUICK_ACTIONS_HEADING');_0x4e4102['buttonView']['set']({'label':_0x2ede02,'icon':IconAIQuickActions});const _0x27fb5d=new MenuBarMenuListView(_0x441af5);_0x27fb5d['set']({'ariaLabel':_0x2ede02,'role':'menu'}),this['_quickActionsDefinition']['forEach'](_0x37ab4e=>{if('actions'in _0x37ab4e){const _0x281e6=_0x37ab4e,_0x36d984=new MenuBarMenuListItemView(_0x441af5,_0x4e4102),_0x2d4521=new MenuBarMenuView(_0x441af5),_0x5bdff8=new MenuBarMenuListView(_0x441af5);_0x2d4521['buttonView']['set']({'label':_0x281e6['label'],'icon':_0x281e6['icon']}),_0x281e6['actions']['forEach'](_0x6c433a=>{const _0x496952=new MenuBarMenuListItemView(_0x441af5,_0x2d4521),_0x17c042=new MenuBarMenuListItemButtonView(_0x441af5);_0x17c042['set']({'label':_0x6c433a['displayedPrompt'],'icon':_0x6c433a['icon'],'role':'menuitem'}),_0x17c042['on']('execute',()=>{this['_executeQuickAction'](_0x6c433a);}),_0x17c042['delegate']('execute')['to'](_0x2d4521),_0x496952['children']['add'](_0x17c042),_0x5bdff8['items']['add'](_0x496952);}),_0x2d4521['panelView']['children']['add'](_0x5bdff8),_0x36d984['children']['add'](_0x2d4521),_0x27fb5d['items']['add'](_0x36d984);}else{const _0x447bbc=_0x37ab4e,_0x197cd4=new MenuBarMenuListItemView(_0x441af5,_0x4e4102),_0x410525=new MenuBarMenuListItemButtonView(_0x441af5);_0x410525['set']({'label':_0x447bbc['displayedPrompt'],'icon':_0x447bbc['icon'],'role':'menuitem'}),_0x410525['on']('execute',()=>{this['_executeQuickAction'](_0x447bbc);}),_0x410525['delegate']('execute')['to'](_0x4e4102),_0x197cd4['children']['add'](_0x410525),_0x27fb5d['items']['add'](_0x197cd4);}});const _0x2a975b=Object['values'](AIQuickActionTypeToPluginName)['some'](_0x54db72=>this['editor']['plugins']['has'](_0x54db72));return _0x4e4102['set']({'isEnabled':_0x2a975b}),_0x4e4102['panelView']['children']['add'](_0x27fb5d),_0x4e4102;});}['_executeQuickAction'](_0x3bb92c){const _0x562f5a=this['editor'];_0x562f5a['editing']['view']['focus'](),_0x562f5a['commands']['execute']('aiQuickAction',_0x3bb92c);const _0x540c0a=_0x562f5a['ui']['view']['menuBarView'];_0x540c0a&&_0x540c0a['close']&&_0x540c0a['close']();}}function getDefaultQuickActions(_0x2f7307){const _0x286710=new Intl['DisplayNames'](['en'],{'type':'language'})['of'](_0x2f7307['uiLanguage'])||'English';return[{'id':'ask-ai','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_ASK_AI'),'type':'CHAT','icon':IconAIAskAI},{'id':'chat-commands','label':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_CHAT_COMMANDS'),'icon':IconAIChatCommands,'actions':[{'id':'explain','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_EXPLAIN'),'prompt':AI_QUICK_ACTIONS_EXPLAIN_PROMPT['replace']('%0',_0x286710),'type':'CHAT'},{'id':'summarize','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_SUMMARIZE'),'prompt':AI_QUICK_ACTIONS_SUMMARIZE_PROMPT['replace']('%0',_0x286710),'type':'CHAT'},{'id':'highlight-key-points','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS'),'prompt':AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS_PROMPT['replace']('%0',_0x286710),'type':'CHAT'}]},{'id':'improve-writing','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_IMPROVE_WRITING'),'type':'ACTION','icon':IconAIImproveWriting},{'id':'continue','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_CONTINUE_WRITING'),'type':'ACTION','icon':IconAIContinueWriting},{'id':'fix-grammar','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING'),'type':'ACTION','icon':IconAIGrammarCheck},{'id':'adjust-length','label':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_ADJUST_LENGTH'),'icon':IconAIAdjustLength,'actions':[{'id':'make-shorter','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_MAKE_SHORTER'),'type':'ACTION'},{'id':'make-longer','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_MAKE_LONGER'),'type':'ACTION'}]},{'id':'change-tone','label':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_CHANGE_TONE'),'icon':IconAIChangeTone,'actions':[{'id':'make-tone-casual','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_MORE_CASUAL'),'type':'ACTION'},{'id':'make-tone-direct','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_MORE_DIRECT'),'type':'ACTION'},{'id':'make-tone-friendly','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_MORE_FRIENDLY'),'type':'ACTION'},{'id':'make-tone-confident','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_MORE_CONFIDENT'),'type':'ACTION'},{'id':'make-tone-professional','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_MORE_PROFESSIONAL'),'type':'ACTION'}]},{'id':'translate','label':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_TRANSLATE'),'icon':IconAITranslate,'actions':[{'id':'translate-to-english','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH'),'type':'ACTION','actionName':'translate','args':{'language':'english'}},{'id':'translate-to-chinese','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_TRANSLATE_CHINESE'),'type':'ACTION','actionName':'translate','args':{'language':'chinese'}},{'id':'translate-to-spanish','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_TRANSLATE_SPANISH'),'type':'ACTION','actionName':'translate','args':{'language':'spanish'}},{'id':'translate-to-german','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_TRANSLATE_GERMAN'),'type':'ACTION','actionName':'translate','args':{'language':'german'}},{'id':'translate-to-french','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_TRANSLATE_FRENCH'),'type':'ACTION','actionName':'translate','args':{'language':'french'}},{'id':'translate-to-japanese','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE'),'type':'ACTION','actionName':'translate','args':{'language':'japanese'}},{'id':'translate-to-portuguese','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE'),'type':'ACTION','actionName':'translate','args':{'language':'portuguese'}},{'id':'translate-to-korean','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_TRANSLATE_KOREAN'),'type':'ACTION','actionName':'translate','args':{'language':'korean'}},{'id':'translate-to-italian','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN'),'type':'ACTION','actionName':'translate','args':{'language':'italian'}},{'id':'translate-to-russian','displayedPrompt':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN'),'type':'ACTION','actionName':'translate','args':{'language':'russian'}}]},{'id':'other','label':getTranslation$i(_0x2f7307,'AI_QUICK_ACTIONS_OTHER'),'icon':IconAIOther,'actions':[]}];}class AIQuickActionsCommand extends _0x142ccd{['execute'](_0x1e9301){switch(this['_expandSelectionIfCollapsed'](),_0x1e9301['type']){case AIQuickActionType['CHAT']:if(!this['editor']['plugins']['has']('AIChat')){const _0x1640b4=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIChat');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x1640b4});}this['_handleAIChatAction'](_0x1e9301);break;case AIQuickActionType['ACTION']:if(!this['editor']['plugins']['has']('AIActions')){const _0x54d223=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIActions');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x54d223});}this['_handleAIActionsAction'](_0x1e9301);break;case AIQuickActionType['REVIEW']:if(!this['editor']['plugins']['has']('AIReviewMode')){const _0x3f7b93=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIReviewMode');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x3f7b93});}this['_handleAIReviewAction'](_0x1e9301);}}async['_handleAIChatAction'](_0x5cab8f){const _0x418351=this['editor']['plugins']['get']('AIChat'),_0x1d81ae=this['editor']['plugins']['get']('AIChatController');if(this['editor']['plugins']['get']('AITabs')['view']['activateTab']('chat'),'ask-ai'===_0x5cab8f['id'])_0x1d81ae['removeSelectionFromChatContext'](),await _0x418351['addSelectionToChatContext'](),_0x418351['focusPromptInput']();else await _0x418351['startConversation'](),_0x1d81ae['removeSelectionFromChatContext'](),await _0x418351['addSelectionToChatContext'](),_0x418351['focusPromptInput'](),await _0x418351['sendMessage']({'message':_0x5cab8f['prompt']||_0x5cab8f['displayedPrompt'],'quickActionData':{'id':_0x5cab8f['id'],'displayedPrompt':_0x5cab8f['displayedPrompt']}});}['_expandSelectionIfCollapsed'](){const _0x253416=this['editor'],_0x542f9c=_0x253416['model']['document']['selection'];if(!_0x542f9c['isCollapsed'])return;const _0x42ec6a=first(_0x542f9c['getSelectedBlocks']())||_0x253416['model']['schema']['getLimitElement'](_0x542f9c);_0x253416['model']['change'](_0x394b2d=>{_0x394b2d['setSelection'](_0x42ec6a,'in');});}['_handleAIActionsActionLabel'](_0x1e64de){return _0x1e64de['parent']?.['label']&&'other'!==_0x1e64de['parent']?.['id']?_0x1e64de['parent']['label']+':\x20'+_0x1e64de['displayedPrompt']:_0x1e64de['displayedPrompt'];}async['_handleAIActionsAction'](_0x9a480e){const _0x1a999a=this['editor']['plugins']['get']('AIActions'),_0x3d2f77=_0x9a480e['prompt']?{'userMessage':_0x9a480e['prompt'],'model':_0x9a480e['model']}:{'actionName':_0x9a480e['actionName']||_0x9a480e['id'],'args':_0x9a480e['args']},_0xa6c61d=this['_handleAIActionsActionLabel'](_0x9a480e);await _0x1a999a['executeAction'](_0x3d2f77,_0xa6c61d,_0x9a480e['icon']);}async['_handleAIReviewAction'](_0x1b45b6){console['log']('handleAIReviewAction',_0x1b45b6);}}class AIQuickActionsEditing extends Plugin{static get['pluginName'](){return'AIQuickActionsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2d575d=this['editor'],_0x22afe6=new AIQuickActionsCommand(this['editor']);if(_0x2d575d['commands']['add']('aiQuickAction',_0x22afe6),_0x2d575d['plugins']['has']('AIChat')){const _0x5747cd=this['editor']['plugins']['get']('AIChat');_0x2d575d['model']['document']['selection']['on']('change:range',(_0x589ff2,_0x19bcfd)=>{_0x19bcfd['directChange']&&_0x5747cd['removeSelectionFromChatContext']();});}}}class AIActionsReply extends AIReply{['updateChangeGroups'](){if(this['parsedMergedContent']=this['parsedContent']['cloneNode'](!0x0),0x0==this['parsedMergedContent']['childNodes']['length'])return void(this['changeGroups']=[]);const _0x4f031a=diffArrays(this['documentContextContent']['children']['map'](_0x41d219=>({'node':_0x41d219,'id':getAttribute(_0x41d219,'data-id')})),this['parsedMergedContent']['children']['map'](_0x39cbfc=>({'node':_0x39cbfc,'id':getAttribute(_0x39cbfc,'data-id')||uid()})),{'comparator':(_0x3b657c,_0x1fcf3a)=>_0x3b657c['id']==_0x1fcf3a['id'],'oneChangePerToken':!0x0});if(!this['isDone']){for(;_0x4f031a['length']&&_0x4f031a[_0x4f031a['length']-0x1]['removed'];)_0x4f031a['pop']();}const _0x2bdd8e=_0x4f031a['map'](_0x1324e8=>{const _0x5b76d7=_0x1324e8['added']?'new':_0x1324e8['removed']?'removed':'modified';return{'node':_0x1324e8['value'][0x0]['node'],'type':_0x5b76d7,'id':_0x1324e8['value'][0x0]['id']};});this['changeGroups']=[{'changes':_0x2bdd8e,'state':'pending','index':0x0}];}['_getDifferentChangeGroups'](_0x5ecbd2,_0x57cbb7){return _0x57cbb7;}}class AIActionsInteraction extends AIInteraction{['content'];['version'];['actionName'];['args'];['userMessage'];['model'];['hasError']=!0x1;constructor(_0x23247e){super(_0x23247e),this['content']=_0x23247e['content'],this['version']=_0x23247e['version'],this['actionName']=_0x23247e['actionName'],this['args']=_0x23247e['args'],this['userMessage']=_0x23247e['userMessage'],this['model']=_0x23247e['model'];}async['sendRequest'](){return this['actionName']?this['connector']['executeAction']({'content':this['content'],'actionName':this['actionName'],'args':this['args']}):this['connector']['executeCustomAction']({'content':this['content'],'message':this['userMessage'],'model':this['model'],'outputFormat':'html'});}['getDocumentContext'](){return{'type':AIContextItemType['TEXT'],'content':this['content'],'version':this['version'],'label':'Current\x20document','uiId':'current-document'};}['createReply'](_0x1e0063){const _0x3a5d50=new AIActionsReply({'editor':this['editor'],'documentContextContent':this['content'],..._0x1e0063});return this['replies']['push'](_0x3a5d50),_0x3a5d50['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['fire']('replyCreated',_0x3a5d50),_0x3a5d50;}}class AIActions extends Plugin{static get['requires'](){return[AIConnector,Dialog,AIEditing,AIBalloon,DocumentCompare];}static get['pluginName'](){return'AIActions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_aiConnector'];['_interactions']=[];['_currentInteractionIndex']=0x0;['_interactionParams'];['_balloonShowDiff']=!0x1;['_customViews']=new ViewCollection();['_navigationPreviousButton'];['_navigationCounter'];['_isNavigationCounterInView']=!0x1;['_navigationNextButton'];['_isNavigationPreviousButtonInView']=!0x1;['_isNavigationNextButtonInView']=!0x1;['_promiseQueue'];get['_interaction'](){return this['_interactions'][this['_interactions']['length']-0x1];}constructor(_0x19723d){super(_0x19723d),this['_aiConnector']=this['editor']['plugins']['get']('AIConnector'),this['set']('isBusy',!0x1),this['_promiseQueue']=new PromiseQueue(),this['_setupCustomViews']();}['stopInteraction'](){this['_stopInteraction']();}async['executeAction'](_0x4d775f,_0x2074fe,_0x2a71a2){if(this['editor']['plugins']['has']('TableSelection')){if(this['editor']['plugins']['get']('TableSelection')['getSelectedTableCells']()){const {modelFragment:_0x1242d7,anchorData:_0x170aa5}=this['_getExecuteDataInTable']();return this['_executeAction'](_0x4d775f,_0x1242d7,_0x170aa5,_0x2074fe,_0x2a71a2);}}const {modelFragment:_0x22c9de,anchorData:_0x53ac89}=this['_getExecuteDataRegular']();return this['_executeAction'](_0x4d775f,_0x22c9de,_0x53ac89,_0x2074fe,_0x2a71a2);}['_getExecuteDataRegular'](){const _0x435225=this['editor']['model']['document']['selection'];if(_0x435225['isCollapsed']){const _0x33dd15=first(_0x435225['getSelectedBlocks']())||this['editor']['model']['schema']['getLimitElement'](_0x435225);this['editor']['model']['change'](_0x6885b7=>{_0x6885b7['setSelection'](_0x33dd15,'in');});}const _0x2d5d0c=_0x435225['getFirstRange'](),_0xfdb6f3=this['_wrapWithCommonAncestors'](this['editor']['model']['getSelectedContent'](_0x435225),_0x2d5d0c['start'],_0x2d5d0c['end']),_0x3fc8d6=_0x435225['getFirstRange']()['start'],_0xf2f3fc=new Map();let _0x391ee6=_0xfdb6f3;for(let _0x274529=0x0;_0x274529<_0x3fc8d6['path']['length'];_0x274529++)_0xf2f3fc['set'](_0x391ee6,_0x3fc8d6['path'][_0x274529]),_0x391ee6=_0x391ee6['getChild'](0x0);return{'modelFragment':_0xfdb6f3,'anchorData':_0xf2f3fc};}['_getExecuteDataInTable'](){const _0x1a9ab4=this['editor']['model']['document']['selection'],_0x438de4=this['editor']['plugins']['get']('TableSelection')['getSelectionAsFragment'](),_0x1a061d=_0x1a9ab4['getFirstRange']()['start']['parent']['parent'],_0x54d307=this['_wrapWithCommonAncestors'](_0x438de4,this['editor']['model']['createPositionBefore'](_0x1a061d),this['editor']['model']['createPositionAfter'](_0x1a061d)),_0x4c7731=_0x1a9ab4['getFirstRange']()['start'],_0x1bc8e0=new Map();let _0x3fa784=_0x54d307;for(let _0x5c59f7=0x0;_0x5c59f7<_0x4c7731['path']['length'];_0x5c59f7++)if(_0x1bc8e0['set'](_0x3fa784,_0x4c7731['path'][_0x5c59f7]),_0x5c59f7<_0x4c7731['path']['length']-0x1)_0x3fa784=_0x3fa784['getChild'](0x0);else{let _0xb04b6d=_0x3fa784['nextSibling'];for(;_0xb04b6d;)_0x1bc8e0['set'](_0xb04b6d,_0x4c7731['path'][_0x5c59f7]),_0xb04b6d=_0xb04b6d['nextSibling'];}return{'modelFragment':_0x54d307,'anchorData':_0x1bc8e0};}['_executeAction'](_0x15d3f6,_0x5cd8bf,_0x34ca04,_0x14dd81,_0x239b0f){const _0x204e52=this['editor']['plugins']['get'](AIEditing),_0x2274a2=this['editor']['plugins']['get'](AIBalloon),_0x2eae4d=this['editor']['model']['document']['selection'],_0x3b72ab=_0x204e52['modelToViewWithIds'](_0x5cd8bf),_0x31a7c1=this['editor']['data']['processor']['toData'](_0x3b72ab),_0x4b06a6=this['editor']['model']['document']['version'],_0x2615c6=[..._0x2eae4d['getRanges']()],_0x383dc4=new AISuggestionContainerView(this['editor']['locale'],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':'icon','customView':this['_customViews']},'showUnchangedParts':!0x0});return _0x2274a2['open']({'index':0x3e8*Math['random']()%0x3e8,'title':_0x14dd81,'icon':_0x239b0f||IconAIQuickActions,'mainView':_0x383dc4,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x2615c6}),this['_setLoadingState'](_0x383dc4,_0x2274a2),this['listenTo'](_0x2274a2,'applySuggestion',()=>{this['_applyChanges'](_0x5cd8bf,_0x34ca04,!0x1);}),this['listenTo'](_0x2274a2,'insertSuggestion',()=>{this['_applyChanges'](_0x5cd8bf,_0x34ca04,!0x0);}),this['listenTo'](_0x2274a2,'dialogClosed',()=>{if(this['_interaction']&&this['_interaction']['replies']['length']>0x0){const _0x237df9=this['_interaction']['replies'][this['_interaction']['replies']['length']-0x1],_0x522a54=_0x237df9['changeGroups'][0x0];_0x522a54&&'pending'===_0x522a54['state']&&_0x237df9['setChangeGroupState'](0x0,'rejected');}this['_stopInteraction'](),this['_clearInteractionHistory'](),this['stopListening'](_0x2274a2);}),this['_createInteraction'](_0x31a7c1,_0x4b06a6,_0x383dc4,_0x2274a2,_0x15d3f6);}['_wrapWithCommonAncestors'](_0x356645,_0x2c4dff,_0x15b580){const _0x2b27b5=this['editor']['model']['createRange'](_0x2c4dff,_0x15b580)['getCommonAncestor'](),_0x2e855f=_0x2b27b5['is']('documentFragment')?[]:_0x2b27b5['getAncestors']({'includeSelf':!0x0})['slice'](0x1);if(_0x2e855f['length']){const _0x341526=_0x2e855f['map'](_0x38a2d4=>_0x38a2d4['_clone'](!0x1));for(let _0x3144f8=0x1;_0x3144f8<_0x341526['length'];_0x3144f8++)_0x341526[_0x3144f8-0x1]['_appendChild'](_0x341526[_0x3144f8]);return _0x341526[_0x341526['length']-0x1]['_appendChild'](_0x356645),new ModelDocumentFragment(_0x341526[0x0]);}return _0x356645;}async['_createInteraction'](_0x2cb119,_0x3b50c8,_0x3a1e27,_0x15e471,_0xc4f639){const _0x374cc4=this['editor'];this['_interactionParams']={'action':_0xc4f639,'content':_0x2cb119,'version':_0x3b50c8,'mainView':_0x3a1e27,'aiBalloon':_0x15e471};const _0x1dcb0e=new AIActionsInteraction({'connector':this['_aiConnector'],'editor':_0x374cc4,'content':_0x2cb119,'version':_0x3b50c8,..._0xc4f639});this['_interactions']['push'](_0x1dcb0e),_0x3a1e27['hideError']();const _0x4944a3=(_0x2a0baf,_0x239ce9,_0x2b2465=!0x1,_0x398e1d='streaming')=>this['_promiseQueue']['enqueue'](async _0x5cd1bf=>{try{const _0x6085d9=getSuggestionPartsFromReply({'editor':_0x374cc4,'changeGroups':_0x2a0baf['changeGroups'],'documentContextContent':_0x2a0baf['documentContextContent'],'showDiff':_0x2b2465,'trimUnchanged':!0x1});await _0x239ce9['updateContent']({'parts':_0x6085d9,'renderingStrategy':_0x398e1d,'abortSignal':_0x5cd1bf});}catch(_0x9e1209){if(this['_isAbortError'](_0x9e1209))return;throw _0x9e1209;}});this['_interaction']['on']('replyCreated',(_0x17510b,_0x2c2576)=>{_0x3a1e27['hideLoader'](),_0x4944a3(_0x2c2576,_0x3a1e27)['catch'](_0x57e363=>{this['_isAbortError'](_0x57e363)||(console['error']('Error\x20updating\x20content\x20in\x20replyCreated:',_0x57e363),this['_setErrorState'](_0x1dcb0e,_0x3a1e27));});}),this['_interaction']['on']('replyContentUpdated',(_0x103507,_0x4d1307)=>{_0x4944a3(_0x4d1307,_0x3a1e27)['catch'](_0x4b9048=>{this['_isAbortError'](_0x4b9048)||(console['error']('Error\x20updating\x20content\x20in\x20replyContentUpdated:',_0x4b9048),this['_setErrorState'](_0x1dcb0e,_0x3a1e27));});}),this['_interaction']['on']('interactionFinished',async()=>{try{await this['_clearLoadingState'](_0x3a1e27,_0x15e471),this['_updateNavigationUI']();}catch(_0x501015){this['_isAbortError'](_0x501015)||(console['error']('Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:',_0x501015),this['_setErrorState'](_0x1dcb0e,_0x3a1e27));}}),this['listenTo'](_0x3a1e27,'toggleSuggestionDisplayMode',(_0xeb08a3,{showDiff:_0x41458f})=>{this['_balloonShowDiff']=_0x41458f;const _0x25f3de=this['_interaction']['replies'][this['_interaction']['replies']['length']-0x1];_0x25f3de&&_0x4944a3(_0x25f3de,_0x3a1e27,_0x41458f,'static')['catch'](_0x337cb8=>{this['_isAbortError'](_0x337cb8)||(console['error']('Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:',_0x337cb8),this['_setErrorState'](_0x1dcb0e,_0x3a1e27));});}),this['_interaction']['on']('replyChangeGroupStateUpdated',(_0x5d782d,{reply:_0x1224b8})=>{const _0x417017={'positiveCount':_0x1224b8['changeGroups']['filter'](_0x22d905=>'accepted'===_0x22d905['state'])['length'],'totalCount':_0x1224b8['changeGroups']['length']},_0x38f822=this['_interaction']['actionCallId'],_0x2a88ba=this['_interaction']['actionName'];_0x2a88ba?this['_aiConnector']['upsertAIActionRating'](_0x2a88ba,_0x38f822,_0x417017):this['_aiConnector']['upsertCustomAIActionRating'](_0x38f822,_0x417017);}),this['_setLoadingState'](_0x3a1e27,_0x15e471);try{const _0x2306cb=await this['_interaction']['start']();return this['_updateNavigationUI'](),_0x2306cb;}catch(_0x4b26ea){if(this['_isAbortError'](_0x4b26ea))return;_0x3a1e27['hideLoader'](),this['_setErrorState'](_0x1dcb0e,_0x3a1e27);}}['_applyChanges'](_0x23f9fe,_0x59b4b1,_0x17a595){const _0x5cc86b=this['editor'],_0x4a32b9=this['editor']['plugins']['get'](DocumentCompare),_0x314a06=this['_interaction'],_0x566dbb=this['_interaction']['replies'][this['_interaction']['replies']['length']-0x1],_0x2b8735=_0x566dbb['changeGroups'];_0x566dbb['setChangeGroupState'](0x0,'accepted');let _0x2b10bd=getOperationsFromReply({'editor':_0x5cc86b,'reply':_0x566dbb,'interaction':_0x314a06,'groups':_0x2b8735,'transform':!0x1,'documentCompare':_0x4a32b9,'documentCompareOptions':{'anchor':_0x5cc86b['model']['createPositionAt'](_0x23f9fe,0x0),'markDeletions':_0x17a595}});_0x2b10bd=this['_filterOperationsOutsideRange'](_0x2b10bd,_0x59b4b1);for(const _0x15ab2c of _0x2b10bd)this['_anchorOperation'](_0x59b4b1,_0x15ab2c,_0x5cc86b['model']['document']['getRoot']());const _0x402b12=_0x314a06['getDocumentContext']()['version'],_0x532551=_0x5cc86b['model']['document']['history']['getOperations'](_0x402b12),_0x112763={'document':_0x5cc86b['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1},_0x296d60=transformOperationSets(_0x2b10bd,_0x532551,_0x112763)['operationsA'];_0x5cc86b['model']['change'](_0xaf664e=>{if(_0xaf664e['setSelection'](_0x5cc86b['model']['document']['selection']['focus']),_0x17a595)_0x5cc86b['plugins']['get']('TrackChangesEditing')['_applyOperationsAsSuggestions'](_0x296d60);else{for(const _0x13d8e5 of _0x296d60)_0x13d8e5['baseVersion']=_0x5cc86b['model']['document']['version'],_0xaf664e['batch']['addOperation'](_0x13d8e5),_0x5cc86b['model']['applyOperation'](_0x13d8e5);}}),this['editor']['plugins']['get']('AIBalloon')['close']();}['_filterOperationsOutsideRange'](_0x5d47eb,_0x38ad9d){return _0x5d47eb['filter'](_0x142f6b=>{if('rename'==_0x142f6b['type']){const _0x2320d1=_0x142f6b['position']['nodeAfter'];return!_0x38ad9d['has'](_0x2320d1);}if(_0x142f6b['type']['indexOf']('Attribute')>-0x1){const _0x20e247=_0x142f6b['range']['start']['nodeAfter'];return!_0x38ad9d['has'](_0x20e247);}return!0x0;});}['_anchorOperation'](_0x33ab5d,_0x3adc33,_0x5f4768){const _0x29f2df=_0x3adc33['clone']();for(const _0x21cdd0 in _0x3adc33){const _0x265941=_0x3adc33[_0x21cdd0];_0x265941 instanceof ModelRange?_0x3adc33[_0x21cdd0]=new ModelRange(_0x57be2f(_0x265941['start']),_0x57be2f(_0x265941['end'])):_0x265941 instanceof ModelPosition&&(_0x3adc33[_0x21cdd0]=_0x57be2f(_0x265941));}if(['insert','move','remove','reinsert','split','merge']['includes'](_0x29f2df['type'])){if(_0x29f2df['isDocumentOperation']=!0x1,_0x29f2df['baseVersion']=null,'remove'==_0x29f2df['type']){const _0x2f8e9d=_0x29f2df['sourcePosition'],_0x501c89=_0x29f2df['howMany'];new _DetachOperation(_0x2f8e9d,_0x501c89)['_execute']();}else _0x29f2df['_execute']();}function _0x57be2f(_0x2842ef){if('$graveyard'==_0x2842ef['root']['rootName'])return _0x2842ef;const _0x37cba3=[];let _0x27d258=_0x2842ef['root'];for(let _0x217750=0x0;_0x217750<_0x2842ef['path']['length'];_0x217750++){const _0x150cf1=_0x33ab5d['get'](_0x27d258)||0x0;_0x37cba3[_0x217750]=_0x2842ef['path'][_0x217750]+_0x150cf1,_0x27d258=_0x27d258['getChildAtOffset'](_0x2842ef['path'][_0x217750]);}return new ModelPosition(_0x5f4768,_0x37cba3,_0x2842ef['stickiness']);}}['_refreshInteraction'](){if(!this['_interactionParams'])return;this['_interactions']['length']>0x0&&this['_stopInteraction'](),this['_currentInteractionIndex']=0x0,this['_balloonShowDiff']=!0x1;const {action:_0x16d430,content:_0x20afa2,version:_0xbfe88b,mainView:_0x5269bc,aiBalloon:_0x110a17}=this['_interactionParams'];_0x5269bc['areChangesVisible']=!0x1,_0x5269bc['hideError'](),this['_clearErrorState'](_0x5269bc,_0x110a17);const _0xc03540=_0x5269bc;_0xc03540['miniToolbarView']&&_0xc03540['miniToolbarView']['showChangesButton']&&_0xc03540['miniToolbarView']['showChangesButton']['set']({'isOn':!0x1,'icon':IconShowChangesOff}),this['_clearSuggestionContent'](_0x5269bc),_0x5269bc['showLoader'](),this['_updateNavigationUI'](),this['_createInteraction'](_0x20afa2,_0xbfe88b,_0x5269bc,_0x110a17,_0x16d430)['catch'](_0x502200=>{this['_isAbortError'](_0x502200)||console['error']('Error\x20refreshing\x20interaction:',_0x502200);});}['_clearSuggestionContent'](_0x11828a){const _0x3bd3de=_0x11828a['bodyView']['_children'];for(;_0x3bd3de['length']>0x0;)_0x3bd3de['remove'](_0x3bd3de['first']);_0x11828a['bodyView']['hasPendingParts']=!0x1;}['_isAbortError'](_0x56b3b1){return!!_0x56b3b1['message']&&_0x56b3b1['message']['startsWith']('ai-request-aborted');}['_clearInteractionHistory'](){this['_interactions']=[],this['_interactionParams']=void 0x0,this['_currentInteractionIndex']=0x0,this['_updateNavigationUI']();}['_stopInteraction'](){this['_interaction']&&this['_interaction']['stop'](),this['_promiseQueue']['abort'](),this['isBusy']=!0x1;}['_setupCustomViews'](){const _0xe9607b=new ButtonView(this['editor']['locale']),_0x54f753=new ButtonView(this['editor']['locale']),_0x2db4ae=new View(this['editor']['locale']),_0x2e2c69=new ButtonView(this['editor']['locale']);_0xe9607b['set']({'icon':IconRefresh,'label':getTranslation$i(this['editor']['locale'],'AI_ACTIONS_TRY_AGAIN'),'tooltip':!0x0,'class':'ck-ai-custom-action-button'}),_0x54f753['set']({'icon':IconPreviousArrow,'tooltip':getTranslation$i(this['editor']['locale'],'AI_ACTIONS_PREVIOUS_INTERACTION'),'class':'ck-ai-navigation-button\x20ck-ai-previous-button'}),_0x2db4ae['setTemplate']({'tag':'span','attributes':{'class':['ck-ai-interaction-counter']},'children':['1/1']}),_0x2e2c69['set']({'icon':IconNextArrow,'tooltip':getTranslation$i(this['editor']['locale'],'AI_ACTIONS_NEXT_INTERACTION'),'class':'ck-ai-navigation-button\x20ck-ai-next-button'}),_0xe9607b['bind']('isEnabled')['to'](this,'isBusy',_0x46711f=>!_0x46711f),_0xe9607b['on']('execute',()=>{this['_refreshInteraction']();}),_0x54f753['bind']('isEnabled')['to'](this,'isBusy',_0x399e7b=>!_0x399e7b),_0x54f753['on']('execute',()=>{this['_navigateToPrevious']();}),_0x2e2c69['bind']('isEnabled')['to'](this,'isBusy',_0x53914b=>!_0x53914b),_0x2e2c69['on']('execute',()=>{this['_navigateToNext']();}),this['_navigationPreviousButton']=_0x54f753,this['_navigationCounter']=_0x2db4ae,this['_navigationNextButton']=_0x2e2c69,this['_customViews']['add'](_0xe9607b);}['_navigateToPrevious'](){const _0xf15494=this['_interactions']['length'];this['_currentInteractionIndex']<_0xf15494-0x1&&this['_displayInteractionAtIndex'](this['_currentInteractionIndex']+0x1);}['_navigateToNext'](){this['_currentInteractionIndex']>0x0&&this['_displayInteractionAtIndex'](this['_currentInteractionIndex']-0x1);}async['_displayInteractionAtIndex'](_0x39b3f5){if(!this['_interactionParams'])return;this['_currentInteractionIndex']=_0x39b3f5;const {mainView:_0x202e29}=this['_interactionParams'],_0x1ce6a6=this['_interactions'][this['_interactions']['length']-0x1-this['_currentInteractionIndex']];if(!_0x1ce6a6)return;if(_0x1ce6a6['hasError'])return this['_setErrorState'](_0x1ce6a6,_0x202e29),void this['_updateNavigationUI']();if(!_0x1ce6a6['replies']['length'])return;_0x202e29['hideError'](),this['_interactionParams']&&this['_clearErrorState'](_0x202e29,this['_interactionParams']['aiBalloon']);const _0x3f89ae=_0x1ce6a6['replies'][_0x1ce6a6['replies']['length']-0x1];if(_0x3f89ae){const _0x16c672=this['editor'];this['_clearSuggestionContent'](_0x202e29);try{const _0x2ffbd8=getSuggestionPartsFromReply({'editor':_0x16c672,'changeGroups':_0x3f89ae['changeGroups'],'documentContextContent':_0x3f89ae['documentContextContent'],'showDiff':this['_balloonShowDiff'],'trimUnchanged':!0x1});this['_clearSuggestionContent'](_0x202e29),await new Promise(_0x3f8500=>setTimeout(_0x3f8500,0x32)),await _0x202e29['updateContent']({'parts':_0x2ffbd8,'renderingStrategy':'static','abortSignal':new AbortController()['signal']});}catch(_0x2c1316){this['_isAbortError'](_0x2c1316)||console['error']('Error\x20updating\x20content\x20during\x20navigation:',_0x2c1316);}}this['_updateNavigationUI']();}['_updateNavigationUI'](){if(!this['_navigationPreviousButton']||!this['_navigationCounter']||!this['_navigationNextButton'])return;const _0x310f9a=this['_interactions']['length'],_0x3f72f6=_0x310f9a>0x1,_0x5302aa=this['_interactionParams']?.['mainView'];if(_0x3f72f6){this['_isNavigationPreviousButtonInView']||this['_isNavigationCounterInView']||this['_isNavigationNextButtonInView']||(this['_customViews']['add'](this['_navigationPreviousButton']),_0x5302aa?.['addNavigationItem'](this['_navigationPreviousButton']),this['_isNavigationPreviousButtonInView']=!0x0,this['_customViews']['add'](this['_navigationCounter']),_0x5302aa?.['addNavigationItem'](this['_navigationCounter']),this['_isNavigationCounterInView']=!0x0,this['_customViews']['add'](this['_navigationNextButton']),_0x5302aa?.['addNavigationItem'](this['_navigationNextButton']),this['_isNavigationNextButtonInView']=!0x0);const _0x1f1b4c=_0x310f9a-this['_currentInteractionIndex'];this['_navigationCounter']['element']&&(this['_navigationCounter']['element']['textContent']=_0x1f1b4c+'/'+_0x310f9a),this['_navigationPreviousButton']['isEnabled']=this['_currentInteractionIndex']<_0x310f9a-0x1,this['_navigationNextButton']['isEnabled']=this['_currentInteractionIndex']>0x0;}else(this['_isNavigationPreviousButtonInView']||this['_isNavigationCounterInView']||this['_isNavigationNextButtonInView'])&&(this['_customViews']['remove'](this['_navigationPreviousButton']),_0x5302aa?.['removeNavigationItem'](this['_navigationPreviousButton']),this['_isNavigationPreviousButtonInView']=!0x1,this['_customViews']['remove'](this['_navigationCounter']),_0x5302aa?.['removeNavigationItem'](this['_navigationCounter']),this['_isNavigationCounterInView']=!0x1,this['_customViews']['remove'](this['_navigationNextButton']),_0x5302aa?.['removeNavigationItem'](this['_navigationNextButton']),this['_isNavigationNextButtonInView']=!0x1);}['_setLoadingState'](_0x3f1245,_0x2929c7){_0x3f1245['setLoading'](),_0x2929c7['balloonView']['setLoading'](),this['isBusy']=!0x0;}async['_setErrorState'](_0x46694d,_0x8f6a){const _0x46b009=getTranslation$i(this['editor']['locale'],'AI_ACTIONS_GENERIC_ERROR');_0x8f6a['showError'](_0x46b009),_0x46694d['hasError']=!0x0,await this['_promiseQueue']['queueEmptyPromise'],_0x8f6a['setErrorState'](),this['_interactionParams']?.['aiBalloon']['balloonView']['toolbar']&&(this['_interactionParams']['aiBalloon']['balloonView']['toolbar']['isLoading']=!0x0);}['_clearErrorState'](_0x259bbb,_0x2c2ee4){_0x259bbb['clearErrorState'](),_0x2c2ee4['balloonView']['toolbar']&&(_0x2c2ee4['balloonView']['toolbar']['isLoading']=!0x1);}async['_clearLoadingState'](_0x1ccce1,_0x22895f){await this['_promiseQueue']['queueEmptyPromise'],this['isBusy']=!0x1,_0x1ccce1['clearLoading'](),_0x22895f['balloonView']['clearLoading']();}}class AIQuickActions extends Plugin{static get['requires'](){return[AIQuickActionsUI,AIQuickActionsEditing,AIActions];}static get['pluginName'](){return'AIQuickActions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x408553){super(_0x408553),_0x408553['config']['define']('ai.quickActions',{'extraCommands':[],'removeCommands':[]});}}class AIReviewCheck{['id'];['title'];['description'];['isParameterized'];['useArgs'];['options'];constructor({id:_0xde7d94,title:_0x2d64e9,description:_0x12b7c2,isParameterized:_0x323d3b,useArgs:_0x370250,options:_0x4cc094}){this['id']=_0xde7d94,this['title']=_0x2d64e9,this['description']=_0x12b7c2,this['isParameterized']=_0x323d3b,this['useArgs']=_0x370250,this['options']=_0x4cc094;}}class AIReviewCheckCustom extends AIReviewCheck{['_models']=[];get['models'](){return this['_models'];}set['models'](_0x12e7e7){this['_models']=_0x12e7e7;}}class AIReviewCheckList extends ObservableMixin(){['_checks'];constructor(_0x3f7743){super(),this['_checks']=this['_mapCheckDefinitions'](_0x3f7743);}get['checks'](){return this['_checks'];}['getCheckById'](_0x5da830){return this['checks']['find'](_0x45d6a8=>_0x45d6a8['id']===_0x5da830);}['_mapCheckDefinitions'](_0x179aa0){return _0x179aa0['map'](_0x2933f9=>'custom'===_0x2933f9['id']?new AIReviewCheckCustom(_0x2933f9):new AIReviewCheck(_0x2933f9));}}class AIReviewCheckResult extends EmitterMixin(){['id'];['contentNew'];['contentInitial'];['documentVersion'];constructor({id:_0x601bae,contentNew:_0x4ab64a,contentInitial:_0x184423,documentVersion:_0x42a1a7}){super(),this['id']=_0x601bae,this['contentNew']=_0x4ab64a,this['contentInitial']=_0x184423,this['documentVersion']=_0x42a1a7;}}class AIReviewCheckResultChange extends ObservableMixin(){['id'];['parent'];['_data'];['_editorOperations']=[];constructor(_0x4063a0,_0x2bec02,_0x45aadb){super(),this['id']=_0x4063a0,this['parent']=_0x45aadb,this['_data']=_0x2bec02,this['set']('isActivated',!0x1),this['set']('isRated',!0x1),this['set']('status','active');}get['contentDiffed'](){return this['_data']['context']();}get['operations'](){return this['_data']['operations'];}get['operationsIsolated'](){return this['_data']['operationsIsolated'];}}class AIReviewCheckRun extends ObservableMixin(){['id']=uid();['callId'];['_results']=new Map();['_changes']=[];['_documentData'];['_sourceCheck'];['_aiConnector'];['_reviewParams'];['_reviewArgs'];['_activeRequest']=null;['_currentError'];constructor(_0x397643,_0x5aae01,_0x2d21ea,_0x350376,_0x4e4846){super(),this['_documentData']=_0x397643,this['_sourceCheck']=_0x5aae01,this['_aiConnector']=_0x2d21ea,this['_reviewParams']=_0x350376,this['_reviewArgs']=_0x4e4846,this['on']('change:status',(_0x224d9f,_0xbf19b3,_0x8dcb88)=>{this['fire']('reviewCheckRunUpdated',{'status':_0x8dcb88,'run':this,'error':this['_currentError']});}),this['set']('status','initialized');}get['documentData'](){return this['_documentData'];}get['processedResultsCount'](){return this['_results']['size'];}get['title'](){return this['_sourceCheck']['title'];}get['subTitle'](){return'';}get['reviewName'](){return this['_sourceCheck']['id'];}get['hasModifications'](){return!this['_changes']['every'](_0x114689=>'active'===_0x114689['status']);}async['start'](){this['status']='loading',this['_currentError']=void 0x0;try{this['_activeRequest']=this['_createApiRequest']();const _0xecea05=await this['_activeRequest']['getStream']();this['status']='data';for await(const _0xaf8299 of _0xecea05)'unmodified'!==_0xaf8299['data']['operation']&&('error'!==_0xaf8299['data']['operation']?'review-metadata'!==_0xaf8299['event']?this['_addReviewCheckResult'](_0xaf8299['data']['dataId'],_0xaf8299['data']['textDelta']):this['callId']=_0xaf8299['data']['callId']:this['status']='error-chunk');'error-chunk'!==this['status']&&(0x0===this['_results']['size']?this['status']='unmodified':this['status']='ready');}catch(_0x52e839){this['_currentError']=_0x52e839,_0x52e839 instanceof Error&&_0x52e839['message']['includes']('ai-request-aborted')?this['status']='aborted':this['status']='error-general';}finally{this['_activeRequest']=null;}}async['restart'](){this['_results']['clear'](),this['_changes']['length']=0x0,this['_currentError']=void 0x0,await this['start']();}['addResultChanges'](_0x2dbb9b,_0x301184){const _0x1120de=this['_results']['get'](_0x2dbb9b);if(!_0x1120de)return;const _0x555eef=[];_0x301184['forEach']((_0x4bd41f,_0x184772)=>{const _0x52d5b1=new AIReviewCheckResultChange(_0x1120de['id']+'-'+_0x184772,_0x4bd41f,_0x1120de);_0x52d5b1['on']('change:status',()=>{'accepted'===_0x52d5b1['status']?this['fire']('reviewCheckResultAccepted',{'change':_0x52d5b1}):'rejected'===_0x52d5b1['status']&&this['fire']('reviewCheckResultRejected',{'change':_0x52d5b1});}),_0x52d5b1['on']('change:isActivated',()=>{_0x52d5b1['isActivated']?this['fire']('reviewCheckResultActivated',{'change':_0x52d5b1}):this['fire']('reviewCheckResultDeactivated',{'change':_0x52d5b1});}),this['_changes']['push'](_0x52d5b1),_0x555eef['push'](_0x52d5b1);}),this['fire']('reviewCheckResultReady',{'changes':_0x555eef,'result':_0x1120de,'source':this});}['abort'](){this['_activeRequest']&&(this['_activeRequest']['abortController']['abort'](),this['_activeRequest']=null,this['status']='aborted');}['isChangeActive'](_0x1d9f87){const _0x5d8381=this['_changes']['find'](_0x34aa80=>_0x34aa80['id']===_0x1d9f87);return!(!_0x5d8381||'active'!==_0x5d8381['status']);}['getActiveChanges'](){return this['_changes']['filter'](_0x2aabf2=>'active'===_0x2aabf2['status']);}['markAllChangesAsAccepted'](){for(const _0x57a424 of this['_changes'])'active'===_0x57a424['status']&&(_0x57a424['status']='accepted');this['_checkIfFinished']();}['markChangeAsAccepted'](_0x398f7d){const _0x143dd1=this['_changes']['find'](_0x5d9246=>_0x5d9246['id']===_0x398f7d);_0x143dd1&&'active'===_0x143dd1['status']&&(_0x143dd1['status']='accepted'),this['_checkIfFinished']();}['markChangeAsRejected'](_0x2dd882){const _0x2c2b5f=this['_changes']['find'](_0x355443=>_0x355443['id']===_0x2dd882);_0x2c2b5f&&'active'===_0x2c2b5f['status']&&(_0x2c2b5f['status']='rejected'),this['_checkIfFinished']();}['activateChange'](_0x3c677d){this['_changes']['filter'](_0x2f73e0=>_0x2f73e0['isActivated']&&_0x2f73e0['id']!==_0x3c677d)['forEach'](_0x11ca51=>{_0x11ca51['isActivated']=!0x1;});const _0x4073a7=this['_changes']['find'](_0x2936e5=>_0x2936e5['id']===_0x3c677d);_0x4073a7&&(_0x4073a7['isActivated']=!0x0);}['deactivateChange'](){this['_changes']['filter'](_0x151d9f=>_0x151d9f['isActivated'])['forEach'](_0xa4f15f=>{_0xa4f15f['isActivated']=!0x1;});}['forceReadyState'](){this['status']='ready';}async['sendRating'](_0xb1a712){if('initialized'===this['status']||'loading'===this['status']||'data'===this['status'])return;if(!this['callId']||0x0===this['_changes']['length'])return;let _0x22acff;if(_0xb1a712){const _0xdc7326=this['_changes']['find'](_0x181510=>_0x181510['id']===_0xb1a712);if(_0xdc7326&&_0xdc7326['isRated'])return;_0xdc7326&&(_0x22acff=_0xdc7326['parent']['id'],_0xdc7326['isRated']=!0x0);}const _0x35a082={'positiveCount':this['_changes']['filter'](_0x11328f=>'accepted'===_0x11328f['status'])['length'],'totalCount':this['_changes']['length']};this['_sendRatingRequest'](_0x35a082,this['callId'],_0x22acff);}['_addReviewCheckResult'](_0x3d0007,_0x1bce81){const _0x3cd628=this['_documentData']['elements']['get'](_0x3d0007);if(!_0x3cd628)return;const _0x315a64=_0x3cd628['getContent']();if(_0x315a64===_0x1bce81)return;const _0x1a1c8e=new AIReviewCheckResult({'id':_0x3d0007,'contentInitial':_0x315a64,'contentNew':_0x1bce81,'documentVersion':this['_documentData']['version']});this['_results']['set'](_0x1a1c8e['id'],_0x1a1c8e),this['fire']('reviewCheckResultAdded',{'result':_0x1a1c8e,'source':this});}['_checkIfFinished'](){if('ready'!==this['status'])return;0x0===this['_changes']['filter'](_0x17c5f2=>'active'===_0x17c5f2['status'])['length']&&(this['status']='finished');}}class AIReviewSystemCheckRun extends AIReviewCheckRun{get['subTitle'](){if(!this['_reviewParams']||0x0===this['_reviewParams']['length'])return'';const _0x308d7e=[];if(this['_reviewParams']['length']>0x0&&this['_sourceCheck']['options'])for(let _0x4f973d=0x0;_0x4f973d<this['_reviewParams']['length'];_0x4f973d++){if(!this['_reviewParams'][_0x4f973d]||!this['_sourceCheck']['options'][_0x4f973d])continue;const _0x5d6f99=this['_sourceCheck']['options'][_0x4f973d],_0x5aea1e=_0x5d6f99['data']?.['find'](_0x2f78fa=>_0x2f78fa['id']===this['_reviewParams'][_0x4f973d]);_0x5aea1e&&_0x308d7e['push'](_0x5aea1e['label']);}return _0x308d7e['join'](',\x20');}get['reviewName'](){return this['_composeReviewName']();}['_createApiRequest'](){return this['_aiConnector']['callSystemReview']({'reviewName':this['_composeReviewName'](),'content':this['_documentData']['content'],'args':this['_reviewArgs']});}['_sendRatingRequest'](_0x1e020a,_0x45fb80,_0x14475a){return this['_aiConnector']['upsertAIReviewRating'](this['reviewName'],_0x45fb80,_0x1e020a,_0x14475a);}['_composeReviewName'](){return!this['_reviewParams']||0x0===this['_reviewParams']['length']||this['_sourceCheck']['useArgs']?this['_sourceCheck']['id']:[this['_sourceCheck']['id'],...this['_reviewParams']]['join']('-');}}class AIReviewCustomCheckRun extends AIReviewCheckRun{['_prompt'];['_model'];constructor(_0x34cd78,_0x34b51c,_0x3d129e,_0x35de59,_0x2fa087){super(_0x3d129e,_0x35de59,_0x2fa087),this['_prompt']=_0x34cd78,this['_model']=_0x34b51c;}get['subTitle'](){return this['_prompt'];}['_createApiRequest'](){return this['_aiConnector']['callCustomReview']({'content':this['_documentData']['content'],'prompt':this['_prompt'],'model':this['_model']});}['_sendRatingRequest'](_0x16f158,_0x26d74e,_0x96bf18){return this['_aiConnector']['upsertCustomAIReviewRating'](_0x26d74e,_0x16f158,_0x96bf18);}}class AIReviewModels extends EmitterMixin(){['_modelList']=[];['_connector'];constructor({connector:_0x380606}){super(),this['_connector']=_0x380606;}async['getAll'](){if(!this['_modelList']['length'])try{const _0x2b608c=this['_connector']['getModels'](),_0x3b186d=await _0x2b608c['list']();this['_modelList']=_0x3b186d['items'];}catch{}return this['_modelList'];}}const AI_REVIEW_CHECKS=[{'id':'custom','title':'Custom\x20command','description':'Type\x20a\x20custom\x20command\x20to\x20review\x20the\x20content\x20exactly\x20as\x20you\x20need.','isParameterized':!0x0},{'id':'correctness','title':'Correctness','description':'Ensure\x20the\x20text\x20is\x20factually\x20accurate\x20and\x20free\x20of\x20errors.','isParameterized':!0x1},{'id':'clarity','title':'Clarity','description':'Improve\x20the\x20clarity\x20and\x20readability\x20of\x20the\x20text.','isParameterized':!0x1},{'id':'readability','title':'Readability','description':'Enhance\x20the\x20overall\x20readability\x20of\x20the\x20text.','isParameterized':!0x1},{'id':'make','title':'Adjust\x20length','description':'Refine\x20text\x20length\x20to\x20match\x20your\x20needs.','isParameterized':!0x0,'options':[{'formType':'dropdown','label':'Adjust\x20length','default':'longer','data':[{'label':'Longer','id':'longer'},{'label':'Shorter','id':'shorter'}]}]},{'id':'make-tone','title':'Adjust\x20tone\x20and\x20style','description':'Choose\x20tone\x20and\x20style\x20to\x20change\x20content\x20as\x20you\x20need.','isParameterized':!0x0,'options':[{'formType':'dropdown','label':'Adjust\x20tone\x20and\x20style','default':'casual','data':[{'label':'Casual','id':'casual'},{'label':'Direct','id':'direct'},{'label':'Friendly','id':'friendly'},{'label':'Confident','id':'confident'},{'label':'Professional','id':'professional'}]}]},{'id':'translate','title':'Translate','description':'Translate\x20the\x20text\x20into\x20another\x20language.','isParameterized':!0x0,'useArgs':!0x0,'options':[{'formType':'dropdown','label':'Select\x20language','argsKey':'language','data':[{'label':'English','id':'english'},{'label':'Spanish','id':'spanish'},{'label':'French','id':'french'},{'label':'German','id':'german'},{'label':'Chinese\x20(Simplified)','id':'chinese'},{'label':'Japanese','id':'japanese'},{'label':'Russian','id':'russian'},{'label':'Portuguese','id':'portuguese'},{'label':'Korean','id':'korean'},{'label':'Italian','id':'italian'}]}]}];class AIReviewModeController extends ContextPlugin{['_aiConnector'];['_aiReviewModeUi'];['_aiReviewModeEditing'];['_aiReviewCheckList'];['_currentReviewCheckRun'];['_isDiffOn']=!0x1;['_changeActivationSource']=null;static get['requires'](){return[AIConnector];}static get['pluginName'](){return'AIReviewModeController';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['_aiConnector']=this['context']['plugins']['get']('AIConnector'),this['_aiReviewModeUi']=this['context']['plugins']['get']('AIReviewModeUI'),this['_aiReviewModeEditing']=this['context']['plugins']['get']('AIReviewModeEditing');const _0x46d482=this['context']['config']['get']('ai.reviewMode.translations');if(_0x46d482){for(const _0x1e7844 of AI_REVIEW_CHECKS)'translate'===_0x1e7844['id']&&(_0x1e7844['options'][0x0]['data']=_0x46d482);}const _0x1ba563=this['_translateReviewChecks'](AI_REVIEW_CHECKS);this['_aiReviewCheckList']=new AIReviewCheckList(_0x1ba563);const _0x42b203=this['_aiReviewCheckList']['checks']['find'](_0x588d26=>'custom'===_0x588d26['id']);if(_0x42b203){const _0x56438b=await new AIReviewModels({'connector':this['_aiConnector']})['getAll']();_0x42b203['models']=_0x56438b['map'](_0x5dac1f=>({..._0x5dac1f,'description':this['_getTranslationWithDefault']('AI_MODEL_DESCRIPTION_'+_0x5dac1f['id']['toUpperCase'](),_0x5dac1f['description'])}));}this['listenTo'](this['_aiReviewModeUi'],'getReviewCheckList',()=>{this['_aiReviewModeUi']['setAvailableChecks'](this['_aiReviewCheckList']['checks']);}),this['listenTo'](this['_aiReviewModeUi'],'runReviewCheck',async(_0x4f1f24,_0xbcf2e6)=>{const _0x363c6a=this['_aiReviewCheckList']['getCheckById'](_0xbcf2e6['id']);if(_0x363c6a){this['_onDiffChange'](this['_isDiffOn']),_0xbcf2e6['isCustom']?this['_currentReviewCheckRun']=new AIReviewCustomCheckRun(_0xbcf2e6['args']['prompt'],_0xbcf2e6['args']['model'],this['_aiReviewModeEditing']['getDocumentData'](),_0x363c6a,this['_aiConnector']):this['_currentReviewCheckRun']=new AIReviewSystemCheckRun(this['_aiReviewModeEditing']['getDocumentData'](),_0x363c6a,this['_aiConnector'],_0xbcf2e6['params'],_0xbcf2e6['args']),this['_aiReviewModeUi']['setCheckResultTitle'](this['_currentReviewCheckRun']['title'],this['_currentReviewCheckRun']['subTitle']),this['_currentReviewCheckRun']['on']('reviewCheckRunUpdated',(_0x723306,_0x4635fd)=>{'data'===_0x4635fd['status']||'loading'===_0x4635fd['status']?(this['_aiReviewModeEditing']['switchToReadOnly'](),this['_aiReviewModeUi']['showCheckRunResults'](_0x4635fd)):'finished'===_0x4635fd['status']?this['_aiReviewModeUi']['showReviewCompletedView']():'ready'===_0x4635fd['status']?this['_aiReviewModeUi']['showActionsWhenResultIsReady']():'unmodified'===_0x4635fd['status']?this['_aiReviewModeUi']['showNoChangesView']():'error-general'===_0x4635fd['status']?this['_aiReviewModeUi']['showGeneralErrorView']():'error-chunk'===_0x4635fd['status']?this['_aiReviewModeUi']['showChunkErrorView']():'aborted'===_0x4635fd['status']&&(this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['processedResultsCount']>0x0?setTimeout(()=>{this['_currentReviewCheckRun']?.['forceReadyState']();},0x0):this['_onReviewModeRunLeave'](!0x0)),'ready'!==_0x4635fd['status']&&'error-chunk'!==_0x4635fd['status']&&'error-general'!==_0x4635fd['status']||this['_currentReviewCheckRun']?.['sendRating']();}),this['_currentReviewCheckRun']['on']('reviewCheckResultAdded',(_0x2970df,_0x2e7e6d)=>{if(!this['_currentReviewCheckRun'])throw new CKEditorError('ai-review-mode-no-current-check-run',this);const _0x4dcfbf=this['_aiReviewModeEditing']['diffContent'](_0x2e7e6d['result']['contentInitial'],_0x2e7e6d['result']['contentNew']);_0x2e7e6d['source']['addResultChanges'](_0x2e7e6d['result']['id'],_0x4dcfbf);}),this['_currentReviewCheckRun']['on']('reviewCheckResultReady',(_0x534f6f,_0x39a174)=>{for(const _0x554224 of _0x39a174['changes'])this['_aiReviewModeUi']['showCheckRunResult'](_0x554224);this['_aiReviewModeEditing']['markChangePositionInEditorContent'](_0x39a174['changes'],_0x39a174['source']['documentData']);}),this['_currentReviewCheckRun']['on']('reviewCheckResultAccepted',(_0x1f2714,_0x3f74db)=>{this['_aiReviewModeUi']['updateChangeState'](_0x3f74db['change']['id'],'accepted');}),this['_currentReviewCheckRun']['on']('reviewCheckResultRejected',(_0x2f53a2,_0xdbb2f2)=>{this['_aiReviewModeUi']['updateChangeState'](_0xdbb2f2['change']['id'],'rejected');}),this['_currentReviewCheckRun']['on']('reviewCheckResultActivated',(_0x2ed344,_0x558966)=>{this['_aiReviewModeUi']['setActiveStateInResults'](_0x558966['change']['id']);const _0x2dc335=this['_aiReviewModeEditing']['getMarkerElementForChange'](_0x558966['change']['id']);if(_0x2dc335){if('content'===this['_changeActivationSource']){const _0x3f6b1f=this['_aiReviewModeUi']['getChangeElement'](_0x558966['change']['id']);_0x3f6b1f&&scrollAncestorsToShowTarget(_0x3f6b1f['closest']('.ck-ai-review-mode__check-run-result')||_0x3f6b1f);}else{if('panel'===this['_changeActivationSource']){const _0x5dda9d={'target':_0x2dc335['domElement'],'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0};scrollViewportToShowTarget(_0x5dda9d);}}this['_aiReviewModeUi']['showChangeBalloon'](_0x558966['change'],_0x2dc335['domElement']);}}),this['_currentReviewCheckRun']['on']('reviewCheckResultDeactivated',()=>{this['_aiReviewModeUi']['resetActiveStateInResults']();});try{await this['_currentReviewCheckRun']['start']();}catch(_0x56c2f2){_0x56c2f2 instanceof Error&&_0x56c2f2['message']['includes']('ai-request-aborted')||(_0x56c2f2 instanceof CKEditorError?this['_logError'](_0x56c2f2):this['_logError'](new CKEditorError('ai-review-mode-check-run-failed',this,{'error':_0x56c2f2})));}}else this['_logError'](new CKEditorError('ai-review-mode-source-check-not-found',this,{'checkId':_0xbcf2e6['id']}));}),this['listenTo'](this['_aiReviewModeUi'],'leaveReviewMode',()=>{this['_onReviewModeRunLeave']();}),this['listenTo'](this['_aiReviewModeUi'],'leaveReviewModeResultList',()=>{this['_onReviewModeRunLeave'](!0x0);}),this['listenTo'](this['_aiReviewModeUi'],'abortReviewStream',()=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['abort']();}),this['listenTo'](this['_aiReviewModeUi'],'finishReview',()=>{this['_onReviewModeRunLeave'](!0x0);}),this['listenTo'](this['_aiReviewModeUi'],'acceptAllChanges',()=>{if(!this['_currentReviewCheckRun'])return;const _0x10f637=this['_currentReviewCheckRun']['getActiveChanges']();_0x10f637['length']&&(this['_aiReviewModeEditing']['applyChange'](_0x10f637['map'](_0x4a9e5b=>_0x4a9e5b['id'])),this['_currentReviewCheckRun']['markAllChangesAsAccepted'](),this['_currentReviewCheckRun']['sendRating']());}),this['listenTo'](this['_aiReviewModeUi'],'acceptChange',(_0x2a6349,_0x4b9325)=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['isChangeActive'](_0x4b9325['id'])&&(this['_aiReviewModeEditing']['applyChange']([_0x4b9325['id']]),this['_currentReviewCheckRun']['markChangeAsAccepted'](_0x4b9325['id']),this['_aiReviewModeUi']['hideChangeBalloon'](),this['_currentReviewCheckRun']['sendRating'](_0x4b9325['id']));}),this['listenTo'](this['_aiReviewModeUi'],'dismissChange',(_0xae8630,_0x46435b)=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['isChangeActive'](_0x46435b['id'])&&(this['_aiReviewModeEditing']['rejectChange'](_0x46435b['id']),this['_currentReviewCheckRun']['markChangeAsRejected'](_0x46435b['id']),this['_aiReviewModeUi']['hideChangeBalloon'](),this['_currentReviewCheckRun']['sendRating'](_0x46435b['id']));}),this['listenTo'](this['_aiReviewModeUi'],'toggleDiff',(_0x453bea,_0x3bdda0)=>{this['_isDiffOn']=_0x3bdda0['on'],this['_onDiffChange'](this['_isDiffOn']);}),this['listenTo'](this['_aiReviewModeUi'],'retryReview',async()=>{this['_currentReviewCheckRun']&&await this['_currentReviewCheckRun']['restart']();}),this['listenTo'](this['_aiReviewModeUi'],'activateChange',(_0x30ac9a,_0x2c60e3)=>{this['_currentReviewCheckRun']&&(this['_changeActivationSource']='panel',this['_currentReviewCheckRun']['activateChange'](_0x2c60e3['id']));}),this['listenTo'](this['_aiReviewModeUi'],'deactivateChange',()=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['deactivateChange']();}),this['listenTo'](this['_aiReviewModeEditing']['emitter'],'changeMarkerClick',(_0x42e652,_0x2cc672)=>{this['_currentReviewCheckRun']&&(this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x2cc672['changeId']));});}['_onReviewModeRunLeave'](_0x1fa3c9=!0x1){this['_currentReviewCheckRun']&&(this['_currentReviewCheckRun']['hasModifications']||this['_currentReviewCheckRun']['sendRating'](),this['_currentReviewCheckRun']['abort'](),this['_currentReviewCheckRun']['stopListening'](),this['_currentReviewCheckRun']=void 0x0),_0x1fa3c9&&this['_aiReviewModeUi']['showReviewCheckList'](),this['_aiReviewModeEditing']['clearAllMarkers'](),this['_aiReviewModeEditing']['switchToEdit'](),this['_changeActivationSource']=null;const _0x3b6512=this['_aiReviewModeEditing']['getEditor']();_0x3b6512&&_0x3b6512['editing']['view']['change'](_0x107779=>{const _0xca0ead=_0x3b6512['editing']['view']['document']['getRoot']();_0x107779['removeClass']('ck-ai-review-mode-diff',_0xca0ead),_0x107779['removeClass']('ck-ai-review-mode-highlights',_0xca0ead);});}['_onDiffChange'](_0x23cc0f){const _0x180994=this['_aiReviewModeEditing']['getEditor']();_0x23cc0f?this['_aiReviewModeUi']['hideDiffInBalloon']():this['_aiReviewModeUi']['showDiffInBalloon'](),_0x180994&&_0x180994['editing']['view']['change'](_0x50a9d9=>{const _0x445234=_0x180994['editing']['view']['document']['getRoot']();_0x50a9d9['removeClass']('ck-ai-review-mode-diff',_0x445234),_0x50a9d9['removeClass']('ck-ai-review-mode-highlights',_0x445234),_0x50a9d9['addClass'](_0x23cc0f?'ck-ai-review-mode-diff':'ck-ai-review-mode-highlights',_0x445234);});}['_translateReviewChecks'](_0x26d139){return _0x26d139['map'](_0x5320c0=>{const _0x20989c='AI_REVIEW_CHECK_'+_0x5320c0['id']['toUpperCase']()['replaceAll']('-','_'),_0x15a2db={..._0x5320c0,'title':this['_getTranslationWithDefault'](_0x20989c+'_TITLE',_0x5320c0['title']),'description':this['_getTranslationWithDefault'](_0x20989c+'_DESCRIPTION',_0x5320c0['description'])};return _0x5320c0['options']&&(_0x15a2db['options']=_0x5320c0['options']['map'](_0xf95502=>({..._0xf95502,'label':this['_getTranslationWithDefault'](_0x20989c+'_OPTIONS_LABEL',_0xf95502['label']||''),'data':_0xf95502['data']?_0xf95502['data']['map'](_0x1fbaa=>({..._0x1fbaa,'label':this['_getTranslationWithDefault'](_0x20989c+'_OPTIONS_DATA_'+_0x1fbaa['id']['toUpperCase'](),_0x1fbaa['label'])})):void 0x0}))),_0x15a2db;});}['_getTranslationWithDefault'](_0x12d239,_0x11a856){const _0x6cc425=getTranslation$i(this['context']['locale'],_0x12d239);return _0x6cc425===_0x12d239?_0x11a856:_0x6cc425;}['_logError'](_0x3b5c11){logError(_0x3b5c11['message']),this['_aiReviewModeUi']['showGeneralErrorView']();}}class AIReviewModeFormDropdownView extends View{['_dropdownView'];['_defaultValue'];['_defaultLabel'];constructor(_0x4b6fa8,_0x4a5b97){super(_0x4b6fa8),this['_defaultValue']=_0x4a5b97['default']||(_0x4a5b97['data']['length']>0x0?_0x4a5b97['data'][0x0]['id']:''),this['_defaultLabel']=_0x4a5b97['data']['find'](_0x388c69=>_0x388c69['id']===this['_defaultValue'])?.['label']||'',this['set']('formValue',''),this['_dropdownView']=createDropdown(this['locale']);const _0x2c87ee=this['_prepareListOptions'](_0x4a5b97['data']);addListToDropdown(this['_dropdownView'],_0x2c87ee,{'role':'menu','ariaLabel':_0x4a5b97['label']}),this['_dropdownView']['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0}),this['_dropdownView']['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0xc4141a=>{_0xc4141a['stopPropagation']();})}}),this['listenTo'](this['_dropdownView'],'execute',_0x3090ee=>{this['formValue']=_0x3090ee['source']['model']['id'],this['_dropdownView']['buttonView']['label']=_0x3090ee['source']['model']['label'];}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-review-mode__check-list-item-parameterized-form-element','ck-ai-review-mode__check-list-item-parameterized-form-element_dropdown']},'children':[this['_dropdownView']]});}['resetToDefault'](){this['formValue']=this['_defaultValue'],this['_dropdownView']['buttonView']['label']=this['_defaultLabel'];}['_prepareListOptions'](_0x5019ca=[]){const _0x6919bd=new Collection();this['resetToDefault']();for(const _0x31f391 of _0x5019ca){const _0x4baefc=new UIModel({'label':_0x31f391['label'],'withText':!0x0,'role':'menuitemradio','id':_0x31f391['id'],'model':_0x31f391});_0x4baefc['bind']('isOn')['to'](this,'formValue',_0xa296bf=>_0xa296bf===_0x4baefc['id']);const _0x2088ed={'type':'button','model':_0x4baefc};_0x6919bd['add'](_0x2088ed);}return _0x6919bd;}}class AIReviewModeFormManagerView extends ListItemView{['_formItem']=null;constructor(_0x48990a,_0x259d9c,_0x52099c){super(_0x48990a),this['argsKey']=_0x259d9c?.['argsKey'];if('dropdown'===_0x259d9c['formType'])this['_formItem']=new AIReviewModeFormDropdownView(this['locale'],_0x259d9c);this['set']('value',''),this['bind']('value')['to'](this['_formItem'],'formValue');const _0x4599e1=new FormRowView(this['locale'],{'children':[this['_formItem']],'class':[_0x52099c?'ck-form__row_with-submit':'']});_0x52099c&&_0x4599e1['children']['add'](_0x52099c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-review-mode__form-item','ck-reset_all']},'children':[_0x4599e1]});}['resetToDefault'](){this['_formItem']['resetToDefault']();}}class AIReviewModePromptInputView extends TextareaView{['keystrokes'];static ['MIN_ROWS']=0x1;static ['MAX_ROWS']=0xc;constructor(_0x920bc5){super(_0x920bc5),this['set']('isEmpty',!0x0),this['keystrokes']=new KeystrokeHandler(),this['minRows']=AIReviewModePromptInputView['MIN_ROWS'],this['maxRows']=AIReviewModePromptInputView['MAX_ROWS'],this['extendTemplate']({'attributes':{'id':'ai-review-mode-prompt-input','class':['ck','ck-review-mode__prompt-input']}});}['render'](){super['render'](),this['on']('update',()=>{this['isEmpty']=''===this['element']['value']?.['trim']();}),this['keystrokes']['listenTo'](this['element']);}}class AIReviewModeCustomCheckView extends View{['focusTracker']=new FocusTracker();['keystrokes']=new KeystrokeHandler();['focusCycler'];['_focusables']=new ViewCollection();['submitButtonView'];['cancelButtonView'];['promptInputView'];['actionsFooterView'];['_modelSelectionDropdown'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x51f606,_0x2afbcd){super(_0x51f606),this['_check']=_0x2afbcd,this['set']('prompt',''),this['set']('modelId',''),this['_defaultValue']=_0x2afbcd['models']&&_0x2afbcd['models']['length']>0x0?_0x2afbcd['models'][0x0]['id']:'',this['_defaultLabel']=_0x2afbcd['models']&&_0x2afbcd['models']['length']>0x0?_0x2afbcd['models'][0x0]['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new LabeledFieldView(this['locale'],()=>new AIReviewModePromptInputView(_0x51f606)),this['promptInputView']['fieldView']['bind']('value')['to'](this,'prompt'),this['promptInputView']['fieldView']['on']('input',()=>{this['prompt']=this['promptInputView']['fieldView']['element']['value'];}),this['_modelSelectionDropdown']=this['_createModelSelectionDropdown'](),this['_modelSelectionDropdownItems']=new Collection(),this['_setModelList'](),addListToDropdown(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']),this['actionsFooterView']=this['_createActionsFooterView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-custom-actions']},'children':[new FormRowView(this['locale'],{'children':[this['promptInputView']]}),new FormRowView(this['locale'],{'children':[this['actionsFooterView']]})]}),this['promptInputView']['fieldView']['keystrokes']['set']('Enter',(_0x3fb578,_0x428e78)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x428e78()):_0x428e78();}),this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}));}['render'](){super['render'](),([this['promptInputView'],this['_modelSelectionDropdown'],this['cancelButtonView'],this['submitButtonView']]['forEach'](_0x56eebc=>{this['_focusables']['add'](_0x56eebc),this['focusTracker']['add'](_0x56eebc['element']);}),this['keystrokes']['listenTo'](this['element']));}get['modelDefaultValue'](){return this['_defaultValue'];}get['modelDefaultLabel'](){return this['_defaultLabel'];}['resetToDefault'](){this['prompt']='',this['modelId']=this['modelDefaultValue'],this['_modelSelectionDropdown']['buttonView']['label']=this['modelDefaultLabel'],this['resetFormValidationStatus']();}['resetFormValidationStatus'](){this['promptInputView']['errorText']='';}['_isValid'](){this['resetFormValidationStatus']();for(const _0x52520b of this['_getFormValidators']()){const _0x404025=_0x52520b();if(_0x404025)return this['promptInputView']['errorText']=_0x404025,!0x1;}return!0x0;}['_getFormValidators'](){return[()=>{if(0x0===this['promptInputView']['fieldView']['value']?.['trim']()['length'])return getTranslation$i(this['locale'],'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR');}];}['_createSubmitButtonView'](){const _0x9503d1=new ButtonView(this['locale']),t=this['locale']['t'];return _0x9503d1['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x9503d1['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x9503d1;}['_createCancelButtonView'](){const _0x4f17cf=new ButtonView(this['locale']),t=this['locale']['t'];return _0x4f17cf['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary-filled'}),_0x4f17cf['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0xad8f72=>{_0xad8f72['stopPropagation']();})}}),_0x4f17cf['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x4f17cf;}['_setModelList'](){this['_modelSelectionDropdownItems']['clear']();const _0x28946a=this['_check']['models'];if(this['resetToDefault'](),_0x28946a?.['length'])for(const _0x9411a3 of _0x28946a){const _0x59f911=new UIModel({'label':_0x9411a3['name'],'withText':!0x0,'role':'menuitemradio','id':_0x9411a3['id'],'model':_0x9411a3});_0x59f911['bind']('isOn')['to'](this,'modelId',_0x43cb40=>_0x43cb40===_0x9411a3['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x59f911,'labelView':new ModelButtonLabelView(this['locale'],_0x9411a3)});}}['_createModelSelectionDropdown'](){const _0x3c322c=createDropdown(this['locale']);return _0x3c322c['set']({'panelPosition':'se','class':'ck-ai-review-mode__check-list-item-model-dropdown'}),_0x3c322c['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),this['listenTo'](_0x3c322c,'execute',_0x1c18ca=>{this['modelId']=_0x1c18ca['source']['model']['id'],_0x3c322c['buttonView']['label']=_0x1c18ca['source']['label'];}),_0x3c322c;}['_createActionsFooterView'](){const _0x25ae1e=new View(this['locale']);return _0x25ae1e['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-custom-actions-footer']},'children':[this['_modelSelectionDropdown'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-custom-actions-buttons']},'children':[this['cancelButtonView'],this['submitButtonView']]}]}),_0x25ae1e;}}class ModelButtonLabelView extends ButtonLabelView{constructor(_0x1eb1fc,_0x9893fe){super();const _0x14c17d=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x14c17d['to']('style'),'id':_0x14c17d['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x14c17d['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x9893fe['description']||'']}]}]});}}class AIReviewModeReviewCommandListItemView extends ListItemView{['_formItemsCollection']=new ViewCollection();['_customCheckView']=null;constructor(_0x290c54,_0x350b48,_0xf63623){super(_0x290c54),this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x350b48['isParameterized']);const _0x44fca0=this['_createIconView']();this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item',this['bindTemplate']['if']('isParametrizedViewOpen','ck-ai-review-mode__check-list-item_selected',_0x43aea2=>_0x43aea2),this['bindTemplate']['if']('isListItemRendered','ck-ai-review-mode__check-list-item_rendered',_0x3cb0e0=>_0x3cb0e0)],'style':{'--ck-ai-check-list-item-index':_0xf63623}},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-title']},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-list-item-title-text']},'children':[{'text':_0x350b48['title']}]},_0x44fca0]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-description']},'children':[{'text':_0x350b48['description']}]}]}]},..._0x350b48['isParameterized']?[this['_createParameterizedView'](_0x350b48)]:[],...'custom'===_0x350b48['id']?[this['_createCustomView'](_0x350b48)]:[]]}),this['on']('click',()=>{_0x350b48['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x350b48['id']});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&clickOutsideHandler({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x3249a4=>{_0x3249a4['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x2e27c7=new IconView();return _0x2e27c7['content']=IconChevronRight,_0x2e27c7['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-title-icon']}}),_0x2e27c7;}['_createParameterizedView'](_0x2d6954){const _0xe92e5d=new View(),_0x4b645e=this['_createFormView'](_0x2d6954);return _0xe92e5d['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0xc96dcc=>!_0xc96dcc)]},'children':[_0x4b645e]}),_0xe92e5d;}['_createFormView'](_0x53d73c){const _0x558038=new View(),_0x5d44db=Array['isArray'](_0x53d73c['options'])?_0x53d73c['options']:[],_0x1e2407=new ButtonView(this['locale']),t=this['locale']['t'];_0x1e2407['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x1e2407['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x25a9cd=>{_0x25a9cd['stopPropagation']();})}}),_0x1e2407['on']('execute',()=>{const _0x195ee0=[],_0x466a99={};this['_formItemsCollection']['forEach'](_0x1c3f2d=>{_0x195ee0['push'](_0x1c3f2d['value']),_0x53d73c['useArgs']&&_0x53d73c['options']&&(_0x466a99[_0x1c3f2d['argsKey']]=_0x1c3f2d['value']);}),this['fire']('runReviewCheck',{'id':_0x53d73c['id'],'params':_0x195ee0['length']?_0x195ee0:void 0x0,'args':Object['keys'](_0x466a99)['length']?_0x466a99:void 0x0});});const _0x3197e0=_0x5d44db['length'];return _0x5d44db['forEach']((_0x5365f9,_0x23557d)=>{const _0x58e4e7=_0x23557d===_0x3197e0-0x1;this['_formItemsCollection']['add'](new AIReviewModeFormManagerView(this['locale'],_0x5365f9,_0x58e4e7?_0x1e2407:null));}),_0x558038['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x558038;}['_createCustomView'](_0x2e3429){return this['_customCheckView']=new AIReviewModeCustomCheckView(this['locale'],_0x2e3429),this['_customCheckView']['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized','ck-ai-review-mode__check-list-item-parameterized_custom',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x3e8d43=>!_0x3e8d43)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x54f449,_0x4736b2,_0x59b14a)=>{_0x59b14a||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}class AIReviewModeReviewCheckListView extends ListItemView{['_checkViews'];constructor(_0x4812d4){super(_0x4812d4),this['_checkViews']=new ViewCollection();const _0xf0b51=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list',_0xf0b51['if']('isVisible','ck-hidden',_0x32645f=>!_0x32645f)]},'children':this['_checkViews']});}['setChecks'](_0xa4c56f){this['_checkViews']['clear']();for(const [_0x545d1d,_0x46078e]of _0xa4c56f['entries']()){const _0x3dc5e8=new AIReviewModeReviewCommandListItemView(this['locale'],_0x46078e,_0x545d1d);_0x3dc5e8['delegate']('runReviewCheck')['to'](this),this['_checkViews']['add'](_0x3dc5e8);}}['hasChecks'](){return this['_checkViews']['length']>0x0;}['resetAllParameterizedChecks'](){for(const _0x1e4117 of this['_checkViews'])_0x1e4117 instanceof AIReviewModeReviewCommandListItemView&&_0x1e4117['resetToDefault']();}}class AIReviewModeReviewCheckListItemResultsView extends View{['resultResponseView'];['acceptButtonView'];['dismissButtonView'];['infoButtonView'];constructor(_0x1accfa,_0xb4e5ae){super(_0x1accfa),this['id']=_0xb4e5ae,this['set']('changeId',_0xb4e5ae),this['resultResponseView']=this['_createResultResponseView'](),this['acceptButtonView']=this['_createAcceptButtonView'](),this['dismissButtonView']=this['_createDismissButtonView'](),this['infoButtonView']=this['_createInfoButtonView'](),this['set']('isInfoToggleOn',!0x1),this['set']('isActive',!0x1),this['set']('showDiff',!0x0),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-result',this['bindTemplate']['if']('isActive','ck-ai-review-mode__check-run-result_active')]},'on':{'click':this['bindTemplate']['to']('click')},'children':[this['resultResponseView'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-result-footer']},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-result-action-buttons']},'children':[this['acceptButtonView'],this['dismissButtonView']]},this['infoButtonView']]}]}),this['on']('click',()=>{this['fire']('activateChange',{'id':_0xb4e5ae,'source':this});});}['setItemAsActive'](){this['isActive']=!0x0;}['setItemAsInactive'](){this['isActive']=!0x1;}['_createResultResponseView'](){const _0x4f74c7=new View(this['locale']);return _0x4f74c7['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content','ck-content-direct-excluded','ck-ai-review-mode__check-run-result-response',this['bindTemplate']['if']('showDiff','ck-hidden',_0x117c85=>!_0x117c85)]}}),_0x4f74c7;}['_createAcceptButtonView'](){const _0x18d400=new ButtonView(this['locale']);return _0x18d400['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_ACCEPT_CHANGE'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-result-accept-button'}),_0x18d400['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x17f376=>{this['fire']('acceptChange',{'id':this['changeId']}),_0x17f376['stopPropagation']();})}}),_0x18d400;}['_createDismissButtonView'](){const _0x19c691=new ButtonView(this['locale']);return _0x19c691['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_DISMISS_CHANGE'),'withText':!0x0,'class':'ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-dismiss-button'}),_0x19c691['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x38cb72=>{this['fire']('dismissChange',{'id':this['changeId']}),_0x38cb72['stopPropagation']();})}}),_0x19c691;}['_createInfoButtonView'](){const _0x265a4a=new ButtonView(this['locale']);return _0x265a4a['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_LEARN_MORE'),'icon':IconInfo,'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox','class':'ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-info-button\x20ck-hidden'}),_0x265a4a['bind']('isOn')['to'](this,'isInfoToggleOn',_0x38352d=>_0x38352d),_0x265a4a['on']('execute',()=>{this['isInfoToggleOn']=!this['isInfoToggleOn'];}),_0x265a4a;}}class AIReviewModeReviewCheckResultsView extends ListItemView{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];constructor(_0x231ef3){super(_0x231ef3),this['_resultViews']=new ViewCollection(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['resultsHeader']=this['_createResultHeaderView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new AIDisclaimerView(_0x231ef3),this['set']('isLoading',!0x1),this['set']('isToggleDiffOn',!0x1),this['set']('isResultReady',!0x1),this['set']('headerTitle',''),this['set']('headerSubtitle',''),this['set']('isError',!0x1),this['set']('showErrorMessage',!0x1),this['set']('errorType','general');const _0x577185=this['_createCombinedSkeletonLoader'](),_0x3d6510=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x3d6510['if']('isVisible','ck-hidden',_0x2944a6=>!_0x2944a6)]},'children':[this['resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0xa2f48a=>_0xa2f48a)]},'children':this['_resultViews']},_0x577185]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x501f4c){const _0x26f78c=new AIReviewModeReviewCheckListItemResultsView(this['locale'],_0x501f4c['id']);_0x26f78c['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x26f78c),_0x26f78c['resultResponseView']['element']['innerHTML']=_0x501f4c['contentDiffed'];}['hideResult'](_0xccfb40){const _0x4675f4=this['_resultViews']['find'](_0x4152c8=>_0x4152c8['id']===_0xccfb40);_0x4675f4&&(_0x4675f4['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_removing'),_0x4675f4['element']?.['addEventListener']('animationend',()=>{this['_resultViews']['remove'](_0x4675f4),_0x4675f4['destroy']();},{'once':!0x0}));}['setTitle'](_0x5e2c25,_0x73e23b){this['headerTitle']=_0x5e2c25,this['headerSubtitle']=_0x73e23b||'';}['showChunkErrorMessage'](){this['errorType']='chunk',this['showErrorMessage']=!0x0;}['showGeneralErrorMessage'](){this['isError']=!0x0,this['errorType']='general',this['showErrorMessage']=!0x0;}['resetErrorState'](){this['isError']=!0x1,this['errorType']='general',this['showErrorMessage']=!0x1;}['_createSkeletonLoader'](){return new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x15a1dc=new View(this['locale']),_0xade178=[];for(let _0x1f7766=0x0;_0x1f7766<0x10;_0x1f7766++){const _0x5470e1=this['_createSkeletonLoader']();_0x5470e1['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0xade178['push'](_0x5470e1);}return _0x15a1dc['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x572b32=>!_0x572b32)]},'children':_0xade178}),_0x15a1dc;}['_createErrorView'](){const _0x1c61cf=new View(this['locale']),_0x445729=new ButtonView(this['locale']),t=this['locale']['t'];return _0x1c61cf['delegate']('retryReview')['to'](this),_0x445729['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x445729['on']('execute',()=>{this['fire']('retryReview');}),_0x1c61cf['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x407199=>!_0x407199),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x5efe9b=>'chunk'===_0x5efe9b)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-chat-error','ck-ai-chat-error_full-width','ck-ai-review-mode__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-chat-error_warning',_0x3f46bb=>'chunk'===_0x3f46bb)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x4bd7bf=>'general'!==_0x4bd7bf)]},'children':[{'text':getTranslation$i(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x223645=>'chunk'!==_0x223645)]},'children':[{'text':getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x445729]}),_0x1c61cf;}['_createCancelButtonView'](){const _0x5af7d6=new ButtonView(this['locale']);return _0x5af7d6['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ai-chat-controls-loader__cancel-button'],'icon':IconStop}),_0x5af7d6['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x5734c1=>_0x5734c1)]}}),_0x5af7d6['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x5af7d6;}['_createToggleDiffButtonView'](){const _0x19c1eb=new ButtonView(this['locale']);_0x19c1eb['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x19c1eb['bind']('isEnabled')['to'](this,'isError',_0x346518=>!_0x346518),_0x19c1eb['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x1b7a62=>!_0x1b7a62)]}});const _0x4c1132=getTranslation$i(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x313087=getTranslation$i(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x19c1eb['bind']('isOn')['to'](this,'isToggleDiffOn',_0xd2cd64=>_0xd2cd64),_0x19c1eb['bind']('icon')['to'](this,'isToggleDiffOn',_0x5229a0=>_0x5229a0?IconEye:IconEyeCrossedOut),_0x19c1eb['bind']('label')['to'](this,'isToggleDiffOn',_0x461023=>_0x461023?_0x4c1132:_0x313087),_0x19c1eb['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x19c1eb;}['_createAcceptAllButtonView'](){const _0x1d9113=new ButtonView(this['locale']);return _0x1d9113['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x1d9113['bind']('isEnabled')['to'](this,'isError',_0x3ff29b=>!_0x3ff29b),_0x1d9113['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x264ebc=>!_0x264ebc)]}}),_0x1d9113['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x1d9113;}['_createExitReviewButtonView'](){const _0x44f9a1=new ButtonView(this['locale']);return _0x44f9a1['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x44f9a1['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x2278f0=>!_0x2278f0)]}}),_0x44f9a1['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x44f9a1;}['_createResultHeaderView'](){const _0xf21f8c=new View(this['locale']),_0x207f5c=this['_createTitleView']();return _0xf21f8c['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header']},'children':[_0x207f5c,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView']]}]}),_0xf21f8c;}['_createTitleView'](){const _0x463948=new View(this['locale']),_0x10109d=new AISpinnerView();return _0x10109d['bind']('isVisible')['to'](this,'isResultReady',_0x58de74=>!_0x58de74),_0x463948['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-wrapper']},'children':[_0x10109d,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-content']},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-run-results-header-subtitle']},'children':[{'text':this['bindTemplate']['to']('headerSubtitle')}]}]}]}),_0x463948;}}class AIReviewModeReviewCompletedView extends ListItemView{['resultsHeader'];['_finishReviewButtonView'];constructor(_0x3acd90){super(_0x3acd90),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](),this['resultsHeader']=this['_createResultHeaderView'](),this['set']('viewType','completed');const _0x389a96=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__review-completed',_0x389a96['if']('isVisible','ck-hidden',_0x3ab949=>!_0x3ab949)]},'children':[this['resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__review-completed-content']},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__review-completed-content-icon']},'children':[{'text':_0x389a96['to']('viewType',_0x407e7c=>'completed'===_0x407e7c?'🎉':'👍')}]},{'tag':'p','attributes':{'class':['ck-ai-review-mode__review-completed-content-text']},'children':[{'text':_0x389a96['to']('viewType',_0x24a105=>getTranslation$i(_0x3acd90,'completed'===_0x24a105?'AI_REVIEW_MODE_COMPLETED_TEXT':'AI_REVIEW_MODE_EMPTY_RESULTS_TEXT'))}]}]}]});}['_createFinishReviewButtonView'](){const _0x1297b3=new ButtonView(this['locale']);return _0x1297b3['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x1297b3['on']('execute',()=>{this['fire']('finishReview');}),_0x1297b3;}['_createResultHeaderView'](){const _0x287736=new View(this['locale']);return _0x287736['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__review-completed-header']},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__review-completed-header-title']},'children':[{'text':getTranslation$i(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__review-completed-header-buttons']},'children':[this['_finishReviewButtonView']]}]}),_0x287736;}}class AIReviewModeView extends View{['reviewModeHeader'];['reviewCheckListView'];['reviewCheckResultsView'];['reviewCompletedView'];constructor(_0x56cfc1){super(_0x56cfc1),this['reviewModeHeader']=new FormHeaderView(_0x56cfc1,{'label':getTranslation$i(_0x56cfc1,'AI_REVIEW_MODE'),'icon':IconAIReview,'class':'ck-ai-header\x20ck-ai-header_review-mode'}),this['reviewCheckListView']=new AIReviewModeReviewCheckListView(_0x56cfc1),this['reviewCheckListView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['reviewCheckResultsView']=new AIReviewModeReviewCheckResultsView(_0x56cfc1),this['reviewCheckResultsView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['reviewCompletedView']=new AIReviewModeReviewCompletedView(_0x56cfc1),this['reviewCompletedView']['delegate']('finishReview')['to'](this),this['reviewCheckListView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isLoading',!0x1),this['reviewCheckResultsView']['set']('isResultReady',!0x1),this['reviewCompletedView']['set']('isVisible',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-review-mode','ck-rounded-corners'],'dir':'ltr'},'children':[this['reviewModeHeader'],this['reviewCheckListView'],this['reviewCheckResultsView'],this['reviewCompletedView']]});}['showReviewCheckListView'](){this['reviewCheckListView']['resetAllParameterizedChecks'](),this['reviewCheckListView']['set']('isVisible',!0x0),this['reviewCheckResultsView']['set']('isVisible',!0x1),this['reviewCompletedView']['set']('isVisible',!0x1);}['showReviewCheckResultsView'](){this['hideActionsWhenResultIsReady'](),this['reviewCheckResultsView']['resetErrorState'](),this['reviewCheckListView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isVisible',!0x0),this['reviewCheckResultsView']['clearResults'](),this['reviewCheckResultsView']['set']('isLoading',!0x0);}['addCheckRunResult'](_0x194bb7){this['reviewCheckResultsView']['addResult'](_0x194bb7),this['reviewCheckResultsView']['set']('isLoading',!0x1);}['showReviewCompletedView'](){this['reviewCheckListView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isVisible',!0x1),this['reviewCompletedView']['set']('viewType','completed'),this['reviewCompletedView']['set']('isVisible',!0x0);}['showActionsWhenResultIsReady'](){this['reviewCheckResultsView']['isResultReady']=!0x0;}['showNoChangesView'](){this['reviewCheckListView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isVisible',!0x1),this['reviewCompletedView']['set']('viewType','unmodified'),this['reviewCompletedView']['set']('isVisible',!0x0);}['hideActionsWhenResultIsReady'](){this['reviewCheckResultsView']['isResultReady']=!0x1;}['showGeneralErrorView'](){this['reviewCheckResultsView']['set']('isLoading',!0x1),this['showActionsWhenResultIsReady'](),this['reviewCheckResultsView']['showGeneralErrorMessage']();}['showChunkErrorView'](){this['reviewCheckResultsView']['set']('isLoading',!0x1),this['showActionsWhenResultIsReady'](),this['reviewCheckResultsView']['showChunkErrorMessage']();}}class AIReviewModeBalloonSuggestionItemView extends BalloonPanelView{['resultItemView'];constructor(_0x41a819,_0x1145fb){super(_0x41a819),this['set']({'isVisible':!0x1,'position':'arrow_se','class':null,'top':0x0,'left':0x0}),this['extendTemplate']({'tag':'div','attributes':{'class':['ck-reset'],'tabindex':'-1'}}),this['content']['add'](this['_createContentView']()),_0x1145fb['add'](this);}['render'](){super['render'](),this['_setupClickOutsideHandler']();}['updateContent'](_0x13dba5){this['resultItemView']['changeId']=_0x13dba5['id'],this['resultItemView']['resultResponseView']['element']['innerHTML']=_0x13dba5['contentDiffed'];}['showBalloon'](_0x5e7214,_0x3884b8){this['updateContent'](_0x5e7214),this['show'](),this['pin']({'target':()=>this['_getBestRectPosition'](_0x3884b8)});}['hideBalloon'](){this['hide'](),this['unpin']();}['hideDiffInBalloon'](){this['resultItemView']['showDiff']=!0x1;}['showDiffInBalloon'](){this['resultItemView']['showDiff']=!0x0;}['deactivateChange'](){this['fire']('deactivateChange');}['_setupClickOutsideHandler'](){clickOutsideHandler({'emitter':this,'activator':()=>this['isVisible'],'contextElements':[this['element']],'callback':()=>{this['hideBalloon'](),this['deactivateChange']();}});}['_createContentView'](){const _0x2ee6fa=new View();return this['resultItemView']=new AIReviewModeReviewCheckListItemResultsView(this['locale'],''),this['resultItemView']['resultResponseView']['extendTemplate']({'attributes':{'class':['ck-content']}}),this['resultItemView']['delegate']('acceptChange','dismissChange')['to'](this),_0x2ee6fa['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-ai-review-mode-balloon-panel-suggestion']},'children':[{'tag':'p','attributes':{'class':['ck-ai-review-mode__suggestion-text']},'children':[this['resultItemView']]}]}),_0x2ee6fa;}['_getBestRectPosition'](_0x1a5aa2){const _0x3265eb=Array['from'](_0x1a5aa2['getClientRects']());return _0x3265eb['find'](_0x19f724=>_0x19f724['width']>0x0)||_0x3265eb[0x0];}}const AI_REVIEW_MODE_UI_EVENT_NAMES=['getReviewCheckList','runReviewCheck','abortReviewStream','toggleDiff','acceptAllChanges','leaveReviewModeResultList','activateChange','acceptChange','dismissChange','learnMore','finishReview','retryReview'];class AIReviewModeUI extends ContextPlugin{['_reviewModeView'];['_reviewModeBalloonSuggestionItemView'];['_bodyCollection'];static get['requires'](){return[AITabs];}static get['pluginName'](){return'AIReviewModeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e3285){super(_0x3e3285),this['_bodyCollection']=new BodyCollection(this['context']['locale']),this['_bodyCollection']['attachToDom'](),this['_reviewModeView']=new AIReviewModeView(this['context']['locale']),this['_reviewModeView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['_reviewModeBalloonSuggestionItemView']=new AIReviewModeBalloonSuggestionItemView(this['context']['locale'],this['_bodyCollection']),this['_reviewModeBalloonSuggestionItemView']['delegate']('acceptChange','dismissChange','deactivateChange')['to'](this);}['init'](){const _0x4d329b=this['context']['plugins']['get']('AITabs');_0x4d329b['view']['on']('activateTab',(_0xed917d,_0x45cb16)=>{'reviewMode'===_0x45cb16?this['fire']('getReviewCheckList'):this['fire']('leaveReviewMode');}),_0x4d329b['view']['addTab']({'id':'reviewMode','buttonLabel':getTranslation$i(this['context']['locale'],'AI_REVIEW_MODE'),'buttonIcon':IconAIReview,'order':0x0,'content':this['_reviewModeView']});}['destroy'](){this['_bodyCollection']['detachFromDom'](),super['destroy']();}['setAvailableChecks'](_0x40a69a){this['_reviewModeView']['reviewCheckListView']['hasChecks']()||this['_reviewModeView']['reviewCheckListView']['setChecks'](_0x40a69a),this['_reviewModeView']['showReviewCheckListView']();}['showReviewCheckList'](){this['fire']('getReviewCheckList');}['showCheckRunResults'](_0x224b1b){_0x224b1b&&('error-general'!==_0x224b1b['status']?'error-chunk'!==_0x224b1b['status']?this['_reviewModeView']['showReviewCheckResultsView']():this['showChunkErrorView']():this['showGeneralErrorView']());}['showCheckRunResult'](_0x48ff4b){this['_reviewModeView']['addCheckRunResult'](_0x48ff4b);}['showGeneralErrorView'](){this['_reviewModeView']['showGeneralErrorView']();}['showChunkErrorView'](){this['_reviewModeView']['showChunkErrorView']();}['setCheckResultTitle'](_0x558f60,_0x1c5707){this['_reviewModeView']['reviewCheckResultsView']['setTitle'](_0x558f60,_0x1c5707);}['setActiveStateInResults'](_0x2439f3){this['_reviewModeView']['reviewCheckResultsView']['getResults']()['forEach'](_0x1eb5b9=>{_0x1eb5b9['id']===_0x2439f3&&_0x1eb5b9['setItemAsActive']();});}['resetActiveStateInResults'](){this['_reviewModeView']['reviewCheckResultsView']['getResults']()['forEach'](_0x2caf5a=>_0x2caf5a['setItemAsInactive']());}['updateChangeState'](_0x50ede6,_0x1eae78){'accepted'!==_0x1eae78&&'rejected'!==_0x1eae78||this['_reviewModeView']['reviewCheckResultsView']['hideResult'](_0x50ede6);}['showReviewCompletedView'](){this['_reviewModeView']['showReviewCompletedView']();}['showActionsWhenResultIsReady'](){this['_reviewModeView']['showActionsWhenResultIsReady']();}['showNoChangesView'](){this['_reviewModeView']['showNoChangesView']();}['hideActionsWhenResultIsReady'](){this['_reviewModeView']['hideActionsWhenResultIsReady']();}['showChangeBalloon'](_0x4aa21a,_0x3cf7d6){this['_reviewModeBalloonSuggestionItemView']['showBalloon'](_0x4aa21a,_0x3cf7d6);}['hideChangeBalloon'](){this['_reviewModeBalloonSuggestionItemView']['hideBalloon']();}['hideDiffInBalloon'](){this['_reviewModeBalloonSuggestionItemView']['hideDiffInBalloon']();}['showDiffInBalloon'](){this['_reviewModeBalloonSuggestionItemView']['showDiffInBalloon']();}['getChangeElement'](_0x4c15d4){const _0x270e9f=this['_reviewModeView']['reviewCheckResultsView']['getResults']()['find'](_0x4b95a9=>_0x4b95a9['id']===_0x4c15d4);return _0x270e9f?_0x270e9f['element']:null;}['deactivateChange'](){this['_reviewModeBalloonSuggestionItemView']['deactivateChange']();}}const MARKER_PREFIX='reviewmode-',CHANGE_CONTEXT_WORDS_LIMIT=0x6;class AIReviewModeEditing extends ContextPlugin{static get['pluginName'](){return'AIReviewModeEditing';}static get['requires'](){return[DocumentCompare,AIEditing];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_markers']=new Map();['_domEmitter'];['_eventEmitter'];constructor(_0xcda949){super(_0xcda949),this['_domEmitter']=new(DomEmitterMixin())(),this['_eventEmitter']=new(EmitterMixin())();}get['emitter'](){return this['_eventEmitter'];}['afterInit'](){const _0x2faa50=getEditorFromContext(this['context']);_0x2faa50['conversion']['for']('editingDowncast')['markerToElement']({'model':MARKER_PREFIX+'insert','view':(_0x596f7b,{writer:_0x3ddf9c})=>{const _0x2698fd=this['_markers']['get'](_0x596f7b['markerName']),_0x358067={'class':'ck-ai_review-mode-marker_add','data-marker-id':_0x596f7b['markerName']};return _0x3ddf9c['createUIElement']('span',_0x358067,function(_0x12e2cc){const _0x3cbadc=this['toDomElement'](_0x12e2cc);return _0x3cbadc['innerHTML']=_0x2698fd?.['text']||'',_0x3cbadc;});}}),_0x2faa50['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-only','view':_0x3977aa=>({'classes':'ck-ai_review-mode-marker_strikethrough','attributes':{'data-marker-id':_0x3977aa['markerName']}})}),_0x2faa50['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-context','view':_0x5c24b0=>({'classes':'ck-ai_review-mode-marker_underline','attributes':{'data-marker-id':_0x5c24b0['markerName']}})}),_0x2faa50['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-text','view':_0x2cd270=>({'classes':'ck-ai_review-mode-marker_hide','attributes':{'data-marker-id':_0x2cd270['markerName']}})}),_0x2faa50['conversion']['for']('dataDowncast')['markerToElement']({'model':MARKER_PREFIX+'suggestion-context','view':(_0xeedbdf,{writer:_0x1f6590})=>_0x1f6590['createRawElement']('span',{'class':'ck-ai_review-mode-marker_context-'+(_0xeedbdf['isOpening']?'start':'end')})}),_0x2faa50['conversion']['for']('downcast')['attributeToAttribute']({'model':DATA_ID_MODEL_ATTRIBUTE,'view':DATA_ID_VIEW_ATTRIBUTE}),this['_domEmitter']['listenTo'](document,'click',(_0x1b65a5,_0x18b95b)=>{const _0x4e62ab=_0x18b95b['target'],_0xec8683=this['_findMarkerElement'](_0x4e62ab);if(!_0xec8683)return;const _0x522619=_0xec8683['getAttribute']('data-marker-id'),_0x144da4=_0x522619['split'](':')['pop']()?.['split']('_')[0x0];this['_eventEmitter']['fire']('changeMarkerClick',{'markerId':_0x522619,'changeId':_0x144da4});});}['getDocumentData'](){const _0x3953af=this['context']['plugins']['get']('AIEditing'),_0x39cf61=getEditorFromContext(this['context']),_0x2fc84c=_0x39cf61['model'],_0x47da8b=new ModelDocumentFragment();for(const _0x163bcc of _0x2fc84c['document']['getRoot']()['getChildren']()){const _0x4ba181=_0x163bcc['_clone'](!0x0);_0x47da8b['_appendChild'](_0x4ba181);}for(const _0x37b6e5 of _0x2fc84c['markers'])_0x47da8b['markers']['set'](_0x37b6e5['name'],this['_changeRangeOwnerDocument'](_0x37b6e5['getRange']()['clone'](),_0x47da8b));const _0x5ec27e=new ModelTreeWalker({'ignoreElementEnd':!0x0,'startPosition':_0x2fc84c['createPositionAt'](_0x47da8b,0x0)}),_0x7d0f87=new Set(),_0x59ef3f=new Map();for(const {item:_0x1e83d5}of _0x5ec27e){if(!_0x1e83d5['is']('$textProxy'))continue;const _0x2bbff5=_0x1e83d5['parent'];if((!_0x2bbff5||!_0x2bbff5['is']('element','caption'))&&(_0x2bbff5&&_0x2bbff5['is']('element'))){let _0xad2850=_0x2bbff5['getAttribute'](DATA_ID_MODEL_ATTRIBUTE);_0xad2850||(_0xad2850=_0x3953af['_nextDataId'](_0x7d0f87),_0x2bbff5['_setAttribute'](DATA_ID_MODEL_ATTRIBUTE,_0xad2850)),_0x7d0f87['add'](_0xad2850);let _0x33a7a5=_0x2bbff5;for(;_0x33a7a5['parent']&&!_0x33a7a5['parent']['is']('documentFragment');)_0x33a7a5=_0x33a7a5['parent'],_0x33a7a5['hasAttribute'](DATA_ID_MODEL_ATTRIBUTE)&&_0x33a7a5['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);_0x59ef3f['set'](_0xad2850,{'path':_0x2bbff5['getPath'](),'getContent':this['_createGetContentUsingDataIdFn'](_0x33a7a5['_clone'](!0x0),_0xad2850,_0x39cf61['data'])}),_0x5ec27e['jumpTo'](_0x2fc84c['createPositionAfter'](_0x2bbff5));}}return{'content':_0x39cf61['data']['processor']['toData'](_0x39cf61['data']['toView'](_0x47da8b)),'version':_0x39cf61['model']['document']['version'],'elements':_0x59ef3f};}['diffContent'](_0x537709,_0x450d03){const _0x315be2=getEditorFromContext(this['context']),_0x2d9967=_0x315be2['data']['parse'](_0x537709,'$documentFragment'),_0x5b5900=_0x315be2['model']['createPositionAt'](_0x2d9967,0x0),_0x4437df=this['context']['plugins']['get']('DocumentCompare')['getDiff'](_0x537709,_0x450d03,{'anchor':_0x5b5900,'markDeletions':!0x0})['getOperations']()['filter'](_0x2697bc=>'insert'===_0x2697bc['type']||'marker'===_0x2697bc['type']&&_0x2697bc['name']['startsWith']('$markedRemove')),_0x4b9bf2=this['_groupAdjacentOperations'](_0x4437df),_0x5df906=[];let _0x108429=0x0;return _0x315be2['model']['change'](_0x90e5ed=>{for(let _0x40faf5=0x0;_0x40faf5<_0x4b9bf2['length'];_0x40faf5++){const _0x31a213=_0x4b9bf2[_0x40faf5],_0x24f35d=_0x90e5ed['createDocumentFragment']();for(const _0x3dbf61 of _0x2d9967['getChildren']())_0x90e5ed['append'](_0x3dbf61['_clone'](!0x0),_0x24f35d);for(const _0x4c7403 of _0x31a213['operationsIsolated'])if('insert'===_0x4c7403['type']){const _0x44271c=_0x4c7403;_0x44271c['baseVersion']=null,_0x44271c['isDocumentOperation']=!0x1,this['_changeOperationOwnerDocument'](_0x44271c,_0x24f35d),_0x90e5ed['batch']['addOperation'](_0x4c7403),_0x315be2['model']['applyOperation'](_0x4c7403);const _0x315835='suggestion:insertion:id:authorId:'+_0x108429++,_0x364bbf=_0x315be2['model']['createRange'](_0x44271c['position'],_0x44271c['position']['getShiftedBy'](_0x44271c['howMany']));_0x24f35d['markers']['set'](_0x315835,_0x364bbf);}else{if('marker'===_0x4c7403['type']&&_0x4c7403['name']['startsWith']('$markedRemove')){const _0x494327=_0x4c7403,_0x441eb9='suggestion:deletion:id:authorId:'+_0x108429++;this['_changeOperationOwnerDocument'](_0x494327,_0x24f35d),_0x24f35d['markers']['set'](_0x441eb9,_0x494327['newRange']);}}const _0x31edb3=this['_getChangeContext'](this['_changePositionOwnerDocument'](this['_getOperationStart'](_0x31a213['operationsIsolated'][0x0]),_0x24f35d),this['_changePositionOwnerDocument'](this['_getOperationEnd'](_0x31a213['operationsIsolated'][_0x31a213['operationsIsolated']['length']-0x1]),_0x24f35d));_0x24f35d['markers']['set'](MARKER_PREFIX+'suggestion-context',new ModelRange(_0x31edb3['start'],_0x31edb3['end'])),_0x5df906['push']({..._0x31a213,'context':this['_createGetContextFn'](_0x24f35d,_0x315be2['data'],{'ellipsisBefore':_0x31edb3['hasContentBefore'],'ellipsisAfter':_0x31edb3['hasContentAfter']}),'content':this['_createGetContentFn'](_0x24f35d,_0x315be2['data'])});}}),_0x5df906;}['markChangePositionInEditorContent'](_0x241665,_0x178e32){const _0x4e5513=_0x241665[0x0]['parent']['id'],_0x48b58e=_0x178e32['elements']['get'](_0x4e5513);if(!_0x48b58e)return void console['warn']('No\x20element\x20found\x20for\x20ID:\x20'+_0x4e5513);const _0x4079ab=_0x48b58e['path'],_0x4baaff=getEditorFromContext(this['context']),_0x5cb109=_0x4baaff['model']['document']['history']['getOperations'](_0x178e32['version']),_0x1611b3=[];for(const _0x26f80a of _0x241665){const _0x1afbc8=_0x26f80a['operationsIsolated']['map'](_0x373537=>this['_translateOperationToEditorContent'](_0x373537,_0x4079ab,_0x4baaff['model']['document']['getRoots']()[0x0]));if(!_0x1afbc8||!_0x1afbc8['length'])continue;const _0x4b116b=_0x1afbc8['every'](_0x89a323=>'marker'===_0x89a323['type']&&_0x89a323['name']['startsWith']('$markedRemove')),_0x5bbdc3={'document':_0x4baaff['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1},_0x1051de=transformOperationSets(_0x1afbc8,_0x5cb109,_0x5bbdc3)['operationsA'];for(const _0x2a11f1 of _0x1051de)if('insert'===_0x2a11f1['type']){const _0x472a79=_0x2a11f1,_0x5f9184=_0x472a79['nodes'];let _0x261f5b='';for(const _0x1849eb of _0x5f9184)_0x1849eb&&_0x1849eb['is']('model:$text')&&(_0x261f5b+=_0x1849eb['data']);_0x1611b3['push']({'start':_0x472a79['position'],'end':_0x472a79['position'],'type':'insert','groupId':_0x26f80a['id'],'text':_0x261f5b});}else{if('marker'===_0x2a11f1['type']&&_0x2a11f1['name']['startsWith']('$markedRemove')){const _0x8cd642=_0x2a11f1;let _0x436c3d='remove-text';if(_0x4b116b){const _0xde1db=this['_findAdjacentContextDistance'](_0x8cd642['newRange']['start'],'backward',_0x4baaff['model']['schema']),_0x13003a=this['_findAdjacentContextDistance'](_0x8cd642['newRange']['end'],'forward',_0x4baaff['model']['schema']);if(_0xde1db||_0x13003a){const _0x394131=_0x8cd642['newRange']['start']['getShiftedBy'](-_0xde1db),_0x5093ef=_0x8cd642['newRange']['end']['getShiftedBy'](_0x13003a);_0x1611b3['push']({'start':_0x394131,'end':_0x5093ef,'groupId':_0x26f80a['id'],'type':'remove-context'});}else _0x436c3d='remove-only';}_0x1611b3['push']({'start':_0x8cd642['newRange']['start'],'end':_0x8cd642['newRange']['end'],'groupId':_0x26f80a['id'],'type':_0x436c3d});}}}this['_insertMarkers'](_0x1611b3);}['clearAllMarkers'](){getEditorFromContext(this['context'])['model']['change'](_0x11ce35=>{for(const _0x4e5508 of this['_markers']['keys']())_0x11ce35['removeMarker'](_0x4e5508);}),this['_markers']['clear']();}['switchToReadOnly'](){getEditorFromContext(this['context'])['enableReadOnlyMode']('ai-review-mode');}['switchToEdit'](){getEditorFromContext(this['context'])['disableReadOnlyMode']('ai-review-mode');}['applyChange'](_0xdeffae){const _0x422354=getEditorFromContext(this['context']),_0x2501d5=_0x422354['model'],_0x49365c=_0xdeffae['map'](_0x11ff6f=>this['_getMarkersDataForGroup'](_0x11ff6f))['flat']();_0x2501d5['change'](_0x2d35fc=>{for(const _0x2dc7ce of _0x49365c){const _0x10d98c=_0x422354['model']['markers']['get'](_0x2dc7ce['id']);_0x10d98c&&('insert'===_0x2dc7ce['type']?_0x2501d5['insertContent'](_0x2d35fc['createText'](_0x2dc7ce['text']||''),_0x10d98c['getRange']()['start']):'remove-text'!==_0x2dc7ce['type']&&'remove-only'!==_0x2dc7ce['type']||_0x2501d5['deleteContent'](_0x2501d5['createSelection'](_0x10d98c['getRange']())),_0x2d35fc['removeMarker'](_0x2dc7ce['id']),this['_markers']['delete'](_0x2dc7ce['id']));}});}['rejectChange'](_0x5ef9e0){const _0x298e6e=getEditorFromContext(this['context']),_0x591c11=this['_getMarkersDataForGroup'](_0x5ef9e0);_0x298e6e['model']['change'](_0x323021=>{for(const _0x44e943 of _0x591c11)_0x323021['removeMarker'](_0x44e943['id']),this['_markers']['delete'](_0x44e943['id']);});}['getEditor'](){return getEditorFromContext(this['context']);}['getMarkerElementForChange'](_0x7d792){const _0x522410=Array['from'](this['_markers']['values']())['filter'](_0x301ecb=>_0x301ecb['groupId']===_0x7d792);if(!_0x522410['length'])return null;const _0x4824be=0x1===_0x522410['length']?_0x522410[0x0]:this['_sortMarkers'](_0x522410)[0x0],_0x2f0d0f=getEditorFromContext(this['context']),_0x4e9ebf=_0x2f0d0f['model']['markers']['get'](_0x4824be['id']);if(!_0x4e9ebf)return null;const _0x35ba6b=_0x4e9ebf['getRange'](),_0x5c5874=_0x2f0d0f['editing']['view']['getDomRoot']();if(!_0x5c5874||!_0x35ba6b)return null;const _0x44b702=_0x5c5874['querySelector']('[data-marker-id=\x22'+_0x4824be['id']+'\x22]');return _0x44b702?{'modelRange':_0x35ba6b,'domElement':_0x44b702}:null;}['_translateOperationToEditorContent'](_0x4d14a4,_0x5e94a3,_0x5a9ac1){if('insert'===_0x4d14a4['type']){const _0x1c87b9=_0x4d14a4;return new InsertOperation(this['_changePosition'](_0x1c87b9['position'],_0x5e94a3['concat'](_0x1c87b9['position']['offset']),_0x5a9ac1),_0x1c87b9['nodes'],_0x1c87b9['baseVersion']);}if('marker'===_0x4d14a4['type']&&_0x4d14a4['name']['startsWith']('$markedRemove')){const _0x1667ad=_0x4d14a4;return new MarkerOperation(_0x1667ad['name'],_0x1667ad['oldRange'],this['_changeRange'](_0x1667ad['newRange'],_0x5e94a3['concat'](_0x1667ad['newRange']['start']['offset']),_0x5e94a3['concat'](_0x1667ad['newRange']['end']['offset']),_0x5a9ac1),_0x1667ad['_markers'],_0x1667ad['affectsData'],_0x1667ad['baseVersion']);}return _0x4d14a4;}['_groupAdjacentOperations'](_0x350d46){if(!_0x350d46['length'])return[];const _0x2d8b88=[];let _0x5346dc=0x0,_0x36d869=0x0,_0x5b6a2c=[];for(let _0x179e46=0x0;_0x179e46<=_0x350d46['length'];_0x179e46++){const _0x2e5b8c=_0x350d46[_0x179e46],_0x27b8c9=_0x350d46[_0x179e46-0x1];!_0x2e5b8c||_0x27b8c9&&!this['_getOperationEnd'](_0x27b8c9)['isTouching'](this['_getOperationStart'](_0x2e5b8c))?(_0x2d8b88['push']({'operations':_0x5b6a2c,'operationsIsolated':_0x5b6a2c['map'](_0x341433=>this['_shiftOperation'](_0x341433['clone'](),-_0x36d869)),'groupOffset':_0x5346dc}),_0x5b6a2c=_0x2e5b8c?[_0x2e5b8c]:[],_0x36d869+=_0x5346dc,_0x5346dc=0x0):_0x5b6a2c['push'](_0x2e5b8c),_0x2e5b8c&&'insert'===_0x2e5b8c['type']&&(_0x5346dc+=_0x2e5b8c['howMany']);}return _0x2d8b88;}['_findAdjacentContextDistance'](_0x19082a,_0x408546,_0x535078,_0x1d385e=0x1){const _0x2594d5=new ModelTreeWalker({'startPosition':_0x19082a,'direction':_0x408546});let _0x25c676=0x0;for(let _0x577d5f=0x0;_0x577d5f<_0x1d385e;_0x577d5f++){let _0x4156a8=0x0,_0x45a08a=!0x1,_0x42108e='forward'===_0x408546?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x3e752b}of _0x2594d5)if(_0x3e752b['is']('$textProxy')){const _0x508c3e=_0x42108e['exec'](_0x3e752b['data']);if(_0x508c3e&&_0x508c3e['length']){if(_0x4156a8+='forward'===_0x408546?_0x508c3e['index']+_0x508c3e[0x0]['length']:_0x3e752b['data']['length']-_0x508c3e['index'],_0x508c3e[0x0]['length']!==_0x3e752b['data']['length'])break;_0x45a08a=!0x0,_0x42108e='forward'===_0x408546?/^\w+/:/\w+$/;}else{if(_0x45a08a)break;_0x4156a8+=_0x3e752b['offsetSize'];}}else{if(_0x3e752b['is']('element')){_0x535078['isInline'](_0x3e752b)&&!_0x45a08a&&(_0x4156a8+=0x1);break;}}_0x25c676+=_0x4156a8,_0x2594d5['jumpTo'](_0x19082a['getShiftedBy']('forward'===_0x408546?_0x25c676:-_0x25c676));}return _0x25c676;}['_getChangeContext'](_0x5c1770,_0x498dd6){const _0x5bedee=getEditorFromContext(this['context'])['model']['schema'],_0x5d2051=this['_findAdjacentContextDistance'](_0x5c1770,'backward',_0x5bedee,CHANGE_CONTEXT_WORDS_LIMIT),_0x411bb0=this['_findAdjacentContextDistance'](_0x498dd6,'forward',_0x5bedee,CHANGE_CONTEXT_WORDS_LIMIT),_0x3fd748=_0x5c1770['getShiftedBy'](-_0x5d2051),_0x4e0391=_0x498dd6['getShiftedBy'](_0x411bb0);return{'start':_0x3fd748,'end':_0x4e0391,'hasContentBefore':!_0x3fd748['isAtStart'],'hasContentAfter':!_0x4e0391['isAtEnd']};}['_insertMarkers'](_0x33f98c){const _0x20b787=this['context']['plugins']['get']('AIEditing'),_0x50b7b8=new Set();getEditorFromContext(this['context'])['model']['change'](_0xb15611=>{for(const _0x14e729 of _0x33f98c){const _0x57e071=''+MARKER_PREFIX+_0x14e729['type']+':'+_0x14e729['groupId']+'_'+_0x20b787['_nextDataId'](_0x50b7b8);this['_markers']['set'](_0x57e071,{'id':_0x57e071,'groupId':_0x14e729['groupId'],'type':_0x14e729['type'],'text':_0x14e729['text']}),_0xb15611['addMarker'](_0x57e071,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xb15611['createRange'](_0x14e729['start'],_0x14e729['end'])});}});}['_createGetContextFn'](_0x4562ad,_0x516769,_0x10116d){let _0x3d39c3='';return()=>{if(!_0x3d39c3){const _0x30fac4=_0x516769['toView'](_0x4562ad,{'showSuggestionHighlights':!0x0}),_0x498220=_0x30fac4['getChild'](0x0);if(!_0x498220)return'';let _0x219cde=!0x1;const _0x2537ab=[];for(const _0x25bb55 of _0x498220['getChildren']())_0x25bb55['is']('element','span')&&_0x25bb55['hasClass']('ck-ai_review-mode-marker_context-end')&&(_0x219cde=!0x1),_0x219cde&&_0x2537ab['push'](_0x25bb55),_0x25bb55['is']('element','span')&&_0x25bb55['hasClass']('ck-ai_review-mode-marker_context-start')&&(_0x219cde=!0x0);_0x498220['_removeChildren'](0x0,_0x498220['childCount']),_0x10116d?.['ellipsisBefore']&&_0x498220['_appendChild']('…'),_0x498220['_appendChild'](_0x2537ab),_0x10116d?.['ellipsisAfter']&&_0x498220['_appendChild']('…');const _0x5216e6=_0x516769['htmlProcessor']['domConverter']['viewToDom'](_0x30fac4),_0x524b0a=_0x516769['htmlProcessor']['htmlWriter']['getHtml'](_0x5216e6);_0x3d39c3=_0x524b0a;}return _0x3d39c3;};}['_createGetContentFn'](_0x2a3953,_0x581401){let _0x6ee081='';return()=>(_0x6ee081||(_0x6ee081=_0x581401['stringify'](_0x2a3953,{'showSuggestionHighlights':!0x0})),_0x6ee081);}['_createGetContentUsingDataIdFn'](_0x3a29fd,_0x365e98,_0x1661a9){let _0x40e5d3='';return()=>{if(!_0x40e5d3){const _0x29d13f=_0x1661a9['toView'](new ModelDocumentFragment(_0x3a29fd)),_0x4a939d=_0x1661a9['htmlProcessor']['domConverter']['viewToDom'](_0x29d13f)['querySelector']('[data-id=\x22'+_0x365e98+'\x22]');_0x40e5d3=_0x4a939d?.['outerHTML']||'';}return _0x40e5d3;};}['_findMarkerElement'](_0x290999,_0x8af759=0x5){let _0x402f95=_0x290999,_0x3db55b=null;for(let _0x4dc542=0x0;_0x4dc542<_0x8af759&&_0x402f95;_0x4dc542++){if(!_0x402f95['className']){_0x402f95=_0x402f95['parentElement'];continue;}if(!(''+_0x402f95['className'])['includes']('ck-ai_review-mode-marker_')){_0x402f95=_0x402f95['parentElement'];continue;}if(!_0x402f95['getAttribute']('data-marker-id'))break;_0x3db55b=_0x402f95;break;}return _0x3db55b;}['_getMarkersDataForGroup'](_0x18fd34){return Array['from'](this['_markers']['values']())['filter'](_0x3126e7=>_0x3126e7['groupId']===_0x18fd34);}['_getOperationStart'](_0x585191){return'insert'===_0x585191['type']?_0x585191['position']:_0x585191['newRange']['start'];}['_getOperationEnd'](_0x57094d,_0x57affc=!0x1){return'insert'===_0x57094d['type']?_0x57affc?_0x57094d['position']:_0x57094d['position']['getShiftedBy'](_0x57094d['howMany']):_0x57094d['newRange']['end'];}['_shiftOperation'](_0x5d447a,_0x4488c8){return'insert'===_0x5d447a['type']?_0x5d447a['position']=_0x5d447a['position']['getShiftedBy'](_0x4488c8):'marker'===_0x5d447a['type']&&_0x5d447a['newRange']&&(_0x5d447a['newRange']=new ModelRange(_0x5d447a['newRange']['start']['getShiftedBy'](_0x4488c8),_0x5d447a['newRange']['end']['getShiftedBy'](_0x4488c8))),_0x5d447a;}['_changeOperationOwnerDocument'](_0x172dd5,_0x35f1e9){'insert'===_0x172dd5['type']?_0x172dd5['position']=this['_changePositionOwnerDocument'](_0x172dd5['position'],_0x35f1e9):'marker'===_0x172dd5['type']&&_0x172dd5['newRange']&&(_0x172dd5['newRange']=this['_changeRangeOwnerDocument'](_0x172dd5['newRange'],_0x35f1e9));}['_changePositionOwnerDocument'](_0xa7c18d,_0x3753db){return new ModelPosition(_0x3753db,_0xa7c18d['path']);}['_changeRangeOwnerDocument'](_0x3f2228,_0x4bc005){return new ModelRange(this['_changePositionOwnerDocument'](_0x3f2228['start'],_0x4bc005),this['_changePositionOwnerDocument'](_0x3f2228['end'],_0x4bc005));}['_changePosition'](_0xeb36dd,_0x1635bf,_0x1e877e){return new ModelPosition(_0x1e877e,[..._0x1635bf]);}['_changeRange'](_0x3f3e33,_0x1b0641,_0x26f9f7,_0x4a44ea){return new ModelRange(this['_changePosition'](_0x3f3e33['start'],_0x1b0641,_0x4a44ea),this['_changePosition'](_0x3f3e33['end'],_0x26f9f7,_0x4a44ea));}['_sortMarkers'](_0x291b79){const _0x160795=_0x4d25e5=>{switch(_0x4d25e5){case'insert':return 0x1;case'remove-context':return 0x2;case'remove-only':return 0x3;case'remove-text':return 0x4;}};return _0x291b79['sort']((_0x331932,_0xaba43e)=>_0x160795(_0x331932['type'])-_0x160795(_0xaba43e['type']));}}class AIReviewMode extends ContextPlugin{static get['requires'](){return[AIReviewModeController,AIReviewModeUI,AIReviewModeEditing];}static get['pluginName'](){return'AIReviewMode';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class CaseChangeCommand extends _0x142ccd{['_transformCallback'];constructor(_0x5bafad,_0x541df2){super(_0x5bafad),this['_transformCallback']=_0x541df2;}['execute'](){const _0x1d651c=this['editor']['model'],_0x56230b=Array['from'](this['_getAffectedRanges']()),_0xa33df4=Array['from'](_0x1d651c['document']['selection']['getRanges']());_0x1d651c['change'](_0x3a3879=>{for(const _0x11d982 of _0x56230b)this['_modifyContent'](_0x11d982,_0x3a3879);_0x3a3879['setSelection'](_0xa33df4);});}['refresh'](){for(const _0x4d49b3 of this['_getAffectedRanges']())for(const _0x3bdca6 of _0x4d49b3)if(_0x3bdca6['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x547d63=this['editor']['model'],_0x5653ee=_0x547d63['document']['selection'];if(_0x5653ee['isCollapsed']){const _0x41a17a=this['_findAncestorTextBlock'](_0x5653ee['getFirstPosition']()['parent']);return _0x41a17a?[_0x547d63['createRangeIn'](_0x41a17a)]:[];}return _0x5653ee['getRanges']();}['_modifyContent'](_0x452ae9,_0x41d345){for(const _0x2363b9 of this['_getElementsAllowingText'](_0x452ae9)){const _0x294193=this['_getElementTextContent'](_0x2363b9),_0x3483ba=this['_transformCallback'](_0x294193);for(const _0xf7ad01 of this['_getTextNodesRangeLimited'](_0x2363b9,_0x452ae9))this['_replaceTextNodeData'](_0xf7ad01,_0x3483ba,_0x41d345);}}['_findAncestorTextBlock'](_0x349124){const _0xa7f9a7=this['editor']['model']['schema'];if(_0x349124['is']('element')&&_0xa7f9a7['checkChild'](_0x349124,'$text'))return _0x349124;const _0x2dfe36=_0x349124['parent'];return!_0x2dfe36||_0xa7f9a7['isLimit'](_0x349124)?null:this['_findAncestorTextBlock'](_0x2dfe36);}*['_getElementsAllowingText'](_0x13f166){const _0x2df3d8=new Set();for(const {item:_0x4d472c}of _0x13f166['getWalker']()){const _0x4ca814=this['_findAncestorTextBlock'](_0x4d472c);_0x4ca814&&!_0x2df3d8['has'](_0x4ca814)&&(_0x2df3d8['add'](_0x4ca814),yield _0x4ca814);}}['_getElementTextContent'](_0x296dc4){return Array['from'](_0x296dc4['getChildren']())['reduce']((_0x5dcee5,_0x2e6e05)=>_0x5dcee5+(_0x2e6e05['is']('$text')?_0x2e6e05['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x28f11b,_0x5dde4d){const _0x291d55=_0x5dde4d['getIntersection'](this['editor']['model']['createRangeIn'](_0x28f11b));if(_0x291d55){for(const _0x11fab0 of _0x291d55['getItems']())_0x11fab0['is']('$textProxy')&&_0x11fab0['parent']==_0x28f11b&&(yield _0x11fab0);}}['_replaceTextNodeData'](_0x1b3f52,_0x3a5395,_0x1844c9){const _0x72fd3f=_0x3a5395['substring'](_0x1b3f52['startOffset'],_0x1b3f52['endOffset']);if(_0x72fd3f===_0x1b3f52['data'])return;const _0x53e3d6=_0x1b3f52['getAttributes']();this['editor']['model']['insertContent'](_0x1844c9['createText'](_0x72fd3f,_0x53e3d6),_0x1844c9['createSelection'](_0x1844c9['createRangeOn'](_0x1b3f52)));}}function getTranslation$g(_0x52947a,_0x468ccc,..._0x30a3d7){const t=_0x52947a['t'];switch(_0x468ccc){case'Case\x20change':return t('Case\x20change');case'UPPERCASE':return t('UPPERCASE');case'lowercase':return t('lowercase');case'Title\x20Case':return t('Title\x20Case');case'Change\x20text\x20case':return t('Change\x20text\x20case');case'Changed\x20case\x20to\x20%0':return t('Changed\x20case\x20to\x20%0',..._0x30a3d7);default:return _0x468ccc;}}class CaseChangeEditing extends Plugin{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4fc672=this['editor'],_0x348816=_0x4fc672['locale']['contentLanguage'],_0x7d27ec=normalizeExcludeWordCallback(_0x4fc672['config']['get']('caseChange.titleCase.excludeWords')),_0x3bf41c={'changeCaseUpper':new CaseChangeCommand(_0x4fc672,_0x1027f0=>_0x1027f0['toLocaleUpperCase'](_0x348816)),'changeCaseLower':new CaseChangeCommand(_0x4fc672,_0x1564fd=>_0x1564fd['toLocaleLowerCase'](_0x348816)),'changeCaseTitle':new CaseChangeCommand(_0x4fc672,_0x454d26=>capitalizeText(_0x454d26,_0x7d27ec,_0x348816))};for(const [_0x394dda,_0x12ca5b]of Object['entries'](_0x3bf41c))_0x4fc672['commands']['add'](_0x394dda,_0x12ca5b),_0x12ca5b['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x394dda);});this['listenTo'](_0x4fc672['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x4fc672['keystrokes']['set']('shift+f3',(_0x282308,_0x2f868e)=>{const _0x1c26cb=_getOptions(this['editor']['locale']),_0x13357c=_0x1c26cb[this['_currentCommandIndex']%_0x1c26cb['length']]['commandName'];_0x4fc672['execute'](_0x13357c),this['_currentCommandIndex']++,_0x2f868e();});}['afterInit'](){checkLicense$h(this);}['_announceCaseChangeOperation'](_0xe57524){const {ui:_0x134fe5,locale:_0x38ef86}=this['editor'],_0x339072=_getOptions(_0x38ef86)['find'](_0x30c122=>_0x30c122['commandName']===_0xe57524)['label']['toLowerCase']();_0x134fe5['ariaLiveAnnouncer']['announce'](getTranslation$g(_0x38ef86,'Changed\x20case\x20to\x20%0',_0x339072));}}function _getOptions(_0x33812b){return[{'label':getTranslation$g(_0x33812b,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':getTranslation$g(_0x33812b,'lowercase'),'commandName':'changeCaseLower'},{'label':getTranslation$g(_0x33812b,'Title\x20Case'),'commandName':'changeCaseTitle'}];}function capitalizeText(_0x35f48b,_0x2ac9ac,_0x163586){return replaceWords(_0x35f48b,(_0x530987,_0x2fbfa5,_0x2e6c46)=>{const _0x2efa94=_0x530987['toLocaleLowerCase'](_0x163586);return _0x2ac9ac(_0x2efa94,{'charOffset':_0x2fbfa5,'wordIndex':_0x2e6c46,'blockText':_0x35f48b})?_0x2efa94:_0x2efa94['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x1946e2=>_0x1946e2['toLocaleUpperCase'](_0x163586));});}function replaceWords(_0x37960a,_0x15d375){let _0x561d3e='',_0x1577e6=0x0,_0x2ebb0c=0x0;for(const _0x5ef861 of _0x37960a['matchAll'](/ +/g)){const _0x31c39d=_0x5ef861['index'],_0xcbd823=_0x37960a['substring'](_0x1577e6,_0x31c39d);_0xcbd823['length']&&(_0x561d3e+=_0x15d375(_0xcbd823,_0x1577e6,_0x2ebb0c++)),_0x561d3e+=_0x5ef861[0x0],_0x1577e6=_0x31c39d+_0x5ef861[0x0]['length'];}const _0x27b85a=_0x37960a['substring'](_0x1577e6);return _0x27b85a['length']&&(_0x561d3e+=_0x15d375(_0x27b85a,_0x1577e6,_0x2ebb0c)),_0x561d3e;}function normalizeExcludeWordCallback(_0xec2e26=[]){return'function'==typeof _0xec2e26?_0xec2e26:(_0x170f72,{wordIndex:_0x3f20e2})=>_0x3f20e2>0x0&&_0xec2e26['includes'](_0x170f72);}async function checkLicense$h(_0x5dbc01){const _0x3fb530=_0x4d7564([0x45,0x4d,0x44,0x53,0x33,0x64,0x73,0x4c,0x6f,0x4a,0x59,0x30,0x6e,0x62,0x65,0x39,0x63,0x6d,0x6c,0x43,0x72,0x58,0x79,0x61,0x5a,0x38,0x7a,0x70,0x50,0x71,0x4e,0x36,0x6a,0x78,0x54,0x68,0x66,0x37,0x67,0x77,0x42,0x69,0x32,0x4b,0x46,0x4f,0x56,0x55,0x57,0x52,0x41,0x47,0x31,0x34,0x48,0x51,0x49,0x6b,0x75,0x74,0x35,0x76]),_0x480150=window[_0x4d7564([0x44,0x61,0x74,0x65])][_0x4d7564([0x6e,0x6f,0x77])](),_0x5d5b27=_0x5dbc01[_0x4d7564([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x159c09=new window[(_0x4d7564([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c5491=>{_0x5d5b27[_0x4d7564([0x6f,0x6e,0x63,0x65])](_0x4d7564([0x72,0x65,0x61,0x64,0x79]),_0x5c5491);}),_0x4b1426={[_0x4d7564([0x6b,0x74,0x79])]:_0x4d7564([0x45,0x43]),[_0x4d7564([0x75,0x73,0x65])]:_0x4d7564([0x73,0x69,0x67]),[_0x4d7564([0x63,0x72,0x76])]:_0x4d7564([0x50,0x2d,0x32,0x35,0x36]),[_0x4d7564([0x78])]:_0x4d7564([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4d7564([0x79])]:_0x4d7564([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4d7564([0x61,0x6c,0x67])]:_0x4d7564([0x45,0x53,0x32,0x35,0x36])},_0x3c7c41=_0x5d5b27[_0x4d7564([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d7564([0x67,0x65,0x74])](_0x4d7564([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x1afcf8=await(async function(){let _0x3313b6,_0x57bd82=null,_0x5a3160=null;try{if(_0x3c7c41==_0x4d7564([0x47,0x50,0x4c]))return _0x4d7564([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3313b6=(function(){const _0x5151a1=_0x3c7c41[_0x4d7564([0x73,0x70,0x6c,0x69,0x74])](_0x4d7564([0x2e]));if(0x3!=_0x5151a1[_0x4d7564([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x15a5f6=_0x5151a1[0x1];return _0x17e09a(_0x15a5f6);function _0x17e09a(_0x2c9ee8){const _0x420aa4=_0x4c3a6f(_0x2c9ee8);return _0x420aa4&&_0x351be5()?_0x420aa4:null;function _0x351be5(){const _0x26774b=_0x420aa4[_0x4d7564([0x6a,0x74,0x69])],_0x3476bb=window[_0x4d7564([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26774b[_0x4d7564([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26774b[_0x4d7564([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x287cd6={..._0x420aa4,[_0x4d7564([0x6a,0x74,0x69])]:_0x26774b[_0x4d7564([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x26774b[_0x4d7564([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x287cd6[_0x4d7564([0x76,0x63])],_0x2f80cc(_0x287cd6)==_0x3476bb;}}}()),!_0x3313b6)return _0x4d7564([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x3313b6[_0x4d7564([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a3160=function(_0x78e2dd,_0x166748){return new window[(_0x4d7564([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32dbf6=>{if(_0x542625())return _0x32dbf6(_0x4d7564([0x56,0x61,0x6c,0x69,0x64]));_0x4e8423(),_0x5d5b27[_0x4d7564([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d7564([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x76d4f0=!0x1;const _0x35ef02=uid();function _0x4b10d4(_0x455620){return!!_0x455620&&(typeof _0x455620===_0x4d7564([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x455620===_0x4d7564([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x455620[_0x4d7564([0x74,0x68,0x65,0x6e])]===_0x4d7564([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x455620[_0x4d7564([0x63,0x61,0x74,0x63,0x68])]===_0x4d7564([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x375051(_0x5dd5c0){_0x23edd2(_0x5dd5c0)[_0x4d7564([0x74,0x68,0x65,0x6e])](_0x4835c2=>{if(!_0x4835c2||_0x4835c2[_0x4d7564([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d7564([0x6f,0x6b]))return _0x4d7564([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3ee8d9(_0x2f80cc(_0x35ef02+_0x166748))!=_0x4835c2[_0x4d7564([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d7564([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d7564([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d7564([0x74,0x68,0x65,0x6e])](_0x1ac63f=>(_0x2bdde3(),_0x1ac63f),()=>{const _0x38a55a=_0x20c8ee();return null==_0x38a55a?(_0x2bdde3(),_0x4d7564([0x56,0x61,0x6c,0x69,0x64])):_0x4d7564(_0x480150-_0x38a55a>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d7564([0x74,0x68,0x65,0x6e])](_0x32dbf6)[_0x4d7564([0x63,0x61,0x74,0x63,0x68])](()=>{_0x32dbf6(_0x4d7564([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e5a7b=0x36ee80;function _0x2bdde3(){const _0x33fe86=_0x4d7564([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ee8d9(_0x2f80cc(_0x78e2dd)),_0x151649=_0x14e163(_0x3ee8d9(window[_0x4d7564([0x4d,0x61,0x74,0x68])][_0x4d7564([0x63,0x65,0x69,0x6c])](_0x480150/_0x2e5a7b)));window[_0x4d7564([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d7564([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33fe86,_0x151649);}function _0x20c8ee(){const _0x498fe0=_0x4d7564([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ee8d9(_0x2f80cc(_0x78e2dd)),_0x3243eb=window[_0x4d7564([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d7564([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x498fe0);return _0x3243eb?window[_0x4d7564([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14e163(_0x3243eb),0x10)*_0x2e5a7b:null;}function _0x23edd2(_0x485a1c){return new window[(_0x4d7564([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5327b2,_0x1d92ab)=>{_0x485a1c[_0x4d7564([0x74,0x68,0x65,0x6e])](_0x5327b2,_0x1d92ab),window[_0x4d7564([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d92ab,0x1d4c0);});}}_0x5d5b27[_0x4d7564([0x6f,0x6e])](_0x4d7564([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4800a5,_0x2a470c)=>{if(_0x2a470c[0x0]!=_0x78e2dd)return _0x32dbf6(_0x4d7564([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a470c[0x1]={..._0x2a470c[0x1],[_0x4d7564([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x35ef02};},{[_0x4d7564([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d7564([0x68,0x69,0x67,0x68])}),_0x5d5b27[_0x4d7564([0x6f,0x6e])](_0x4d7564([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5a5a09=>{_0x4b10d4(_0x5a5a09[_0x4d7564([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x76d4f0=!0x0,_0x375051(_0x5a5a09[_0x4d7564([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d7564([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d7564([0x6c,0x6f,0x77])}),_0x159c09[_0x4d7564([0x74,0x68,0x65,0x6e])](()=>{_0x76d4f0||_0x32dbf6(_0x4d7564([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x542625(){return _0x5d5b27[_0x4d7564([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d7564([0x76,0x69,0x65,0x77])][_0x4d7564([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d7564([0x61,0x75,0x74,0x6f]);}function _0x4e8423(){_0x5d5b27[_0x4d7564([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d7564([0x76,0x69,0x65,0x77])][_0x4d7564([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d7564([0x61,0x75,0x74,0x6f]);}}(_0x3313b6[_0x4d7564([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3313b6[_0x4d7564([0x6a,0x74,0x69])]));const _0x488583=await(async function(){let _0x5010df=!0x0;try{const _0x39163a=_0x3c7c41[_0x4d7564([0x73,0x70,0x6c,0x69,0x74])](_0x4d7564([0x2e])),[_0x38f81c,_0x268efc,_0x5e8006]=_0x39163a;return _0x1bab12(_0x38f81c),await _0x545cc6(_0x38f81c,_0x268efc,_0x5e8006),_0x5010df;}catch{return!0x1;}function _0x1bab12(_0x582482){const _0x24b526=_0x4c3a6f(_0x582482);_0x24b526&&_0x24b526[_0x4d7564([0x61,0x6c,0x67])]==_0x4d7564([0x45,0x53,0x32,0x35,0x36])||(_0x5010df=!0x1);}async function _0x545cc6(_0x1b5d57,_0x281c30,_0x4e6053){const _0x519ad2=window[_0x4d7564([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d7564([0x66,0x72,0x6f,0x6d])](_0x1e6704(_0x4e6053),_0x5e30f6=>_0x5e30f6[_0x4d7564([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d54cf=new window[(_0x4d7564([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d7564([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b5d57+_0x4d7564([0x2e])+_0x281c30),_0xbe035a=window[_0x4d7564([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d7564([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xbe035a)return;const _0x151f93=await _0xbe035a[_0x4d7564([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d7564([0x6a,0x77,0x6b]),_0x4b1426,{[_0x4d7564([0x6e,0x61,0x6d,0x65])]:_0x4d7564([0x45,0x43,0x44,0x53,0x41]),[_0x4d7564([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d7564([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d7564([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xbe035a[_0x4d7564([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d7564([0x6e,0x61,0x6d,0x65])]:_0x4d7564([0x45,0x43,0x44,0x53,0x41]),[_0x4d7564([0x68,0x61,0x73,0x68])]:{[_0x4d7564([0x6e,0x61,0x6d,0x65])]:_0x4d7564([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x151f93,_0x519ad2,_0x2d54cf)||(_0x5010df=!0x1);}}());return _0x488583?(function(){const _0xd4ede0=_0x3313b6[_0x4d7564([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xd4ede0)return!0x1;if(_0xd4ede0[_0x4d7564([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d7564([0x2a])))return!0x0;if(_0xd4ede0[_0x4d7564([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d7564([0x43,0x43])))return!0x0;if(_0xd4ede0[_0x4d7564([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d7564([0x50,0x50])))return!0x0;return!0x1;}())?(function(){const _0x37f749=[_0x4d7564([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d7564([0x74,0x72,0x69,0x61,0x6c])][_0x4d7564([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3313b6[_0x4d7564([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x480150/0x3e8:0x68f03580;return _0x3313b6[_0x4d7564([0x65,0x78,0x70])]<_0x37f749;}())?_0x4d7564([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x322565=_0x3313b6[_0x4d7564([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x322565||0x0==_0x322565[_0x4d7564([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3c461e}=new URL(window[_0x4d7564([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x322565[_0x4d7564([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c461e))return!0x0;const _0xc15e7a=_0x3c461e[_0x4d7564([0x73,0x70,0x6c,0x69,0x74])](_0x4d7564([0x2e]));return _0x322565[_0x4d7564([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c87ff=>_0x5c87ff[_0x4d7564([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d7564([0x2a])))[_0x4d7564([0x6d,0x61,0x70])](_0x558e45=>_0x558e45[_0x4d7564([0x73,0x70,0x6c,0x69,0x74])](_0x4d7564([0x2e])))[_0x4d7564([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c7c51=>_0x3c7c51[_0x4d7564([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xc15e7a[_0x4d7564([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d7564([0x6d,0x61,0x70])](_0x15aa68=>Array(_0xc15e7a[_0x4d7564([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x15aa68[_0x4d7564([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d7564([0x66,0x69,0x6c,0x6c])](_0x15aa68[0x0]===_0x4d7564([0x2a])?_0x4d7564([0x2a]):'')[_0x4d7564([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x15aa68))[_0x4d7564([0x73,0x6f,0x6d,0x65])](_0x3db4b1=>_0xc15e7a[_0x4d7564([0x65,0x76,0x65,0x72,0x79])]((_0x18089e,_0x1ad0c5)=>_0x3db4b1[_0x1ad0c5]===_0x18089e||_0x3db4b1[_0x1ad0c5]===_0x4d7564([0x2a])));}())?(_0x3313b6[_0x4d7564([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d7564([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57bd82=_0x469ea5(_0x4d7564([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3313b6[_0x4d7564([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d7564([0x74,0x72,0x69,0x61,0x6c])&&(_0x57bd82=_0x469ea5(_0x4d7564([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x57bd82&&_0x5a3160)return new window[(_0x4d7564([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a5b09,_0x155e35)=>{_0x57bd82[_0x4d7564([0x74,0x68,0x65,0x6e])](_0x1a5b09,_0x155e35),_0x5a3160[_0x4d7564([0x74,0x68,0x65,0x6e])](_0x167568=>{_0x167568!=_0x4d7564([0x56,0x61,0x6c,0x69,0x64])&&_0x1a5b09(_0x167568);},_0x155e35);});return _0x57bd82||_0x5a3160||_0x4d7564([0x56,0x61,0x6c,0x69,0x64]);}())):_0x4d7564([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d7564([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d7564([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4d7564([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x469ea5(_0x6a3d7e){const _0x33ce46=[new window[(_0x4d7564([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ef513=>setTimeout(_0x2ef513,0x93ecc)),_0x159c09[_0x4d7564([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d7564([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x163fde=>{let _0x339b22=0x0;_0x5d5b27[_0x4d7564([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d7564([0x6f,0x6e])](_0x4d7564([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2cebb5,_0x1262f8)=>{_0x1262f8[0x0][_0x4d7564([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x339b22++,0x1f8==_0x339b22&&(_0x163fde(),_0x2cebb5[_0x4d7564([0x6f,0x66,0x66])]());});}))];return window[_0x4d7564([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d7564([0x72,0x61,0x63,0x65])](_0x33ce46)[_0x4d7564([0x74,0x68,0x65,0x6e])](()=>_0x6a3d7e);}function _0x4c3a6f(_0x45cc8d){return _0x45cc8d[_0x4d7564([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d7564([0x65,0x79]))?JSON[_0x4d7564([0x70,0x61,0x72,0x73,0x65])](_0x1e6704(_0x45cc8d)):null;}function _0x1e6704(_0x388e58){return window[_0x4d7564([0x61,0x74,0x6f,0x62])](_0x388e58[_0x4d7564([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d7564([0x2b]))[_0x4d7564([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d7564([0x2f])));}function _0x2f80cc(_0x43101d){let _0x402410=0x1505;function _0x168fcc(_0xaf6678){for(let _0x36c478=0x0;_0x36c478<_0xaf6678[_0x4d7564([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36c478++){const _0x1b3cb4=_0xaf6678[_0x4d7564([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x36c478);_0x402410=(_0x402410<<0x5)+_0x402410+_0x1b3cb4,_0x402410&=_0x402410;}}return function _0x10663c(_0x4335b4){Array[_0x4d7564([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4335b4)?_0x4335b4[_0x4d7564([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x10663c):_0x4335b4&&typeof _0x4335b4==_0x4d7564([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d7564([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4335b4)[_0x4d7564([0x73,0x6f,0x72,0x74])]()[_0x4d7564([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x346977,_0x13291b])=>{_0x168fcc(_0x346977),_0x10663c(_0x13291b);}):_0x168fcc(window[_0x4d7564([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4335b4));}(_0x43101d),_0x402410>>>0x0;}function _0x3ee8d9(_0x46a663){return _0x46a663[_0x4d7564([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d7564([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d7564([0x30]));}function _0x14e163(_0x32d783){return _0x32d783[_0x4d7564([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d7564([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d7564([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d9154(){}function _0x4d7564(_0xbebba8){return _0xbebba8['map'](_0x4a15c5=>String['fromCharCode'](_0x4a15c5))['join']('');}!function(_0x1a68c6){const _0x28e39d=(function(){const _0x15eb2c=window[_0x4d7564([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d7564([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d7564([0x6e,0x6f,0x77])]())[_0x4d7564([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d7564([0x2e]),'');let _0x37d5f1=_0x4d7564([0x45]);for(let _0x507d09=0x0;_0x507d09<_0x15eb2c[_0x4d7564([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x507d09+=0x2){let _0x5ebdad=window[_0x4d7564([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15eb2c[_0x4d7564([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x507d09,_0x507d09+0x2));_0x5ebdad>=_0x3fb530[_0x4d7564([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ebdad-=_0x3fb530[_0x4d7564([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x37d5f1+=_0x3fb530[_0x5ebdad];}return _0x37d5f1;}());_0x5d5b27[_0x28e39d]=_0x4d7564([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1a68c6,_0x1a68c6!=_0x4d7564([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x159c09,_0x5d5b27[_0x4d7564([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d7564([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2d9154,_0x5d5b27[_0x4d7564([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d7564([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2d9154,_0x5d5b27[_0x4d7564([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d7564([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x1afcf8);}class CaseChangeUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x24506a=this['editor'];this['_registerComponents'](),_0x24506a['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':getTranslation$g(_0x24506a['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2834c8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c3e0f;for(const _0x24cdc7 in _0x2834c8){const _0x150254=_0x24cdc7,_0x2b3af4=_0x2834c8[_0x150254];if('caseChangeLicenseKeyValid'==_0x2b3af4||'caseChangeLicenseKeyInvalid'==_0x2b3af4||'caseChangeLicenseKeyExpired'==_0x2b3af4||'caseChangeLicenseKeyDomainLimit'==_0x2b3af4||'caseChangeLicenseKeyNotAllowed'==_0x2b3af4||'caseChangeLicenseKeyEvaluationLimit'==_0x2b3af4||'caseChangeLicenseKeyTrialLimit'==_0x2b3af4||'caseChangeLicenseKeyUsageLimit'==_0x2b3af4){delete _0x2834c8[_0x150254],_0x4c3e0f=_0x2b3af4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x4c3e0f&&_0x2834c8['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x4c3e0f&&_0x2834c8['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x4c3e0f&&_0x2834c8['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x4c3e0f&&_0x2834c8['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x4c3e0f&&_0x2834c8['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyTrialLimit'==_0x4c3e0f&&_0x2834c8['_showLicenseError']('trialLimit'),'caseChangeLicenseKeyUsageLimit'==_0x4c3e0f&&_0x2834c8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x49382b=this['editor'],{itemDefinitions:_0x2d987c,commands:_0x1c8926}=this['_getListItemDefinitionsAndCommands']();_0x49382b['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x2d987c,_0x1c8926)),_0x49382b['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x2d987c,_0x1c8926));}['_createMenuBarMenuView'](_0x416116,_0x338163){const _0x168b2b=this['editor'],_0x40d405=_0x168b2b['locale'],_0xeaf36e=new MenuBarMenuView(_0x40d405),_0x313caf=new MenuBarMenuListView(_0x40d405);_0x313caf['set']({'ariaLabel':getTranslation$g(_0x40d405,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0xeaf36e['buttonView']),_0xeaf36e['bind']('isEnabled')['toMany'](_0x338163,'isEnabled',(..._0x26c9c2)=>_0x26c9c2['some'](_0x46b817=>_0x46b817));for(const _0x2af154 of _0x416116){const _0x20bc2f=new MenuBarMenuListItemView(_0x40d405,_0xeaf36e),_0x3a15a9=new MenuBarMenuListItemButtonView(_0x40d405);_0x3a15a9['delegate']('execute')['to'](_0xeaf36e),_0x3a15a9['bind'](...Object['keys'](_0x2af154['model']))['to'](_0x2af154['model']),_0x3a15a9['on']('execute',()=>{_0x168b2b['execute'](_0x2af154['model']['commandName']),_0x168b2b['editing']['view']['focus']();}),_0x20bc2f['children']['add'](_0x3a15a9),_0x313caf['items']['add'](_0x20bc2f);}return _0xeaf36e['panelView']['children']['add'](_0x313caf),_0xeaf36e;}['_createDropdownView'](_0x1f4d9,_0x40bb15){const _0x3a3d6c=this['editor'],_0x181a44=createDropdown(_0x3a3d6c['locale']);return this['_setButtonProperties'](_0x181a44['buttonView']),_0x181a44['buttonView']['set']({'tooltip':!0x0}),_0x181a44['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),addListToDropdown(_0x181a44,_0x1f4d9,{'ariaLabel':getTranslation$g(_0x3a3d6c['locale'],'Case\x20change'),'role':'menu'}),_0x181a44['bind']('isEnabled')['toMany'](_0x40bb15,'isEnabled',(..._0x3aaefd)=>_0x3aaefd['some'](_0x13a79c=>_0x13a79c)),this['listenTo'](_0x181a44,'execute',_0x3e05e8=>{_0x3a3d6c['execute'](_0x3e05e8['source']['commandName']),_0x3a3d6c['editing']['view']['focus']();}),_0x181a44;}['_setButtonProperties'](_0x233dc4){const _0x47cded=this['editor'];_0x233dc4['set']({'label':getTranslation$g(_0x47cded['locale'],'Case\x20change'),'icon':IconCaseChange,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x1ccc8e=new Collection(),_0x4e5f01=[];for(const _0x1c74da of _getOptions(this['editor']['locale'])){const _0x454a2d=this['editor']['commands']['get'](_0x1c74da['commandName']),_0x44fe44=new UIModel({'commandName':_0x1c74da['commandName'],'label':_0x1c74da['label'],'role':'menuitemradio','withText':!0x0});_0x44fe44['bind']('isEnabled')['to'](_0x454a2d,'isEnabled'),_0x1ccc8e['add']({'type':'button','model':_0x44fe44}),_0x4e5f01['push'](_0x454a2d);}return{'itemDefinitions':_0x1ccc8e,'commands':_0x4e5f01};}}class CaseChange extends Plugin{static get['requires'](){return[CaseChangeEditing,CaseChangeUI];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class CommentThreadController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['model'];['view'];constructor(_0x241e60,_0x3f5ac5){super(),this['model']=_0x241e60,this['model']['_isAttached']=!0x0,this['view']=_0x3f5ac5,this['listenTo'](_0x3f5ac5,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x3f5ac5,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x3f5ac5,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x3f5ac5,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x3f5ac5,'addComment',(_0x1a666b,_0x502ff4)=>this['addComment'](_0x502ff4)),this['listenTo'](_0x3f5ac5,'updateComment',(_0x4ad290,_0x3712ff,_0x57185d)=>this['updateComment'](_0x3712ff,_0x57185d)),this['listenTo'](_0x3f5ac5,'removeComment',(_0x5851d7,_0x25196a)=>this['removeComment'](_0x25196a));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x195ede){this['model']['addComment']({'content':_0x195ede,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0xb901c2,_0x2c1a90){this['model']['getComment'](_0xb901c2)['update']({'content':_0x2c1a90});}['removeComment'](_0x12690c){this['model']['getComment'](_0x12690c)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function getTranslation$f(_0x1fcc04,_0x28faf1,_0x1b11b3){const t=_0x1fcc04['t'];switch(_0x28faf1){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'Annotations\x20sidebar':return t('Annotations\x20sidebar');case'Annotations\x20list':return t('Annotations\x20list');case'Thread\x20comments':return t('Thread\x20comments');case'THREAD_CONTEXT_LABEL':return t({'string':'Thread\x20context:\x20%0','id':'THREAD_CONTEXT_LABEL'},_0x1b11b3);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%1\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0x1b11b3);case'COMMENT_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'COMMENT_THREAD_DESCRIPTION'});case'COMMENT_ARIA_LABEL':return t({'string':'Comment\x20by\x20%0.\x20Created\x20on\x20%1.\x20%2.\x20%3','id':'COMMENT_ARIA_LABEL'},_0x1b11b3);case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20content\x20with\x20comments.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20content\x20with\x20comments.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_COMMENT_ANNOUNCEMENT'},_0x1b11b3);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x1b11b3);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x1b11b3);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1b11b3);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1b11b3);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class CommentEditorUIView extends EditorUIView{['main'];['editable'];constructor(_0x36950c,_0x4d4563){super(_0x36950c);const _0x590861=uid();this['main']=this['createCollection'](),this['editable']=new InlineEditableUIView(_0x36950c,_0x4d4563,void 0x0,{'label':()=>getTranslation$f(_0x36950c,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x36950c['uiLanguageDirection'],'lang':_0x36950c['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x590861},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class CommentEditorUI extends EditorUI{['view'];constructor(_0x3e9b9d){super(_0x3e9b9d),this['view']=new CommentEditorUIView(_0x3e9b9d['locale'],_0x3e9b9d['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0xe63c6c=this['editor']['editing']['view'],_0x33e81d=this['view']['editable'],_0x19518d=_0xe63c6c['document']['getRoot']();_0x33e81d['name']=_0x19518d['rootName'],this['view']['render']();const _0x2433dd=_0x33e81d['element'];this['setEditableElement'](_0x33e81d['name'],_0x2433dd),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xe63c6c['attachDomRoot'](_0x2433dd),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const defaultPlugins=[Clipboard,Enter,ShiftEnter,SelectAll,Typing,Undo,Paragraph];class CommentEditor extends/* #__PURE__ -- @preserve */
ObservableMixin(Editor){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
((()=>defaultPlugins)());constructor(_0x2b11a9={}){function _0x7a726e(_0x5196fe){return _0x5196fe['map'](_0x234fcd=>String['fromCharCode'](_0x234fcd))['join']('');}(_0x2b11a9=Object['assign']({},_0x2b11a9))['plugins']||(_0x2b11a9['plugins']=CommentEditor['defaultPlugins']),super(_0x2b11a9),this['ui']=new CommentEditorUI(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x7a726e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7a726e([0x76,0x69,0x65,0x77])][_0x7a726e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7a726e([0x61,0x75,0x74,0x6f]),this[_0x7a726e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x7a726e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7a726e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x7a726e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x7a726e([0x6f,0x6b])});}['create'](){const _0x537b5f=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x537b5f))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x225020=>{const _0x5eeb3e=this['model']['document']['getRoot'](),_0x2cd453=_0x5eeb3e&&_0x5eeb3e['getChild'](_0x5eeb3e['childCount']-0x1);_0x225020['setSelection'](_0x2cd453,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x1bc545=this['editing']['view'],_0x27d467=_0x1bc545['document']['getRoot'](),_0x236f44=_0x27d467['getChild'](0x0);_0x27d467['childCount']>0x1||!_0x236f44||'p'!=_0x236f44['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(disableViewPlaceholder(_0x1bc545,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x236f44['placeholder']=this['placeholder']),enableViewPlaceholder({'view':_0x1bc545,'element':_0x236f44,'keepOnFocus':!0x0}),this['placeholderElement']=_0x236f44);}}class CommentInputView extends View{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x7d5585,_0x3af5f5={}){super(_0x7d5585),this['editor']=null,this['_editorConfig']=_0x3af5f5,this['set']('value',_0x3af5f5['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',getTranslation$f(_0x7d5585,'Reply...')),this['set']('submitLabel',getTranslation$f(_0x7d5585,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new KeystrokeHandler(),this['focusTracker']=new FocusTracker(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x47c8e3,_0x514a96)=>{this['cancelButtonView']['fire']('execute'),_0x514a96();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4752ab,_0x2dba04)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x2dba04());}),this['on']('submit',(_0xeb5ab,_0xd891be)=>{_0xd891be['length']>0xfde8?(alert(getTranslation$f(_0x7d5585,'TOO_LONG_COMMENT_ALERT',[_0xd891be['length'],0xfde8])),_0xeb5ab['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new CommentEditor(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x58ee7c=this['editor'];this['element']['insertBefore'](_0x58ee7c['ui']['element'],this['element']['firstChild']),_0x58ee7c['model']['document']['on']('change',()=>this['value']=_0x58ee7c['getData']()),_0x58ee7c['bind']('placeholder')['to'](this),this['focusables']['add'](_0x58ee7c['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x1b1b07){-0x1===_0x1b1b07?(this['focusCycler']['focusFirst'](),this['focusCycler']['focusLast']()):this['focusCycler']['focusFirst']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy'](),this['fire']('editorDestroyed',this['editor'])),await super['destroy']());}['_createSubmitButton'](){const {locale:_0x29e812}=this,_0x244594=new ButtonView(_0x29e812);return _0x244594['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x244594['withText']=!0x0,_0x244594['bind']('label')['to'](this,'submitLabel'),_0x244594['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x244594['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x2a01f8,_0x1ff220)=>!_0x1ff220&&!!_0x2a01f8['trim']()),_0x244594;}['_createCancelButton'](){const {locale:_0x12ec84}=this,_0x4aa366=new ButtonView(_0x12ec84);return _0x4aa366['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x4aa366['label']=getTranslation$f(_0x12ec84,'Cancel'),_0x4aa366['withText']=!0x0,_0x4aa366['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x4aa366;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x5664a5=>{this['focusTracker']['add'](_0x5664a5['element']);}),this['focusables']['on']('change',(_0x4d129a,_0x32caef)=>{for(const _0x5d05b9 of Array['from'](_0x32caef['added'])['reverse']())this['focusTracker']['add'](_0x5d05b9['element']);});}}class CommentThreadInputView extends View{constructor(_0x23ee65,_0x3ec79d,_0x4f6606){super(_0x23ee65),this['commentInputView']=new CommentInputView(_0x23ee65,_0x4f6606),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x1aab44,_0x4e7beb)=>_0x1aab44||!!_0x4e7beb),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this['commentInputView']['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView']['delegate']('editorReady')['to'](this),this['commentInputView']['delegate']('editorDestroyed')['to'](this),this['userView']=new UserView(_0x23ee65,_0x3ec79d),this['userView']['extendTemplate']({'attributes':{'class':'ck-thread__user','aria-hidden':!0x0}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['render'](){super['render'](),this['_focusOnNonInteractiveMouseDown']();}['destroy'](){return this['commentInputView']['destroy']()['then'](()=>super['destroy']());}['focus'](_0x8bc40c){this['commentInputView']['focus'](_0x8bc40c);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x9657b3,_0xc05c5e)=>{const {submitButtonView:_0x5c0a26,cancelButtonView:_0x5729eb,editor:_0x54220a}=this['commentInputView'];[_0x5c0a26['element'],_0x5729eb['element'],_0x54220a?_0x54220a['editing']['view']['getDomRoot']():null]['filter'](_0xd50cf0=>_0xd50cf0)['some'](_0x31e460=>_0x31e460['contains'](_0xc05c5e['target']))||(this['focus'](),_0xc05c5e['preventDefault']());});}}class CollapsedCommentsView extends View{constructor(_0x5042d1){super(_0x5042d1);const _0x5c0f6c=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x5c0f6c['to']('count',_0x318299=>getTranslation$f(_0x5042d1,'NUMBER_OF_COMMENTS',_0x318299))}]});}}class CommentsListView extends View{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x32e302,_0x458110,_0x4149be){super(_0x32e302);const _0x738407=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x458110['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x458110,this['_config']=_0x4149be,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x54730e=>this['commentViews']['map'](_0x44b716=>_0x44b716['element'])['includes'](_0x54730e['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new CollapsedCommentsView(_0x32e302),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x4251f1=>_0x4251f1-this['_config']['maxCommentsWhenCollapsed']);for(const _0x3fad62 of _0x458110['comments'])this['_handleNewCommentModel'](_0x3fad62);this['_handleInfoComment'](),this['listenTo'](_0x458110['comments'],'add',(_0x3b940c,_0x20c11a)=>{const _0x477655=this['_calculatePosition'](_0x20c11a);this['length']++,this['_handleNewCommentModel'](_0x20c11a,_0x477655),this['refreshVisibleViews']();}),this['listenTo'](_0x458110['comments'],'remove',(_0x389ce9,_0x2be512)=>{this['length']--,this['_handleRemoveCommentModel'](_0x2be512),this['refreshVisibleViews']();}),this['listenTo'](_0x458110,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x458110,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments',_0x738407['if']('length','ck-hidden',_0x31f37d=>!_0x31f37d)],'aria-label':getTranslation$f(_0x32e302,'Thread\x20comments')},'children':this['visibleViews']});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}['render'](){super['render'](),this['refreshVisibleViews'](),this['_setupKeyboardNavigation']();}['focus'](_0x186a97){-0x1===_0x186a97?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x5c2d40 of this['commentViews'])_0x5c2d40['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x47777b,_0x89eb69){const _0x497abf=new this['_config']['CommentView'](this['locale'],_0x47777b,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x497abf['viewUid']=_0x47777b['id'],_0x497abf['delegate']('removeComment')['to'](this),_0x497abf['delegate']('updateComment')['to'](this),_0x497abf['delegate']('resolveCommentThread')['to'](this),_0x497abf['delegate']('editorReady')['to'](this),_0x497abf['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x497abf,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x497abf,_0x89eb69);}['_calculatePosition'](_0x36e0cc){const _0x188dca=this['_model']['_findOptimalIndex'](_0x36e0cc);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x36e0cc['authoredAt']?_0x188dca-0x1:_0x188dca:_0x188dca-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x8d18f0={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':getTranslation$f(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x8d18f0,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x8d18f0));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x5afc50){const _0x170c1c=this['commentViews']['remove'](_0x5afc50['id']);this['stopListening'](_0x170c1c),_0x170c1c['isEditMode']&&this['_updateHasDirtyComment'](),_0x170c1c['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x32ec60=>_0x32ec60['isEditMode']);}['_rearrangeCollapse'](){const _0x5b0ffc=cloneCollection(this['commentViews']),_0x56ef90=this['_collapsedCommentsView']['count'];for(let _0xe2a7eb=0x1;_0xe2a7eb<=_0x56ef90;_0xe2a7eb++)_0x5b0ffc['remove'](0x1);for(const _0x353330 of _0x5b0ffc)_0x353330['collapse']();_0x56ef90>0x0&&_0x5b0ffc['add'](this['_collapsedCommentsView'],0x1),applyDiffToCollection(_0x141a14(Array['from'](this['visibleViews']),Array['from'](_0x5b0ffc)),this['visibleViews'],_0x5b0ffc);}['_rearrangeExpand'](){applyDiffToCollection(_0x141a14(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x18c459 of this['visibleViews'])_0x18c459['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x10ae07=>{this['focusTracker']['add'](_0x10ae07['element']),this['keystrokes']['listenTo'](_0x10ae07['element']);}),this['commentViews']['on']('change',(_0x4e2380,_0x4ae40a)=>{for(const _0x248c8d of _0x4ae40a['removed'])this['focusTracker']['remove'](_0x248c8d['element']),this['keystrokes']['stopListening'](_0x248c8d['element']);for(const _0x1abb49 of Array['from'](_0x4ae40a['added'])['reverse']())this['focusTracker']['add'](_0x1abb49['element']),this['keystrokes']['listenTo'](_0x1abb49['element']);});}}function cloneCollection(_0x25bf03){const _0x27427e=new Collection();for(const _0x5b8ed3 of _0x25bf03)_0x27427e['add'](_0x5b8ed3);return _0x27427e;}function applyDiffToCollection(_0x25dc5e,_0x2549f9,_0x2ec0b5){let _0x22a58b=0x0;for(const _0x573398 of _0x25dc5e)switch(_0x573398){case'insert':_0x2549f9['add'](_0x2ec0b5['get'](_0x22a58b),_0x22a58b),_0x22a58b++;break;case'delete':_0x2549f9['remove'](_0x22a58b);break;case'equal':_0x22a58b++;}}class CommentThreadHeaderContextView extends View{constructor(_0x14e4a0){super(_0x14e4a0);const _0x403bbe=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x403bbe['to']('contextValue',_0x252a4c=>getTranslation$f(_0x14e4a0,'THREAD_CONTEXT_LABEL',_0x252a4c)),'tabindex':-0x1},'children':[{'text':_0x403bbe['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}const MAX_CONTENT_LENGTH=0x96;class CommentThreadHeaderView extends View{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x56bbae,_0x2b1ad3){super(_0x56bbae);const _0x3122bf=this['bindTemplate'];this['_model']=_0x2b1ad3,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x3d1173=>!!_0x3d1173),this['bind']('contextValue')['to'](this['_model'],'context',_0x225e55=>_0x225e55&&_0x225e55['value']?this['_trimContextValue'](_0x225e55['value']):getTranslation$f(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x3122bf['if']('hasContext','ck-context--quotes')]},'children':[this['contextView']]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}['render'](){super['render'](),this['_attachContextActions'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_createReopenButton'](){const _0x5030c7=new ButtonView(this['locale']);return _0x5030c7['label']=getTranslation$f(this['locale'],'Reopen'),_0x5030c7['tooltip']=getTranslation$f(this['locale'],'Reopen'),_0x5030c7['icon']=IconUndo,_0x5030c7['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x7c8bee=>!_0x7c8bee),_0x5030c7['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x36bac5,_0x5de32d)=>_0x36bac5&&_0x5de32d),_0x5030c7['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x5030c7;}['_trimContextValue'](_0x398875){const _0x1b5001=MAX_CONTENT_LENGTH-0x3;if(_0x398875['length']<MAX_CONTENT_LENGTH)return _0x398875;const _0x21fa0b=_0x398875['lastIndexOf']('\x20',_0x1b5001);return _0x398875['substring'](0x0,_0x21fa0b>-0x1?_0x21fa0b:_0x1b5001)+'...';}['_attachContextActions'](){const _0x199f40=this['element']['querySelector']('.ck-context'),_0x3b3cdb=_0x199f40['querySelector']('.ck-context__value');this['listenTo'](_0x199f40,'mouseenter',()=>{_0x3b3cdb['offsetWidth']<_0x3b3cdb['scrollWidth']&&_0x199f40['classList']['add']('overlay');}),this['listenTo'](_0x199f40,'mouseleave',()=>{_0x199f40['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x3a63a4 of this['focusables'])this['focusTracker']['add'](_0x3a63a4['element']),this['keystrokes']['listenTo'](_0x3a63a4['element']);}['_createContextView'](){const _0x1e5357=new CommentThreadHeaderContextView(this['locale']);return _0x1e5357['bind']('contextValue')['to'](this),_0x1e5357;}}class BaseCommentThreadView extends View{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xaab54d,_0x5a50a0,_0x42f10a,_0x391153){super(_0xaab54d),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x5a50a0,this['_localUser']=_0x42f10a,this['_config']=_0x391153,this['commentThreadHeaderView']=new CommentThreadHeaderView(_0xaab54d,_0x5a50a0),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new AriaDescriptionView(_0xaab54d,getTranslation$f(_0xaab54d,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new CommentsListView(_0xaab54d,_0x5a50a0,Object['assign']({'CommentView':this['_config']['CommentView']},_0x391153)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['listenTo'](this,'resolveCommentThread',()=>{this['focus']();}),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x90b8eb,_0x177ca2)=>_0x90b8eb||!!_0x177ca2),this['bind']('isUnlinked')['to'](_0x5a50a0,'unlinkedAt',_0x3a2972=>!!_0x3a2972),this['bind']('ariaLabel')['to'](this,'length',_0x1237f7=>{const _0x266e14=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return getTranslation$f(this['locale'],'COMMENT_THREAD_LABEL',[_0x1237f7,_0x266e14]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2f6d09=>_0x2f6d09['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),setupThreadKeyboardNavigation(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x51ced1=new CommentThreadInputView(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4162da=_0x51ced1['commentInputView'];return _0x51ced1['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x4162da,'value',(_0x20aa6a,_0x5735de,_0x286711,_0x3eddf4,_0x57f94c)=>!!_0x57f94c||!!_0x3eddf4&&_0x286711&&!_0x5735de||_0x20aa6a&&_0x286711&&!_0x5735de),_0x4162da['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5415cd,_0x3e2ab0,_0x4e1654)=>{let _0x8a0241;return _0x8a0241=_0x4e1654&&_0x3e2ab0?'Reply\x20to\x20reopen\x20discussion...':_0x5415cd?'Reply...':'Write\x20a\x20comment...',getTranslation$f(this['locale'],_0x8a0241);}),_0x4162da['bind']('submitLabel')['to'](this,'length',_0x2f3b82=>getTranslation$f(this['locale'],_0x2f3b82?'Reply':'Comment')),_0x4162da['on']('submit',(_0x2de238,_0x3b8461)=>{this['fire']('addComment',_0x3b8461),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x4162da['on']('cancel',()=>{this['focus']();}),_0x4162da['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x4162da['on']('cancel',_0x4d0a84=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x4d0a84['stop']());}),this['on']('change:isActive',(_0x6ffe1e,_0x44620a,_0x6bc1c7)=>{_0x6bc1c7||this['length']||_0x4162da['value']||this['fire']('removeCommentThread');}),_0x51ced1;}}class CommentThreadView extends/* #__PURE__ -- @preserve */
ConfirmMixin(BaseCommentThreadView){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x3032d8,_0x2e680f,_0x4f9ac6,_0x45aea2){super(_0x3032d8,_0x2e680f,_0x4f9ac6,_0x45aea2),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x3032d8,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x275fc3,_0x3bfad7,_0x33a836)=>{_0x33a836||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x5ce699,_0x4f5525,_0x19fdc9)=>{_0x19fdc9&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x8e7db9=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x8e7db9['if']('isActive','ck-thread--active'),_0x8e7db9['if']('isUnlinked','ck-thread--unlinked'),_0x8e7db9['to']('actionIndicator',_0x330972=>_0x330972?'ck-thread--'+_0x330972:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x8e7db9['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container'),this['_model']['on']('change:archivedAt',()=>{this['_updateArchivedThreadHeader']();}),this['_updateArchivedThreadHeader']();}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x1c024b of this['commentsListView']['commentViews'])_0x1c024b['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x3474a0}=this,_0x18c16c=this['commentsListView']['commentViews']['get'](0x0);_0x18c16c===this['_boundFirstCommentView']||_0x18c16c['isSystemComment']||(this['_boundFirstCommentView']=_0x18c16c,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x18c16c,'actionIndicator',_0x2dc03f=>'remove'===_0x2dc03f?'remove':null),_0x18c16c['placeholder']=getTranslation$f(_0x3474a0,'Write\x20a\x20comment...'),_0x18c16c['removeButton']['on']('execute',_0x5855f0=>{_0x5855f0['stop'](),this['showConfirm'](getTranslation$f(_0x3474a0,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x18c16c['focus']();}),_0x18c16c['actionBar']['add'](this['resolveButton'],0x0),_0x18c16c['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x12fab7=new LateFocusButtonView(this['locale']);return _0x12fab7['label']=getTranslation$f(this['locale'],'Resolve'),_0x12fab7['tooltip']=getTranslation$f(this['locale'],'Resolve'),_0x12fab7['icon']=IconCheck,_0x12fab7['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x12fab7['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4bf473=>!_0x4bf473),_0x12fab7['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2cc98e,_0x136a08)=>_0x2cc98e&&!_0x136a08),_0x12fab7['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x12fab7;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class CommentContentView extends View{constructor(_0x179980){super(_0x179980),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x8bfdad,_0x398a19,_0x1f200b)=>{this['element']['innerHTML']=_0x1f200b;}),this['element']['innerHTML']=this['content'];}}class BaseCommentView extends View{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3ea650,_0x58e407,_0x1edc35){super(_0x3ea650),this['_model']=_0x58e407,this['_config']=_0x1edc35,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x58e407,'content',_0x58e407,'authoredAt',(_0x1fa5b8,_0x325ae2)=>getTranslation$f(_0x3ea650,'COMMENT_ARIA_LABEL',[_0x58e407['author']['name'],_0x1edc35['formatDateTime'](_0x325ae2),new DOMParser()['parseFromString'](_0x1fa5b8,'text/html')['body']['textContent'],_0x58e407['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new AriaDescriptionView(_0x3ea650,getTranslation$f(_0x3ea650,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new ViewCollection(),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5856a6=>_0x5856a6['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?getTranslation$f(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):getTranslation$f(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?getTranslation$f(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):getTranslation$f(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x5c6fbb=new CommentContentView(this['locale']);return _0x5c6fbb['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x365e7a,_0x2b702f)=>_0x2b702f?trimHtml(_0x365e7a,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x365e7a),_0x5c6fbb;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x3e2c35=new CommentInputView(this['locale'],this['_config']['editorConfig']);return _0x3e2c35['value']=this['_model']['content'],_0x3e2c35['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x3e2c35['submitLabel']=getTranslation$f(this['locale'],'Save'),_0x3e2c35['on']('submit',(_0x234394,_0x14a107)=>{this['fire']('updateComment',this['_model']['id'],_0x14a107),this['switchToDisplayMode'](),this['focus']();}),_0x3e2c35['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x3e2c35['once']('editorReady',()=>{_0x3e2c35['focus']();}),_0x3e2c35['createEditor'](),_0x3e2c35['delegate']('editorReady')['to'](this),_0x3e2c35['delegate']('editorDestroyed')['to'](this),_0x3e2c35;}['_setupKeyboardNavigation'](){const _0x43f02d=this['element'];this['keystrokes']['listenTo'](_0x43f02d);for(const _0x50b4dc of this['focusables'])this['focusTracker']['add'](_0x50b4dc['element']),this['keystrokes']['listenTo'](_0x50b4dc['element']);this['focusables']['on']('change',(_0x4d9670,_0x226725)=>{for(const _0x1258de of _0x226725['removed'])this['focusTracker']['remove'](_0x1258de['element']),this['keystrokes']['stopListening'](_0x1258de['element']);for(const _0x33a7ad of _0x226725['added'])this['focusTracker']['add'](_0x33a7ad['element']),this['keystrokes']['listenTo'](_0x33a7ad['element']);}),this['keystrokes']['set']('enter',(_0x12e62d,_0x25190d)=>{_0x43f02d===_0x12e62d['target']&&(this['focusCycler']['focusFirst'](),_0x25190d());}),this['keystrokes']['set']('esc',(_0x2b433b,_0x1b515c)=>{_0x43f02d!==_0x2b433b['target']&&(this['focus'](),_0x1b515c());});}}class CommentView extends/* #__PURE__ -- @preserve */
ConfirmMixin(BaseCommentView){['actionBar'];['userView'];constructor(_0xd4f7a2,_0x37387c,_0x1d196e){super(_0xd4f7a2,_0x37387c,_0x1d196e),this['set']('actionIndicator',null),this['set']('placeholder',getTranslation$f(_0xd4f7a2,'Reply...')),this['bind']('authoredAt')['to'](_0x37387c),this['bind']('resolvedAt')['to'](_0x37387c),this['actionBar']=this['createCollection'](),this['isSystemComment']||(this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this['createCollection'](),this['items']['addMany']([this['editButton'],this['removeButton']]),this['dropdown']=this['_createDropdown'](),this['actionBar']['add'](this['dropdown']),this['focusables']['add'](this['dropdown'])),this['userView']=new UserView(_0xd4f7a2,_0x37387c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x37387c,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x24f94b=this['bindTemplate'],_0x50370e=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x24f94b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x24f94b['to']('authoredAt',_0x49c4e6=>this['_config']['formatDateTime'](_0x49c4e6))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x24f94b['if']('isEditMode','ck-comment__actions--hidden'),_0x24f94b['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']},this['ariaDescriptionView']];return this['_model']['isExternal']&&_0x50370e['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x24f94b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x24f94b['if']('isEditMode','ck-comment--edit'),_0x24f94b['if']('isSystemComment','ck-comment--info'),_0x24f94b['to']('actionIndicator',_0x3d4603=>_0x3d4603?'ck-comment--'+_0x3d4603:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id'],'role':'group'},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x50370e}]}]};}['_createEditButton'](){const _0xb0ecef=new ButtonView(this['locale']);return _0xb0ecef['label']=getTranslation$f(this['locale'],'Edit'),_0xb0ecef['icon']=IconPencil,_0xb0ecef['withText']=!0x0,_0xb0ecef['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0xb0ecef['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x16a2d3=>!_0x16a2d3),_0xb0ecef['bind']('isVisible')['to'](this['_model'],'isEditable'),_0xb0ecef['on']('execute',()=>this['switchToEditMode']()),_0xb0ecef;}['_createRemoveButton'](){const _0x45ec7a=new ButtonView(this['locale']);return _0x45ec7a['label']=getTranslation$f(this['locale'],'Remove'),_0x45ec7a['icon']=IconRemoveComment,_0x45ec7a['withText']=!0x0,_0x45ec7a['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x45ec7a['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x28e04f=>!_0x28e04f),_0x45ec7a['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x45ec7a['on']('execute',()=>{this['showConfirm'](getTranslation$f(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x45ec7a;}['_createDropdown'](){const _0x45846b=createDropdown(this['locale'],LateFocusDropdownButtonView),_0x46aef4=_0x45846b['panelView']['children'],_0xf95a67=new ListView(this['locale']),_0x3660a6=_0x45846b['bindTemplate'];focusChildOnDropdownOpen(_0x45846b,()=>this['items']['find'](_0x3939c7=>_0x3939c7['isVisible'])),_0x45846b['extendTemplate']({'attributes':{'class':[_0x3660a6['if']('isVisible','ck-hidden',_0x25d32b=>!_0x25d32b)]}});const _0xa762cd=(_0x41e36,_0xae2bf0=-0x1)=>{const _0x24461a=new ListItemView(this['locale']);_0x24461a['children']['add'](_0x41e36);const _0x3cced1=_0xae2bf0>-0x1?_0xae2bf0:_0xf95a67['items']['length'];_0xf95a67['items']['add'](_0x24461a,_0x3cced1);const _0x18de6a=Array['from'](this['items']);_0x45846b['unbind']('isEnabled','isVisible'),_0x45846b['bind']('isEnabled')['toMany'](_0x18de6a,'isEnabled',(..._0x544c5e)=>_0x544c5e['some'](_0x12b55d=>_0x12b55d)),_0x45846b['bind']('isVisible')['toMany'](_0x18de6a,'isVisible',(..._0x3b2ff8)=>_0x3b2ff8['some'](_0xb2a489=>_0xb2a489));};_0x45846b['panelPosition']='sw',_0x45846b['buttonView']['set']({'label':getTranslation$f(this['locale'],'Show\x20more\x20items'),'icon':IconThreeVerticalDots});for(const _0x233b06 of this['items'])_0xa762cd(_0x233b06);return _0x46aef4['add'](_0xf95a67),_0x45846b['listenTo'](this['items'],'add',(_0x3b09f2,_0x12e1b1,_0x4d772b)=>{_0xa762cd(_0x12e1b1,_0x4d772b);}),_0x45846b['listenTo'](this['items'],'remove',(_0x19f949,_0x19b056,_0x36c106)=>{_0xf95a67['items']['remove'](_0x36c106);}),_0x45846b;}['_attachActions'](_0x13164f,_0x411790){const _0x3d4124=_0x13164f&&_0x13164f['element'];_0x3d4124&&(this['listenTo'](_0x3d4124,'mouseenter',()=>this['actionIndicator']=_0x411790),this['listenTo'](_0x3d4124,'focus',()=>this['actionIndicator']=_0x411790),this['listenTo'](_0x3d4124,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x3d4124,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x371662=super['_createCommentInputView']();return _0x371662['bind']('placeholder')['to'](this),_0x371662;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function createMutationObserver(_0x1daaec){const _0x561eaf=throttle$1(_0x1daaec,0x1e),_0x57b3c1=new MutationObserver(_0x30f770=>{for(const _0x5c3839 of _0x30f770)('attributes'==_0x5c3839['type']&&'class'==_0x5c3839['attributeName']||'childList'==_0x5c3839['type']||'characterData'==_0x5c3839['type'])&&_0x561eaf();});return{'attach'(_0x44354c){_0x57b3c1['observe'](_0x44354c,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x57b3c1['disconnect'](),_0x561eaf['cancel']();}};}class AnnotationView extends View{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x34e299,_0x5b444c){super(_0x34e299),this['id']=uid(),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['keystrokes']['set']('Esc',(_0x2b644b,_0x5d045d)=>this['fire']('Esc',_0x5d045d)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=createMutationObserver(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x5b444c),this['mainView']=_0x5b444c;const _0x139f3e=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x139f3e['if']('isActive','ck-annotation-wrapper--active')],'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this['_mutationObserver']['attach'](this['element']);}['destroy'](){this['content']['clear'](),this['keystrokes']['destroy'](),this['focusTracker']['destroy'](),this['_mutationObserver']['detach'](),super['destroy']();}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['_updateHeight'](){const _0x127e11=this['element']['clientHeight'];_0x127e11&&(this['height']=_0x127e11);}}let Annotation$1=class e extends/* #__PURE__ -- @preserve */
ObservableMixin(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x2f5d5e,target:_0x2facbe,type:_0x2d7220,isVisible:_0x2f2339=!0x0}){super(),this['view']=_0x2f5d5e,this['view']['element']||this['view']['render'](),this['_type']=_0x2d7220,this['_target']=_0x2facbe,e['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new Collection([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x4b5d40,_0x49ea20)=>{this['view']['focusTracker']['add'](_0x49ea20);}),this['focusableElements']['on']('remove',(_0x16535f,_0x96db09)=>{this['view']['focusTracker']['remove'](_0x96db09);}),this['set']('isVisible',_0x2f2339);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x1f7ab2=this['_getNormalizedTarget']();return e['_assertCorrectTarget'](_0x1f7ab2),_0x1f7ab2;}get['targetRect'](){const _0x54d242=this['target'];if(null===_0x54d242)return null;if(_0x54d242 instanceof Rect)return _0x54d242;const _0x7292d2=_0x54d242['filter'](_0x1f814c=>isDomElementVisible(_0x1f814c));return 0x0===_0x7292d2['length']?null:new Rect(_0x7292d2[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x1eb9a5){this['view']['isActive']=_0x1eb9a5,this['view']['mainView']['isActive']=_0x1eb9a5;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x382cb9){if(!(null===_0x382cb9||_0x382cb9 instanceof Rect||Array['isArray'](_0x382cb9)&&_0x382cb9['every'](_0x572d51=>isElement$1(_0x572d51))))throw new CKEditorError('annotation-invalid-target',null,{'target':_0x382cb9});}['_getNormalizedTarget'](){const _0x2ad8b5='function'==typeof this['_target']?this['_target']():this['_target'];return isElement$1(_0x2ad8b5)?[_0x2ad8b5]:_0x2ad8b5;}};function isElement$1(_0x325abd){return null!==_0x325abd&&'object'==typeof _0x325abd&&'nodeType'in _0x325abd&&0x1===_0x325abd['nodeType'];}function isDomElementVisible(_0x249db6){if(_0x249db6['offsetParent'])return!0x0;return!!_0x249db6['getClientRects']()['item'](0x0);}class AnnotationCollection extends Collection{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x21e477=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new FocusTracker(),this['_focusTracker']['on']('change:isFocused',(_0x6e3c65,_0x11c2e4,_0x599593)=>{_0x599593||this['fire']('blur');});for(const _0x2ed9b8 of _0x21e477)this['add'](_0x2ed9b8);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x587706){if(this['has'](_0x587706))throw new CKEditorError('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x587706['innerView'],_0x587706),this['_viewToAnnotation']['set'](_0x587706['view'],_0x587706);for(const _0x422733 of _0x587706['focusableElements'])this['_focusTracker']['add'](_0x422733);this['listenTo'](_0x587706['focusableElements'],'add',(_0x109559,_0x288684)=>{this['_focusTracker']['add'](_0x288684);}),this['listenTo'](_0x587706['focusableElements'],'remove',(_0x455475,_0x5b5fde)=>{this['_focusTracker']['remove'](_0x5b5fde);}),this['listenTo'](_0x587706['view']['focusTracker'],'change:isFocused',(_0x22ddbb,_0x11ff41,_0x480d09)=>{_0x480d09&&this['fire']('focus',_0x587706);}),_0x587706['updateTargetRect']();const _0x425f44=this['_getOrderInContent'](_0x587706['view']['targetRect']);return super['add'](_0x587706,_0x425f44);}['remove'](_0x510f76){if(!this['has'](_0x510f76))throw new CKEditorError('annotationcollection-not-existing-item',null);this['stopListening'](_0x510f76['view']['focusTracker']),this['stopListening'](_0x510f76['focusableElements']);for(const _0x2af349 of _0x510f76['focusableElements'])this['_focusTracker']['remove'](_0x2af349);return this['_viewToAnnotation']['delete'](_0x510f76['view']),this['_innerViewToAnnotation']['delete'](_0x510f76['innerView']),super['remove'](_0x510f76);}['getByInnerView'](_0x2cced4){return this['_innerViewToAnnotation']['get'](_0x2cced4);}['getByView'](_0x196f20){return this['_viewToAnnotation']['get'](_0x196f20);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x2f8975 of this)_0x2f8975['updateTargetRect']();this['_sort']();}['_sort'](){const _0x238e5a=Array['from'](this)['sort']((_0x146df6,_0x15bde9)=>elementOffsetComparator(_0x146df6['view']['targetRect'],_0x15bde9['view']['targetRect']));for(let _0x33ae42=_0x238e5a['length']-0x1;_0x33ae42>0x0;_0x33ae42--){const _0x203d71=_0x238e5a[_0x33ae42];_0x33ae42!==this['getIndex'](_0x203d71)&&(this['remove'](_0x203d71),this['add'](_0x203d71));}}['_getOrderInContent'](_0x18334b){let _0x2098ee=0x0;if(!_0x18334b)return this['length'];for(const _0x3e6257 of this){const _0x439491=_0x3e6257['view']['targetRect'];if(_0x439491){if(elementOffsetComparator(_0x18334b,_0x439491)<0x0)return _0x2098ee;_0x2098ee++;}}return _0x2098ee;}}function bindAnnotationCollections({source:_0x326de1,target:_0x1f77cf,filter:_0x54d149}){for(const _0x50c198 of _0x326de1)_0x54d149(_0x50c198)&&_0x1f77cf['add'](_0x50c198);_0x1f77cf['listenTo'](_0x326de1,'add',(_0x209c5e,_0x16131a)=>{_0x54d149(_0x16131a)&&_0x1f77cf['add'](_0x16131a);}),_0x1f77cf['listenTo'](_0x326de1,'remove',(_0x2e0a6c,_0x5435be)=>{_0x1f77cf['has'](_0x5435be)&&_0x1f77cf['remove'](_0x5435be);});}function elementOffsetComparator(_0x540784,_0x1d9a62){if(null===_0x540784&&null===_0x1d9a62)return 0x0;if(null===_0x540784)return-0x1;if(null===_0x1d9a62)return 0x1;const _0x5cb661=_0x540784['top']-_0x1d9a62['top'];return 0x0==_0x5cb661?_0x540784['left']-_0x1d9a62['left']:_0x5cb661;}class Annotations extends ContextPlugin{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f2411){if(super(_0x3f2411),this['collection']=new AnnotationCollection(),this['_visibleAnnotations']=new AnnotationCollection(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x3f2411 instanceof Editor){const _0x473515=_0x3f2411['locale'];_0x3f2411['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':getTranslation$f(_0x473515,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':getTranslation$f(_0x473515,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':getTranslation$f(_0x473515,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':getTranslation$f(_0x473515,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':getTranslation$f(_0x473515,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':getTranslation$f(_0x473515,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':getTranslation$f(_0x473515,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x48f098){this['collection']['add'](_0x48f098);}['remove'](_0x3c2eb0){this['collection']['remove'](_0x3c2eb0),_0x3c2eb0['destroy']();}['refreshVisibility'](){for(const _0x2a89db of this['collection'])_0x2a89db['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x31351a){return this['collection']['getByInnerView'](_0x31351a);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x3cfcd8 of this['collection'])_0x3cfcd8['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x1af65a){this['fire']('_activateAnnotation',_0x1af65a);}['createAnnotation'](_0x13847c){return new Annotation$1(_0x13847c);}['createAnnotationView'](_0x4e2d04,_0x9e47f8){return new AnnotationView(_0x4e2d04,_0x9e47f8);}['_addActiveAnnotation'](_0x44db60){const _0x4a0e0b=new Set(this['activeAnnotations']);_0x4a0e0b['add'](_0x44db60),this['activeAnnotations']=_0x4a0e0b;}['_removeActiveAnnotation'](_0x307a31){const _0x17a347=new Set(this['activeAnnotations']);_0x17a347['delete'](_0x307a31),this['activeAnnotations']=_0x17a347;}['_bindAnnotationsToVisibleAnnotations'](){const _0x4b588d=this['collection'],_0x49a338=this['_visibleAnnotations'];function _0x2d4d32(_0x37695c){const _0x417394=_0x37695c['source'];_0x417394['isVisible']&&!_0x49a338['has'](_0x417394)?_0x49a338['add'](_0x417394):!_0x417394['isVisible']&&_0x49a338['has'](_0x417394)&&_0x49a338['remove'](_0x417394),_0x417394['view']['focusTracker']['remove'](_0x417394['view']['element']),_0x417394['view']['focusTracker']['add'](_0x417394['view']['element']);}this['listenTo'](_0x4b588d,'add',(_0x4fa84e,_0x46ec13)=>{_0x46ec13['isVisible']&&_0x49a338['add'](_0x46ec13),this['listenTo'](_0x46ec13,'change:isVisible',_0x2d4d32);}),this['listenTo'](_0x4b588d,'remove',(_0x393513,_0x561588)=>{_0x49a338['has'](_0x561588)&&_0x49a338['remove'](_0x561588),this['stopListening'](_0x561588,'change:isVisible',_0x2d4d32);});}['_setupEnterAnnotationKeystroke'](){const _0x1df2ed=_0x2205b6=>{_0x2205b6['on']('ready',()=>{_0x2205b6['keystrokes']['set'](FOCUS_ANNOTATION_KEYSTROKE,(_0xcd7652,_0x350055)=>{const _0x490d06=first(this['activeAnnotations']['values']());_0x490d06&&(_0x490d06['view']['focus'](),_0x350055());});});};this['context']instanceof Editor?_0x1df2ed(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x32e5f7,_0x59774f)=>{_0x1df2ed(_0x59774f);});}['_setupEscapeAnnotationHandling'](){const _0x49a4c4=_0xdbd5dd=>{const _0x39765c=_0xdbd5dd['source'],_0x2fc3f9=[];let _0x316e6a;if(Array['isArray'](_0x39765c['target'])){_0x316e6a=_0x39765c['target'][0x0],this['context']instanceof Editor?_0x2fc3f9['push'](this['context']):this['context']['editors']&&_0x2fc3f9['push'](...this['context']['editors']);for(const _0x166e41 of _0x2fc3f9)for(const _0x28369c of _0x166e41['editing']['view']['domRoots']['values']())if(_0x28369c['contains'](_0x316e6a))return void _0x166e41['editing']['view']['focus']();_0x316e6a['focus']();}};this['listenTo'](this['collection'],'add',(_0x2837e8,_0xa3c78c)=>{this['listenTo'](_0xa3c78c,'escape',_0x49a4c4,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x5b973f,_0x33efee)=>{this['stopListening'](_0x33efee,'escape',_0x49a4c4);});}}const noChannel=Symbol('noChannel'),defaultPermissions={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class CommentsRepository extends ContextPlugin{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[Annotations,PendingActions,Users];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1c7f70){super(_0x1c7f70),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x12eaef=this['context']['config'];_0x12eaef['define']('comments.maxCommentsWhenCollapsed',0x2),_0x12eaef['define']('comments.maxThreadTotalWeight',0x1f4),_0x12eaef['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x12eaef['define']('comments.CommentThreadView',CommentThreadView),_0x12eaef['define']('comments.CommentView',CommentView),_0x12eaef['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x52ff1c=this['context']['plugins']['get'](Annotations);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x4b3c8b,_0xefe667)=>this['_addCommentThread'](_0xefe667)),this['on']('submitCommentThread',(_0x1a2d25,_0x110853)=>this['_submitCommentThread'](_0x110853)),this['on']('resolveCommentThread',(_0x385056,_0x3a3627)=>this['_resolveCommentThread'](_0x3a3627)),this['on']('resolveCommentThread',(_0x3fe77a,_0x322fd5)=>this['_updateActiveAnnotation'](_0x322fd5),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x3aeb25,_0x3ee668)=>this['_reopenCommentThread'](_0x3ee668)),this['on']('reopenCommentThread',(_0x76ea06,_0x37a83f)=>this['_updateActiveAnnotation'](_0x37a83f),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x4c706a,_0x257ec5)=>this['_removeCommentThread'](_0x257ec5)),this['on']('updateCommentThread',(_0x2d0ba1,_0x486cd4)=>this['_updateCommentThread'](_0x486cd4)),this['on']('updateCommentThread',(_0x2c2ea9,_0x493876)=>this['_updateActiveAnnotation'](_0x493876),{'priority':'lowest'}),this['on']('addComment',(_0x2d89ac,_0x3784ff)=>this['_addComment'](_0x3784ff)),this['on']('updateComment',(_0x1c483b,_0x3bcb17)=>this['_updateComment'](_0x3bcb17)),this['on']('removeComment',(_0xa4685c,_0x56dc79)=>this['_removeComment'](_0x56dc79)),this['on']('addComment',(_0x3b0377,{threadId:_0x4c32fd,isFromAdapter:_0x41fc37})=>{if(_0x41fc37)return;const _0x3be161=this['getCommentThread'](_0x4c32fd),_0x1970c6=_0x3be161&&this['_threadToController']['get'](_0x3be161);_0x1970c6&&_0x1970c6['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x52ff1c,'change:activeAnnotations',(_0x5cc518,_0x788762,_0x3b00c8)=>{const _0x54e9ce=Array['from'](_0x3b00c8)['map'](_0x1e2dcc=>this['_viewToController']['get'](_0x1e2dcc['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x54e9ce?_0x54e9ce['model']:null;});}set['adapter'](_0x380a69){if(this['_adapter'])throw new CKEditorError('commentsrepository-adapter-already-set');this['_adapter']=_0x380a69;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x4ec01a=noChannel,threadId:_0x4553b6=uid(),comments:_0x18fa44=[],unlinkedAt:_0x250c60=null,resolvedAt:_0x477e88=null,resolvedBy:_0x45570c=null,target:_0x57977b=null,context:_0x1ac4b6=null,attributes:_0x90db8e={},isResolvable:_0x4b3b58=!0x0,isSubmitted:_0x2cb3ea=!0x1,isFromAdapter:_0x432257=!0x1}={}){return this['fire'](toEventName('addCommentThread',_0x4ec01a),{'channelId':_0x4ec01a,'threadId':_0x4553b6,'comments':_0x18fa44,'unlinkedAt':_0x250c60,'resolvedAt':_0x477e88,'resolvedBy':_0x45570c,'target':_0x57977b,'context':_0x1ac4b6,'attributes':_0x90db8e,'isFromAdapter':_0x432257,'isResolvable':_0x4b3b58,'isSubmitted':_0x2cb3ea}),this['getCommentThread'](_0x4553b6);}['openNewCommentThread']({channelId:_0x1afd7b=noChannel,threadId:_0x141fb7=uid(),target:_0x59072c,context:_0x16e78f=null,isResolvable:_0x322216=!0x0}){if(this['_readOnlyChannels']['has'](_0x1afd7b)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x59072c)throw new CKEditorError('commentsrepository-missing-target');const _0x33a817=this['addCommentThread']({'channelId':_0x1afd7b,'threadId':_0x141fb7,'target':_0x59072c,'context':_0x16e78f,'isResolvable':_0x322216});if(!_0x33a817)return null;const _0x2d0aff=this['_threadToController']['get'](_0x33a817),_0x1bd760=_0x2d0aff['view']['commentThreadInputView']['commentInputView'],_0x2dde43=this['context']['plugins']['get'](Annotations),_0x27d3f9=_0x2dde43['getByInnerView'](_0x2d0aff['view']);return _0x2dde43['activate'](_0x27d3f9),_0x1bd760['once']('editorReady',()=>_0x1bd760['focus']()),_0x33a817;}['hasCommentThread'](_0x475a77){if('string'!=typeof _0x475a77)throw new CKEditorError('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x475a77);}['updateCommentThread']({channelId:_0x3d2bb9=noChannel,threadId:_0x50d97d,context:_0x4a7ca4,unlinkedAt:_0x4e70c8,attributes:_0x1dc0df,isFromAdapter:_0x1716cd=!0x1}){return this['fire'](toEventName('updateCommentThread',_0x3d2bb9),{'channelId':_0x3d2bb9,'threadId':_0x50d97d,'context':_0x4a7ca4,'unlinkedAt':_0x4e70c8,'attributes':_0x1dc0df,'isFromAdapter':_0x1716cd}),this['getCommentThread'](_0x50d97d);}['getCommentThread'](_0x54f0f8){if('string'!=typeof _0x54f0f8)throw new CKEditorError('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x54f0f8);}['fetchCommentThread']({channelId:_0x25c05f,threadId:_0x337815}={}){const _0x340fee=this['getCommentThread'](_0x337815);if(_0x340fee)return Promise['resolve'](_0x340fee);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new CKEditorError('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x25c05f,'threadId':_0x337815})['then'](_0x408700=>this['hasCommentThread'](_0x337815)?this['getCommentThread'](_0x337815):_0x408700?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x25c05f},_0x408700)):void 0x0)['catch'](_0x14c2cd=>{throw console['error'](_0x14c2cd),new CKEditorError('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x35d8a8,skipNotAttached:_0x418f6f=!0x1,skipEmpty:_0x523ec9=!0x1,toJSON:_0x554cfa=!0x1}={}){const _0x1e217a=[];for(const _0x613bb3 of this['_threads']['values']())_0x35d8a8&&_0x613bb3['channelId']!==_0x35d8a8||_0x418f6f&&!_0x613bb3['isAttached']||_0x523ec9&&0x0===_0x613bb3['length']||_0x1e217a['push'](_0x613bb3);return _0x554cfa?_0x1e217a['map'](_0x5b95d3=>_0x5b95d3['toJSON']()):_0x1e217a;}['getAnnotationForCommentThread'](_0x15a64c){const _0x41f105=this['_threadToController']['get'](_0x15a64c);if(!_0x41f105)return null;return this['context']['plugins']['get'](Annotations)['getByInnerView'](_0x41f105['view'])||null;}['getCommentThreadForAnnotation'](_0x4b75a7){const _0x56c3ce=this['_viewToController']['get'](_0x4b75a7['innerView']);return _0x56c3ce?_0x56c3ce['model']:null;}['setActiveCommentThread'](_0x38bfed){const _0x5e4ca2=this['context']['plugins']['get'](Annotations);if(!_0x38bfed)return void(this['activeCommentThread']&&_0x5e4ca2['deactivateAll']());const _0x2b69a=this['getCommentThread'](_0x38bfed);if(!_0x2b69a)throw new CKEditorError('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x38bfed});if(!this['_threadToController']['has'](_0x2b69a))throw new CKEditorError('commentsrepository-active-not-attached',null,{'threadId':_0x38bfed});const _0x153f5c=_0x5e4ca2['getByInnerView'](this['_threadToController']['get'](_0x2b69a)['view']);_0x5e4ca2['activate'](_0x153f5c);}['switchReadOnly'](_0x314919,_0x466a46){_0x314919?this['_readOnlyChannels']['add'](_0x466a46):this['_readOnlyChannels']['delete'](_0x466a46),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x102a81){return this['_readOnlyChannels']['has'](_0x102a81)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x1354b4,_0x527ebd){return new CommentThreadController(_0x1354b4,_0x527ebd);}['setPermissions'](_0x482871,_0x5540be=noChannel){this['_permissions']['set'](_0x5540be,_0x482871),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x2c806c=noChannel){return this['_permissions']['has'](_0x2c806c)?this['_permissions']['get'](_0x2c806c):defaultPermissions;}['_addCommentThread']({channelId:_0x29ff57,threadId:_0x13af38,comments:_0x55ea0d,unlinkedAt:_0x33724a,resolvedAt:_0x7b628f,resolvedBy:_0x1e7b38,target:_0x2b1872,context:_0x4d819e,attributes:_0x4a13ca,isFromAdapter:_0x138301,isResolvable:_0x277aeb,isSubmitted:_0x296336}){if('string'!=typeof _0x13af38)throw new CKEditorError('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x13af38});if(this['hasCommentThread'](_0x13af38))throw new CKEditorError('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x13af38});const _0x2883f9=new CommentThread(this,{'channelId':_0x29ff57,'id':_0x13af38,'context':_0x4d819e,'attributes':_0x4a13ca,'unlinkedAt':_0x33724a,'resolvedAt':_0x7b628f,'resolvedBy':_0x1e7b38?this['context']['plugins']['get'](Users)['getUser'](_0x1e7b38):null,'isResolvable':_0x277aeb,'isSubmitted':_0x296336||_0x138301});this['_threads']['set'](_0x13af38,_0x2883f9);for(const _0x3f18d8 of _0x55ea0d)_0x2883f9['_add'](this['_createNewComment']({'threadId':_0x13af38,..._0x3f18d8}));return _0x2b1872&&_0x2883f9['attachTo'](_0x2b1872),_0x138301||!_0x2883f9['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x29ff57,'threadId':_0x13af38});}['_submitCommentThread']({channelId:_0x3a6071,threadId:_0x1abc43}){if(!this['hasCommentThread'](_0x1abc43))throw new CKEditorError('commentsrepository-missing-comment-thread',this);const _0x5c3de2=this['getCommentThread'](_0x1abc43);if(_0x5c3de2['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x1e5105,comments:_0x43c688,resolvedAt:_0x459eb0,resolvedBy:_0x19a79f,context:_0x5e7c15,attributes:_0x172bab}=_0x5c3de2,_0x3d74af=this['context']['plugins']['get']('PendingActions'),_0x26fa4b=_0x3d74af['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x3a6071,'threadId':_0x1e5105,'comments':_0x43c688['map'](_0x3e2d4b=>_0x3e2d4b['toJSON']()),'resolvedAt':_0x459eb0,'resolvedBy':_0x19a79f?_0x19a79f['id']:_0x19a79f,'context':_0x5e7c15,'attributes':_0x172bab})['then'](({comments:_0x1a568d})=>{_0x3d74af['remove'](_0x26fa4b);for(const _0x2308c5 of _0x1a568d)this['_updateComment']({'channelId':_0x3a6071,'threadId':_0x1abc43,'commentId':_0x2308c5['commentId'],'createdAt':_0x2308c5['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4df98a=>{throw console['error'](_0x4df98a),new CKEditorError('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x373a5c,target:_0xde5041}){const _0x1db3eb=this['getCommentThread'](_0x373a5c);if(!_0x1db3eb)throw new CKEditorError('commentsrepository-attach-missing-comment-thread',this);const _0x1c8762=this['context']['plugins']['get']('PendingActions'),_0x1c1c42=this['context']['plugins']['get'](Annotations),_0x42de5a=this['_createCommentThreadView'](_0x1db3eb),_0x23028a=new CommentThreadController(_0x1db3eb,_0x42de5a);let _0x5b3867=null;_0x42de5a['on']('change:isDirty',(_0x353669,_0x258bca,_0x35e7d3)=>{_0x35e7d3?_0x5b3867=_0x1c8762['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x5b3867&&(_0x1c8762['remove'](_0x5b3867),_0x5b3867=null);}),this['_threadToController']['set'](_0x1db3eb,_0x23028a),this['_viewToController']['set'](_0x42de5a,_0x23028a);const _0x2119f5=new AnnotationView(this['context']['locale'],_0x42de5a);_0x2119f5['bind']('length')['to'](_0x42de5a),_0x2119f5['bind']('isDirty')['to'](_0x42de5a,'isDirty',_0x42de5a,'length',(_0x1e16db,_0x4c7942)=>_0x1e16db||!_0x4c7942),_0x2119f5['bind']('isActive')['to'](_0x42de5a),_0x2119f5['type']='comment';const _0x146e3b=new Annotation$1({'view':_0x2119f5,'target':_0xde5041,'type':'comment','isVisible':!_0x1db3eb['archivedAt']&&!!('function'==typeof _0xde5041?_0xde5041():_0xde5041)});return _0x42de5a['on']('escape',()=>{_0x146e3b['fire']('escape');}),this['_bindAnnotationToEditors'](_0x42de5a,_0x146e3b),_0x1c1c42['add'](_0x146e3b),_0x146e3b;}['_bindAnnotationToEditors'](_0x1b037c,_0x37b207){this['listenTo'](_0x1b037c,'editorReady',(_0x110a09,_0xa7067e)=>{const _0x55047b=_0xa7067e['ui']['view']['body']['bodyCollectionContainer'];_0x37b207['focusableElements']['add'](_0x55047b),this['context']instanceof Editor&&this['context']['ui']['focusTracker']['add'](_0x55047b);},{'priority':'highest'}),this['listenTo'](_0x1b037c,'editorDestroyed',(_0x53dbf7,_0x1326bf)=>{const _0xa8e536=_0x1326bf['ui']['view']['body']['bodyCollectionContainer'];_0x37b207['focusableElements']['has'](_0xa8e536)&&_0x37b207['focusableElements']['remove'](_0xa8e536),this['context']instanceof Editor&&this['context']['ui']['focusTracker']['remove'](_0xa8e536);});}['_unbindEditors'](_0x5f2d63){this['stopListening'](_0x5f2d63,'editorReady'),this['stopListening'](_0x5f2d63,'editorDestroyed');}['_createCommentThreadView'](_0x31c759){const _0x190700=this['context']['plugins']['get'](Users),{config:_0x45f477,locale:_0x5713b4}=this['context'],_0x11d3cf=getDateTimeFormatter(_0x45f477['get']('locale'),_0x5713b4);return new(0x0,(_0x45f477['get']('comments'))['CommentThreadView'])(_0x5713b4,_0x31c759,_0x190700['me'],{'editorConfig':{..._0x45f477['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x45f477['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x45f477['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x45f477['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x45f477['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x11d3cf,'CommentView':_0x45f477['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x46c54c,channelId:_0x40cd4a,resolvedAt:_0x21a2ce,resolvedBy:_0x1b82d4,isFromAdapter:_0x254c53}){if(!this['hasCommentThread'](_0x46c54c))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x46c54c});const _0x92b8b6=this['getCommentThread'](_0x46c54c);if(_0x92b8b6['isResolved'])throw new CKEditorError('commentsrepository-resolved-comment-thread',null,{'threadId':_0x46c54c});const _0xe0d496=this['context']['plugins']['get'](Users);if(_0x92b8b6['resolvedBy']=_0xe0d496['getUser'](_0x1b82d4),_0x92b8b6['resolvedAt']=_0x21a2ce,_0x254c53||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x19cc5f=this['context']['plugins']['get']('PendingActions'),_0x543778=_0x19cc5f['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x40cd4a,'threadId':_0x46c54c})['then'](({resolvedAt:_0x22cd0d,resolvedBy:_0x18b073})=>{_0x19cc5f['remove'](_0x543778),_0x92b8b6['resolvedBy']['id']!==_0x18b073&&(_0x92b8b6['resolvedBy']=_0xe0d496['getUser'](_0x18b073)),_0x92b8b6['resolvedAt']=_0x22cd0d;})['catch'](_0x3f365a=>{throw console['error'](_0x3f365a),new CKEditorError('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x514e4b,channelId:_0x4d09a3,isFromAdapter:_0x4b6bbc}){if(!this['hasCommentThread'](_0x514e4b))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x514e4b});const _0x1ab98e=this['getCommentThread'](_0x514e4b);if(!_0x1ab98e['isResolved'])throw new CKEditorError('commentsrepository-reopen-comment-thread',null,{'threadId':_0x514e4b});if(_0x1ab98e['resolvedBy']=null,_0x1ab98e['resolvedAt']=null,_0x4b6bbc||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x21d135=this['context']['plugins']['get']('PendingActions'),_0x331728=_0x21d135['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x4d09a3,'threadId':_0x514e4b})['then'](()=>_0x21d135['remove'](_0x331728))['catch'](_0x1ad7f0=>{throw console['error'](_0x1ad7f0),new CKEditorError('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x124991,isFromAdapter:_0x33dfd8}){const _0x20c904=this['getCommentThread'](_0x124991);if(!_0x20c904)throw new CKEditorError('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x124991),this['_threads']['delete'](_0x124991),!_0x20c904['isSubmitted']||_0x33dfd8||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5ce9cf=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3eb905}=_0x20c904,_0x47ff42=_0x5ce9cf['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x3eb905,'threadId':_0x124991})['then'](()=>_0x5ce9cf['remove'](_0x47ff42))['catch'](_0xec92f8=>{throw console['error'](_0xec92f8),new CKEditorError('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x54a8c6,unlinkedAt:_0x44fb3e,context:_0x26ba0a,attributes:_0x40df18,isFromAdapter:_0x350484}){if('string'!=typeof _0x54a8c6)throw new CKEditorError('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x54a8c6});if(!this['hasCommentThread'](_0x54a8c6))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x54a8c6});const _0x2fbb80=this['getCommentThread'](_0x54a8c6);let _0x1d8706=!0x1;if(void 0x0!==_0x26ba0a&&_0x2fbb80['context']!==_0x26ba0a&&(_0x2fbb80['context']=_0x26ba0a,_0x1d8706=!0x0),void 0x0!==_0x44fb3e&&_0x2fbb80['unlinkedAt']!==_0x44fb3e&&(_0x2fbb80['unlinkedAt']=_0x44fb3e,_0x1d8706=!0x0),_0x40df18&&!isEqual(_0x40df18,_0x2fbb80['attributes'])&&(_0x2fbb80['attributes']=_0x40df18,_0x1d8706=!0x0),!_0x1d8706)return Promise['resolve']();if(!_0x2fbb80['isSubmitted']||_0x350484||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x4af0a5=this['context']['plugins']['get']('PendingActions'),{channelId:_0xa8d0d1}=_0x2fbb80,_0x3808de=_0x4af0a5['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0xa8d0d1,'threadId':_0x54a8c6,'context':_0x26ba0a,'unlinkedAt':_0x44fb3e,'attributes':_0x40df18})['then'](()=>_0x4af0a5['remove'](_0x3808de))['catch'](_0x52313b=>{throw console['error'](_0x52313b),new CKEditorError('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x1e6566){const _0x2cb130=this['context']['plugins']['get'](Annotations),_0x3579fa=this['getCommentThread'](_0x1e6566);if(_0x3579fa['_isAttached']=!0x1,this['_threadToController']['has'](_0x3579fa)){const _0x412105=this['_threadToController']['get'](_0x3579fa),_0x23a9e1=_0x412105['view'],_0x2302f5=_0x2cb130['getByInnerView'](_0x23a9e1);this['_threadToController']['delete'](_0x3579fa),this['_viewToController']['delete'](_0x23a9e1),_0x2302f5&&_0x2cb130['remove'](_0x2302f5),_0x412105['destroy'](),_0x23a9e1['destroy']()['then'](()=>{this['_unbindEditors'](_0x23a9e1);});}}['_updateActiveAnnotation']({threadId:_0x134d0d,resolvedAt:_0x43162a,unlinkedAt:_0x275878}){const _0x169af7=!!_0x43162a,_0x174d9b=this['context']['plugins']['get'](Annotations),_0x39019a=this['getCommentThread'](_0x134d0d);if(this['_threadToController']['has'](_0x39019a)){const _0x399b45=this['_threadToController']['get'](_0x39019a)['view'],_0x1d5ea1=_0x174d9b['getByInnerView'](_0x399b45);_0x1d5ea1&&(_0x169af7&&_0x174d9b['_removeActiveAnnotation'](_0x1d5ea1),_0x275878?_0x1d5ea1['isVisible']=!0x1:_0x1d5ea1['refreshVisibility']());}}['_getExternalAuthor'](_0x4b3dad){const _0x5d5d1f=this['context']['plugins']['get'](Users),_0x39ec49=hashObject('external:'+_0x4b3dad),_0x33e00a=_0x5d5d1f['getUser'](_0x39ec49);return _0x33e00a||_0x5d5d1f['addUser']({'id':_0x39ec49,'name':_0x4b3dad});}['_createNewComment']({threadId:_0xad83fc,commentId:_0x50f3a3=uid(),content:_0x4f1840,authorId:_0x52d348,createdAt:_0x19bfa9,attributes:_0x25f808}){if('string'!=typeof _0x50f3a3)throw new CKEditorError('commentsrepository-invalid-commentid');if('string'!=typeof _0x52d348)throw new CKEditorError('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x4f1840||!_0x4f1840['trim']())throw new CKEditorError('commentsrepository-invalid-comment-content');const _0x481426=this['context']['plugins']['get'](Users)['getUser'](_0x52d348);if(!_0x481426)throw new CKEditorError('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x52d348});let _0x21a9c6=null,_0x1ebeff=_0x19bfa9;return _0x25f808?.['@external']&&(_0x21a9c6=this['_getExternalAuthor'](_0x25f808['@external']['authorName']),_0x1ebeff=new Date(_0x25f808['@external']['createdAt'])),new Comment(this,{'threadId':_0xad83fc,'id':_0x50f3a3,'author':_0x21a9c6||_0x481426,'creator':_0x481426,'content':_0x4f1840,'createdAt':_0x19bfa9,'authoredAt':_0x1ebeff,'attributes':_0x25f808});}['_addComment'](_0xc965fc){let {threadId:_0x460204,content:_0x1b9d62,attributes:_0x255f5a,isFromAdapter:_0x9a5d45}=_0xc965fc;const _0x31aa08=this['getCommentThread'](_0xc965fc['threadId']);if(!_0x31aa08)throw new CKEditorError('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x1df366=this['_createNewComment'](_0xc965fc),{id:_0x14ec5c}=_0x1df366;if(_0x31aa08['_add'](_0x1df366),_0x9a5d45||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x31aa08['isSubmitted'])return Promise['resolve']();const _0x1c4f77=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2d89ce}=_0x31aa08,_0x454ef8=_0x1c4f77['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x255f5a||(_0x255f5a={}),this['adapter']['addComment']({'channelId':_0x2d89ce,'threadId':_0x460204,'commentId':_0x14ec5c,'content':_0x1b9d62,'attributes':_0x255f5a})['then'](_0x5ba8a7=>{_0x1c4f77['remove'](_0x454ef8),_0x5ba8a7&&this['_updateComment']({'channelId':_0x2d89ce,'threadId':_0x460204,'commentId':_0x14ec5c,'createdAt':_0x5ba8a7['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x58e1b0=>{throw console['error'](_0x58e1b0),new CKEditorError('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x185da0,commentId:_0x8b939a,content:_0x5ac66d,createdAt:_0x2f35c1,attributes:_0x4fe8a0,isFromAdapter:_0x34b7c8}){if(void 0x0!==_0x5ac66d&&('string'!=typeof _0x5ac66d||!_0x5ac66d['trim']()['length']))throw new CKEditorError('commentsrepository-update-comment-invalid-content');const _0x1638a1=this['getCommentThread'](_0x185da0),_0x198134=_0x1638a1['getComment'](_0x8b939a);if(!_0x198134)throw new CKEditorError('commentsrepository-update-missing-comment',this);let _0x4a29a3=!0x1;if(_0x5ac66d&&_0x5ac66d!==_0x198134['content']&&(_0x198134['isEditable']||_0x34b7c8)&&(_0x198134['content']=_0x5ac66d,_0x4a29a3=!0x0),_0x2f35c1&&_0x2f35c1!==_0x198134['createdAt']&&(_0x198134['createdAt']=_0x2f35c1,_0x198134['attributes']&&_0x198134['attributes']['@external']||(_0x198134['authoredAt']=_0x2f35c1),_0x4a29a3=!0x0),_0x4fe8a0&&!isEqual(_0x4fe8a0,_0x198134['attributes'])&&(_0x198134['attributes']=_0x4fe8a0,_0x4a29a3=!0x0),!_0x4a29a3)return Promise['resolve']();if(_0x1638a1['fire']('commentUpdated'),_0x34b7c8||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x2f5994=this['context']['plugins']['get']('PendingActions'),{channelId:_0x8d9159}=this['getCommentThread'](_0x198134['threadId']),_0x6e09d4=_0x2f5994['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x8d9159,'threadId':_0x185da0,'commentId':_0x8b939a,'content':_0x5ac66d,'attributes':_0x4fe8a0})['then'](()=>_0x2f5994['remove'](_0x6e09d4))['catch'](_0xe8660=>{throw console['error'](_0xe8660),new CKEditorError('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x1b20ce,commentId:_0xe53ee6,isFromAdapter:_0x2d3e53}){const _0x23046e=this['getCommentThread'](_0x1b20ce),_0x47ba1b=_0x23046e['getComment'](_0xe53ee6);if(!_0x47ba1b)throw new CKEditorError('commentsrepository-remove-missing-comment',this);if(_0x23046e['_remove'](_0x47ba1b),_0x2d3e53||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x37725d=this['context']['plugins']['get']('PendingActions'),{channelId:_0xe528ae}=_0x23046e,_0x4c0ceb=_0x37725d['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0xe528ae,'threadId':_0x1b20ce,'commentId':_0xe53ee6})['then'](()=>_0x37725d['remove'](_0x4c0ceb))['catch'](_0x3543df=>{throw console['error'](_0x3543df),new CKEditorError('commentsrepository-remove-comment-internal-error',this);});}}class CommentThread extends/* #__PURE__ -- @preserve */
ObservableMixin(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x31d71f,_0x3f576b){super();const _0x37125b=_0x3f576b['isResolvable'];this['channelId']=_0x3f576b['channelId'],this['id']=_0x3f576b['id'],this['comments']=new Collection(),this['_repository']=_0x31d71f,this['_isAttached']=!0x1,this['_isSubmitted']=_0x3f576b['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x31d71f,'_permissions',_0x31d71f,'_readOnlyChannels',()=>_0x31d71f['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x31d71f,'_permissions',()=>_0x31d71f['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x31d71f,'_permissions',()=>{const _0x113031=_0x31d71f['getPermissions'](this['channelId']);return _0x113031['write']||_0x113031['admin'];}),this['bind']('isResolvable')['to'](_0x31d71f,'_permissions',()=>_0x37125b&&_0x31d71f['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x3f576b['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x32e7c5,_0x448bd0)=>_0x32e7c5?_0x448bd0?_0x32e7c5<_0x448bd0?_0x32e7c5:_0x448bd0:_0x32e7c5:_0x448bd0),this['set']('unlinkedAt',_0x3f576b['unlinkedAt']||null),this['set']('resolvedAt',_0x3f576b['resolvedAt']||null),this['set']('resolvedBy',_0x3f576b['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x2a0752=>!!_0x2a0752),this['set']('attributes',_0x3f576b['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0xbde866,_0x3d1253)=>_0xbde866+_0x3d1253['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x3d92d2,id:_0x2f8dba}=this;this['_repository']['fire'](toEventName('submitCommentThread',_0x3d92d2),{'channelId':_0x3d92d2,'threadId':_0x2f8dba});}['setUnlinkedAt'](_0x3213ce){this['_update']({'unlinkedAt':_0x3213ce});}['resolve']({resolvedAt:_0x34d433=new Date(),resolvedBy:_0x2daf66='',isFromAdapter:_0x5bcd49=!0x1}={}){const _0x3b56b9=this['_repository']['context']['plugins']['get'](Users)['me'],{channelId:_0x365184,id:_0x41af1a}=this;this['_repository']['fire'](toEventName('resolveCommentThread',_0x365184),{'channelId':_0x365184,'threadId':_0x41af1a,'resolvedAt':_0x34d433,'resolvedBy':_0x2daf66||_0x3b56b9['id'],'isFromAdapter':_0x5bcd49});}['reopen']({isFromAdapter:_0x2efc29=!0x1}={}){const {channelId:_0x2ca423,id:_0x2043ae}=this;this['_repository']['fire'](toEventName('reopenCommentThread',_0x2ca423),{'channelId':_0x2ca423,'threadId':_0x2043ae,'isFromAdapter':_0x2efc29});}['setContext'](_0x2d5f85){this['context']||this['_update']({'context':_0x2d5f85});}['setAttribute'](_0x370eb3,_0x42cff2){const _0x47ec92=cloneDeep(this['attributes']);set(_0x47ec92,_0x370eb3,_0x42cff2),this['_update']({'attributes':_0x47ec92});}['removeAttribute'](_0x3899f3){const _0x497849=cloneDeep(this['attributes']);unset(_0x497849,_0x3899f3),this['_update']({'attributes':_0x497849});}['remove']({isFromAdapter:_0x37b50a=!0x1}={}){const {channelId:_0x626e1f,id:_0x2ce5aa}=this;this['_repository']['fire'](toEventName('removeCommentThread',_0x626e1f),{'channelId':_0x626e1f,'threadId':_0x2ce5aa,'isFromAdapter':_0x37b50a});}['attachTo'](_0x1078ae){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x1078ae});}['addComment'](_0x2f23e2){const {channelId:_0x2be373,id:_0xe0260b}=this;this['_repository']['fire'](toEventName('addComment',_0x2be373,_0xe0260b),Object['assign']({'channelId':_0x2be373,'threadId':_0xe0260b},_0x2f23e2));}['getComment'](_0x213dfc){if('string'!=typeof _0x213dfc)throw new CKEditorError('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x213dfc});return this['comments']['get'](_0x213dfc);}['toJSON'](){return{'threadId':this['id'],'context':this['context'],'unlinkedAt':this['unlinkedAt'],'resolvedAt':this['resolvedAt'],'resolvedBy':this['resolvedBy']?this['resolvedBy']['id']:null,'archivedAt':this['archivedAt'],'comments':this['comments']['map'](_0x4cf5e1=>_0x4cf5e1['toJSON']()),'attributes':this['attributes']};}['_add'](_0x230887){return this['listenTo'](_0x230887,'change:authoredAt',()=>{const _0x54d498=this['_findOptimalIndex'](_0x230887),_0x28eeab=this['comments'];_0x54d498-0x1!=_0x28eeab['getIndex'](_0x230887)&&_0x54d498+0x1!=_0x28eeab['getIndex'](_0x230887)&&(this['_remove'](_0x230887),this['_add'](_0x230887));}),this['comments']['add'](_0x230887,this['_findOptimalIndex'](_0x230887));}['_update'](_0x38c2d7){const {channelId:_0x2f471b,id:_0x4ca23b}=this;this['_repository']['fire'](toEventName('updateCommentThread',_0x2f471b),{..._0x38c2d7,'channelId':_0x2f471b,'threadId':_0x4ca23b});}['_remove'](_0x36813a){return this['stopListening'](_0x36813a),_0x36813a['destroy'](),this['comments']['remove'](_0x36813a);}['_findOptimalIndex'](_0x3f0567){const _0x431021=this['comments']['find'](_0xa4e5d=>new Date(_0xa4e5d['authoredAt'])['getTime']()>new Date(_0x3f0567['authoredAt'])['getTime']());return _0x431021?this['comments']['getIndex'](_0x431021):this['length'];}}const MIN_WEIGHT=0xc8;function getContentLength(_0x5d5c49){const _0x512f87=document['createElement']('div');return _0x512f87['innerHTML']=_0x5d5c49,_0x512f87['textContent']['length'];}class Comment extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x3e001b,_0x1954f3){super();const _0x1b676a=_0x3e001b['context']['plugins']['get'](Users)['me'],_0x5875f0=_0x3e001b['getCommentThread'](_0x1954f3['threadId']),_0x124d08=0x0===_0x5875f0['comments']['length'],_0x1d9522=_0x1b676a===_0x1954f3['author'];this['id']=_0x1954f3['id'],this['threadId']=_0x1954f3['threadId'],this['author']=_0x1954f3['author'],this['creator']=_0x1954f3['creator'],this['isExternal']=Boolean(_0x1954f3['attributes']&&_0x1954f3['attributes']['@external']),this['set']('content',_0x1954f3['content']),this['createdAt']=_0x1954f3['createdAt']||new Date(),this['set']('authoredAt',_0x1954f3['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x5875f0,'resolvedAt'),this['set']('attributes',_0x1954f3['attributes']||{}),this['bind']('isEditable')['to'](_0x3e001b,'_permissions',()=>{const _0x4dadc9=_0x3e001b['getPermissions'](_0x5875f0['channelId'])['write'],_0x54ad22=_0x3e001b['getPermissions'](_0x5875f0['channelId'])['modifyAll'];return _0x1d9522&&_0x4dadc9||!_0x1d9522&&_0x54ad22;}),this['bind']('isRemovable')['to'](_0x5875f0,'isRemovable',_0x3e001b,'_permissions',_0x3663c4=>{const _0x392a8=_0x3e001b['getPermissions'](_0x5875f0['channelId'])['write'],_0x385be1=_0x3e001b['getPermissions'](_0x5875f0['channelId'])['modifyAll'];return _0x1d9522&&_0x392a8||_0x3663c4&&_0x124d08||!_0x1d9522&&_0x385be1&&!_0x124d08;}),this['bind']('isReadOnly')['to'](_0x5875f0,'isReadOnly'),this['_repository']=_0x3e001b;}get['weight'](){return Math['max'](getContentLength(this['content']),MIN_WEIGHT);}['update'](_0xc50347){const {threadId:_0x4419d6,id:_0x1dc43e}=this;if(!this['_repository']['hasCommentThread'](_0x4419d6))throw new CKEditorError('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x36b382}=this['_repository']['getCommentThread'](_0x4419d6);this['_repository']['fire'](toEventName('updateComment',_0x36b382,_0x4419d6),{'channelId':_0x36b382,'threadId':_0x4419d6,'commentId':_0x1dc43e,..._0xc50347});}['setAttribute'](_0x59078a,_0x4bd2b8){const _0x3d515c=cloneDeep(this['attributes']);set(_0x3d515c,_0x59078a,_0x4bd2b8),this['update']({'attributes':_0x3d515c});}['removeAttribute'](_0x5200c5){const _0x17bd54=cloneDeep(this['attributes']);unset(_0x17bd54,_0x5200c5),this['update']({'attributes':_0x17bd54});}['remove'](_0x2733ac={}){if(!_0x2733ac['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x32d6e6,id:_0x1068c4}=this;if(!this['_repository']['hasCommentThread'](_0x32d6e6))throw new CKEditorError('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x280b77}=this['_repository']['getCommentThread'](_0x32d6e6);this['_repository']['fire'](toEventName('removeComment',_0x280b77,_0x32d6e6),{'channelId':_0x280b77,'threadId':_0x32d6e6,'commentId':_0x1068c4,..._0x2733ac});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function toEventName(_0x5f2316,..._0x3d5aa4){for(const _0x4e57d2 of _0x3d5aa4)void 0x0!==_0x4e57d2&&(_0x5f2316+=':'+String(_0x4e57d2));return _0x5f2316;}class AddCommentThreadCommand extends _0x142ccd{constructor(_0x46bcfd){super(_0x46bcfd),this['set']('hasContent',!0x1);}['refresh'](){const _0x57d644=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x1af233 of _0x57d644['getRanges']())if(this['_hasContent'](_0x1af233))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x5bcf46=uid(),ranges:_0x3aebbf,comment:_0x5587ef}={}){const _0x4dbd9d=this['editor']['model'],_0x2242e0=_0x3aebbf??Array['from'](_0x4dbd9d['document']['selection']['getRanges']()),_0x18b24b=[];for(const _0x33e94a of _0x2242e0)this['_hasContent'](_0x33e94a)&&_0x18b24b['push'](this['_trimToContent'](_0x33e94a));if(!_0x18b24b['length'])throw new CKEditorError('addcommentthreadcommand-incorrect-ranges',null);_0x5587ef&&this['_createCommentThread'](_0x5bcf46,_0x5587ef),this['_createMarkersFromRanges'](_0x5bcf46,_0x18b24b,!!_0x5587ef);}['_createMarkersFromRanges'](_0x478c8d,_0x3fb0ef,_0x3bdfff){this['editor']['model']['change'](_0x3c4a86=>{for(const _0x41a5c0 of _0x3fb0ef){const _0x304716=uid()['substr'](0x1,0x5),_0x4467db='comment:'+_0x478c8d+':'+_0x304716;_0x3c4a86['addMarker'](_0x4467db,{'range':_0x41a5c0,'usingOperation':_0x3bdfff,'affectsData':_0x3bdfff});}});}['_createCommentThread'](_0xf0b9a1,_0x34d20a){const _0x5ec53c=this['editor']['plugins']['get']('CommentsRepository'),_0x14c074=this['editor']['config']['get']('collaboration.channelId'),_0x1340a9=this['editor']['plugins']['get']('Users')['me'];if(!_0x1340a9)throw new CKEditorError('addcommentthreadcommand-user-not-found',null);_0x5ec53c['addCommentThread']({'threadId':_0xf0b9a1,'channelId':_0x14c074,'comments':[{'authorId':_0x1340a9['id'],'content':_0x34d20a,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x428eed){for(const _0x23d21a of _0x428eed['getItems']())if(this['_itemIsContent'](_0x23d21a))return!0x0;return!0x1;}['_itemIsContent'](_0xb28fda){return _0xb28fda['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0xb28fda)&&!_0xb28fda['is']('element','tableCell');}['_trimToContent'](_0xd1cee3){const _0x568e92=_0x324738=>!this['_itemIsContent'](_0x324738['item']),_0x11e3e5=_0xd1cee3['start']['getLastMatchingPosition'](_0x568e92),_0x23f4fc=_0xd1cee3['end']['getLastMatchingPosition'](_0x568e92,{'direction':'backward'});return this['editor']['model']['createRange'](_0x11e3e5,_0x23f4fc);}}class EditorAnnotations extends Plugin{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[Annotations];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x316ead){super(_0x316ead),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x3e72d5=this['editor'],_0x4f81e7=_0x3e72d5['model']['document']['selection'],_0x110d18=debounce$1(()=>this['refreshSelectedViews'](),0xa);_0x4f81e7['on']('change:range',(_0xecc394,_0xf5258b)=>{_0xf5258b['directChange']&&(_0x110d18['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x3e72d5['editing']['view']['document'],'change:isFocused',(_0x13b356,_0x42d1ab,_0x1e630b)=>{_0x1e630b&&_0x110d18();}),this['listenTo'](_0x3e72d5['ui']['focusTracker'],'change:isFocused',(_0x325dd7,_0x3e4465,_0x22c9ce)=>{_0x22c9ce||this['fire']('blur',{'isAnnotationTracked':_0x6c3bc3=>this['_editorAnnotationsData']['has'](_0x6c3bc3['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x4f9e97){if(this['_editorAnnotations']['has'](_0x4f9e97['view']))return;this['_editorAnnotations']['add'](_0x4f9e97['view']),this['editor']['ui']['focusTracker']['add'](_0x4f9e97['view']['element']);const _0x3074c1=this['editor']['plugins']['get'](Annotations);this['listenTo'](_0x3074c1['collection'],'remove',(_0x56003f,_0x212cd6)=>{this['editor']['ui']['focusTracker']['remove'](_0x212cd6['view']['element']),this['_editorAnnotations']['delete'](_0x212cd6['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x5bd95e){if('function'!=typeof _0x5bd95e)throw new CKEditorError('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x5bd95e);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x1d9eb4,annotations:_0x529705}){const _0x288ec0=[],_0x2d6db9=this['editor']['model']['document']['selection'],_0x293b35=Array['from'](_0x2d6db9['getRanges']());for(const [_0x267386,_0x472f2a]of this['_editorAnnotationsData']){const _0x3ca3b7=_0x2b41ab(_0x472f2a),_0x516ad7=_0x529705['getByInnerView'](_0x267386);_0x3ca3b7&&_0x516ad7&&_0x288ec0['push']({'annotation':_0x516ad7,'range':_0x3ca3b7});}function _0x2b41ab(_0x2e8938){for(const _0x472f5c of _0x2e8938)for(const _0x546c76 of _0x293b35)if(_0x472f5c['containsRange'](_0x546c76,!_0x2d6db9['isCollapsed']))return _0x472f5c;return null;}return _0x288ec0['sort']((_0x43015d,_0x14596d)=>{const _0x112b85=_0x43015d['range'],_0x3b6943=_0x14596d['range'];if(!_0x112b85['isEqual'](_0x3b6943)){if(_0x112b85['containsRange'](_0x3b6943,!0x0))return 0x1;if(_0x3b6943['containsRange'](_0x112b85,!0x0))return-0x1;}return _0x43015d['annotation']==_0x1d9eb4?-0x1:_0x14596d['annotation']==_0x1d9eb4?0x1:0x0;})['map'](_0x475495=>_0x475495['annotation']);}get['_editorAnnotationsData'](){const _0xb01d09=new Map();for(const _0x11aa30 of Array['from'](this['_dataCollectors']))for(const [_0x3957a6,_0x4e5565]of _0x11aa30())_0xb01d09['set'](_0x3957a6,_0x4e5565);return _0xb01d09;}}class CommentsRestrictedEditingMode extends Plugin{['afterInit'](){const _0x291c73=this['editor'];if(!_0x291c73['plugins']['has']('RestrictedEditingModeEditing'))return;_0x291c73['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class CommentsImportWord extends Plugin{constructor(_0x4d876b){super(_0x4d876b),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x2a1f3b=this['editor'],_0x5c3cb5=_0x2a1f3b['commands']['get']('importWord'),_0xf0c137=_0x2a1f3b['plugins']['get'](Users);_0x5c3cb5&&(_0x5c3cb5['on']('execute',(_0x38e2d5,[,_0x4b9d1a])=>{_0x4b9d1a['collaboration_features']={'comments':!0x0,'user_id':_0xf0c137['me']['id']};},{'priority':priorities['high']+0xa}),this['listenTo'](_0x5c3cb5,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x50a45e,_0x42c8c3){const {comment_threads:_0x5b01ad}=_0x42c8c3;_0x5b01ad&&_0x5b01ad['forEach'](({thread_id:_0x4191df,comments:_0x49362e,is_resolved:_0x3c87f0})=>{const _0x2bee7a=new Date(),_0x3a9d2a=_0x49362e['map'](({author:_0x62faac,content:_0x1872ad,created_at:_0x554bf5})=>({'content':_0x1872ad,'authorId':this['editor']['plugins']['get'](Users)['me']['id'],'createdAt':_0x2bee7a,'attributes':{'@external':{'authorName':_0x62faac,'createdAt':_0x554bf5?new Date(_0x554bf5):new Date(),'source':'importWord'}}})),_0x1ddba7=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](CommentsRepository)['addCommentThread']({'channelId':_0x1ddba7,'threadId':_0x4191df,'comments':_0x3a9d2a,'resolvedAt':_0x3c87f0?_0x2bee7a:null});});}}class CommentsClipboard extends Plugin{constructor(_0x478a36){super(_0x478a36),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[ClipboardMarkersUtils,ClipboardPipeline];}['afterInit'](){const _0x227712=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x227712,'contentInsertion',(_0x364cd5,_0x508319)=>this['_removeMarkersWithoutThreads'](_0x508319['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x1fd338){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x1fd338;const _0x4aca9f=this['editor']['plugins']['get']('CommentsRepository');for(const _0x36d266 of _0x1fd338['keys']()){const [_0x57d8b4,_0x4c344e]=_0x36d266['split'](':');'comment'!=_0x57d8b4||_0x4aca9f['hasCommentThread'](_0x4c344e)||_0x1fd338['delete'](_0x36d266);}return _0x1fd338;}['_registerMarkerInClipboardPipeline'](){const _0x5e4bbe=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x4df283=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x4df283&&_0x5e4bbe['_registerMarkerToCopy']('comment',_0x4df283);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x34dd19){switch(_0x34dd19){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function splitMarkerName(_0x358a22){const _0x10fd6d=_0x358a22['split'](':');return{'group':_0x10fd6d[0x0],'id':_0x10fd6d[0x1],'part':_0x10fd6d[0x2]};}class ShowCommentHighlights extends Plugin{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x12e85a,_0x1e8c46)=>{if(!_0x1e8c46['options']['showCommentHighlights'])return null;if(_0x1e8c46['options']['ignoreResolvedComments']){const {id:_0x155412}=splitMarkerName(_0x12e85a['markerName']),_0x51655d=this['editor']['plugins']['get'](CommentsRepository);if(_0x51655d['getCommentThread'](_0x155412)?.['isResolved']&&_0x12e85a['item'])return _0x1e8c46['consumable']['consume'](_0x12e85a['item'],'addMarker:'+_0x12e85a['markerName']),_0x1e8c46['consumable']['consume'](_0x12e85a['item'],'removeMarker:'+_0x12e85a['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x512cec=>{_0x512cec['on']('addMarker:comment',(_0x47066a,_0x5a4bd9,_0x56e770)=>{if(!_0x56e770['options']['showCommentHighlights'])return;const _0x4471d3=_0x5a4bd9['item'];if(!_0x4471d3)return;const _0x3427d2=_0x56e770['mapper']['toViewElement'](_0x4471d3);this['editor']['model']['schema']['isObject'](_0x4471d3)&&_0x3427d2&&!_0x3427d2['getCustomProperty']('widget')&&_0x3427d2['is']('containerElement')&&toWidget(_0x3427d2,_0x56e770['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x285614,{writer:_0x475220,options:_0x4c38b5})=>{if(!_0x4c38b5['showCommentHighlights'])return null;const _0x19a329=_0x475220['createContainerElement']('div'),_0x39d67b=_0x475220['createEmptyElement']('hr');return _0x475220['addClass']('ck-horizontal-line',_0x19a329),_0x475220['insert'](_0x475220['createPositionAt'](_0x19a329,0x0),_0x39d67b),_0x19a329;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x32ef0a,{writer:_0xdf5d0a,options:_0x338385})=>{if(!_0x338385['showCommentHighlights'])return null;const _0x4324a4=_0xdf5d0a['createContainerElement']('span'),_0x5c013d=_0xdf5d0a['createEmptyElement']('img');return _0xdf5d0a['addClass']('image-inline',_0x4324a4),_0xdf5d0a['insert'](_0xdf5d0a['createPositionAt'](_0x4324a4,0x0),_0x5c013d),_0x4324a4;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1c3711,{writer:_0x2aae7e,options:_0x26bab7})=>{if(_0x26bab7['showCommentHighlights'])return _0x2aae7e['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x245889,_0x304357,_0x1fdc5)=>{_0x1fdc5['options']['showCommentHighlights']&&_0x245889['stop']();},{'priority':'high'});}}const MAX_CONTEXT_LENGTH=0x96;class CommentsEditing extends Plugin{static get['requires'](){return[CommentsRepository,EditorAnnotations,Users,CommentsRestrictedEditingMode,CommentsImportWord,CommentsClipboard,ShowCommentHighlights];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x172191){super(_0x172191),this['set']('isThreadsLoadingPaused',!0x0),_0x172191['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x10a551,_0x5bba44,_0x1a34c6,_0x158810)=>{const _0x4d6fdf=_0x172191['plugins']['get'](CommentsRepository),_0x3063a0=_0x1a34c6?splitMarkerName(_0x1a34c6)['id']:null;_0x172191['model']['change'](()=>{if(_0x3063a0){const _0x1a39dc=this['getAllMarkersForId'](_0x3063a0);for(const _0x28fd42 of _0x1a39dc)_0x172191['editing']['reconvertMarker'](_0x28fd42);}if(_0x158810){const {id:_0x986cf}=splitMarkerName(_0x158810),_0x20aed5=_0x4d6fdf['getCommentThread'](_0x986cf);if(_0x20aed5&&_0x20aed5['unlinkedAt'])return;if(_0x20aed5&&!_0x20aed5['isAttached'])return;const _0x2f7e48=this['getAllMarkersForId'](_0x986cf);for(const _0x236e01 of _0x2f7e48)_0x172191['editing']['reconvertMarker'](_0x236e01);}}),_0x3063a0&&this['scrollToThreadMarker'](_0x3063a0);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xd984c2=this['editor'],_0x2949f6=_0xd984c2['plugins']['get'](CommentsRepository),_0x255ba6=_0xd984c2['config']['get']('collaboration.channelId'),_0x55ee47=_0x2949f6['getCommentThreads']()['filter'](_0x3397f4=>_0x3397f4['channelId']!==_0x255ba6);_0xd984c2['commands']['add']('addCommentThread',new AddCommentThreadCommand(_0xd984c2)),this['listenTo'](_0xd984c2,'change:isReadOnly',(_0x19bb64,_0x48dd5a,_0x37465b)=>{_0x2949f6['switchReadOnly'](_0x37465b,_0xd984c2['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x2949f6,createChannelEvent('addCommentThread',_0x255ba6),(_0x3c7449,{threadId:_0x5b88c0})=>{const _0x3ab0a1=this['editor']['plugins']['get'](CommentsRepository)['getCommentThread'](_0x5b88c0);_0x3ab0a1?.['unlinkedAt']&&this['_attachArchivedThread'](_0x5b88c0);}),this['listenTo'](_0x2949f6,createChannelEvent('removeCommentThread',_0x255ba6),(_0x3dedcb,{threadId:_0x34bacc})=>{_0xd984c2['model']['enqueueChange']({'isUndoable':!0x1},_0x207bcf=>{const _0xfc40e9=this['getAllMarkersForId'](_0x34bacc);for(const _0x1de5bb of _0xfc40e9)_0x207bcf['removeMarker'](_0x1de5bb);});}),this['listenTo'](_0x2949f6,createChannelEvent('resolveCommentThread',_0x255ba6),(_0x3da23a,{threadId:_0xc7b7c4})=>{(this['_reconvertMarkers'](_0xc7b7c4),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](CommentsRepository)['getCommentThread'](_0xc7b7c4)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x2949f6,createChannelEvent('reopenCommentThread',_0x255ba6),(_0x231743,{threadId:_0xedf4ec})=>{this['_reconvertMarkers'](_0xedf4ec);},{'priority':'low'}),this['listenTo'](_0x2949f6,createChannelEvent('addComment',_0x255ba6),(_0x28731b,{threadId:_0x5b327b,isFromAdapter:_0x1277f0})=>{const _0x4e2eb5=this['getAllMarkersForId'](_0x5b327b);if(_0x1277f0||0x0==_0x4e2eb5['length']||!_0x2949f6['hasCommentThread'](_0x5b327b))return;0x1===_0x2949f6['getCommentThread'](_0x5b327b)['length']&&_0xd984c2['model']['enqueueChange']({'isUndoable':!0x1},_0x18b689=>{for(const _0x131c0b of _0x4e2eb5)_0x18b689['updateMarker'](_0x131c0b,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x55ee47);}['afterInit'](){checkLicense$g(this);}['destroy'](){const _0x1802a9=this['editor']['plugins']['get'](CommentsRepository),_0x4fd5e7=this['editor']['config']['get']('collaboration.channelId');for(const _0x46f3db of _0x1802a9['getCommentThreads']({'channelId':_0x4fd5e7}))_0x1802a9['_detachCommentThread'](_0x46f3db['id']),_0x1802a9['_threads']['delete'](_0x46f3db['id']);super['destroy']();}['hasMarkerForId'](_0x1a4bbc){return this['getAllMarkersForId'](_0x1a4bbc)['length']>0x0;}['getAllMarkersForId'](_0x3b0749){const _0x24b51=[];for(const _0x3b9e6c of this['editor']['model']['markers'])_0x3b9e6c['name']['startsWith']('comment:'+_0x3b0749)&&_0x24b51['push'](_0x3b9e6c);return _0x24b51;}['scrollToThreadMarker'](_0x29f31e){setTimeout(()=>{const _0x4c51d8=this['_getTargetForId'](_0x29f31e);if(!_0x4c51d8)return;this['activeMarker']&&splitMarkerName(this['activeMarker'])['id']===_0x29f31e&&scrollViewportToShowTarget({'target':_0x4c51d8[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x5cc47d){this['editor']['model']['change'](()=>{for(const _0x4b35b9 of this['getAllMarkersForId'](_0x5cc47d))this['editor']['editing']['reconvertMarker'](_0x4b35b9);});}['_attachArchivedThread'](_0x18bd74){const _0x3d4bae=this['editor']['plugins']['get'](CommentsRepository),_0x308cef=this['editor']['plugins']['get'](EditorAnnotations),_0xb7d9af=_0x3d4bae['getCommentThread'](_0x18bd74);if(!_0xb7d9af['isAttached']){const _0x210b2d=_0xb7d9af['attachTo'](()=>this['_getTargetForId'](_0xb7d9af['id']));_0x308cef['registerAnnotation'](_0x210b2d),_0xb7d9af['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x42b3e8=this['editor'],_0x2799d7=_0x42b3e8['plugins']['get'](Users);_0x42b3e8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x580cc9,_0xaab520)=>{const {id:_0x26b40f}=splitMarkerName(_0x580cc9['markerName']),_0x5f0e60=_0x42b3e8['plugins']['get'](CommentsRepository)['getCommentThread'](_0x26b40f),_0x4a6d0d=this['activeMarker']&&splitMarkerName(this['activeMarker'])['id']===_0x26b40f;let _0x2150b1;if(_0x5f0e60&&_0x5f0e60['isResolved']&&!_0x4a6d0d&&_0x580cc9['item'])return _0xaab520['consumable']['consume'](_0x580cc9['item'],'addMarker:'+_0x580cc9['markerName']),_0xaab520['consumable']['consume'](_0x580cc9['item'],'removeMarker:'+_0x580cc9['markerName']),null;const _0x2749a3=['ck-comment-marker'];return _0x4a6d0d&&_0x2749a3['push']('ck-comment-marker--active'),_0x2150b1=_0x5f0e60?.['length']?_0x5f0e60['comments']['first']['author']['id']:_0x2799d7['me']['id'],{'classes':_0x2749a3,'attributes':{'data-comment':_0x26b40f,'data-author-id':_0x2150b1}};}}),_0x42b3e8['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x37c82b,{options:_0x44e9f6})=>{if(_0x44e9f6['showCommentHighlights'])return null;const _0x95e4ec=_0x42b3e8['plugins']['get'](CommentsRepository),_0x1a9cfd=_0x42b3e8['model']['markers']['get'](_0x37c82b),{id:_0x59e9f0,part:_0x15cc9e}=splitMarkerName(_0x37c82b);return _0x1a9cfd&&!_0x1a9cfd['affectsData']||_0x44e9f6['ignoreResolvedComments']&&_0x95e4ec['getCommentThread'](_0x59e9f0)?.['isResolved']?null:{'group':'comment','name':_0x15cc9e?_0x59e9f0+':'+_0x15cc9e:_0x59e9f0};}}),_0x42b3e8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x1fed95,{writer:_0x3f8ebf})=>_0x3f8ebf['createElement']('$marker',{'data-name':'comment:'+_0x1fed95['getAttribute']('id')})}),_0x42b3e8['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x2652ea=this['editor'],_0x414930=_0x2652ea['plugins']['get'](CommentsRepository),_0x2e2e3c=new Set(),_0x3008b9=new Set();_0x2652ea['model']['document']['registerPostFixer'](_0x2ea923=>{let _0x4e92e5=!0x1;for(const {name:_0x40b75b,data:_0x3d35b9}of _0x2652ea['model']['document']['differ']['getChangedMarkers']()){const {group:_0x249ae1,id:_0x2a6bbf}=splitMarkerName(_0x40b75b);let _0xf254bd=_0x3d35b9['newRange'];if('comment'!==_0x249ae1||!_0xf254bd)continue;const _0x1a8603='$graveyard'===_0xf254bd['root']['rootName'];_0x1a8603||(_0xf254bd=fixMarkerRange(_0xf254bd,_0x2652ea['model']),!_0xf254bd||_0xf254bd['isCollapsed']||!_0x3d35b9['newRange']||_0xf254bd['isEqual'](_0x3d35b9['newRange']))?_0x2652ea['model']['hasContent'](_0xf254bd)&&!_0x1a8603?this['isThreadsLoadingPaused']?_0x2e2e3c['add'](_0x40b75b):this['_handleThreadMarker'](_0x40b75b,_0x2a6bbf):(_0x3008b9['add'](_0x40b75b),_0x2e2e3c['delete'](_0x40b75b),_0x2ea923['removeMarker'](_0x40b75b),_0x4e92e5=!0x0):(_0x2ea923['updateMarker'](_0x40b75b,{'range':_0xf254bd}),_0x4e92e5=!0x0);}return _0x4e92e5;}),this['on']('change:isThreadsLoadingPaused',(_0x2f1f80,_0x15ccc8,_0x51aa62)=>{if(!_0x51aa62&&_0x2e2e3c['size'])for(const _0x172035 of _0x2e2e3c){const {id:_0x2544e2}=splitMarkerName(_0x172035);_0x2e2e3c['delete'](_0x172035),_0x2652ea['model']['markers']['get'](_0x172035)&&this['_handleThreadMarker'](_0x172035,_0x2544e2);}}),this['listenTo'](_0x2652ea['model']['document'],'change',()=>{for(const {name:_0x4f2f73,data:{newRange:_0x1d907c}}of _0x2652ea['model']['document']['differ']['getChangedMarkers']()){const {group:_0x43f377,id:_0x3e088e}=splitMarkerName(_0x4f2f73);if('comment'!==_0x43f377)continue;const _0x8d4adc=_0x414930['getCommentThread'](_0x3e088e),_0x54267a=this['hasMarkerForId'](_0x3e088e);_0x8d4adc&&(!_0x8d4adc['_hasTargetInContent']&&_0x1d907c&&_0x2652ea['editing']['view']['once']('render',()=>{const _0x2b60a0=_0x2652ea['plugins']['get'](Annotations),_0x458945=_0x414930['_threadToController']['get'](_0x8d4adc)['view'];_0x2b60a0['getByInnerView'](_0x458945)['refreshVisibility']();},{'priority':'low'}),_0x8d4adc['_hasTargetInContent']=_0x54267a||!!_0x1d907c),_0x1d907c||(_0x3008b9['add'](_0x4f2f73),_0x2e2e3c['delete'](_0x4f2f73));}for(const _0xc3739 of _0x3008b9){const {id:_0x52b4b1}=splitMarkerName(_0xc3739),_0x5a1c30=_0x414930['getCommentThread'](_0x52b4b1);if(_0x2e2e3c['delete'](_0xc3739),!_0x5a1c30)continue;const _0x4f177f=this['hasMarkerForId'](_0x52b4b1);_0x4f177f||_0x5a1c30['isSubmitted']?_0x4f177f||_0x5a1c30['unlinkedAt']||_0x5a1c30['setUnlinkedAt'](new Date()):_0x5a1c30['remove']();}_0x3008b9['clear']();});}['_handleInitialThreads'](_0xb91f5a){_0xb91f5a['forEach'](_0x518fe8=>{_0x518fe8['unlinkedAt']&&this['_attachArchivedThread'](_0x518fe8['id']);});}['_getTargetForId'](_0x3f979f){const _0x275844=this['editor'],_0x1b1dd4=this['getAllMarkersForId'](_0x3f979f);return getAllMarkersDomElementsSorted(_0x275844['editing'],_0x1b1dd4);}['_getTextContext'](_0x3870e0){const _0x4b6ae6=this['getAllMarkersForId'](_0x3870e0);let _0xbab799='',_0xd2457a=!0x1;for(const _0x1fa2e1 of _0x4b6ae6){const _0x58ccd4=_0x1fa2e1['getRange']();for(const _0xa9331c of Array['from'](_0x58ccd4['getItems']()))_0xa9331c['is']('$textProxy')?(_0xbab799&&_0xd2457a&&(_0xbab799+='\x20',_0xd2457a=!0x1),_0xbab799+=_0xa9331c['data']):_0xd2457a=!0x0;_0xd2457a=!0x0;}return _0xbab799['substring'](0x0,MAX_CONTEXT_LENGTH);}['_attachMarkerToThread'](_0x16a5f6,_0x4bf15c){const _0x1a5983=this['editor'],_0x4c32ed=_0x1a5983['plugins']['get'](CommentsRepository);let _0x5ca2bc=_0x4c32ed['getCommentThread'](_0x4bf15c);const _0x40236a=_0x1a5983['config']['get']('collaboration.channelId'),_0x1f648e=_0x1a5983['plugins']['get'](EditorAnnotations);if(_0x5ca2bc&&(_0x5ca2bc['unlinkedAt']&&_0x5ca2bc['setUnlinkedAt'](null),_0x5ca2bc['isAttached']))return _0x5ca2bc;return!this['getAllMarkersForId'](_0x4bf15c)[0x0]['managedUsingOperations']?_0x1a5983['editing']['view']['once']('render',()=>{if(_0x4c32ed['getCommentThread'](_0x4bf15c))return;const _0xc500fe=_0x1a5983['plugins']['get'](Annotations);_0x5ca2bc=_0x4c32ed['openNewCommentThread']({'channelId':_0x40236a,'threadId':_0x4bf15c,'target':()=>this['_getTargetForId'](_0x4bf15c),'context':{'type':'text','value':this['_getTextContext'](_0x4bf15c)}});const _0x45fd25=_0x4c32ed['_threadToController']['get'](_0x5ca2bc)['view'],_0x400bfd=_0xc500fe['getByInnerView'](_0x45fd25);_0x400bfd&&_0x1f648e['registerAnnotation'](_0x400bfd);},{'priority':'low'}):_0x4c32ed['fetchCommentThread']({'channelId':_0x40236a,'threadId':_0x4bf15c})['then'](_0x3c427f=>{if('destroyed'!==_0x1a5983['state']){if(_0x5ca2bc=_0x3c427f,_0x5ca2bc&&!_0x5ca2bc['isAttached']){const _0x4dadad=_0x5ca2bc['attachTo'](()=>this['_getTargetForId'](_0x4bf15c));_0x1f648e['registerAnnotation'](_0x4dadad),_0x5ca2bc['isResolved']&&this['_reconvertMarkers'](_0x4bf15c);}else{if(!_0x5ca2bc){const _0x445d86=this['getAllMarkersForId'](_0x4bf15c);_0x1a5983['model']['change'](_0x1bdde8=>{for(const _0x3f84ba of _0x445d86)_0x1bdde8['removeMarker'](_0x3f84ba);});}}}}),_0x5ca2bc;}['_handleThreadMarker'](_0x3355db,_0x5af5cd){const _0x4bf8fa=this['_attachMarkerToThread'](_0x3355db,_0x5af5cd);_0x4bf8fa&&!_0x4bf8fa['context']&&_0x4bf8fa['setContext']({'type':'text','value':this['_getTextContext'](_0x5af5cd)});}['_initAriaMarkerChangeAnnouncements'](){const _0x5ac2c1=this['editor'];surroundingMarkersDetector(_0x5ac2c1['model'],({left:_0x4efc3e,entered:_0x134ec8})=>{for(const _0x580dbb of _0x4efc3e)if(isCommentMarker(_0x580dbb)){_0x5ac2c1['ui']['ariaLiveAnnouncer']['announce'](getTranslation$f(_0x5ac2c1['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x35cb2b of _0x134ec8)if(isCommentMarker(_0x35cb2b)){_0x5ac2c1['ui']['ariaLiveAnnouncer']['announce'](getTranslation$f(_0x5ac2c1['locale'],'ENTER_COMMENT_ANNOUNCEMENT',getEnvKeystrokeText(FOCUS_ANNOTATION_KEYSTROKE)));break;}});}}function createChannelEvent(_0x3da1f1,_0x5ed390){return _0x5ed390?_0x3da1f1+':'+_0x5ed390:_0x3da1f1;}function fixMarkerRange(_0x50a654,_0x2f8444){const _0x30abe6=_0x2f8444['schema'],_0xb18f36=_0x2f8444['createRange'](_0x50a654['start']);for(const _0x532cb8 of _0x50a654['getWalker']()){const {type:_0x28b3c0,item:_0x22763b,nextPosition:_0x1fb5b1}=_0x532cb8;if('text'===_0x28b3c0||_0x30abe6['isObject'](_0x22763b)){const _0x3d9432=_0x2f8444['createPositionBefore'](_0x22763b);_0xb18f36['isCollapsed']&&(_0xb18f36['start']=_0x3d9432),_0xb18f36['end']=_0x1fb5b1;}}return _0xb18f36;}function isCommentMarker(_0x5142f0){return'comment'===splitMarkerName(_0x5142f0['name'])['group'];}async function checkLicense$g(_0x3ba511){const _0x24370d=_0x353865([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x205b15=window[_0x353865([0x44,0x61,0x74,0x65])][_0x353865([0x6e,0x6f,0x77])](),_0x109448=_0x3ba511[_0x353865([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x274c90=new window[(_0x353865([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e7054=>{_0x109448[_0x353865([0x6f,0x6e,0x63,0x65])](_0x353865([0x72,0x65,0x61,0x64,0x79]),_0x5e7054);}),_0xdae0f7={[_0x353865([0x6b,0x74,0x79])]:_0x353865([0x45,0x43]),[_0x353865([0x75,0x73,0x65])]:_0x353865([0x73,0x69,0x67]),[_0x353865([0x63,0x72,0x76])]:_0x353865([0x50,0x2d,0x32,0x35,0x36]),[_0x353865([0x78])]:_0x353865([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x353865([0x79])]:_0x353865([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x353865([0x61,0x6c,0x67])]:_0x353865([0x45,0x53,0x32,0x35,0x36])},_0x4ef9e1=_0x109448[_0x353865([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x353865([0x67,0x65,0x74])](_0x353865([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x5aa7aa=await(async function(){let _0x1314f6,_0x3c0b86=null,_0x4942ba=null;try{if(_0x4ef9e1==_0x353865([0x47,0x50,0x4c]))return _0x353865([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1314f6=(function(){const _0x55011b=_0x4ef9e1[_0x353865([0x73,0x70,0x6c,0x69,0x74])](_0x353865([0x2e]));if(0x3!=_0x55011b[_0x353865([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x74abe9=_0x55011b[0x1];return _0xb1a34d(_0x74abe9);function _0xb1a34d(_0x483866){const _0x1c510d=_0x4c123e(_0x483866);return _0x1c510d&&_0x5e4bfa()?_0x1c510d:null;function _0x5e4bfa(){const _0x58128b=_0x1c510d[_0x353865([0x6a,0x74,0x69])],_0x53f51d=window[_0x353865([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58128b[_0x353865([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58128b[_0x353865([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x50ed13={..._0x1c510d,[_0x353865([0x6a,0x74,0x69])]:_0x58128b[_0x353865([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x58128b[_0x353865([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x50ed13[_0x353865([0x76,0x63])],_0x237476(_0x50ed13)==_0x53f51d;}}}()),!_0x1314f6)return _0x353865([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x1314f6[_0x353865([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4942ba=function(_0x57b954,_0x274ab8){return new window[(_0x353865([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x480dfb=>{if(_0x2dbdd9())return _0x480dfb(_0x353865([0x56,0x61,0x6c,0x69,0x64]));_0x11f899(),_0x109448[_0x353865([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x353865([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x856056=!0x1;const _0x29559a=uid();function _0x100180(_0x73337f){return!!_0x73337f&&(typeof _0x73337f===_0x353865([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x73337f===_0x353865([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x73337f[_0x353865([0x74,0x68,0x65,0x6e])]===_0x353865([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x73337f[_0x353865([0x63,0x61,0x74,0x63,0x68])]===_0x353865([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ee4fb(_0x3a2aab){_0x3d7138(_0x3a2aab)[_0x353865([0x74,0x68,0x65,0x6e])](_0x266cb7=>{if(!_0x266cb7||_0x266cb7[_0x353865([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x353865([0x6f,0x6b]))return _0x353865([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57f784(_0x237476(_0x29559a+_0x274ab8))!=_0x266cb7[_0x353865([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x353865([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x353865([0x56,0x61,0x6c,0x69,0x64]);})[_0x353865([0x74,0x68,0x65,0x6e])](_0x5ef443=>(_0x4de0be(),_0x5ef443),()=>{const _0xac130=_0x41587b();return null==_0xac130?(_0x4de0be(),_0x353865([0x56,0x61,0x6c,0x69,0x64])):_0x353865(_0x205b15-_0xac130>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x353865([0x74,0x68,0x65,0x6e])](_0x480dfb)[_0x353865([0x63,0x61,0x74,0x63,0x68])](()=>{_0x480dfb(_0x353865([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x22a2fe=0x36ee80;function _0x4de0be(){const _0x25ba30=_0x353865([0x6c,0x6c,0x63,0x74,0x2d])+_0x57f784(_0x237476(_0x57b954)),_0x3945b1=_0x20b346(_0x57f784(window[_0x353865([0x4d,0x61,0x74,0x68])][_0x353865([0x63,0x65,0x69,0x6c])](_0x205b15/_0x22a2fe)));window[_0x353865([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x353865([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25ba30,_0x3945b1);}function _0x41587b(){const _0x2d5f2c=_0x353865([0x6c,0x6c,0x63,0x74,0x2d])+_0x57f784(_0x237476(_0x57b954)),_0x59cc02=window[_0x353865([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x353865([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d5f2c);return _0x59cc02?window[_0x353865([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20b346(_0x59cc02),0x10)*_0x22a2fe:null;}function _0x3d7138(_0xfd1d0b){return new window[(_0x353865([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a0200,_0x25e872)=>{_0xfd1d0b[_0x353865([0x74,0x68,0x65,0x6e])](_0x3a0200,_0x25e872),window[_0x353865([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x25e872,0x1d4c0);});}}_0x109448[_0x353865([0x6f,0x6e])](_0x353865([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x426da7,_0x1377ad)=>{if(_0x1377ad[0x0]!=_0x57b954)return _0x480dfb(_0x353865([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1377ad[0x1]={..._0x1377ad[0x1],[_0x353865([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29559a};},{[_0x353865([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x353865([0x68,0x69,0x67,0x68])}),_0x109448[_0x353865([0x6f,0x6e])](_0x353865([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1ccb86=>{_0x100180(_0x1ccb86[_0x353865([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x856056=!0x0,_0x3ee4fb(_0x1ccb86[_0x353865([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x353865([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x353865([0x6c,0x6f,0x77])}),_0x274c90[_0x353865([0x74,0x68,0x65,0x6e])](()=>{_0x856056||_0x480dfb(_0x353865([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2dbdd9(){return _0x109448[_0x353865([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x353865([0x76,0x69,0x65,0x77])][_0x353865([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x353865([0x61,0x75,0x74,0x6f]);}function _0x11f899(){_0x109448[_0x353865([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x353865([0x76,0x69,0x65,0x77])][_0x353865([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x353865([0x61,0x75,0x74,0x6f]);}}(_0x1314f6[_0x353865([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1314f6[_0x353865([0x6a,0x74,0x69])]));const _0x320795=await(async function(){let _0x439b19=!0x0;try{const _0x4d5b5b=_0x4ef9e1[_0x353865([0x73,0x70,0x6c,0x69,0x74])](_0x353865([0x2e])),[_0x48b136,_0x1f7ffb,_0x1420a3]=_0x4d5b5b;return _0x567408(_0x48b136),await _0x1903cb(_0x48b136,_0x1f7ffb,_0x1420a3),_0x439b19;}catch{return!0x1;}function _0x567408(_0x518eb7){const _0x221f19=_0x4c123e(_0x518eb7);_0x221f19&&_0x221f19[_0x353865([0x61,0x6c,0x67])]==_0x353865([0x45,0x53,0x32,0x35,0x36])||(_0x439b19=!0x1);}async function _0x1903cb(_0x25d08c,_0xbc12ae,_0x312a01){const _0x205070=window[_0x353865([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x353865([0x66,0x72,0x6f,0x6d])](_0x8d38be(_0x312a01),_0x1ee9c9=>_0x1ee9c9[_0x353865([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3f69a4=new window[(_0x353865([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x353865([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25d08c+_0x353865([0x2e])+_0xbc12ae),_0xe5b8e=window[_0x353865([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x353865([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe5b8e)return;const _0x385b09=await _0xe5b8e[_0x353865([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x353865([0x6a,0x77,0x6b]),_0xdae0f7,{[_0x353865([0x6e,0x61,0x6d,0x65])]:_0x353865([0x45,0x43,0x44,0x53,0x41]),[_0x353865([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x353865([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x353865([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe5b8e[_0x353865([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x353865([0x6e,0x61,0x6d,0x65])]:_0x353865([0x45,0x43,0x44,0x53,0x41]),[_0x353865([0x68,0x61,0x73,0x68])]:{[_0x353865([0x6e,0x61,0x6d,0x65])]:_0x353865([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x385b09,_0x205070,_0x3f69a4)||(_0x439b19=!0x1);}}());return _0x320795?(function(){const _0xd3b882=_0x1314f6[_0x353865([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xd3b882)return!0x1;if(_0xd3b882[_0x353865([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x353865([0x2a])))return!0x0;if(_0xd3b882[_0x353865([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x353865([0x43,0x4d,0x54])))return!0x0;if(_0xd3b882[_0x353865([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x353865([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x353865([0x67,0x6c,0x6f,0x62])]&&window[_0x353865([0x67,0x6c,0x6f,0x62])][_0x353865([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;if(_0xd3b882[_0x353865([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x353865([0x52,0x43,0x4d,0x54]))){if(_0x44a6f9(_0x353865([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&(_0x41a03f=_0x353865([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]),_0x109448[_0x353865([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x353865([0x67,0x65,0x74])](_0x41a03f))[_0x353865([0x73,0x74,0x61,0x74,0x65])]==_0x353865([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0x44a6f9(_0x353865([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]))||_0x44a6f9(_0x353865([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72])))return!0x0;}var _0x41a03f;return!0x1;}())?(function(){const _0x3ba6e5=[_0x353865([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x353865([0x74,0x72,0x69,0x61,0x6c])][_0x353865([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1314f6[_0x353865([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x205b15/0x3e8:0x68f03580;return _0x1314f6[_0x353865([0x65,0x78,0x70])]<_0x3ba6e5;}())?_0x353865([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x99e368=_0x1314f6[_0x353865([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x99e368||0x0==_0x99e368[_0x353865([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3b9043}=new URL(window[_0x353865([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x99e368[_0x353865([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b9043))return!0x0;const _0x37926a=_0x3b9043[_0x353865([0x73,0x70,0x6c,0x69,0x74])](_0x353865([0x2e]));return _0x99e368[_0x353865([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x288bce=>_0x288bce[_0x353865([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x353865([0x2a])))[_0x353865([0x6d,0x61,0x70])](_0x4f9a1f=>_0x4f9a1f[_0x353865([0x73,0x70,0x6c,0x69,0x74])](_0x353865([0x2e])))[_0x353865([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fa8c4=>_0x4fa8c4[_0x353865([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x37926a[_0x353865([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x353865([0x6d,0x61,0x70])](_0x56f846=>Array(_0x37926a[_0x353865([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x56f846[_0x353865([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x353865([0x66,0x69,0x6c,0x6c])](_0x56f846[0x0]===_0x353865([0x2a])?_0x353865([0x2a]):'')[_0x353865([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x56f846))[_0x353865([0x73,0x6f,0x6d,0x65])](_0x2e7304=>_0x37926a[_0x353865([0x65,0x76,0x65,0x72,0x79])]((_0x540def,_0x552384)=>_0x2e7304[_0x552384]===_0x540def||_0x2e7304[_0x552384]===_0x353865([0x2a])));}())?(_0x1314f6[_0x353865([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x353865([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3c0b86=_0x45b4c7(_0x353865([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1314f6[_0x353865([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x353865([0x74,0x72,0x69,0x61,0x6c])&&(_0x3c0b86=_0x45b4c7(_0x353865([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x3c0b86&&_0x4942ba)return new window[(_0x353865([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x323722,_0x4d2d18)=>{_0x3c0b86[_0x353865([0x74,0x68,0x65,0x6e])](_0x323722,_0x4d2d18),_0x4942ba[_0x353865([0x74,0x68,0x65,0x6e])](_0x2f6d66=>{_0x2f6d66!=_0x353865([0x56,0x61,0x6c,0x69,0x64])&&_0x323722(_0x2f6d66);},_0x4d2d18);});return _0x3c0b86||_0x4942ba||_0x353865([0x56,0x61,0x6c,0x69,0x64]);}())):_0x353865([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x353865([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x353865([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x353865([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x45b4c7(_0x581e1a){const _0x4d6106=[new window[(_0x353865([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aa911=>setTimeout(_0x3aa911,0x93ecc)),_0x274c90[_0x353865([0x74,0x68,0x65,0x6e])](()=>new window[(_0x353865([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53a7b7=>{let _0x5515d2=0x0;_0x109448[_0x353865([0x6d,0x6f,0x64,0x65,0x6c])][_0x353865([0x6f,0x6e])](_0x353865([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x466ef7,_0x5440c6)=>{_0x5440c6[0x0][_0x353865([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5515d2++,0x1f8==_0x5515d2&&(_0x53a7b7(),_0x466ef7[_0x353865([0x6f,0x66,0x66])]());});}))];return window[_0x353865([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x353865([0x72,0x61,0x63,0x65])](_0x4d6106)[_0x353865([0x74,0x68,0x65,0x6e])](()=>_0x581e1a);}function _0x4c123e(_0x5e4efc){return _0x5e4efc[_0x353865([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x353865([0x65,0x79]))?JSON[_0x353865([0x70,0x61,0x72,0x73,0x65])](_0x8d38be(_0x5e4efc)):null;}function _0x8d38be(_0x334b65){return window[_0x353865([0x61,0x74,0x6f,0x62])](_0x334b65[_0x353865([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x353865([0x2b]))[_0x353865([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x353865([0x2f])));}function _0x237476(_0x56a88d){let _0x17c75c=0x1505;function _0x5a8aca(_0x2ccfad){for(let _0xa01a18=0x0;_0xa01a18<_0x2ccfad[_0x353865([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa01a18++){const _0x159316=_0x2ccfad[_0x353865([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xa01a18);_0x17c75c=(_0x17c75c<<0x5)+_0x17c75c+_0x159316,_0x17c75c&=_0x17c75c;}}return function _0x673a1f(_0x3be925){Array[_0x353865([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3be925)?_0x3be925[_0x353865([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x673a1f):_0x3be925&&typeof _0x3be925==_0x353865([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x353865([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3be925)[_0x353865([0x73,0x6f,0x72,0x74])]()[_0x353865([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x320fd8,_0x243e71])=>{_0x5a8aca(_0x320fd8),_0x673a1f(_0x243e71);}):_0x5a8aca(window[_0x353865([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3be925));}(_0x56a88d),_0x17c75c>>>0x0;}function _0x57f784(_0x58d38a){return _0x58d38a[_0x353865([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x353865([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x353865([0x30]));}function _0x20b346(_0x4e8170){return _0x4e8170[_0x353865([0x73,0x70,0x6c,0x69,0x74])]('')[_0x353865([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x353865([0x6a,0x6f,0x69,0x6e])]('');}function _0x44a6f9(_0x462eb3){return _0x109448[_0x353865([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x353865([0x68,0x61,0x73])](_0x462eb3);}function _0x5c55a8(){}function _0x353865(_0x4772b8){return _0x4772b8['map'](_0x45b2b3=>String['fromCharCode'](_0x45b2b3))['join']('');}!function(_0x4dc645){const _0x49d068=(function(){const _0x5e654c=window[_0x353865([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x353865([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x353865([0x6e,0x6f,0x77])]())[_0x353865([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x353865([0x2e]),'');let _0x275dd7=_0x353865([0x4b]);for(let _0x227177=0x0;_0x227177<_0x5e654c[_0x353865([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x227177+=0x2){let _0x5f7fda=window[_0x353865([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e654c[_0x353865([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x227177,_0x227177+0x2));_0x5f7fda>=_0x24370d[_0x353865([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5f7fda-=_0x24370d[_0x353865([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x275dd7+=_0x24370d[_0x5f7fda];}return _0x275dd7;}());_0x109448[_0x49d068]=_0x353865([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4dc645,_0x4dc645!=_0x353865([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x274c90,_0x109448[_0x353865([0x6d,0x6f,0x64,0x65,0x6c])][_0x353865([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c55a8,_0x109448[_0x353865([0x6d,0x6f,0x64,0x65,0x6c])][_0x353865([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c55a8,_0x109448[_0x353865([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x353865([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x5aa7aa);}class CommentsUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[CommentsRepository,CommentsEditing,EditorAnnotations,Annotations];}get['CommentsListView'](){return CommentsListView;}get['CommentThreadInputView'](){return CommentThreadInputView;}['init'](){const _0xbeffb6=this['editor'],_0x19f135=_0xbeffb6['plugins']['get'](CommentsRepository),_0x4cdae8=_0xbeffb6['plugins']['get'](CommentsEditing),_0x46e6b5=_0xbeffb6['plugins']['get'](Annotations),_0x10e89e=_0xbeffb6['plugins']['get'](EditorAnnotations);_0xbeffb6['ui']['componentFactory']['add']('comment',()=>{const _0x2f3606=this['_createUIButton'](ButtonView);return _0x2f3606['tooltip']=!0x0,_0x2f3606;}),_0xbeffb6['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](MenuBarMenuListItemButtonView)),_0x10e89e['addSourceCollector'](()=>{const _0x204570=[];for(const [_0x451ec0,_0x37013f]of _0x19f135['_threadToController']){const _0x330d28=_0x4cdae8['getAllMarkersForId'](_0x451ec0['id']),_0x2070f8=_0x330d28['map'](_0x103a70=>_0x103a70['getRange']());_0x330d28['length']>0x0&&_0x204570['push']([_0x37013f['view'],_0x2070f8]);}return _0x204570;}),this['listenTo'](_0x46e6b5,'change:activeAnnotations',(_0x37a3c8,_0x4c9bce,_0x222c88)=>{const _0x38c8a6=Array['from'](_0x222c88)['map'](_0x333fcb=>_0x333fcb['innerView'])['find'](_0xa3c027=>_0x19f135['_viewToController']['has'](_0xa3c027));if(!_0x38c8a6)return void(_0x4cdae8['activeMarker']=null);const _0x784115=_0x19f135['_viewToController']['get'](_0x38c8a6)['model']['id'],_0xf5a4e7='comment:'+_0x784115;_0x784115&&_0x4cdae8['hasMarkerForId'](_0x784115)?_0x4cdae8['activeMarker']=_0xf5a4e7:_0x4cdae8['activeMarker']&&(_0x4cdae8['activeMarker']=null);}),this['listenTo'](_0x19f135,'removeCommentThread',(_0x3ef58a,{threadId:_0x5ac8c5,isFromAdapter:_0x65fb8c})=>{!_0x65fb8c&&_0xbeffb6['ui']['focusTracker']['isFocused']&&_0x4cdae8['hasMarkerForId'](_0x5ac8c5)&&_0xbeffb6['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x19f135,'addComment',(_0x39cf8b,{threadId:_0x5ac973,isFromAdapter:_0x10c50f})=>{if(_0x10c50f||!_0x4cdae8['hasMarkerForId'](_0x5ac973)||!_0x19f135['hasCommentThread'](_0x5ac973))return;0x1===_0x19f135['getCommentThread'](_0x5ac973)['length']&&(_0xbeffb6['editing']['view']['focus'](),_0x39cf8b['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x502284=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f0186;for(const _0x5f3f91 in _0x502284){const _0x2b4d9b=_0x5f3f91,_0xb5e57f=_0x502284[_0x2b4d9b];if('commentsLicenseKeyValid'==_0xb5e57f||'commentsLicenseKeyInvalid'==_0xb5e57f||'commentsLicenseKeyExpired'==_0xb5e57f||'commentsLicenseKeyDomainLimit'==_0xb5e57f||'commentsLicenseKeyNotAllowed'==_0xb5e57f||'commentsLicenseKeyEvaluationLimit'==_0xb5e57f||'commentsLicenseKeyTrialLimit'==_0xb5e57f||'commentsLicenseKeyUsageLimit'==_0xb5e57f){delete _0x502284[_0x2b4d9b],_0x1f0186=_0xb5e57f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x1f0186&&_0x502284['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x1f0186&&_0x502284['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x1f0186&&_0x502284['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x1f0186&&_0x502284['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x1f0186&&_0x502284['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x1f0186&&_0x502284['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x1f0186&&_0x502284['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x566d7f){const _0x275fe3=this['editor'],_0x3c6537=new _0x566d7f(_0x275fe3['locale']),_0x16f680=_0x275fe3['commands']['get']('addCommentThread');return _0x3c6537['set']({'label':getTranslation$f(_0x275fe3['locale'],'Comment'),'icon':IconAddComment}),_0x3c6537['bind']('isEnabled')['to'](_0x16f680,'hasContent'),this['listenTo'](_0x3c6537,'execute',()=>{_0x16f680['execute']();}),_0x3c6537;}}class CommentsOnly extends Plugin{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[CommentsEditing];}constructor(_0x5e29ce){super(_0x5e29ce),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x102d34,_0x318fe8,_0x25cdbc)=>{_0x25cdbc?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x185dcf,_0x476831]of this['editor']['commands'])_0x476831['affectsData']&&'addCommentThread'!==_0x185dcf&&_0x476831['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x3cd3cf=this['editor']['editing']['view']['document'];this['listenTo'](_0x3cd3cf,'cut',_0x226c69=>_0x226c69['stop'](),{'priority':'highest'}),this['listenTo'](_0x3cd3cf,'clipboardInput',_0x29613c=>_0x29613c['stop'](),{'priority':'highest'}),this['listenTo'](_0x3cd3cf,'delete',_0x3381f3=>_0x3381f3['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x24b598,_0x3439b0]of this['editor']['commands'])_0x3439b0['affectsData']&&'addCommentThread'!==_0x24b598&&_0x3439b0['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class AnnotationsUIs extends ContextPlugin{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[Annotations];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xec15e0){super(_0xec15e0),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x4f930c=this['context']['plugins']['get'](Annotations);this['listenTo'](_0x4f930c,'_activateAnnotation',(_0x2e0bf1,_0x5058f1)=>{for(const _0x44318a of this['activeUIs']){const _0x8bc60=this['_uis']['get'](_0x44318a);(0x0,this['uisData']['get'](_0x44318a)['filter'])(_0x5058f1)&&_0x8bc60['setActiveAnnotation'](_0x5058f1);}}),this['listenTo'](_0x4f930c,'_deactivateAllAnnotations',()=>{for(const _0x162716 of this['activeUIs']){this['_uis']['get'](_0x162716)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4f930c['_visibleAnnotations'],'add',(_0x1be0d8,_0x3d048c)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3d048c);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x3ab1c4){return this['activeUIs']['has'](_0x3ab1c4);}['activate'](_0x2ce4ed,_0x2b9fa4=this['defaultFilter']){const _0xad3688=this['context']['plugins']['get'](Annotations);if(!this['_uis']['has'](_0x2ce4ed))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x2ce4ed});this['isActive'](_0x2ce4ed)&&this['deactivate'](_0x2ce4ed),this['activeUIs']['add'](_0x2ce4ed);const _0x5d0357=new AnnotationCollection();bindAnnotationCollections({'source':_0xad3688['_visibleAnnotations'],'target':_0x5d0357,'filter':_0x2b9fa4}),this['uisData']['set'](_0x2ce4ed,{'collection':_0x5d0357,'filter':_0x2b9fa4});const _0x539a00=this['_uis']['get'](_0x2ce4ed);_0x539a00['attach'](_0x5d0357),this['listenTo'](_0x539a00,'change:activeAnnotation',(_0xcc0c8,_0x630d15,_0x57161d,_0x492c95)=>{_0x492c95&&_0xad3688['_removeActiveAnnotation'](_0x492c95),_0x57161d&&_0xad3688['_addActiveAnnotation'](_0x57161d);});}['deactivate'](_0xb3699){if(this['activeUIs']['delete'](_0xb3699),!this['_uis']['has'](_0xb3699))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0xb3699});const _0x1d7e0c=this['_uis']['get'](_0xb3699);_0x1d7e0c['detach'](),this['stopListening'](_0x1d7e0c),this['uisData']['get'](_0xb3699)['collection']['destroy'](),this['uisData']['delete'](_0xb3699);}['switchTo'](_0x49b560){if(!this['_uis']['has'](_0x49b560))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x49b560});const _0x3bb56f=this['context']['plugins']['get'](Annotations),_0x191d61=Array['from'](_0x3bb56f['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x49b560);const _0x8d4338=this['_uis']['get'](_0x49b560);_0x8d4338['setActiveAnnotation'](_0x191d61),_0x8d4338['_setSelectedAnnotations']&&_0x191d61&&_0x8d4338['_setSelectedAnnotations']([_0x191d61]);}['deactivateAll'](){for(const _0x251b4e of this['activeUIs'])this['deactivate'](_0x251b4e);}['register'](_0x454cb2,_0xfeaceb){if(this['_uis']['has'](_0x454cb2))throw new CKEditorError('annotationsuis-register-already-registered');if('function'!=typeof _0xfeaceb['attach']||'function'!=typeof _0xfeaceb['detach']||'function'!=typeof _0xfeaceb['setActiveAnnotation'])throw new CKEditorError('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x454cb2,_0xfeaceb);}['refilterAnnotations'](){const _0x1b3b3d=this['context']['plugins']['get'](Annotations)['collection'],_0x2fec31=new Map(),_0x1c6e8a=Array['from'](this['activeUIs']);for(const _0x35f29e of this['activeUIs']){const _0xe62958=this['uisData']['get'](_0x35f29e)['collection'];for(const _0x421e6d of _0xe62958)_0x2fec31['set'](_0x421e6d,_0x35f29e);}for(const _0x38591b of _0x1b3b3d){const _0x28d711=_0x2fec31['get'](_0x38591b);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x38591b);const _0x397730=_0x1c6e8a['find'](_0x3b72ac=>this['uisData']['get'](_0x3b72ac)['filter'](_0x38591b));_0x28d711!==_0x397730&&(_0x28d711&&this['uisData']['get'](_0x28d711)['collection']['remove'](_0x38591b),_0x397730&&this['uisData']['get'](_0x397730)['collection']['add'](_0x38591b));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xaeb542){const _0x112598=[];for(const _0x1191fb of this['activeUIs']){(0x0,this['uisData']['get'](_0x1191fb)['filter'])(_0xaeb542)&&_0x112598['push'](_0x1191fb);}if(_0x112598['length']>0x1)throw new CKEditorError('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x112598,'annotationType':_0xaeb542['type']});}}const toPx$2=/* #__PURE__ -- @preserve */
toUnit('px');class AnnotationsSidebarView extends View{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x136eda){super(_0x136eda);const _0x2ee345=this['bindTemplate'];this['set']('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this['focusables']=this['createCollection'](),this['list']['delegate']('arrowup','arrowdown')['to'](this),this['focusTracker']=new FocusTracker(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x2ee345['to']('class')],'style':{'minHeight':_0x2ee345['to']('minHeight',_0x8625aa=>'number'==typeof _0x8625aa?toPx$2(_0x8625aa+0xa):null)},'dir':_0x136eda['uiLanguageDirection'],'role':'application','aria-label':getTranslation$f(_0x136eda,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':getTranslation$f(_0x136eda,'Annotations\x20list')},'children':this['list']}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_setupKeyboardNavigation'](){this['list']['delegate']('change:top')['to'](this),this['on']('change:top',_0x3286a8=>{this['_updateItemPositionInFocusables'](_0x3286a8['source']);}),this['list']['forEach'](_0x43919b=>{this['focusTracker']['add'](_0x43919b['element']),this['_updateItemPositionInFocusables'](_0x43919b);}),this['list']['on']('change',(_0x35e1d6,_0xe8ca)=>{for(const _0x49b466 of _0xe8ca['removed'])this['focusTracker']['remove'](_0x49b466['element']),this['focusables']['remove'](_0x49b466);for(const _0x290274 of _0xe8ca['added'])this['focusTracker']['add'](_0x290274['element']),this['_updateItemPositionInFocusables'](_0x290274);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x46148d){const _0x178e33=this['focusables']['getIndex'](_0x46148d);let _0x2a7c4b,_0x3fa7d5;for(const _0x3fbf12 of this['focusables'])if(_0x46148d['top']<_0x3fbf12['top']){_0x2a7c4b=_0x3fbf12;break;}if(_0x3fa7d5=_0x2a7c4b?this['focusables']['getIndex'](_0x2a7c4b):this['focusables']['length'],-0x1!==_0x178e33){if(_0x178e33===_0x3fa7d5-0x1)return;this['focusables']['remove'](_0x46148d),_0x3fa7d5=_0x2a7c4b?this['focusables']['getIndex'](_0x2a7c4b):this['focusables']['length'];}this['focusables']['add'](_0x46148d,_0x3fa7d5);}}const toPx$1=/* #__PURE__ -- @preserve */
toUnit('px');class AnnotationsSidebarItemView extends View{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x47be09){super(_0x47be09),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x401c8e,_0x40c29a)=>_0x401c8e+_0x40c29a),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=createMutationObserver(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x159f70=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x159f70['to']('isAnimationDisabled',_0x5ef9b4=>_0x5ef9b4?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x159f70['to']('top',_0x4929ae=>toPx$1(_0x4929ae))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x1e5bbf=this['element']['clientHeight'];_0x1e5bbf&&(this['height']=_0x1e5bbf);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class Sidebar extends ContextPlugin{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a11ce){super(_0x4a11ce),this['set']('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context']['config']['define']('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}['init'](){const _0x3e2ddc=this['context']['config']['get']('sidebar.container');_0x3e2ddc&&this['setContainer'](_0x3e2ddc);}['setContainer'](_0x544f26){if(!isElement(_0x544f26))throw new CKEditorError('sidebar-setcontainer-invalid-element');this['container']=_0x544f26;}['_attachToContainer']({viewClass:_0x8d2e10='',spaceBetweenItems:_0x38a1e0=0x19}={}){if(!isElement(this['container']))throw new CKEditorError('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x8d2e10,this['_spaceBetweenItems']=_0x38a1e0;}['rearrange']({removedAnnotation:_0x708f48,previousAnnotation:_0x46e6b1,nextAnnotation:_0xf40156}){const _0x42335a=this['getSidebarItemView'](_0x708f48);this['view']['list']['remove'](_0x42335a),this['_destroySidebarItemView'](_0x708f48),_0x46e6b1&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x46e6b1)),_0xf40156&&this['_alignToTargetRect'](this['getSidebarItemView'](_0xf40156)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x5a87b1,activatedAnnotation:_0x6c8350,disableAnimationOnActivatedAnnotation:_0xbd1060}){if(this['_activeAnnotation']=_0x6c8350,_0x5a87b1){_0x5a87b1['isActive']=!0x1;const _0x3e7ebb=this['getSidebarItemView'](_0x5a87b1);_0x3e7ebb&&_0xbd1060&&(_0x3e7ebb['isAnimationDisabled']=!0x1);}if(_0x6c8350){const _0x1495d9=this['getSidebarItemView'](_0x6c8350);_0x1495d9&&(_0x6c8350['isActive']=!0x0,_0xbd1060&&(_0x1495d9['isAnimationDisabled']=!0x0,_0x1495d9['top']+=0x1),this['_alignToTargetRect'](_0x1495d9));}}['_detachFromContainer'](_0x21de34){if(this['view']['element']['remove'](),_0x21de34){for(const _0xd0bc07 of _0x21de34)this['_destroySidebarItemView'](_0xd0bc07);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x3c63e4,_0xa349b9){_0xa349b9||(_0xa349b9=_0x3c63e4['view']);const _0x1f45be=new AnnotationsSidebarItemView(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x1f45be,_0x3c63e4),this['_annotationToSidebarItemView']['set'](_0x3c63e4,_0x1f45be),_0x1f45be['content']['add'](_0xa349b9),this['listenTo'](_0x3c63e4['view'],'change:targetRect',(_0x2d2614,_0x2f1037,_0x49d2a6)=>{const _0x241504=this['_getTargetTop'](_0x3c63e4,_0x49d2a6);_0x1f45be['_targetTop']!=_0x241504&&(_0x1f45be['_targetTop']=_0x241504,this['_setItemTop'](_0x1f45be,_0x241504));}),this['listenTo'](_0x1f45be,'change:top',()=>{this['_recalculate'](_0x1f45be,'top');}),this['listenTo'](_0x1f45be,'change:bottom',()=>{this['_recalculate'](_0x1f45be,'bottom');}),this['_alignToTargetRect'](_0x1f45be);const _0x3a1bbe=this['_getItemBefore'](_0x1f45be);if(_0x3a1bbe)this['_alignAfterItem'](_0x3a1bbe,_0x1f45be)||this['_alignToTargetRect'](_0x1f45be);else this['_alignToTargetRect'](_0x1f45be);return this['_updateLastItem'](),this['view']['list']['add'](_0x1f45be),_0x1f45be;}['_alignForTopChange'](_0x2eecc3){if(!_0x2eecc3['content']['length'])return;const _0x1a75de=this['_getItemBefore'](_0x2eecc3);if(!_0x1a75de)return;const _0x2fe5b2=this['_sidebarItemViewToAnnotation']['get'](_0x1a75de),_0x382876=this['_activeAnnotation'];_0x382876&&_0x382876===_0x2fe5b2?this['_alignAfterItem'](_0x1a75de,_0x2eecc3):this['_alignBeforeItem'](_0x2eecc3,_0x1a75de);}['_alignForBottomChange'](_0xaa6210){if(!_0xaa6210['content']['length'])return;const _0x140f58=this['_getItemAfter'](_0xaa6210);if(!_0x140f58)return;const _0x16fd4d=this['_sidebarItemViewToAnnotation']['get'](_0x140f58),_0x13fab6=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x589c0e=this['_activeAnnotation'];_0x589c0e&&_0x589c0e===_0x16fd4d&&_0x13fab6?(this['_alignBeforeItem'](_0x140f58,_0xaa6210),this['_alignAfterItem'](_0xaa6210,_0x140f58)):_0x589c0e&&_0x589c0e===_0x16fd4d?this['_alignBeforeItem'](_0x140f58,_0xaa6210):this['_alignAfterItem'](_0xaa6210,_0x140f58);}['_recalculate'](_0x1049c1,_0x53addc){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x8968b1,changedProp:_0x56a93f}of this['_recalculateBuffer'])'top'===_0x56a93f?this['_alignForTopChange'](_0x8968b1):this['_alignForBottomChange'](_0x8968b1);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x1049c1,'changedProp':_0x53addc});}['getSidebarItemView'](_0x489983){return this['_annotationToSidebarItemView']['get'](_0x489983);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x5da2ee){const _0x2df189=this['getSidebarItemView'](_0x5da2ee);this['stopListening'](_0x2df189),this['stopListening'](_0x5da2ee['view']),_0x2df189['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x5da2ee),this['_sidebarItemViewToAnnotation']['delete'](_0x2df189);}['_createSidebarView'](){const _0x232273=new AnnotationsSidebarView(this['context']['locale']);return _0x232273['render'](),this['on']('change:_lastItem',(_0x590e98,_0x8e93d3,_0x26a2b3,_0x320567)=>{_0x320567&&_0x232273['unbind']('minHeight'),_0x26a2b3?_0x232273['bind']('minHeight')['to'](_0x26a2b3,'bottom'):_0x232273['minHeight']=null;}),_0x232273;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x5c024e){const _0x5754a7=this['_sidebarItemViewToAnnotation']['get'](_0x5c024e),_0x53a3a6=_0x5754a7&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5754a7)-0x1);return _0x53a3a6&&this['getSidebarItemView'](_0x53a3a6)||null;}['_getItemAfter'](_0x22b879){const _0x5f91fe=this['_sidebarItemViewToAnnotation']['get'](_0x22b879),_0x180a79=_0x5f91fe&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5f91fe)+0x1);return _0x180a79&&this['getSidebarItemView'](_0x180a79)||null;}['_alignBeforeItem'](_0x31eb27,_0x1fdbeb){_0x31eb27['updateHeight']();const _0x5d4713=getOverlap(_0x1fdbeb['bottom']+this['_spaceBetweenItems'],_0x31eb27['top']);return!!_0x5d4713&&(this['_setItemTop'](_0x1fdbeb,_0x1fdbeb['top']-_0x5d4713),!0x0);}['_alignAfterItem'](_0x40782d,_0x5d7139){_0x40782d['updateHeight']();const _0x2c627e=getOverlap(_0x40782d['bottom']+this['_spaceBetweenItems'],_0x5d7139['top']);return!!_0x2c627e&&(this['_setItemTop'](_0x5d7139,_0x5d7139['top']+_0x2c627e,!0x1),!0x0);}['_alignToTargetRect'](_0x16f651){const _0x1ac2c4=this['_sidebarItemViewToAnnotation']['get'](_0x16f651);if(!_0x1ac2c4||!_0x1ac2c4['target']||!_0x1ac2c4['targetRect'])return;const _0x55f3fc=this['_getTargetTop'](_0x1ac2c4,_0x1ac2c4['targetRect']);this['_setItemTop'](_0x16f651,_0x55f3fc);}['_getTargetTop'](_0x4882a4,_0x4a4295){if(null===_0x4a4295)return 0x0;if(_0x4882a4['target']instanceof Rect)return _0x4a4295['top'];{const _0x2bdac1=new Rect(this['view']['element'])['top'];return _0x4a4295['top']-_0x2bdac1;}}['_setItemTop'](_0x5aeb2e,_0x141155,_0xaf4717=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0xaf4717&&(_0x141155=Math['max'](_0x141155,this['_getMaxAvailableTop'](_0x5aeb2e))),_0x5aeb2e['top']=_0x141155;}['_getMaxAvailableTop'](_0x25f4d5){let _0x10208f=this['_getItemBefore'](_0x25f4d5),_0x50ea36=0x0;for(;_0x10208f;)_0x10208f['updateHeight'](),_0x50ea36+=this['_spaceBetweenItems']+_0x10208f['height'],_0x10208f=this['_getItemBefore'](_0x10208f);return _0x50ea36;}}function getOverlap(_0x163d1a,_0x1017fa){return Math['max'](_0x163d1a-_0x1017fa,0x0);}function isElement(_0xdde38f){return null!==_0xdde38f&&'object'==typeof _0xdde38f&&0x1===_0xdde38f['nodeType'];}class WideSidebar extends ContextPlugin{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[Sidebar,AnnotationsUIs];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x421623){super(_0x421623),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new Collection(),this['_refreshPositioningDebounced']=debounce$1(()=>{_0x421623['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x518c33=this['context']['plugins']['get'](AnnotationsUIs),_0x4896cc=this['context']['plugins']['get'](Sidebar);_0x518c33['register']('wideSidebar',this),_0x4896cc['container']&&_0x518c33['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x3c6945){if(_0x3c6945===this['activeAnnotation'])return;const _0x4ce326=this['context']['plugins']['get'](Sidebar);_0x4ce326['_activeAnnotation']=_0x3c6945;const _0x2aa6c3=this['activeAnnotation'];_0x4ce326['refresh']({'blurredAnnotation':_0x2aa6c3,'activatedAnnotation':_0x3c6945}),this['activeAnnotation']=_0x3c6945;}['attach'](_0x6df8b8){this['annotations']=_0x6df8b8;const _0x3af9e4=this['context']['plugins']['get'](Sidebar);if(_0x3af9e4['_annotations']=_0x6df8b8,this['isAttached'])throw new CKEditorError('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3af9e4,'set:container',()=>{this['detach'](),this['listenTo'](_0x3af9e4,'change:container',_0x13e824=>{_0x13e824['off'](),this['attach'](_0x6df8b8);});}),_0x3af9e4['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x17fced=_0x1cdc51=>{_0x1cdc51['updateTargetRect'](),_0x3af9e4['addAnnotation'](_0x1cdc51);};for(const _0x368597 of _0x6df8b8)_0x17fced(_0x368597);this['listenTo'](_0x6df8b8,'add',(_0x41cba5,_0x3ae525)=>{_0x17fced(_0x3ae525);}),this['listenTo'](_0x6df8b8,'remove',(_0x46e803,_0x79faed,_0x2fc6c5)=>{_0x3af9e4['rearrange']({'removedAnnotation':_0x79faed,'previousAnnotation':_0x6df8b8['get'](_0x2fc6c5-0x1),'nextAnnotation':_0x6df8b8['get'](_0x2fc6c5+0x1)}),_0x79faed===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x6df8b8,'focus',(_0x5c53d3,_0x46ee99)=>{this['setActiveAnnotation'](_0x46ee99);}),this['listenTo'](_0x6df8b8,'blur',()=>{this['setActiveAnnotation'](null);});const _0x1df4f6=this['context']instanceof Context$1?this['context']['editors']:new Collection([this['context']]);for(const _0x25863f of _0x1df4f6)this['_integrateWithEditorAnnotations'](_0x25863f);this['listenTo'](_0x1df4f6,'add',(_0x4fffb7,_0x16b22b)=>{this['listenTo'](_0x16b22b,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x16b22b);});}),this['listenTo'](_0x1df4f6,'remove',(_0xfd3afc,_0x235163)=>{_0x235163['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x235163['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new CKEditorError('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x187e5f=this['context']['plugins']['get'](Sidebar);_0x187e5f['_detachFromContainer'](this['annotations']),this['stopListening'](_0x187e5f),this['stopListening'](this['annotations']),this['context']instanceof Context$1&&this['stopListening'](this['context']['editors']);for(const _0xcb5b68 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0xcb5b68);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0xae22b8){if(!_0xae22b8['plugins']['has']('EditorAnnotations'))return;const _0x18c20c=_0xae22b8['plugins']['get']('EditorAnnotations'),_0x5689a6=()=>{const _0x2f6984=_0x18c20c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x2f6984[0x0]||null);};this['listenTo'](_0x18c20c,'refresh',_0x5689a6),this['listenTo'](_0x18c20c,'blur',(_0x20bd19,{isAnnotationTracked:_0x92fc5b})=>{this['activeAnnotation']&&_0x92fc5b(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x18c20c,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x5d4db2=>{_0x18c20c['hasDomSelection']()&&(_0x5689a6(),_0x5d4db2['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x18c20c);}['_destroyEditorAnnotationsIntegration'](_0x3c0959){this['stopListening'](_0x3c0959),this['_editorAnnotations']['remove'](_0x3c0959);}}class AnnotationCounterButtonView extends ButtonView{['counterView'];constructor(_0x39062b){super(_0x39062b);const _0x24b8b9=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x3456a8,_0x2fca0c)=>_0x3456a8?'...':_0x2fca0c['toString']()),this['set']('annotationType',''),this['icon']=IconAddComment,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new View(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x24b8b9['to']('annotationType',_0x5ab04c=>'ck-annotation-counter__badge--'+_0x5ab04c),_0x24b8b9['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x24b8b9['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class NarrowSidebar extends ContextPlugin{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[Sidebar,AnnotationsUIs];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4449f6){super(_0x4449f6),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(DomEmitterMixin())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new Collection(),this['_refreshPositioningDebounced']=debounce$1(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](AnnotationsUIs)['register']('narrowSidebar',this),this['bodyCollection']=new BodyCollection(this['context']['locale']),this['balloonPanelView']=new BalloonPanelView(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x14fbec){this['annotations']=_0x14fbec;const _0x26ef8f=this['context']['plugins']['get'](Sidebar),_0x4ec8bb=this['balloonPanelView'];if(_0x26ef8f['_annotations']=_0x14fbec,this['isAttached'])throw new CKEditorError('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x26ef8f,'set:container',()=>{this['detach'](),this['listenTo'](_0x26ef8f,'change:container',_0x2663ae=>{_0x2663ae['off'](),this['attach'](_0x14fbec);});}),_0x26ef8f['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x39db1e=_0x36d3e8=>{const _0x59e45a=new AnnotationCounterButtonView(this['context']['locale']);_0x26ef8f['addAnnotation'](_0x36d3e8,_0x59e45a),this['_annotationToNarrowView']['set'](_0x36d3e8,_0x59e45a),_0x59e45a['bind']('isDirty','annotationType','number')['to'](_0x36d3e8['view'],'isDirty','type','length'),_0x59e45a['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x4ec8bb['content']['first']!==_0x36d3e8['view']?(this['_showBalloon'](_0x36d3e8),_0x36d3e8['view']['element']['focus'](),this['setActiveAnnotation'](_0x36d3e8)):this['setActiveAnnotation'](null);});};for(const _0x38a58b of _0x14fbec)_0x39db1e(_0x38a58b);this['listenTo'](_0x14fbec,'add',(_0x7e3742,_0x192c7f)=>{_0x39db1e(_0x192c7f);}),this['listenTo'](_0x14fbec,'remove',(_0x127a6b,_0x2ff622,_0x408dd7)=>{this['_annotationToNarrowView']['get'](_0x2ff622)['destroy'](),this['_annotationToNarrowView']['delete'](_0x2ff622),_0x26ef8f['rearrange']({'removedAnnotation':_0x2ff622,'previousAnnotation':_0x14fbec['get'](_0x408dd7-0x1),'nextAnnotation':_0x14fbec['get'](_0x408dd7+0x1)}),_0x2ff622===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x14fbec,'focus',(_0x46dde6,_0x5ba174)=>{this['setActiveAnnotation'](_0x5ba174);}),this['listenTo'](_0x14fbec,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x3c76f9,_0x4282f1)=>{_0x4282f1['keyCode']===keyCodes['esc']&&_0x4ec8bb['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x4ec8bb['content']['first']),this['_hideBalloon'](),_0x4282f1['stopPropagation'](),_0x4282f1['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x38cbed,_0x469f45)=>{const _0x34ae8d=_0x469f45['target'];_0x4ec8bb['isVisible']&&_0x4ec8bb['element']['contains'](_0x34ae8d)||_0x26ef8f['view']['element']['contains'](_0x34ae8d)||_0x38cbed['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x42f090=>_0x42f090['contains'](_0x34ae8d))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x586faf=this['context']instanceof Context$1?this['context']['editors']:new Collection([this['context']]);for(const _0x2bc9a0 of _0x586faf)this['_integrateWithEditorAnnotations'](_0x2bc9a0);this['listenTo'](_0x586faf,'add',(_0x5ef357,_0x5da2a0)=>{this['listenTo'](_0x5da2a0,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x5da2a0);});}),this['listenTo'](_0x586faf,'remove',(_0x45a69d,_0x501d09)=>{_0x501d09['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x501d09['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x19d18f){if(_0x19d18f===this['activeAnnotation'])return;const _0x1cab4b=this['context']['plugins']['get'](Sidebar);if(_0x1cab4b['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x19d18f,'disableAnimationOnActivatedAnnotation':!0x0}),_0x19d18f)_0x1cab4b['getSidebarItemView'](_0x19d18f)?this['_showBalloon'](_0x19d18f):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x19d18f;}['detach'](){if(!this['isAttached'])throw new CKEditorError('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x12b34e=this['context']['plugins']['get'](Sidebar);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x124631=>_0x124631['destroy']()),this['_annotationToNarrowView']['clear'](),_0x12b34e['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof Context$1&&this['stopListening'](this['context']['editors']);for(const _0x29efe7 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x29efe7);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x33ec00){if(!_0x33ec00['plugins']['has']('EditorAnnotations'))return;const _0x4e8d94=_0x33ec00['plugins']['get']('EditorAnnotations'),_0x390b9e=this['context']['plugins']['get'](Sidebar),_0x3078aa=this['annotations'],_0x3a5590=this['balloonPanelView'],_0x3d959a=()=>{const _0x4a3a7f=_0x4e8d94['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x4a3a7f),this['setActiveAnnotation'](_0x4a3a7f[0x0]||null);};this['listenTo'](_0x4e8d94,'refresh',_0x3d959a),this['listenTo'](_0x4e8d94,'blur',(_0x5f29a5,{isAnnotationTracked:_0x5d8be7})=>{this['activeAnnotation']&&_0x5d8be7(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x4e8d94,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x3078aa,'blur',_0x40fc07=>{_0x4e8d94['hasDomSelection']()&&_0x40fc07['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x882d0c,_0x11162c)=>{const _0x58f048=_0x11162c['target'];_0x3a5590['isVisible']&&_0x3a5590['element']['contains'](_0x58f048)||_0x390b9e['view']['element']['contains'](_0x58f048)||this['activeAnnotation']&&_0x4e8d94['hasDomSelection']()&&(_0x3d959a(),_0x882d0c['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4e8d94);}['_destroyEditorAnnotationsIntegration'](_0x1effbe){_0x1effbe&&(this['stopListening'](_0x1effbe),this['_editorAnnotations']['remove'](_0x1effbe));}['_setSelectedAnnotations'](_0x1925ba){for(const _0x13f672 of this['_selectedAnnotations'])_0x1925ba['includes'](_0x13f672)||this['_manuallyClosedAnnotationViews']['delete'](_0x13f672['view']);this['_selectedAnnotations']=_0x1925ba;}['_refreshPositioning'](){const _0x3c0363=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x3c0363['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x11ef2c){if(this['_manuallyClosedAnnotationViews']['has'](_0x11ef2c['view']))return;const _0x18e606=this['balloonPanelView']['content']['first'];_0x18e606!==_0x11ef2c['view']?(_0x18e606&&this['_detachListeners'](_0x18e606),this['_attachListeners'](_0x11ef2c['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x11ef2c['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x1ee0ca=this['balloonPanelView']['content']['first'],_0x37e9e9=_0x1ee0ca&&this['annotations']['getByView'](_0x1ee0ca);if(!_0x37e9e9||!this['_annotationToNarrowView']['has'](_0x37e9e9))return;const _0x1e34a9=this['_annotationToNarrowView']['get'](_0x37e9e9)['element'],_0x421c52=getBalloonPositions();this['balloonPanelView']['pin']({'target':_0x1e34a9,'positions':_0x421c52});}['_hideBalloon'](){const _0x27653c=this['balloonPanelView'],_0x2133fd=_0x27653c['content']['first'];_0x2133fd&&(this['_detachListeners'](_0x2133fd),_0x27653c['unpin'](),_0x27653c['content']['clear']());}['_attachListeners'](_0x3090a0){this['listenTo'](_0x3090a0,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x3090a0,'Esc',(_0x27cab7,_0x580149)=>{this['_manuallyClosedAnnotationViews']['add'](_0x3090a0),this['_hideBalloon'](),_0x580149();});}['_detachListeners'](_0x9efe48){this['stopListening'](_0x9efe48);}}function getBalloonPositions(){const _0x4a6a71=BalloonPanelView['defaultPositions'];return[_0x4a6a71['southArrowNorthEast'],_0x4a6a71['northArrowSouthEast'],_0x4a6a71['southArrowNorth'],_0x4a6a71['northArrowSouth'],_0x4a6a71['southArrowNorthWest'],_0x4a6a71['northArrowSouthWest']];}class InlineAnnotations extends Plugin{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[EditorAnnotations,ContextualBalloon,AnnotationsUIs];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17e3e9){super(_0x17e3e9),_0x17e3e9['editing']['view']['addObserver'](MouseObserver),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x17e3e9['plugins']['get'](ContextualBalloon),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x410aba=this['editor']['plugins']['get'](AnnotationsUIs);_0x410aba['context']===this['editor']&&(_0x410aba['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x5d66b5,_0x5b0d1b)=>{const _0x812b78=this['_balloon'];if(this['isAttached']&&_0x812b78['visibleView']){const _0x4320dd=this['annotations']['getByView'](_0x812b78['visibleView']);_0x4320dd&&this['_closeAnnotation'](_0x4320dd),_0x5b0d1b();}}));}['afterInit'](){const _0x36b358=this['editor']['plugins']['get'](AnnotationsUIs);_0x36b358['context']===this['editor']&&(_0x36b358['hasActive']()||_0x36b358['switchTo']('inline'));}['setActiveAnnotation'](_0x55808b){_0x55808b!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x55808b&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x55808b)&&this['_addAnnotationToBalloon'](_0x55808b,!0x0),_0x55808b['isActive']=!0x0),_0x55808b||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x55808b);}['attach'](_0x557d50){this['annotations']=_0x557d50;const _0x3878f4=this['editor']['plugins']['get'](AnnotationsUIs),_0xf03f6b=this['_balloon'];if(this['isAttached'])throw new CKEditorError('inlineannotations-attach-already-attached',this);if(_0x3878f4['context']!==this['editor'])throw new CKEditorError('inlineannotations-not-allowed-with-context',this);const _0xb41275=this['editor']['plugins']['get'](EditorAnnotations);this['listenTo'](_0xb41275,'refresh',()=>{const _0x50eb49=_0xb41275['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});!this['_forceRefresh']&&arraysEqual(_0x50eb49,this['_selectedAnnotations'])||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x50eb49),this['setActiveAnnotation'](_0x50eb49[0x0]||null));}),this['listenTo'](_0xb41275,'blur',(_0x195986,{isAnnotationTracked:_0x3f095c})=>{this['activeAnnotation']&&_0x3f095c(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x58bfd7,_0x3bfde2,_0x216f26)=>{_0x216f26||this['setActiveAnnotation'](null);}),this['listenTo'](_0x557d50,'remove',(_0x37a3b1,_0x25b93a)=>{this['_removeAnnotationFromBalloon'](_0x25b93a),_0x25b93a===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0xf03f6b,'change:visibleView',(_0x4548c1,_0x34c7a0,_0x1df5b5,_0x563f0d)=>{_0x563f0d&&this['stopListening'](_0x563f0d);const _0x3497ed=_0x557d50['getByView'](_0x1df5b5);_0x1df5b5&&_0x3497ed&&(this['listenTo'](_0x1df5b5,'change:height',()=>{_0xf03f6b['updatePosition']();}),this['listenTo'](_0x1df5b5,'Esc',()=>{this['_closeAnnotation'](_0x3497ed),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x3497ed&&this['setActiveAnnotation'](_0x3497ed));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0xf03f6b['visibleView']&&(_0x557d50['getByView'](_0xf03f6b['visibleView'])&&_0xf03f6b['updatePosition']());}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing']['view']['document']['selection']['editableElement']&&this['editor']['editing']['view']['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new CKEditorError('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x4e4262 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x4e4262);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x51067f){for(const _0x40e23c of this['_selectedAnnotations'])_0x51067f['includes'](_0x40e23c)||this['_manuallyClosed']['delete'](_0x40e23c);for(const _0x5e45a0 of this['annotations'])_0x51067f['includes'](_0x5e45a0)||this['_removeAnnotationFromBalloon'](_0x5e45a0);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x45d161 of _0x51067f)this['_addAnnotationToBalloon'](_0x45d161);}this['_selectedAnnotations']=_0x51067f;}['_addAnnotationToBalloon'](_0x250731,_0x1825ec=!0x1){this['_manuallyClosed']['has'](_0x250731)||(this['_addedAnnotations']['has'](_0x250731)||this['_balloon']['hasView'](_0x250731['view'])||(this['_addedAnnotations']['add'](_0x250731),this['_balloon']['add']({'stackId':_0x250731['view']['id'],'view':_0x250731['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x250731)}})),_0x1825ec&&this['_balloon']['showStack'](_0x250731['view']['id']));}['_getBalloonTargetForAnnotation'](_0x27fedb){const _0x2d98e6=_0x27fedb['target'],_0x3dd704=this['editor']['editing']['view'],_0x5b52a0=_0x3dd704['document']['selection']['getFirstRange'](),_0x3dcf00=_0x3dd704['domConverter']['viewRangeToDom'](_0x5b52a0);if(_0x3dcf00['collapse'](!0x0),_0x2d98e6){if(_0x2d98e6 instanceof Rect)return _0x2d98e6;let _0x4c75e7=[];for(const _0x4cda2b of _0x2d98e6)_0x4c75e7['push'](...cloneRects(_0x4cda2b['getClientRects']()));_0x4c75e7=joinClientRects(_0x4c75e7);const _0x5f5a0b=_0x3dcf00['getBoundingClientRect']();return _0x4c75e7['find'](_0x42abec=>_0x42abec['top']<=_0x5f5a0b['top']&&_0x42abec['bottom']>=_0x5f5a0b['bottom']&&_0x42abec['left']<=_0x5f5a0b['left']&&_0x42abec['right']>=_0x5f5a0b['right'])||_0x4c75e7[0x0];}return _0x27fedb['targetRect']||_0x3dcf00;}['_removeAnnotationFromBalloon'](_0x57abc4){this['_addedAnnotations']['has'](_0x57abc4)&&this['_balloon']['hasView'](_0x57abc4['view'])&&(this['_addedAnnotations']['delete'](_0x57abc4),this['_balloon']['remove'](_0x57abc4['view']));}['_closeAnnotation'](_0x15f54b){this['_manuallyClosed']['add'](_0x15f54b),this['_removeAnnotationFromBalloon'](_0x15f54b);}}function arraysEqual(_0x34c6c5,_0x2299d5){return _0x34c6c5['length']===_0x2299d5['length']&&_0x34c6c5['every'](_0x3f1a36=>_0x2299d5['includes'](_0x3f1a36));}function cloneRects(_0x2bd5ed){return Array['from'](_0x2bd5ed)['map'](DOMRect['fromRect']);}function joinClientRects(_0x460307){const _0x10e117=[];let _0x3cc677=_0x460307[0x0];for(let _0x4a9105=0x1;_0x4a9105<_0x460307['length'];_0x4a9105++)canJoinRects(_0x3cc677,_0x460307[_0x4a9105])?_0x3cc677['width']+=_0x460307[_0x4a9105]['width']:(_0x10e117['push'](_0x3cc677),_0x3cc677=_0x460307[_0x4a9105]);return _0x10e117['push'](_0x3cc677),_0x10e117;}function canJoinRects(_0x5d6be0,_0x50cdac){return _0x5d6be0['top']===_0x50cdac['top']&&_0x5d6be0['bottom']===_0x50cdac['bottom']&&_0x5d6be0['right']===_0x50cdac['left'];}class CommentsArchiveView extends View{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x31e301,_0x40002e){super(_0x31e301),this['set']('isEmpty',!_0x40002e['length']),this['focusTracker']=new FocusTracker(),this['_annotationViews']=_0x40002e,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new FocusCycler({'focusables':_0x40002e,'focusTracker':this['focusTracker']}),this['listenTo'](_0x40002e,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x40002e,'remove',(_0x46792a,_0x3c3205)=>{_0x3c3205['isActive']&&this['focus'](),_0x40002e['length']||(this['isEmpty']=!0x0);});const _0x25deda=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':getTranslation$f(_0x31e301,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x40002e},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x25deda['if']('isEmpty','ck-hidden',_0xeb915e=>!_0xeb915e)]},'children':[{'text':getTranslation$f(_0x31e301,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy']();}['focus'](){this['focusCycler']['first']?this['focusCycler']['focusFirst']():this['element']['focus']();}['_setupKeyboardNavigation'](){for(const _0x4aba90 of this['_annotationViews'])this['focusTracker']['add'](_0x4aba90['element']);this['_annotationViews']['on']('change',(_0x2f6bd8,{added:_0x347e3a,removed:_0x2807dd})=>{for(const _0x3cf059 of _0x347e3a)this['focusTracker']['add'](_0x3cf059['element']);for(const _0x139f19 of _0x2807dd)this['focusTracker']['remove'](_0x139f19['element']);});}}class CommentsArchive extends ContextPlugin{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[CommentsRepository,Annotations];}constructor(_0x543137){super(_0x543137),this['archivedThreads']=new Collection();}['init'](){const _0x1e5336=this['context'],_0x271fa3=_0x1e5336['plugins']['get'](CommentsRepository),_0x3239b6=_0x1e5336['plugins']['get'](Annotations);this['listenTo'](_0x271fa3,'addCommentThread',(_0x21d50f,{threadId:_0x2166ea})=>{const _0x1bfa45=_0x271fa3['getCommentThread'](_0x2166ea);_0x1bfa45['archivedAt']&&this['archivedThreads']['add'](_0x1bfa45,this['_calculatePosition'](_0x1bfa45['archivedAt'])),this['listenTo'](_0x1bfa45,'change:archivedAt',(_0xdf02d9,_0x3c4734,_0x1e40cd)=>{_0x1e40cd?this['archivedThreads']['has'](_0x1bfa45)||this['archivedThreads']['add'](_0x1bfa45,this['_calculatePosition'](_0x1bfa45['archivedAt'])):this['archivedThreads']['has'](_0x1bfa45)&&this['archivedThreads']['remove'](_0x1bfa45);});}),this['listenTo'](_0x271fa3,'removeCommentThread',(_0x39fbbf,{threadId:_0x3e966f})=>{const _0x5af7a4=_0x271fa3['getCommentThread'](_0x3e966f);this['stopListening'](_0x5af7a4),this['archivedThreads']['has'](_0x5af7a4)&&this['archivedThreads']['remove'](_0x5af7a4);},{'priority':'highest'}),this['listenTo'](_0x3239b6['collection'],'focus',(_0x3635d4,_0x14da1c)=>{_0x14da1c['isVisible']||(_0x14da1c['isActive']=!0x0,_0x3239b6['activate'](_0x14da1c));});}['_calculatePosition'](_0x381473){const _0x58a515=[...this['archivedThreads']]['findIndex'](_0x25d7a8=>_0x25d7a8['archivedAt']<_0x381473);return _0x58a515>-0x1?_0x58a515:this['archivedThreads']['length'];}}class CommentsArchiveUI extends Plugin{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[CommentsArchive,Dialog];}constructor(_0xc25093){super(_0xc25093),this['annotationViews']=new ViewCollection(),this['_pendingThreads']=[];}['init'](){const _0xbdb184=this['editor'],_0x470c34=this['_hideDialogOnAnnotationEscape']['bind'](this);_0xbdb184['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](ButtonView,!0x0)),_0xbdb184['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x122ee9=this['_createCommentsArchiveButton'](MenuBarMenuListItemButtonView);return _0x122ee9['set']({'role':'menuitemcheckbox'}),_0x122ee9;});const _0x408dbe=_0xbdb184['plugins']['get'](CommentsArchive),_0x49ee7a=_0xbdb184['plugins']['get']('Annotations'),_0x28af66=_0xbdb184['plugins']['get']('CommentsRepository');_0x408dbe['archivedThreads']['forEach'](_0xcf74b2=>{this['_handleNewThread'](_0xcf74b2);}),this['listenTo'](_0x408dbe['archivedThreads'],'add',(_0x228a5e,_0x263db6)=>{this['_handleNewThread'](_0x263db6);}),this['listenTo'](_0x49ee7a['collection'],'add',(_0x1973b5,_0x5a2069)=>{const _0x2fe661=this['_pendingThreads']['find'](_0x47909b=>{const _0x5e0429=_0x28af66['_threadToController']['get'](_0x47909b);return _0x5e0429&&_0x5a2069['innerView']===_0x5e0429['view'];});if(_0x2fe661){const _0x1ba74b=this['_calculatePosition'](_0x2fe661['archivedAt']);this['_addAnnotationToArchive'](_0x5a2069,_0x1ba74b),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x2fe661),0x1);}}),this['listenTo'](_0x408dbe['archivedThreads'],'remove',(_0x5c636c,_0x22490a)=>{const _0x589c41=_0xbdb184['config']['get']('collaboration.channelId');if(!_0x589c41||_0x22490a['channelId']===_0x589c41){if(this['_pendingThreads']['includes'](_0x22490a))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x22490a),0x1);else{const _0x11833f=_0x28af66['_threadToController']['get'](_0x22490a),_0x54dbab=_0x49ee7a['getByInnerView'](_0x11833f['view']);this['annotationViews']['remove'](_0x54dbab['view']),this['stopListening'](_0x54dbab),this['stopListening'](_0x54dbab['focusableElements']);}}}),this['listenTo'](_0x49ee7a['collection'],'add',(_0x22e66d,_0x29609a)=>{this['listenTo'](_0x29609a,'escape',_0x470c34);}),this['listenTo'](_0x49ee7a['collection'],'remove',(_0xbdc9e6,_0x2e1ef8)=>{this['stopListening'](_0x2e1ef8,'escape',_0x470c34);});}['_addAnnotationToArchive'](_0x4e7a44,_0x2fd814){this['listenTo'](_0x4e7a44,'set:isVisible',_0x3d6947=>{_0x3d6947['return']=!0x1,_0x3d6947['stop']();}),this['annotationViews']['add'](_0x4e7a44['view'],_0x2fd814);}['_handleNewThread'](_0x41f5eb){const _0x23d7e1=this['editor']['plugins']['get']('CommentsRepository'),_0x128437=this['editor']['plugins']['get']('Annotations'),_0x152660=this['editor']['config']['get']('collaboration.channelId');if(!_0x152660||_0x41f5eb['channelId']===_0x152660){const _0x22533e=_0x23d7e1['_threadToController']['get'](_0x41f5eb);if(!_0x22533e)return void this['_pendingThreads']['push'](_0x41f5eb);const _0x1d5065=this['_calculatePosition'](_0x41f5eb['archivedAt']),_0x267d84=_0x128437['getByInnerView'](_0x22533e['view']);_0x267d84['isVisible']&&_0x128437['_visibleAnnotations']['remove'](_0x267d84),this['_addAnnotationToArchive'](_0x267d84,_0x1d5065);}}['_calculatePosition'](_0x344942){const _0x2e9bf5=this['editor']['config']['get']('collaboration.channelId'),_0x49afd4=[...this['editor']['plugins']['get'](CommentsArchive)['archivedThreads']]['filter'](_0x41dafa=>_0x41dafa['channelId']===_0x2e9bf5)['findIndex'](_0x5e58db=>_0x5e58db['archivedAt']<_0x344942);return _0x49afd4<0x0||_0x49afd4>this['annotationViews']['length']?this['annotationViews']['length']:_0x49afd4-0x1;}['_toggleDialog'](){const _0x1d936b=this['editor'],_0x3330c2=_0x1d936b['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new CommentsArchiveView(_0x1d936b['locale'],this['annotationViews'])),'commentsArchive'===_0x3330c2['id']?_0x3330c2['hide']():_0x3330c2['show']({'id':'commentsArchive','title':getTranslation$f(_0x1d936b['locale'],'COMMENTS_ARCHIVE'),'icon':IconCommentsArchive,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':DialogViewPosition['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x37c71f,_0x4ff962=!0x1){const _0x26d8b8=this['editor']['locale'],_0x4b6dc8=this['editor']['plugins']['get']('Dialog'),_0x59d0c8=new _0x37c71f(_0x26d8b8);return _0x59d0c8['bind']('isEnabled')['to'](this,'isEnabled'),_0x59d0c8['bind']('isOn')['to'](_0x4b6dc8,'id',_0x30e42d=>'commentsArchive'===_0x30e42d),_0x59d0c8['set']({'label':getTranslation$f(_0x26d8b8,'COMMENTS_ARCHIVE'),'icon':IconCommentsArchive,'isToggleable':!0x0}),_0x4ff962&&(_0x59d0c8['tooltip']=!0x0),this['listenTo'](_0x59d0c8,'execute',()=>this['_toggleDialog']()),_0x59d0c8;}['_hideDialogOnAnnotationEscape']=_0x1f1c4a=>{const _0x48fe1e=_0x1f1c4a['source'];if(!this['annotationViews']['has'](_0x48fe1e['view']))return;const _0x3f1be2=this['editor']['plugins']['get']('Dialog');_0x3f1be2['isOpen']&&'commentsArchive'===_0x3f1be2['id']&&(_0x3f1be2['hide'](),_0x1f1c4a['stop']());};}class Comments extends Plugin{static get['requires'](){return[CommentsRepository,CommentsEditing,CommentsUI,CommentsArchive,CommentsArchiveUI,CommentsOnly,WideSidebar,NarrowSidebar,InlineAnnotations];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}function getElementText(_0xfe2c46){let _0x48f3d7='';for(const _0x5aa050 of _0xfe2c46['getChildren']())_0x5aa050 instanceof ModelText&&(_0x48f3d7+=_0x5aa050['data']);return _0x48f3d7;}function getDefaultFeatureHeadingNames(_0x29bf26){const _0x34a308=_0x29bf26['config']['get']('heading.options');return _0x34a308?_0x34a308['reduce']((_0x5b6007,_0x444cac)=>('paragraph'!==_0x444cac['model']&&_0x5b6007['push'](_0x444cac['model']),_0x5b6007),[]):_0x29bf26['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}class DocumentOutlineUtils extends Plugin{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x3bf3f7=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0xb484d4=[];_0x3bf3f7['model']['document']['on']('change',debounce$1(()=>{const _0x4d3b97=_0xb484d4;_0xb484d4=this['_getOutlineDefinitions']();const _0x476c78=_0x141a14(_0x4d3b97,_0xb484d4,(_0x5e55c9,_0x5c3537)=>_0x5e55c9['level']===_0x5c3537['level']&&_0x5e55c9['text']===_0x5c3537['text']&&_0x5e55c9['modelElement']===_0x5c3537['modelElement']),_0x74489e=diffToChanges(_0x476c78,_0xb484d4),_0x553bd3=this['_getActiveHeading'](),_0x319c23=_0xb484d4['findIndex'](_0x2633c5=>_0x2633c5['modelElement']===_0x553bd3);_0x74489e['length']&&this['fire']('change',{'outlineDefinitions':_0xb484d4,'activeItemIndex':_0x319c23,'outlineChanges':_0x74489e}),this['fire']('activeItemIndex',{'index':_0x319c23});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x33b9ec=this['editor'],_0x1d9964=[],_0x58f143=this['_headingNames'];for(const _0x9d5dd0 of _0x33b9ec['model']['document']['getRootNames']())_0x53edb2(_0x33b9ec['model']['document']['getRoot'](_0x9d5dd0));function _0x53edb2(_0x28efef){for(const _0x182de4 of _0x28efef['getChildren']())_0x182de4['is']('element')&&(_0x58f143['includes'](_0x182de4['name'])&&_0x1d9964['push']({'level':_0x58f143['indexOf'](_0x182de4['name'])+0x1,'text':getElementText(_0x182de4),'modelElement':_0x182de4}),_0x53edb2(_0x182de4));}return _0x1d9964;}['_getActiveHeading'](){const _0xef61c6=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x3a2060=new ModelTreeWalker({'direction':'backward','startPosition':_0xef61c6});for(const _0x4b1aeb of _0x3a2060)if(_0x4b1aeb['item']['is']('element')&&this['_headingNames']['includes'](_0x4b1aeb['item']['name']))return _0x4b1aeb['item'];}['_getHeadingNames'](){const _0x228b10=this['editor']['config']['get']('documentOutline.headings');return _0x228b10||getDefaultFeatureHeadingNames(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x5bafbc=this['editor'],_0x44e90a=['h1','h2','h3','h4','h5','h6'],_0x403172=[];for(const _0x3094be of _0x44e90a){const _0x1eddfa=_0x5bafbc['editing']['view']['domConverter']['domToView'](document['createElement'](_0x3094be)),_0x5ee3db=_0x5bafbc['data']['toModel'](_0x1eddfa)['getChild'](0x0);_0x5ee3db?.['is']('element')&&_0x403172['push'](_0x5ee3db['name']);}this['_headingNames']=_0x403172;}}function getTranslation$e(_0x4715b3,_0x4e3510){const t=_0x4715b3['t'];switch(_0x4e3510){case'Empty\x20heading':return t('Empty\x20heading');case'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.':return t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.');case'No\x20headings\x20were\x20found\x20in\x20the\x20document.':return t('No\x20headings\x20were\x20found\x20in\x20the\x20document.');case'Table\x20of\x20contents':return t('Table\x20of\x20contents');default:return _0x4e3510;}}class DocumentOutlineItemView extends View{constructor(_0x2e94df,_0x5dcbc9=!0x1){super(_0x2e94df);const _0x2d7f6f=this['bindTemplate'],_0x3ffb97=_0x5dcbc9?'['+getTranslation$e(_0x2e94df,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0xc1afad=>!_0xc1afad),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x2d7f6f['to']('level',_0x1948f6=>'ck-document-outline__item_level-'+_0x1948f6),_0x2d7f6f['if']('isActive','ck-document-outline__item_active'),_0x2d7f6f['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x2d7f6f['to']('text')},'children':[{'text':_0x2d7f6f['to']('text',_0x1b194a=>_0x1b194a||_0x3ffb97)}],'on':{'click':_0x2d7f6f['to']('click')}});}}class DocumentOutlineView extends View{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x2f16ce,_0x1073a2=!0x1,_0x4b6950){super(_0x2f16ce),this['showEmptyHeadingText']=_0x1073a2,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x4b6950,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x4c0b33,_0x100a34,_0x3a4eae,_0x348e34)=>{this['_setActiveItem'](_0x348e34,_0x3a4eae);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x2f16ce['contentLanguageDirection'],'data-document-outline-empty-placeholder':getTranslation$e(_0x2f16ce,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x191a27){_0x191a27['forEach'](_0x48e520=>{'insert'==_0x48e520['type']?this['_insertItem'](_0x48e520['index'],..._0x48e520['values']):'delete'==_0x48e520['type']&&this['_deleteItem'](_0x48e520['index'],_0x48e520['howMany']);});}['_setActiveItem'](_0x1f1f27,_0xa5e061){if(-0x1!==_0x1f1f27){const _0x1b3806=this['items']['get'](_0x1f1f27);_0x1b3806&&(_0x1b3806['isActive']=!0x1);}-0x1!==_0xa5e061&&(this['items']['get'](_0xa5e061)['isActive']=!0x0,this['_scrollToItem'](_0xa5e061));}['_insertItem'](_0x431101,..._0x53ea5a){const _0x4350f8=_0x53ea5a['map']((_0x616128,_0x4628ee)=>{const _0x21add6=new DocumentOutlineItemView(this['locale'],this['showEmptyHeadingText']);return _0x21add6['text']=_0x616128['text'],_0x21add6['level']=_0x616128['level'],_0x431101+_0x4628ee===this['activeItemIndex']&&(_0x21add6['isActive']=!0x0),_0x21add6;});this['items']['addMany'](_0x4350f8,_0x431101);}['_deleteItem'](_0x300e4f,_0xf0e973){do{this['items']['remove'](_0x300e4f);}while(--_0xf0e973);}['_handleItemClick'](_0x4bd531){const _0x25a354=this['items']['getIndex'](_0x4bd531['source']);this['fire']('itemSelected',_0x25a354);}['_scrollToItem'](_0x34c385){scrollAncestorsToShowTarget(this['items']['get'](_0x34c385)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class DocumentOutlineUI extends Plugin{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e5c88){super(_0x4e5c88),this['view']=new DocumentOutlineView(_0x4e5c88['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=throttle$1(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x17429f=this['editor'],_0x5b689c=_0x17429f['plugins']['get']('DocumentOutlineUtils');let _0x5650f1=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x17429f['config']['get']('documentOutline.container'))throw new CKEditorError('document-outline-container-not-provided',{'editor':_0x17429f});_0x17429f['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x5b689c['on']('change',this['_handleOutlineChange']['bind'](this)),_0x5b689c['on']('activeItemIndex',(_0x273394,{index:_0x4a4e6d})=>this['_setActiveViewItem'](_0x4a4e6d)),this['view']['on']('itemSelected',(_0x2788b0,_0x3e73ee)=>{_0x5650f1=!0x0,this['_handleItemSelected'](_0x3e73ee);}),this['view']['listenTo'](_0xd4e5e['document'],'scroll',()=>{_0x5650f1?_0x5650f1=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0xd4e5e['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){checkLicense$f(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x229b9f,{outlineDefinitions:_0x3f4c43,outlineChanges:_0x32ee1b}){this['_currentOutlineDefinitions']=_0x3f4c43,this['view']['sync'](_0x32ee1b);}['_setActiveViewItem'](_0xb151e0){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0xb151e0]&&(this['view']['activeItemIndex']=_0xb151e0);}['_handleItemSelected'](_0x2fda24){const _0x2cc61c=this['_currentOutlineDefinitions'][_0x2fda24]['modelElement'];this['editor']['model']['change'](_0x29528a=>{_0x29528a['setSelection'](_0x2cc61c,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x2fda24);}['_updateActiveDefinitionOnViewportChange'](){const _0x1b6e91=this['editor'];let _0xa8d1de;for(const _0x3c8fd4 of _0x1b6e91['model']['document']['getRootNames']()){const _0x2bc79a=_0x1b6e91['editing']['view']['getDomRoot'](_0x3c8fd4),_0x35059a=_0x2bc79a&&new Rect(_0x2bc79a)['getVisible']();if(_0x35059a){const _0x9d0930=new Rect(_0xd4e5e['window'])['getIntersection'](_0x35059a);_0x9d0930&&(_0xa8d1de=_0x9d0930['top']+0.25*_0x9d0930['height']);}}if(void 0x0===_0xa8d1de)return;const _0x1af16b=binaryActiveDefinitionSearch(_0x1b6e91['editing'],this['_currentOutlineDefinitions'],_0xa8d1de);_0x1af16b?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x1af16b)):this['_setActiveViewItem'](-0x1);}}function binaryActiveDefinitionSearch(_0x435bd2,_0x40aa0b,_0x220bd6,_0xe22b61=0x0,_0x3d2f3e=_0x40aa0b['length']-0x1){const _0x4e9c68=Math['floor'](_0xe22b61+(_0x3d2f3e-_0xe22b61)/0x2);if(_0x3d2f3e>=_0xe22b61){const _0x70753f=_0x40aa0b[_0x4e9c68],_0xf4537b=_0x435bd2['mapper']['toViewElement'](_0x70753f['modelElement']);if(!_0xf4537b)return null;const _0x47a31d=_0x435bd2['view']['domConverter']['mapViewToDom'](_0xf4537b);return new Rect(_0x47a31d)['bottom']>_0x220bd6?binaryActiveDefinitionSearch(_0x435bd2,_0x40aa0b,_0x220bd6,_0xe22b61,_0x4e9c68-0x1):binaryActiveDefinitionSearch(_0x435bd2,_0x40aa0b,_0x220bd6,_0x4e9c68+0x1,_0x3d2f3e);}return _0x4e9c68<0x0?null:_0x40aa0b[_0x4e9c68];}async function checkLicense$f(_0x25c51d){const _0x2b6444=_0x426085([0x61,0x57,0x78,0x6c,0x50,0x47,0x30,0x41,0x33,0x43,0x44,0x64,0x48,0x42,0x73,0x5a,0x45,0x71,0x77,0x55,0x4c,0x6f,0x6a,0x4f,0x72,0x67,0x4d,0x58,0x56,0x54,0x52,0x76,0x75,0x31,0x62,0x49,0x32,0x34,0x38,0x37,0x70,0x74,0x7a,0x4a,0x4b,0x51,0x65,0x69,0x68,0x66,0x4e,0x6b,0x59,0x53,0x39,0x6e,0x36,0x79,0x35,0x6d,0x63,0x46]),_0x555215=window[_0x426085([0x44,0x61,0x74,0x65])][_0x426085([0x6e,0x6f,0x77])](),_0x2e9246=_0x25c51d[_0x426085([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2c3250=new window[(_0x426085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf1cc8=>{_0x2e9246[_0x426085([0x6f,0x6e,0x63,0x65])](_0x426085([0x72,0x65,0x61,0x64,0x79]),_0xf1cc8);}),_0x32a78d={[_0x426085([0x6b,0x74,0x79])]:_0x426085([0x45,0x43]),[_0x426085([0x75,0x73,0x65])]:_0x426085([0x73,0x69,0x67]),[_0x426085([0x63,0x72,0x76])]:_0x426085([0x50,0x2d,0x32,0x35,0x36]),[_0x426085([0x78])]:_0x426085([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x426085([0x79])]:_0x426085([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x426085([0x61,0x6c,0x67])]:_0x426085([0x45,0x53,0x32,0x35,0x36])},_0x129db4=_0x2e9246[_0x426085([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x426085([0x67,0x65,0x74])](_0x426085([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x20fbb4=await(async function(){let _0x9509a0,_0x273aba=null,_0x52da43=null;try{if(_0x129db4==_0x426085([0x47,0x50,0x4c]))return _0x426085([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9509a0=(function(){const _0x178aeb=_0x129db4[_0x426085([0x73,0x70,0x6c,0x69,0x74])](_0x426085([0x2e]));if(0x3!=_0x178aeb[_0x426085([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x2aac73=_0x178aeb[0x1];return _0x367aad(_0x2aac73);function _0x367aad(_0x1c9ad9){const _0x2b518f=_0xa8f91a(_0x1c9ad9);return _0x2b518f&&_0x8ccbb5()?_0x2b518f:null;function _0x8ccbb5(){const _0x3fe2f5=_0x2b518f[_0x426085([0x6a,0x74,0x69])],_0x1c6ea8=window[_0x426085([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fe2f5[_0x426085([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fe2f5[_0x426085([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x28661c={..._0x2b518f,[_0x426085([0x6a,0x74,0x69])]:_0x3fe2f5[_0x426085([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3fe2f5[_0x426085([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x28661c[_0x426085([0x76,0x63])],_0x12fdd6(_0x28661c)==_0x1c6ea8;}}}()),!_0x9509a0)return _0x426085([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x9509a0[_0x426085([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x52da43=function(_0x4c72be,_0x4e388b){return new window[(_0x426085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27dc1a=>{if(_0x1c099b())return _0x27dc1a(_0x426085([0x56,0x61,0x6c,0x69,0x64]));_0x411cc3(),_0x2e9246[_0x426085([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x426085([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x357313=!0x1;const _0x59f6df=uid();function _0x4b60d9(_0x24fda9){return!!_0x24fda9&&(typeof _0x24fda9===_0x426085([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x24fda9===_0x426085([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x24fda9[_0x426085([0x74,0x68,0x65,0x6e])]===_0x426085([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x24fda9[_0x426085([0x63,0x61,0x74,0x63,0x68])]===_0x426085([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1263f4(_0x3b0108){_0x510395(_0x3b0108)[_0x426085([0x74,0x68,0x65,0x6e])](_0x1db99e=>{if(!_0x1db99e||_0x1db99e[_0x426085([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x426085([0x6f,0x6b]))return _0x426085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x922f5e(_0x12fdd6(_0x59f6df+_0x4e388b))!=_0x1db99e[_0x426085([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x426085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x426085([0x56,0x61,0x6c,0x69,0x64]);})[_0x426085([0x74,0x68,0x65,0x6e])](_0x333e6b=>(_0x21dedf(),_0x333e6b),()=>{const _0x96f18=_0x372bda();return null==_0x96f18?(_0x21dedf(),_0x426085([0x56,0x61,0x6c,0x69,0x64])):_0x426085(_0x555215-_0x96f18>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x426085([0x74,0x68,0x65,0x6e])](_0x27dc1a)[_0x426085([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27dc1a(_0x426085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5a15bb=0x36ee80;function _0x21dedf(){const _0x521fb5=_0x426085([0x6c,0x6c,0x63,0x74,0x2d])+_0x922f5e(_0x12fdd6(_0x4c72be)),_0x4eb7e5=_0x38bb48(_0x922f5e(window[_0x426085([0x4d,0x61,0x74,0x68])][_0x426085([0x63,0x65,0x69,0x6c])](_0x555215/_0x5a15bb)));window[_0x426085([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x426085([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x521fb5,_0x4eb7e5);}function _0x372bda(){const _0x2f22b8=_0x426085([0x6c,0x6c,0x63,0x74,0x2d])+_0x922f5e(_0x12fdd6(_0x4c72be)),_0x37bea1=window[_0x426085([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x426085([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f22b8);return _0x37bea1?window[_0x426085([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38bb48(_0x37bea1),0x10)*_0x5a15bb:null;}function _0x510395(_0xc21414){return new window[(_0x426085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19a27d,_0x356740)=>{_0xc21414[_0x426085([0x74,0x68,0x65,0x6e])](_0x19a27d,_0x356740),window[_0x426085([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x356740,0x1d4c0);});}}_0x2e9246[_0x426085([0x6f,0x6e])](_0x426085([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5cca5f,_0x4993e0)=>{if(_0x4993e0[0x0]!=_0x4c72be)return _0x27dc1a(_0x426085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4993e0[0x1]={..._0x4993e0[0x1],[_0x426085([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59f6df};},{[_0x426085([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x426085([0x68,0x69,0x67,0x68])}),_0x2e9246[_0x426085([0x6f,0x6e])](_0x426085([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5205f6=>{_0x4b60d9(_0x5205f6[_0x426085([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x357313=!0x0,_0x1263f4(_0x5205f6[_0x426085([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x426085([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x426085([0x6c,0x6f,0x77])}),_0x2c3250[_0x426085([0x74,0x68,0x65,0x6e])](()=>{_0x357313||_0x27dc1a(_0x426085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c099b(){return _0x2e9246[_0x426085([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x426085([0x76,0x69,0x65,0x77])][_0x426085([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x426085([0x61,0x75,0x74,0x6f]);}function _0x411cc3(){_0x2e9246[_0x426085([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x426085([0x76,0x69,0x65,0x77])][_0x426085([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x426085([0x61,0x75,0x74,0x6f]);}}(_0x9509a0[_0x426085([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9509a0[_0x426085([0x6a,0x74,0x69])]));const _0x5f1c9a=await(async function(){let _0x1bb38e=!0x0;try{const _0x3143f9=_0x129db4[_0x426085([0x73,0x70,0x6c,0x69,0x74])](_0x426085([0x2e])),[_0x9a503c,_0xf96027,_0x264baa]=_0x3143f9;return _0x384e11(_0x9a503c),await _0x5f1afc(_0x9a503c,_0xf96027,_0x264baa),_0x1bb38e;}catch{return!0x1;}function _0x384e11(_0x109a36){const _0x301ca3=_0xa8f91a(_0x109a36);_0x301ca3&&_0x301ca3[_0x426085([0x61,0x6c,0x67])]==_0x426085([0x45,0x53,0x32,0x35,0x36])||(_0x1bb38e=!0x1);}async function _0x5f1afc(_0x783278,_0x51c6fe,_0x5d5915){const _0x4eb001=window[_0x426085([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x426085([0x66,0x72,0x6f,0x6d])](_0x336fa3(_0x5d5915),_0xf666d6=>_0xf666d6[_0x426085([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e1b5b=new window[(_0x426085([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x426085([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x783278+_0x426085([0x2e])+_0x51c6fe),_0x4713f1=window[_0x426085([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x426085([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4713f1)return;const _0x75f1d3=await _0x4713f1[_0x426085([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x426085([0x6a,0x77,0x6b]),_0x32a78d,{[_0x426085([0x6e,0x61,0x6d,0x65])]:_0x426085([0x45,0x43,0x44,0x53,0x41]),[_0x426085([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x426085([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x426085([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4713f1[_0x426085([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x426085([0x6e,0x61,0x6d,0x65])]:_0x426085([0x45,0x43,0x44,0x53,0x41]),[_0x426085([0x68,0x61,0x73,0x68])]:{[_0x426085([0x6e,0x61,0x6d,0x65])]:_0x426085([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x75f1d3,_0x4eb001,_0x5e1b5b)||(_0x1bb38e=!0x1);}}());return _0x5f1c9a?(function(){const _0x4ada09=_0x9509a0[_0x426085([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4ada09)return!0x1;if(_0x4ada09[_0x426085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x426085([0x2a])))return!0x0;if(_0x4ada09[_0x426085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x426085([0x44,0x4f])))return!0x0;if(_0x4ada09[_0x426085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x426085([0x50,0x50])))return!0x0;if(_0x4ada09[_0x426085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x426085([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x426085([0x67,0x6c,0x6f,0x62])]&&window[_0x426085([0x67,0x6c,0x6f,0x62])][_0x426085([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x4813c6=[_0x426085([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x426085([0x74,0x72,0x69,0x61,0x6c])][_0x426085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9509a0[_0x426085([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x555215/0x3e8:0x68f03580;return _0x9509a0[_0x426085([0x65,0x78,0x70])]<_0x4813c6;}())?_0x426085([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x1df2ba=_0x9509a0[_0x426085([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1df2ba||0x0==_0x1df2ba[_0x426085([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x25dd28}=new URL(window[_0x426085([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1df2ba[_0x426085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25dd28))return!0x0;const _0xaff923=_0x25dd28[_0x426085([0x73,0x70,0x6c,0x69,0x74])](_0x426085([0x2e]));return _0x1df2ba[_0x426085([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6a6480=>_0x6a6480[_0x426085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x426085([0x2a])))[_0x426085([0x6d,0x61,0x70])](_0x60459b=>_0x60459b[_0x426085([0x73,0x70,0x6c,0x69,0x74])](_0x426085([0x2e])))[_0x426085([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ec47b=>_0x1ec47b[_0x426085([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xaff923[_0x426085([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x426085([0x6d,0x61,0x70])](_0x5d5c04=>Array(_0xaff923[_0x426085([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d5c04[_0x426085([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x426085([0x66,0x69,0x6c,0x6c])](_0x5d5c04[0x0]===_0x426085([0x2a])?_0x426085([0x2a]):'')[_0x426085([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d5c04))[_0x426085([0x73,0x6f,0x6d,0x65])](_0x1ca2c7=>_0xaff923[_0x426085([0x65,0x76,0x65,0x72,0x79])]((_0xe1c953,_0x1ade7f)=>_0x1ca2c7[_0x1ade7f]===_0xe1c953||_0x1ca2c7[_0x1ade7f]===_0x426085([0x2a])));}())?(_0x9509a0[_0x426085([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x426085([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x273aba=_0x557bc3(_0x426085([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9509a0[_0x426085([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x426085([0x74,0x72,0x69,0x61,0x6c])&&(_0x273aba=_0x557bc3(_0x426085([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x273aba&&_0x52da43)return new window[(_0x426085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xea7ccd,_0x5f2fcd)=>{_0x273aba[_0x426085([0x74,0x68,0x65,0x6e])](_0xea7ccd,_0x5f2fcd),_0x52da43[_0x426085([0x74,0x68,0x65,0x6e])](_0x257595=>{_0x257595!=_0x426085([0x56,0x61,0x6c,0x69,0x64])&&_0xea7ccd(_0x257595);},_0x5f2fcd);});return _0x273aba||_0x52da43||_0x426085([0x56,0x61,0x6c,0x69,0x64]);}())):_0x426085([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x426085([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x426085([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x426085([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x557bc3(_0x1268fd){const _0x51f40e=[new window[(_0x426085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd01594=>setTimeout(_0xd01594,0x93ecc)),_0x2c3250[_0x426085([0x74,0x68,0x65,0x6e])](()=>new window[(_0x426085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f7489=>{let _0x197fbc=0x0;_0x2e9246[_0x426085([0x6d,0x6f,0x64,0x65,0x6c])][_0x426085([0x6f,0x6e])](_0x426085([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x51c8f8,_0x198251)=>{_0x198251[0x0][_0x426085([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x197fbc++,0x1f8==_0x197fbc&&(_0x3f7489(),_0x51c8f8[_0x426085([0x6f,0x66,0x66])]());});}))];return window[_0x426085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x426085([0x72,0x61,0x63,0x65])](_0x51f40e)[_0x426085([0x74,0x68,0x65,0x6e])](()=>_0x1268fd);}function _0xa8f91a(_0x5f1f56){return _0x5f1f56[_0x426085([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x426085([0x65,0x79]))?JSON[_0x426085([0x70,0x61,0x72,0x73,0x65])](_0x336fa3(_0x5f1f56)):null;}function _0x336fa3(_0x5d2f34){return window[_0x426085([0x61,0x74,0x6f,0x62])](_0x5d2f34[_0x426085([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x426085([0x2b]))[_0x426085([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x426085([0x2f])));}function _0x12fdd6(_0x49a113){let _0x293ba5=0x1505;function _0x1af2b9(_0x1e9a61){for(let _0x2bd3fc=0x0;_0x2bd3fc<_0x1e9a61[_0x426085([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bd3fc++){const _0x896165=_0x1e9a61[_0x426085([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2bd3fc);_0x293ba5=(_0x293ba5<<0x5)+_0x293ba5+_0x896165,_0x293ba5&=_0x293ba5;}}return function _0x2e6e0d(_0x282dd0){Array[_0x426085([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x282dd0)?_0x282dd0[_0x426085([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e6e0d):_0x282dd0&&typeof _0x282dd0==_0x426085([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x426085([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x282dd0)[_0x426085([0x73,0x6f,0x72,0x74])]()[_0x426085([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x342e4e,_0x588249])=>{_0x1af2b9(_0x342e4e),_0x2e6e0d(_0x588249);}):_0x1af2b9(window[_0x426085([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x282dd0));}(_0x49a113),_0x293ba5>>>0x0;}function _0x922f5e(_0x3d0dc0){return _0x3d0dc0[_0x426085([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x426085([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x426085([0x30]));}function _0x38bb48(_0x31a787){return _0x31a787[_0x426085([0x73,0x70,0x6c,0x69,0x74])]('')[_0x426085([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x426085([0x6a,0x6f,0x69,0x6e])]('');}function _0x87ed26(){}function _0x426085(_0x397c03){return _0x397c03['map'](_0x21099a=>String['fromCharCode'](_0x21099a))['join']('');}!function(_0x726382){const _0x16709a=(function(){const _0x2527a7=window[_0x426085([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x426085([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x426085([0x6e,0x6f,0x77])]())[_0x426085([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x426085([0x2e]),'');let _0x53c428=_0x426085([0x61]);for(let _0x4eee3d=0x0;_0x4eee3d<_0x2527a7[_0x426085([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4eee3d+=0x2){let _0x4e7a12=window[_0x426085([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2527a7[_0x426085([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4eee3d,_0x4eee3d+0x2));_0x4e7a12>=_0x2b6444[_0x426085([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e7a12-=_0x2b6444[_0x426085([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x53c428+=_0x2b6444[_0x4e7a12];}return _0x53c428;}());_0x2e9246[_0x16709a]=_0x426085([0x64,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x75,0x74,0x6c,0x69,0x6e,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x726382,_0x726382!=_0x426085([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x2c3250,_0x2e9246[_0x426085([0x6d,0x6f,0x64,0x65,0x6c])][_0x426085([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x87ed26,_0x2e9246[_0x426085([0x6d,0x6f,0x64,0x65,0x6c])][_0x426085([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x87ed26,_0x2e9246[_0x426085([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x426085([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x20fbb4);}class DocumentOutline extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[DocumentOutlineUtils,DocumentOutlineUI];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4e58e9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x899845;for(const _0x5575a0 in _0x4e58e9){const _0xcdfae5=_0x5575a0,_0xf9c664=_0x4e58e9[_0xcdfae5];if('documentOutlineLicenseKeyValid'==_0xf9c664||'documentOutlineLicenseKeyInvalid'==_0xf9c664||'documentOutlineLicenseKeyExpired'==_0xf9c664||'documentOutlineLicenseKeyDomainLimit'==_0xf9c664||'documentOutlineLicenseKeyNotAllowed'==_0xf9c664||'documentOutlineLicenseKeyEvaluationLimit'==_0xf9c664||'documentOutlineLicenseKeyTrialLimit'==_0xf9c664||'documentOutlineLicenseKeyUsageLimit'==_0xf9c664){delete _0x4e58e9[_0xcdfae5],_0x899845=_0xf9c664,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x899845&&_0x4e58e9['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x899845&&_0x4e58e9['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x899845&&_0x4e58e9['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x899845&&_0x4e58e9['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x899845&&_0x4e58e9['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyTrialLimit'==_0x899845&&_0x4e58e9['_showLicenseError']('trialLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x899845&&_0x4e58e9['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContentsCommand extends _0x142ccd{['execute'](){this['editor']['model']['change'](_0x34e23e=>{this['editor']['model']['insertObject'](_0x34e23e['createElement']('tableOfContents'));});}['refresh'](){const _0x4719ad=this['editor']['model'],_0x1aa653=_0x4719ad['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x1aa653&&_0x4719ad['schema']['findAllowedParent'](_0x1aa653,'tableOfContents'));}}class HeadingId extends Plugin{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x377650=this['editor'];if(_0x377650['config']['get']('headingId.modelAttributeName'))return;getDefaultHeadingMapNames(this['editor']['config']['get']('heading.options'))['forEach']((_0x625db2,_0x2e30cc)=>{this['_customUpcastHeadingsConversion'](_0x2e30cc),this['_customDataDowncastHeadingsConversion'](_0x625db2),_0x377650['model']['schema']['isRegistered'](_0x625db2)&&_0x377650['model']['schema']['extend'](_0x625db2,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']();}['_customUpcastHeadingsConversion'](_0xbd997f){this['editor']['conversion']['for']('upcast')['add'](_0x20ea8b=>_0x20ea8b['on']('element:'+_0xbd997f,(_0x546c7f,_0x22319c,_0x2c99cd)=>{const {consumable:_0x47019f,writer:_0x1416f7}=_0x2c99cd,_0x31d3ea=_0x22319c['viewItem']['getAttribute']('id'),_0xff7579=_0x22319c['modelRange']['getContainedElement']();if(_0xff7579)return _0x31d3ea&&_0x31d3ea['length']||_0xff7579['hasAttribute']('headingId')?void(_0x47019f['consume'](_0x22319c['viewItem'],{'attributes':['id']})&&_0x1416f7['setAttribute']('headingId',_0x31d3ea,_0xff7579)):(_0x47019f['consume'](_0x22319c['viewItem'],{'attributes':['id']}),void _0x1416f7['setAttribute']('headingId',uid(),_0xff7579));},{'priority':priorities['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x4c9321){this['editor']['conversion']['for']('downcast')['add'](_0x4cbbb7=>_0x4cbbb7['on']('attribute:headingId:'+_0x4c9321,(_0x1bdc81,_0x1338cd,_0x222a7c)=>{if(!_0x222a7c['consumable']['consume'](_0x1338cd['item'],_0x1bdc81['name']))return;const _0x39fc5f=_0x1338cd['item']['getAttribute']('headingId'),_0x46031e=_0x222a7c['mapper']['toViewElement'](_0x1338cd['item']);_0x222a7c['writer']['setAttribute']('id',_0x39fc5f,_0x46031e);}));}['_registerHeadingIdAttributePostfixer'](){const _0x2d7b79=this['editor'],_0x1f2946=new Set(),_0xb675d4=new Set();function _0x13b4bb(_0x5a0c9a,_0x1dc121){const _0x5c4415=uid();return _0xb675d4['add'](_0x5c4415),_0x5a0c9a['setAttribute']('headingId',_0x5c4415,_0x1dc121),_0x5c4415;}function _0x227f8e(_0x29587d,_0x5eff10){_0x29587d['removeAttribute']('headingId',_0x5eff10);}_0x2d7b79['model']['document']['registerPostFixer'](_0x3438d2=>{const _0x38f45b=_0x2d7b79['model']['document']['differ']['getChanges']();let _0x22016a=!0x1;for(const _0x252309 of _0x38f45b)if('insert'==_0x252309['type']&&_0x252309['name']){if(isHeading$1(_0x252309['name'])){const _0xfb1d3d=_0x252309['attributes']['get']('headingId');'string'==typeof _0xfb1d3d?_0x1f2946['has'](_0xfb1d3d)?(_0x13b4bb(_0x3438d2,_0x252309['position']['nodeAfter']),_0x22016a=!0x0):_0xb675d4['add'](_0xfb1d3d):(_0x13b4bb(_0x3438d2,_0x252309['position']['nodeAfter']),_0x22016a=!0x0);}else'string'==typeof _0x252309['attributes']['get']('headingId')&&(_0x227f8e(_0x3438d2,_0x252309['position']['nodeAfter']),_0x22016a=!0x0);}else{if('remove'==_0x252309['type']){const _0x1c0aaa=_0x252309['attributes']['get']('headingId');'string'==typeof _0x1c0aaa&&_0x1f2946['delete'](_0x1c0aaa);}}return _0x22016a;}),_0x2d7b79['model']['document']['on']('change',()=>{_0xb675d4['forEach'](_0x37261b=>_0x1f2946['add'](_0x37261b)),_0xb675d4['clear']();});}}function isHeading$1(_0x1c0e8f){return!!_0x1c0e8f['match'](/heading\d/);}function getDefaultHeadingMapNames(_0x176a9b){const _0x4fac18=new Map();return _0x176a9b?(_0x176a9b['forEach'](_0xc3f70d=>{'paragraph'!==_0xc3f70d['model']&&_0x4fac18['set'](_0xc3f70d['view'],_0xc3f70d['model']);}),_0x4fac18['get']('h1')||_0x4fac18['set']('h1','heading1'),_0x4fac18):_0x4fac18;}class TableOfContentsEditing extends Plugin{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Widget,DocumentOutlineUtils,HeadingId];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x1dff81){super(_0x1dff81),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x351f00=this['editor'],_0x58765c=_0x351f00['editing']['view']['document'];_0x351f00['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x351f00['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x58765c,'click',(_0x5be3e3,_0x515941)=>{if(!_0x515941['target'])return;const _0x1afd50=_0x515941['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x1afd50)&&(_0x515941['domEvent']['preventDefault'](),_0x5be3e3['stop'](),this['_handleScrollToHeading'](_0x1afd50));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x351f00['commands']['add']('insertTableOfContents',new TableOfContentsCommand(_0x351f00)),(_0x351f00['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x41880c,_0x33342b)=>{this['_currentOutlineDefinitions']=_0x33342b['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x351f00['model']['document'],'change',()=>{this['_trackNewToCElements']();}));}['afterInit'](){checkLicense$e(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x56b1c6=>{'$graveyard'!==_0x56b1c6['rootName']&&this['editor']['editing']['reconvertItem'](_0x56b1c6);});}['_trackNewToCElements'](){for(const _0x30fb38 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x30fb38['type']||'tableOfContents'!==_0x30fb38['name'])return;this['_tableOfContentsElements']['add'](_0x30fb38['position']['nodeAfter']);}}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x1d43ec=this['editor']['conversion'];_0x1d43ec['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x1d43ec['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x42ef10,{writer:_0x1dc22f})=>this['_createTableOfContents'](_0x1dc22f,!0x0)}),_0x1d43ec['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x46d694,{writer:_0x3cd745})=>{this['_tableOfContentsElements']['add'](_0x46d694);const _0x32f9c4=this['_createTableOfContents'](_0x3cd745);return toWidget(_0x32f9c4,_0x3cd745,{'label':getTranslation$e(this['editor']['locale'],'Table\x20of\x20contents')});}}),this['editor']['data']['registerRawContentMatcher']({'name':'div','classes':'table-of-contents'}),this['editor']['editing']['mapper']['on']('viewToModelPosition',this['_redirectMapper'](),{'priority':'high'});}['_createTableOfContents'](_0x46391e,_0x5b8b6c=!0x1){const {locale:_0x26c054}=this['editor'],_0x3947d0=_0x46391e['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x5b8b6c&&{'data-table-of-contents-label':getTranslation$e(_0x26c054,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x5b8b6c&&_0x46391e['insert'](_0x46391e['createPositionAt'](_0x3947d0,'end'),_0x46391e['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x46391e['createText'](getTranslation$e(_0x26c054,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x2b9d27=_0x5b8b6c?'':'['+getTranslation$e(_0x26c054,'Empty\x20heading')+']';let _0x49394c=_0x3947d0;return this['_currentOutlineDefinitions']['forEach']((_0x3229fd,_0x28150a,_0x22d19b)=>{const _0x372f8e=this['editor']['model']['hasContent'](_0x3229fd['modelElement'],{'ignoreWhitespaces':!0x0}),_0x24e262=_0x372f8e?_0x3229fd['text']:_0x2b9d27,_0x2cb55b=_0x3229fd['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x56ef22=_0x46391e['createContainerElement']('a',{'href':'#'+_0x2cb55b,...!_0x5b8b6c&&{'tabindex':'-1'}},[_0x46391e['createText'](_0x24e262)]),_0x3d1e98=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x46391e['setCustomProperty']('tableOfContentsHeadingIndex',_0x28150a,_0x56ef22);const _0x3e5bd4=_0x46391e['createContainerElement']('li',null,[_0x372f8e||!_0x5b8b6c&&_0x3d1e98?_0x56ef22:_0x46391e['createText']('')]),_0x45b007=_0x28150a?_0x22d19b[_0x28150a-0x1]['level']:0x0,_0x59aa94=Math['abs'](_0x3229fd['level']-_0x45b007);if(_0x3229fd['level']>_0x45b007){const _0x11c756=wrapInList(_0x3e5bd4,_0x59aa94,_0x46391e);_0x46391e['insert'](_0x46391e['createPositionAt'](_0x49394c,'end'),_0x11c756);}else{const _0x5cf645=getOuterListByLevelDifference(_0x49394c,_0x59aa94);_0x46391e['insert'](_0x46391e['createPositionAt'](_0x5cf645,'end'),_0x3e5bd4);}_0x49394c=_0x3e5bd4;}),_0x3947d0;}['_handleScrollToHeading'](_0x47abe4){const _0x1cb77e=this['_currentOutlineDefinitions'][_0x47abe4]['modelElement'];this['editor']['model']['change'](_0x45384e=>{_0x45384e['setSelection'](_0x1cb77e,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x1f1b93,_0x5da875)=>{const _0x43615a=_0x5da875['mapper'],_0x5992c6=_0x43615a['findMappedViewAncestor'](_0x5da875['viewPosition']),_0x1fe690=_0x43615a['toModelElement'](_0x5992c6);_0x1fe690['is']('element','tableOfContents')&&(_0x5da875['modelPosition']=this['editor']['model']['createPositionAt'](_0x1fe690,0x0),_0x1f1b93['stop']());};}}function wrapInList(_0x33eb92,_0x1eaaf4,_0x3d6c91){return 0x1===_0x1eaaf4?_0x3d6c91['createContainerElement']('ol',null,[_0x33eb92]):_0x3d6c91['createContainerElement']('ol',null,[_0x3d6c91['createContainerElement']('li',null,[wrapInList(_0x33eb92,_0x1eaaf4-0x1,_0x3d6c91)])]);}function getOuterListByLevelDifference(_0x490f9b,_0x4da9a4){return _0x490f9b['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x4ba0a6=>_0x4ba0a6['is']('element','ol'))[_0x4da9a4];}async function checkLicense$e(_0x348afd){const _0xa1af29=_0x16e923([0x6d,0x72,0x34,0x7a,0x32,0x79,0x61,0x6b,0x4d,0x33,0x78,0x30,0x70,0x68,0x74,0x44,0x37,0x6a,0x42,0x77,0x31,0x54,0x36,0x71,0x52,0x66,0x65,0x55,0x75,0x5a,0x63,0x4f,0x4c,0x4e,0x4b,0x56,0x67,0x51,0x53,0x50,0x45,0x39,0x69,0x47,0x49,0x48,0x6f,0x58,0x6c,0x4a,0x57,0x38,0x59,0x73,0x43,0x62,0x35,0x41,0x6e,0x64,0x46,0x76]),_0x37ca4f=window[_0x16e923([0x44,0x61,0x74,0x65])][_0x16e923([0x6e,0x6f,0x77])](),_0x49cf08=_0x348afd[_0x16e923([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1ab35a=new window[(_0x16e923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1821cb=>{_0x49cf08[_0x16e923([0x6f,0x6e,0x63,0x65])](_0x16e923([0x72,0x65,0x61,0x64,0x79]),_0x1821cb);}),_0x495685={[_0x16e923([0x6b,0x74,0x79])]:_0x16e923([0x45,0x43]),[_0x16e923([0x75,0x73,0x65])]:_0x16e923([0x73,0x69,0x67]),[_0x16e923([0x63,0x72,0x76])]:_0x16e923([0x50,0x2d,0x32,0x35,0x36]),[_0x16e923([0x78])]:_0x16e923([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x16e923([0x79])]:_0x16e923([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x16e923([0x61,0x6c,0x67])]:_0x16e923([0x45,0x53,0x32,0x35,0x36])},_0x549843=_0x49cf08[_0x16e923([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x16e923([0x67,0x65,0x74])](_0x16e923([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x2afcc1=await(async function(){let _0x19c5b3,_0x2a1715=null,_0x1cf519=null;try{if(_0x549843==_0x16e923([0x47,0x50,0x4c]))return _0x16e923([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19c5b3=(function(){const _0x2aaa90=_0x549843[_0x16e923([0x73,0x70,0x6c,0x69,0x74])](_0x16e923([0x2e]));if(0x3!=_0x2aaa90[_0x16e923([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x3e91e5=_0x2aaa90[0x1];return _0x9dfdac(_0x3e91e5);function _0x9dfdac(_0x504078){const _0x417ea4=_0x441f52(_0x504078);return _0x417ea4&&_0x286a86()?_0x417ea4:null;function _0x286a86(){const _0x31d99d=_0x417ea4[_0x16e923([0x6a,0x74,0x69])],_0x39df9e=window[_0x16e923([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31d99d[_0x16e923([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31d99d[_0x16e923([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x544a02={..._0x417ea4,[_0x16e923([0x6a,0x74,0x69])]:_0x31d99d[_0x16e923([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31d99d[_0x16e923([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x544a02[_0x16e923([0x76,0x63])],_0x4823be(_0x544a02)==_0x39df9e;}}}()),!_0x19c5b3)return _0x16e923([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x19c5b3[_0x16e923([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1cf519=function(_0x180c7c,_0x2e7b6f){return new window[(_0x16e923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x215de9=>{if(_0x29dcab())return _0x215de9(_0x16e923([0x56,0x61,0x6c,0x69,0x64]));_0x401902(),_0x49cf08[_0x16e923([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x16e923([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2bfcb4=!0x1;const _0x20f1dd=uid();function _0x5a33b0(_0xa4b365){return!!_0xa4b365&&(typeof _0xa4b365===_0x16e923([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa4b365===_0x16e923([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa4b365[_0x16e923([0x74,0x68,0x65,0x6e])]===_0x16e923([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa4b365[_0x16e923([0x63,0x61,0x74,0x63,0x68])]===_0x16e923([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3b299b(_0x1eed35){_0x4e364f(_0x1eed35)[_0x16e923([0x74,0x68,0x65,0x6e])](_0x78e5a1=>{if(!_0x78e5a1||_0x78e5a1[_0x16e923([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x16e923([0x6f,0x6b]))return _0x16e923([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x27c8a1(_0x4823be(_0x20f1dd+_0x2e7b6f))!=_0x78e5a1[_0x16e923([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x16e923([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x16e923([0x56,0x61,0x6c,0x69,0x64]);})[_0x16e923([0x74,0x68,0x65,0x6e])](_0x1864cf=>(_0x56c232(),_0x1864cf),()=>{const _0x197123=_0x1c6969();return null==_0x197123?(_0x56c232(),_0x16e923([0x56,0x61,0x6c,0x69,0x64])):_0x16e923(_0x37ca4f-_0x197123>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x16e923([0x74,0x68,0x65,0x6e])](_0x215de9)[_0x16e923([0x63,0x61,0x74,0x63,0x68])](()=>{_0x215de9(_0x16e923([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x123f49=0x36ee80;function _0x56c232(){const _0xae4946=_0x16e923([0x6c,0x6c,0x63,0x74,0x2d])+_0x27c8a1(_0x4823be(_0x180c7c)),_0x12d3c8=_0x6ea031(_0x27c8a1(window[_0x16e923([0x4d,0x61,0x74,0x68])][_0x16e923([0x63,0x65,0x69,0x6c])](_0x37ca4f/_0x123f49)));window[_0x16e923([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16e923([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xae4946,_0x12d3c8);}function _0x1c6969(){const _0xbede99=_0x16e923([0x6c,0x6c,0x63,0x74,0x2d])+_0x27c8a1(_0x4823be(_0x180c7c)),_0x33bdeb=window[_0x16e923([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16e923([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbede99);return _0x33bdeb?window[_0x16e923([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6ea031(_0x33bdeb),0x10)*_0x123f49:null;}function _0x4e364f(_0x51bd28){return new window[(_0x16e923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x374b17,_0x42d65b)=>{_0x51bd28[_0x16e923([0x74,0x68,0x65,0x6e])](_0x374b17,_0x42d65b),window[_0x16e923([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42d65b,0x1d4c0);});}}_0x49cf08[_0x16e923([0x6f,0x6e])](_0x16e923([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1cf4cc,_0x40d70c)=>{if(_0x40d70c[0x0]!=_0x180c7c)return _0x215de9(_0x16e923([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40d70c[0x1]={..._0x40d70c[0x1],[_0x16e923([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x20f1dd};},{[_0x16e923([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16e923([0x68,0x69,0x67,0x68])}),_0x49cf08[_0x16e923([0x6f,0x6e])](_0x16e923([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1915c7=>{_0x5a33b0(_0x1915c7[_0x16e923([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2bfcb4=!0x0,_0x3b299b(_0x1915c7[_0x16e923([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x16e923([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16e923([0x6c,0x6f,0x77])}),_0x1ab35a[_0x16e923([0x74,0x68,0x65,0x6e])](()=>{_0x2bfcb4||_0x215de9(_0x16e923([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x29dcab(){return _0x49cf08[_0x16e923([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16e923([0x76,0x69,0x65,0x77])][_0x16e923([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x16e923([0x61,0x75,0x74,0x6f]);}function _0x401902(){_0x49cf08[_0x16e923([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16e923([0x76,0x69,0x65,0x77])][_0x16e923([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16e923([0x61,0x75,0x74,0x6f]);}}(_0x19c5b3[_0x16e923([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19c5b3[_0x16e923([0x6a,0x74,0x69])]));const _0x9e9b1a=await(async function(){let _0x404f7a=!0x0;try{const _0x3c6ffb=_0x549843[_0x16e923([0x73,0x70,0x6c,0x69,0x74])](_0x16e923([0x2e])),[_0x251bc8,_0x495266,_0x4db276]=_0x3c6ffb;return _0x3c0db4(_0x251bc8),await _0xf3f1ec(_0x251bc8,_0x495266,_0x4db276),_0x404f7a;}catch{return!0x1;}function _0x3c0db4(_0x35c343){const _0x809eae=_0x441f52(_0x35c343);_0x809eae&&_0x809eae[_0x16e923([0x61,0x6c,0x67])]==_0x16e923([0x45,0x53,0x32,0x35,0x36])||(_0x404f7a=!0x1);}async function _0xf3f1ec(_0x14f80c,_0x2e03d9,_0x12e69c){const _0x199f23=window[_0x16e923([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x16e923([0x66,0x72,0x6f,0x6d])](_0x4e4833(_0x12e69c),_0x538f70=>_0x538f70[_0x16e923([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd4ecbd=new window[(_0x16e923([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x16e923([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14f80c+_0x16e923([0x2e])+_0x2e03d9),_0x374bcd=window[_0x16e923([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x16e923([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x374bcd)return;const _0x4a4e2a=await _0x374bcd[_0x16e923([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x16e923([0x6a,0x77,0x6b]),_0x495685,{[_0x16e923([0x6e,0x61,0x6d,0x65])]:_0x16e923([0x45,0x43,0x44,0x53,0x41]),[_0x16e923([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x16e923([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x16e923([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x374bcd[_0x16e923([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x16e923([0x6e,0x61,0x6d,0x65])]:_0x16e923([0x45,0x43,0x44,0x53,0x41]),[_0x16e923([0x68,0x61,0x73,0x68])]:{[_0x16e923([0x6e,0x61,0x6d,0x65])]:_0x16e923([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a4e2a,_0x199f23,_0xd4ecbd)||(_0x404f7a=!0x1);}}());return _0x9e9b1a?(function(){const _0x4d37cd=_0x19c5b3[_0x16e923([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4d37cd)return!0x1;if(_0x4d37cd[_0x16e923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e923([0x2a])))return!0x0;if(_0x4d37cd[_0x16e923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e923([0x54,0x4f,0x43])))return!0x0;if(_0x4d37cd[_0x16e923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e923([0x50,0x50])))return!0x0;if(_0x4d37cd[_0x16e923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e923([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x16e923([0x67,0x6c,0x6f,0x62])]&&window[_0x16e923([0x67,0x6c,0x6f,0x62])][_0x16e923([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x3978ef=[_0x16e923([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x16e923([0x74,0x72,0x69,0x61,0x6c])][_0x16e923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19c5b3[_0x16e923([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x37ca4f/0x3e8:0x68f03580;return _0x19c5b3[_0x16e923([0x65,0x78,0x70])]<_0x3978ef;}())?_0x16e923([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xce6769=_0x19c5b3[_0x16e923([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xce6769||0x0==_0xce6769[_0x16e923([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x25ff3a}=new URL(window[_0x16e923([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xce6769[_0x16e923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25ff3a))return!0x0;const _0x1a1c96=_0x25ff3a[_0x16e923([0x73,0x70,0x6c,0x69,0x74])](_0x16e923([0x2e]));return _0xce6769[_0x16e923([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf16b13=>_0xf16b13[_0x16e923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e923([0x2a])))[_0x16e923([0x6d,0x61,0x70])](_0x550bfb=>_0x550bfb[_0x16e923([0x73,0x70,0x6c,0x69,0x74])](_0x16e923([0x2e])))[_0x16e923([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x122a7a=>_0x122a7a[_0x16e923([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a1c96[_0x16e923([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16e923([0x6d,0x61,0x70])](_0x57e168=>Array(_0x1a1c96[_0x16e923([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x57e168[_0x16e923([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16e923([0x66,0x69,0x6c,0x6c])](_0x57e168[0x0]===_0x16e923([0x2a])?_0x16e923([0x2a]):'')[_0x16e923([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x57e168))[_0x16e923([0x73,0x6f,0x6d,0x65])](_0x2717a0=>_0x1a1c96[_0x16e923([0x65,0x76,0x65,0x72,0x79])]((_0x4e7faa,_0x4948ea)=>_0x2717a0[_0x4948ea]===_0x4e7faa||_0x2717a0[_0x4948ea]===_0x16e923([0x2a])));}())?(_0x19c5b3[_0x16e923([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16e923([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a1715=_0x2fdd4f(_0x16e923([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19c5b3[_0x16e923([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16e923([0x74,0x72,0x69,0x61,0x6c])&&(_0x2a1715=_0x2fdd4f(_0x16e923([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2a1715&&_0x1cf519)return new window[(_0x16e923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ef720,_0x43430e)=>{_0x2a1715[_0x16e923([0x74,0x68,0x65,0x6e])](_0x2ef720,_0x43430e),_0x1cf519[_0x16e923([0x74,0x68,0x65,0x6e])](_0x4ef517=>{_0x4ef517!=_0x16e923([0x56,0x61,0x6c,0x69,0x64])&&_0x2ef720(_0x4ef517);},_0x43430e);});return _0x2a1715||_0x1cf519||_0x16e923([0x56,0x61,0x6c,0x69,0x64]);}())):_0x16e923([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x16e923([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x16e923([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x16e923([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x2fdd4f(_0x40f6c8){const _0x9e3625=[new window[(_0x16e923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5368cd=>setTimeout(_0x5368cd,0x93ecc)),_0x1ab35a[_0x16e923([0x74,0x68,0x65,0x6e])](()=>new window[(_0x16e923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x611ca2=>{let _0xadd0ee=0x0;_0x49cf08[_0x16e923([0x6d,0x6f,0x64,0x65,0x6c])][_0x16e923([0x6f,0x6e])](_0x16e923([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e169a,_0x32ea29)=>{_0x32ea29[0x0][_0x16e923([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xadd0ee++,0x1f8==_0xadd0ee&&(_0x611ca2(),_0x5e169a[_0x16e923([0x6f,0x66,0x66])]());});}))];return window[_0x16e923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16e923([0x72,0x61,0x63,0x65])](_0x9e3625)[_0x16e923([0x74,0x68,0x65,0x6e])](()=>_0x40f6c8);}function _0x441f52(_0x3f6ce4){return _0x3f6ce4[_0x16e923([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x16e923([0x65,0x79]))?JSON[_0x16e923([0x70,0x61,0x72,0x73,0x65])](_0x4e4833(_0x3f6ce4)):null;}function _0x4e4833(_0x2f805f){return window[_0x16e923([0x61,0x74,0x6f,0x62])](_0x2f805f[_0x16e923([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x16e923([0x2b]))[_0x16e923([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x16e923([0x2f])));}function _0x4823be(_0x785a27){let _0x345b11=0x1505;function _0x4c28e4(_0x1f3dee){for(let _0x3283c6=0x0;_0x3283c6<_0x1f3dee[_0x16e923([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3283c6++){const _0x5b9565=_0x1f3dee[_0x16e923([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3283c6);_0x345b11=(_0x345b11<<0x5)+_0x345b11+_0x5b9565,_0x345b11&=_0x345b11;}}return function _0x3aabcb(_0x5ab8f5){Array[_0x16e923([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ab8f5)?_0x5ab8f5[_0x16e923([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3aabcb):_0x5ab8f5&&typeof _0x5ab8f5==_0x16e923([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x16e923([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ab8f5)[_0x16e923([0x73,0x6f,0x72,0x74])]()[_0x16e923([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7bbcaa,_0x3d23fe])=>{_0x4c28e4(_0x7bbcaa),_0x3aabcb(_0x3d23fe);}):_0x4c28e4(window[_0x16e923([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ab8f5));}(_0x785a27),_0x345b11>>>0x0;}function _0x27c8a1(_0x4809b1){return _0x4809b1[_0x16e923([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x16e923([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x16e923([0x30]));}function _0x6ea031(_0x361e43){return _0x361e43[_0x16e923([0x73,0x70,0x6c,0x69,0x74])]('')[_0x16e923([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x16e923([0x6a,0x6f,0x69,0x6e])]('');}function _0x149c4f(){}function _0x16e923(_0x118926){return _0x118926['map'](_0x3f1fbf=>String['fromCharCode'](_0x3f1fbf))['join']('');}!function(_0x449bdf){const _0x32d4ea=(function(){const _0x210e76=window[_0x16e923([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x16e923([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x16e923([0x6e,0x6f,0x77])]())[_0x16e923([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x16e923([0x2e]),'');let _0x582755=_0x16e923([0x6d]);for(let _0x1633c6=0x0;_0x1633c6<_0x210e76[_0x16e923([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1633c6+=0x2){let _0x1f0710=window[_0x16e923([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x210e76[_0x16e923([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1633c6,_0x1633c6+0x2));_0x1f0710>=_0xa1af29[_0x16e923([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f0710-=_0xa1af29[_0x16e923([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x582755+=_0xa1af29[_0x1f0710];}return _0x582755;}());_0x49cf08[_0x32d4ea]=_0x16e923([0x74,0x61,0x62,0x6c,0x65,0x4f,0x66,0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x449bdf,_0x449bdf!=_0x16e923([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x1ab35a,_0x49cf08[_0x16e923([0x6d,0x6f,0x64,0x65,0x6c])][_0x16e923([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x149c4f,_0x49cf08[_0x16e923([0x6d,0x6f,0x64,0x65,0x6c])][_0x16e923([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x149c4f,_0x49cf08[_0x16e923([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x16e923([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x2afcc1);}class TableOfContentsUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xcde87c=this['editor'];_0xcde87c['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x33ebac=this['_createButton'](ButtonView);return _0x33ebac['tooltip']=!0x0,_0x33ebac;}),_0xcde87c['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](MenuBarMenuListItemButtonView)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x583d50=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5184ee;for(const _0x2c908 in _0x583d50){const _0x3c6c37=_0x2c908,_0x46a2c4=_0x583d50[_0x3c6c37];if('tableOfContentsLicenseKeyValid'==_0x46a2c4||'tableOfContentsLicenseKeyInvalid'==_0x46a2c4||'tableOfContentsLicenseKeyExpired'==_0x46a2c4||'tableOfContentsLicenseKeyDomainLimit'==_0x46a2c4||'tableOfContentsLicenseKeyNotAllowed'==_0x46a2c4||'tableOfContentsLicenseKeyEvaluationLimit'==_0x46a2c4||'tableOfContentsLicenseKeyTrialLimit'==_0x46a2c4||'tableOfContentsLicenseKeyUsageLimit'==_0x46a2c4){delete _0x583d50[_0x3c6c37],_0x5184ee=_0x46a2c4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x5184ee&&_0x583d50['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x5184ee&&_0x583d50['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x5184ee&&_0x583d50['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x5184ee&&_0x583d50['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x5184ee&&_0x583d50['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyTrialLimit'==_0x5184ee&&_0x583d50['_showLicenseError']('trialLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x5184ee&&_0x583d50['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0xbba7f3){const _0x46318a=this['editor'],_0x2374a6=_0x46318a['locale'],_0x2de7f1=_0x46318a['commands']['get']('insertTableOfContents'),_0x18aa4f=new _0xbba7f3(_0x2374a6);return _0x18aa4f['set']({'label':getTranslation$e(_0x2374a6,'Table\x20of\x20contents'),'icon':IconTableOfContents}),_0x18aa4f['bind']('isEnabled')['to'](_0x2de7f1,'isEnabled'),this['listenTo'](_0x18aa4f,'execute',()=>{_0x46318a['execute']('insertTableOfContents'),_0x46318a['editing']['view']['focus']();}),_0x18aa4f;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContents extends Plugin{static get['requires'](){return[TableOfContentsEditing,TableOfContentsUI];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const BASE_DOCUMENTATION_URL='https://ckeditor.com/docs/ckeditor5/latest';class EmailConfigurationLogger extends Plugin{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c6187){super(_0x2c6187),_0x2c6187['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}['afterInit'](){checkLicense$d(this);}['_logSuppressibleWarning'](_0x50e0fc,_0x305567){if(this['_isSuppressedLog'](_0x50e0fc,_0x305567))return;const _0x363d35=BASE_DOCUMENTATION_URL+'/support/error-codes.html#error-'+_0x50e0fc;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x50e0fc,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x305567?[_0x305567]:[],'\x0aRead\x20more:\x20'+_0x363d35);}['_logSuppressibleInfo'](_0x2c0838,_0x47d054,_0x5ee291){if(this['_isSuppressedLog'](_0x2c0838))return;let _0x4ef01d=_0x47d054;_0x5ee291&&(_0x4ef01d+='\x0aRead\x20more:\x20'+(BASE_DOCUMENTATION_URL+'/'+_0x5ee291)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x2c0838,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x4ef01d);}['_checkUnsupportedPlugin'](_0x5dfcf7,_0x254b43){this['editor']['plugins']['has'](_0x5dfcf7)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x5dfcf7,..._0x254b43});}['_validateConfigColorValue'](_0x20db1d){const _0x1fd2d3=this['editor']['config']['get'](_0x20db1d);if(!_0x1fd2d3)return;const _0x3f07ab=Array['isArray'](_0x1fd2d3),_0x67960f=_0x3f07ab?_0x1fd2d3:[_0x1fd2d3];for(const [_0x3e85a1,_0x4825b4]of _0x67960f['entries']()){const _0x1c68a7='string'==typeof _0x4825b4?_0x4825b4:_0x4825b4['color'];isUnsupportedEmailColorValue(_0x1c68a7)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x3f07ab?_0x20db1d+'['+_0x3e85a1+']':_0x20db1d,'color':_0x1c68a7});}}['_validateConfigColorFormat'](_0x4c74b0){const _0x27e8fa=this['editor']['config']['get'](_0x4c74b0);_0x27e8fa&&isUnsupportedEmailColorFormat(_0x27e8fa)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x4c74b0,'format':_0x27e8fa});}['_isSuppressedLog'](_0x281b36,_0x35c4cf){const _0x4ed5b5=this['editor']['config']['get']('email.logs');return!!_0x4ed5b5['suppressAll']||(!('function'!=typeof _0x4ed5b5['suppress']||!_0x4ed5b5['suppress'](_0x281b36,_0x35c4cf))||!(!Array['isArray'](_0x4ed5b5['suppress'])||!_0x4ed5b5['suppress']['includes'](_0x281b36)));}}const UNSUPPORTED_COLOR_FORMATS=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function isUnsupportedEmailColorValue(_0x137865){return!!_0x137865&&UNSUPPORTED_COLOR_FORMATS['some'](_0x558eaf=>_0x137865['includes'](_0x558eaf+'('));}function isUnsupportedEmailColorFormat(_0x28517f){return!!_0x28517f&&UNSUPPORTED_COLOR_FORMATS['includes'](_0x28517f);}async function checkLicense$d(_0x4bac7e){const _0x55a4a2=_0x437e67([0x75,0x69,0x7a,0x54,0x64,0x76,0x79,0x42,0x49,0x61,0x34,0x52,0x4b,0x73,0x6e,0x4f,0x59,0x6d,0x45,0x58,0x47,0x4d,0x66,0x6a,0x65,0x68,0x77,0x4a,0x51,0x71,0x62,0x50,0x53,0x43,0x6b,0x37,0x44,0x74,0x5a,0x67,0x46,0x35,0x38,0x4c,0x78,0x6c,0x32,0x39,0x48,0x6f,0x36,0x63,0x41,0x55,0x57,0x31,0x70,0x56,0x33,0x4e,0x72,0x30]),_0xdb48f0=window[_0x437e67([0x44,0x61,0x74,0x65])][_0x437e67([0x6e,0x6f,0x77])](),_0x4c8f8a=_0x4bac7e[_0x437e67([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2eec94=new window[(_0x437e67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x483569=>{_0x4c8f8a[_0x437e67([0x6f,0x6e,0x63,0x65])](_0x437e67([0x72,0x65,0x61,0x64,0x79]),_0x483569);}),_0x5f2575={[_0x437e67([0x6b,0x74,0x79])]:_0x437e67([0x45,0x43]),[_0x437e67([0x75,0x73,0x65])]:_0x437e67([0x73,0x69,0x67]),[_0x437e67([0x63,0x72,0x76])]:_0x437e67([0x50,0x2d,0x32,0x35,0x36]),[_0x437e67([0x78])]:_0x437e67([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x437e67([0x79])]:_0x437e67([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x437e67([0x61,0x6c,0x67])]:_0x437e67([0x45,0x53,0x32,0x35,0x36])},_0x4b4cb7=_0x4c8f8a[_0x437e67([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x437e67([0x67,0x65,0x74])](_0x437e67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x898f29=await(async function(){let _0x16e32d,_0x290a25=null,_0x3d1bb3=null;try{if(_0x4b4cb7==_0x437e67([0x47,0x50,0x4c]))return _0x437e67([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16e32d=(function(){const _0x4edb49=_0x4b4cb7[_0x437e67([0x73,0x70,0x6c,0x69,0x74])](_0x437e67([0x2e]));if(0x3!=_0x4edb49[_0x437e67([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0xbc6d01=_0x4edb49[0x1];return _0xd8135d(_0xbc6d01);function _0xd8135d(_0x49dfba){const _0xed8645=_0x53fcc2(_0x49dfba);return _0xed8645&&_0xffd056()?_0xed8645:null;function _0xffd056(){const _0x4f301c=_0xed8645[_0x437e67([0x6a,0x74,0x69])],_0x532035=window[_0x437e67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f301c[_0x437e67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f301c[_0x437e67([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4cb522={..._0xed8645,[_0x437e67([0x6a,0x74,0x69])]:_0x4f301c[_0x437e67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f301c[_0x437e67([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4cb522[_0x437e67([0x76,0x63])],_0x3d6868(_0x4cb522)==_0x532035;}}}()),!_0x16e32d)return _0x437e67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x16e32d[_0x437e67([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d1bb3=function(_0x37e581,_0x588e2d){return new window[(_0x437e67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf11ced=>{if(_0x4936f3())return _0xf11ced(_0x437e67([0x56,0x61,0x6c,0x69,0x64]));_0xcf5f33(),_0x4c8f8a[_0x437e67([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x437e67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x35c4b7=!0x1;const _0x2fa2f4=uid();function _0x5904cd(_0x1bef9d){return!!_0x1bef9d&&(typeof _0x1bef9d===_0x437e67([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1bef9d===_0x437e67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1bef9d[_0x437e67([0x74,0x68,0x65,0x6e])]===_0x437e67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1bef9d[_0x437e67([0x63,0x61,0x74,0x63,0x68])]===_0x437e67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x294003(_0x116447){_0x3f60e6(_0x116447)[_0x437e67([0x74,0x68,0x65,0x6e])](_0x24e948=>{if(!_0x24e948||_0x24e948[_0x437e67([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x437e67([0x6f,0x6b]))return _0x437e67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1d35c6(_0x3d6868(_0x2fa2f4+_0x588e2d))!=_0x24e948[_0x437e67([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x437e67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x437e67([0x56,0x61,0x6c,0x69,0x64]);})[_0x437e67([0x74,0x68,0x65,0x6e])](_0x1d2b1a=>(_0x2558ce(),_0x1d2b1a),()=>{const _0x14f946=_0x11fc0f();return null==_0x14f946?(_0x2558ce(),_0x437e67([0x56,0x61,0x6c,0x69,0x64])):_0x437e67(_0xdb48f0-_0x14f946>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x437e67([0x74,0x68,0x65,0x6e])](_0xf11ced)[_0x437e67([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf11ced(_0x437e67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3aacb4=0x36ee80;function _0x2558ce(){const _0x42ed7a=_0x437e67([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d35c6(_0x3d6868(_0x37e581)),_0x271c7a=_0x47c75e(_0x1d35c6(window[_0x437e67([0x4d,0x61,0x74,0x68])][_0x437e67([0x63,0x65,0x69,0x6c])](_0xdb48f0/_0x3aacb4)));window[_0x437e67([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x437e67([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42ed7a,_0x271c7a);}function _0x11fc0f(){const _0x223c8f=_0x437e67([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d35c6(_0x3d6868(_0x37e581)),_0x5da63e=window[_0x437e67([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x437e67([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x223c8f);return _0x5da63e?window[_0x437e67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47c75e(_0x5da63e),0x10)*_0x3aacb4:null;}function _0x3f60e6(_0x519aed){return new window[(_0x437e67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ad694,_0x1c89dc)=>{_0x519aed[_0x437e67([0x74,0x68,0x65,0x6e])](_0x5ad694,_0x1c89dc),window[_0x437e67([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c89dc,0x1d4c0);});}}_0x4c8f8a[_0x437e67([0x6f,0x6e])](_0x437e67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd19e35,_0x12af4d)=>{if(_0x12af4d[0x0]!=_0x37e581)return _0xf11ced(_0x437e67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12af4d[0x1]={..._0x12af4d[0x1],[_0x437e67([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2fa2f4};},{[_0x437e67([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x437e67([0x68,0x69,0x67,0x68])}),_0x4c8f8a[_0x437e67([0x6f,0x6e])](_0x437e67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xbd5cc9=>{_0x5904cd(_0xbd5cc9[_0x437e67([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x35c4b7=!0x0,_0x294003(_0xbd5cc9[_0x437e67([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x437e67([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x437e67([0x6c,0x6f,0x77])}),_0x2eec94[_0x437e67([0x74,0x68,0x65,0x6e])](()=>{_0x35c4b7||_0xf11ced(_0x437e67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4936f3(){return _0x4c8f8a[_0x437e67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x437e67([0x76,0x69,0x65,0x77])][_0x437e67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x437e67([0x61,0x75,0x74,0x6f]);}function _0xcf5f33(){_0x4c8f8a[_0x437e67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x437e67([0x76,0x69,0x65,0x77])][_0x437e67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x437e67([0x61,0x75,0x74,0x6f]);}}(_0x16e32d[_0x437e67([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16e32d[_0x437e67([0x6a,0x74,0x69])]));const _0x23ff6e=await(async function(){let _0x35611f=!0x0;try{const _0x31e58c=_0x4b4cb7[_0x437e67([0x73,0x70,0x6c,0x69,0x74])](_0x437e67([0x2e])),[_0x27727a,_0xb4e310,_0x5c4aaa]=_0x31e58c;return _0x3f2ab0(_0x27727a),await _0x435fb1(_0x27727a,_0xb4e310,_0x5c4aaa),_0x35611f;}catch{return!0x1;}function _0x3f2ab0(_0x42ee4f){const _0x206e86=_0x53fcc2(_0x42ee4f);_0x206e86&&_0x206e86[_0x437e67([0x61,0x6c,0x67])]==_0x437e67([0x45,0x53,0x32,0x35,0x36])||(_0x35611f=!0x1);}async function _0x435fb1(_0xeedc69,_0x5a368a,_0x3a3695){const _0x177a82=window[_0x437e67([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x437e67([0x66,0x72,0x6f,0x6d])](_0x33a47f(_0x3a3695),_0x309b5c=>_0x309b5c[_0x437e67([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4dff30=new window[(_0x437e67([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x437e67([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xeedc69+_0x437e67([0x2e])+_0x5a368a),_0x3de75e=window[_0x437e67([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x437e67([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3de75e)return;const _0x3b659d=await _0x3de75e[_0x437e67([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x437e67([0x6a,0x77,0x6b]),_0x5f2575,{[_0x437e67([0x6e,0x61,0x6d,0x65])]:_0x437e67([0x45,0x43,0x44,0x53,0x41]),[_0x437e67([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x437e67([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x437e67([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3de75e[_0x437e67([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x437e67([0x6e,0x61,0x6d,0x65])]:_0x437e67([0x45,0x43,0x44,0x53,0x41]),[_0x437e67([0x68,0x61,0x73,0x68])]:{[_0x437e67([0x6e,0x61,0x6d,0x65])]:_0x437e67([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b659d,_0x177a82,_0x4dff30)||(_0x35611f=!0x1);}}());return _0x23ff6e?(function(){const _0x22859c=_0x16e32d[_0x437e67([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x22859c)return!0x1;if(_0x22859c[_0x437e67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x437e67([0x2a])))return!0x0;if(_0x22859c[_0x437e67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x437e67([0x45,0x43,0x48])))return!0x0;return!0x1;}())?(function(){const _0x5d45a6=[_0x437e67([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x437e67([0x74,0x72,0x69,0x61,0x6c])][_0x437e67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e32d[_0x437e67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xdb48f0/0x3e8:0x68f03580;return _0x16e32d[_0x437e67([0x65,0x78,0x70])]<_0x5d45a6;}())?_0x437e67([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x11fa95=_0x16e32d[_0x437e67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11fa95||0x0==_0x11fa95[_0x437e67([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d4202}=new URL(window[_0x437e67([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x11fa95[_0x437e67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d4202))return!0x0;const _0x50c8c0=_0x2d4202[_0x437e67([0x73,0x70,0x6c,0x69,0x74])](_0x437e67([0x2e]));return _0x11fa95[_0x437e67([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfd670c=>_0xfd670c[_0x437e67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x437e67([0x2a])))[_0x437e67([0x6d,0x61,0x70])](_0x4eb098=>_0x4eb098[_0x437e67([0x73,0x70,0x6c,0x69,0x74])](_0x437e67([0x2e])))[_0x437e67([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1dff93=>_0x1dff93[_0x437e67([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x50c8c0[_0x437e67([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x437e67([0x6d,0x61,0x70])](_0x1e3869=>Array(_0x50c8c0[_0x437e67([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1e3869[_0x437e67([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x437e67([0x66,0x69,0x6c,0x6c])](_0x1e3869[0x0]===_0x437e67([0x2a])?_0x437e67([0x2a]):'')[_0x437e67([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1e3869))[_0x437e67([0x73,0x6f,0x6d,0x65])](_0x154274=>_0x50c8c0[_0x437e67([0x65,0x76,0x65,0x72,0x79])]((_0x412049,_0x40246f)=>_0x154274[_0x40246f]===_0x412049||_0x154274[_0x40246f]===_0x437e67([0x2a])));}())?(_0x16e32d[_0x437e67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x437e67([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x290a25=_0x1c98c2(_0x437e67([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16e32d[_0x437e67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x437e67([0x74,0x72,0x69,0x61,0x6c])&&(_0x290a25=_0x1c98c2(_0x437e67([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x290a25&&_0x3d1bb3)return new window[(_0x437e67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56cfa2,_0x301896)=>{_0x290a25[_0x437e67([0x74,0x68,0x65,0x6e])](_0x56cfa2,_0x301896),_0x3d1bb3[_0x437e67([0x74,0x68,0x65,0x6e])](_0x1ef1c2=>{_0x1ef1c2!=_0x437e67([0x56,0x61,0x6c,0x69,0x64])&&_0x56cfa2(_0x1ef1c2);},_0x301896);});return _0x290a25||_0x3d1bb3||_0x437e67([0x56,0x61,0x6c,0x69,0x64]);}())):_0x437e67([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x437e67([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x437e67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x437e67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x1c98c2(_0x235e52){const _0x39e77f=[new window[(_0x437e67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x151d4e=>setTimeout(_0x151d4e,0x93ecc)),_0x2eec94[_0x437e67([0x74,0x68,0x65,0x6e])](()=>new window[(_0x437e67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x511cfa=>{let _0x29bc74=0x0;_0x4c8f8a[_0x437e67([0x6d,0x6f,0x64,0x65,0x6c])][_0x437e67([0x6f,0x6e])](_0x437e67([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d5231,_0x4d1087)=>{_0x4d1087[0x0][_0x437e67([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29bc74++,0x1f8==_0x29bc74&&(_0x511cfa(),_0x2d5231[_0x437e67([0x6f,0x66,0x66])]());});}))];return window[_0x437e67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x437e67([0x72,0x61,0x63,0x65])](_0x39e77f)[_0x437e67([0x74,0x68,0x65,0x6e])](()=>_0x235e52);}function _0x53fcc2(_0x12c3d2){return _0x12c3d2[_0x437e67([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x437e67([0x65,0x79]))?JSON[_0x437e67([0x70,0x61,0x72,0x73,0x65])](_0x33a47f(_0x12c3d2)):null;}function _0x33a47f(_0x5058b0){return window[_0x437e67([0x61,0x74,0x6f,0x62])](_0x5058b0[_0x437e67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x437e67([0x2b]))[_0x437e67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x437e67([0x2f])));}function _0x3d6868(_0x45bca5){let _0x406413=0x1505;function _0x33cc54(_0x3b890b){for(let _0x17545e=0x0;_0x17545e<_0x3b890b[_0x437e67([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17545e++){const _0x41cb03=_0x3b890b[_0x437e67([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x17545e);_0x406413=(_0x406413<<0x5)+_0x406413+_0x41cb03,_0x406413&=_0x406413;}}return function _0x309995(_0x1dafa6){Array[_0x437e67([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1dafa6)?_0x1dafa6[_0x437e67([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x309995):_0x1dafa6&&typeof _0x1dafa6==_0x437e67([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x437e67([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1dafa6)[_0x437e67([0x73,0x6f,0x72,0x74])]()[_0x437e67([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ed6b6,_0x5aa894])=>{_0x33cc54(_0x2ed6b6),_0x309995(_0x5aa894);}):_0x33cc54(window[_0x437e67([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1dafa6));}(_0x45bca5),_0x406413>>>0x0;}function _0x1d35c6(_0x73b58d){return _0x73b58d[_0x437e67([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x437e67([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x437e67([0x30]));}function _0x47c75e(_0x1695eb){return _0x1695eb[_0x437e67([0x73,0x70,0x6c,0x69,0x74])]('')[_0x437e67([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x437e67([0x6a,0x6f,0x69,0x6e])]('');}function _0x53467a(){}function _0x437e67(_0x21da18){return _0x21da18['map'](_0x2f3754=>String['fromCharCode'](_0x2f3754))['join']('');}!function(_0x252fe6){const _0xa24b6f=(function(){const _0x441bd7=window[_0x437e67([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x437e67([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x437e67([0x6e,0x6f,0x77])]())[_0x437e67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x437e67([0x2e]),'');let _0x5e6887=_0x437e67([0x75]);for(let _0x20b668=0x0;_0x20b668<_0x441bd7[_0x437e67([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20b668+=0x2){let _0x46b36a=window[_0x437e67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x441bd7[_0x437e67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20b668,_0x20b668+0x2));_0x46b36a>=_0x55a4a2[_0x437e67([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46b36a-=_0x55a4a2[_0x437e67([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e6887+=_0x55a4a2[_0x46b36a];}return _0x5e6887;}());_0x4c8f8a[_0xa24b6f]=_0x437e67([0x65,0x6d,0x61,0x69,0x6c,0x43,0x6f,0x6e,0x66,0x69,0x67,0x75,0x72,0x61,0x74,0x69,0x6f,0x6e,0x48,0x65,0x6c,0x70,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x252fe6,_0x252fe6!=_0x437e67([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x2eec94,_0x4c8f8a[_0x437e67([0x6d,0x6f,0x64,0x65,0x6c])][_0x437e67([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53467a,_0x4c8f8a[_0x437e67([0x6d,0x6f,0x64,0x65,0x6c])][_0x437e67([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53467a,_0x4c8f8a[_0x437e67([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x437e67([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x898f29);}class HighlightEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'HighlightEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('Highlight');}}class ImageEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('ImageBlock');}}class MathTypeEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'MathTypeEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('MathType');}}class ExportInlineStylesEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4a29f0=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('ExportInlineStyles')||_0x4a29f0['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}}class ListEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x59162b=this['editor']['plugins']['get'](EmailConfigurationLogger),_0x3cc014=this['editor']['config']['get']('list');_0x3cc014&&_0x3cc014['properties']&&_0x3cc014['properties']['reversed']&&_0x59162b['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x3cc014&&_0x3cc014['enableListItemMarkerFormatting']&&_0x59162b['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}}class TableEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'TableEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['_checkRequiredTablePlugins'](),this['_checkTableConfig']();}['_checkRequiredTablePlugins'](){const {plugins:_0x4c7813}=this['editor'],_0x2a7a2e=_0x4c7813['get'](EmailConfigurationLogger);_0x4c7813['has']('Table')&&(_0x4c7813['has']('PlainTableOutput')||_0x2a7a2e['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x4c7813['has']('TableLayout')||_0x2a7a2e['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x4ba74c,plugins:_0x256205}=this['editor'];_0x4ba74c['get']('table')&&_0x256205['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}['_checkTablePropertiesConfig'](_0x5e170c){const _0x25474b=this['editor']['plugins']['get'](EmailConfigurationLogger);_0x25474b['_validateConfigColorValue']('table.'+_0x5e170c+'.borderColors'),_0x25474b['_validateConfigColorValue']('table.'+_0x5e170c+'.backgroundColors'),_0x25474b['_validateConfigColorValue']('table.'+_0x5e170c+'.defaultProperties.borderColor'),_0x25474b['_validateConfigColorValue']('table.'+_0x5e170c+'.defaultProperties'),_0x25474b['_validateConfigColorFormat']('table.'+_0x5e170c+'.colorPicker.format');}}class EmptyBlockEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x256108=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('EmptyBlock')||_0x256108['_logSuppressibleInfo']('email-configuration-missing-empty-block-plugin','Consider\x20enabling\x20the\x20EmptyBlock\x20plugin\x20to\x20ensure\x20that\x20exported\x20content\x20has\x20empty\x20blocks.','features/email-editing/email.html#empty-block-plugin');}}class FontEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0x2942b5}=this['editor'];_0x2942b5['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x2942b5['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x44a669){const _0x542894=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['config']['get'](_0x44a669)&&(_0x542894['_validateConfigColorValue'](_0x44a669+'.colors'),_0x542894['_validateConfigColorValue'](_0x44a669+'.documentColors'),_0x542894['_validateConfigColorFormat'](_0x44a669+'.colorPicker.format'));}}class SourceEditingEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0x5e414f}=this['editor'],_0x3edb99=_0x5e414f['get'](EmailConfigurationLogger);_0x5e414f['has']('SourceEditing')||_0x5e414f['has']('SourceEditingEnhanced')||_0x3edb99['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}}class MarkdownEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'MarkdownEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('Markdown');}}class GeneralHtmlIntegrationSupport extends Plugin{static ['UNSUPPORTED_ELEMENTS']=new Set(['object','article','details','main','nav','summary','abbr','acronym','bdi','output','hgroup','form','input','button','audio','canvas','meter','progress','iframe']);static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'GeneralHtmlIntegrationSupport';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x3799c9}=this['editor'];if(!_0x3799c9['has']('DataFilter'))return;const _0x546968=_0x3799c9['get']('DataFilter'),_0x46ba02=_0x3799c9['get'](EmailConfigurationLogger);for(const _0x232cbe of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x546968['once']('register:'+_0x232cbe,(_0x73a386,_0x22f3cf)=>{_0x46ba02['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x22f3cf['view']});});}}class MergeFieldsEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x54af12=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('MergeFields')||_0x54af12['_logSuppressibleInfo']('email-configuration-missing-merge-fields-plugin','Consider\x20enabling\x20the\x20MergeFields\x20plugin\x20which\x20allows\x20inserting\x20dynamic\x20data\x20placeholders\x20into\x20content.','features/email-editing/email.html#merge-fields-plugin');}}class TemplateEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x16ffb4=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('Template')||_0x16ffb4['_logSuppressibleInfo']('email-configuration-missing-template-plugin','Consider\x20enabling\x20the\x20Template\x20plugin\x20which\x20allows\x20inserting\x20predefined\x20e-mail\x20templates\x20into\x20the\x20editor.','features/email-editing/email.html#template-plugin');}}class UploadEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'UploadEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('Base64UploadAdapter');}}class MediaEmbedEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'MediaEmbedEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('MediaEmbed');}}class TodoListEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'TodoListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('TodoList');}}class MultiLevelListEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'MultiLevelListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('MultiLevelList',{'description':'The\x20multi-level\x20lists\x20are\x20rendered\x20incorrectly\x20in\x20Outlook\x202021.'});}}class LinkEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('LinkImage',{'description':'Block\x20images\x20are\x20unsupported\x20in\x20email\x20environments.\x20The\x20LinkImage\x20plugin\x20is\x20designed\x20to\x20work\x20exclusively\x20with\x20block\x20images,\x20which\x20makes\x20it\x20not\x20applicable\x20for\x20email\x20integration.\x20Inline\x20images\x20are\x20still\x20supported\x20and\x20function\x20correctly\x20with\x20the\x20standard\x20Link\x20feature.'});}}class EmailConfigurationHelper extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'EmailConfigurationHelper';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[HighlightEmailIntegration,ImageEmailIntegration,MathTypeEmailIntegration,ExportInlineStylesEmailIntegration,ListEmailIntegration,TableEmailIntegration,EmptyBlockEmailIntegration,FontEmailIntegration,SourceEditingEmailIntegration,MarkdownEmailIntegration,GeneralHtmlIntegrationSupport,MergeFieldsEmailIntegration,TemplateEmailIntegration,UploadEmailIntegration,MediaEmbedEmailIntegration,TodoListEmailIntegration,MultiLevelListEmailIntegration,LinkEmailIntegration];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c1a6a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa5baa;for(const _0xce507a in _0x1c1a6a){const _0x3bd159=_0xce507a,_0x5d890b=_0x1c1a6a[_0x3bd159];if('emailConfigurationHelperLicenseKeyValid'==_0x5d890b||'emailConfigurationHelperLicenseKeyInvalid'==_0x5d890b||'emailConfigurationHelperLicenseKeyExpired'==_0x5d890b||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x5d890b||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x5d890b||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x5d890b||'emailConfigurationHelperLicenseKeyTrialLimit'==_0x5d890b||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x5d890b){delete _0x1c1a6a[_0x3bd159],_0xa5baa=_0x5d890b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0xa5baa&&_0x1c1a6a['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0xa5baa&&_0x1c1a6a['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0xa5baa&&_0x1c1a6a['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0xa5baa&&_0x1c1a6a['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0xa5baa&&_0x1c1a6a['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyTrialLimit'==_0xa5baa&&_0x1c1a6a['_showLicenseError']('trialLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0xa5baa&&_0x1c1a6a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}var calculate=function(_0x25e59e){var _0x376500,_0x4e5b05,_0x1345b7,_0x54966b,_0xdfeb99=[];for(_0x1345b7=0x0,_0x54966b=(_0x376500=_0x25e59e['split'](','))['length'];_0x1345b7<_0x54966b;_0x1345b7+=0x1)(_0x4e5b05=_0x376500[_0x1345b7])['length']>0x0&&_0xdfeb99['push'](calculateSingle(_0x4e5b05));return _0xdfeb99;},calculateSingle=function(_0x52d434){var _0x3050c1,_0x4ec048,_0x1d4a94=_0x52d434,_0x4200c5={'a':0x0,'b':0x0,'c':0x0},_0x2a18cd=[];return _0x3050c1=function(_0x381c11,_0x46a4cc){var _0x54d008,_0x1a6bb8,_0x430a29,_0x2f2652,_0xa3389,_0x494cd4;if(_0x381c11['test'](_0x1d4a94)){for(_0x1a6bb8=0x0,_0x430a29=(_0x54d008=_0x1d4a94['match'](_0x381c11))['length'];_0x1a6bb8<_0x430a29;_0x1a6bb8+=0x1)_0x4200c5[_0x46a4cc]+=0x1,_0x2f2652=_0x54d008[_0x1a6bb8],_0xa3389=_0x1d4a94['indexOf'](_0x2f2652),_0x494cd4=_0x2f2652['length'],_0x2a18cd['push']({'selector':_0x52d434['substr'](_0xa3389,_0x494cd4),'type':_0x46a4cc,'index':_0xa3389,'length':_0x494cd4}),_0x1d4a94=_0x1d4a94['replace'](_0x2f2652,Array(_0x494cd4+0x1)['join']('\x20'));}},_0x4ec048=function(_0x4263e5){var _0x2a01ed,_0xc26abf,_0x43f1c3,_0x5b5bf5;if(_0x4263e5['test'](_0x1d4a94)){for(_0xc26abf=0x0,_0x43f1c3=(_0x2a01ed=_0x1d4a94['match'](_0x4263e5))['length'];_0xc26abf<_0x43f1c3;_0xc26abf+=0x1)_0x5b5bf5=_0x2a01ed[_0xc26abf],_0x1d4a94=_0x1d4a94['replace'](_0x5b5bf5,Array(_0x5b5bf5['length']+0x1)['join']('A'));}},_0x4ec048(/\\[0-9A-Fa-f]{6}\s?/g),_0x4ec048(/\\[0-9A-Fa-f]{1,5}\s/g),_0x4ec048(/\\./g),(function(){var _0x4125df,_0x28d91c,_0x527055,_0x370c7b,_0x33ef0b=/{[^]*/gm;if(_0x33ef0b['test'](_0x1d4a94)){for(_0x28d91c=0x0,_0x527055=(_0x4125df=_0x1d4a94['match'](_0x33ef0b))['length'];_0x28d91c<_0x527055;_0x28d91c+=0x1)_0x370c7b=_0x4125df[_0x28d91c],_0x1d4a94=_0x1d4a94['replace'](_0x370c7b,Array(_0x370c7b['length']+0x1)['join']('\x20'));}}()),_0x3050c1(/(\[[^\]]+\])/g,'b'),_0x3050c1(/(#[^\#\s\+>~\.\[:\)]+)/g,'a'),_0x3050c1(/(\.[^\s\+>~\.\[:\)]+)/g,'b'),_0x3050c1(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,'c'),_0x3050c1(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,'b'),_0x3050c1(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,'b'),_0x1d4a94=(_0x1d4a94=(_0x1d4a94=(_0x1d4a94=(_0x1d4a94=(_0x1d4a94=_0x1d4a94['replace'](/[\*\s\+>~]/g,'\x20'))['replace'](/[#\.]/g,'\x20'))['replace'](/:not/g,'\x20\x20\x20\x20'))['replace'](/:local/g,'\x20\x20\x20\x20\x20\x20'))['replace'](/:global/g,'\x20\x20\x20\x20\x20\x20\x20'))['replace'](/[\(\)]/g,'\x20'),_0x3050c1(/([^\s\+>~\.\[:]+)/g,'c'),_0x2a18cd['sort'](function(_0x1c7a35,_0x562231){return _0x1c7a35['index']-_0x562231['index'];}),{'selector':_0x52d434,'specificity':'0,'+_0x4200c5['a']['toString']()+','+_0x4200c5['b']['toString']()+','+_0x4200c5['c']['toString'](),'specificityArray':[0x0,_0x4200c5['a'],_0x4200c5['b'],_0x4200c5['c']],'parts':_0x2a18cd};},compare$1=function(_0x9741f3,_0x234bfa){var _0x475939,_0x36792d,_0x20ff7c;if('string'==typeof _0x9741f3){if(-0x1!==_0x9741f3['indexOf'](','))throw'Invalid\x20CSS\x20selector';_0x475939=calculateSingle(_0x9741f3)['specificityArray'];}else{if(!Array['isArray'](_0x9741f3))throw'Invalid\x20CSS\x20selector\x20or\x20specificity\x20array';if(0x4!==_0x9741f3['filter'](function(_0x181c0c){return'number'==typeof _0x181c0c;})['length'])throw'Invalid\x20specificity\x20array';_0x475939=_0x9741f3;}if('string'==typeof _0x234bfa){if(-0x1!==_0x234bfa['indexOf'](','))throw'Invalid\x20CSS\x20selector';_0x36792d=calculateSingle(_0x234bfa)['specificityArray'];}else{if(!Array['isArray'](_0x234bfa))throw'Invalid\x20CSS\x20selector\x20or\x20specificity\x20array';if(0x4!==_0x234bfa['filter'](function(_0x1900a0){return'number'==typeof _0x1900a0;})['length'])throw'Invalid\x20specificity\x20array';_0x36792d=_0x234bfa;}for(_0x20ff7c=0x0;_0x20ff7c<0x4;_0x20ff7c+=0x1){if(_0x475939[_0x20ff7c]<_0x36792d[_0x20ff7c])return-0x1;if(_0x475939[_0x20ff7c]>_0x36792d[_0x20ff7c])return 0x1;}return 0x0;};function splitByTopLevelComma(_0x383a3c){const _0x122be3=[];let _0x3769f9='',_0x3dded0=0x0;for(;_0x3dded0<_0x383a3c['length'];){const _0x3bf15c=_0x383a3c[_0x3dded0];if('('===_0x3bf15c){const _0x227b3f=findMatchingParenthesis(_0x383a3c,_0x3dded0+0x1);if(-0x1===_0x227b3f)return[];_0x3769f9+=_0x383a3c['slice'](_0x3dded0,_0x227b3f+0x1),_0x3dded0=_0x227b3f+0x1;}else','!==_0x3bf15c||_0x3769f9['endsWith']('\x5c')?(_0x3769f9+=_0x3bf15c,_0x3dded0++):(_0x122be3['push'](_0x3769f9['trim']()),_0x3769f9='',_0x3dded0++);}return _0x3769f9['trim']()&&_0x122be3['push'](_0x3769f9['trim']()),_0x122be3['filter'](Boolean);}function findMatchingParenthesis(_0x4c8432,_0xb07384){let _0x2fcf65=0x1;for(let _0x577a84=_0xb07384;_0x577a84<_0x4c8432['length'];_0x577a84++){const _0x1ce328=_0x4c8432[_0x577a84];if('('===_0x1ce328)_0x2fcf65++;else{if(')'===_0x1ce328&&(_0x2fcf65--,0x0===_0x2fcf65))return _0x577a84;}}return-0x1;}function dropImportantStyleSuffix(_0x5bea09){return _0x5bea09['replace'](/!\s*important/i,'')['trim']();}function collectRootStylesheetsVariables(_0x4b6f2f){const _0xc5906a=new Map();for(const {stylesMap:_0x455a95,flatSelector:_0x28b3bd}of _0x4b6f2f){if(':root'!==_0x28b3bd)continue;const _0x411f50=inlineStylesMapCSSVariables(_0xc5906a['get']['bind'](_0xc5906a),_0x455a95);for(const [_0x5c90b1,_0x934aa6]of _0x411f50)_0xc5906a['set'](_0x5c90b1,_0x934aa6);}return _0xc5906a;}function inlineStylesMapCSSVariables(_0x256e00,_0x291dee){const _0x543038=new Map(),_0x31d528=_0x52183e=>_0x543038['has'](_0x52183e)?_0x543038['get'](_0x52183e):_0x256e00(_0x52183e);for(const [_0x7aa644,_0x259fdb]of _0x291dee['getStylesEntries']())if(_0x259fdb&&_0x7aa644['startsWith']('--')){const _0x3a4093=inlineCSSVariablesInString(_0x31d528,_0x259fdb);_0x543038['set'](_0x7aa644,_0x3a4093),_0x291dee['remove'](_0x7aa644);}for(const [_0x346cd3,_0x291eb4]of _0x291dee['getStylesEntries']())if(_0x291eb4){const _0x185839=inlineCSSVariablesInString(_0x31d528,_0x291eb4);_0x291dee['set'](_0x346cd3,_0x185839);}return _0x543038;}function inlineCSSVariablesInString(_0x4ef0a8,_0x5f40f3){return resolveCSSVariables(_0x5f40f3,_0x1f3d2e=>{const [_0x132dc7,_0x2bfdd3]=splitByTopLevelComma(_0x1f3d2e),_0x303d0b=_0x4ef0a8(_0x132dc7);return void 0x0!==_0x303d0b?_0x303d0b:_0x2bfdd3?inlineCSSVariablesInString(_0x4ef0a8,_0x2bfdd3):'var('+_0x132dc7+')';});}function resolveCSSVariables(_0x27090a,_0x3a3c87){let _0x550630='',_0x379744=0x0;for(;_0x379744<_0x27090a['length'];){const _0x58470d=_0x27090a['indexOf']('var(',_0x379744);if(-0x1===_0x58470d){_0x550630+=_0x27090a['slice'](_0x379744);break;}_0x550630+=_0x27090a['slice'](_0x379744,_0x58470d);const _0x463af0=_0x58470d+0x4,_0x411b5f=findMatchingParenthesis(_0x27090a,_0x463af0);_0x550630+=_0x3a3c87(_0x27090a['substring'](_0x463af0,_0x411b5f)),_0x379744=_0x411b5f+0x1;}return _0x550630;}async function collectAndProcessStylesheets(_0x45f2f7){const _0x28fa45=[await collectStylesheets(_0x45f2f7['stylesheets']),_0x45f2f7['inlineCss']]['filter'](_0x1ec7c8=>_0x1ec7c8&&_0x1ec7c8['length'])['join']('\x0a'),_0x1c899a=await convertRawStylesheetToParsedCSSRules(_0x45f2f7['stylesProcessor'],_0x28fa45);return{'parsedCssRules':_0x1c899a,'rootCssVariables':collectRootStylesheetsVariables(_0x1c899a)};}async function convertRawStylesheetToParsedCSSRules(_0x3c4108,_0x578a66){const _0x22fab9=new CSSStyleSheet();return await _0x22fab9['replace'](_0x578a66),dropCSSNesting(Array['from'](_0x22fab9['cssRules'])['filter'](_0x3bc363=>_0x3bc363 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x637b29,contentCssText:_0x5d9527})=>{const _0xe71627=splitByTopLevelComma(_0x637b29),_0x35fea1=new StylesMap(_0x3c4108)['setTo'](_0x5d9527);return _0xe71627['map'](_0x57d5c0=>{const _0x194a8d=dropWherePseudoClasses(_0x57d5c0),_0x47f221=_0x194a8d?calculate(_0x194a8d)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x35fea1,'flatSelector':_0x57d5c0,'specificity':_0x47f221};});})['sort']((_0x47b243,_0x1f7cf3)=>compare$1(_0x47b243['specificity'],_0x1f7cf3['specificity']));}function dropWherePseudoClasses(_0x47d3eb){const _0x1737db=':where(';let _0x40af89=_0x47d3eb,_0x3104b9=0x0;for(let _0x217741=0x0;_0x217741<0x64;_0x217741++){const _0x5669db=_0x40af89['indexOf'](_0x1737db,_0x3104b9);if(-0x1===_0x5669db)break;let _0x59ea5c=0x0;for(let _0x59583e=0x0;_0x59583e<_0x5669db;_0x59583e++)'('===_0x40af89[_0x59583e]?_0x59ea5c++:')'===_0x40af89[_0x59583e]&&_0x59ea5c--;if(_0x59ea5c>0x0){_0x3104b9=_0x5669db+0x7;continue;}let _0x3339f8=-0x1;for(let _0x4cafba=_0x5669db+0x7,_0x3c6b59=0x1;_0x4cafba<_0x40af89['length'];_0x4cafba++)if('('===_0x40af89[_0x4cafba]?_0x3c6b59++:')'===_0x40af89[_0x4cafba]&&_0x3c6b59--,!_0x3c6b59){_0x3339f8=_0x4cafba;break;}-0x1!==_0x3339f8?(_0x40af89=_0x40af89['slice'](0x0,_0x5669db)+_0x40af89['slice'](_0x3339f8+0x1),_0x3104b9=_0x5669db):_0x3104b9=_0x5669db+0x7;}return _0x40af89['replace'](/\s+/g,'\x20')['trim']();}function dropCSSNesting(_0x56e2a0,_0x210858=''){return _0x56e2a0['flatMap'](_0x15077d=>{const {selectorText:_0x400608,cssText:_0x3dfce0,cssRules:_0x52ccfa}=_0x15077d;if(!_0x400608)return[];const _0x2ab89f=_0x400608['replace'](/&/g,_0x210858);let _0x1885f7=_0x3dfce0['replace'](_0x400608,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x52ccfa||!_0x52ccfa['length'])return[{'selectorText':_0x2ab89f,'contentCssText':_0x1885f7}];for(const _0x344596 of _0x52ccfa)_0x1885f7=_0x1885f7['replace'](_0x344596['cssText'],'')['trim']();return[{'selectorText':_0x2ab89f,'contentCssText':_0x1885f7},...dropCSSNesting(Array['from'](_0x52ccfa),_0x2ab89f)];});}function getElementInlineStyles(_0x156e3f){const _0x4ddddb=_0x156e3f['element']['getAttribute']('style')||'',_0x313c6b=_0x156e3f['parsedCssRules']['filter'](_0x590c4b=>_0x156e3f['element']['matches'](_0x590c4b['flatSelector']))['map'](_0x57d4a7=>_0x57d4a7['stylesMap']),_0x25c96c=concatStylesMaps(_0x156e3f['stylesProcessor'],[..._0x313c6b,_0x4ddddb]);return{'localCSSVariables':inlineStylesMapCSSVariables(_0x156e3f['fallbackCSSVariablesLookup'],_0x25c96c),'stylesMap':_0x25c96c};}function concatStylesMaps(_0x555f78,_0x524763){const _0x2b8ad3=new StylesMap(_0x555f78);for(const _0x281f07 of _0x524763){let _0x44b03d=null;if(_0x44b03d='string'==typeof _0x281f07?new StylesMap(_0x555f78)['setTo'](_0x281f07):_0x281f07,_0x44b03d){for(const [_0xeef1fd,_0xb95d73]of _0x44b03d['getStylesEntries']())_0x2b8ad3['set'](_0xeef1fd,_0xb95d73);}}return _0x2b8ad3;}class ExportInlineStylesCommand extends _0x142ccd{['_stylesProcessor'];constructor(_0xeb2663){super(_0xeb2663),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],addMarginStylesRules(this['_stylesProcessor']),addPaddingStylesRules(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x6a7ce1){const _0xc740ae=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x373fed}=this['editor']['locale'],{rootName:_0x31b69d='main',dataControllerDowncastOptions:_0x303cbe={},transformations:_0x3e224b=_0xc740ae['transformations']||[]}=_0x6a7ce1||{};this['isBusy']=!0x0,this['refresh']();const _0x269f52=this['_getRootDataHTMLFragment'](_0x31b69d,_0x303cbe),_0x24a5e9=createElement(_0x269f52['ownerDocument'],'div',{'dir':_0x373fed,'class':'ck-content'},[_0x269f52]);return this['_collectAndApplyStyles'](_0x3e224b,_0x24a5e9)['then'](()=>{const _0x218590=extractElementChildrenAsFragment(_0x24a5e9),_0x26e8c0=_0x24a5e9['getAttribute']('style');if(_0x26e8c0)for(const _0x4b25aa of _0x218590['children']){const _0x6b4222=_0x4b25aa['getAttribute']('style'),_0x4ae596=concatStylesMaps(this['_stylesProcessor'],[_0x26e8c0,_0x6b4222]);_0x4b25aa['setAttribute']('style',dumpNonSortedStylesMap(_0x4ae596));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x218590);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x5d240b,_0x516613){const {data:_0xb83fae,model:_0xb1a86b}=this['editor'],_0x217919=_0xb1a86b['document']['getRoot'](_0x5d240b),_0x28f421=_0xb83fae['toView'](_0x217919,_0x516613);return _0xb83fae['htmlProcessor']['domConverter']['viewToDom'](_0x28f421);}async['_collectAndApplyStyles'](_0x1065bb,_0x2ec1bc){const {stylesheets:_0x56177a,inlineCss:_0x4de794,stripCssClasses:_0x480e8}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0xde9e20,rootCssVariables:_0x55dd7f}=await collectAndProcessStylesheets({'stylesheets':_0x56177a||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x4de794});this['_processElementTree']({'transformations':_0x1065bb,'parsedCssRules':_0xde9e20,'element':_0x2ec1bc,'stripCssClasses':_0x480e8,'parentCSSVariablesLookup':_0x55dd7f['get']['bind'](_0x55dd7f)});}['_processElementTree']({element:_0x414c90,parsedCssRules:_0x46cdee,parentCSSVariablesLookup:_0x43e743,stripCssClasses:_0x168c18,transformations:_0x346497}){const {stylesMap:_0x484af1,localCSSVariables:_0x4d50a9}=getElementInlineStyles({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x43e743,'parsedCssRules':_0x46cdee,'element':_0x414c90});for(const _0x22126e of _0x346497)_0x22126e(_0x414c90,_0x484af1);_0x484af1['size']?_0x414c90['setAttribute']('style',dumpNonSortedStylesMap(_0x484af1)):_0x414c90['removeAttribute']('style');const _0x10dd7c=_0x1b3399=>_0x4d50a9['has'](_0x1b3399)?_0x4d50a9['get'](_0x1b3399):_0x43e743(_0x1b3399);for(const _0x28ffab of _0x414c90['children'])_0x28ffab instanceof HTMLElement&&this['_processElementTree']({'element':_0x28ffab,'parentCSSVariablesLookup':_0x10dd7c,'parsedCssRules':_0x46cdee,'stripCssClasses':_0x168c18,'transformations':_0x346497});_0x168c18&&_0x414c90['removeAttribute']('class');}}function dumpNonSortedStylesMap(_0x473e99){return _0x473e99['getStylesEntries']()['map'](_0x4e417b=>_0x4e417b['join'](':'))['join'](';')+';';}function extractElementChildrenAsFragment(_0x4dcf77){const _0x3e4151=_0x4dcf77['ownerDocument']['createDocumentFragment']();for(;_0x4dcf77['firstChild'];)_0x3e4151['appendChild'](_0x4dcf77['firstChild']);return _0x3e4151;}class ExportInlineStylesEditing extends Plugin{static get['pluginName'](){return'ExportInlineStylesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['editor']['config']['define']('exportInlineStyles',{}),this['editor']['commands']['add']('exportInlineStyles',new ExportInlineStylesCommand(this['editor']));}['afterInit'](){checkLicense$c(this);}}async function checkLicense$c(_0x48f94a){const _0x3cb81d=_0x3bc523([0x44,0x55,0x41,0x36,0x31,0x30,0x65,0x6d,0x4c,0x34,0x51,0x32,0x6b,0x6a,0x56,0x49,0x76,0x47,0x4d,0x48,0x67,0x57,0x54,0x33,0x75,0x79,0x53,0x6e,0x7a,0x50,0x45,0x77,0x37,0x39,0x6f,0x5a,0x4a,0x69,0x43,0x72,0x62,0x73,0x74,0x63,0x58,0x4b,0x71,0x38,0x35,0x4e,0x68,0x64,0x66,0x61,0x46,0x52,0x78,0x42,0x6c,0x70,0x4f,0x59]),_0x2de899=window[_0x3bc523([0x44,0x61,0x74,0x65])][_0x3bc523([0x6e,0x6f,0x77])](),_0x100734=_0x48f94a[_0x3bc523([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x10ab73=new window[(_0x3bc523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bd878=>{_0x100734[_0x3bc523([0x6f,0x6e,0x63,0x65])](_0x3bc523([0x72,0x65,0x61,0x64,0x79]),_0x5bd878);}),_0x2eb191={[_0x3bc523([0x6b,0x74,0x79])]:_0x3bc523([0x45,0x43]),[_0x3bc523([0x75,0x73,0x65])]:_0x3bc523([0x73,0x69,0x67]),[_0x3bc523([0x63,0x72,0x76])]:_0x3bc523([0x50,0x2d,0x32,0x35,0x36]),[_0x3bc523([0x78])]:_0x3bc523([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3bc523([0x79])]:_0x3bc523([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3bc523([0x61,0x6c,0x67])]:_0x3bc523([0x45,0x53,0x32,0x35,0x36])},_0x45494f=_0x100734[_0x3bc523([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3bc523([0x67,0x65,0x74])](_0x3bc523([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x4d3992=await(async function(){let _0x337b82,_0x552d13=null,_0x2cec51=null;try{if(_0x45494f==_0x3bc523([0x47,0x50,0x4c]))return _0x3bc523([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x337b82=(function(){const _0x55e678=_0x45494f[_0x3bc523([0x73,0x70,0x6c,0x69,0x74])](_0x3bc523([0x2e]));if(0x3!=_0x55e678[_0x3bc523([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x11eb04=_0x55e678[0x1];return _0x47ee16(_0x11eb04);function _0x47ee16(_0x13f7fb){const _0x2bbfce=_0x180f5a(_0x13f7fb);return _0x2bbfce&&_0x33a070()?_0x2bbfce:null;function _0x33a070(){const _0x238be1=_0x2bbfce[_0x3bc523([0x6a,0x74,0x69])],_0xe7a310=window[_0x3bc523([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x238be1[_0x3bc523([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x238be1[_0x3bc523([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x269ed6={..._0x2bbfce,[_0x3bc523([0x6a,0x74,0x69])]:_0x238be1[_0x3bc523([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x238be1[_0x3bc523([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x269ed6[_0x3bc523([0x76,0x63])],_0x277b44(_0x269ed6)==_0xe7a310;}}}()),!_0x337b82)return _0x3bc523([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x337b82[_0x3bc523([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2cec51=function(_0x4f3a96,_0x57480a){return new window[(_0x3bc523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5356d8=>{if(_0x19b700())return _0x5356d8(_0x3bc523([0x56,0x61,0x6c,0x69,0x64]));_0x4ea557(),_0x100734[_0x3bc523([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3bc523([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ac5a3=!0x1;const _0x2f155b=uid();function _0x35df48(_0x34946b){return!!_0x34946b&&(typeof _0x34946b===_0x3bc523([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x34946b===_0x3bc523([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x34946b[_0x3bc523([0x74,0x68,0x65,0x6e])]===_0x3bc523([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x34946b[_0x3bc523([0x63,0x61,0x74,0x63,0x68])]===_0x3bc523([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x37a003(_0x3d1900){_0x37a9c7(_0x3d1900)[_0x3bc523([0x74,0x68,0x65,0x6e])](_0x103751=>{if(!_0x103751||_0x103751[_0x3bc523([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3bc523([0x6f,0x6b]))return _0x3bc523([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x234ab3(_0x277b44(_0x2f155b+_0x57480a))!=_0x103751[_0x3bc523([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3bc523([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3bc523([0x56,0x61,0x6c,0x69,0x64]);})[_0x3bc523([0x74,0x68,0x65,0x6e])](_0x55ba05=>(_0x226479(),_0x55ba05),()=>{const _0x35d633=_0x2b5fc4();return null==_0x35d633?(_0x226479(),_0x3bc523([0x56,0x61,0x6c,0x69,0x64])):_0x3bc523(_0x2de899-_0x35d633>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3bc523([0x74,0x68,0x65,0x6e])](_0x5356d8)[_0x3bc523([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5356d8(_0x3bc523([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x312866=0x36ee80;function _0x226479(){const _0x48bc5c=_0x3bc523([0x6c,0x6c,0x63,0x74,0x2d])+_0x234ab3(_0x277b44(_0x4f3a96)),_0x3d1012=_0x3b14a1(_0x234ab3(window[_0x3bc523([0x4d,0x61,0x74,0x68])][_0x3bc523([0x63,0x65,0x69,0x6c])](_0x2de899/_0x312866)));window[_0x3bc523([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bc523([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48bc5c,_0x3d1012);}function _0x2b5fc4(){const _0x26e30d=_0x3bc523([0x6c,0x6c,0x63,0x74,0x2d])+_0x234ab3(_0x277b44(_0x4f3a96)),_0x59c047=window[_0x3bc523([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bc523([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26e30d);return _0x59c047?window[_0x3bc523([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b14a1(_0x59c047),0x10)*_0x312866:null;}function _0x37a9c7(_0x96d35f){return new window[(_0x3bc523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x433c59,_0x30d8b0)=>{_0x96d35f[_0x3bc523([0x74,0x68,0x65,0x6e])](_0x433c59,_0x30d8b0),window[_0x3bc523([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30d8b0,0x1d4c0);});}}_0x100734[_0x3bc523([0x6f,0x6e])](_0x3bc523([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e0234,_0x302abf)=>{if(_0x302abf[0x0]!=_0x4f3a96)return _0x5356d8(_0x3bc523([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x302abf[0x1]={..._0x302abf[0x1],[_0x3bc523([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f155b};},{[_0x3bc523([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bc523([0x68,0x69,0x67,0x68])}),_0x100734[_0x3bc523([0x6f,0x6e])](_0x3bc523([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e55d7=>{_0x35df48(_0x5e55d7[_0x3bc523([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ac5a3=!0x0,_0x37a003(_0x5e55d7[_0x3bc523([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3bc523([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bc523([0x6c,0x6f,0x77])}),_0x10ab73[_0x3bc523([0x74,0x68,0x65,0x6e])](()=>{_0x2ac5a3||_0x5356d8(_0x3bc523([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x19b700(){return _0x100734[_0x3bc523([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bc523([0x76,0x69,0x65,0x77])][_0x3bc523([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3bc523([0x61,0x75,0x74,0x6f]);}function _0x4ea557(){_0x100734[_0x3bc523([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bc523([0x76,0x69,0x65,0x77])][_0x3bc523([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3bc523([0x61,0x75,0x74,0x6f]);}}(_0x337b82[_0x3bc523([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x337b82[_0x3bc523([0x6a,0x74,0x69])]));const _0x23fc18=await(async function(){let _0x422f78=!0x0;try{const _0xa1f4ee=_0x45494f[_0x3bc523([0x73,0x70,0x6c,0x69,0x74])](_0x3bc523([0x2e])),[_0x385573,_0x43860b,_0x52a387]=_0xa1f4ee;return _0x432b85(_0x385573),await _0x20a3c5(_0x385573,_0x43860b,_0x52a387),_0x422f78;}catch{return!0x1;}function _0x432b85(_0x3fa80){const _0x10dec7=_0x180f5a(_0x3fa80);_0x10dec7&&_0x10dec7[_0x3bc523([0x61,0x6c,0x67])]==_0x3bc523([0x45,0x53,0x32,0x35,0x36])||(_0x422f78=!0x1);}async function _0x20a3c5(_0xc171e2,_0x586fe7,_0x53bb21){const _0x45d085=window[_0x3bc523([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3bc523([0x66,0x72,0x6f,0x6d])](_0x173852(_0x53bb21),_0xa5d20d=>_0xa5d20d[_0x3bc523([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2c4b09=new window[(_0x3bc523([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3bc523([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc171e2+_0x3bc523([0x2e])+_0x586fe7),_0x21d3ee=window[_0x3bc523([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3bc523([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x21d3ee)return;const _0x5d0867=await _0x21d3ee[_0x3bc523([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3bc523([0x6a,0x77,0x6b]),_0x2eb191,{[_0x3bc523([0x6e,0x61,0x6d,0x65])]:_0x3bc523([0x45,0x43,0x44,0x53,0x41]),[_0x3bc523([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3bc523([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3bc523([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x21d3ee[_0x3bc523([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3bc523([0x6e,0x61,0x6d,0x65])]:_0x3bc523([0x45,0x43,0x44,0x53,0x41]),[_0x3bc523([0x68,0x61,0x73,0x68])]:{[_0x3bc523([0x6e,0x61,0x6d,0x65])]:_0x3bc523([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d0867,_0x45d085,_0x2c4b09)||(_0x422f78=!0x1);}}());return _0x23fc18?(function(){const _0xfdd963=_0x337b82[_0x3bc523([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xfdd963)return!0x1;if(_0xfdd963[_0x3bc523([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc523([0x2a])))return!0x0;if(_0xfdd963[_0x3bc523([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc523([0x45,0x49,0x53])))return!0x0;return!0x1;}())?(function(){const _0x20a209=[_0x3bc523([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3bc523([0x74,0x72,0x69,0x61,0x6c])][_0x3bc523([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x337b82[_0x3bc523([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2de899/0x3e8:0x68f03580;return _0x337b82[_0x3bc523([0x65,0x78,0x70])]<_0x20a209;}())?_0x3bc523([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x18903b=_0x337b82[_0x3bc523([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x18903b||0x0==_0x18903b[_0x3bc523([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x271781}=new URL(window[_0x3bc523([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x18903b[_0x3bc523([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x271781))return!0x0;const _0x110bcc=_0x271781[_0x3bc523([0x73,0x70,0x6c,0x69,0x74])](_0x3bc523([0x2e]));return _0x18903b[_0x3bc523([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d6da1=>_0x5d6da1[_0x3bc523([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc523([0x2a])))[_0x3bc523([0x6d,0x61,0x70])](_0x428014=>_0x428014[_0x3bc523([0x73,0x70,0x6c,0x69,0x74])](_0x3bc523([0x2e])))[_0x3bc523([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a34cf=>_0x3a34cf[_0x3bc523([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x110bcc[_0x3bc523([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bc523([0x6d,0x61,0x70])](_0x11f839=>Array(_0x110bcc[_0x3bc523([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x11f839[_0x3bc523([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bc523([0x66,0x69,0x6c,0x6c])](_0x11f839[0x0]===_0x3bc523([0x2a])?_0x3bc523([0x2a]):'')[_0x3bc523([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x11f839))[_0x3bc523([0x73,0x6f,0x6d,0x65])](_0x56c69d=>_0x110bcc[_0x3bc523([0x65,0x76,0x65,0x72,0x79])]((_0x1d498e,_0x4000e8)=>_0x56c69d[_0x4000e8]===_0x1d498e||_0x56c69d[_0x4000e8]===_0x3bc523([0x2a])));}())?(_0x337b82[_0x3bc523([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bc523([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x552d13=_0x9ad102(_0x3bc523([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x337b82[_0x3bc523([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bc523([0x74,0x72,0x69,0x61,0x6c])&&(_0x552d13=_0x9ad102(_0x3bc523([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x552d13&&_0x2cec51)return new window[(_0x3bc523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57844c,_0x36a25c)=>{_0x552d13[_0x3bc523([0x74,0x68,0x65,0x6e])](_0x57844c,_0x36a25c),_0x2cec51[_0x3bc523([0x74,0x68,0x65,0x6e])](_0x4f3f45=>{_0x4f3f45!=_0x3bc523([0x56,0x61,0x6c,0x69,0x64])&&_0x57844c(_0x4f3f45);},_0x36a25c);});return _0x552d13||_0x2cec51||_0x3bc523([0x56,0x61,0x6c,0x69,0x64]);}())):_0x3bc523([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3bc523([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3bc523([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3bc523([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x9ad102(_0x111ddb){const _0x42c2bf=[new window[(_0x3bc523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fbdba=>setTimeout(_0x3fbdba,0x93ecc)),_0x10ab73[_0x3bc523([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3bc523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x100184=>{let _0x4233a6=0x0;_0x100734[_0x3bc523([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bc523([0x6f,0x6e])](_0x3bc523([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x196295,_0x449b70)=>{_0x449b70[0x0][_0x3bc523([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4233a6++,0x1f8==_0x4233a6&&(_0x100184(),_0x196295[_0x3bc523([0x6f,0x66,0x66])]());});}))];return window[_0x3bc523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3bc523([0x72,0x61,0x63,0x65])](_0x42c2bf)[_0x3bc523([0x74,0x68,0x65,0x6e])](()=>_0x111ddb);}function _0x180f5a(_0x3694dd){return _0x3694dd[_0x3bc523([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3bc523([0x65,0x79]))?JSON[_0x3bc523([0x70,0x61,0x72,0x73,0x65])](_0x173852(_0x3694dd)):null;}function _0x173852(_0x152a93){return window[_0x3bc523([0x61,0x74,0x6f,0x62])](_0x152a93[_0x3bc523([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3bc523([0x2b]))[_0x3bc523([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3bc523([0x2f])));}function _0x277b44(_0x837c4){let _0x36fe1f=0x1505;function _0x2f3f48(_0x493add){for(let _0x45d79b=0x0;_0x45d79b<_0x493add[_0x3bc523([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45d79b++){const _0x2f6cdc=_0x493add[_0x3bc523([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x45d79b);_0x36fe1f=(_0x36fe1f<<0x5)+_0x36fe1f+_0x2f6cdc,_0x36fe1f&=_0x36fe1f;}}return function _0x55c219(_0xe6a52b){Array[_0x3bc523([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xe6a52b)?_0xe6a52b[_0x3bc523([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x55c219):_0xe6a52b&&typeof _0xe6a52b==_0x3bc523([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3bc523([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xe6a52b)[_0x3bc523([0x73,0x6f,0x72,0x74])]()[_0x3bc523([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a0f6f,_0x157f05])=>{_0x2f3f48(_0x2a0f6f),_0x55c219(_0x157f05);}):_0x2f3f48(window[_0x3bc523([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xe6a52b));}(_0x837c4),_0x36fe1f>>>0x0;}function _0x234ab3(_0x2848c9){return _0x2848c9[_0x3bc523([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3bc523([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3bc523([0x30]));}function _0x3b14a1(_0x55a782){return _0x55a782[_0x3bc523([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3bc523([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3bc523([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b42bd(){}function _0x3bc523(_0x5af3ec){return _0x5af3ec['map'](_0x10e143=>String['fromCharCode'](_0x10e143))['join']('');}!function(_0x5eee53){const _0x334541=(function(){const _0x127321=window[_0x3bc523([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3bc523([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3bc523([0x6e,0x6f,0x77])]())[_0x3bc523([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3bc523([0x2e]),'');let _0x1c319f=_0x3bc523([0x44]);for(let _0x337209=0x0;_0x337209<_0x127321[_0x3bc523([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x337209+=0x2){let _0x9c681f=window[_0x3bc523([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x127321[_0x3bc523([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x337209,_0x337209+0x2));_0x9c681f>=_0x3cb81d[_0x3bc523([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x9c681f-=_0x3cb81d[_0x3bc523([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c319f+=_0x3cb81d[_0x9c681f];}return _0x1c319f;}());_0x100734[_0x334541]=_0x3bc523([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5eee53,_0x5eee53!=_0x3bc523([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x10ab73;const _0x42f089=_0x100734['commands'][_0x3bc523([0x67,0x65,0x74])](_0x3bc523([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x42f089&&_0x42f089[_0x3bc523([0x6f,0x6e])](_0x3bc523([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x382213=>{_0x382213['stop']();},{'priority':_0x3bc523([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),(_0x100734[_0x3bc523([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bc523([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b42bd,_0x100734[_0x3bc523([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bc523([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b42bd,_0x100734[_0x3bc523([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3bc523([0x6d,0x6f,0x64,0x65,0x6c])));}());}(_0x4d3992);}class ExportInlineStyles extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ExportInlineStylesEditing];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ff0d1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x595dfa;for(const _0x1d0bf8 in _0x3ff0d1){const _0xae8bcc=_0x1d0bf8,_0x142081=_0x3ff0d1[_0xae8bcc];if('exportInlineStylesLicenseKeyValid'==_0x142081||'exportInlineStylesLicenseKeyInvalid'==_0x142081||'exportInlineStylesLicenseKeyExpired'==_0x142081||'exportInlineStylesLicenseKeyDomainLimit'==_0x142081||'exportInlineStylesLicenseKeyNotAllowed'==_0x142081||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x142081||'exportInlineStylesLicenseKeyTrialLimit'==_0x142081||'exportInlineStylesLicenseKeyUsageLimit'==_0x142081){delete _0x3ff0d1[_0xae8bcc],_0x595dfa=_0x142081,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x595dfa&&_0x3ff0d1['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x595dfa&&_0x3ff0d1['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x595dfa&&_0x3ff0d1['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x595dfa&&_0x3ff0d1['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x595dfa&&_0x3ff0d1['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyTrialLimit'==_0x595dfa&&_0x3ff0d1['_showLicenseError']('trialLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x595dfa&&_0x3ff0d1['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getEmailInlineStylesTransformations(){return[(_0x5531b8,_0x160561)=>{if(!['TABLE','IMG']['includes'](_0x5531b8['tagName']))return;const _0x3d730d=_0x160561['getAsString']('float');if(_0x3d730d){const _0xdc1e8a=dropImportantStyleSuffix(_0x3d730d);'left'!==_0xdc1e8a&&'right'!==_0xdc1e8a||_0x5531b8['setAttribute']('align',_0xdc1e8a);}},(_0x3f4585,_0x357f1b)=>{if('TABLE'!==_0x3f4585['tagName'])return;const _0x1468bc=_0x357f1b['getAsString']('margin-left'),_0x1b27a6=_0x357f1b['getAsString']('margin-right');_0x1468bc&&_0x1b27a6&&'auto'===dropImportantStyleSuffix(_0x1468bc)&&'auto'===dropImportantStyleSuffix(_0x1b27a6)&&_0x3f4585['setAttribute']('align','center');}];}function getTranslation$d(_0x570060,_0x4f3575){const t=_0x570060['t'];switch(_0x4f3575){case'Export\x20to\x20PDF':return t('Export\x20to\x20PDF');case'An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':return t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.');case'PDF\x20export\x20started':return t('PDF\x20export\x20started');case'PDF\x20export\x20failed':return t('PDF\x20export\x20failed');case'PDF\x20export\x20successful':return t('PDF\x20export\x20successful');case'Exporting\x20PDF\x20document':return t('Exporting\x20PDF\x20document');default:return _0x4f3575;}}const PRODUCTION_URL$1='https://pdf-converter.cke-cs.com/v1/convert/';class ExportPdfCommand extends _0x142ccd{constructor(_0x1d642e){super(_0x1d642e),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x44e2b5={}){const _0x44ed7d=this['editor'],_0xdd062d=_0x44e2b5['converterUrl']||PRODUCTION_URL$1,_0x55b38b=_0x44e2b5['dataCallback']||(_0x532318=>_0x532318['data']['get']()),_0x24989d=_0x44ed7d['plugins']['get']('ExportPdf'),_0x2fdff2=_0x44e2b5['token']||_0x24989d['_token'];return this['isBusy']=!0x0,this['refresh'](),collectStylesheets(_0x44e2b5['stylesheets']||['EDITOR_STYLES'])['then'](async _0x449ea2=>{if(_0x44ed7d['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x44ed7d['locale'],'PDF\x20export\x20started')),_0x44ed7d['plugins']['has']('MergeFields')){_0x44e2b5['converterOptions']||(_0x44e2b5['converterOptions']={});const _0x4171f8=_0x44ed7d['plugins']['get']('MergeFieldsEditing'),_0x4b4b4d=_0x4171f8['previewMode'],{prefix:_0x4ce78f,suffix:_0x3a9673}=_0x44ed7d['config']['get']('mergeFields'),_0x1748d8='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88B8AAuUB8e2ujYwAAAAASUVORK5CYII=',_0x340276={'prefix':_0x4ce78f,'suffix':_0x3a9673,'data':{}};if('$labels'===_0x4b4b4d){for(const _0x3d98b3 of _0x4171f8['getMergeFieldsIds']())'image'===_0x4171f8['getMergeFieldType'](_0x3d98b3)?_0x340276['data'][_0x3d98b3]=_0x1748d8:_0x340276['data'][_0x3d98b3]=_0x4171f8['wrapInAffixes'](_0x4171f8['getLabel'](_0x3d98b3)||_0x3d98b3);}else{const _0x417181='$defaultValues'===_0x4b4b4d?_0x4171f8['getDefaultValues']():_0x4171f8['getDataSetValues'](_0x4b4b4d,!0x0);for(const _0x233525 of Object['entries'](_0x417181)){const [_0x310aab,_0x295283]=_0x233525;'image'===_0x4171f8['getMergeFieldType'](_0x310aab)?_0x340276['data'][_0x310aab]=null!==_0x295283?_0x295283:_0x1748d8:_0x340276['data'][_0x310aab]=null!==_0x295283?_0x295283:_0x4171f8['getLabel'](_0x310aab)||_0x310aab;}}_0x44e2b5['converterOptions']['merge_fields']=_0x340276;}const _0x54b31e=prepareContentInlineStyle(_0x44e2b5['converterOptions']),_0x5b829b={'html':('\x0a\x09\x09\x09\x09\x09<!DOCTYPE\x20html>\x0a\x09\x09\x09\x09\x09<html>\x0a\x09\x09\x09\x09\x09\x09<head>\x0a\x09\x09\x09\x09\x09\x09\x09<title>CKEditor\x205\x20PDF\x20document</title>\x0a\x09\x09\x09\x09\x09\x09\x09<meta\x20charset=\x22utf-8\x22>\x0a\x09\x09\x09\x09\x09\x09</head>\x0a\x09\x09\x09\x09\x09\x09<body>\x0a\x09\x09\x09\x09\x09\x09\x09<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x44ed7d['locale']['contentLanguageDirection']+'\x22\x20style=\x22'+_0x54b31e+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x55b38b(_0x44ed7d)+'\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>\x0a\x09\x09\x09\x09')['trim'](),'css':_0x449ea2,'options':_0x44e2b5['converterOptions']},_0x2f2315={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x2fdff2?{'Authorization':_0x2fdff2['value']}:null,'x-cs-app-id':_0x44e2b5['appID']||'cke5'},'body':JSON['stringify'](_0x5b829b)};return window['fetch'](_0xdd062d,_0x2f2315)['then'](_0x547212=>{if(0xc8!==_0x547212['status'])throw _0x547212;return _0x547212['blob']();})['then'](_0x57b86e=>{_0x44ed7d['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x44ed7d['locale'],'PDF\x20export\x20successful'));const _0x47706a='function'==typeof _0x44e2b5['fileName']?_0x44e2b5['fileName']():_0x44e2b5['fileName'];this['_downloadFile'](_0x57b86e,_0x47706a||'document.pdf');});})['catch'](_0x415d86=>{const _0x2d4656=_0x44ed7d['plugins']['get']('Notification');throw _0x44ed7d['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x44ed7d['locale'],'PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x2d4656['showWarning'](getTranslation$d(_0x44ed7d['locale'],'An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x415d86;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x430659,_0x4a2623){const _0x3eb90e=document['createElement']('a');_0x3eb90e['href']=window['URL']['createObjectURL'](_0x430659),_0x3eb90e['download']=_0x4a2623,_0x3eb90e['click'](),_0x3eb90e['remove']();}}function prepareContentInlineStyle(_0x536f9d){const _0x14787d=pageFormatToWidth(_0x536f9d?.['format']||'A4'),_0x24e628=_0x536f9d?.['margin_left'],_0x14b9d7=_0x536f9d?.['margin_right'];return'width:calc('+[_0x14787d,..._0x24e628?[_0x24e628]:[],..._0x14b9d7?[_0x14b9d7]:[]]['join']('\x20-\x20')+');';}function pageFormatToWidth(_0x2495b4){return{'letter':['21.6cm','27.9cm'],'legal':['21.6cm','35.6cm'],'tabloid':['27.9cm','43.2cm'],'ledger':['43.2cm','27.9cm'],'a0':['84.1cm','118.9cm'],'a1':['59.4cm','84.1cm'],'a2':['42.0cm','59.4cm'],'a3':['29.7cm','42.0cm'],'a4':['21.0cm','29.7cm'],'a5':['14.8cm','21.0cm'],'a6':['10.5cm','14.8cm']}[_0x2495b4['toLowerCase']()][0x0];}class ExportPdfUI extends Plugin{static get['pluginName'](){return'ExportPdfUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5c0780=this['editor'];_0x5c0780['ui']['componentFactory']['add']('exportPdf',()=>{const _0x41c0c8=this['_createButton'](ButtonView),_0x137dba=_0x5c0780['commands']['get']('exportPdf');return _0x41c0c8['set']({'tooltip':!0x0}),_0x41c0c8['bind']('isOn')['to'](_0x137dba,'isBusy'),_0x41c0c8;}),_0x5c0780['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](MenuBarMenuListItemButtonView));}['_createButton'](_0x13f81d){const _0x3399d0=this['editor'],_0x2afbb9=_0x3399d0['config']['get']('exportPdf')||{},_0x2e5e6a=_0x3399d0['commands']['get']('exportPdf'),_0x473daf=new _0x13f81d(_0x3399d0['locale']),_0x53d3b4=new SpinnerView();return _0x473daf['children']['add'](_0x53d3b4),_0x53d3b4['bind']('isVisible')['to'](_0x2e5e6a,'isBusy'),_0x473daf['iconView']['bind']('isVisible')['to'](_0x2e5e6a,'isBusy',_0x2b43ad=>!_0x2b43ad),_0x473daf['set']({'icon':IconExportPdf}),_0x473daf['bind']('isEnabled')['to'](_0x2e5e6a,'isEnabled'),_0x473daf['bind']('label')['to'](_0x2e5e6a,'isBusy',_0x501164=>getTranslation$d(_0x3399d0['locale'],_0x501164?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x473daf,'execute',()=>{_0x3399d0['execute']('exportPdf',_0x2afbb9),_0x3399d0['editing']['view']['focus']();}),_0x473daf;}}class ExportPdf extends Plugin{['_token'];static get['pluginName'](){return'ExportPdf';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return['CloudServices',Notification,ExportPdfUI];}['init'](){const _0x5f6c0d=this['editor'],_0x5db374=_0x5f6c0d['config']['get']('exportPdf')||{};_0x5f6c0d['commands']['add']('exportPdf',new ExportPdfCommand(_0x5f6c0d));const _0x301bc8=_0x5f6c0d['plugins']['get']('CloudServices');!0x1===_0x5db374['tokenUrl']?this['_token']=null:_0x5db374['tokenUrl']?_0x301bc8['registerTokenUrl'](_0x5db374['tokenUrl'])['then'](_0x38a41e=>{this['_token']=_0x38a41e;}):this['_token']=_0x301bc8['token'];}}function getConverterOptions(_0x41220e,_0x5cb05b={}){const _0x28250c=_0x41220e['plugins']['has']('Users'),_0x1a7dcd=_0x41220e['plugins']['has']('CommentsRepository'),_0x32edfe=_0x41220e['plugins']['has']('TrackChanges'),_0x3c2161=_0x5cb05b;if(_0x28250c&&_0x1a7dcd){const _0x5da257=getComments(_0x41220e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object['keys'](_0x5da257)['length']&&(_0x3c2161['comments']=_0x5da257);}if(_0x28250c&&_0x32edfe){const _0x4eecb7=_0x41220e['plugins']['get']('TrackChanges'),_0xab082b=_0x41220e['plugins']['get']('Users'),_0x4b1ae0=getSuggestions(_0x4eecb7['getSuggestions']({'toJSON':!0x0}),_0xab082b['users']);Object['keys'](_0x4b1ae0)['length']&&(_0x3c2161['suggestions']=_0x4b1ae0);}return(_0x3c2161['suggestions']||_0x3c2161['comments'])&&(_0x3c2161['timezone']=new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone']),_0x3c2161;}function getComments(_0x2cb6c4){const _0x39ece0={};if(!_0x2cb6c4['length'])return _0x39ece0;for(const _0x131aa8 of _0x2cb6c4)_0x131aa8['comments']['map'](_0x1c9c1b=>{void 0x0===_0x39ece0[_0x131aa8['id']]&&(_0x39ece0[_0x131aa8['id']]=[]),_0x39ece0[_0x131aa8['id']]['push']({'author':_0x1c9c1b['author']['name'],'content':_0x1c9c1b['content'],'created':_0x1c9c1b['createdAt'],'is_resolved':_0x131aa8['isResolved']});});return _0x39ece0;}function getSuggestions(_0x550317,_0x5d05dd){const _0x4e849d={};if(!_0x550317['length']||!_0x5d05dd['length'])return _0x4e849d;for(const {id:_0xe15f2d,createdAt:_0x365cc6,authorId:_0x1fd3f2,attributes:_0x4728e1}of _0x550317){const _0x4d6643=_0x4728e1&&_0x4728e1['@external'],_0x18599e=_0x4d6643?_0x4d6643['authorName']:_0x5d05dd['get'](_0x1fd3f2)['name'];_0x4e849d[_0xe15f2d]={'author':_0x18599e,'created':_0x365cc6};}return _0x4e849d;}function getConverterOptionsV2(_0x4f5aaa,_0x4ef65e={}){const _0x1613a8=_0x4f5aaa['plugins']['has']('Users'),_0x3553e7=_0x4f5aaa['plugins']['has']('CommentsRepository'),_0xd8f6bd=_0x4f5aaa['plugins']['has']('TrackChanges'),_0x2d0899=_0x4f5aaa['plugins']['has']('MergeFields'),_0xe2b899=_0x4f5aaa['locale']['contentLanguage'],_0x2b8274=_0x4ef65e,_0x5773b5={};if(_0x2b8274['document']=_0x2b8274['document']||{},_0x2b8274['document']['language']=_0x2b8274['document']['language']||_0xe2b899,_0x1613a8&&_0x3553e7){const _0x204a3d=getCommentsV2(_0x4f5aaa['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x204a3d['length']&&(_0x5773b5['comment_threads']=_0x204a3d);}if(_0x1613a8&&_0xd8f6bd){const _0x52e7db=_0x4f5aaa['plugins']['get']('TrackChanges'),_0x570089=_0x4f5aaa['plugins']['get']('Users'),_0x4e8ef1=getSuggestionsV2(_0x52e7db['getSuggestions']({'toJSON':!0x0}),_0x570089['users']);_0x4e8ef1['length']&&(_0x5773b5['suggestions']=_0x4e8ef1);}if(_0x2d0899){const _0x513c85=_0x4f5aaa['plugins']['get']('MergeFieldsEditing'),_0x184623=_0x513c85['previewMode'],{prefix:_0x43ec50,suffix:_0x5ebfd0}=_0x4f5aaa['config']['get']('mergeFields');if(_0x2b8274['merge_fields']={'prefix':_0x43ec50,'suffix':_0x5ebfd0},'$labels'!==_0x184623){_0x2b8274['merge_fields']['data']={};const _0x4d3b22='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88B8AAuUB8e2ujYwAAAAASUVORK5CYII=',_0x5c61ad='$defaultValues'===_0x184623?_0x513c85['getDefaultValues']():_0x513c85['getDataSetValues'](_0x184623,!0x0);for(const _0x293892 of Object['entries'](_0x5c61ad)){const [_0xdb9e94,_0x5d1145]=_0x293892;'image'===_0x513c85['getMergeFieldType'](_0xdb9e94)?_0x2b8274['merge_fields']['data'][_0xdb9e94]=null!==_0x5d1145?_0x5d1145:_0x4d3b22:_0x2b8274['merge_fields']['data'][_0xdb9e94]=null!==_0x5d1145?_0x5d1145:_0x513c85['getLabel'](_0xdb9e94)||_0xdb9e94;}}}return(_0x5773b5['comment_threads']||_0x5773b5['suggestions'])&&(_0x2b8274['timezone']=new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'],_0x2b8274['collaboration_features']=_0x5773b5),_0x2b8274;}function getCommentsV2(_0x515221){const _0x202510=[];if(!_0x515221['length'])return _0x202510;for(const _0x3154ed of _0x515221){const _0x32aa79=_0x3154ed['comments']['map'](_0x4be421=>({'author':_0x4be421['author']['name'],'content':_0x4be421['content'],'created_at':_0x4be421['createdAt']}));_0x202510['push']({'thread_id':_0x3154ed['id'],'is_resolved':_0x3154ed['isResolved'],'comments':_0x32aa79});}return _0x202510;}function getSuggestionsV2(_0x499056,_0x4a1a6e){return _0x499056['length']&&_0x4a1a6e['length']?_0x499056['map'](({id:_0x42eb2a,createdAt:_0x44f643,authorId:_0x352eb5,attributes:_0x27f813})=>{const _0x579289=_0x27f813&&_0x27f813['@external'];return{'id':_0x42eb2a,'author':_0x579289?_0x579289['authorName']:_0x4a1a6e['get'](_0x352eb5)['name'],'created_at':_0x44f643};}):[];}function getTranslation$c(_0x479582,_0x212dca){const t=_0x479582['t'];switch(_0x212dca){case'Export\x20to\x20Word':return t('Export\x20to\x20Word');case'An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':return t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.');case'Word\x20document\x20export\x20started':return t('Word\x20document\x20export\x20started');case'Word\x20document\x20export\x20failed':return t('Word\x20document\x20export\x20failed');case'Word\x20document\x20export\x20successful':return t('Word\x20document\x20export\x20successful');case'Exporting\x20Word\x20document':return t('Exporting\x20Word\x20document');default:return _0x212dca;}}const PRODUCTION_URL='https://docx-converter.cke-cs.com/v1/convert',PRODUCTION_URL_V2='https://docx-converter.cke-cs.com/v2/convert/html-docx',firstVersionApiKeys=['orientation','margin_top','margin_right','margin_bottom','margin_left','format','header','footer','comments','suggestions'];class ExportWordCommand extends _0x142ccd{constructor(_0x5e7aea){super(_0x5e7aea),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x12966c={}){const _0x465861=this['editor'],_0x3629b1=_0x12966c['version']||0x2,_0x20e02e=0x1===_0x3629b1,_0x5510ef=_0x12966c['converterUrl']||(_0x20e02e?PRODUCTION_URL:PRODUCTION_URL_V2),_0x2e451d=_0x12966c['converterOptions']||{},_0x40d1ef=_0x465861['plugins']['get']('ExportWord'),_0x208c4c=_0x12966c['token']||_0x40d1ef['_token'],_0x179046=!0x0===_0x2e451d['auto_pagination'],_0x22bb5b=_0x12966c['dataCallback']||(_0x161d37=>_0x161d37['data']['get']({'pagination':_0x179046}));return 0x2===_0x3629b1&&isV1ApiUsed(_0x2e451d)&&logWarning('export-word-v1-api-is-deprecated'),this['isBusy']=!0x0,this['refresh'](),collectStylesheets(_0x12966c['stylesheets']||['EDITOR_STYLES'])['then'](async _0x10d568=>{_0x465861['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x465861['locale'],'Word\x20document\x20export\x20started'));const _0x2a9aad=await _0x22bb5b(_0x465861),_0xb90520={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x465861['locale']['contentLanguageDirection']+'\x22>'+_0x2a9aad+'</div>','css':_0x10d568,[_0x20e02e?'options':'config']:{..._0x2e451d,..._0x20e02e?getConverterOptions(_0x465861,_0x2e451d):getConverterOptionsV2(_0x465861,_0x2e451d)}},_0x1751cd={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x208c4c?{'Authorization':_0x208c4c['value']}:null},'body':JSON['stringify'](_0xb90520)};return window['fetch'](_0x5510ef,_0x1751cd)['then'](_0x522f1f=>{if(0xc8!==_0x522f1f['status'])throw _0x522f1f;return _0x522f1f['blob']();})['then'](_0x5cd03e=>{_0x465861['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x465861['locale'],'Word\x20document\x20export\x20successful'));const _0x5167e9='function'==typeof _0x12966c['fileName']?_0x12966c['fileName']():_0x12966c['fileName'];this['_downloadFile'](_0x5cd03e,_0x5167e9||'document.docx');});})['catch'](_0x2f73ad=>{const _0x227548=_0x465861['plugins']['get']('Notification');throw _0x465861['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x465861['locale'],'Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x227548['showWarning'](getTranslation$c(_0x465861['locale'],'An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x2f73ad;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x599d69,_0x2ab35c){const _0x41ad52=document['createElement']('a');_0x41ad52['href']=window['URL']['createObjectURL'](_0x599d69),_0x41ad52['download']=_0x2ab35c,_0x41ad52['click'](),_0x41ad52['remove']();}}function isV1ApiUsed(_0x2504c){for(const _0x3c8454 of firstVersionApiKeys)if(void 0x0!==_0x2504c[_0x3c8454])return!0x0;return!0x1;}class ExportWordUI extends Plugin{static get['pluginName'](){return'ExportWordUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2181ae=this['editor'];_0x2181ae['ui']['componentFactory']['add']('exportWord',()=>{const _0x33ad46=_0x2181ae['commands']['get']('exportWord'),_0x58f39c=this['_createButton'](ButtonView);return _0x58f39c['set']({'tooltip':!0x0}),_0x58f39c['bind']('isOn')['to'](_0x33ad46,'isBusy'),_0x58f39c;}),_0x2181ae['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](MenuBarMenuListItemButtonView));}['_createButton'](_0x368c74){const _0x526c1c=this['editor'],_0x379c96=_0x526c1c['config']['get']('exportWord')||{},_0x4ba5aa=_0x526c1c['commands']['get']('exportWord'),_0x1a8a4=new _0x368c74(_0x526c1c['locale']),_0x5621a9=new SpinnerView();return _0x1a8a4['children']['add'](_0x5621a9),_0x5621a9['bind']('isVisible')['to'](_0x4ba5aa,'isBusy'),_0x1a8a4['iconView']['bind']('isVisible')['to'](_0x4ba5aa,'isBusy',_0x4d8eab=>!_0x4d8eab),_0x1a8a4['set']({'icon':IconExportWord}),_0x1a8a4['bind']('isEnabled')['to'](_0x4ba5aa,'isEnabled'),_0x1a8a4['bind']('label')['to'](_0x4ba5aa,'isBusy',_0x317421=>getTranslation$c(_0x526c1c['locale'],_0x317421?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x1a8a4,'execute',()=>{_0x526c1c['execute']('exportWord',_0x379c96),_0x526c1c['editing']['view']['focus']();}),_0x1a8a4;}}class ExportWord extends Plugin{['_token'];static get['pluginName'](){return'ExportWord';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return['CloudServices',Notification,ExportWordUI];}['init'](){const _0x57737f=this['editor'],_0x1badec=_0x57737f['config']['get']('exportWord')||{};_0x57737f['commands']['add']('exportWord',new ExportWordCommand(_0x57737f));const _0x2e442b=_0x57737f['plugins']['get']('CloudServices');!0x1===_0x1badec['tokenUrl']?this['_token']=null:_0x1badec['tokenUrl']?_0x2e442b['registerTokenUrl'](_0x1badec['tokenUrl'])['then'](_0x271c7c=>{this['_token']=_0x271c7c;}):this['_token']=_0x2e442b['token'];}}const COPY_FORMAT_COMMAND_NAME='copyFormat',PASTE_FORMAT_COMMAND_NAME='pasteFormat',CURSOR_ACTIVE_CSS_CLASS='ck-format-painter-active';class CopyFormatCommand extends _0x142ccd{constructor(_0x4b5462){super(_0x4b5462),this['value']=void 0x0,this['on']('change:isEnabled',(_0x4b25ee,_0x14b923,_0x31d034)=>{_0x31d034||this['reset']();}),this['on']('change:value',()=>_0x4b5462['commands']['get'](PASTE_FORMAT_COMMAND_NAME)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0xf531c0=this['editor']['model'],_0x3617f3=_0xf531c0['document']['selection'];return Object['fromEntries'](Array['from'](_0x3617f3['getAttributes']())['filter'](([_0x468038])=>_0xf531c0['schema']['getAttributeProperties'](_0x468038)['isFormatting']));}}class PasteFormatCommand extends _0x142ccd{constructor(_0x4f7dc8){super(_0x4f7dc8),this['_removeFormatCommand']=new RemoveFormatCommandAlias(_0x4f7dc8);}['execute'](_0x6b9eec={}){const _0x255736=this['editor']['model'],_0x4d802a=_0x255736['document']['selection'],_0x150d11=Array['from'](_0x4d802a['getRanges']()),_0x4d9c56=_0x4d802a['isCollapsed']?[this['_createRangeOnEntireWord'](_0x255736,_0x4d802a)]:_0x150d11;_0x255736['change'](_0x3f4a61=>{_0x3f4a61['setSelection'](_0x4d9c56),this['_removeFormatCommand']['execute']();for(const _0x342e96 in _0x6b9eec)for(const _0x5d3e1e of _0x255736['schema']['getValidRanges'](_0x4d9c56,_0x342e96))_0x3f4a61['setAttribute'](_0x342e96,_0x6b9eec[_0x342e96],_0x5d3e1e);_0x3f4a61['setSelection'](_0x150d11);});}['_createRangeOnEntireWord'](_0x191582,_0x406e21){const _0x2e0c12=_0x191582['createSelection'](_0x406e21);_0x191582['modifySelection'](_0x2e0c12,{'unit':'word','direction':'backward'});const _0x1699f6=_0x2e0c12['getFirstPosition']();_0x191582['modifySelection'](_0x2e0c12,{'unit':'word','direction':'forward'});const _0x18746e=_0x2e0c12['getLastPosition']();return _0x191582['createRange'](_0x1699f6,_0x18746e);}}class RemoveFormatCommandAlias extends _0x142ccd{['execute'](){const _0xadd42a=this['editor']['model'],_0x18541b=_0xadd42a['schema'];_0xadd42a['change'](_0x417adc=>{for(const _0x343a42 of this['_getFormattingItems'](_0xadd42a['document']['selection'],_0x18541b))if(_0x343a42['is']('selection')){for(const _0x391604 of this['_getFormattingAttributes'](_0x343a42,_0x18541b))_0x417adc['removeSelectionAttribute'](_0x391604);}else{const _0x213c4e=_0x417adc['createRangeOn'](_0x343a42);for(const _0x350424 of this['_getFormattingAttributes'](_0x343a42,_0x18541b))_0x417adc['removeAttribute'](_0x350424,_0x213c4e);}});}*['_getFormattingItems'](_0x21f593,_0x6bef92){const _0x5596cb=_0x41c397=>!!first(this['_getFormattingAttributes'](_0x41c397,_0x6bef92));for(const _0x1595ee of _0x21f593['getRanges']())for(const _0x334320 of _0x1595ee['getItems']())!_0x6bef92['isBlock'](_0x334320)&&_0x5596cb(_0x334320)&&(yield _0x334320);for(const _0xd1645a of _0x21f593['getSelectedBlocks']())_0x5596cb(_0xd1645a)&&(yield _0xd1645a);_0x5596cb(_0x21f593)&&(yield _0x21f593);}*['_getFormattingAttributes'](_0x41369f,_0xa641a5){for(const [_0x2e047e]of _0x41369f['getAttributes']()){const _0x1b9cbd=_0xa641a5['getAttributeProperties'](_0x2e047e);_0x1b9cbd&&_0x1b9cbd['isFormatting']&&(yield _0x2e047e);}}}class FormatPainterEditing extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3c80f0=this['editor'];_0x3c80f0['commands']['add'](COPY_FORMAT_COMMAND_NAME,new CopyFormatCommand(_0x3c80f0)),_0x3c80f0['commands']['add'](PASTE_FORMAT_COMMAND_NAME,new PasteFormatCommand(_0x3c80f0)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x17a804=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x398976;for(const _0xa82df8 in _0x17a804){const _0x24fe8c=_0xa82df8,_0x2f869d=_0x17a804[_0x24fe8c];if('formatPainterLicenseKeyValid'==_0x2f869d||'formatPainterLicenseKeyInvalid'==_0x2f869d||'formatPainterLicenseKeyExpired'==_0x2f869d||'formatPainterLicenseKeyDomainLimit'==_0x2f869d||'formatPainterLicenseKeyNotAllowed'==_0x2f869d||'formatPainterLicenseKeyEvaluationLimit'==_0x2f869d||'formatPainterLicenseKeyTrialLimit'==_0x2f869d||'formatPainterLicenseKeyUsageLimit'==_0x2f869d){delete _0x17a804[_0x24fe8c],_0x398976=_0x2f869d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x398976&&_0x17a804['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x398976&&_0x17a804['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x398976&&_0x17a804['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x398976&&_0x17a804['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x398976&&_0x17a804['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyTrialLimit'==_0x398976&&_0x17a804['_showLicenseError']('trialLimit'),'formatPainterLicenseKeyUsageLimit'==_0x398976&&_0x17a804['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getTranslation$b(_0x5e4bad,_0x18b23e){const t=_0x5e4bad['t'];switch(_0x18b23e){case'Paint\x20formatting':return t('Paint\x20formatting');case'Copy\x20text\x20formatting':return t('Copy\x20text\x20formatting');case'Paste\x20text\x20formatting':return t('Paste\x20text\x20formatting');case'Continuous\x20painting':return t('Continuous\x20painting');case'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':return t('Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.');case'Formatting\x20copied.':return t('Formatting\x20copied.');case'Pasted\x20formatting.':return t('Pasted\x20formatting.');default:return _0x18b23e;}}class FormatPainterUI extends/* #__PURE__ -- @preserve */
DomEmitterMixin(Plugin){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x12d64d=this['editor'];_0x12d64d['editing']['view']['addObserver'](ClickObserver),_0x12d64d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':getTranslation$b(_0x12d64d['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':getTranslation$b(_0x12d64d['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x12d64d['ui']['componentFactory']['add']('formatPainter',_0x441f68=>{const _0x4c1c63=createDropdown(_0x441f68,SplitButtonView),_0x53f31b=_0x12d64d['commands']['get'](COPY_FORMAT_COMMAND_NAME);_0x4c1c63['buttonView']['set']({'label':getTranslation$b(_0x12d64d['locale'],'Paint\x20formatting'),'icon':IconPaintRoller,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x4c1c63['class']='ck-format-painter-dropdown',_0x53f31b&&(_0x4c1c63['bind']('isEnabled')['to'](_0x53f31b,'isEnabled'),this['listenTo'](_0x53f31b,'change:isEnabled',(_0x963c81,_0x254eea,_0x3fd235)=>{_0x3fd235||this['_finishPainting']();}),_0x4c1c63['buttonView']['bind']('isOn')['to'](_0x53f31b,'value',_0x45cab0=>!!_0x45cab0),this['listenTo'](_0x12d64d,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x53f31b,'change:value',(_0xb3f9eb,_0x174aed,_0x55d403)=>{this['_toggleSpecialCursor'](!!_0x55d403);}));const _0x258ce6=new UIModel({'withText':!0x0,'label':getTranslation$b(_0x12d64d['locale'],'Continuous\x20painting'),'tooltip':getTranslation$b(_0x12d64d['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});addListToDropdown(_0x4c1c63,new Collection([{'type':'switchbutton','model':_0x258ce6}]),{'role':'menu'});const _0x14411a=()=>{this['_copyFormatting'](),this['listenTo'](_0xd4e5e['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x258ce6['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x4c1c63,'execute',()=>{_0x258ce6['isOn']=!_0x258ce6['isOn'];}),this['listenTo'](_0x4c1c63['buttonView'],'execute',()=>{_0x12d64d['editing']['view']['focus'](),_0x4c1c63['buttonView']['isOn']?this['_finishPainting']():_0x14411a();}),_0x12d64d['keystrokes']['set']('Ctrl+Alt+C',(_0x1cc307,_0x130aaa)=>{_0x14411a(),_0x258ce6['isOn']=!0x0,_0x130aaa();},{'priority':'high'}),_0x12d64d['keystrokes']['set']('Ctrl+Alt+V',(_0x540db1,_0x359a78)=>{_0x4c1c63['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x258ce6['isOn']||this['_finishPainting'](),_0x359a78());},{'priority':'high'}),_0x12d64d['keystrokes']['set']('Esc',(_0x1fdf20,_0x2f291a)=>{_0x4c1c63['buttonView']['isOn']&&(_0x258ce6['isOn']=!0x1,this['_finishPainting'](),_0x2f291a());}),_0x4c1c63;});}['afterInit'](){checkLicense$b(this);}['_toggleSpecialCursor'](_0x7074ac){this['editor']['editing']['view']['change'](_0x395b97=>{for(const _0x46a77e of this['editor']['editing']['view']['document']['roots'])_0x7074ac?_0x395b97['addClass'](CURSOR_ACTIVE_CSS_CLASS,_0x46a77e):_0x395b97['removeClass'](CURSOR_ACTIVE_CSS_CLASS,_0x46a77e);});}['_copyFormatting'](){const {editor:_0x10ee49}=this;_0x10ee49['execute'](COPY_FORMAT_COMMAND_NAME),_0x10ee49['ui']['ariaLiveAnnouncer']['announce'](getTranslation$b(_0x10ee49['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x1b3d11}=this,_0xe17775=_0x1b3d11['commands']['get'](COPY_FORMAT_COMMAND_NAME)['value'];_0x1b3d11['execute'](PASTE_FORMAT_COMMAND_NAME,_0xe17775),_0x1b3d11['ui']['ariaLiveAnnouncer']['announce'](getTranslation$b(_0x1b3d11['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](COPY_FORMAT_COMMAND_NAME)['reset'](),this['stopListening'](_0xd4e5e['window']['document'],'mouseup');}}async function checkLicense$b(_0x4a6eb6){const _0x3fb199=_0x275c13([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x261f2a=window[_0x275c13([0x44,0x61,0x74,0x65])][_0x275c13([0x6e,0x6f,0x77])](),_0x332f3f=_0x4a6eb6[_0x275c13([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x258774=new window[(_0x275c13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x338215=>{_0x332f3f[_0x275c13([0x6f,0x6e,0x63,0x65])](_0x275c13([0x72,0x65,0x61,0x64,0x79]),_0x338215);}),_0x946f85={[_0x275c13([0x6b,0x74,0x79])]:_0x275c13([0x45,0x43]),[_0x275c13([0x75,0x73,0x65])]:_0x275c13([0x73,0x69,0x67]),[_0x275c13([0x63,0x72,0x76])]:_0x275c13([0x50,0x2d,0x32,0x35,0x36]),[_0x275c13([0x78])]:_0x275c13([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x275c13([0x79])]:_0x275c13([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x275c13([0x61,0x6c,0x67])]:_0x275c13([0x45,0x53,0x32,0x35,0x36])},_0x4056d1=_0x332f3f[_0x275c13([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x275c13([0x67,0x65,0x74])](_0x275c13([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x4099bb=await(async function(){let _0x1fa223,_0x42bff7=null,_0x1f69d3=null;try{if(_0x4056d1==_0x275c13([0x47,0x50,0x4c]))return _0x275c13([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1fa223=(function(){const _0x148ed6=_0x4056d1[_0x275c13([0x73,0x70,0x6c,0x69,0x74])](_0x275c13([0x2e]));if(0x3!=_0x148ed6[_0x275c13([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x4ebcd9=_0x148ed6[0x1];return _0x3973af(_0x4ebcd9);function _0x3973af(_0x3c53fa){const _0x428cf6=_0x59789c(_0x3c53fa);return _0x428cf6&&_0x5a6fa4()?_0x428cf6:null;function _0x5a6fa4(){const _0x452c9f=_0x428cf6[_0x275c13([0x6a,0x74,0x69])],_0x22e704=window[_0x275c13([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x452c9f[_0x275c13([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x452c9f[_0x275c13([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x35151a={..._0x428cf6,[_0x275c13([0x6a,0x74,0x69])]:_0x452c9f[_0x275c13([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x452c9f[_0x275c13([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x35151a[_0x275c13([0x76,0x63])],_0x4bf4e0(_0x35151a)==_0x22e704;}}}()),!_0x1fa223)return _0x275c13([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x1fa223[_0x275c13([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f69d3=function(_0x5589b6,_0x447d51){return new window[(_0x275c13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54c2e4=>{if(_0x50b8fe())return _0x54c2e4(_0x275c13([0x56,0x61,0x6c,0x69,0x64]));_0xc57f6e(),_0x332f3f[_0x275c13([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x275c13([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b2c7b=!0x1;const _0x52900d=uid();function _0x34fe06(_0x517c66){return!!_0x517c66&&(typeof _0x517c66===_0x275c13([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x517c66===_0x275c13([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x517c66[_0x275c13([0x74,0x68,0x65,0x6e])]===_0x275c13([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x517c66[_0x275c13([0x63,0x61,0x74,0x63,0x68])]===_0x275c13([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12c839(_0x1bfdf2){_0x255108(_0x1bfdf2)[_0x275c13([0x74,0x68,0x65,0x6e])](_0x5bc5f6=>{if(!_0x5bc5f6||_0x5bc5f6[_0x275c13([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x275c13([0x6f,0x6b]))return _0x275c13([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5097c3(_0x4bf4e0(_0x52900d+_0x447d51))!=_0x5bc5f6[_0x275c13([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x275c13([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x275c13([0x56,0x61,0x6c,0x69,0x64]);})[_0x275c13([0x74,0x68,0x65,0x6e])](_0x33cad4=>(_0xb84e55(),_0x33cad4),()=>{const _0x2c7091=_0x5963f9();return null==_0x2c7091?(_0xb84e55(),_0x275c13([0x56,0x61,0x6c,0x69,0x64])):_0x275c13(_0x261f2a-_0x2c7091>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x275c13([0x74,0x68,0x65,0x6e])](_0x54c2e4)[_0x275c13([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54c2e4(_0x275c13([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x43804d=0x36ee80;function _0xb84e55(){const _0x1af285=_0x275c13([0x6c,0x6c,0x63,0x74,0x2d])+_0x5097c3(_0x4bf4e0(_0x5589b6)),_0x4dad37=_0x5b8b20(_0x5097c3(window[_0x275c13([0x4d,0x61,0x74,0x68])][_0x275c13([0x63,0x65,0x69,0x6c])](_0x261f2a/_0x43804d)));window[_0x275c13([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x275c13([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1af285,_0x4dad37);}function _0x5963f9(){const _0x32c4e2=_0x275c13([0x6c,0x6c,0x63,0x74,0x2d])+_0x5097c3(_0x4bf4e0(_0x5589b6)),_0x37a281=window[_0x275c13([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x275c13([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32c4e2);return _0x37a281?window[_0x275c13([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b8b20(_0x37a281),0x10)*_0x43804d:null;}function _0x255108(_0x4e1fbc){return new window[(_0x275c13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x414078,_0x4873d0)=>{_0x4e1fbc[_0x275c13([0x74,0x68,0x65,0x6e])](_0x414078,_0x4873d0),window[_0x275c13([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4873d0,0x1d4c0);});}}_0x332f3f[_0x275c13([0x6f,0x6e])](_0x275c13([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x133899,_0x20f61d)=>{if(_0x20f61d[0x0]!=_0x5589b6)return _0x54c2e4(_0x275c13([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20f61d[0x1]={..._0x20f61d[0x1],[_0x275c13([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x52900d};},{[_0x275c13([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x275c13([0x68,0x69,0x67,0x68])}),_0x332f3f[_0x275c13([0x6f,0x6e])](_0x275c13([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x20edda=>{_0x34fe06(_0x20edda[_0x275c13([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b2c7b=!0x0,_0x12c839(_0x20edda[_0x275c13([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x275c13([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x275c13([0x6c,0x6f,0x77])}),_0x258774[_0x275c13([0x74,0x68,0x65,0x6e])](()=>{_0x5b2c7b||_0x54c2e4(_0x275c13([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x50b8fe(){return _0x332f3f[_0x275c13([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x275c13([0x76,0x69,0x65,0x77])][_0x275c13([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x275c13([0x61,0x75,0x74,0x6f]);}function _0xc57f6e(){_0x332f3f[_0x275c13([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x275c13([0x76,0x69,0x65,0x77])][_0x275c13([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x275c13([0x61,0x75,0x74,0x6f]);}}(_0x1fa223[_0x275c13([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1fa223[_0x275c13([0x6a,0x74,0x69])]));const _0x2a0bd4=await(async function(){let _0x2960ad=!0x0;try{const _0x35173d=_0x4056d1[_0x275c13([0x73,0x70,0x6c,0x69,0x74])](_0x275c13([0x2e])),[_0x462261,_0x3094ca,_0x2fa7ac]=_0x35173d;return _0x1a39b0(_0x462261),await _0xd0b302(_0x462261,_0x3094ca,_0x2fa7ac),_0x2960ad;}catch{return!0x1;}function _0x1a39b0(_0x2bee50){const _0xe5ba2a=_0x59789c(_0x2bee50);_0xe5ba2a&&_0xe5ba2a[_0x275c13([0x61,0x6c,0x67])]==_0x275c13([0x45,0x53,0x32,0x35,0x36])||(_0x2960ad=!0x1);}async function _0xd0b302(_0x181c83,_0x3c4e4a,_0x257920){const _0x21092b=window[_0x275c13([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x275c13([0x66,0x72,0x6f,0x6d])](_0x662600(_0x257920),_0x2eb9e0=>_0x2eb9e0[_0x275c13([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18a9a2=new window[(_0x275c13([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x275c13([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x181c83+_0x275c13([0x2e])+_0x3c4e4a),_0x4e4eab=window[_0x275c13([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x275c13([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e4eab)return;const _0x135c52=await _0x4e4eab[_0x275c13([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x275c13([0x6a,0x77,0x6b]),_0x946f85,{[_0x275c13([0x6e,0x61,0x6d,0x65])]:_0x275c13([0x45,0x43,0x44,0x53,0x41]),[_0x275c13([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x275c13([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x275c13([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e4eab[_0x275c13([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x275c13([0x6e,0x61,0x6d,0x65])]:_0x275c13([0x45,0x43,0x44,0x53,0x41]),[_0x275c13([0x68,0x61,0x73,0x68])]:{[_0x275c13([0x6e,0x61,0x6d,0x65])]:_0x275c13([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x135c52,_0x21092b,_0x18a9a2)||(_0x2960ad=!0x1);}}());return _0x2a0bd4?(function(){const _0x13c49c=_0x1fa223[_0x275c13([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x13c49c)return!0x1;if(_0x13c49c[_0x275c13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x275c13([0x2a])))return!0x0;if(_0x13c49c[_0x275c13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x275c13([0x46,0x50])))return!0x0;if(_0x13c49c[_0x275c13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x275c13([0x50,0x50])))return!0x0;if(_0x13c49c[_0x275c13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x275c13([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x275c13([0x67,0x6c,0x6f,0x62])]&&window[_0x275c13([0x67,0x6c,0x6f,0x62])][_0x275c13([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x9bd0ee=[_0x275c13([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x275c13([0x74,0x72,0x69,0x61,0x6c])][_0x275c13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fa223[_0x275c13([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x261f2a/0x3e8:0x68f03580;return _0x1fa223[_0x275c13([0x65,0x78,0x70])]<_0x9bd0ee;}())?_0x275c13([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x2687ef=_0x1fa223[_0x275c13([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2687ef||0x0==_0x2687ef[_0x275c13([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x44fb65}=new URL(window[_0x275c13([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2687ef[_0x275c13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44fb65))return!0x0;const _0x2ea26f=_0x44fb65[_0x275c13([0x73,0x70,0x6c,0x69,0x74])](_0x275c13([0x2e]));return _0x2687ef[_0x275c13([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e2f58=>_0x2e2f58[_0x275c13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x275c13([0x2a])))[_0x275c13([0x6d,0x61,0x70])](_0x58dbbd=>_0x58dbbd[_0x275c13([0x73,0x70,0x6c,0x69,0x74])](_0x275c13([0x2e])))[_0x275c13([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x417cb7=>_0x417cb7[_0x275c13([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2ea26f[_0x275c13([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x275c13([0x6d,0x61,0x70])](_0x5aa606=>Array(_0x2ea26f[_0x275c13([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5aa606[_0x275c13([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x275c13([0x66,0x69,0x6c,0x6c])](_0x5aa606[0x0]===_0x275c13([0x2a])?_0x275c13([0x2a]):'')[_0x275c13([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5aa606))[_0x275c13([0x73,0x6f,0x6d,0x65])](_0x388baf=>_0x2ea26f[_0x275c13([0x65,0x76,0x65,0x72,0x79])]((_0x59e991,_0x1731f4)=>_0x388baf[_0x1731f4]===_0x59e991||_0x388baf[_0x1731f4]===_0x275c13([0x2a])));}())?(_0x1fa223[_0x275c13([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x275c13([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42bff7=_0x32606b(_0x275c13([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1fa223[_0x275c13([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x275c13([0x74,0x72,0x69,0x61,0x6c])&&(_0x42bff7=_0x32606b(_0x275c13([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x42bff7&&_0x1f69d3)return new window[(_0x275c13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x474bd7,_0x460481)=>{_0x42bff7[_0x275c13([0x74,0x68,0x65,0x6e])](_0x474bd7,_0x460481),_0x1f69d3[_0x275c13([0x74,0x68,0x65,0x6e])](_0x2e4bc6=>{_0x2e4bc6!=_0x275c13([0x56,0x61,0x6c,0x69,0x64])&&_0x474bd7(_0x2e4bc6);},_0x460481);});return _0x42bff7||_0x1f69d3||_0x275c13([0x56,0x61,0x6c,0x69,0x64]);}())):_0x275c13([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x275c13([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x275c13([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x275c13([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x32606b(_0x38b32b){const _0xc13968=[new window[(_0x275c13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18a74a=>setTimeout(_0x18a74a,0x93ecc)),_0x258774[_0x275c13([0x74,0x68,0x65,0x6e])](()=>new window[(_0x275c13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23a4cd=>{let _0x4fb7f3=0x0;_0x332f3f[_0x275c13([0x6d,0x6f,0x64,0x65,0x6c])][_0x275c13([0x6f,0x6e])](_0x275c13([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d3895,_0x39bd73)=>{_0x39bd73[0x0][_0x275c13([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4fb7f3++,0x1f8==_0x4fb7f3&&(_0x23a4cd(),_0x5d3895[_0x275c13([0x6f,0x66,0x66])]());});}))];return window[_0x275c13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x275c13([0x72,0x61,0x63,0x65])](_0xc13968)[_0x275c13([0x74,0x68,0x65,0x6e])](()=>_0x38b32b);}function _0x59789c(_0x38d55d){return _0x38d55d[_0x275c13([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x275c13([0x65,0x79]))?JSON[_0x275c13([0x70,0x61,0x72,0x73,0x65])](_0x662600(_0x38d55d)):null;}function _0x662600(_0x2bf63e){return window[_0x275c13([0x61,0x74,0x6f,0x62])](_0x2bf63e[_0x275c13([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x275c13([0x2b]))[_0x275c13([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x275c13([0x2f])));}function _0x4bf4e0(_0x39afc2){let _0x354c44=0x1505;function _0x3510fc(_0x14fcd6){for(let _0x7b0b15=0x0;_0x7b0b15<_0x14fcd6[_0x275c13([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7b0b15++){const _0x57a019=_0x14fcd6[_0x275c13([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x7b0b15);_0x354c44=(_0x354c44<<0x5)+_0x354c44+_0x57a019,_0x354c44&=_0x354c44;}}return function _0x247fc0(_0x3793db){Array[_0x275c13([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3793db)?_0x3793db[_0x275c13([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x247fc0):_0x3793db&&typeof _0x3793db==_0x275c13([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x275c13([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3793db)[_0x275c13([0x73,0x6f,0x72,0x74])]()[_0x275c13([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a6c27,_0x1a31bc])=>{_0x3510fc(_0x5a6c27),_0x247fc0(_0x1a31bc);}):_0x3510fc(window[_0x275c13([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3793db));}(_0x39afc2),_0x354c44>>>0x0;}function _0x5097c3(_0x10ad04){return _0x10ad04[_0x275c13([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x275c13([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x275c13([0x30]));}function _0x5b8b20(_0x119b39){return _0x119b39[_0x275c13([0x73,0x70,0x6c,0x69,0x74])]('')[_0x275c13([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x275c13([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a8d99(){}function _0x275c13(_0x2320c0){return _0x2320c0['map'](_0xab5103=>String['fromCharCode'](_0xab5103))['join']('');}!function(_0x86a63d){const _0x3f677c=(function(){const _0x2067ba=window[_0x275c13([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x275c13([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x275c13([0x6e,0x6f,0x77])]())[_0x275c13([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x275c13([0x2e]),'');let _0x5dc875=_0x275c13([0x75]);for(let _0x3ec222=0x0;_0x3ec222<_0x2067ba[_0x275c13([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ec222+=0x2){let _0x3600ed=window[_0x275c13([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2067ba[_0x275c13([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ec222,_0x3ec222+0x2));_0x3600ed>=_0x3fb199[_0x275c13([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3600ed-=_0x3fb199[_0x275c13([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5dc875+=_0x3fb199[_0x3600ed];}return _0x5dc875;}());_0x332f3f[_0x3f677c]=_0x275c13([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x86a63d,_0x86a63d!=_0x275c13([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x258774,_0x332f3f[_0x275c13([0x6d,0x6f,0x64,0x65,0x6c])][_0x275c13([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a8d99,_0x332f3f[_0x275c13([0x6d,0x6f,0x64,0x65,0x6c])][_0x275c13([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a8d99,_0x332f3f[_0x275c13([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x275c13([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x4099bb);}class FormatPainter extends Plugin{static get['requires'](){return[FormatPainterEditing,FormatPainterUI];}static get['pluginName'](){return'FormatPainter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}function getTranslation$a(_0x2a51fa,_0x4969ad){const t=_0x2a51fa['t'];switch(_0x4969ad){case'Import\x20from\x20Word':return t('Import\x20from\x20Word');case'An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':return t('An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');case'Importing\x20Word\x20document':return t('Importing\x20Word\x20document');default:return _0x4969ad;}}class ImportWordUI extends Plugin{static get['pluginName'](){return'ImportWordUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4a9eca=this['editor'];_0x4a9eca['ui']['componentFactory']['add']('importWord',()=>{const _0x12568c=this['_createButton'](FileDialogButtonView),_0x2915de=_0x4a9eca['commands']['get']('importWord');return _0x12568c['bind']('isOn')['to'](_0x2915de,'isBusy'),_0x12568c['tooltip']=!0x0,_0x12568c;}),_0x4a9eca['ui']['componentFactory']['add']('menuBar:importWord',()=>this['_createButton'](MenuBarMenuListItemFileDialogButtonView));}['_createButton'](_0x1019bd){const _0x3b6d5f=this['editor'],_0x2cebb7=_0x3b6d5f['commands']['get']('importWord'),_0x3b6f2a=new _0x1019bd(_0x3b6d5f['locale']),_0x51d224=new SpinnerView();return _0x3b6f2a['set']({'acceptedType':'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template'}),_0x3b6f2a['set']({'icon':IconImportWord}),_0x3b6f2a['bind']('isEnabled')['to'](_0x2cebb7),_0x3b6f2a['bind']('label')['to'](_0x2cebb7,'isBusy',_0x1abddf=>getTranslation$a(_0x3b6d5f['locale'],_0x1abddf?'Importing\x20Word\x20document':'Import\x20from\x20Word')),_0x51d224['bind']('isVisible')['to'](_0x2cebb7,'isBusy'),_0x3b6f2a['iconView']['bind']('isVisible')['to'](_0x2cebb7,'isBusy',_0x5b721b=>!_0x5b721b),_0x3b6f2a['children']['add'](_0x51d224),_0x3b6f2a['on']('done',(_0x12a61d,_0x1229cf)=>{_0x3b6d5f['execute']('importWord',_0x1229cf[0x0],{}),_0x3b6d5f['editing']['view']['focus']();}),_0x3b6f2a;}}class ImportWordCommand extends _0x142ccd{['_importMarker'];['_undoStepBatch'];['_abortController'];constructor(_0x2c4971){super(_0x2c4971),this['set']('isBusy',!0x1),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['on']('dataInsert',(_0x3f2cfc,_0x5beca3)=>{const _0x3bfb2a=new DataTransfer();_0x3bfb2a['setData']('text/html',_0x5beca3['html']);const _0x49e71a=this['_importMarker']['getRange']();this['editor']['model']['enqueueChange'](this['_undoStepBatch'],_0x153888=>{this['_importMarker']['stopListening'](),_0x153888['setSelection'](_0x49e71a),_0x2c4971['editing']['view']['document']['fire']('clipboardInput',{'dataTransfer':_0x3bfb2a});});},{'priority':'low'});}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3e9960,_0x5dbc58={}){if(this['isBusy'])return Promise['resolve']();const _0x44d33a=this['editor']['config']['get']('importWord');if(this['editor']['plugins']['has']('MergeFields')){const {prefix:_0xbe5458,suffix:_0x72dd19}=this['editor']['config']['get']('mergeFields');_0x5dbc58['merge_fields']={'prefix':_0xbe5458,'suffix':_0x72dd19};}const _0x5a42f0={'url':_0x44d33a['converterUrl'],'file':_0x3e9960,'serviceConfig':{..._0x5dbc58,'formatting':_0x44d33a['formatting'],'timezone':new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone']}};return this['_prepareForImport'](),this['_sendImportRequest'](_0x5a42f0)['then'](this['_handleImportResponse']['bind'](this))['catch'](this['_handleImportFailure']['bind'](this))['finally'](this['_cleanUpAfterImport']['bind'](this));}['_checkEnabled'](){if(this['isBusy'])return!0x1;const _0x1eef3e=this['editor']['model'],_0x5db91d=_0x1eef3e['schema'],_0x2b8651=_0x1eef3e['document']['selection'],_0x33d859=first(_0x2b8651['getSelectedBlocks']());return!!_0x33d859&&_0x5db91d['checkChild'](_0x33d859['parent'],'paragraph');}['_prepareForImport'](){const _0xe2420d=this['editor'],_0x2099cd=_0xe2420d['model'],_0x980e42=_0x2099cd['document']['selection'];this['_abortController']=new AbortController(),this['_undoStepBatch']=_0xe2420d['model']['createBatch']({'isUndoable':!0x0}),_0x2099cd['enqueueChange'](this['_undoStepBatch'],_0x4722c2=>{_0x980e42['isCollapsed']||_0x2099cd['deleteContent'](_0x980e42,{'leaveUnmerged':!0x0});const _0x1ef5cc=_0x980e42['getFirstPosition'](),_0x2b10f7=first(_0x980e42['getSelectedBlocks']());let _0x192f66;_0x192f66=_0x2b10f7['is']('element','paragraph')&&_0x2b10f7['isEmpty']?_0x1ef5cc:_0x1ef5cc['isAtStart']?_0x2099cd['createPositionBefore'](_0x2b10f7):_0x1ef5cc['isAtEnd']?_0x2099cd['createPositionAfter'](_0x2b10f7):_0x4722c2['split'](_0x1ef5cc)['position'],this['_importMarker']=_0x4722c2['addMarker']('importWord:'+uid(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new ModelRange(_0x192f66)}),this['_importMarker']['on']('change:range',()=>{'$graveyard'===this['_importMarker']['getRange']()['root']['rootName']&&this['_abortController']['abort']();});}),this['isBusy']=!0x0,this['refresh']();}['_cleanUpAfterImport'](){const _0x81ebba=this['editor']['model'];_0x81ebba['markers']['has'](this['_importMarker'])&&_0x81ebba['enqueueChange'](this['_undoStepBatch'],_0x1db045=>{_0x1db045['removeMarker'](this['_importMarker']);}),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['isBusy']=!0x1,this['refresh']();}['_sendImportRequest']({url:_0x6ae30,file:_0x500b0f,serviceConfig:_0x48002b}){const _0x1df3b1=this['editor']['plugins']['get']('ImportWordEditing')['getToken'](),_0x4ac3b3=new FormData();_0x4ac3b3['set']('config',JSON['stringify'](_0x48002b)),_0x4ac3b3['set']('file',_0x500b0f);const _0x321b17={'method':'POST','headers':{},'body':_0x4ac3b3,'signal':this['_abortController']['signal']};return _0x1df3b1&&(_0x321b17['headers']['Authorization']=_0x1df3b1['value']),fetch(_0x6ae30,_0x321b17);}['_handleImportResponse'](_0x19d411){return _0x19d411['ok']?_0x19d411['json']()['then'](_0x35d62c=>{if(!this['editor']['model']['markers']['has'](this['_importMarker']))return;'$graveyard'!==this['_importMarker']['getRange']()['root']['rootName']&&this['fire']('dataInsert',_0x35d62c);}):Promise['reject']();}['_handleImportFailure'](){if(this['_abortController']['signal']['aborted'])return void logWarning('import-word-plugin-import-cancelled');const _0xa5eba0=this['editor'],_0x8dd9de=getTranslation$a(_0xa5eba0['locale'],'An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');_0xa5eba0['plugins']['get']('Notification')['showWarning'](_0x8dd9de),logError('import-word-plugin-conversion-failed');}}class ImportWordEditing extends Plugin{['_token'];static get['pluginName'](){return'ImportWordEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Notification,ClipboardPipeline,'CloudServices'];}constructor(_0xfdacd){super(_0xfdacd),this['_token']=null;}async['init'](){const _0xfddc19=this['editor'];_0xfddc19['config']['define']('importWord',{'converterUrl':'https://docx-converter.cke-cs.com/v2/convert/docx-html','tokenUrl':(_0xfddc19['config']['get']('cloudServices')||{})['tokenUrl'],'formatting':{'resets':'none','defaults':'none','styles':'inline'}}),_0xfddc19['commands']['add']('importWord',new ImportWordCommand(_0xfddc19));const {tokenUrl:_0x2f021d}=_0xfddc19['config']['get']('importWord');if(_0x2f021d){const {tokenUrl:_0x2170fa}=_0xfddc19['config']['get']('cloudServices')||{};this['_token']=_0x2f021d===_0x2170fa?_0xfddc19['plugins']['get']('CloudServices')['token']:await _0xfddc19['plugins']['get']('CloudServices')['registerTokenUrl'](_0x2f021d);}}['getToken'](){return this['_token'];}}class ImportWord extends Plugin{static get['pluginName'](){return'ImportWord';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ImportWordEditing,ImportWordUI];}}class LineHeightCommand extends _0x142ccd{['refresh'](){const _0x555944=this['editor']['model']['document'],_0x4ab39f=first(_0x555944['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x4ab39f)&&this['_canHaveLineHeight'](_0x4ab39f),this['value']=this['isEnabled']&&_0x4ab39f['getAttribute']('lineHeight');}['execute'](_0x464463={}){const _0x2d5e93=this['editor']['model'],_0x51ae51=_0x2d5e93['document']['selection'],_0x4e45ec=_0x464463['value'];_0x2d5e93['change'](_0x2f3216=>{const _0x34806a=Array['from'](_0x51ae51['getSelectedBlocks']())['filter'](_0x2958c6=>this['_canHaveLineHeight'](_0x2958c6));for(const _0x17215a of _0x34806a)_0x4e45ec?_0x2f3216['setAttribute']('lineHeight',_0x4e45ec,_0x17215a):_0x2f3216['removeAttribute']('lineHeight',_0x17215a);});}['_canHaveLineHeight'](_0xa3eadd){return this['editor']['model']['schema']['checkAttribute'](_0xa3eadd,'lineHeight');}}const namedPresets={get 'single'(){return{'title':'Single','model':'single','view':{'key':'class','value':'line-height-single'}};},get 'double'(){return{'title':'Double','model':'double','view':{'key':'class','value':'line-height-double'}};}};function isLineHeightDefaultValue(_0x1f36f5){return'string'==typeof _0x1f36f5&&'default'===_0x1f36f5['toLowerCase']();}function normalizeOptions(_0x387caf){return _0x387caf['options']['map'](_0x3835ca=>isLineHeightDefaultValue(_0x3835ca)?{'title':String(_0x387caf['defaultValue']),'model':'default'}:('number'==typeof _0x3835ca&&(_0x3835ca=String(_0x3835ca)),'string'!=typeof _0x3835ca?_0x3835ca:parseFloat(_0x3835ca)?{'title':_0x3835ca,'model':_0x3835ca,'view':{'name':'span','styles':{'line-height':_0x3835ca}}}:findPreset(_0x3835ca)))['filter'](_0x3ad0b9=>void 0x0!==_0x3ad0b9);}function findPreset(_0x4cafb4){return'string'==typeof _0x4cafb4?namedPresets[_0x4cafb4]:namedPresets[_0x4cafb4['model']];}function buildDefinition(_0x1dac0a,_0x1c26a1){const _0x201534={'model':{'key':_0x1dac0a,'values':[]},'view':{}};for(const _0x1b7d30 of _0x1c26a1)'class'===_0x1b7d30['view']?.['key']?(_0x201534['model']['values']['push'](_0x1b7d30['model']),_0x201534['view'][_0x1b7d30['model']]={'key':'class','value':_0x1b7d30['view']['value']}):(_0x201534['model']['values']['push'](_0x1b7d30['model']),_0x201534['view'][_0x1b7d30['model']]={'key':'style','value':'line-height:'+_0x1b7d30['model']+';'});return _0x201534;}class LineHeightEditing extends Plugin{static get['pluginName'](){return'LineHeightEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b63fc){super(_0x2b63fc),_0x2b63fc['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0xa20c8c=this['editor'];this['_validateConfig'](),_0xa20c8c['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0xa20c8c['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0xa20c8c['commands']['add']('lineHeight',new LineHeightCommand(_0xa20c8c)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){checkLicense$a(this);}['_validateConfig'](){const _0x511d0d=this['editor'];if(!_0x511d0d['config']['get']('lineHeight.supportAllValues'))return;const _0x2da127=_0x511d0d['config']['get']('lineHeight.options')['filter'](_0x2c9950=>'string'==typeof _0x2c9950&&(!isLineHeightDefaultValue(_0x2c9950)&&isNaN(Number(_0x2c9950))));if(_0x2da127['length'])throw new CKEditorError('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x2da127});}['_prepareAnyValueConverters'](){const _0x11463f=this['editor'],_0x9f279b=this['editor']['config']['get']('lineHeight.defaultValue');_0x11463f['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x32b078=>String(_0x32b078)===String(_0x9f279b)?null:{'key':'style','value':{'line-height':_0x32b078}}}),_0x11463f['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x224d61=>{let _0x2ce419=_0x224d61['getStyle']('line-height');return isPercentageStyleValue(_0x2ce419)&&(_0x2ce419=String(Number(_0x2ce419['slice'](0x0,-0x1))/0x64)),String(_0x2ce419)===String(_0x9f279b)?null:_0x2ce419;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x447d6b=this['editor'],_0x4e1228=this['editor']['config']['get']('lineHeight.defaultValue'),_0x55d4bb=buildDefinition('lineHeight',normalizeOptions(this['editor']['config']['get']('lineHeight'))['filter'](_0x3a8e5c=>_0x3a8e5c['model']));_0x447d6b['conversion']['attributeToAttribute'](_0x55d4bb),_0x447d6b['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x206bca=>{let _0x21f8b8=_0x206bca['getStyle']('line-height');return isPercentageStyleValue(_0x21f8b8)&&(_0x21f8b8=String(Number(_0x21f8b8['slice'](0x0,-0x1))/0x64)),_0x21f8b8===String(_0x4e1228)?null:_0x55d4bb['model']['values']['includes'](_0x21f8b8)?_0x21f8b8:null;}}});}}async function checkLicense$a(_0x320754){const _0x1d5ce9=_0x1bec53([0x51,0x69,0x4c,0x52,0x43,0x53,0x4f,0x73,0x5a,0x38,0x70,0x41,0x76,0x44,0x64,0x61,0x50,0x4a,0x55,0x45,0x33,0x6f,0x78,0x6a,0x4b,0x6c,0x7a,0x4d,0x32,0x75,0x58,0x67,0x72,0x74,0x47,0x66,0x65,0x79,0x68,0x35,0x63,0x4e,0x46,0x6b,0x6d,0x42,0x77,0x39,0x49,0x36,0x57,0x48,0x30,0x71,0x6e,0x62,0x34,0x54,0x31,0x37,0x59,0x56]),_0x496815=window[_0x1bec53([0x44,0x61,0x74,0x65])][_0x1bec53([0x6e,0x6f,0x77])](),_0x788157=_0x320754[_0x1bec53([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb85d6a=new window[(_0x1bec53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4555c9=>{_0x788157[_0x1bec53([0x6f,0x6e,0x63,0x65])](_0x1bec53([0x72,0x65,0x61,0x64,0x79]),_0x4555c9);}),_0x1b925c={[_0x1bec53([0x6b,0x74,0x79])]:_0x1bec53([0x45,0x43]),[_0x1bec53([0x75,0x73,0x65])]:_0x1bec53([0x73,0x69,0x67]),[_0x1bec53([0x63,0x72,0x76])]:_0x1bec53([0x50,0x2d,0x32,0x35,0x36]),[_0x1bec53([0x78])]:_0x1bec53([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x1bec53([0x79])]:_0x1bec53([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x1bec53([0x61,0x6c,0x67])]:_0x1bec53([0x45,0x53,0x32,0x35,0x36])},_0x537b77=_0x788157[_0x1bec53([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1bec53([0x67,0x65,0x74])](_0x1bec53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0xd8a880=await(async function(){let _0x50810e,_0x157910=null,_0x35d232=null;try{if(_0x537b77==_0x1bec53([0x47,0x50,0x4c]))return _0x1bec53([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50810e=(function(){const _0x162220=_0x537b77[_0x1bec53([0x73,0x70,0x6c,0x69,0x74])](_0x1bec53([0x2e]));if(0x3!=_0x162220[_0x1bec53([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5b84d8=_0x162220[0x1];return _0x15fc54(_0x5b84d8);function _0x15fc54(_0x3ab886){const _0x1e1b0a=_0x4ab26c(_0x3ab886);return _0x1e1b0a&&_0x5e9b58()?_0x1e1b0a:null;function _0x5e9b58(){const _0x18a192=_0x1e1b0a[_0x1bec53([0x6a,0x74,0x69])],_0x29b119=window[_0x1bec53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18a192[_0x1bec53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18a192[_0x1bec53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ae7fb={..._0x1e1b0a,[_0x1bec53([0x6a,0x74,0x69])]:_0x18a192[_0x1bec53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18a192[_0x1bec53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ae7fb[_0x1bec53([0x76,0x63])],_0x520793(_0x2ae7fb)==_0x29b119;}}}()),!_0x50810e)return _0x1bec53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x50810e[_0x1bec53([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x35d232=function(_0x185b25,_0x1643a5){return new window[(_0x1bec53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53086c=>{if(_0x4fb48a())return _0x53086c(_0x1bec53([0x56,0x61,0x6c,0x69,0x64]));_0x37a98f(),_0x788157[_0x1bec53([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1bec53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47eab7=!0x1;const _0x4ffb29=uid();function _0x4f7a1d(_0x2af2b0){return!!_0x2af2b0&&(typeof _0x2af2b0===_0x1bec53([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2af2b0===_0x1bec53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2af2b0[_0x1bec53([0x74,0x68,0x65,0x6e])]===_0x1bec53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2af2b0[_0x1bec53([0x63,0x61,0x74,0x63,0x68])]===_0x1bec53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a2643(_0x34e39e){_0x220641(_0x34e39e)[_0x1bec53([0x74,0x68,0x65,0x6e])](_0x202219=>{if(!_0x202219||_0x202219[_0x1bec53([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1bec53([0x6f,0x6b]))return _0x1bec53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x409786(_0x520793(_0x4ffb29+_0x1643a5))!=_0x202219[_0x1bec53([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1bec53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1bec53([0x56,0x61,0x6c,0x69,0x64]);})[_0x1bec53([0x74,0x68,0x65,0x6e])](_0x313716=>(_0x180899(),_0x313716),()=>{const _0x30f30c=_0x3ae5ff();return null==_0x30f30c?(_0x180899(),_0x1bec53([0x56,0x61,0x6c,0x69,0x64])):_0x1bec53(_0x496815-_0x30f30c>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1bec53([0x74,0x68,0x65,0x6e])](_0x53086c)[_0x1bec53([0x63,0x61,0x74,0x63,0x68])](()=>{_0x53086c(_0x1bec53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xbee521=0x36ee80;function _0x180899(){const _0x4d22ee=_0x1bec53([0x6c,0x6c,0x63,0x74,0x2d])+_0x409786(_0x520793(_0x185b25)),_0x2da815=_0x247050(_0x409786(window[_0x1bec53([0x4d,0x61,0x74,0x68])][_0x1bec53([0x63,0x65,0x69,0x6c])](_0x496815/_0xbee521)));window[_0x1bec53([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1bec53([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d22ee,_0x2da815);}function _0x3ae5ff(){const _0xb0ab58=_0x1bec53([0x6c,0x6c,0x63,0x74,0x2d])+_0x409786(_0x520793(_0x185b25)),_0x5a61cc=window[_0x1bec53([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1bec53([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb0ab58);return _0x5a61cc?window[_0x1bec53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x247050(_0x5a61cc),0x10)*_0xbee521:null;}function _0x220641(_0x5d395d){return new window[(_0x1bec53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e3618,_0x574bb6)=>{_0x5d395d[_0x1bec53([0x74,0x68,0x65,0x6e])](_0x1e3618,_0x574bb6),window[_0x1bec53([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x574bb6,0x1d4c0);});}}_0x788157[_0x1bec53([0x6f,0x6e])](_0x1bec53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2cd30f,_0x42913f)=>{if(_0x42913f[0x0]!=_0x185b25)return _0x53086c(_0x1bec53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x42913f[0x1]={..._0x42913f[0x1],[_0x1bec53([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ffb29};},{[_0x1bec53([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1bec53([0x68,0x69,0x67,0x68])}),_0x788157[_0x1bec53([0x6f,0x6e])](_0x1bec53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x270fb2=>{_0x4f7a1d(_0x270fb2[_0x1bec53([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47eab7=!0x0,_0x2a2643(_0x270fb2[_0x1bec53([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1bec53([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1bec53([0x6c,0x6f,0x77])}),_0xb85d6a[_0x1bec53([0x74,0x68,0x65,0x6e])](()=>{_0x47eab7||_0x53086c(_0x1bec53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4fb48a(){return _0x788157[_0x1bec53([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bec53([0x76,0x69,0x65,0x77])][_0x1bec53([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1bec53([0x61,0x75,0x74,0x6f]);}function _0x37a98f(){_0x788157[_0x1bec53([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bec53([0x76,0x69,0x65,0x77])][_0x1bec53([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1bec53([0x61,0x75,0x74,0x6f]);}}(_0x50810e[_0x1bec53([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50810e[_0x1bec53([0x6a,0x74,0x69])]));const _0x5103e7=await(async function(){let _0x39cbdd=!0x0;try{const _0x112ea3=_0x537b77[_0x1bec53([0x73,0x70,0x6c,0x69,0x74])](_0x1bec53([0x2e])),[_0x13d585,_0xdebf20,_0x38e341]=_0x112ea3;return _0x19ced1(_0x13d585),await _0x3ce160(_0x13d585,_0xdebf20,_0x38e341),_0x39cbdd;}catch{return!0x1;}function _0x19ced1(_0x59eca1){const _0x1a5393=_0x4ab26c(_0x59eca1);_0x1a5393&&_0x1a5393[_0x1bec53([0x61,0x6c,0x67])]==_0x1bec53([0x45,0x53,0x32,0x35,0x36])||(_0x39cbdd=!0x1);}async function _0x3ce160(_0x546e0f,_0x253e7e,_0x2f5c65){const _0x4802ba=window[_0x1bec53([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1bec53([0x66,0x72,0x6f,0x6d])](_0x3e146f(_0x2f5c65),_0x2aebeb=>_0x2aebeb[_0x1bec53([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x404220=new window[(_0x1bec53([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1bec53([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x546e0f+_0x1bec53([0x2e])+_0x253e7e),_0x32bfea=window[_0x1bec53([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1bec53([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x32bfea)return;const _0x2cf724=await _0x32bfea[_0x1bec53([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1bec53([0x6a,0x77,0x6b]),_0x1b925c,{[_0x1bec53([0x6e,0x61,0x6d,0x65])]:_0x1bec53([0x45,0x43,0x44,0x53,0x41]),[_0x1bec53([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1bec53([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1bec53([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x32bfea[_0x1bec53([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1bec53([0x6e,0x61,0x6d,0x65])]:_0x1bec53([0x45,0x43,0x44,0x53,0x41]),[_0x1bec53([0x68,0x61,0x73,0x68])]:{[_0x1bec53([0x6e,0x61,0x6d,0x65])]:_0x1bec53([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2cf724,_0x4802ba,_0x404220)||(_0x39cbdd=!0x1);}}());return _0x5103e7?(function(){const _0x269f65=_0x50810e[_0x1bec53([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x269f65)return!0x1;if(_0x269f65[_0x1bec53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bec53([0x2a])))return!0x0;if(_0x269f65[_0x1bec53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bec53([0x4c,0x48])))return!0x0;return!0x1;}())?(function(){const _0x59214c=[_0x1bec53([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1bec53([0x74,0x72,0x69,0x61,0x6c])][_0x1bec53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50810e[_0x1bec53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x496815/0x3e8:0x68f03580;return _0x50810e[_0x1bec53([0x65,0x78,0x70])]<_0x59214c;}())?_0x1bec53([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x6beaa=_0x50810e[_0x1bec53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6beaa||0x0==_0x6beaa[_0x1bec53([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf95d21}=new URL(window[_0x1bec53([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x6beaa[_0x1bec53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf95d21))return!0x0;const _0x1b986c=_0xf95d21[_0x1bec53([0x73,0x70,0x6c,0x69,0x74])](_0x1bec53([0x2e]));return _0x6beaa[_0x1bec53([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4509e7=>_0x4509e7[_0x1bec53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bec53([0x2a])))[_0x1bec53([0x6d,0x61,0x70])](_0x5c5518=>_0x5c5518[_0x1bec53([0x73,0x70,0x6c,0x69,0x74])](_0x1bec53([0x2e])))[_0x1bec53([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a2693=>_0x5a2693[_0x1bec53([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1b986c[_0x1bec53([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1bec53([0x6d,0x61,0x70])](_0xa4f106=>Array(_0x1b986c[_0x1bec53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xa4f106[_0x1bec53([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1bec53([0x66,0x69,0x6c,0x6c])](_0xa4f106[0x0]===_0x1bec53([0x2a])?_0x1bec53([0x2a]):'')[_0x1bec53([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xa4f106))[_0x1bec53([0x73,0x6f,0x6d,0x65])](_0x2f9782=>_0x1b986c[_0x1bec53([0x65,0x76,0x65,0x72,0x79])]((_0x392cb5,_0x2b56b3)=>_0x2f9782[_0x2b56b3]===_0x392cb5||_0x2f9782[_0x2b56b3]===_0x1bec53([0x2a])));}())?(_0x50810e[_0x1bec53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1bec53([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x157910=_0x3df3ce(_0x1bec53([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50810e[_0x1bec53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1bec53([0x74,0x72,0x69,0x61,0x6c])&&(_0x157910=_0x3df3ce(_0x1bec53([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x157910&&_0x35d232)return new window[(_0x1bec53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1da054,_0x5c981d)=>{_0x157910[_0x1bec53([0x74,0x68,0x65,0x6e])](_0x1da054,_0x5c981d),_0x35d232[_0x1bec53([0x74,0x68,0x65,0x6e])](_0x2af73a=>{_0x2af73a!=_0x1bec53([0x56,0x61,0x6c,0x69,0x64])&&_0x1da054(_0x2af73a);},_0x5c981d);});return _0x157910||_0x35d232||_0x1bec53([0x56,0x61,0x6c,0x69,0x64]);}())):_0x1bec53([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1bec53([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1bec53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1bec53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x3df3ce(_0x197b72){const _0x2225f9=[new window[(_0x1bec53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e1bb0=>setTimeout(_0x3e1bb0,0x93ecc)),_0xb85d6a[_0x1bec53([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1bec53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24357f=>{let _0x28e3cf=0x0;_0x788157[_0x1bec53([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bec53([0x6f,0x6e])](_0x1bec53([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x99731b,_0x493f39)=>{_0x493f39[0x0][_0x1bec53([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x28e3cf++,0x1f8==_0x28e3cf&&(_0x24357f(),_0x99731b[_0x1bec53([0x6f,0x66,0x66])]());});}))];return window[_0x1bec53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1bec53([0x72,0x61,0x63,0x65])](_0x2225f9)[_0x1bec53([0x74,0x68,0x65,0x6e])](()=>_0x197b72);}function _0x4ab26c(_0x6aea40){return _0x6aea40[_0x1bec53([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1bec53([0x65,0x79]))?JSON[_0x1bec53([0x70,0x61,0x72,0x73,0x65])](_0x3e146f(_0x6aea40)):null;}function _0x3e146f(_0x2c603c){return window[_0x1bec53([0x61,0x74,0x6f,0x62])](_0x2c603c[_0x1bec53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1bec53([0x2b]))[_0x1bec53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1bec53([0x2f])));}function _0x520793(_0x34bfe0){let _0x1eeaeb=0x1505;function _0x38d271(_0x35ad91){for(let _0x412619=0x0;_0x412619<_0x35ad91[_0x1bec53([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x412619++){const _0x277d13=_0x35ad91[_0x1bec53([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x412619);_0x1eeaeb=(_0x1eeaeb<<0x5)+_0x1eeaeb+_0x277d13,_0x1eeaeb&=_0x1eeaeb;}}return function _0x5ac1a1(_0x550a59){Array[_0x1bec53([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x550a59)?_0x550a59[_0x1bec53([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ac1a1):_0x550a59&&typeof _0x550a59==_0x1bec53([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1bec53([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x550a59)[_0x1bec53([0x73,0x6f,0x72,0x74])]()[_0x1bec53([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30c61c,_0x3eb77c])=>{_0x38d271(_0x30c61c),_0x5ac1a1(_0x3eb77c);}):_0x38d271(window[_0x1bec53([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x550a59));}(_0x34bfe0),_0x1eeaeb>>>0x0;}function _0x409786(_0x4680e4){return _0x4680e4[_0x1bec53([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1bec53([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1bec53([0x30]));}function _0x247050(_0x1c05df){return _0x1c05df[_0x1bec53([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1bec53([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1bec53([0x6a,0x6f,0x69,0x6e])]('');}function _0x26797c(){}function _0x1bec53(_0xfffe10){return _0xfffe10['map'](_0x24c95d=>String['fromCharCode'](_0x24c95d))['join']('');}!function(_0x1f292b){const _0x56a2a8=(function(){const _0x210555=window[_0x1bec53([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1bec53([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1bec53([0x6e,0x6f,0x77])]())[_0x1bec53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1bec53([0x2e]),'');let _0x26a206=_0x1bec53([0x51]);for(let _0x285abc=0x0;_0x285abc<_0x210555[_0x1bec53([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x285abc+=0x2){let _0x16478e=window[_0x1bec53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x210555[_0x1bec53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x285abc,_0x285abc+0x2));_0x16478e>=_0x1d5ce9[_0x1bec53([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x16478e-=_0x1d5ce9[_0x1bec53([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26a206+=_0x1d5ce9[_0x16478e];}return _0x26a206;}());_0x788157[_0x56a2a8]=_0x1bec53([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1f292b,_0x1f292b!=_0x1bec53([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0xb85d6a,_0x788157[_0x1bec53([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bec53([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26797c,_0x788157[_0x1bec53([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bec53([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26797c,_0x788157[_0x1bec53([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1bec53([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0xd8a880);}class LineHeightUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xdf9cf1={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0xdf9cf1),this['_registerMenuBarComponent'](_0xdf9cf1),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x412757=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x42c71f;for(const _0x1fba04 in _0x412757){const _0x285eeb=_0x1fba04,_0x55137f=_0x412757[_0x285eeb];if('lineHeightLicenseKeyValid'==_0x55137f||'lineHeightLicenseKeyInvalid'==_0x55137f||'lineHeightLicenseKeyExpired'==_0x55137f||'lineHeightLicenseKeyDomainLimit'==_0x55137f||'lineHeightLicenseKeyNotAllowed'==_0x55137f||'lineHeightLicenseKeyEvaluationLimit'==_0x55137f||'lineHeightLicenseKeyTrialLimit'==_0x55137f||'lineHeightLicenseKeyUsageLimit'==_0x55137f){delete _0x412757[_0x285eeb],_0x42c71f=_0x55137f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x42c71f&&_0x412757['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x42c71f&&_0x412757['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x42c71f&&_0x412757['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x42c71f&&_0x412757['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x42c71f&&_0x412757['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyTrialLimit'==_0x42c71f&&_0x412757['_showLicenseError']('trialLimit'),'lineHeightLicenseKeyUsageLimit'==_0x42c71f&&_0x412757['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x2ad21c=this['editor'],t=_0x2ad21c['t'],_0x4ddc68=_0x2ad21c['config']['get']('lineHeight'),_0x462afd={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return normalizeOptions(_0x4ddc68)['map'](_0x36ac13=>{const _0x2abf86=_0x462afd[_0x36ac13['title']];return _0x2abf86&&_0x2abf86!=_0x36ac13['title']&&(_0x36ac13=Object['assign']({},_0x36ac13,{'title':_0x2abf86})),_0x36ac13;});}['_prepareListOptions'](){const _0x3873a4=this['editor']['commands']['get']('lineHeight'),_0x9874a=this['editor']['config']['get']('lineHeight.defaultValue'),_0x377b88=this['_getLocalizedLineHeightOptions'](),_0x1664ce=new Collection(),_0x51b684=_0x5c88f5=>'default'===_0x5c88f5||String(_0x9874a)===_0x5c88f5;for(const _0x4bfbe1 of _0x377b88){const _0xb0e83={'type':'button','model':new UIModel({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x4bfbe1['title'],'withText':!0x0})};_0x51b684(_0x4bfbe1['model'])?(_0xb0e83['model']['bind']('isOn')['to'](_0x3873a4,'value',_0x56b6d5=>!_0x56b6d5),_0xb0e83['model']['commandParam']=void 0x0):(_0xb0e83['model']['bind']('isOn')['to'](_0x3873a4,'value',_0x3c783=>_0x3c783===_0x4bfbe1['model']),_0xb0e83['model']['commandParam']=_0x4bfbe1['model']),_0x1664ce['add'](_0xb0e83);}if(this['_shouldRenderCustomValueOption']()){const _0x2d6cea=this['_getCustomValueOptionDefinition'](_0x377b88);_0x1664ce['add'](_0x2d6cea);}return _0x1664ce;}['_getCustomValueOptionDefinition'](_0x2868c2){const _0x2d1b71=this['editor'],t=_0x2d1b71['t'],_0x2c2734=_0x2d1b71['commands']['get']('lineHeight'),_0x3c621b=_0x2868c2['map'](_0x14050a=>_0x14050a['model']),_0x2d058f={'type':'button','model':new UIModel({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x2d058f['model']['bind']('commandParam')['to'](_0x2c2734,'value'),_0x2d058f['model']['bind']('isOn')['to'](_0x2c2734,'value',_0x55b303=>!!_0x55b303&&!_0x3c621b['includes'](String(_0x55b303))),_0x2d058f['model']['bind']('label')['to'](_0x2c2734,'value',_0x3fbda6=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x3fbda6))),_0x2d058f;}['_registerToolbarComponent']({accessibleLabel:_0x5999b7,options:_0x207308}){const _0x2ea046=this['editor'],_0x1a5653=_0x2ea046['commands']['get']('lineHeight');_0x2ea046['ui']['componentFactory']['add']('lineHeight',_0x7e2ebd=>{const _0x3516a7=createDropdown(_0x7e2ebd);return addListToDropdown(_0x3516a7,_0x207308,{'role':'menu','ariaLabel':_0x5999b7}),_0x3516a7['buttonView']['set']({'label':_0x5999b7,'tooltip':!0x0,'icon':IconLineHeight}),_0x3516a7['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x3516a7['bind']('isEnabled')['to'](_0x1a5653),this['listenTo'](_0x3516a7,'execute',_0x2a3add=>{_0x2ea046['execute'](_0x2a3add['source']['commandName'],{'value':_0x2a3add['source']['commandParam']}),_0x2ea046['editing']['view']['focus']();}),_0x3516a7['once']('change:isOpen',()=>{const _0x47420f=_0x3516a7['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x3516a7,_0x207308,_0x47420f);}),_0x3516a7;});}['_registerMenuBarComponent']({accessibleLabel:_0x1e6798,options:_0x1be5f5}){const _0x10a973=this['editor'],_0x141988=_0x10a973['commands']['get']('lineHeight');_0x10a973['ui']['componentFactory']['add']('menuBar:lineHeight',_0x5bfb37=>{const _0x3fb23e=new MenuBarMenuView(_0x5bfb37);_0x3fb23e['buttonView']['set']({'label':_0x1e6798,'icon':IconLineHeight}),_0x3fb23e['bind']('isEnabled')['to'](_0x141988);const _0x2cdd72=new MenuBarMenuListView(_0x5bfb37);for(const _0x3decc6 of _0x1be5f5){const _0x18e681=new MenuBarMenuListItemView(_0x5bfb37,_0x3fb23e),_0x29bb49=new MenuBarMenuListItemButtonView(_0x5bfb37);_0x29bb49['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x29bb49['bind'](...Object['keys'](_0x3decc6['model']))['to'](_0x3decc6['model']),_0x29bb49['delegate']('execute')['to'](_0x3fb23e),_0x29bb49['on']('execute',()=>{_0x10a973['execute'](_0x3decc6['model']['commandName'],{'value':_0x3decc6['model']['commandParam']}),_0x10a973['editing']['view']['focus']();}),_0x18e681['children']['add'](_0x29bb49),_0x2cdd72['items']['add'](_0x18e681);}return _0x3fb23e['panelView']['children']['add'](_0x2cdd72),this['_attachCustomOptionVisibilityHandler'](_0x3fb23e,_0x1be5f5,_0x2cdd72),_0x3fb23e;});}['_attachCustomOptionVisibilityHandler'](_0x4d3fc5,_0x4d96cd,_0x521567){if(!this['_shouldRenderCustomValueOption']())return;const _0x5e53b8=()=>{if(!_0x4d3fc5['isOpen'])return;_0x521567['items']['last']['isVisible']=Boolean(_0x4d96cd['last']['model']['isOn']);};_0x5e53b8(),_0x4d3fc5['on']('change:isOpen',()=>{_0x5e53b8();});}}class LineHeight extends Plugin{static get['requires'](){return[LineHeightEditing,LineHeightUI];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class MultiLevelListCommand extends _0x142ccd{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x1ef4ba,_0xa4e6bb,_0x577e49){super(_0x1ef4ba),this['defaultListMarkerStyle']=_0xa4e6bb,this['_listDefinitions']=_0x577e49,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1ed810={}){const _0x6e01c9=this['editor']['model'],_0x570029=_0x1ed810['listMarkerStyle']||this['defaultListMarkerStyle'];_0x6e01c9['change'](()=>{const _0x553175=this['_getListTypeFromListMarkerStyle'](_0x570029);if(!_0x553175)return;const _0x335b28=_0x553175+'List';this['editor']['execute'](_0x335b28,{'additionalAttributes':{'listMarkerStyle':_0x570029}});});}['_getValue'](){const _0x279b8b=first(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x279b8b)?_0x279b8b['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x4448a8=this['editor'],_0x5812c6=_0x4448a8['commands']['get']('customNumberedList'),_0x40f198=_0x4448a8['commands']['get']('customBulletedList');return _0x5812c6['isEnabled']||_0x40f198['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x1b155b){const _0x2a8b5a=this['_listDefinitions']['find'](_0x430f64=>_0x430f64['listMarkerStyle']==_0x1b155b);return _0x2a8b5a?_0x2a8b5a['listType']:null;}}class MultiLevelListEditing extends Plugin{['_listDefinitions'];static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return['ListEditing'];}constructor(_0x428dee){super(_0x428dee);const _0x753978=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x5827c3=>_0x5827c3+'.'}]},..._0x753978];}['init'](){const _0x1f97cb=this['editor'],_0x3b2c77=_0x1f97cb['model'],_0x400b6f=_0x1f97cb['editing']['view'],_0x47a370=_0x1f97cb['plugins']['get']('ListEditing');_0x1f97cb['commands']['add']('multiLevelList',new MultiLevelListCommand(_0x1f97cb,'legal',this['_listDefinitions'])),_0x3b2c77['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x3b2c77['schema']['addAttributeCheck']((_0xc3efa3,_0x12d7b2)=>{const _0x2d7642=_0xc3efa3['last'];if('listMarker'==_0x12d7b2||'listMarkerStyle'==_0x12d7b2)return!(!_0x2d7642['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x5678ba=>_0x5678ba['listType']==_0x2d7642['getAttribute']('listType')))&&void 0x0;});for(const _0x1b4a63 of this['_listDefinitions'])_0x1f97cb['conversion']['for']('upcast')['add'](_0x5550c7=>{_0x5550c7['on']('element:'+('customNumbered'==_0x1b4a63['listType']?'ol':'ul'),multiLevelListUpcastConverter(_0x1b4a63,_0x3b2c77['schema']),{'priority':'low'});}),_0x47a370['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x4892a2,_0x3cd823,_0x3f414b){_0x3cd823==_0x1b4a63['listMarkerStyle']?(_0x4892a2['addClass'](['multi-level-list',_0x1b4a63['className']],_0x3f414b),_0x4892a2['setStyle']('list-style-type','none',_0x3f414b)):(_0x4892a2['removeClass'](['multi-level-list',_0x1b4a63['className']],_0x3f414b),_0x4892a2['removeStyle']('list-style-type',_0x3f414b));}}),_0x47a370['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x25cf3a,_0x1679ee,{dataPipeline:_0x1fe4f8}){if(!_0x1679ee['hasAttribute']('listMarker'))return null;if(_0x1679ee['getAttribute']('listType')!=_0x1b4a63['listType']||_0x1679ee['getAttribute']('listMarkerStyle')!=_0x1b4a63['listMarkerStyle'])return null;const _0x22eb75=String(_0x1679ee['getAttribute']('listMarker')),_0x4bc208=this['canInjectMarkerIntoElement'](_0x1679ee);return _0x25cf3a['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x1fe4f8&&{'contenteditable':'false','data-multi-level-list-marker':_0x22eb75}},function(_0x4e47c3){const _0x50dfb0=this['toDomElement'](_0x4e47c3);return _0x4bc208?(_0x50dfb0['appendChild'](createElement(_0x4e47c3,'span',{},_0x1fe4f8?_0x4e47c3['createTextNode'](_0x22eb75):[])),_0x50dfb0['appendChild'](_0x4e47c3['createTextNode']('\u00a0'))):_0x1fe4f8&&_0x50dfb0['appendChild'](_0x4e47c3['createTextNode'](_0x22eb75)),_0x50dfb0;});},'canInjectMarkerIntoElement':_0xf8ec8f=>_0x3b2c77['schema']['checkChild'](_0xf8ec8f,'$text')&&_0x3b2c77['schema']['checkChild'](_0xf8ec8f,'$inlineObject')&&!_0x3b2c77['schema']['isLimit'](_0xf8ec8f)&&_0xf8ec8f['getAttribute']('listType')==_0x1b4a63['listType']&&_0xf8ec8f['getAttribute']('listMarkerStyle')==_0x1b4a63['listMarkerStyle']});_0x1f97cb['conversion']['for']('upcast')['add'](_0x6a2f1c=>{_0x6a2f1c['on']('element:span',multiLevelListMarkerUpcastConverter(_0x400b6f));}),_0x47a370['on']('postFixer',(_0x75eb32,{listNodes:_0x2bff27,writer:_0x5a0f37})=>{const _0x28c47d=[];for(const {node:_0xc6e7f3,previousNodeInList:_0x39de64}of _0x2bff27){const _0x37e5fa=_0xc6e7f3['getAttribute']('listType'),_0x6425ce=_0xc6e7f3['getAttribute']('listMarkerStyle')||('customNumbered'==_0x37e5fa?'legal':void 0x0),_0x322d41=this['_listDefinitions']['find'](_0xfa695b=>_0xfa695b['listType']==_0x37e5fa&&_0xfa695b['listMarkerStyle']==_0x6425ce);if('customNumbered'!=_0x37e5fa&&'customBulleted'!=_0x37e5fa&&(_0xc6e7f3['hasAttribute']('listMarker')&&(_0x5a0f37['removeAttribute']('listMarker',_0xc6e7f3),_0x75eb32['return']=!0x0),_0xc6e7f3['hasAttribute']('listMarkerStyle')&&(_0x5a0f37['removeAttribute']('listMarkerStyle',_0xc6e7f3),_0x75eb32['return']=!0x0)),!_0x322d41){'customBulleted'!=_0x37e5fa||_0x6425ce||(_0x5a0f37['setAttribute']('listType','bulleted',_0xc6e7f3),_0x75eb32['return']=!0x0);continue;}_0xc6e7f3['hasAttribute']('listMarkerStyle')||(_0x5a0f37['setAttribute']('listMarkerStyle',_0x6425ce,_0xc6e7f3),_0x75eb32['return']=!0x0);const _0x32aa58=_0xc6e7f3['getAttribute']('listIndent');if(_0x39de64&&_0x39de64['getAttribute']('listItemId')==_0xc6e7f3['getAttribute']('listItemId'))continue;_0x28c47d['length']=_0x32aa58+0x1,_0x39de64||_0x28c47d[_0x32aa58]?_0x39de64&&_0x39de64['getAttribute']('listType')!=_0x322d41['listType']?_0x28c47d[_0x32aa58]=0x1:_0x28c47d[_0x32aa58]++:_0x28c47d[_0x32aa58]=_0xc6e7f3['getAttribute']('listStart')||0x1;const _0x449365=generateMarker(_0x32aa58,_0x322d41,_0x28c47d);_0xc6e7f3['getAttribute']('listMarker')!=_0x449365&&(_0x5a0f37['setAttribute']('listMarker',_0x449365,_0xc6e7f3),_0x75eb32['return']=!0x0);}});const _0x14714d=_0x1f97cb['editing']['view']['document'];this['listenTo'](_0x14714d,'clipboardOutput',(_0x1416da,_0x479bec)=>{const _0xf21f8d=new Matcher({'name':'span','classes':'multi-level-list__marker'}),_0x5d5dd6=new Matcher({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x33bde1=new ViewUpcastWriter(_0x479bec['content']['document']),_0x531f22=[];for(const _0xde7ca8 of _0x33bde1['createRangeIn'](_0x479bec['content'])['getItems']())_0xde7ca8['is']('element')&&_0xf21f8d['match'](_0xde7ca8)&&_0x531f22['push'](_0xde7ca8),_0xde7ca8['is']('element')&&_0x5d5dd6['match'](_0xde7ca8)&&_0x33bde1['removeStyle']('list-style-type',_0xde7ca8);for(const _0x5996dd of _0x531f22)_0x33bde1['remove'](_0x5996dd);});}['afterInit'](){checkLicense$9(this);}}function generateMarker(_0xc0840,_0x4233bb,_0x3f8dde){let _0x429b0c=_0x4233bb['listMarkers'][_0xc0840%_0x4233bb['listMarkers']['length']];if(void 0x0===_0x429b0c['showMarkerPath']||_0x429b0c['showMarkerPath'])return _0x3f8dde['slice'](0x0,_0xc0840+0x1)['map']((_0x31e19c,_0x2bc9a5)=>(_0x429b0c=_0x4233bb['listMarkers'][_0x2bc9a5%_0x4233bb['listMarkers']['length']],getMarkerString(_0x429b0c['marker'],_0x31e19c)))['join']('');{const _0x4a39f1=_0x3f8dde[_0x3f8dde['length']-0x1];return getMarkerString(_0x429b0c['marker'],_0x4a39f1);}}function getMarkerString(_0x25a6ef,_0xcb452c){return'function'==typeof _0x25a6ef?_0x25a6ef(_0xcb452c):_0x25a6ef;}function multiLevelListUpcastConverter(_0x21c0cb,_0x311c39){return(_0x1f1318,_0x57b54b,_0x592ab0)=>{const _0x141eb4=_0x57b54b['viewItem'];if(_0x57b54b['modelRange']||Object['assign'](_0x57b54b,_0x592ab0['convertChildren'](_0x57b54b['viewItem'],_0x57b54b['modelCursor'])),!_0x592ab0['consumable']['test'](_0x141eb4,{'classes':_0x21c0cb['className']}))return;const _0x39daf3=Array['from'](_0x57b54b['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x4108be=>_0x311c39['checkAttribute'](_0x4108be,'listItemId'));if(!_0x39daf3['length'])return;_0x592ab0['consumable']['consume'](_0x141eb4,{'classes':_0x21c0cb['className']}),_0x592ab0['consumable']['consume'](_0x141eb4,{'classes':'multi-level-list'}),_0x592ab0['consumable']['consume'](_0x141eb4,{'styles':'list-style-type'});const _0x291770=_0x39daf3[0x0]['getAttribute']('listIndent');for(const _0x7d5b3f of _0x39daf3)_0x7d5b3f['getAttribute']('listIndent')==_0x291770&&(_0x592ab0['writer']['setAttribute']('listType',_0x21c0cb['listType'],_0x7d5b3f),_0x592ab0['writer']['setAttribute']('listMarkerStyle',_0x21c0cb['listMarkerStyle'],_0x7d5b3f));};}function multiLevelListMarkerUpcastConverter(_0x1bf63c){return(_0x3b32e0,_0x255d7a,{writer:_0xff8a18,consumable:_0x1893dc})=>{const _0xeaba7c=_0x255d7a['modelCursor'],_0x45fe17=_0xeaba7c['parent'],_0x23bfc5=_0x255d7a['viewItem'];if(_0x1893dc['consume'](_0x23bfc5,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0xeaba7c['isAtStart']&&_0x45fe17['hasAttribute']('listType')&&_0x23bfc5['childCount']>0x0){const _0x580b10=_0x1bf63c['createRangeIn'](_0x23bfc5);let _0x3f22ce='';for(const _0x5496ba of _0x580b10['getItems']())_0x5496ba['is']('$textProxy')?(_0x3f22ce+=_0x5496ba['data']['trim'](),_0x1893dc['consume'](_0x5496ba['textNode'])):_0x1893dc['consume'](_0x5496ba,{'name':!0x0});_0xff8a18['setAttribute']('listMarker',_0x3f22ce['trim'](),_0x45fe17);}};}async function checkLicense$9(_0x4df407){const _0x453d68=_0x8e793a([0x50,0x48,0x51,0x33,0x59,0x55,0x49,0x42,0x72,0x6c,0x30,0x58,0x64,0x6e,0x77,0x47,0x39,0x6b,0x65,0x7a,0x38,0x73,0x66,0x70,0x4d,0x76,0x31,0x79,0x74,0x57,0x46,0x52,0x4e,0x5a,0x4f,0x56,0x35,0x6a,0x4a,0x61,0x71,0x37,0x54,0x63,0x32,0x6f,0x67,0x75,0x62,0x36,0x34,0x78,0x43,0x4b,0x44,0x45,0x41,0x4c,0x53,0x69,0x68,0x6d]),_0x3cc13c=window[_0x8e793a([0x44,0x61,0x74,0x65])][_0x8e793a([0x6e,0x6f,0x77])](),_0x181ae5=_0x4df407[_0x8e793a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x33f013=new window[(_0x8e793a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x119070=>{_0x181ae5[_0x8e793a([0x6f,0x6e,0x63,0x65])](_0x8e793a([0x72,0x65,0x61,0x64,0x79]),_0x119070);}),_0x1e7eba={[_0x8e793a([0x6b,0x74,0x79])]:_0x8e793a([0x45,0x43]),[_0x8e793a([0x75,0x73,0x65])]:_0x8e793a([0x73,0x69,0x67]),[_0x8e793a([0x63,0x72,0x76])]:_0x8e793a([0x50,0x2d,0x32,0x35,0x36]),[_0x8e793a([0x78])]:_0x8e793a([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x8e793a([0x79])]:_0x8e793a([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x8e793a([0x61,0x6c,0x67])]:_0x8e793a([0x45,0x53,0x32,0x35,0x36])},_0x491045=_0x181ae5[_0x8e793a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8e793a([0x67,0x65,0x74])](_0x8e793a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x56271d=await(async function(){let _0x43effb,_0xc6396f=null,_0x4202dd=null;try{if(_0x491045==_0x8e793a([0x47,0x50,0x4c]))return _0x8e793a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43effb=(function(){const _0x1ea1b7=_0x491045[_0x8e793a([0x73,0x70,0x6c,0x69,0x74])](_0x8e793a([0x2e]));if(0x3!=_0x1ea1b7[_0x8e793a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0xb7a6e1=_0x1ea1b7[0x1];return _0x562218(_0xb7a6e1);function _0x562218(_0x144ba6){const _0xd9a71f=_0x5d117d(_0x144ba6);return _0xd9a71f&&_0x5aecc9()?_0xd9a71f:null;function _0x5aecc9(){const _0x11808e=_0xd9a71f[_0x8e793a([0x6a,0x74,0x69])],_0x416906=window[_0x8e793a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11808e[_0x8e793a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11808e[_0x8e793a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x115193={..._0xd9a71f,[_0x8e793a([0x6a,0x74,0x69])]:_0x11808e[_0x8e793a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x11808e[_0x8e793a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x115193[_0x8e793a([0x76,0x63])],_0x8b90f0(_0x115193)==_0x416906;}}}()),!_0x43effb)return _0x8e793a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x43effb[_0x8e793a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4202dd=function(_0x38dadc,_0x1a5530){return new window[(_0x8e793a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dd9b9=>{if(_0x379c3d())return _0x4dd9b9(_0x8e793a([0x56,0x61,0x6c,0x69,0x64]));_0x513345(),_0x181ae5[_0x8e793a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8e793a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f043c=!0x1;const _0x64f1e6=uid();function _0x35c801(_0xd67c40){return!!_0xd67c40&&(typeof _0xd67c40===_0x8e793a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd67c40===_0x8e793a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd67c40[_0x8e793a([0x74,0x68,0x65,0x6e])]===_0x8e793a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd67c40[_0x8e793a([0x63,0x61,0x74,0x63,0x68])]===_0x8e793a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5f1f4c(_0x365306){_0x19201b(_0x365306)[_0x8e793a([0x74,0x68,0x65,0x6e])](_0x8d51a6=>{if(!_0x8d51a6||_0x8d51a6[_0x8e793a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8e793a([0x6f,0x6b]))return _0x8e793a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b1a1b(_0x8b90f0(_0x64f1e6+_0x1a5530))!=_0x8d51a6[_0x8e793a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8e793a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8e793a([0x56,0x61,0x6c,0x69,0x64]);})[_0x8e793a([0x74,0x68,0x65,0x6e])](_0x3a5939=>(_0x3f7821(),_0x3a5939),()=>{const _0x4225d3=_0x3abcd8();return null==_0x4225d3?(_0x3f7821(),_0x8e793a([0x56,0x61,0x6c,0x69,0x64])):_0x8e793a(_0x3cc13c-_0x4225d3>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8e793a([0x74,0x68,0x65,0x6e])](_0x4dd9b9)[_0x8e793a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4dd9b9(_0x8e793a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5c42b4=0x36ee80;function _0x3f7821(){const _0x531116=_0x8e793a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b1a1b(_0x8b90f0(_0x38dadc)),_0x5bd084=_0x550cf0(_0x5b1a1b(window[_0x8e793a([0x4d,0x61,0x74,0x68])][_0x8e793a([0x63,0x65,0x69,0x6c])](_0x3cc13c/_0x5c42b4)));window[_0x8e793a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8e793a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x531116,_0x5bd084);}function _0x3abcd8(){const _0x461ccb=_0x8e793a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b1a1b(_0x8b90f0(_0x38dadc)),_0x5ce47a=window[_0x8e793a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8e793a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x461ccb);return _0x5ce47a?window[_0x8e793a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x550cf0(_0x5ce47a),0x10)*_0x5c42b4:null;}function _0x19201b(_0x39b29f){return new window[(_0x8e793a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd02df3,_0x4b2bf1)=>{_0x39b29f[_0x8e793a([0x74,0x68,0x65,0x6e])](_0xd02df3,_0x4b2bf1),window[_0x8e793a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b2bf1,0x1d4c0);});}}_0x181ae5[_0x8e793a([0x6f,0x6e])](_0x8e793a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc21df4,_0x5989b4)=>{if(_0x5989b4[0x0]!=_0x38dadc)return _0x4dd9b9(_0x8e793a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5989b4[0x1]={..._0x5989b4[0x1],[_0x8e793a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x64f1e6};},{[_0x8e793a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8e793a([0x68,0x69,0x67,0x68])}),_0x181ae5[_0x8e793a([0x6f,0x6e])](_0x8e793a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a641e=>{_0x35c801(_0x3a641e[_0x8e793a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f043c=!0x0,_0x5f1f4c(_0x3a641e[_0x8e793a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8e793a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8e793a([0x6c,0x6f,0x77])}),_0x33f013[_0x8e793a([0x74,0x68,0x65,0x6e])](()=>{_0x1f043c||_0x4dd9b9(_0x8e793a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x379c3d(){return _0x181ae5[_0x8e793a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8e793a([0x76,0x69,0x65,0x77])][_0x8e793a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8e793a([0x61,0x75,0x74,0x6f]);}function _0x513345(){_0x181ae5[_0x8e793a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8e793a([0x76,0x69,0x65,0x77])][_0x8e793a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8e793a([0x61,0x75,0x74,0x6f]);}}(_0x43effb[_0x8e793a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43effb[_0x8e793a([0x6a,0x74,0x69])]));const _0x97963b=await(async function(){let _0x38dd85=!0x0;try{const _0x337a2a=_0x491045[_0x8e793a([0x73,0x70,0x6c,0x69,0x74])](_0x8e793a([0x2e])),[_0x4a5057,_0x494f3f,_0x34ddc2]=_0x337a2a;return _0x3cb18a(_0x4a5057),await _0x1528ef(_0x4a5057,_0x494f3f,_0x34ddc2),_0x38dd85;}catch{return!0x1;}function _0x3cb18a(_0x26e1e3){const _0x25992e=_0x5d117d(_0x26e1e3);_0x25992e&&_0x25992e[_0x8e793a([0x61,0x6c,0x67])]==_0x8e793a([0x45,0x53,0x32,0x35,0x36])||(_0x38dd85=!0x1);}async function _0x1528ef(_0x10340,_0x310eec,_0x33accb){const _0x44e04a=window[_0x8e793a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8e793a([0x66,0x72,0x6f,0x6d])](_0x51cb43(_0x33accb),_0x1dc2ff=>_0x1dc2ff[_0x8e793a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d1da9=new window[(_0x8e793a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8e793a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x10340+_0x8e793a([0x2e])+_0x310eec),_0x1e87e8=window[_0x8e793a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8e793a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e87e8)return;const _0x11c1b8=await _0x1e87e8[_0x8e793a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8e793a([0x6a,0x77,0x6b]),_0x1e7eba,{[_0x8e793a([0x6e,0x61,0x6d,0x65])]:_0x8e793a([0x45,0x43,0x44,0x53,0x41]),[_0x8e793a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8e793a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8e793a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e87e8[_0x8e793a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8e793a([0x6e,0x61,0x6d,0x65])]:_0x8e793a([0x45,0x43,0x44,0x53,0x41]),[_0x8e793a([0x68,0x61,0x73,0x68])]:{[_0x8e793a([0x6e,0x61,0x6d,0x65])]:_0x8e793a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11c1b8,_0x44e04a,_0x5d1da9)||(_0x38dd85=!0x1);}}());return _0x97963b?(function(){const _0x127c5e=_0x43effb[_0x8e793a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x127c5e)return!0x1;if(_0x127c5e[_0x8e793a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8e793a([0x2a])))return!0x0;if(_0x127c5e[_0x8e793a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8e793a([0x4d,0x4c,0x4c])))return!0x0;return!0x1;}())?(function(){const _0x51c5e6=[_0x8e793a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8e793a([0x74,0x72,0x69,0x61,0x6c])][_0x8e793a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43effb[_0x8e793a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3cc13c/0x3e8:0x68f03580;return _0x43effb[_0x8e793a([0x65,0x78,0x70])]<_0x51c5e6;}())?_0x8e793a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x140418=_0x43effb[_0x8e793a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x140418||0x0==_0x140418[_0x8e793a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x369312}=new URL(window[_0x8e793a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x140418[_0x8e793a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x369312))return!0x0;const _0x9edf84=_0x369312[_0x8e793a([0x73,0x70,0x6c,0x69,0x74])](_0x8e793a([0x2e]));return _0x140418[_0x8e793a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x73f61b=>_0x73f61b[_0x8e793a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8e793a([0x2a])))[_0x8e793a([0x6d,0x61,0x70])](_0x1d1e4d=>_0x1d1e4d[_0x8e793a([0x73,0x70,0x6c,0x69,0x74])](_0x8e793a([0x2e])))[_0x8e793a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ae4d4=>_0x5ae4d4[_0x8e793a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x9edf84[_0x8e793a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8e793a([0x6d,0x61,0x70])](_0x436292=>Array(_0x9edf84[_0x8e793a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x436292[_0x8e793a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8e793a([0x66,0x69,0x6c,0x6c])](_0x436292[0x0]===_0x8e793a([0x2a])?_0x8e793a([0x2a]):'')[_0x8e793a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x436292))[_0x8e793a([0x73,0x6f,0x6d,0x65])](_0x49b310=>_0x9edf84[_0x8e793a([0x65,0x76,0x65,0x72,0x79])]((_0x486c9f,_0x2da98e)=>_0x49b310[_0x2da98e]===_0x486c9f||_0x49b310[_0x2da98e]===_0x8e793a([0x2a])));}())?(_0x43effb[_0x8e793a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8e793a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc6396f=_0xbfef7f(_0x8e793a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43effb[_0x8e793a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8e793a([0x74,0x72,0x69,0x61,0x6c])&&(_0xc6396f=_0xbfef7f(_0x8e793a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0xc6396f&&_0x4202dd)return new window[(_0x8e793a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x194994,_0x482215)=>{_0xc6396f[_0x8e793a([0x74,0x68,0x65,0x6e])](_0x194994,_0x482215),_0x4202dd[_0x8e793a([0x74,0x68,0x65,0x6e])](_0x61f857=>{_0x61f857!=_0x8e793a([0x56,0x61,0x6c,0x69,0x64])&&_0x194994(_0x61f857);},_0x482215);});return _0xc6396f||_0x4202dd||_0x8e793a([0x56,0x61,0x6c,0x69,0x64]);}())):_0x8e793a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8e793a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8e793a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x8e793a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0xbfef7f(_0x224725){const _0x1bc06b=[new window[(_0x8e793a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35ce96=>setTimeout(_0x35ce96,0x93ecc)),_0x33f013[_0x8e793a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8e793a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9dbea9=>{let _0x12ee15=0x0;_0x181ae5[_0x8e793a([0x6d,0x6f,0x64,0x65,0x6c])][_0x8e793a([0x6f,0x6e])](_0x8e793a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x220e7a,_0x57a979)=>{_0x57a979[0x0][_0x8e793a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x12ee15++,0x1f8==_0x12ee15&&(_0x9dbea9(),_0x220e7a[_0x8e793a([0x6f,0x66,0x66])]());});}))];return window[_0x8e793a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8e793a([0x72,0x61,0x63,0x65])](_0x1bc06b)[_0x8e793a([0x74,0x68,0x65,0x6e])](()=>_0x224725);}function _0x5d117d(_0xeb17e8){return _0xeb17e8[_0x8e793a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8e793a([0x65,0x79]))?JSON[_0x8e793a([0x70,0x61,0x72,0x73,0x65])](_0x51cb43(_0xeb17e8)):null;}function _0x51cb43(_0x20a1ef){return window[_0x8e793a([0x61,0x74,0x6f,0x62])](_0x20a1ef[_0x8e793a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8e793a([0x2b]))[_0x8e793a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8e793a([0x2f])));}function _0x8b90f0(_0x5f23a5){let _0xce6a6e=0x1505;function _0x3ae3a5(_0xd9dfc0){for(let _0x48a281=0x0;_0x48a281<_0xd9dfc0[_0x8e793a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x48a281++){const _0x396b5f=_0xd9dfc0[_0x8e793a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x48a281);_0xce6a6e=(_0xce6a6e<<0x5)+_0xce6a6e+_0x396b5f,_0xce6a6e&=_0xce6a6e;}}return function _0x1e0c13(_0x3000e6){Array[_0x8e793a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3000e6)?_0x3000e6[_0x8e793a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e0c13):_0x3000e6&&typeof _0x3000e6==_0x8e793a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8e793a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3000e6)[_0x8e793a([0x73,0x6f,0x72,0x74])]()[_0x8e793a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17d830,_0x42d414])=>{_0x3ae3a5(_0x17d830),_0x1e0c13(_0x42d414);}):_0x3ae3a5(window[_0x8e793a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3000e6));}(_0x5f23a5),_0xce6a6e>>>0x0;}function _0x5b1a1b(_0x4e7185){return _0x4e7185[_0x8e793a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8e793a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8e793a([0x30]));}function _0x550cf0(_0x41d383){return _0x41d383[_0x8e793a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8e793a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8e793a([0x6a,0x6f,0x69,0x6e])]('');}function _0x31ac7f(){}function _0x8e793a(_0xefe987){return _0xefe987['map'](_0x14eb76=>String['fromCharCode'](_0x14eb76))['join']('');}!function(_0x19d9fa){const _0xa7dd18=(function(){const _0x34828b=window[_0x8e793a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8e793a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8e793a([0x6e,0x6f,0x77])]())[_0x8e793a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8e793a([0x2e]),'');let _0x4729c6=_0x8e793a([0x50]);for(let _0xcc5b9e=0x0;_0xcc5b9e<_0x34828b[_0x8e793a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcc5b9e+=0x2){let _0x163a01=window[_0x8e793a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34828b[_0x8e793a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcc5b9e,_0xcc5b9e+0x2));_0x163a01>=_0x453d68[_0x8e793a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x163a01-=_0x453d68[_0x8e793a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4729c6+=_0x453d68[_0x163a01];}return _0x4729c6;}());_0x181ae5[_0xa7dd18]=_0x8e793a([0x6d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x19d9fa,_0x19d9fa!=_0x8e793a([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x33f013,_0x181ae5[_0x8e793a([0x6d,0x6f,0x64,0x65,0x6c])][_0x8e793a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x31ac7f,_0x181ae5[_0x8e793a([0x6d,0x6f,0x64,0x65,0x6c])][_0x8e793a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x31ac7f,_0x181ae5[_0x8e793a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8e793a([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x56271d);}function getTranslation$9(_0x568a8d,_0x185cf3){const _0x5801c9=_0x568a8d['t'],t=_0x568a8d['t'];switch(_0x185cf3){case'Start\x20at':return _0x5801c9('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x5801c9('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x5801c9('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x5801c9('List\x20properties');case'Multi-level\x20List':return t('Multi-level\x20List');case'Multi-level\x20list\x20styles\x20toolbar':return t('Multi-level\x20list\x20styles\x20toolbar');default:return _0x185cf3;}}class MultiLevelListView extends View{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new FocusTracker();['keystrokes']=new KeystrokeHandler();['focusables']=new ViewCollection();['focusCycler'];constructor(_0xb0643b,{enabledProperties:_0x53f619,styleButtonViews:_0x3f5bf9,styleGridAriaLabel:_0x2ef263}){super(_0xb0643b);const _0x2b4d0b=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x53f619['styles']?(this['stylesView']=this['_createStylesView'](_0x3f5bf9,_0x2ef263),this['children']['add'](this['stylesView'])):_0x2b4d0b['push']('ck-multi-level-list-properties_without-styles'),_0x53f619['startIndex']&&(this['_addListPropertyViews'](_0x53f619),_0x2b4d0b['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x2b4d0b},'children':this['children']});}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']),this['startIndexFieldView']&&(this['focusables']['add'](this['children']['last']['buttonView']),this['focusTracker']['add'](this['children']['last']['buttonView']['element']));for(const _0x22c22a of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x22c22a['element']);addKeyboardHandlingForGrid({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0xd4e5e['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x17786c=_0x1730a1=>_0x1730a1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x17786c),this['keystrokes']['set']('arrowleft',_0x17786c),this['keystrokes']['set']('arrowup',_0x17786c),this['keystrokes']['set']('arrowdown',_0x17786c);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x358aa7,_0xeba0fe){const _0x19d512=new View(this['locale']);return _0x19d512['children']=_0x19d512['createCollection'](),_0x19d512['children']['addMany'](_0x358aa7),_0x19d512['setTemplate']({'tag':'div','attributes':{'aria-label':_0xeba0fe,'class':['ck','ck-multi-level-list-styles']},'children':_0x19d512['children']}),_0x19d512['children']['delegate']('execute')['to'](this),_0x19d512['focus']=function(){this['children']['first']['focus']();},_0x19d512['focusTracker']=new FocusTracker(),_0x19d512['keystrokes']=new KeystrokeHandler(),_0x19d512['render'](),_0x19d512['keystrokes']['listenTo'](_0x19d512['element']),_0x19d512;}['_addListPropertyViews'](_0x5ec636){const _0x408733=[];_0x5ec636['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x408733['push'](this['startIndexFieldView'])),_0x5ec636['styles']?(this['additionalPropertiesCollapsibleView']=new CollapsibleView(this['locale'],_0x408733),this['additionalPropertiesCollapsibleView']['set']({'label':getTranslation$9(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x408733,'isEnabled',(..._0x230ed0)=>_0x230ed0['some'](_0xe58e99=>_0xe58e99)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0xa3474,_0x1eb15f,_0x3fe1aa)=>{_0x3fe1aa||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x408733);}['_createStartIndexField'](){const _0x5c89a9=new LabeledFieldView(this['locale'],createLabeledInputNumber);return _0x5c89a9['set']({'label':getTranslation$9(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x5c89a9['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5c89a9['fieldView']['on']('input',()=>{const _0x16ef55=_0x5c89a9['fieldView']['element'],_0x2b6436=_0x16ef55['valueAsNumber'];Number['isNaN'](_0x2b6436)?_0x5c89a9['errorText']=getTranslation$9(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x16ef55['checkValidity']()?this['fire']('listStart',{'startIndex':_0x2b6436}):_0x5c89a9['errorText']=getTranslation$9(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x5c89a9;}}class MultiLevelListUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x297ddf=this['editor'];_0x297ddf['ui']['componentFactory']['add']('multiLevelList',getViewCreator({'editor':_0x297ddf,'parentCommandName':'multiLevelList','buttonLabel':getTranslation$9(_0x297ddf['locale'],'Multi-level\x20List'),'buttonIcon':IconMultiLevelList,'styleGridAriaLabel':getTranslation$9(_0x297ddf['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x297ddf['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x59f280=_0x297ddf['commands']['get']('multiLevelList'),_0x3926ae=new MenuBarMenuListItemButtonView(_0x297ddf['locale']);return _0x3926ae['set']({'label':getTranslation$9(_0x297ddf['locale'],'Multi-level\x20List'),'icon':IconMultiLevelList}),_0x3926ae['bind']('isEnabled')['to'](_0x59f280),_0x3926ae['bind']('isOn')['to'](_0x59f280,'value',_0xb6f772=>!!_0xb6f772),_0x3926ae['on']('execute',()=>{_0x297ddf['execute']('multiLevelList'),_0x297ddf['editing']['view']['focus']();}),_0x3926ae;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x488a13=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3eb2a7;for(const _0x4f675e in _0x488a13){const _0x3467ae=_0x4f675e,_0x4bb342=_0x488a13[_0x3467ae];if('multiLevelListLicenseKeyValid'==_0x4bb342||'multiLevelListLicenseKeyInvalid'==_0x4bb342||'multiLevelListLicenseKeyExpired'==_0x4bb342||'multiLevelListLicenseKeyDomainLimit'==_0x4bb342||'multiLevelListLicenseKeyNotAllowed'==_0x4bb342||'multiLevelListLicenseKeyEvaluationLimit'==_0x4bb342||'multiLevelListLicenseKeyTrialLimit'==_0x4bb342||'multiLevelListLicenseKeyUsageLimit'==_0x4bb342){delete _0x488a13[_0x3467ae],_0x3eb2a7=_0x4bb342,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x3eb2a7&&_0x488a13['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x3eb2a7&&_0x488a13['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x3eb2a7&&_0x488a13['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x3eb2a7&&_0x488a13['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x3eb2a7&&_0x488a13['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyTrialLimit'==_0x3eb2a7&&_0x488a13['_showLicenseError']('trialLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x3eb2a7&&_0x488a13['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getViewCreator({editor:_0x4fb2b9,parentCommandName:_0x8effe,buttonLabel:_0x171306,buttonIcon:_0x5672fa,styleGridAriaLabel:_0x36f72f,styleDefinitions:_0x25d37d}){const _0x38d1a5=_0x4fb2b9['commands']['get'](_0x8effe),_0x109f09=_0x4fb2b9['config']['get']('list.properties')||{},_0x1c32e2=_0x4fb2b9['plugins']['has']('ListProperties'),_0x5375a5=_0x109f09['startIndex'];return _0x1c32e2&&_0x5375a5?_0x21769c=>{const _0x4a7685=createDropdown(_0x21769c,SplitButtonView),_0x1ddcef=_0x4a7685['buttonView'];return _0x4a7685['bind']('isEnabled')['to'](_0x38d1a5),_0x4a7685['class']='ck-list-styles-dropdown',_0x1ddcef['on']('execute',()=>{_0x4fb2b9['execute'](_0x8effe),_0x4fb2b9['editing']['view']['focus']();}),_0x1ddcef['set']({'label':_0x171306,'icon':_0x5672fa,'tooltip':!0x0,'isToggleable':!0x0}),_0x1ddcef['bind']('isOn')['to'](_0x38d1a5,'value',_0x514112=>!!_0x514112),_0x4a7685['once']('change:isOpen',()=>{const _0x756a9f=createListPropertiesView({'editor':_0x4fb2b9,'dropdownView':_0x4a7685,'styleGridAriaLabel':_0x36f72f,'styleDefinitions':_0x25d37d});_0x4a7685['panelView']['children']['add'](_0x756a9f);}),_0x4a7685['on']('execute',()=>{_0x4fb2b9['editing']['view']['focus']();}),_0x4a7685;}:_0x15d5a6=>{const _0x355d39=new ButtonView(_0x15d5a6);return _0x355d39['set']({'label':_0x171306,'icon':_0x5672fa,'tooltip':!0x0,'isToggleable':!0x0}),_0x355d39['bind']('isOn')['to'](_0x38d1a5,'value',_0x319ed7=>!!_0x319ed7),_0x355d39['on']('execute',()=>{_0x4fb2b9['execute'](_0x8effe),_0x4fb2b9['editing']['view']['focus']();}),_0x355d39;};}function createListPropertiesView({editor:_0x23ac46,dropdownView:_0x589339,styleDefinitions:_0x4c50c9,styleGridAriaLabel:_0x5ab078}){const _0x4b1b57=_0x23ac46['locale'],_0x501b14=_0x23ac46['config']['get']('list.properties');_0x501b14['reversed']=!0x1,_0x4c50c9['length']||(_0x501b14['styles']=!0x1);const _0x1e9bf0=new MultiLevelListView(_0x4b1b57,{'styleGridAriaLabel':_0x5ab078,'enabledProperties':_0x501b14,'styleButtonViews':null});if(_0x501b14['startIndex']){const _0xf3125b=_0x23ac46['commands']['get']('listStart');_0x1e9bf0['startIndexFieldView']['bind']('isEnabled')['to'](_0xf3125b),_0x1e9bf0['startIndexFieldView']['fieldView']['bind']('value')['to'](_0xf3125b),_0x1e9bf0['on']('listStart',(_0x44ae5e,_0xac06aa)=>_0x23ac46['execute']('listStart',_0xac06aa));}return _0x1e9bf0['delegate']('execute')['to'](_0x589339),_0x1e9bf0;}class MultiLevelList extends Plugin{static get['pluginName'](){return'MultiLevelList';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[MultiLevelListEditing,MultiLevelListUI];}}class InsertMergeFieldCommand extends _0x142ccd{['refresh'](){const _0x2d4392=this['editor']['model'],_0x1a619f=_0x2d4392['schema']['checkChild'](_0x2d4392['document']['selection']['focus'],'mergeField');this['isEnabled']=_0x1a619f;}['execute'](_0x2dbdb2){if(!_0x2dbdb2||'string'!=typeof _0x2dbdb2)return;const _0x3f9f41=this['editor']['model'];_0x3f9f41['change'](_0x4723f5=>{_0x3f9f41['deleteContent'](_0x3f9f41['document']['selection']);const _0x2879e6=_0x4723f5['createElement']('mergeField',{'id':_0x2dbdb2});for(const [_0x4fd69b,_0x141779]of _0x3f9f41['document']['selection']['getAttributes']())_0x3f9f41['schema']['checkAttribute'](_0x2879e6,_0x4fd69b)&&_0x4723f5['setAttribute'](_0x4fd69b,_0x141779,_0x2879e6);_0x3f9f41['insertContent'](_0x2879e6,_0x3f9f41['document']['selection'],0x0,{'setSelection':'after'});});}}class InsertMergeFieldBlockCommand extends _0x142ccd{['refresh'](){const _0x10710a=this['editor']['model'],_0x31b733=_0x10710a['document']['selection'];this['isEnabled']=isAllowedInParent(_0x31b733,_0x10710a);}['execute'](_0x3a2615,_0x53c888){if(!_0x3a2615||'string'!=typeof _0x3a2615)return;const _0x390a29=this['editor']['model'];_0x390a29['change'](_0xf967b5=>{const _0x113138=_0xf967b5['createElement']('mergeFieldBlock',{'id':_0x3a2615});_0x390a29['insertObject'](_0x113138,_0x390a29['document']['selection'],null,{'setSelection':'on','findOptimalPosition':!0x1===_0x53c888?void 0x0:'auto'});});}}function isAllowedInParent(_0x13a06a,_0x38af5a){let _0xc9c2bf=findOptimalInsertionRange(_0x13a06a,_0x38af5a)['start']['parent'];return _0xc9c2bf['isEmpty']&&!_0x38af5a['schema']['isLimit'](_0xc9c2bf)&&(_0xc9c2bf=_0xc9c2bf['parent']),_0x38af5a['schema']['checkChild'](_0xc9c2bf,'mergeFieldBlock');}class InsertMergeFieldImageCommand extends _0x142ccd{constructor(_0x4ce07a){super(_0x4ce07a),this['bind']('isEnabled')['to'](this['editor']['commands']['get']('insertImage'));}['execute'](_0x23ae56,_0x3e311c){if(!_0x23ae56||'string'!=typeof _0x23ae56)return;const _0x53efa7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x265104=_0x53efa7['getMergeFieldWidth'](_0x23ae56),_0x49a169=_0x53efa7['getMergeFieldHeight'](_0x23ae56);this['editor']['execute']('insertImage',{'source':{'src':_0x53efa7['wrapInAffixes'](_0x23ae56),'width':_0x265104,'height':_0x49a169},'breakBlock':_0x3e311c&&_0x3e311c['breakBlock']});}}class PreviewMergeFieldsCommand extends _0x142ccd{constructor(_0x2af061){super(_0x2af061);const _0x40398f=this['editor']['plugins']['get']('MergeFieldsEditing');this['bind']('value')['to'](_0x40398f,'previewMode'),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x29f639){this['editor']['plugins']['get']('MergeFieldsEditing')['previewMode']=_0x29f639;}}const DEFAULT_MERGE_FIELD_BLOCK_HEIGHT=0x78,DEFAULT_MERGE_FIELD_IMAGE_HEIGHT=0x190,DEFAULT_MERGE_FIELD_IMAGE_WIDTH=0x190,ALLOWED_IN_IDS=/^[a-zA-Z0-9_.-]+$/;class MergeFieldsEditing extends Plugin{['availablePreviewModes'];['flattenedMergeFieldDefinitions']=[];['_mergeFieldElements'];['_mergeFieldPrefix'];['_mergeFieldSuffix'];['_mergeFieldRegExp'];['_shouldPreviewHtmlValues'];static get['requires'](){return['ImageUtils','ImageEditing'];}static get['pluginName'](){return'MergeFieldsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b0c33){super(_0x5b0c33),_0x5b0c33['config']['define']('mergeFields.previewModes',['$labels','$defaultValues','$dataSets']),_0x5b0c33['config']['define']('mergeFields.dataSets',[]),_0x5b0c33['config']['define']('mergeFields.definitions',[]),_0x5b0c33['config']['define']('mergeFields.prefix','{{'),_0x5b0c33['config']['define']('mergeFields.suffix','}}'),_0x5b0c33['config']['define']('mergeFields.previewHtmlValues',!0x1),_0x5b0c33['config']['define']('mergeFields.sanitizeHtml',_0x3c1566=>(logWarning('merge-fields-provide-sanitize-function'),{'html':_0x3c1566,'hasChanged':!0x1})),this['_mergeFieldPrefix']=_0x5b0c33['config']['get']('mergeFields.prefix'),this['_mergeFieldSuffix']=_0x5b0c33['config']['get']('mergeFields.suffix'),this['_shouldPreviewHtmlValues']=_0x5b0c33['config']['get']('mergeFields.previewHtmlValues'),this['flattenedMergeFieldDefinitions']=this['_getFlattenedMergeFieldDefinitions'](),this['_validateConfig']();const _0x20fde9='\x5c'+this['_mergeFieldPrefix']['split']('')['join']('\x5c'),_0x1587f3='\x5c'+this['_mergeFieldSuffix']['split']('')['join']('\x5c');this['_mergeFieldRegExp']=new RegExp('('+_0x20fde9+'[^'+(_0x20fde9+_0x1587f3)+'\x20]+'+_0x1587f3+')','g'),this['availablePreviewModes']=this['_getAvailablePreviewModes']();const _0x288727=_0x5b0c33['config']['get']('mergeFields.initialPreviewMode')||this['availablePreviewModes'][0x0];this['_validatePreviewMode'](_0x288727),this['set']('previewMode',_0x288727),this['_mergeFieldElements']=new Set();}['init'](){const _0x1707f9=this['editor'];_0x1707f9['commands']['add']('insertMergeField',new InsertMergeFieldCommand(_0x1707f9)),_0x1707f9['commands']['add']('insertMergeFieldBlock',new InsertMergeFieldBlockCommand(_0x1707f9)),_0x1707f9['commands']['add']('insertMergeFieldImage',new InsertMergeFieldImageCommand(_0x1707f9)),_0x1707f9['commands']['add']('previewMergeFields',new PreviewMergeFieldsCommand(_0x1707f9)),this['_defineSchema'](),this['_defineConverters'](),this['_registerConversionPostFixer'](),this['listenTo'](this['editor']['editing']['view']['document'],'imageLoaded',this['_setupTooltipsTogglingForImageMergeField']),this['on']('change:previewMode',(_0x1e1165,_0x23d401,_0x4237ab)=>{this['_validatePreviewMode'](_0x4237ab),this['refreshMergeFields']();}),this['listenTo'](_0x1707f9['model']['document'],'change:data',()=>{this['_trackAddedMergeFields']();}),_0x1707f9['editing']['mapper']['on']('viewToModelPosition',viewToModelPositionOutsideModelElement(_0x1707f9['model'],_0x2e1147=>_0x2e1147['hasClass']('ck-merge-field'))),_0x1707f9['editing']['mapper']['on']('viewToModelPosition',viewToModelPositionOutsideModelElement(_0x1707f9['model'],_0x4e43a9=>_0x4e43a9['hasClass']('ck-merge-field-block'))),_0x1707f9['editing']['view']['domConverter']['registerInlineObjectMatcher']({'name':'span','classes':['ck-merge-field']});}['afterInit'](){this['_disableCommandOnMergeFields']('ckboxImageEdit'),this['_disableCommandOnMergeFields']('uploadcareImageEdit'),checkLicense$8(this);}['isMergeField'](_0x1deacf){return'mergeField'===_0x1deacf['name']||'mergeFieldBlock'===_0x1deacf['name']||!!('imageBlock'===_0x1deacf['name']||'imageInline'===_0x1deacf['name']&&_0x1deacf['getAttribute']('src'))&&!!_0x1deacf['getAttribute']('src')['match'](this['_mergeFieldRegExp']);}['getDefaultValues'](){const _0x4c646c={},_0x5b17e0=this['getMergeFieldsIds']();for(const _0x33ca74 of _0x5b17e0)_0x4c646c[_0x33ca74]=this['getMergeFieldDefaultValue'](_0x33ca74);return _0x4c646c;}['getDataSetValues'](_0x375502,_0x31c149=!0x1){const _0x51aa49={},_0x98c743=this['getMergeFieldsIds']();for(const _0x5103c3 of _0x98c743){let _0x97b81f=this['getMergeFieldValue'](_0x5103c3,_0x375502);null===_0x97b81f&&_0x31c149&&(_0x97b81f=this['getMergeFieldDefaultValue'](_0x5103c3)),_0x51aa49[_0x5103c3]=_0x97b81f;}return _0x51aa49;}['getLabel'](_0xb62840){const _0x4819ea=this['getDefinition'](_0xb62840);return _0x4819ea&&_0x4819ea['label']?_0x4819ea['label']:null;}['getMergeFieldDefaultValue'](_0x3dc84e){const _0x2a9574=this['getDefinition'](_0x3dc84e);if(!_0x2a9574||void 0x0===_0x2a9574['defaultValue'])return null;const _0x273b2c='function'==typeof _0x2a9574['defaultValue']?_0x2a9574['defaultValue'](this['editor']):_0x2a9574['defaultValue'];return String(_0x273b2c);}['getMergeFieldValue'](_0x15f6eb,_0x351a21){const _0x1c8a22=this['editor']['config']['get']('mergeFields.dataSets')['find'](_0x39dea2=>_0x39dea2['id']===_0x351a21);if(!_0x1c8a22)throw new CKEditorError('merge-fields-data-set-not-found',null);const _0x1a0be6=_0x1c8a22['values'][_0x15f6eb];if(void 0x0===_0x1a0be6)return null;const _0x2e6df6='function'==typeof _0x1a0be6?_0x1a0be6(this['editor']):_0x1a0be6;return String(_0x2e6df6);}['getMergeFieldType'](_0x2c43db){if('string'!=typeof _0x2c43db){const _0x2a290c=_0x2c43db;return'mergeField'===_0x2a290c['name']?'text':'mergeFieldBlock'===_0x2a290c['name']?'block':'imageBlock'!==_0x2a290c['name']&&'imageInline'!==_0x2a290c['name']||!_0x2a290c['getAttribute']('src')?null:_0x2a290c['getAttribute']('src')['match'](this['_mergeFieldRegExp'])?'image':null;}const _0x100473=this['getDefinition'](_0x2c43db);return _0x100473&&_0x100473['type']?_0x100473['type']:'text';}['getMergeFieldHeight'](_0x257cfc){const _0x48e38e=this['getDefinition'](_0x257cfc);return _0x48e38e&&'block'===_0x48e38e['type']?_0x48e38e['height']||DEFAULT_MERGE_FIELD_BLOCK_HEIGHT:_0x48e38e&&'image'===_0x48e38e['type']?_0x48e38e['height']||DEFAULT_MERGE_FIELD_IMAGE_HEIGHT:null;}['getMergeFieldWidth'](_0x5aecba){const _0x3754fd=this['getDefinition'](_0x5aecba);return _0x3754fd&&'image'===_0x3754fd['type']?_0x3754fd['width']||DEFAULT_MERGE_FIELD_IMAGE_WIDTH:null;}['getDocumentMergeFieldsIds'](){const _0x421bc8=new Set();for(const _0x1dc2e7 of this['_mergeFieldElements'])'$graveyard'!==_0x1dc2e7['root']['rootName']&&('image'===this['getMergeFieldType'](_0x1dc2e7)?_0x421bc8['add'](this['unwrapAffixes'](_0x1dc2e7['getAttribute']('src'))):_0x421bc8['add'](_0x1dc2e7['getAttribute']('id')));return Array['from'](_0x421bc8);}['getMergeFieldsIds'](){const _0x13a59b=this['flattenedMergeFieldDefinitions']['map'](_0x59722e=>_0x59722e['id']),_0x3b1288=this['getDocumentMergeFieldsIds']();return Array['from'](new Set([..._0x13a59b,..._0x3b1288]));}['getDefinition'](_0x19224e){return this['flattenedMergeFieldDefinitions']['find'](_0x20f822=>_0x20f822['id']===_0x19224e)||null;}['refreshMergeFields'](){this['_mergeFieldElements']['forEach'](_0x403048=>{'$graveyard'!==_0x403048['root']['rootName']&&this['editor']['editing']['reconvertItem'](_0x403048);});}['wrapInAffixes'](_0x54d0e9){return this['_mergeFieldPrefix']+_0x54d0e9+this['_mergeFieldSuffix'];}['unwrapAffixes'](_0x775797){return _0x775797['slice'](this['_mergeFieldPrefix']['length'],_0x775797['length']-this['_mergeFieldSuffix']['length']);}['_getFlattenedMergeFieldDefinitions'](){const _0x25a750=new Set(),_0x12e54c=this['editor'];return _0x12e54c['config']['get']('mergeFields.definitions')['reduce']((_0x14e89c,_0x5b9f44)=>{if('groupId'in _0x5b9f44){if(_0x25a750['has'](_0x5b9f44['groupId']))throw new CKEditorError('merge-fields-duplicate-group-id',_0x12e54c,{'duplicateId':_0x5b9f44['groupId']});_0x25a750['add'](_0x5b9f44['groupId']);}return'groupId'in _0x5b9f44?function(_0x4128d2,_0x287205){for(const _0x379ccf of _0x287205['definitions'])_0x4128d2=_0x4128d2['concat'](_0x379ccf);return _0x4128d2;}['bind'](_0x12e54c)(_0x14e89c,_0x5b9f44):_0x14e89c['concat'](_0x5b9f44);},new Array());}['_validateConfig'](){const _0x605cf=/^['"`!#%:;=@{}~$()*+/?[\\\]^|]+$/;if(!_0x605cf['test'](this['_mergeFieldPrefix'])||!_0x605cf['test'](this['_mergeFieldSuffix']))throw new CKEditorError('merge-fields-invalid-prefix-or-suffix',this,{'prefix':this['_mergeFieldPrefix'],'suffix':this['_mergeFieldSuffix']});if(this['_mergeFieldPrefix']['length']>0x8||this['_mergeFieldSuffix']['length']>0x8)throw new CKEditorError('merge-fields-prefix-or-suffix-too-long',this,{'prefix':this['_mergeFieldPrefix'],'suffix':this['_mergeFieldSuffix'],'limit':0x8});const _0x33371d=new Set();if(this['flattenedMergeFieldDefinitions']['map'](_0x2a0877=>{if(!ALLOWED_IN_IDS['test'](_0x2a0877['id']))throw new CKEditorError('merge-fields-invalid-id',this,{'incorrectId':_0x2a0877['id']});if(_0x33371d['has'](_0x2a0877['id']))throw new CKEditorError('merge-fields-duplicate-merge-field-id',this,{'duplicateId':_0x2a0877['id']});_0x33371d['add'](_0x2a0877['id']);}),this['_mergeFieldPrefix']===this['_mergeFieldSuffix'])throw new CKEditorError('merge-fields-prefix-and-suffix-must-differ',this);const _0x674810=this['editor']['config']['get']('mergeFields.previewModes'),_0x49ddd9=['$labels','$defaultValues','$dataSets'];if(!_0x674810['length']||!_0x674810['every'](_0x3d49f3=>_0x49ddd9['includes'](_0x3d49f3)))throw new CKEditorError('merge-fields-invalid-preview-modes-configuration',this,{'invalidConfig':_0x674810});const _0x358620=new Set(),_0x1a21d9=this['editor']['config']['get']('mergeFields.dataSets');for(const _0xba673e of _0x1a21d9){if(_0x358620['has'](_0xba673e['id']))throw new CKEditorError('merge-fields-duplicate-data-set-id',this,{'duplicateId':_0xba673e['id']});_0x358620['add'](_0xba673e['id']);}}['_getAvailablePreviewModes'](){const _0x58e1c6=this['editor']['config']['get']('mergeFields.previewModes'),_0x39e70e=[];if(_0x58e1c6['includes']('$labels')&&_0x39e70e['push']('$labels'),_0x58e1c6['includes']('$defaultValues')&&_0x39e70e['push']('$defaultValues'),_0x58e1c6['includes']('$dataSets')){const _0x247f1c=this['editor']['config']['get']('mergeFields.dataSets');_0x39e70e['push'](..._0x247f1c['map'](_0x5f18ff=>_0x5f18ff['id']));}return _0x39e70e;}['_defineSchema'](){const _0x3000d0=this['editor']['model']['schema'];_0x3000d0['register']('mergeField',{'inheritAllFrom':'$inlineObject','allowAttributes':['id'],'allowWhere':'$text'}),_0x3000d0['register']('mergeFieldBlock',{'inheritAllFrom':'$blockObject','allowAttributes':['id']});}['_defineConverters'](){const _0x31b99e=this['editor']['conversion'];_0x31b99e['for']('upcast')['add'](_0x3c82a2=>{_0x3c82a2['on']('text',(_0x17d62f,_0x2676e8,_0x3166cf)=>{const {writer:_0x512ec2,safeInsert:_0x11680d}=_0x3166cf,{viewItem:_0xf288dd}=_0x2676e8,_0x3ceaae=_0xf288dd['data']['split'](this['_mergeFieldRegExp'])['filter'](_0x53ff17=>_0x53ff17);if(0x1===_0x3ceaae['length']&&!_0x3ceaae[0x0]['match'](this['_mergeFieldRegExp']))return;if(!_0x2676e8['modelRange'])return;const _0x14c582=_0x512ec2['createElement']('$cursor');_0x512ec2['insert'](_0x14c582,_0x2676e8['modelCursor']);const _0x85faf7=[];for(const _0x1cabf2 of _0x2676e8['modelRange']['getItems']()){if(!_0x1cabf2['is']('$textProxy'))continue;const _0x48c320=_0x1cabf2['textNode']['data']['matchAll'](this['_mergeFieldRegExp']),_0x4e5263=_0x1cabf2['parent'],_0x117186=_0x1cabf2['textNode']['startOffset'];for(const _0x5cf123 of[..._0x48c320]['reverse']()){const _0x15260d=_0x5cf123[0x0],_0x531faf=_0x512ec2['createPositionAt'](_0x4e5263,_0x5cf123['index']+_0x117186),_0x49dc15=_0x531faf['getShiftedBy'](_0x15260d['length']),_0x5d866e=_0x512ec2['createRange'](_0x531faf,_0x49dc15),_0x11fdda=this['unwrapAffixes'](_0x15260d),_0x4398ed=this['getMergeFieldType'](_0x11fdda),_0x3b715c='block'==_0x4398ed?'mergeFieldBlock':'mergeField',_0x127ed2=_0x512ec2['createElement'](_0x3b715c,{'id':_0x11fdda});_0x512ec2['remove'](_0x5d866e),_0x512ec2['insert'](_0x127ed2,_0x531faf),'block'==_0x4398ed&&_0x85faf7['push'](_0x127ed2);}}_0x85faf7['reverse']();for(const _0x1a722e of _0x85faf7){const _0x25190c=_0x512ec2['createPositionBefore'](_0x1a722e),_0x556655=_0x1a722e['nextSibling']==_0x14c582;_0x512ec2['remove'](_0x1a722e),_0x11680d(_0x1a722e,_0x25190c)&&_0x556655&&_0x512ec2['move'](_0x512ec2['createRangeOn'](_0x14c582),_0x512ec2['createPositionAfter'](_0x1a722e));}_0x2676e8['modelCursor']=_0x512ec2['createPositionBefore'](_0x14c582),_0x2676e8['modelRange']=_0x512ec2['createRange'](_0x2676e8['modelRange']['start'],_0x2676e8['modelCursor']),_0x512ec2['remove'](_0x14c582);},{'priority':priorities['get']('lowest')-0x1});}),_0x31b99e['for']('upcast')['elementToElement']({'view':{'name':'span','attributes':'data-ck-merge-field'},'model':(_0x2d91a1,{writer:_0x5a4d26})=>_0x5a4d26['createElement']('mergeField',{'id':_0x2d91a1['getAttribute']('data-ck-merge-field')})}),_0x31b99e['for']('upcast')['elementToElement']({'view':{'name':'div','attributes':'data-ck-merge-field'},'model':(_0x83fd65,{writer:_0x5ebbeb})=>_0x5ebbeb['createElement']('mergeFieldBlock',{'id':_0x83fd65['getAttribute']('data-ck-merge-field')})}),_0x31b99e['for']('upcast')['add'](this['_upcastSrcAttributeFromClipboard']()),_0x31b99e['for']('editingDowncast')['elementToElement']({'model':'mergeField','view':(_0x413d15,{writer:_0x58bff1})=>this['_createMergeFieldWidget'](_0x413d15,_0x58bff1,'text')}),_0x31b99e['for']('dataDowncast')['elementToElement']({'model':'mergeField','view':(_0x106633,{writer:_0x4e3dd0,options:_0xddc123})=>this['_createTextualMergeField'](_0x106633,_0x4e3dd0,_0xddc123)}),_0x31b99e['for']('editingDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x46b45e,{writer:_0x7a768f})=>this['_createMergeFieldWidget'](_0x46b45e,_0x7a768f,'block')}),_0x31b99e['for']('dataDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0xd06ef,{writer:_0x481250,options:_0x5eeaa7})=>this['_createTextualMergeField'](_0xd06ef,_0x481250,_0x5eeaa7)}),_0x31b99e['for']('editingDowncast')['add'](this['_downcastSrcAttributeToEditing']('imageBlock'))['add'](this['_downcastSrcAttributeToEditing']('imageInline')),_0x31b99e['for']('dataDowncast')['add'](this['_downcastSrcAttributeToData']('imageBlock'))['add'](this['_downcastSrcAttributeToData']('imageInline'));}['_upcastSrcAttributeFromClipboard'](){return _0x112067=>{_0x112067['on']('element:img',(_0x400d22,_0x33b081,_0x618220)=>{_0x618220['consumable']['test'](_0x33b081['viewItem'],{'attributes':'data-ck-merge-field'})&&(_0x618220['writer']['setAttribute']('src',this['wrapInAffixes'](_0x33b081['viewItem']['getAttribute']('data-ck-merge-field')),_0x33b081['modelCursor']['nodeBefore']),_0x618220['consumable']['consume'](_0x33b081['viewItem'],{'attributes':'data-ck-merge-field'}));},{'priority':'low'});};}['_downcastSrcAttributeToData'](_0x43b23e){const _0x40a0cd=this['editor']['plugins']['get']('ImageUtils'),_0x1fc5b5=(_0x8aeee1,_0x383c1c,_0x3b954c)=>{if(!0x1!==_0x3b954c['consumable']['test'](_0x383c1c['item'],_0x8aeee1['name']))return;if(!String(_0x383c1c['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x4a6209=_0x3b954c['writer'],_0x4e5e3e=_0x3b954c['mapper']['toViewElement'](_0x383c1c['item']),_0x4a82e7=_0x40a0cd['findViewImgElement'](_0x4e5e3e),_0x1c7f94=String(_0x383c1c['attributeNewValue']),_0x1ecee8=this['unwrapAffixes'](_0x1c7f94),_0x14e492=_0x3b954c['options']['mergeFieldsData'];if(_0x3b954c['options']['isClipboardPipeline']&&'$labels'!==this['previewMode']){let _0x57e551;return _0x57e551='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x1ecee8)||this['getLabel'](_0x1ecee8)||this['wrapInAffixes'](_0x1ecee8):this['getMergeFieldValue'](_0x1ecee8,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x1ecee8)||this['getLabel'](_0x1ecee8)||this['wrapInAffixes'](_0x1ecee8),_0x4a6209['setAttribute']('data-ck-merge-field',_0x1ecee8,_0x4a82e7),void _0x4a6209['setAttribute'](_0x383c1c['attributeKey'],_0x57e551,_0x4a82e7);}const _0x2e64bd=_0x14e492&&_0x14e492[_0x1ecee8]?_0x14e492[_0x1ecee8]:_0x1c7f94;_0x4a6209['setAttribute'](_0x383c1c['attributeKey'],_0x2e64bd,_0x4a82e7);};return _0x524511=>{_0x524511['on']('attribute:src:'+_0x43b23e,_0x1fc5b5,{'priority':'low'});};}['_downcastSrcAttributeToEditing'](_0x118440){const _0x3c9863=this['editor']['plugins']['get']('ImageUtils'),_0x293d6e=(_0x36f4a8,_0xd295d6,_0x1f85e2)=>{if(!0x1!==_0x1f85e2['consumable']['test'](_0xd295d6['item'],_0x36f4a8['name']))return;if(!String(_0xd295d6['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x35f05e=_0x1f85e2['writer'],_0x153ff9=_0x1f85e2['mapper']['toViewElement'](_0xd295d6['item']),_0x1a3bae=_0x3c9863['findViewImgElement'](_0x153ff9),_0x391f09=String(_0xd295d6['attributeNewValue']),_0x219794=this['unwrapAffixes'](_0x391f09),_0x4bc8b4=this['getMergeFieldDefaultValue'](_0x219794),_0x293e54='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC';let _0x296b2b,_0x8e9990='',_0x2d579c='';if('$labels'===this['previewMode'])_0x296b2b=_0x293e54;else{if('$defaultValues'===this['previewMode'])_0x4bc8b4?(_0x296b2b=_0x4bc8b4,_0x2d579c='\x20ck-merge-field-image_with-value'):(_0x296b2b=_0x293e54,_0x8e9990='WARNING_MISSING_DEFAULT_VALUE',_0x2d579c='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_no-default');else{const _0x4e6b0d=this['getMergeFieldValue'](_0x219794,this['previewMode']);_0x4e6b0d?(_0x296b2b=_0x4e6b0d,_0x2d579c='\x20ck-merge-field-image_with-value'):_0x4bc8b4?(_0x296b2b=_0x4bc8b4,_0x2d579c='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_default-value-used',_0x8e9990='WARNING_MISSING_DATA_USED_DEFAULT_VALUE'):(_0x296b2b=_0x293e54,_0x2d579c='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_missing-data',_0x8e9990='WARNING_MISSING_DATA');}}if(_0x35f05e['addClass']('ck-merge-field-image'+_0x2d579c,_0x153ff9),_0x35f05e['setAttribute'](_0xd295d6['attributeKey'],_0x296b2b,_0x1a3bae),'$labels'===this['previewMode']){const _0x527a21='imageInline'===_0x118440?'span':'div',_0x3d0515=this['_mergeFieldPrefix'],_0x54b62f=this['_mergeFieldSuffix'],_0xee44c1=_0x35f05e['createContainerElement'](_0x527a21,{'class':'ck-merge-field','data-cke-tooltip-instant':'true'},[_0x35f05e['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x435911){const _0x102ee6=this['toDomElement'](_0x435911);return _0x102ee6['innerHTML']=_0x3d0515,_0x102ee6;}),_0x35f05e['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x35f05e['createText'](this['getLabel'](_0x219794)||_0x219794)),_0x35f05e['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x176df6){const _0x4fa7b7=this['toDomElement'](_0x176df6);return _0x4fa7b7['innerHTML']=_0x54b62f,_0x4fa7b7;})]);_0x35f05e['insert'](_0x35f05e['createPositionAt'](_0x153ff9,'end'),_0xee44c1),_0x35f05e['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x219794)||_0x219794,_0xee44c1);}else{if(_0x8e9990&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x8e9990)){const _0x353282='imageInline'===_0x118440?'span':'div',_0x3dfa98=_0x2d579c['replace'](/ck-merge-field-image/g,'ck-merge-field'),_0x22036b=_0x35f05e['createContainerElement'](_0x353282,{'class':'ck-merge-field'+_0x3dfa98,'data-cke-tooltip-instant':'true'},[_0x35f05e['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x35f05e['createText'](this['getLabel'](_0x219794)||_0x219794))]),_0x56ba80=_0x35f05e['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x5c7f53){const _0x47cf8b=this['toDomElement'](_0x5c7f53),_0x1cffb=new IconView();return _0x1cffb['set']({'content':IconWarning}),_0x1cffb['render'](),_0x47cf8b['appendChild'](_0x1cffb['element']),_0x47cf8b;});_0x35f05e['insert'](_0x35f05e['createPositionAt'](_0x22036b,'end'),_0x56ba80),_0x35f05e['insert'](_0x35f05e['createPositionAt'](_0x153ff9,'end'),_0x22036b),_0x35f05e['setCustomProperty']('mergeFieldStatus',_0x8e9990,_0x22036b),_0x35f05e['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x219794)||_0x219794,_0x22036b);}}_0x35f05e['setAttribute']('data-merge-field-name',_0x219794,_0x153ff9),_0x8e9990&&_0x35f05e['setCustomProperty']('mergeFieldStatus',_0x8e9990,_0x153ff9);};return _0x5ce045=>{_0x5ce045['on']('attribute:src:'+_0x118440,_0x293d6e,{'priority':'low'});};}['_setupTooltipsTogglingForImageMergeField'](_0x4171c1,_0x5abdf8){if(!_0x5abdf8['target'])return null;const _0x3e7820=_0x5abdf8['target']['parentElement'];return _0x3e7820&&_0x3e7820['classList']['contains']('ck-merge-field-image')?new _0xf5cfe0(_0x3e7820,_0x4fd43c=>{const _0x41260b=_0x4fd43c['target'],_0x55c9b6=_0x41260b['querySelector']('.ck-merge-field'),_0x44dcac=_0x41260b['querySelector']('.ck-merge-field__content');_0x55c9b6&&_0x44dcac&&(_0x44dcac['scrollWidth']>_0x44dcac['getBoundingClientRect']()['width']?_0x55c9b6['removeAttribute']('data-cke-tooltip-disabled'):_0x55c9b6['setAttribute']('data-cke-tooltip-disabled','true'));}):null;}['_createMergeFieldWidget'](_0x3addf2,_0x590e3c,_0x55b8e5){const {label:_0x2dbb26,classes:_0x529146,status:_0x119257,height:_0xac1b27}=this['_prepareViewElementData'](_0x3addf2),_0x46b767=this['_mergeFieldPrefix'],_0x167268=this['_mergeFieldSuffix'],_0x362d35=this['editor']['config']['get']('mergeFields.sanitizeHtml'),_0x42b1d5='text'===_0x55b8e5?'span':'div';let _0x3a3538;if('$labels'===this['previewMode'])_0x3a3538=_0x590e3c['createContainerElement'](_0x42b1d5,{'class':_0x529146},[_0x590e3c['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x24f370){const _0x3e20a7=this['toDomElement'](_0x24f370);return _0x3e20a7['innerHTML']=_0x46b767,_0x3e20a7;}),_0x590e3c['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x590e3c['createText'](String(_0x2dbb26))),_0x590e3c['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x829386){const _0x5cf4e9=this['toDomElement'](_0x829386);return _0x5cf4e9['innerHTML']=_0x167268,_0x5cf4e9;})]);else{if(_0x119257){const _0x28fd3a=this['_shouldPreviewHtmlValues']?_0x590e3c['createRawElement']('span',{'class':'ck-merge-field__content'},function(_0x5575ff,_0x5a9a1f){_0x5a9a1f['setContentOf'](_0x5575ff,_0x362d35(_0x2dbb26)['html']);}):_0x590e3c['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x590e3c['createText'](_0x2dbb26));if(_0x3a3538=_0x590e3c['createContainerElement'](_0x42b1d5,{'class':_0x529146},[_0x28fd3a]),'text'===_0x55b8e5||['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x119257)){const _0x16bb97=_0x590e3c['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x248f68){const _0x59dd5a=this['toDomElement'](_0x248f68),_0x386ced=new IconView();return _0x386ced['set']({'content':IconWarning}),_0x386ced['render'](),_0x59dd5a['appendChild'](_0x386ced['element']),_0x59dd5a;});_0x590e3c['insert'](_0x590e3c['createPositionAt'](_0x3a3538,'end'),_0x16bb97);}_0x590e3c['setCustomProperty']('mergeFieldStatus',_0x119257,_0x3a3538);}else{const _0x46f1de=this['_shouldPreviewHtmlValues']?_0x590e3c['createRawElement'](_0x42b1d5,{},function(_0x23ef4e,_0xba444f){_0xba444f['setContentOf'](_0x23ef4e,_0x362d35(_0x2dbb26)['html']);}):_0x590e3c['createText'](_0x2dbb26);_0x3a3538=_0x590e3c['createContainerElement'](_0x42b1d5,{'class':_0x529146},_0x46f1de);}}if('block'===_0x55b8e5){const _0x46b4b9=_0x590e3c['createContainerElement']('div',{'class':'ck-merge-field-block'},[_0x3a3538]);if(('$labels'===this['previewMode']||_0x119257&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x119257))&&_0x590e3c['setAttribute']('style','height:\x20'+_0xac1b27+'px',_0x46b4b9),_0x3a3538['hasClass']('ck-merge-field_with-value'))_0x590e3c['addClass']('ck-merge-field-block_with-value',_0x46b4b9);else{if(_0x3a3538['hasClass']('ck-merge-field_with-warning')){for(const _0x4095cf of _0x3a3538['getClassNames']())if('ck-merge-field'!==_0x4095cf){const _0x4ad13a=_0x4095cf['replace']('ck-merge-field','ck-merge-field-block');_0x590e3c['addClass'](_0x4ad13a,_0x46b4b9);}_0x590e3c['setCustomProperty']('mergeFieldStatus',_0x119257,_0x46b4b9);}}return _0x590e3c['setCustomProperty']('mergeFieldBlock',!0x0,_0x46b4b9),_0x590e3c['setAttribute']('data-merge-field-name',_0x3addf2['getAttribute']('id'),_0x46b4b9),toWidget(_0x46b4b9,_0x590e3c,{'hasSelectionHandle':!0x0});}return _0x590e3c['setCustomProperty']('mergeField',!0x0,_0x3a3538),_0x590e3c['setAttribute']('data-merge-field-name',_0x3addf2['getAttribute']('id'),_0x3a3538),toWidget(_0x3a3538,_0x590e3c);}['_prepareViewElementData'](_0x55ecfd){const _0x12c2cf=_0x55ecfd['getAttribute']('id'),_0x5bf61a=this['getDefinition'](_0x12c2cf);if(!_0x5bf61a)return'$labels'===this['previewMode']?{'label':_0x12c2cf,'classes':'ck-merge-field'}:{'label':_0x12c2cf,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-definition','status':'WARNING_MISSING_DATA'};const _0x44d755=this['getLabel'](_0x12c2cf)||_0x12c2cf,_0x429c9b=this['getMergeFieldDefaultValue'](_0x12c2cf),_0x98ffc7=this['getMergeFieldHeight'](_0x12c2cf);if('$labels'===this['previewMode'])return{'label':_0x44d755,'height':_0x98ffc7,'classes':'ck-merge-field'};if('$defaultValues'===this['previewMode'])return _0x429c9b?{'label':_0x429c9b,'height':_0x98ffc7,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:{'label':_0x44d755,'height':_0x98ffc7,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_no-default','status':'WARNING_MISSING_DEFAULT_VALUE'};const _0xf7706a=this['getMergeFieldValue'](_0x5bf61a['id'],this['previewMode']);return _0xf7706a?{'label':_0xf7706a,'height':_0x98ffc7,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:_0x429c9b?{'label':_0x429c9b,'height':_0x98ffc7,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_default-value-used','status':'WARNING_MISSING_DATA_USED_DEFAULT_VALUE'}:{'label':_0x44d755,'height':_0x98ffc7,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-data','status':'WARNING_MISSING_DATA'};}['_createTextualMergeField'](_0x2eae03,_0x193cfa,_0x5319ce){const _0x377931=_0x2eae03['getAttribute']('id');let _0x82648b;if(_0x5319ce['isClipboardPipeline']&&'$labels'!==this['previewMode'])return this['_downcastForClipboard'](_0x377931,_0x193cfa);const _0x5aba0c=_0x5319ce['mergeFieldsData'],_0x3bbaf1=_0x5aba0c&&_0x5aba0c[_0x377931]?_0x5aba0c[_0x377931]:this['wrapInAffixes'](_0x377931);if(_0x5aba0c)_0x82648b=_0x193cfa['createRawElement']('span',{},function(_0x89072b,_0x52421e){_0x52421e['setContentOf'](_0x89072b,String(_0x3bbaf1));});else{_0x82648b=_0x193cfa['createContainerElement']('span');const _0xb77cf5=_0x193cfa['createText'](_0x3bbaf1);_0x193cfa['insert'](_0x193cfa['createPositionAt'](_0x82648b,'end'),_0xb77cf5);}return _0x193cfa['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x82648b),_0x82648b;}['_downcastForClipboard'](_0x171b60,_0x1af4b0){const _0x2729e3='block'===this['getMergeFieldType'](_0x171b60)?'div':'span';let _0x3ea66e,_0x304cb3;_0x3ea66e='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x171b60)||this['getLabel'](_0x171b60)||this['wrapInAffixes'](_0x171b60):this['getMergeFieldValue'](_0x171b60,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x171b60)||this['getLabel'](_0x171b60)||this['wrapInAffixes'](_0x171b60);const _0xe286a9=this['editor']['config']['get']('mergeFields.sanitizeHtml');return _0x304cb3=this['_shouldPreviewHtmlValues']?_0x1af4b0['createRawElement'](_0x2729e3,{'data-ck-merge-field':_0x171b60},function(_0x11a0ed,_0x2c9add){_0x2c9add['setContentOf'](_0x11a0ed,_0xe286a9(_0x3ea66e)['html']);}):_0x1af4b0['createContainerElement'](_0x2729e3,{'data-ck-merge-field':_0x171b60},_0x1af4b0['createText'](_0x3ea66e)),_0x304cb3;}['_validatePreviewMode'](_0x586a2d){if(!this['availablePreviewModes']['includes'](_0x586a2d))throw new CKEditorError('merge-fields-invalid-preview-mode-set',this,{'availablePreviewModes':this['availablePreviewModes'],'previewMode':_0x586a2d});}['_trackAddedMergeFields'](){for(const _0x11894f of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x11894f['type']||'$text'===_0x11894f['name'])continue;if('mergeField'===_0x11894f['name']||'mergeFieldBlock'===_0x11894f['name']){this['_mergeFieldElements']['add'](_0x11894f['position']['nodeAfter']);continue;}if('imageInline'===_0x11894f['name']||'imageBlock'===_0x11894f['name']&&_0x11894f['attributes']['get']('src')&&String(_0x11894f['attributes']['get']('src'))['match'](this['_mergeFieldRegExp'])){this['_mergeFieldElements']['add'](_0x11894f['position']['nodeAfter']);continue;}const _0x252532=this['editor']['model']['createRangeIn'](_0x11894f['position']['nodeAfter']);for(const _0x3c341c of _0x252532['getItems']())_0x3c341c['is']('element')&&this['isMergeField'](_0x3c341c)&&this['_mergeFieldElements']['add'](_0x3c341c);}}['_registerConversionPostFixer'](){const _0x37dfe4=this['editor'];_0x37dfe4['model']['document']['registerPostFixer'](_0x2a1387=>{if(!_0x2a1387['batch']['isLocal'])return!0x1;const _0x3ba7f4=[],_0x4e85ff=new Set(),_0x5cf055=this['_mergeFieldRegExp'];let _0x25a717=!0x1;for(const _0x49cb00 of _0x37dfe4['model']['document']['differ']['getChanges']())if('insert'===_0x49cb00['type']||'remove'===_0x49cb00['type']){let _0x2341c3='$text'==_0x49cb00['name']?_0x49cb00['position']['parent']:_0x49cb00['position']['nodeAfter'];if(!_0x2341c3)continue;_0x2341c3['is']('$text')&&(_0x2341c3=_0x2341c3['parent']),_0x331de4(_0x2341c3);}for(const _0x1a8a95 of _0x3ba7f4['reverse']()){const {match:_0x19d6c7,item:_0x502405}=_0x1a8a95,_0x18d9e1=_0x2a1387['createPositionAt'](_0x502405,_0x19d6c7['index']),_0x400640=_0x18d9e1['getShiftedBy'](_0x19d6c7[0x0]['length']),_0xe4c056=_0x2a1387['createRange'](_0x18d9e1,_0x400640),_0x22f19b=_0x19d6c7[0x0],_0x2b3259=this['unwrapAffixes'](_0x22f19b),_0x45297a=_0x534092(_0xe4c056),_0x2402ba=this['getMergeFieldType'](_0x2b3259);if(ALLOWED_IN_IDS['test'](_0x2b3259)){if(_0x45297a['set']('id',_0x2b3259),'block'===_0x2402ba){const _0xfa5833=_0x2a1387['createElement']('mergeFieldBlock',{'id':_0x2b3259});_0x2a1387['remove'](_0xe4c056),_0x37dfe4['model']['insertObject'](_0xfa5833,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{if('image'===_0x2402ba){const _0xc3132f=_0x2a1387['createElement']('imageBlock',{'src':this['wrapInAffixes'](_0x2b3259)});_0x2a1387['remove'](_0xe4c056),_0x37dfe4['model']['insertObject'](_0xc3132f,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{const _0x4d53d8=_0x2a1387['createElement']('mergeField',_0x45297a);_0x37dfe4['model']['schema']['checkChild'](_0xe4c056['start'],'mergeField')?_0x37dfe4['model']['insertObject'](_0x4d53d8,_0xe4c056):_0x2a1387['remove'](_0xe4c056);}}_0x25a717=!0x0;}}return _0x25a717;function _0x331de4(_0x42cf5b){let _0xb3662a='',_0x52e24d=0x0;if(!_0x4e85ff['has'](_0x42cf5b))for(const _0xea6a35 of _0x42cf5b['getChildren']()){const _0x46c1bb=_0xea6a35['nextSibling'];if(_0xea6a35['is']('$text')&&(''===_0xb3662a&&_0xea6a35['startOffset']&&(_0x52e24d=_0xea6a35['startOffset']),_0xb3662a+=_0xea6a35['data']),!_0x46c1bb||_0x46c1bb['is']('element')){for(const _0x962052 of _0xb3662a['matchAll'](_0x5cf055))_0x962052['index']=_0x962052['index']+_0x52e24d,_0x3ba7f4['push']({'match':_0x962052,'item':_0x42cf5b});_0x4e85ff['add'](_0x42cf5b),_0xb3662a='';}_0xea6a35['is']('element')&&_0x331de4(_0xea6a35);}}function _0x534092(_0x9b0220){const _0x7c9a14=_0x9b0220['getItems'](),_0x489deb=_0x7c9a14['next']()['value'],_0x2b6038=new Map(_0x489deb['getAttributes']());for(const _0x2a463f of _0x7c9a14)for(const [_0x117576,_0x5ec088]of _0x2b6038)_0x2a463f['getAttribute'](_0x117576)!==_0x5ec088&&_0x2b6038['delete'](_0x117576);return _0x2b6038;}});}['_disableCommandOnMergeFields'](_0x39d6bd){const _0x1c0127=this['editor'],_0x38594f=_0x1c0127['commands']['get'](_0x39d6bd);_0x38594f&&_0x38594f['on']('set:isEnabled',(_0x3fdda6,_0x4633db,_0x39dc5c)=>{if(0x1==_0x39dc5c){const _0x42f660=_0x1c0127['model']['document']['selection']['getSelectedElement']();_0x42f660&&this['isMergeField'](_0x42f660)&&(_0x3fdda6['return']=!0x1,_0x3fdda6['stop']());}});}}async function checkLicense$8(_0x3b56cb){const _0x5d0b2d=_0x48a17e([0x75,0x6e,0x30,0x4e,0x46,0x51,0x55,0x6f,0x58,0x31,0x65,0x76,0x7a,0x6b,0x33,0x79,0x4d,0x45,0x66,0x77,0x6c,0x37,0x54,0x78,0x62,0x44,0x72,0x69,0x73,0x4f,0x5a,0x61,0x57,0x74,0x4b,0x71,0x35,0x32,0x50,0x39,0x38,0x64,0x63,0x68,0x42,0x56,0x70,0x6a,0x53,0x34,0x6d,0x59,0x4c,0x43,0x36,0x67,0x4a,0x49,0x48,0x47,0x52,0x41]),_0x585665=window[_0x48a17e([0x44,0x61,0x74,0x65])][_0x48a17e([0x6e,0x6f,0x77])](),_0x1b2c25=_0x3b56cb[_0x48a17e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x8b77=new window[(_0x48a17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dbc98=>{_0x1b2c25[_0x48a17e([0x6f,0x6e,0x63,0x65])](_0x48a17e([0x72,0x65,0x61,0x64,0x79]),_0x3dbc98);}),_0x4f5300={[_0x48a17e([0x6b,0x74,0x79])]:_0x48a17e([0x45,0x43]),[_0x48a17e([0x75,0x73,0x65])]:_0x48a17e([0x73,0x69,0x67]),[_0x48a17e([0x63,0x72,0x76])]:_0x48a17e([0x50,0x2d,0x32,0x35,0x36]),[_0x48a17e([0x78])]:_0x48a17e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x48a17e([0x79])]:_0x48a17e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x48a17e([0x61,0x6c,0x67])]:_0x48a17e([0x45,0x53,0x32,0x35,0x36])},_0x3728b2=_0x1b2c25[_0x48a17e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48a17e([0x67,0x65,0x74])](_0x48a17e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0xa62777=await(async function(){let _0x12c196,_0x59944d=null,_0x51a1b1=null;try{if(_0x3728b2==_0x48a17e([0x47,0x50,0x4c]))return _0x48a17e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12c196=(function(){const _0x1fc176=_0x3728b2[_0x48a17e([0x73,0x70,0x6c,0x69,0x74])](_0x48a17e([0x2e]));if(0x3!=_0x1fc176[_0x48a17e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x245360=_0x1fc176[0x1];return _0xa31579(_0x245360);function _0xa31579(_0x9497ff){const _0x44d89f=_0x300e87(_0x9497ff);return _0x44d89f&&_0x19dfda()?_0x44d89f:null;function _0x19dfda(){const _0x3d16b=_0x44d89f[_0x48a17e([0x6a,0x74,0x69])],_0x3036ae=window[_0x48a17e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d16b[_0x48a17e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d16b[_0x48a17e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c2517={..._0x44d89f,[_0x48a17e([0x6a,0x74,0x69])]:_0x3d16b[_0x48a17e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3d16b[_0x48a17e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c2517[_0x48a17e([0x76,0x63])],_0xc660f2(_0x2c2517)==_0x3036ae;}}}()),!_0x12c196)return _0x48a17e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x12c196[_0x48a17e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x51a1b1=function(_0x1a4af0,_0x1c3fb3){return new window[(_0x48a17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46b44a=>{if(_0x138f2b())return _0x46b44a(_0x48a17e([0x56,0x61,0x6c,0x69,0x64]));_0x30cb68(),_0x1b2c25[_0x48a17e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48a17e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xba6262=!0x1;const _0x1f2901=uid();function _0x254f48(_0x6eda7f){return!!_0x6eda7f&&(typeof _0x6eda7f===_0x48a17e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6eda7f===_0x48a17e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6eda7f[_0x48a17e([0x74,0x68,0x65,0x6e])]===_0x48a17e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6eda7f[_0x48a17e([0x63,0x61,0x74,0x63,0x68])]===_0x48a17e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c81ba(_0x2b62d0){_0x418f8a(_0x2b62d0)[_0x48a17e([0x74,0x68,0x65,0x6e])](_0x465ede=>{if(!_0x465ede||_0x465ede[_0x48a17e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48a17e([0x6f,0x6b]))return _0x48a17e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x275a75(_0xc660f2(_0x1f2901+_0x1c3fb3))!=_0x465ede[_0x48a17e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48a17e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48a17e([0x56,0x61,0x6c,0x69,0x64]);})[_0x48a17e([0x74,0x68,0x65,0x6e])](_0x1116ee=>(_0x3955fd(),_0x1116ee),()=>{const _0x197ee9=_0x129f38();return null==_0x197ee9?(_0x3955fd(),_0x48a17e([0x56,0x61,0x6c,0x69,0x64])):_0x48a17e(_0x585665-_0x197ee9>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48a17e([0x74,0x68,0x65,0x6e])](_0x46b44a)[_0x48a17e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46b44a(_0x48a17e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x361ad2=0x36ee80;function _0x3955fd(){const _0x2dae1c=_0x48a17e([0x6c,0x6c,0x63,0x74,0x2d])+_0x275a75(_0xc660f2(_0x1a4af0)),_0x43e7eb=_0x4d34b2(_0x275a75(window[_0x48a17e([0x4d,0x61,0x74,0x68])][_0x48a17e([0x63,0x65,0x69,0x6c])](_0x585665/_0x361ad2)));window[_0x48a17e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48a17e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2dae1c,_0x43e7eb);}function _0x129f38(){const _0x5bde55=_0x48a17e([0x6c,0x6c,0x63,0x74,0x2d])+_0x275a75(_0xc660f2(_0x1a4af0)),_0x2ec8aa=window[_0x48a17e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48a17e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bde55);return _0x2ec8aa?window[_0x48a17e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d34b2(_0x2ec8aa),0x10)*_0x361ad2:null;}function _0x418f8a(_0x4ce701){return new window[(_0x48a17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x245586,_0x237799)=>{_0x4ce701[_0x48a17e([0x74,0x68,0x65,0x6e])](_0x245586,_0x237799),window[_0x48a17e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x237799,0x1d4c0);});}}_0x1b2c25[_0x48a17e([0x6f,0x6e])](_0x48a17e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a4963,_0x235472)=>{if(_0x235472[0x0]!=_0x1a4af0)return _0x46b44a(_0x48a17e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x235472[0x1]={..._0x235472[0x1],[_0x48a17e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f2901};},{[_0x48a17e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48a17e([0x68,0x69,0x67,0x68])}),_0x1b2c25[_0x48a17e([0x6f,0x6e])](_0x48a17e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x9c404d=>{_0x254f48(_0x9c404d[_0x48a17e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xba6262=!0x0,_0x2c81ba(_0x9c404d[_0x48a17e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48a17e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48a17e([0x6c,0x6f,0x77])}),_0x8b77[_0x48a17e([0x74,0x68,0x65,0x6e])](()=>{_0xba6262||_0x46b44a(_0x48a17e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x138f2b(){return _0x1b2c25[_0x48a17e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48a17e([0x76,0x69,0x65,0x77])][_0x48a17e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48a17e([0x61,0x75,0x74,0x6f]);}function _0x30cb68(){_0x1b2c25[_0x48a17e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48a17e([0x76,0x69,0x65,0x77])][_0x48a17e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48a17e([0x61,0x75,0x74,0x6f]);}}(_0x12c196[_0x48a17e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12c196[_0x48a17e([0x6a,0x74,0x69])]));const _0x1f7aac=await(async function(){let _0x4a65d8=!0x0;try{const _0x327c61=_0x3728b2[_0x48a17e([0x73,0x70,0x6c,0x69,0x74])](_0x48a17e([0x2e])),[_0x42c7c3,_0x515bb8,_0xdbb8a1]=_0x327c61;return _0xce1711(_0x42c7c3),await _0x18b2bb(_0x42c7c3,_0x515bb8,_0xdbb8a1),_0x4a65d8;}catch{return!0x1;}function _0xce1711(_0x580e01){const _0x3de158=_0x300e87(_0x580e01);_0x3de158&&_0x3de158[_0x48a17e([0x61,0x6c,0x67])]==_0x48a17e([0x45,0x53,0x32,0x35,0x36])||(_0x4a65d8=!0x1);}async function _0x18b2bb(_0x19055a,_0x71e475,_0x5366b9){const _0x11cf85=window[_0x48a17e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48a17e([0x66,0x72,0x6f,0x6d])](_0x16a681(_0x5366b9),_0x2b08fc=>_0x2b08fc[_0x48a17e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3d8704=new window[(_0x48a17e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48a17e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19055a+_0x48a17e([0x2e])+_0x71e475),_0x29d37b=window[_0x48a17e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48a17e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x29d37b)return;const _0x28b19f=await _0x29d37b[_0x48a17e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48a17e([0x6a,0x77,0x6b]),_0x4f5300,{[_0x48a17e([0x6e,0x61,0x6d,0x65])]:_0x48a17e([0x45,0x43,0x44,0x53,0x41]),[_0x48a17e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48a17e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48a17e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x29d37b[_0x48a17e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48a17e([0x6e,0x61,0x6d,0x65])]:_0x48a17e([0x45,0x43,0x44,0x53,0x41]),[_0x48a17e([0x68,0x61,0x73,0x68])]:{[_0x48a17e([0x6e,0x61,0x6d,0x65])]:_0x48a17e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x28b19f,_0x11cf85,_0x3d8704)||(_0x4a65d8=!0x1);}}());return _0x1f7aac?(function(){const _0x459400=_0x12c196[_0x48a17e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x459400)return!0x1;if(_0x459400[_0x48a17e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48a17e([0x2a])))return!0x0;if(_0x459400[_0x48a17e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48a17e([0x4d,0x46])))return!0x0;return!0x1;}())?(function(){const _0x191457=[_0x48a17e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48a17e([0x74,0x72,0x69,0x61,0x6c])][_0x48a17e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12c196[_0x48a17e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x585665/0x3e8:0x68f03580;return _0x12c196[_0x48a17e([0x65,0x78,0x70])]<_0x191457;}())?_0x48a17e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xadf70d=_0x12c196[_0x48a17e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xadf70d||0x0==_0xadf70d[_0x48a17e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x286543}=new URL(window[_0x48a17e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xadf70d[_0x48a17e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286543))return!0x0;const _0x5a47d4=_0x286543[_0x48a17e([0x73,0x70,0x6c,0x69,0x74])](_0x48a17e([0x2e]));return _0xadf70d[_0x48a17e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26dfdd=>_0x26dfdd[_0x48a17e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48a17e([0x2a])))[_0x48a17e([0x6d,0x61,0x70])](_0x12a174=>_0x12a174[_0x48a17e([0x73,0x70,0x6c,0x69,0x74])](_0x48a17e([0x2e])))[_0x48a17e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57be7c=>_0x57be7c[_0x48a17e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5a47d4[_0x48a17e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48a17e([0x6d,0x61,0x70])](_0x108395=>Array(_0x5a47d4[_0x48a17e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x108395[_0x48a17e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48a17e([0x66,0x69,0x6c,0x6c])](_0x108395[0x0]===_0x48a17e([0x2a])?_0x48a17e([0x2a]):'')[_0x48a17e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x108395))[_0x48a17e([0x73,0x6f,0x6d,0x65])](_0x38ae7e=>_0x5a47d4[_0x48a17e([0x65,0x76,0x65,0x72,0x79])]((_0x42bdb7,_0x162a96)=>_0x38ae7e[_0x162a96]===_0x42bdb7||_0x38ae7e[_0x162a96]===_0x48a17e([0x2a])));}())?(_0x12c196[_0x48a17e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48a17e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59944d=_0x3adf74(_0x48a17e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x12c196[_0x48a17e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48a17e([0x74,0x72,0x69,0x61,0x6c])&&(_0x59944d=_0x3adf74(_0x48a17e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x59944d&&_0x51a1b1)return new window[(_0x48a17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x434f14,_0x194e07)=>{_0x59944d[_0x48a17e([0x74,0x68,0x65,0x6e])](_0x434f14,_0x194e07),_0x51a1b1[_0x48a17e([0x74,0x68,0x65,0x6e])](_0x3e2632=>{_0x3e2632!=_0x48a17e([0x56,0x61,0x6c,0x69,0x64])&&_0x434f14(_0x3e2632);},_0x194e07);});return _0x59944d||_0x51a1b1||_0x48a17e([0x56,0x61,0x6c,0x69,0x64]);}())):_0x48a17e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48a17e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48a17e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x48a17e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x3adf74(_0x19490f){const _0x1eaacb=[new window[(_0x48a17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f5b41=>setTimeout(_0x1f5b41,0x93ecc)),_0x8b77[_0x48a17e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48a17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2567f5=>{let _0x597391=0x0;_0x1b2c25[_0x48a17e([0x6d,0x6f,0x64,0x65,0x6c])][_0x48a17e([0x6f,0x6e])](_0x48a17e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2cda86,_0xe480a6)=>{_0xe480a6[0x0][_0x48a17e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x597391++,0x1f8==_0x597391&&(_0x2567f5(),_0x2cda86[_0x48a17e([0x6f,0x66,0x66])]());});}))];return window[_0x48a17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48a17e([0x72,0x61,0x63,0x65])](_0x1eaacb)[_0x48a17e([0x74,0x68,0x65,0x6e])](()=>_0x19490f);}function _0x300e87(_0x5cdc4f){return _0x5cdc4f[_0x48a17e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48a17e([0x65,0x79]))?JSON[_0x48a17e([0x70,0x61,0x72,0x73,0x65])](_0x16a681(_0x5cdc4f)):null;}function _0x16a681(_0x34b2e7){return window[_0x48a17e([0x61,0x74,0x6f,0x62])](_0x34b2e7[_0x48a17e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48a17e([0x2b]))[_0x48a17e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48a17e([0x2f])));}function _0xc660f2(_0x111b83){let _0x546f03=0x1505;function _0x4aa84b(_0x28159b){for(let _0x2c82ca=0x0;_0x2c82ca<_0x28159b[_0x48a17e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c82ca++){const _0x284e7a=_0x28159b[_0x48a17e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c82ca);_0x546f03=(_0x546f03<<0x5)+_0x546f03+_0x284e7a,_0x546f03&=_0x546f03;}}return function _0x1757ad(_0x196d0c){Array[_0x48a17e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x196d0c)?_0x196d0c[_0x48a17e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1757ad):_0x196d0c&&typeof _0x196d0c==_0x48a17e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48a17e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x196d0c)[_0x48a17e([0x73,0x6f,0x72,0x74])]()[_0x48a17e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c7fd9,_0x9afcde])=>{_0x4aa84b(_0x3c7fd9),_0x1757ad(_0x9afcde);}):_0x4aa84b(window[_0x48a17e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x196d0c));}(_0x111b83),_0x546f03>>>0x0;}function _0x275a75(_0x131f7f){return _0x131f7f[_0x48a17e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48a17e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48a17e([0x30]));}function _0x4d34b2(_0x503d08){return _0x503d08[_0x48a17e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48a17e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48a17e([0x6a,0x6f,0x69,0x6e])]('');}function _0x30950a(){}function _0x48a17e(_0x51c0ea){return _0x51c0ea['map'](_0x3526ba=>String['fromCharCode'](_0x3526ba))['join']('');}!function(_0x2759f7){const _0x53220e=(function(){const _0x5013ea=window[_0x48a17e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48a17e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48a17e([0x6e,0x6f,0x77])]())[_0x48a17e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48a17e([0x2e]),'');let _0x3ec75b=_0x48a17e([0x75]);for(let _0xef72=0x0;_0xef72<_0x5013ea[_0x48a17e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xef72+=0x2){let _0x187e66=window[_0x48a17e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5013ea[_0x48a17e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xef72,_0xef72+0x2));_0x187e66>=_0x5d0b2d[_0x48a17e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x187e66-=_0x5d0b2d[_0x48a17e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ec75b+=_0x5d0b2d[_0x187e66];}return _0x3ec75b;}());_0x1b2c25[_0x53220e]=_0x48a17e([0x6d,0x65,0x72,0x67,0x65,0x46,0x69,0x65,0x6c,0x64,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2759f7,_0x2759f7!=_0x48a17e([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x8b77,_0x1b2c25[_0x48a17e([0x6d,0x6f,0x64,0x65,0x6c])][_0x48a17e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30950a,_0x1b2c25[_0x48a17e([0x6d,0x6f,0x64,0x65,0x6c])][_0x48a17e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30950a,_0x1b2c25[_0x48a17e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48a17e([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0xa62777);}class MergeFieldsListView extends ListView{['filter'](_0x66c1bb){return filterGroupAndItemNames(_0x66c1bb,this['items']);}}class MergeFieldsPanelView extends View{constructor(_0x2173dd){super(_0x2173dd),this['set']('text','');const _0x4d928c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-merge-fields-form']},'children':[{'tag':'div','attributes':{'class':['ck','ck-merge-fields-form__status']},'children':[{'text':_0x4d928c['to']('text')}]}]});}}function getTranslation$8(_0x51e50d,_0x22f4e5){const t=_0x51e50d['t'];switch(_0x22f4e5){case'Search\x20merge\x20field':return t('Search\x20merge\x20field');case'No\x20merge\x20fields\x20found':return t('No\x20merge\x20fields\x20found');case'No\x20merge\x20fields\x20available':return t('No\x20merge\x20fields\x20available');case'Insert\x20merge\x20field':return t('Insert\x20merge\x20field');case'Merge\x20field':return t('Merge\x20field');case'Merge\x20fields\x20preview':return t('Merge\x20fields\x20preview');case'Labels':return t('Labels');case'Default\x20values':return t('Default\x20values');case'WARNING_MISSING_DATA_USED_DEFAULT_VALUE':return t({'string':'Default\x20value\x20is\x20used.','id':'WARNING_MISSING_DATA_USED_DEFAULT_VALUE'});case'WARNING_MISSING_DEFAULT_VALUE':return t({'string':'Default\x20value\x20not\x20available.','id':'WARNING_MISSING_DEFAULT_VALUE'});case'WARNING_MISSING_DATA':return t({'string':'Value\x20not\x20available.','id':'WARNING_MISSING_DATA'});default:return _0x22f4e5;}}class MergeFieldsUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];['_balloon'];['_balloonPanelView']=null;static get['requires'](){return['Mention',MergeFieldsEditing,ContextualBalloon,Widget];}static get['pluginName'](){return'MergeFieldsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x289a44){super(_0x289a44),this['_removeDefaultValuesPreviewIfUnnecessary'](),this['_removeMenuBarButtonIfUnnecessary'](),this['_setupMentionConfiguration']();}['init'](){const _0x189f27=this['editor'];_0x189f27['ui']['componentFactory']['add']('insertMergeField',_0x36a00d=>{const _0x56fd5b=createInsertMergeFieldDropdown(_0x36a00d);return _0x56fd5b['bind']('isEnabled')['toMany']([_0x189f27['commands']['get']('insertMergeField'),_0x189f27['commands']['get']('insertMergeFieldBlock'),_0x189f27['commands']['get']('insertMergeFieldImage')],'isEnabled',(..._0x489f57)=>_0x489f57['some'](_0x96940c=>_0x96940c)),_0x56fd5b['once']('change:isOpen',()=>{const _0xda2b75={'insertInline':_0x189f27['commands']['get']('insertMergeField'),'insertBlock':_0x189f27['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x189f27['commands']['get']('insertMergeFieldImage')},_0x36428e=createMergeFieldsListView(_0x36a00d,_0x189f27['config']['get']('mergeFields.definitions'),_0xda2b75);_0x36428e['delegate']('execute')['to'](_0x56fd5b),_0x56fd5b['on']('execute',(_0x14b8ea,_0x565403)=>{const _0x295cc6=_0x189f27['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x565403);'image'===_0x295cc6?_0x189f27['execute']('insertMergeFieldImage',_0x565403):'block'===_0x295cc6?_0x189f27['execute']('insertMergeFieldBlock',_0x565403):_0x189f27['execute']('insertMergeField',_0x565403),_0x189f27['editing']['view']['focus']();});const _0x126833=createMergeFieldsSearchTextView(_0x36a00d,_0x36428e);_0x56fd5b['panelView']['children']['add'](_0x126833),_0x56fd5b['on']('change:isOpen',(_0x1d6bef,_0x9dfa05,_0x28414b)=>{_0x28414b&&_0x126833['reset']();});}),_0x56fd5b;}),_0x189f27['ui']['componentFactory']['add']('menuBar:insertMergeField',_0x17a965=>{const _0x3d63e5=new MenuBarMenuView(_0x17a965),_0x49deee={'insertInline':_0x189f27['commands']['get']('insertMergeField'),'insertBlock':_0x189f27['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x189f27['commands']['get']('insertMergeFieldImage')};_0x3d63e5['buttonView']['set']({'label':getTranslation$8(_0x17a965,'Merge\x20field'),'icon':IconInsertMergeField}),_0x3d63e5['bind']('isEnabled')['toMany']([...Object['values'](_0x49deee)],'isEnabled',(..._0x2a6f98)=>_0x2a6f98['some'](_0x467c4c=>_0x467c4c));const _0x246c7d=[],_0x4a1c25=new MenuBarMenuListView(_0x17a965);for(const _0x29c60f of _0x189f27['config']['get']('mergeFields.definitions'))if('groupId'in _0x29c60f){const _0x5df219=new MenuBarMenuListItemView(_0x17a965,_0x3d63e5),_0x54a50b=createMenuBarSubmenu(_0x17a965,_0x29c60f,_0x49deee);_0x5df219['children']['add'](_0x54a50b),_0x54a50b['delegate']('execute')['to'](_0x3d63e5),_0x4a1c25['items']['add'](_0x5df219);}else _0x246c7d['push'](_0x29c60f);if(_0x246c7d['length']){if(0x0===_0x4a1c25['items']['length'])for(const _0x41f153 of _0x246c7d){let _0x398d9f;_0x398d9f='block'===_0x41f153['type']?_0x49deee['insertBlock']:'image'===_0x41f153['type']?_0x49deee['insertImage']:_0x49deee['insertInline'];const _0x561c6e=createMenuBarListItem(_0x17a965,_0x41f153,_0x3d63e5,_0x398d9f);_0x4a1c25['items']['add'](_0x561c6e);}else{const _0x3c9d6c=new MenuBarMenuListItemView(_0x17a965,_0x3d63e5),_0x525d11=createMenuBarSubmenu(_0x17a965,{'groupId':'Other','definitions':_0x246c7d},_0x49deee);_0x3c9d6c['children']['add'](_0x525d11),_0x525d11['delegate']('execute')['to'](_0x3d63e5),_0x4a1c25['items']['add'](_0x3c9d6c);}}return _0x3d63e5['panelView']['children']['add'](_0x4a1c25),_0x3d63e5['on']('execute',(_0x162c3e,_0x50c1b1)=>{const _0x6dc59c=_0x189f27['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x50c1b1);'image'===_0x6dc59c?_0x189f27['execute']('insertMergeFieldImage',_0x50c1b1):'block'===_0x6dc59c?_0x189f27['execute']('insertMergeFieldBlock',_0x50c1b1):_0x189f27['execute']('insertMergeField',_0x50c1b1),_0x189f27['editing']['view']['focus']();}),_0x3d63e5;});const _0x1e7423=_0x189f27['config']['get']('mergeFields.previewModes'),_0x930414=[];if(_0x1e7423['includes']('$labels')&&_0x930414['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':getTranslation$8(this['editor']['locale'],'Labels'),'commandValue':'$labels'})}),_0x1e7423['includes']('$defaultValues')&&_0x930414['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':getTranslation$8(this['editor']['locale'],'Default\x20values'),'commandValue':'$defaultValues'})}),_0x1e7423['includes']('$dataSets')){const _0xa86e75=_0x189f27['config']['get']('mergeFields.dataSets');if(_0xa86e75['length']){for(const _0x642a1 of _0xa86e75)_0x930414['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':_0x642a1['label']||_0x642a1['id'],'commandValue':_0x642a1['id']})});}}_0x189f27['ui']['componentFactory']['add']('previewMergeFields',_0x52f377=>{const _0x5e378c=_0x189f27['commands']['get']('previewMergeFields'),_0x1c4942=new Collection();for(const _0x2e99d9 of cloneDeep(_0x930414))_0x2e99d9['model']['bind']('isOn')['to'](_0x5e378c,'value',_0x4ca568=>_0x4ca568===_0x2e99d9['model']['commandValue']),_0x1c4942['add'](_0x2e99d9);const _0x1609d2=createDropdown(_0x52f377),_0x198889=getTranslation$8(_0x52f377,'Merge\x20fields\x20preview');return _0x1609d2['bind']('isEnabled')['to'](_0x5e378c),addListToDropdown(_0x1609d2,_0x1c4942,{'ariaLabel':_0x198889,'role':'menu'}),_0x1609d2['set']({'class':'ck-merge-fields-preview-dropdown'}),_0x1609d2['buttonView']['set']({'label':_0x198889,'ariaLabel':_0x198889,'ariaLabelledBy':void 0x0,'isOn':!0x1,'icon':IconPreviewMergeFields,'tooltip':!0x0}),this['listenTo'](_0x1609d2,'execute',_0x2cb3b9=>{const {commandValue:_0x21b551}=_0x2cb3b9['source'];_0x189f27['execute']('previewMergeFields',_0x21b551),_0x189f27['editing']['view']['focus']();}),_0x1609d2;}),_0x189f27['ui']['componentFactory']['add']('menuBar:previewMergeFields',_0x195643=>{const _0x5b93ab=new MenuBarMenuView(_0x195643),_0x50ad96=_0x189f27['commands']['get']('previewMergeFields');_0x5b93ab['buttonView']['set']({'label':getTranslation$8(_0x195643,'Merge\x20fields\x20preview'),'icon':IconPreviewMergeFields}),_0x5b93ab['bind']('isEnabled')['to'](_0x50ad96);const _0x1aebbe=new MenuBarMenuListView(_0x195643);_0x1aebbe['set']({'ariaLabel':getTranslation$8(_0x195643,'Merge\x20fields\x20preview')});for(const _0x4a7945 of cloneDeep(_0x930414)){const _0x20a626=new MenuBarMenuListItemView(_0x195643,_0x5b93ab),_0x145e93=new MenuBarMenuListItemButtonView(_0x195643);_0x4a7945['model']['bind']('isOn')['to'](_0x50ad96,'value',_0x563620=>_0x563620===_0x4a7945['model']['commandValue']),_0x145e93['isToggleable']=!0x0,_0x145e93['bind'](...Object['keys'](_0x4a7945['model']))['to'](_0x4a7945['model']),_0x145e93['delegate']('execute')['to'](_0x5b93ab),_0x145e93['on']('execute',_0x15341b=>{const {commandValue:_0x4ca4c6}=_0x15341b['source'];_0x189f27['execute']('previewMergeFields',_0x4ca4c6),_0x189f27['editing']['view']['focus']();}),_0x20a626['children']['add'](_0x145e93),_0x1aebbe['items']['add'](_0x20a626);}return _0x5b93ab['panelView']['children']['add'](_0x1aebbe),_0x5b93ab;}),this['_balloon']=_0x189f27['plugins']['get'](ContextualBalloon),this['listenTo'](_0x189f27['ui'],'update',()=>{this['_updateBalloonVisibility']();},{'priority':'low'}),this['listenTo'](_0x189f27['ui']['focusTracker'],'change:isFocused',(_0x4758a5,_0xf85e45,_0x50ccfe)=>{this['_balloon']['visibleView']&&this['_balloon']['visibleView']===this['_balloonPanelView']&&(_0x50ccfe?this['_updateBalloonVisibility']():this['_hideBalloon']());},{'priority':'low'}),this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4d3a71=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d5dc0;for(const _0x412545 in _0x4d3a71){const _0x30532e=_0x412545,_0x395e39=_0x4d3a71[_0x30532e];if('mergeFieldsLicenseKeyValid'==_0x395e39||'mergeFieldsLicenseKeyInvalid'==_0x395e39||'mergeFieldsLicenseKeyExpired'==_0x395e39||'mergeFieldsLicenseKeyDomainLimit'==_0x395e39||'mergeFieldsLicenseKeyNotAllowed'==_0x395e39||'mergeFieldsLicenseKeyEvaluationLimit'==_0x395e39||'mergeFieldsLicenseKeyTrialLimit'==_0x395e39||'mergeFieldsLicenseKeyUsageLimit'==_0x395e39){delete _0x4d3a71[_0x30532e],_0x5d5dc0=_0x395e39,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'mergeFieldsLicenseKeyInvalid'==_0x5d5dc0&&_0x4d3a71['_showLicenseError']('invalid'),'mergeFieldsLicenseKeyExpired'==_0x5d5dc0&&_0x4d3a71['_showLicenseError']('expired'),'mergeFieldsLicenseKeyDomainLimit'==_0x5d5dc0&&_0x4d3a71['_showLicenseError']('domainLimit'),'mergeFieldsLicenseKeyNotAllowed'==_0x5d5dc0&&_0x4d3a71['_showLicenseError']('featureNotAllowed','MergeFields'),'mergeFieldsLicenseKeyEvaluationLimit'==_0x5d5dc0&&_0x4d3a71['_showLicenseError']('evaluationLimit'),'mergeFieldsLicenseKeyTrialLimit'==_0x5d5dc0&&_0x4d3a71['_showLicenseError']('trialLimit'),'mergeFieldsLicenseKeyUsageLimit'==_0x5d5dc0&&_0x4d3a71['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_updateBalloonVisibility'](){const _0x5e2d4d=this['editor']['editing']['view']['document']['selection']['getSelectedElement'](),_0xaa2162=!(!_0x5e2d4d||!_0x5e2d4d['getCustomProperty']('mergeFieldStatus'));if(this['_balloon']['hasView'](this['_balloonPanelView'])&&this['_balloon']['visibleView']===this['_balloonPanelView']){if(_0xaa2162){const _0x2e0c81=_0x5e2d4d['getCustomProperty']('mergeFieldStatus');this['_balloonPanelView']['text']=getTranslation$8(this['editor']['locale'],_0x2e0c81),this['_balloon']['updatePosition'](this['_getBalloonPositionData']());}else this['_hideBalloon']();}else{if(_0xaa2162){const _0x5c43b9=_0x5e2d4d['getCustomProperty']('mergeFieldStatus');this['_showBalloon'](getTranslation$8(this['editor']['locale'],_0x5c43b9));}}}['_showBalloon'](_0x764881){this['_balloonPanelView']||(this['_balloonPanelView']=new MergeFieldsPanelView(this['editor']['locale']),this['_balloonPanelView']['text']=_0x764881),this['_balloon']['hasView'](this['_balloonPanelView'])||(this['_balloon']['add']({'stackId':'mergeFieldsStatus','view':this['_balloonPanelView'],'position':this['_getBalloonPositionData']()}),this['_balloon']['showStack']('mergeFieldsStatus'));}['_getBalloonPositionData'](){const _0x342a35=this['editor']['editing']['view'];return{'target':()=>{const _0x154c02=_0x342a35['document']['selection']['getFirstRange'](),_0x32f4f8=_0x342a35['domConverter']['mapViewToDom'](_0x154c02['getContainedElement']());return _0x32f4f8?Array['from'](_0x32f4f8['getClientRects']())[0x0]:_0x342a35['domConverter']['viewRangeToDom'](_0x154c02);}};}['_hideBalloon'](){this['_balloon']['remove'](this['_balloonPanelView']);}['_removeDefaultValuesPreviewIfUnnecessary'](){if(Object['values'](this['editor']['plugins']['get']('MergeFieldsEditing')['getDefaultValues']())['some'](_0x47fa61=>_0x47fa61))return;const _0x3c1038=this['editor']['config']['get']('mergeFields.previewModes');_0x3c1038['indexOf']('$defaultValues')>-0x1&&_0x3c1038['length']>0x1&&(_0x3c1038['splice'](_0x3c1038['indexOf']('$defaultValues'),0x1),this['editor']['config']['set']('mergeFields.previewModes',_0x3c1038));}['_removeMenuBarButtonIfUnnecessary'](){const _0x5dff9f=this['editor']['config'];if(_0x5dff9f['get']('mergeFields.previewModes')){const _0x570785=_0x5dff9f['get']('mergeFields.previewModes');if(0x1===_0x570785['length']){if(_0x570785['includes']('$dataSets'))0x1===_0x5dff9f['get']('mergeFields.dataSets')['length']&&_0x51dd9a();else _0x51dd9a();}}function _0x51dd9a(){const _0x2ca7a2=_0x5dff9f['get']('menuBar.removeItems');_0x2ca7a2?(_0x2ca7a2['push']('menuBar:previewMergeFields'),_0x5dff9f['set']('menuBar.removeItems',_0x2ca7a2)):_0x5dff9f['set']('menuBar.removeItems',['menuBar:previewMergeFields']);}}['_setupMentionConfiguration'](){const _0x3dc21a=this['editor'],_0x5e86cb=_0x3dc21a['config']['get']('mention.feeds'),_0x2d1ca0=_0x3dc21a['config']['get']('mergeFields.prefix');_0x5e86cb['push']({'marker':_0x2d1ca0,'dropdownLimit':0xa,'feed':_0x3c452e=>_0x3dc21a['plugins']['get']('MergeFieldsEditing')['flattenedMergeFieldDefinitions']['filter'](_0xafc4d6=>{const _0xc707be=_0x3dc21a['commands']['get']('insertMergeField')['isEnabled'],_0x2e89db=_0x3dc21a['commands']['get']('insertMergeFieldBlock')['isEnabled'],_0x16a5de=_0x3dc21a['commands']['get']('insertMergeFieldImage')['isEnabled'],_0x30069f=_0x3dc21a['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0xafc4d6['id']);if('text'===_0x30069f&&!_0xc707be)return!0x1;if('block'===_0x30069f&&!_0x2e89db)return!0x1;if('image'===_0x30069f&&!_0x16a5de)return!0x1;return(_0x3dc21a['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xafc4d6['id'])||_0xafc4d6['id'])['toLowerCase']()['includes'](_0x3c452e['toLowerCase']());}),'itemRenderer':_0x212929=>{const _0x268883=document['createElement']('button');return _0x268883['innerHTML']=''+(_0x212929['label']||_0x212929['id']),_0x268883;}}),_0x3dc21a['config']['set']('mention.feeds',_0x5e86cb);}['_overrideMentionExecuteListener'](){const _0x49d21f=this['editor'];_0x49d21f['commands']['get']('mention')['on']('execute',(_0x2fb826,_0x1474b1)=>{const _0x3e8d5e=_0x1474b1[0x0];_0x3e8d5e['marker']===_0x49d21f['config']['get']('mergeFields.prefix')&&_0x49d21f['model']['change'](_0x4efc20=>{_0x4efc20['remove'](_0x3e8d5e['range']);const _0xe81b9a=_0x3e8d5e['mention']['id'],_0x22f94b=_0x49d21f['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0xe81b9a);'text'===_0x22f94b?_0x49d21f['execute']('insertMergeField',_0xe81b9a):'block'===_0x22f94b?_0x49d21f['execute']('insertMergeFieldBlock',_0xe81b9a,!0x1):_0x49d21f['execute']('insertMergeFieldImage',_0xe81b9a,{'breakBlock':!0x0}),_0x2fb826['stop']();});},{'priority':'high'});}}function createInsertMergeFieldDropdown(_0x523c59){const _0x406cc3=createDropdown(_0x523c59);return _0x406cc3['set']({'class':'ck-insert-merge-field-dropdown','isEnabled':!0x0}),_0x406cc3['buttonView']['set']({'label':getTranslation$8(_0x523c59,'Insert\x20merge\x20field'),'icon':IconInsertMergeField,'tooltip':!0x0}),_0x406cc3;}function createMergeFieldsListView(_0x511ca3,_0x43f8d1,_0x40a74c){const _0x5787a5=new MergeFieldsListView(_0x511ca3),_0x3e2806=[],_0xf0f54e=[];for(const _0x5e739a of _0x43f8d1)if('groupId'in _0x5e739a){const _0x5d9715=createMergeFieldsGroupView(_0x511ca3,_0x5e739a['groupLabel']||_0x5e739a['groupId'],_0x5e739a['definitions'],_0x40a74c);_0x5d9715['delegate']('execute')['to'](_0x5787a5),_0xf0f54e['push'](_0x5d9715);}else _0x3e2806['push'](_0x5e739a);if(_0x3e2806['length']){const _0xa407a5=createMergeFieldsGroupView(_0x511ca3,'Other',_0x3e2806,_0x40a74c);_0xa407a5['delegate']('execute')['to'](_0x5787a5),_0xf0f54e['push'](_0xa407a5);}return _0x5787a5['items']['addMany'](_0xf0f54e),_0x5787a5;}function createMergeFieldsGroupView(_0x34e6cd,_0x3466b6,_0x187a3a,_0x4e43d9){const _0x585954=new ListItemGroupView(_0x34e6cd,new LabelWithHighlightView());_0x585954['label']=_0x3466b6;for(const _0x37d280 of _0x187a3a){let _0x4a0bf7;_0x4a0bf7='block'===_0x37d280['type']?_0x4e43d9['insertBlock']:'image'===_0x37d280['type']?_0x4e43d9['insertImage']:_0x4e43d9['insertInline'];const _0x22c7e3=createMergeFieldListItemView(_0x34e6cd,_0x37d280,_0x4a0bf7);_0x22c7e3['delegate']('execute')['to'](_0x585954),_0x585954['items']['add'](_0x22c7e3);}return _0x585954;}function createMergeFieldListItemView(_0x2a6835,_0x1713fc,_0xfdf830){const _0x437843=new ListItemView(_0x2a6835),_0x57d86f=new ButtonLabelWithHighlightView(),_0x47329b=new ButtonView(_0x2a6835,_0x57d86f);return _0x437843['children']['add'](_0x47329b),_0x47329b['set']({'label':_0x1713fc['label']||_0x1713fc['id'],'withText':!0x0}),_0x47329b['bind']('isEnabled')['to'](_0xfdf830),_0x47329b['on']('execute',()=>{_0x437843['fire']('execute',_0x1713fc['id']);}),_0x437843;}function createMergeFieldsSearchTextView(_0x3e2c08,_0x106669){return new SearchTextView(_0x3e2c08,{'filteredView':_0x106669,'queryView':{'label':getTranslation$8(_0x3e2c08,'Search\x20merge\x20field')},'class':'ck-merge-fields-search','infoView':{'text':{'notFound':{'primary':getTranslation$8(_0x3e2c08,'No\x20merge\x20fields\x20found')},'noSearchableItems':{'primary':getTranslation$8(_0x3e2c08,'No\x20merge\x20fields\x20available')}}}});}function createMenuBarSubmenu(_0x43f1a4,_0x1e2bef,_0x437487){const _0x3ce38b=new MenuBarMenuView(_0x43f1a4),_0xbbb768=new MenuBarMenuListView(_0x43f1a4);for(const _0x28fb0a of _0x1e2bef['definitions']){let _0x100a99;_0x100a99='block'===_0x28fb0a['type']?_0x437487['insertBlock']:'image'===_0x28fb0a['type']?_0x437487['insertImage']:_0x437487['insertInline'];const _0x4c063e=createMenuBarListItem(_0x43f1a4,_0x28fb0a,_0x3ce38b,_0x100a99);_0xbbb768['items']['add'](_0x4c063e);}return _0x3ce38b['set']({'class':'ck-menu-bar__merge-fields-submenu'}),_0x3ce38b['buttonView']['set']({'label':_0x1e2bef['groupLabel']||_0x1e2bef['groupId']}),_0x3ce38b['panelView']['children']['add'](_0xbbb768),_0x3ce38b;}function createMenuBarListItem(_0x4eb576,_0x4eb333,_0x3c3de9,_0x1858f9){const _0x4a9e95=new MenuBarMenuListItemView(_0x4eb576,_0x3c3de9),_0xfaf3e=new MenuBarMenuListItemButtonView(_0x4eb576);return _0xfaf3e['set']({'label':_0x4eb333['label']||_0x4eb333['id']}),_0x4a9e95['delegate']('execute')['to'](_0x3c3de9),_0x4a9e95['children']['add'](_0xfaf3e),_0xfaf3e['bind']('isEnabled')['to'](_0x1858f9),_0xfaf3e['on']('execute',()=>{_0x4a9e95['fire']('execute',_0x4eb333['id']);}),_0x4a9e95;}class MergeFields extends Plugin{static get['requires'](){return[MergeFieldsEditing,MergeFieldsUI];}static get['pluginName'](){return'MergeFields';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const COLUMN_GAP=0x64,EDITING_RENDER_TIMEOUT=0xc8;class PaginationLookup extends Plugin{['_recalculatePageBreaksDebounced']=debounce$1(()=>this['_recalculatePageBreaks'](),EDITING_RENDER_TIMEOUT);['_pagesContainer']=null;static get['pluginName'](){return'PaginationLookup';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){if(this['set']({'pageBreaks':[]}),!this['editor']['config']['get']('pagination'))return void logWarning('pagination-config-not-found',this['editor']['config']);const _0x1b998c=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x1b998c),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x138b76,_0x50907e,_0x1b5a96)=>{_0x1b5a96&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){checkLicense$7(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x443d10=this['editor'],_0x1fd04e=_0x443d10['editing']['view'],_0xda243b=this['_getAttachedDomRoot']();if(!_0xda243b||0x0===_0xda243b['childElementCount'])return void _0x443d10['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x4b526a,pageHeight:_0x52c83e}=_0x443d10['config']['get']('pagination'),{top:_0x5352e1,left:_0x37ace8,bottom:_0x4748af,right:_0x90f37f}=this['_configuredPaddings'];this['_pagesContainer']=new View(_0x443d10['locale']);const _0xef35df=this['_pagesContainer'];_0xef35df['set']('class',''),_0xef35df['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x4b526a,'width':_0x4b526a,'height':'calc(\x20'+_0x52c83e+'\x20-\x20'+_0x5352e1+'\x20-\x20'+_0x4748af+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x90f37f+'\x200\x20'+_0x37ace8,'columnGap':'calc('+_0x37ace8+'\x20+\x20'+_0x90f37f+'\x20+\x20'+COLUMN_GAP+'px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0xef35df['bindTemplate']['to']('class')}}),_0xef35df['render'](),_0xda243b['parentNode']['insertBefore'](_0xef35df['element'],_0xda243b['nextSibling']),this['listenTo'](_0x1fd04e,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x24e89e of this['editor']['editing']['view']['domRoots']['values']())if(_0x24e89e['ownerDocument']['body']['contains'](_0x24e89e))return _0x24e89e;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x990788=this['editor']['editing']['view'],_0x42260f=this['_pagesContainer'],_0x5f27b5=this['_getAttachedDomRoot']();if(!_0x5f27b5)return Promise['resolve']();for(_0x42260f['class']=['ck-reset','ck-pagination-view',..._0x5f27b5['classList']]['join']('\x20');_0x42260f['element']['firstChild'];)_0x42260f['element']['firstChild']['remove']();const _0xa8e8e5=Array['from'](_0x990788['domRoots']);_0xa8e8e5['sort'](([,_0x4ee3ce],[,_0x32a59a])=>_0x4ee3ce['compareDocumentPosition'](_0x32a59a)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x30e8d8,_0xbd075d]of _0xa8e8e5){const _0x454972=_0xbd075d['cloneNode'](!0x0);'attributeStyleMap'in _0x454972&&_0x454972['attributeStyleMap']['clear'](),_0x454972['dataset']['rootName']=_0x30e8d8,_0x454972['className']='ck-content\x20ck-pagination_enabled',_0x454972['removeAttribute']('id'),_0x454972['tabIndex']=-0x1,_0x42260f['element']['append'](_0x454972);}const _0x25beec=Array['from'](_0x42260f['element']['querySelectorAll']('img'));return allImagesAreReady(_0x25beec)['then'](()=>{for(const _0x3c7fda of _0x25beec['filter'](_0x40cd2a=>!_0x40cd2a['closest']('table')))if(_0x3c7fda['offsetParent']){const _0x369509=_0xd4e5e['window']['getComputedStyle'](_0x3c7fda),_0xba2022=_0xd4e5e['document']['createElement']('span');for(const _0x44d511 of _0x369509)_0xba2022['style']['setProperty'](_0x44d511,_0x369509[_0x44d511]);_0xba2022['style']['backgroundImage']='url(\x20'+_0x3c7fda['src']+'\x20)',_0xba2022['style']['breakInside']='avoid','PICTURE'==_0x3c7fda['parentElement']?.['tagName']?_0x3c7fda['parentElement']['replaceWith'](_0xba2022):_0x3c7fda['replaceWith'](_0xba2022);}return nextAnimationFrame();})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x5435a7=this['_pagesContainer']['element'];if(!_0x5435a7['ownerDocument']['body']['contains'](_0x5435a7))return;const _0x198847=new Rect(_0x5435a7)['excludeScrollbarsAndBorders'](),_0x1f52ac=Math['floor'](_0x198847['width']+COLUMN_GAP),_0x2ca800=findPageStarterInfos(_0x5435a7,Math['floor'](_0x198847['left']-_0x5435a7['scrollLeft']),_0x1f52ac,_0x198847['height'])['map'](_0x4a66ca=>this['_mapPageStarterInfoToPageBreakInfo'](_0x4a66ca));_0x2ca800['every'](_0x55d468=>!!_0x55d468)&&(this['pageBreaks']=_0x2ca800);}['_mapPageStarterInfoToPageBreakInfo'](_0x12bee6){const _0x363cdb=this['editor']['editing']['view'],_0x7ca657=this['editor']['editing']['mapper'],_0x35187a=_0x363cdb['domConverter'],_0x431b45=_0x12bee6['path']['shift'](),_0x3680e3=this['_pagesContainer']['element']['childNodes'][_0x431b45]['dataset']['rootName'],_0x4f8d9b=_0x363cdb['getDomRoot'](_0x3680e3);if(!_0x4f8d9b)return null;const _0x512618=pageElementToViewElement(_0x4f8d9b,_0x12bee6);if(!_0x512618)return null;const _0x375bd3=_0x35187a['domPositionToView'](_0x512618,_0x12bee6['textOffset']||0x0);return _0x375bd3?'manual'==_0x12bee6['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x375bd3,_0x512618):'text'==_0x12bee6['type']&&_0x7ca657['toModelPosition'](_0x375bd3)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x375bd3,_0x512618,_0x12bee6['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x375bd3,_0x512618,_0x12bee6['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x597758,_0x52b9fa){const _0x511675=this['editor']['model'],_0x5495f6=this['editor']['editing']['mapper']['toModelElement'](_0x597758['parent']),_0x2e3699=_0x511675['createRangeOn'](_0x5495f6);return new PageBreakInfo({'type':'manual','modelRange':_0x2e3699,'domNode':_0x52b9fa,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x5e420f,_0x3066c7,_0x3eed4c){const _0x2fa4ca=this['editor']['model'],_0x4366ef=this['editor']['editing']['mapper'],_0x53966c=this['editor']['editing']['view']['domConverter'];if(_0x3eed4c>=_0x3066c7['length'])return null;const _0x292f20=_0x4366ef['toModelPosition'](_0x5e420f),_0x211ab0=_0x2fa4ca['createRange'](_0x292f20),_0x35bbb6=_0x4366ef['findMappedViewAncestor'](_0x5e420f),_0x34017a=_0x53966c['mapViewToDom'](_0x35bbb6);return new PageBreakInfo({'type':'text','modelRange':_0x211ab0,'domNode':_0x3066c7,'offset':findOffsetTopForTextOffset(_0x3066c7,_0x3eed4c,_0x34017a)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x4959fc,_0x2b3153,_0x265575){const _0x427b48=this['editor']['model'],_0x37f549=this['editor']['editing'],_0x4daf3d=_0x37f549['mapper'],_0x11d122=_0x37f549['view']['domConverter'],_0x4ba4dd=_0x4daf3d['findMappedViewAncestor'](_0x4959fc),_0xb902dc=_0x4daf3d['toModelElement'](_0x4ba4dd),_0x11fa6f=getTopMostParentBlockTouchingPosition(_0x427b48['createPositionBefore'](_0xb902dc))||_0xb902dc;let _0x32c61f=_0x4daf3d['toViewElement'](_0x11fa6f),_0x11a441=_0x427b48['createRangeOn'](_0x11fa6f);const _0x569e2b=_0x427b48['createPositionBefore'](_0x11fa6f)['nodeBefore'];if(_0x569e2b&&_0x569e2b['is']('element','imageBlock')){const _0x37a394=_0x4daf3d['toViewElement'](_0x569e2b),_0x645fa2=_0x11d122['mapViewToDom'](_0x37a394),_0x5ec999=_0xd4e5e['window']['getComputedStyle'](_0x645fa2)['float'];'left'!=_0x5ec999&&'right'!=_0x5ec999||(_0x11a441=_0x427b48['createRangeOn'](_0x569e2b));}for(;_0x32c61f['parent']!==_0x32c61f['root']&&0x0===_0x32c61f['index'];)_0x32c61f=_0x32c61f['parent'];const _0x3f9e25=new Rect(isHTMLElement(_0x2b3153)?_0x2b3153:createDomRangeOn(_0x2b3153)),_0x2584e9=_0x265575?_0x3f9e25['height']-_0x265575:0x0,_0x22559c=_0x11d122['mapViewToDom'](_0x32c61f),_0x3f9952=new Rect(_0x22559c);return new PageBreakInfo({'type':'element','modelRange':_0x11a441,'domNode':_0x22559c,'offset':Math['round'](_0x2584e9)||_0x4ba4dd!=findBlockAncestor(_0x4959fc)?_0x2584e9+_0x3f9e25['top']-_0x3f9952['top']:0x0});}get['_configuredPaddings'](){const _0x10afd0=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x10afd0);}static['_findPageStarterInfos'](_0x2c9d1c,_0x3b8d8e,_0x5dbf39,_0x32698f,_0x1ad7d9){return findPageStarterInfos(_0x2c9d1c,_0x3b8d8e,_0x5dbf39,_0x32698f,_0x1ad7d9);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x88f573,modelRange:_0x103b24,domNode:_0x2dcf3f,offset:_0x42e1bf}){this['type']=_0x88f573,this['modelRange']=_0x103b24,this['_domNode']=_0x2dcf3f,this['_offset']=_0x42e1bf;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x2a43e6=new Rect(isHTMLElement(this['_domNode'])?this['_domNode']:createDomRangeOn(this['_domNode']));return'manual'==this['type']?_0x2a43e6['top']+_0x2a43e6['height']/0x2:_0x2a43e6['top']+this['_offset'];}}function isPageBreak(_0x3cfa84){return!(!_0x3cfa84||!isHTMLElement(_0x3cfa84))&&Boolean(_0x3cfa84['classList']['contains']('page-break')||_0x3cfa84['closest']('.page-break'));}function pageElementToViewElement(_0x43b865,_0x306303){let _0x543194=_0x43b865;for(const _0x2ecd82 of _0x306303['path']){if(!_0x543194)return null;_0x543194=_0x543194['childNodes'][_0x2ecd82];}return _0x543194;}function findOffsetTopForTextOffset(_0x209349,_0x147e7e,_0x16ed1d){const _0x5a406b=createDomRangeOn(_0x209349),_0x16a474=createDomRangeIn(_0x16ed1d);let _0x5379b3;_0x5379b3=0x0==_0x147e7e?createDomRangeMultiNode(_0x16a474['startContainer'],_0x16a474['startOffset'],_0x209349['parentNode'],Array['from'](_0x209349['parentNode']['childNodes'])['indexOf'](_0x209349)):createDomRangeMultiNode(_0x16a474['startContainer'],_0x16a474['startOffset'],_0x209349,_0x147e7e);const _0x3ace4f=createDomRangeMultiNode(_0x209349,_0x147e7e,_0x16a474['endContainer'],_0x16a474['endOffset']),_0x1966c9=new Rect(_0x5379b3)['bottom'];return(new Rect(_0x3ace4f)['top']+_0x1966c9)/0x2-new Rect(_0x5a406b)['top'];}function getTopMostParentBlockTouchingPosition(_0x4b1027){const _0x509fef=_0x4b1027['parent'],_0x19365f=_0x509fef['root']['document']['model'],_0x36ad37=_0x509fef['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x3a4ffb=null;for(const _0x23dbca of _0x36ad37){if(_0x23dbca['is']('rootElement'))return _0x3a4ffb;if(!_0x19365f['createPositionBefore'](_0x23dbca)['isTouching'](_0x4b1027))return _0x3a4ffb;_0x3a4ffb=_0x23dbca;}}function findBlockAncestor(_0x5d403a){let _0x5eaa48=_0x5d403a['parent'];for(;_0x5eaa48['is']('$text')||_0x5eaa48['is']('attributeElement');)_0x5eaa48=_0x5eaa48['parent'];return _0x5eaa48;}function allImagesAreReady(_0x3610a){return Promise['all'](_0x3610a['map'](_0x10b658=>Promise['race']([imageReady(_0x10b658),timeout(0x3e8)])));}function imageReady(_0x1460fc){return _0x1460fc['hasAttribute']('width')&&_0x1460fc['hasAttribute']('height')?Promise['resolve']():new Promise(_0x20d1d3=>{function _0x23f3eb(){_0x1460fc['removeEventListener']('load',_0x23f3eb),_0x1460fc['removeEventListener']('error',_0x23f3eb),_0x20d1d3();}_0x1460fc['complete']?_0x20d1d3():(_0x1460fc['addEventListener']('load',_0x23f3eb),_0x1460fc['addEventListener']('error',_0x23f3eb));});}function timeout(_0x166889){return new Promise(_0x970f1a=>setTimeout(_0x970f1a,_0x166889));}function nextAnimationFrame(){return new Promise(_0x21bd59=>_0xd4e5e['window']['requestAnimationFrame'](()=>_0x21bd59()));}function createDomRangeOn(_0x5de3e5){const _0x14a0c4=_0xd4e5e['document']['createRange']();return _0x14a0c4['selectNode'](_0x5de3e5),_0x14a0c4;}function createDomRangeIn(_0x366b3f){const _0x1e1bb0=_0xd4e5e['document']['createRange']();return _0x1e1bb0['selectNodeContents'](_0x366b3f),_0x1e1bb0;}function createDomRange(_0x40a3e1,_0x2b81ae,_0x2fdb0c){const _0x294418=_0xd4e5e['document']['createRange']();return _0x294418['setStart'](_0x40a3e1,_0x2b81ae),_0x294418['setEnd'](_0x40a3e1,_0x2fdb0c),_0x294418;}function createDomRangeMultiNode(_0x43b285,_0x2157b2,_0x375fe4,_0x21c0af){const _0x540d6e=_0xd4e5e['document']['createRange']();return _0x540d6e['setStart'](_0x43b285,_0x2157b2),_0x540d6e['setEnd'](_0x375fe4,_0x21c0af),_0x540d6e;}function findPageStarterInfos(_0x542642,_0x5a823e,_0x9e9b2f,_0x488dc0,_0x5f546a){const _0x3e2584=[];for(const [_0xdb9d4,_0x571388]of _0x542642['childNodes']['entries']()){let _0x2e96f5=[];isHTMLElement(_0x571388)&&_0x571388['offsetParent']&&['static','relative']['includes'](_0xd4e5e['window']['getComputedStyle'](_0x571388)['position'])?_0x2e96f5=findPageStartersInElementNode(_0x571388,_0xdb9d4,_0x5a823e,_0x9e9b2f,_0x488dc0,_0x5f546a):isText(_0x571388)&&(_0x2e96f5=findPageStartersInTextNode(_0x571388,_0xdb9d4,_0x5a823e,_0x9e9b2f,_0x5f546a)),_0x2e96f5['length']&&(_0x3e2584['push'](..._0x2e96f5),_0x5a823e+=_0x2e96f5['length']*_0x9e9b2f,_0x5f546a=!0x1);}return _0x3e2584;}function findPageStartersInElementNode(_0xff2885,_0x55e6a6,_0x19fd36,_0x42066f,_0x3aa64b,_0x2991c8){const _0x24ab28=[];if(isPageBreak(_0xff2885['previousSibling'])&&(_0x24ab28['push']({'type':'manual','offset':0x0,'path':[_0x55e6a6-0x1]}),_0x2991c8=!0x0),'table-row'==_0xd4e5e['window']['getComputedStyle'](_0xff2885)['display']){let _0x36e011=0x0,_0x4a7ba8=!0x1;for(const _0x41d3d4 of _0xff2885['getClientRects']())_0x36e011+=_0x41d3d4['height'],_0x41d3d4['left']>=_0x19fd36&&(_0x4a7ba8=!0x0);if(_0x36e011<_0x3aa64b&&_0x4a7ba8)return _0x24ab28['push']({'type':'element','offset':0x0,'path':[_0x55e6a6]}),_0x24ab28;}const _0x29cfd5=_0xff2885['closest']('figure.image');if(_0x29cfd5&&shouldIgnoreFigure(_0x29cfd5)){const _0x342d6a=_0xd4e5e['window']['getComputedStyle'](_0x29cfd5)['float'];if('left'==_0x342d6a||'right'==_0x342d6a)return _0x24ab28;}const _0x3c6e28=findPageStarterInfos(_0xff2885,_0x19fd36,_0x42066f,_0x3aa64b,_0x2991c8);if(_0x3c6e28['length']){for(const _0x570d93 of _0x3c6e28)_0x24ab28['push']({'type':_0x570d93['type'],'offset':_0x570d93['offset'],'textOffset':_0x570d93['textOffset'],'path':[_0x55e6a6,..._0x570d93['path']]}),_0x19fd36+=_0x42066f,_0x2991c8=!0x1;return _0x24ab28;}return _0x24ab28['push'](...findPageStartersInLeafElementNode(_0xff2885,_0x55e6a6,_0x19fd36,_0x42066f,_0x2991c8)),_0x24ab28;}function findPageStartersInLeafElementNode(_0x1e46d2,_0x29ba51,_0x931399,_0x541f8f,_0x1037c7){const _0x5a87e7=[];if('table-cell'==_0xd4e5e['window']['getComputedStyle'](_0x1e46d2)['display'])return[];const _0x1a6cd4=[];for(const _0x41dfb2 of _0x1e46d2['getClientRects']())if(_0x41dfb2['left']>=_0x931399){for(const _0xbad6eb of _0x1a6cd4)_0xbad6eb['height']+=_0x41dfb2['height'];_0x1a6cd4['push']({'height':_0x41dfb2['height']}),_0x931399+=_0x541f8f;}for(const _0x108d9d of _0x1a6cd4)_0x1037c7||_0x5a87e7['push']({'type':'element','offset':_0x108d9d['height'],'textOffset':0x0,'path':[_0x29ba51]}),_0x1037c7=!0x1;return _0x5a87e7;}function findPageStartersInTextNode(_0x4fd19b,_0x5d7b67,_0x3224e,_0x1eb919,_0x2f1608){const _0x29752e=createDomRangeOn(_0x4fd19b),_0x510554=[];let _0x20cc71=0x0;for(const _0x1f20f1 of _0x29752e['getClientRects']())if(_0x1f20f1['left']>=_0x3224e){const _0x13aca3=findLastTextOffsetOnPage(_0x4fd19b,_0x20cc71,_0x3224e,_0x1eb919);_0x2f1608||_0x510554['push']({'type':'text','path':[_0x5d7b67],'textOffset':_0x13aca3}),_0x20cc71=_0x13aca3,_0x3224e+=_0x1eb919,_0x2f1608=!0x1;}return _0x510554;}function findLastTextOffsetOnPage(_0x42a14c,_0x32942f,_0x1a89df,_0x5666e1){let _0x396bb1=_0x32942f,_0x5e9b59=_0x42a14c['length'];for(;_0x5e9b59-_0x396bb1>0x1;){const _0x3247cb=Math['ceil']((_0x396bb1+_0x5e9b59)/0x2);domRangeContainsPageBreak(createDomRange(_0x42a14c,_0x396bb1,_0x3247cb),_0x1a89df,_0x5666e1)?_0x5e9b59=_0x3247cb:_0x396bb1=_0x3247cb;}return _0x396bb1;}function domRangeContainsPageBreak(_0x366270,_0x1e18b8,_0x1edf76){for(const _0xf79cd3 of _0x366270['getClientRects']())if(_0xf79cd3['left']>=_0x1e18b8&&_0xf79cd3['left']<_0x1e18b8+_0x1edf76)return!0x0;return!0x1;}function shouldIgnoreFigure(_0x105d75){let _0x1365b8=!0x1;const _0x3e8f59=_0x105d75['parentElement']['dataset']['rootName'],_0x363b48=_0x105d75['nextElementSibling'],_0x3c611d=_0x105d75['previousElementSibling'],_0x4bdf45=_0x363b48&&_0xd4e5e['window']['getComputedStyle'](_0x363b48)['float'],_0x129c9b=_0x363b48&&'ck-fake-selection-container'===_0x363b48['className'];return!_0x3e8f59||_0x363b48||_0x3c611d||(_0x1365b8=!0x0),_0x3e8f59&&!_0x3c611d&&_0x129c9b&&(_0x1365b8=!0x0),_0x3e8f59&&!_0x3c611d&&'none'!==_0x4bdf45&&(_0x1365b8=!0x0),!_0x1365b8;}function isHTMLElement(_0x57cc94){return _0x57cc94['nodeType']==Node['ELEMENT_NODE'];}function isText(_0x5709d1){return _0x5709d1['nodeType']==Node['TEXT_NODE'];}async function checkLicense$7(_0xa65f9b){const _0x4c9a0d=_0x187f8d([0x63,0x76,0x71,0x43,0x59,0x4d,0x38,0x69,0x61,0x39,0x54,0x44,0x50,0x36,0x6e,0x35,0x64,0x6d,0x72,0x7a,0x62,0x4a,0x74,0x6c,0x6a,0x30,0x33,0x46,0x77,0x4c,0x78,0x49,0x70,0x45,0x57,0x53,0x55,0x47,0x37,0x41,0x52,0x75,0x32,0x31,0x4b,0x66,0x51,0x6f,0x58,0x4e,0x79,0x67,0x34,0x5a,0x42,0x65,0x4f,0x68,0x73,0x6b,0x48,0x56]),_0x336993=window[_0x187f8d([0x44,0x61,0x74,0x65])][_0x187f8d([0x6e,0x6f,0x77])](),_0x459034=_0xa65f9b[_0x187f8d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x274e83=new window[(_0x187f8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b9227=>{_0x459034[_0x187f8d([0x6f,0x6e,0x63,0x65])](_0x187f8d([0x72,0x65,0x61,0x64,0x79]),_0x1b9227);}),_0x4e922e={[_0x187f8d([0x6b,0x74,0x79])]:_0x187f8d([0x45,0x43]),[_0x187f8d([0x75,0x73,0x65])]:_0x187f8d([0x73,0x69,0x67]),[_0x187f8d([0x63,0x72,0x76])]:_0x187f8d([0x50,0x2d,0x32,0x35,0x36]),[_0x187f8d([0x78])]:_0x187f8d([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x187f8d([0x79])]:_0x187f8d([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x187f8d([0x61,0x6c,0x67])]:_0x187f8d([0x45,0x53,0x32,0x35,0x36])},_0x5abd9c=_0x459034[_0x187f8d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x187f8d([0x67,0x65,0x74])](_0x187f8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0xc94681=await(async function(){let _0x284e0a,_0x132d95=null,_0x17b3c6=null;try{if(_0x5abd9c==_0x187f8d([0x47,0x50,0x4c]))return _0x187f8d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x284e0a=(function(){const _0x963139=_0x5abd9c[_0x187f8d([0x73,0x70,0x6c,0x69,0x74])](_0x187f8d([0x2e]));if(0x3!=_0x963139[_0x187f8d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x3d5c87=_0x963139[0x1];return _0x344599(_0x3d5c87);function _0x344599(_0x1c2043){const _0x2d3d50=_0x3c8891(_0x1c2043);return _0x2d3d50&&_0x26345e()?_0x2d3d50:null;function _0x26345e(){const _0x1522c7=_0x2d3d50[_0x187f8d([0x6a,0x74,0x69])],_0x5ea3ae=window[_0x187f8d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1522c7[_0x187f8d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1522c7[_0x187f8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x359ff2={..._0x2d3d50,[_0x187f8d([0x6a,0x74,0x69])]:_0x1522c7[_0x187f8d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1522c7[_0x187f8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x359ff2[_0x187f8d([0x76,0x63])],_0x43787b(_0x359ff2)==_0x5ea3ae;}}}()),!_0x284e0a)return _0x187f8d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x284e0a[_0x187f8d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x17b3c6=function(_0x121911,_0x429461){return new window[(_0x187f8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd069bf=>{if(_0x38bd23())return _0xd069bf(_0x187f8d([0x56,0x61,0x6c,0x69,0x64]));_0x583cdf(),_0x459034[_0x187f8d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x187f8d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51f56a=!0x1;const _0x21fd45=uid();function _0x3328cc(_0x29faa1){return!!_0x29faa1&&(typeof _0x29faa1===_0x187f8d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x29faa1===_0x187f8d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x29faa1[_0x187f8d([0x74,0x68,0x65,0x6e])]===_0x187f8d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x29faa1[_0x187f8d([0x63,0x61,0x74,0x63,0x68])]===_0x187f8d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x107785(_0x6c656b){_0x467ccb(_0x6c656b)[_0x187f8d([0x74,0x68,0x65,0x6e])](_0x133f11=>{if(!_0x133f11||_0x133f11[_0x187f8d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x187f8d([0x6f,0x6b]))return _0x187f8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x11ecf0(_0x43787b(_0x21fd45+_0x429461))!=_0x133f11[_0x187f8d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x187f8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x187f8d([0x56,0x61,0x6c,0x69,0x64]);})[_0x187f8d([0x74,0x68,0x65,0x6e])](_0x13311c=>(_0xb5ccf0(),_0x13311c),()=>{const _0x280492=_0x5eaa6f();return null==_0x280492?(_0xb5ccf0(),_0x187f8d([0x56,0x61,0x6c,0x69,0x64])):_0x187f8d(_0x336993-_0x280492>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x187f8d([0x74,0x68,0x65,0x6e])](_0xd069bf)[_0x187f8d([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd069bf(_0x187f8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5454a9=0x36ee80;function _0xb5ccf0(){const _0x34f91f=_0x187f8d([0x6c,0x6c,0x63,0x74,0x2d])+_0x11ecf0(_0x43787b(_0x121911)),_0x7d35eb=_0x1bf197(_0x11ecf0(window[_0x187f8d([0x4d,0x61,0x74,0x68])][_0x187f8d([0x63,0x65,0x69,0x6c])](_0x336993/_0x5454a9)));window[_0x187f8d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x187f8d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34f91f,_0x7d35eb);}function _0x5eaa6f(){const _0x4f0cc7=_0x187f8d([0x6c,0x6c,0x63,0x74,0x2d])+_0x11ecf0(_0x43787b(_0x121911)),_0x5dbfeb=window[_0x187f8d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x187f8d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f0cc7);return _0x5dbfeb?window[_0x187f8d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bf197(_0x5dbfeb),0x10)*_0x5454a9:null;}function _0x467ccb(_0x5041ed){return new window[(_0x187f8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x260993,_0x2c15d4)=>{_0x5041ed[_0x187f8d([0x74,0x68,0x65,0x6e])](_0x260993,_0x2c15d4),window[_0x187f8d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c15d4,0x1d4c0);});}}_0x459034[_0x187f8d([0x6f,0x6e])](_0x187f8d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x545bf0,_0x44e549)=>{if(_0x44e549[0x0]!=_0x121911)return _0xd069bf(_0x187f8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44e549[0x1]={..._0x44e549[0x1],[_0x187f8d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x21fd45};},{[_0x187f8d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x187f8d([0x68,0x69,0x67,0x68])}),_0x459034[_0x187f8d([0x6f,0x6e])](_0x187f8d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd226a0=>{_0x3328cc(_0xd226a0[_0x187f8d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51f56a=!0x0,_0x107785(_0xd226a0[_0x187f8d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x187f8d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x187f8d([0x6c,0x6f,0x77])}),_0x274e83[_0x187f8d([0x74,0x68,0x65,0x6e])](()=>{_0x51f56a||_0xd069bf(_0x187f8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x38bd23(){return _0x459034[_0x187f8d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x187f8d([0x76,0x69,0x65,0x77])][_0x187f8d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x187f8d([0x61,0x75,0x74,0x6f]);}function _0x583cdf(){_0x459034[_0x187f8d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x187f8d([0x76,0x69,0x65,0x77])][_0x187f8d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x187f8d([0x61,0x75,0x74,0x6f]);}}(_0x284e0a[_0x187f8d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x284e0a[_0x187f8d([0x6a,0x74,0x69])]));const _0x562d5e=await(async function(){let _0x5171ed=!0x0;try{const _0x4498b2=_0x5abd9c[_0x187f8d([0x73,0x70,0x6c,0x69,0x74])](_0x187f8d([0x2e])),[_0x5b8ad0,_0x418b99,_0x452169]=_0x4498b2;return _0x1c741a(_0x5b8ad0),await _0x3aeac8(_0x5b8ad0,_0x418b99,_0x452169),_0x5171ed;}catch{return!0x1;}function _0x1c741a(_0x13e68e){const _0x3d40fc=_0x3c8891(_0x13e68e);_0x3d40fc&&_0x3d40fc[_0x187f8d([0x61,0x6c,0x67])]==_0x187f8d([0x45,0x53,0x32,0x35,0x36])||(_0x5171ed=!0x1);}async function _0x3aeac8(_0x477d70,_0x2ef932,_0x1cd5c9){const _0x454714=window[_0x187f8d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x187f8d([0x66,0x72,0x6f,0x6d])](_0x100c5c(_0x1cd5c9),_0x5673fe=>_0x5673fe[_0x187f8d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5de9de=new window[(_0x187f8d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x187f8d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x477d70+_0x187f8d([0x2e])+_0x2ef932),_0x5615cb=window[_0x187f8d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x187f8d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5615cb)return;const _0x45f64e=await _0x5615cb[_0x187f8d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x187f8d([0x6a,0x77,0x6b]),_0x4e922e,{[_0x187f8d([0x6e,0x61,0x6d,0x65])]:_0x187f8d([0x45,0x43,0x44,0x53,0x41]),[_0x187f8d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x187f8d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x187f8d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5615cb[_0x187f8d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x187f8d([0x6e,0x61,0x6d,0x65])]:_0x187f8d([0x45,0x43,0x44,0x53,0x41]),[_0x187f8d([0x68,0x61,0x73,0x68])]:{[_0x187f8d([0x6e,0x61,0x6d,0x65])]:_0x187f8d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x45f64e,_0x454714,_0x5de9de)||(_0x5171ed=!0x1);}}());return _0x562d5e?(function(){const _0xa52181=_0x284e0a[_0x187f8d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xa52181)return!0x1;if(_0xa52181[_0x187f8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x187f8d([0x2a])))return!0x0;if(_0xa52181[_0x187f8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x187f8d([0x50,0x41,0x47])))return!0x0;return!0x1;}())?(function(){const _0x215347=[_0x187f8d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x187f8d([0x74,0x72,0x69,0x61,0x6c])][_0x187f8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x284e0a[_0x187f8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x336993/0x3e8:0x68f03580;return _0x284e0a[_0x187f8d([0x65,0x78,0x70])]<_0x215347;}())?_0x187f8d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xea8ff0=_0x284e0a[_0x187f8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xea8ff0||0x0==_0xea8ff0[_0x187f8d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2ce89e}=new URL(window[_0x187f8d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xea8ff0[_0x187f8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ce89e))return!0x0;const _0x5f3128=_0x2ce89e[_0x187f8d([0x73,0x70,0x6c,0x69,0x74])](_0x187f8d([0x2e]));return _0xea8ff0[_0x187f8d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1fa606=>_0x1fa606[_0x187f8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x187f8d([0x2a])))[_0x187f8d([0x6d,0x61,0x70])](_0x3b6e29=>_0x3b6e29[_0x187f8d([0x73,0x70,0x6c,0x69,0x74])](_0x187f8d([0x2e])))[_0x187f8d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e6538=>_0x5e6538[_0x187f8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5f3128[_0x187f8d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x187f8d([0x6d,0x61,0x70])](_0x3452b7=>Array(_0x5f3128[_0x187f8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3452b7[_0x187f8d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x187f8d([0x66,0x69,0x6c,0x6c])](_0x3452b7[0x0]===_0x187f8d([0x2a])?_0x187f8d([0x2a]):'')[_0x187f8d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3452b7))[_0x187f8d([0x73,0x6f,0x6d,0x65])](_0x259032=>_0x5f3128[_0x187f8d([0x65,0x76,0x65,0x72,0x79])]((_0x3b85a1,_0xf10db2)=>_0x259032[_0xf10db2]===_0x3b85a1||_0x259032[_0xf10db2]===_0x187f8d([0x2a])));}())?(_0x284e0a[_0x187f8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x187f8d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x132d95=_0x406f2a(_0x187f8d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x284e0a[_0x187f8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x187f8d([0x74,0x72,0x69,0x61,0x6c])&&(_0x132d95=_0x406f2a(_0x187f8d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x132d95&&_0x17b3c6)return new window[(_0x187f8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3791d4,_0x22b8df)=>{_0x132d95[_0x187f8d([0x74,0x68,0x65,0x6e])](_0x3791d4,_0x22b8df),_0x17b3c6[_0x187f8d([0x74,0x68,0x65,0x6e])](_0x18fcd5=>{_0x18fcd5!=_0x187f8d([0x56,0x61,0x6c,0x69,0x64])&&_0x3791d4(_0x18fcd5);},_0x22b8df);});return _0x132d95||_0x17b3c6||_0x187f8d([0x56,0x61,0x6c,0x69,0x64]);}())):_0x187f8d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x187f8d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x187f8d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x187f8d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x406f2a(_0x345ac7){const _0x511fb3=[new window[(_0x187f8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29862b=>setTimeout(_0x29862b,0x93ecc)),_0x274e83[_0x187f8d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x187f8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x126d51=>{let _0x41142e=0x0;_0x459034[_0x187f8d([0x6d,0x6f,0x64,0x65,0x6c])][_0x187f8d([0x6f,0x6e])](_0x187f8d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x586a82,_0x289b7c)=>{_0x289b7c[0x0][_0x187f8d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x41142e++,0x1f8==_0x41142e&&(_0x126d51(),_0x586a82[_0x187f8d([0x6f,0x66,0x66])]());});}))];return window[_0x187f8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x187f8d([0x72,0x61,0x63,0x65])](_0x511fb3)[_0x187f8d([0x74,0x68,0x65,0x6e])](()=>_0x345ac7);}function _0x3c8891(_0x17a419){return _0x17a419[_0x187f8d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x187f8d([0x65,0x79]))?JSON[_0x187f8d([0x70,0x61,0x72,0x73,0x65])](_0x100c5c(_0x17a419)):null;}function _0x100c5c(_0x2b0ac7){return window[_0x187f8d([0x61,0x74,0x6f,0x62])](_0x2b0ac7[_0x187f8d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x187f8d([0x2b]))[_0x187f8d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x187f8d([0x2f])));}function _0x43787b(_0x9e12c3){let _0x3b0757=0x1505;function _0x722052(_0x18709f){for(let _0x4af1c1=0x0;_0x4af1c1<_0x18709f[_0x187f8d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4af1c1++){const _0x3e261f=_0x18709f[_0x187f8d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4af1c1);_0x3b0757=(_0x3b0757<<0x5)+_0x3b0757+_0x3e261f,_0x3b0757&=_0x3b0757;}}return function _0x3ff91f(_0x250186){Array[_0x187f8d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x250186)?_0x250186[_0x187f8d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3ff91f):_0x250186&&typeof _0x250186==_0x187f8d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x187f8d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x250186)[_0x187f8d([0x73,0x6f,0x72,0x74])]()[_0x187f8d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd9229b,_0x164aca])=>{_0x722052(_0xd9229b),_0x3ff91f(_0x164aca);}):_0x722052(window[_0x187f8d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x250186));}(_0x9e12c3),_0x3b0757>>>0x0;}function _0x11ecf0(_0x36c46a){return _0x36c46a[_0x187f8d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x187f8d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x187f8d([0x30]));}function _0x1bf197(_0x527665){return _0x527665[_0x187f8d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x187f8d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x187f8d([0x6a,0x6f,0x69,0x6e])]('');}function _0x501eaf(){}function _0x187f8d(_0x2fcb8d){return _0x2fcb8d['map'](_0xd04396=>String['fromCharCode'](_0xd04396))['join']('');}!function(_0x56803c){const _0x3898a8=(function(){const _0x2b8aa6=window[_0x187f8d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x187f8d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x187f8d([0x6e,0x6f,0x77])]())[_0x187f8d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x187f8d([0x2e]),'');let _0x4e1dae=_0x187f8d([0x63]);for(let _0x2b19c0=0x0;_0x2b19c0<_0x2b8aa6[_0x187f8d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b19c0+=0x2){let _0x220e7f=window[_0x187f8d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b8aa6[_0x187f8d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b19c0,_0x2b19c0+0x2));_0x220e7f>=_0x4c9a0d[_0x187f8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x220e7f-=_0x4c9a0d[_0x187f8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4e1dae+=_0x4c9a0d[_0x220e7f];}return _0x4e1dae;}());_0x459034[_0x3898a8]=_0x187f8d([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x56803c,_0x56803c!=_0x187f8d([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x274e83,_0x459034[_0x187f8d([0x6d,0x6f,0x64,0x65,0x6c])][_0x187f8d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x501eaf,_0x459034[_0x187f8d([0x6d,0x6f,0x64,0x65,0x6c])][_0x187f8d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x501eaf,_0x459034[_0x187f8d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x187f8d([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0xc94681);}const toPx=/* #__PURE__ -- @preserve */
toUnit('px');let LineView$1=class extends View{constructor(){super();const _0x238239=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x238239['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x238239['if']('isVisible','ck-hidden',_0x4951cf=>!_0x4951cf)],'style':{'left':_0x238239['to']('left',_0x5cb3f4=>toPx(_0x5cb3f4)),'top':_0x238239['to']('top',_0x5ccebb=>toPx(_0x5ccebb)),'width':_0x238239['to']('width',_0x1b26a8=>toPx(_0x1b26a8))}}});}};class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0xa77c11){this['_viewCollection']=_0xa77c11['ui']['view']['body'];}['destroy'](){for(const _0x51c0ef of this['_hiddenLines'])_0x51c0ef['destroy']();}['cleanLines'](){for(const _0x238187 of this['_visibleLines'])_0x238187['isVisible']=!0x1,this['_hiddenLines']['add'](_0x238187);this['_visibleLines']['clear']();}['showLine'](_0x25a36a,_0x5941bc,_0x2e392f,_0x21cd1e){let _0x5219b4;this['_hiddenLines']['size']?(_0x5219b4=first(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x5219b4)):_0x5219b4=new LineView$1(),_0x5219b4['set']({'pageNumber':_0x21cd1e,'left':_0x25a36a,'top':_0x5941bc,'width':_0x2e392f}),_0x5219b4['isVisible']=!0x0,this['_viewCollection']['has'](_0x5219b4)||this['_viewCollection']['add'](_0x5219b4),this['_visibleLines']['add'](_0x5219b4);}['setViewCollection'](_0x3d3a8b){for(const _0x12cd8f of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x12cd8f)&&this['_viewCollection']['remove'](_0x12cd8f);this['_viewCollection']=_0x3d3a8b;}}const PLUGIN_ENABLED_CLASS='ck-pagination_enabled';class PaginationRenderer extends Plugin{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new LinesRepository(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](PLUGIN_ENABLED_CLASS),this['on']('change:isEnabled',(_0x509495,_0x5bae6f,_0x23f257)=>{_0x23f257||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](PLUGIN_ENABLED_CLASS,_0x23f257);});}['destroy'](){this['_toggleEditingRootsClass'](PLUGIN_ENABLED_CLASS,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x4ba735){if(!this['isEnabled'])return;const _0x5c6b55=_0x4ba735>0x1?this['_getPageBreakLineOffset'](_0x4ba735-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x5c6b55-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':env['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x4c970a=this['editor'],_0x5370b0=this['_getAttachedDomRoot']();_0x5370b0?(this['_scrollableEditingRootDomAncestor']&&_0x4c970a['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=findScrollableElement(_0x5370b0),_0x4c970a['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0xf5cfe0(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x4c970a['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x28909d=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x28909d['ui']['view']['listenTo'](_0xd4e5e['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x28909d['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x20053a of this['editor']['editing']['view']['domRoots']['values']())if(_0x20053a['ownerDocument']['body']['contains'](_0x20053a))return _0x20053a;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x2f4f22=this['_getAttachedDomRoot'](),_0x2966fc=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x2f4f22||0x1==_0x2966fc['length'])return void(this['pageNumber']=0x1);const _0x74c3fd=new Rect(_0x2f4f22)['excludeScrollbarsAndBorders'](),_0x2327f1=new Rect(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x37d991=_0x2327f1['top']+_0x2327f1['height']/0x3;let _0x204dc2=!0x1;const _0x1e41b0=[];for(let _0x191235=0x1;_0x191235<_0x2966fc['length'];_0x191235++){const _0x5a3636=this['_getPageBreakLineOffset'](_0x191235,_0x2327f1);if(!_0x5a3636)continue;const _0x13b104=_0x2327f1['top']+_0x5a3636-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x1e41b0['push']({'pageOffsetTop':_0x13b104,'domRootRect':_0x74c3fd,'domScrollableRect':_0x2327f1,'pageNumber':_0x191235}),_0x13b104>_0x37d991&&!_0x204dc2&&(this['pageNumber']=_0x191235,_0x204dc2=!0x0);}this['_renderPageBreakLines'](_0x1e41b0),_0x204dc2||(this['pageNumber']=_0x2966fc['length']);}['_renderPageBreakLines'](_0xa74b41){const {scrollX:_0x258fe5,scrollY:_0x155a6c}=_0xd4e5e['window'];if(_0xa74b41['length']){for(const {domScrollableRect:_0x25ae25,pageOffsetTop:_0x580814,domRootRect:_0x156cef,pageNumber:_0x18c9af}of _0xa74b41)_0x25ae25['top']<_0x580814&&_0x580814<_0x25ae25['bottom']&&this['linesRepository']['showLine'](_0x156cef['left']+_0x258fe5,_0x580814+_0x155a6c,_0x156cef['width'],_0x18c9af+0x1);}}['_getPageBreakLineOffset'](_0x4bc9d7,_0x6b8ac1=null){const _0x25fc2e=this['_paginationLookupPlugin']['pageBreaks'][_0x4bc9d7]['offset'];return _0x25fc2e?(_0x6b8ac1||(_0x6b8ac1=new Rect(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x25fc2e-_0x6b8ac1['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x3aa261,_0x962617=!0x0){const _0x403b08=this['editor']['editing']['view'];_0x403b08['change'](_0x292e96=>{for(const _0x87f47b of _0x403b08['document']['roots'])_0x962617?_0x292e96['addClass'](_0x3aa261,_0x87f47b):_0x292e96['removeClass'](_0x3aa261,_0x87f47b);});}}function findScrollableElement(_0x493630){let _0x1e98ee=_0x493630;do{_0x1e98ee=_0x1e98ee['parentElement'];const _0x3f9e4b=_0xd4e5e['window']['getComputedStyle'](_0x1e98ee)['overflowY'];if('auto'==_0x3f9e4b||'scroll'==_0x3f9e4b)break;}while('BODY'!=_0x1e98ee['tagName']);return _0x1e98ee;}function getTranslation$7(_0x588488,_0x5ed81c,..._0x56df5e){const t=_0x588488['t'];switch(_0x5ed81c){case'Go\x20to\x20next\x20page':return t('Go\x20to\x20next\x20page');case'Go\x20to\x20previous\x20page':return t('Go\x20to\x20previous\x20page');case'Current\x20page\x20number\x20(from\x201\x20to\x20%0)':return t('Current\x20page\x20number\x20(from\x201\x20to\x20%0)',..._0x56df5e);case'Keystrokes\x20for\x20navigating\x20through\x20documents':return t('Keystrokes\x20for\x20navigating\x20through\x20documents');case'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)');case'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)');default:return _0x5ed81c;}}class PaginationEditing extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationLookup,PaginationRenderer];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x2bed98=this['editor']['plugins']['get']('Pagination'),_0x4170e0=this['editor']['plugins']['get'](PaginationLookup),_0x21f690=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x2bed98),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x21f690),this['listenTo'](_0x4170e0,'change:pageBreaks',(_0x1e838f,_0x2f1ade,_0x393188,_0x39b02f)=>{this['totalPages']=_0x393188['length'],this['_updatePageBreakMarkers'](_0x393188,_0x39b02f);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1e59e2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x41d7ab;for(const _0x4099da in _0x1e59e2){const _0x32b7cb=_0x4099da,_0x4664e5=_0x1e59e2[_0x32b7cb];if('paginationLicenseKeyValid'==_0x4664e5||'paginationLicenseKeyInvalid'==_0x4664e5||'paginationLicenseKeyExpired'==_0x4664e5||'paginationLicenseKeyDomainLimit'==_0x4664e5||'paginationLicenseKeyNotAllowed'==_0x4664e5||'paginationLicenseKeyEvaluationLimit'==_0x4664e5||'paginationLicenseKeyTrialLimit'==_0x4664e5||'paginationLicenseKeyUsageLimit'==_0x4664e5){delete _0x1e59e2[_0x32b7cb],_0x41d7ab=_0x4664e5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x41d7ab&&_0x1e59e2['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x41d7ab&&_0x1e59e2['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x41d7ab&&_0x1e59e2['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x41d7ab&&_0x1e59e2['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x41d7ab&&_0x1e59e2['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyTrialLimit'==_0x41d7ab&&_0x1e59e2['_showLicenseError']('trialLimit'),'paginationLicenseKeyUsageLimit'==_0x41d7ab&&_0x1e59e2['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x54202d){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x54202d));}['moveSelectionToPage'](_0x2a0667){if(!this['isEnabled'])return;const _0x59346e=this['editor'],_0x4e7847=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x2a0667-0x1];_0x4e7847&&_0x59346e['model']['change'](_0x39d302=>{switch(_0x4e7847['type']){case'manual':{const _0x5681cc=_0x59346e['model']['schema']['getNearestSelectionRange'](_0x4e7847['modelRange']['end'],'forward');_0x39d302['setSelection'](_0x5681cc);break;}case'element':{const _0x39aea2=_0x59346e['model']['schema']['getNearestSelectionRange'](_0x4e7847['modelRange']['start'],'forward');_0x39d302['setSelection'](_0x39aea2);break;}case'text':{const _0x576524=_0x4e7847['modelRange']['start'];if(_0x576524['textNode']&&'\x20'===_0x576524['textNode']['data'][_0x576524['offset']]){const _0x40f356=_0x39d302['createPositionAt'](_0x576524['parent'],_0x576524['offset']+0x1);_0x39d302['setSelection'](_0x40f356);}else _0x39d302['setSelection'](_0x4e7847['modelRange']);}}_0x59346e['editing']['view']['focus']();});}['goToNextPage'](){const _0x1da689=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x1da689),this['scrollToPage'](_0x1da689);}['goToPreviousPage'](){const _0xdfe5d2=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0xdfe5d2),this['scrollToPage'](_0xdfe5d2);}['_updatePageBreakMarkers'](_0x42953d,_0x36c936){const _0x8eeaad=this['editor']['model'];this['isEnabled']&&_0x8eeaad['change'](_0x142719=>{for(let _0x547a68=0x1;_0x547a68<_0x42953d['length'];_0x547a68++){const _0xb66c6e=_0x42953d[_0x547a68]['modelRange'],_0x3e69b0='pagination:'+(_0x547a68+0x1);_0x8eeaad['markers']['has'](_0x3e69b0)?_0x142719['updateMarker'](_0x3e69b0,{'range':_0xb66c6e}):_0x142719['addMarker'](_0x3e69b0,{'range':_0xb66c6e,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x213da7=_0x42953d['length'];_0x213da7<_0x36c936['length'];_0x213da7++){const _0x4800e6='pagination:'+(_0x213da7+0x1);_0x8eeaad['markers']['has'](_0x4800e6)&&_0x142719['removeMarker'](_0x4800e6);}});}['_setUpDataDowncastConversion'](){const _0x35011b='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x38b8c4=>{_0x38b8c4['on']('addMarker:'+_0x35011b,(_0x202c12,{markerRange:_0x41c590,markerName:_0x46a2d8},_0x541056)=>{if(!_0x541056['options']['pagination'])return;if(!_0x541056['consumable']['consume'](_0x41c590,_0x202c12['name']))return;const _0x4ef2f3=_0x41c590['getContainedElement']();let _0x4c9181=_0x4ef2f3?_0x541056['mapper']['toViewElement'](_0x4ef2f3):null;if(!_0x4c9181){const _0x28edec=_0x41c590['start'];if(_0x541056['schema']['checkChild'](_0x28edec,'$text')){const _0x2c06fa=_0x541056['mapper']['toViewPosition'](_0x28edec);_0x4c9181=_0x541056['writer']['createContainerElement']('span'),_0x4c9181['getFillerOffset']=()=>null,_0x541056['writer']['insert'](_0x2c06fa,_0x4c9181);}else{const _0x243da5=_0x28edec['nodeAfter'];_0x4c9181=_0x541056['mapper']['toViewElement'](_0x243da5);}}for(;_0x4c9181['parent']!==_0x4c9181['root']&&0x0===_0x4c9181['index'];)_0x4c9181=_0x4c9181['parent'];const _0xbf77d7=_0x46a2d8['substring'](0xb);_0x4c9181['hasClass']('page-break')||(_0x541056['writer']['setStyle']('page-break-before','always',_0x4c9181),_0x541056['writer']['setAttribute']('data-pagination-page',_0xbf77d7,_0x4c9181),_0x541056['mapper']['bindElementToMarker'](_0x4c9181,_0x46a2d8)),_0x202c12['stop']();});});}['_setupKeystrokes'](){const _0x5034a7=this['editor'];_0x5034a7['keystrokes']['set']('Shift+Pageup',(_0x1e21f7,_0x35897d)=>{this['goToPreviousPage'](),_0x35897d();}),_0x5034a7['keystrokes']['set']('Shift+Pagedown',(_0x5f26e7,_0xc849d)=>{this['goToNextPage'](),_0xc849d();}),_0x5034a7['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':getTranslation$7(_0x5034a7['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':getTranslation$7(_0x5034a7['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':getTranslation$7(_0x5034a7['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x17b4d9){return _0x17b4d9<0x1&&(_0x17b4d9=0x1),_0x17b4d9>this['totalPages']&&(_0x17b4d9=this['totalPages']),_0x17b4d9;}}class PageNavigatorView extends View{['pageNumberView'];constructor(_0x1f2742){super(_0x1f2742);const _0x4340ad=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new InputNumberView(_0x1f2742,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x36e727=>getTranslation$7(_0x1f2742,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x36e727)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x543d4b=>!_0x543d4b),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x4340ad['if']('isEnabled','ck-disabled',_0x1500a1=>!_0x1500a1)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x4340ad['to']('totalPages')}]}]});}['render'](){super['render']();const _0x2f8cf2=this['pageNumberView']['element'],_0x64c29a=_0x5196ab=>{this['pageNumberView']['element']['value']=String(_0x5196ab);};_0x64c29a(this['pageNumber']),this['on']('change:pageNumber',(_0x312168,_0x29573d,_0x5a8b06)=>{_0x64c29a(_0x5a8b06);}),this['listenTo'](_0x2f8cf2,'keydown',(_0x480e8a,_0xabb5ce)=>{if('ArrowUp'===_0xabb5ce['key']||'ArrowDown'===_0xabb5ce['key'])return void _0xabb5ce['stopPropagation']();if(_0xabb5ce['keyCode']!==keyCodes['enter'])return;_0xabb5ce['preventDefault']();const _0x1d4ced=_0x2f8cf2['valueAsNumber'];Number['isNaN'](_0x1d4ced)?_0x2f8cf2['value']=String(this['pageNumber']):(_0x2f8cf2['checkValidity']()?this['pageNumber']=_0x1d4ced:_0x1d4ced>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x2f8cf2['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x2f8cf2['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x2f8cf2,'blur',()=>{_0x2f8cf2['value']=String(this['pageNumber']);}),this['listenTo'](_0x2f8cf2,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class PaginationUI extends Plugin{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2a6f74=this['editor'],_0x31056f=_0x2a6f74['plugins']['get']('PaginationEditing');_0x2a6f74['ui']['componentFactory']['add']('pageNavigation',_0x383365=>{const _0x14e02d=new PageNavigatorView(_0x383365);return _0x14e02d['bind']('pageNumber')['to'](_0x31056f),_0x14e02d['bind']('totalPages')['to'](_0x31056f),_0x14e02d['bind']('isEnabled')['to'](_0x31056f),_0x14e02d['on']('navigation',(_0x28cfe5,_0x5379c2)=>{_0x31056f['moveSelectionToPage'](_0x5379c2),_0x31056f['scrollToPage'](_0x5379c2);}),_0x14e02d;}),_0x2a6f74['ui']['componentFactory']['add']('nextPage',_0x218d23=>{const _0x11fc3d=new ButtonView(_0x218d23);return _0x11fc3d['isEnabled']=!0x0,_0x11fc3d['label']=getTranslation$7(_0x2a6f74['locale'],'Go\x20to\x20next\x20page'),_0x11fc3d['icon']=IconArrowDown,_0x11fc3d['tooltip']=!0x0,_0x11fc3d['keystroke']='Shift+PageDown',_0x11fc3d['bind']('isEnabled')['to'](_0x31056f),this['listenTo'](_0x11fc3d,'execute',()=>{_0x31056f['goToNextPage']();}),_0x11fc3d;}),_0x2a6f74['ui']['componentFactory']['add']('previousPage',_0x206328=>{const _0x24eb98=new ButtonView(_0x206328);return _0x24eb98['isEnabled']=!0x0,_0x24eb98['label']=getTranslation$7(_0x2a6f74['locale'],'Go\x20to\x20previous\x20page'),_0x24eb98['icon']=IconArrowUp,_0x24eb98['tooltip']=!0x0,_0x24eb98['keystroke']='Shift+PageUp',_0x24eb98['bind']('isEnabled')['to'](_0x31056f),this['listenTo'](_0x24eb98,'execute',()=>{_0x31056f['goToPreviousPage']();}),_0x24eb98;});}}class Pagination extends Plugin{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x10baa7){super(_0x10baa7),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0xf1b3f5=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0xf1b3f5),this['bind']('totalPages')['to'](_0xf1b3f5),env['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x3dfece){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x3dfece);}}const MS_EXCEL_META_REGEX=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function isMSExcelContent(_0x563eb6){return MS_EXCEL_META_REGEX['test'](_0x563eb6);}const CSS_SELECTOR_REGEX=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function getMatchingStyles(_0x477048,_0x1db969){const _0x552fbb=new Map();for(const [_0x5dfa7a,_0x559349]of _0x1db969){if(!_0x5dfa7a['tagName']&&!_0x5dfa7a['className'])continue;const _0x594987=!_0x5dfa7a['tagName']||_0x477048['name']===_0x5dfa7a['tagName'],_0x37611c=!_0x5dfa7a['className']||_0x477048['hasClass'](_0x5dfa7a['className']);_0x594987&&_0x37611c&&_0x552fbb['set'](_0x5dfa7a,_0x559349);}return _0x552fbb;}function extractStyles(_0x2b7439){const _0x5b0f51={};for(const _0x48bfb9 of _0x2b7439)for(const _0x5d07fb of _0x48bfb9['cssRules'])if(_0x5d07fb instanceof CSSStyleRule){const _0xa065e0=parseCSSStyleDeclaration(_0x5d07fb['style']);_0x5b0f51[_0x5d07fb['selectorText']]=Object['assign']({},_0x5b0f51[_0x5d07fb['selectorText']]||{},_0xa065e0);}return _0x5b0f51;}function expandStyles(_0x23663a){const _0x4b7be7=new Map();for(const _0x2241ba in _0x23663a){const _0x567377=parseCSSSelector(_0x2241ba),_0xcb4810=_0x23663a[_0x2241ba];for(const _0x29a5f8 of _0x567377)_0x4b7be7['set'](_0x29a5f8,_0xcb4810);}return _0x4b7be7;}function parseCSSStyleDeclaration(_0x20e690){const _0x15f656={};for(let _0x1e8aa6=0x0;_0x1e8aa6<_0x20e690['length'];_0x1e8aa6++){const _0x3f38da=_0x20e690[_0x1e8aa6],_0x26250a=_0x20e690['getPropertyValue'](_0x3f38da);'initial'!==_0x26250a&&(_0x15f656[_0x3f38da]=_0x26250a);}return _0x15f656;}function parseCSSSelector(_0x35a360){const _0x412d08=_0x35a360['split'](',')['map'](_0x469a0b=>_0x469a0b['trim']()),_0xe85968=[];for(const _0x48949a of _0x412d08){const _0x911c19=CSS_SELECTOR_REGEX['exec'](_0x48949a);_0x911c19&&_0xe85968['push'](_0x911c19['groups']);}return _0xe85968;}function flattenStyleDefinitions(_0x34f68c){const _0x1457ad={};for(const _0x25516c of _0x34f68c)Object['assign'](_0x1457ad,_0x25516c);return _0x1457ad;}class MSOfficeStylesInliner extends PasteFromOfficeMSWordNormalizer{['execute'](_0x18447c){const {body:_0x167993,styles:_0x8c056}=_0x18447c['_parsedData'],_0x4d2825=new ViewUpcastWriter(_0x167993['document']),_0x2186fd=_0x4d2825['createRangeIn'](_0x167993),_0x3779b4=expandStyles(extractStyles(_0x8c056));for(const _0x18cc61 of _0x2186fd){if('elementStart'!==_0x18cc61['type'])continue;const _0x4de96e=getMatchingStyles(_0x18cc61['item'],_0x3779b4);if(_0x4de96e['size']){const _0x1cc533=flattenStyleDefinitions(Array['from'](_0x4de96e['values']()));for(const _0x2ed010 in _0x1cc533){const _0x123b20=_0x18cc61['item'];_0x123b20['hasStyle'](_0x2ed010)||_0x4d2825['setStyle'](_0x2ed010,_0x1cc533[_0x2ed010],_0x123b20);}}}_0x18447c['content']=_0x167993;}['isActive'](_0x1b82fb){return super['isActive'](_0x1b82fb)||isMSExcelContent(_0x1b82fb);}}class PasteFromOfficeEnhancedInliner extends Plugin{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return['PasteFromOffice'];}['init'](){const _0x4f00e8=this['editor'],_0x583890=_0x4f00e8['plugins']['get']('ClipboardPipeline'),_0x47445f=_0x4f00e8['editing']['view']['document'],_0x352683=new MSOfficeStylesInliner(_0x47445f);_0x583890['on']('inputTransformation',(_0x105994,_0x2b164e)=>{const _0x5d1b13=_0x2b164e['dataTransfer']['getData']('text/html');_0x352683['isActive'](_0x5d1b13)&&(_0x2b164e['_parsedData']||(_0x2b164e['_parsedData']=parsePasteOfficeHtml(_0x5d1b13,_0x47445f['stylesProcessor'])),_0x352683['execute'](_0x2b164e));},{'priority':priorities['get']('high')+0xb});}['afterInit'](){checkLicense$6(this);}}async function checkLicense$6(_0x220b83){const _0x22bc08=_0x223b57([0x49,0x39,0x73,0x43,0x6d,0x67,0x33,0x44,0x4a,0x69,0x47,0x35,0x4c,0x46,0x4d,0x75,0x51,0x6a,0x77,0x68,0x54,0x30,0x58,0x42,0x59,0x79,0x78,0x53,0x71,0x76,0x64,0x50,0x4f,0x34,0x36,0x4e,0x5a,0x41,0x63,0x56,0x7a,0x62,0x37,0x31,0x52,0x57,0x6b,0x66,0x65,0x38,0x6f,0x4b,0x70,0x74,0x6e,0x72,0x55,0x45,0x61,0x6c,0x32,0x48]),_0x35b152=window[_0x223b57([0x44,0x61,0x74,0x65])][_0x223b57([0x6e,0x6f,0x77])](),_0x5c5b03=_0x220b83[_0x223b57([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6798e6=new window[(_0x223b57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f6dc5=>{_0x5c5b03[_0x223b57([0x6f,0x6e,0x63,0x65])](_0x223b57([0x72,0x65,0x61,0x64,0x79]),_0x1f6dc5);}),_0xa38652={[_0x223b57([0x6b,0x74,0x79])]:_0x223b57([0x45,0x43]),[_0x223b57([0x75,0x73,0x65])]:_0x223b57([0x73,0x69,0x67]),[_0x223b57([0x63,0x72,0x76])]:_0x223b57([0x50,0x2d,0x32,0x35,0x36]),[_0x223b57([0x78])]:_0x223b57([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x223b57([0x79])]:_0x223b57([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x223b57([0x61,0x6c,0x67])]:_0x223b57([0x45,0x53,0x32,0x35,0x36])},_0x43707c=_0x5c5b03[_0x223b57([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x223b57([0x67,0x65,0x74])](_0x223b57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x12cfca=await(async function(){let _0x51bbad,_0x412cd7=null,_0x1e5fea=null;try{if(_0x43707c==_0x223b57([0x47,0x50,0x4c]))return _0x223b57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51bbad=(function(){const _0x1cdb85=_0x43707c[_0x223b57([0x73,0x70,0x6c,0x69,0x74])](_0x223b57([0x2e]));if(0x3!=_0x1cdb85[_0x223b57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x169f28=_0x1cdb85[0x1];return _0x352034(_0x169f28);function _0x352034(_0x42074e){const _0x47f834=_0x94114(_0x42074e);return _0x47f834&&_0x63a1a3()?_0x47f834:null;function _0x63a1a3(){const _0x1b0209=_0x47f834[_0x223b57([0x6a,0x74,0x69])],_0x1c7351=window[_0x223b57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b0209[_0x223b57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b0209[_0x223b57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x10dc9b={..._0x47f834,[_0x223b57([0x6a,0x74,0x69])]:_0x1b0209[_0x223b57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1b0209[_0x223b57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x10dc9b[_0x223b57([0x76,0x63])],_0x217148(_0x10dc9b)==_0x1c7351;}}}()),!_0x51bbad)return _0x223b57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x51bbad[_0x223b57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e5fea=function(_0x5eada4,_0x1f053b){return new window[(_0x223b57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53f3ba=>{if(_0x3aebc7())return _0x53f3ba(_0x223b57([0x56,0x61,0x6c,0x69,0x64]));_0x441d56(),_0x5c5b03[_0x223b57([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x223b57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x25c671=!0x1;const _0x3c2e3a=uid();function _0x23c11d(_0x5284e5){return!!_0x5284e5&&(typeof _0x5284e5===_0x223b57([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5284e5===_0x223b57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5284e5[_0x223b57([0x74,0x68,0x65,0x6e])]===_0x223b57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5284e5[_0x223b57([0x63,0x61,0x74,0x63,0x68])]===_0x223b57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x16989a(_0x1f90c3){_0x58f6dc(_0x1f90c3)[_0x223b57([0x74,0x68,0x65,0x6e])](_0x1e0841=>{if(!_0x1e0841||_0x1e0841[_0x223b57([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x223b57([0x6f,0x6b]))return _0x223b57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xbf0399(_0x217148(_0x3c2e3a+_0x1f053b))!=_0x1e0841[_0x223b57([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x223b57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x223b57([0x56,0x61,0x6c,0x69,0x64]);})[_0x223b57([0x74,0x68,0x65,0x6e])](_0x3d7ef8=>(_0x50aaf4(),_0x3d7ef8),()=>{const _0x20892f=_0xe8554d();return null==_0x20892f?(_0x50aaf4(),_0x223b57([0x56,0x61,0x6c,0x69,0x64])):_0x223b57(_0x35b152-_0x20892f>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x223b57([0x74,0x68,0x65,0x6e])](_0x53f3ba)[_0x223b57([0x63,0x61,0x74,0x63,0x68])](()=>{_0x53f3ba(_0x223b57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e93f6=0x36ee80;function _0x50aaf4(){const _0x343bce=_0x223b57([0x6c,0x6c,0x63,0x74,0x2d])+_0xbf0399(_0x217148(_0x5eada4)),_0x16f265=_0x47a6b3(_0xbf0399(window[_0x223b57([0x4d,0x61,0x74,0x68])][_0x223b57([0x63,0x65,0x69,0x6c])](_0x35b152/_0x3e93f6)));window[_0x223b57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x223b57([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x343bce,_0x16f265);}function _0xe8554d(){const _0x34f2c5=_0x223b57([0x6c,0x6c,0x63,0x74,0x2d])+_0xbf0399(_0x217148(_0x5eada4)),_0x3bf91f=window[_0x223b57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x223b57([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34f2c5);return _0x3bf91f?window[_0x223b57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47a6b3(_0x3bf91f),0x10)*_0x3e93f6:null;}function _0x58f6dc(_0x4b65f2){return new window[(_0x223b57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa1a514,_0x292956)=>{_0x4b65f2[_0x223b57([0x74,0x68,0x65,0x6e])](_0xa1a514,_0x292956),window[_0x223b57([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x292956,0x1d4c0);});}}_0x5c5b03[_0x223b57([0x6f,0x6e])](_0x223b57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41231f,_0x3865c0)=>{if(_0x3865c0[0x0]!=_0x5eada4)return _0x53f3ba(_0x223b57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3865c0[0x1]={..._0x3865c0[0x1],[_0x223b57([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c2e3a};},{[_0x223b57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x223b57([0x68,0x69,0x67,0x68])}),_0x5c5b03[_0x223b57([0x6f,0x6e])](_0x223b57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53d14c=>{_0x23c11d(_0x53d14c[_0x223b57([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x25c671=!0x0,_0x16989a(_0x53d14c[_0x223b57([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x223b57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x223b57([0x6c,0x6f,0x77])}),_0x6798e6[_0x223b57([0x74,0x68,0x65,0x6e])](()=>{_0x25c671||_0x53f3ba(_0x223b57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3aebc7(){return _0x5c5b03[_0x223b57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x223b57([0x76,0x69,0x65,0x77])][_0x223b57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x223b57([0x61,0x75,0x74,0x6f]);}function _0x441d56(){_0x5c5b03[_0x223b57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x223b57([0x76,0x69,0x65,0x77])][_0x223b57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x223b57([0x61,0x75,0x74,0x6f]);}}(_0x51bbad[_0x223b57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51bbad[_0x223b57([0x6a,0x74,0x69])]));const _0x6eb4ab=await(async function(){let _0x36456b=!0x0;try{const _0x5a4f99=_0x43707c[_0x223b57([0x73,0x70,0x6c,0x69,0x74])](_0x223b57([0x2e])),[_0x585027,_0x58a6cc,_0x4593f0]=_0x5a4f99;return _0x5e224c(_0x585027),await _0x479d40(_0x585027,_0x58a6cc,_0x4593f0),_0x36456b;}catch{return!0x1;}function _0x5e224c(_0x140096){const _0xe98716=_0x94114(_0x140096);_0xe98716&&_0xe98716[_0x223b57([0x61,0x6c,0x67])]==_0x223b57([0x45,0x53,0x32,0x35,0x36])||(_0x36456b=!0x1);}async function _0x479d40(_0x11470f,_0xa909d7,_0x270370){const _0x589af3=window[_0x223b57([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x223b57([0x66,0x72,0x6f,0x6d])](_0x586fa9(_0x270370),_0x4b5030=>_0x4b5030[_0x223b57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3edb4c=new window[(_0x223b57([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x223b57([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x11470f+_0x223b57([0x2e])+_0xa909d7),_0x334dd0=window[_0x223b57([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x223b57([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x334dd0)return;const _0x2a480c=await _0x334dd0[_0x223b57([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x223b57([0x6a,0x77,0x6b]),_0xa38652,{[_0x223b57([0x6e,0x61,0x6d,0x65])]:_0x223b57([0x45,0x43,0x44,0x53,0x41]),[_0x223b57([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x223b57([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x223b57([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x334dd0[_0x223b57([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x223b57([0x6e,0x61,0x6d,0x65])]:_0x223b57([0x45,0x43,0x44,0x53,0x41]),[_0x223b57([0x68,0x61,0x73,0x68])]:{[_0x223b57([0x6e,0x61,0x6d,0x65])]:_0x223b57([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2a480c,_0x589af3,_0x3edb4c)||(_0x36456b=!0x1);}}());return _0x6eb4ab?(function(){const _0x6bf6b6=_0x51bbad[_0x223b57([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x6bf6b6)return!0x1;if(_0x6bf6b6[_0x223b57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x223b57([0x2a])))return!0x0;if(_0x6bf6b6[_0x223b57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x223b57([0x50,0x4f,0x45])))return!0x0;if(_0x6bf6b6[_0x223b57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x223b57([0x50,0x50])))return!0x0;if(_0x6bf6b6[_0x223b57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x223b57([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x223b57([0x67,0x6c,0x6f,0x62])]&&window[_0x223b57([0x67,0x6c,0x6f,0x62])][_0x223b57([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x55c7fa=[_0x223b57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x223b57([0x74,0x72,0x69,0x61,0x6c])][_0x223b57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51bbad[_0x223b57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x35b152/0x3e8:0x68f03580;return _0x51bbad[_0x223b57([0x65,0x78,0x70])]<_0x55c7fa;}())?_0x223b57([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x454974=_0x51bbad[_0x223b57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x454974||0x0==_0x454974[_0x223b57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x57c11c}=new URL(window[_0x223b57([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x454974[_0x223b57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57c11c))return!0x0;const _0x31767d=_0x57c11c[_0x223b57([0x73,0x70,0x6c,0x69,0x74])](_0x223b57([0x2e]));return _0x454974[_0x223b57([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c4dae=>_0x5c4dae[_0x223b57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x223b57([0x2a])))[_0x223b57([0x6d,0x61,0x70])](_0x1cb104=>_0x1cb104[_0x223b57([0x73,0x70,0x6c,0x69,0x74])](_0x223b57([0x2e])))[_0x223b57([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x85bd6a=>_0x85bd6a[_0x223b57([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x31767d[_0x223b57([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x223b57([0x6d,0x61,0x70])](_0xc4c6df=>Array(_0x31767d[_0x223b57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc4c6df[_0x223b57([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x223b57([0x66,0x69,0x6c,0x6c])](_0xc4c6df[0x0]===_0x223b57([0x2a])?_0x223b57([0x2a]):'')[_0x223b57([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc4c6df))[_0x223b57([0x73,0x6f,0x6d,0x65])](_0x106099=>_0x31767d[_0x223b57([0x65,0x76,0x65,0x72,0x79])]((_0x3b8c28,_0xb1fa)=>_0x106099[_0xb1fa]===_0x3b8c28||_0x106099[_0xb1fa]===_0x223b57([0x2a])));}())?(_0x51bbad[_0x223b57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x223b57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x412cd7=_0x40074b(_0x223b57([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51bbad[_0x223b57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x223b57([0x74,0x72,0x69,0x61,0x6c])&&(_0x412cd7=_0x40074b(_0x223b57([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x412cd7&&_0x1e5fea)return new window[(_0x223b57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3df98d,_0x4901c2)=>{_0x412cd7[_0x223b57([0x74,0x68,0x65,0x6e])](_0x3df98d,_0x4901c2),_0x1e5fea[_0x223b57([0x74,0x68,0x65,0x6e])](_0x1b33ec=>{_0x1b33ec!=_0x223b57([0x56,0x61,0x6c,0x69,0x64])&&_0x3df98d(_0x1b33ec);},_0x4901c2);});return _0x412cd7||_0x1e5fea||_0x223b57([0x56,0x61,0x6c,0x69,0x64]);}())):_0x223b57([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x223b57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x223b57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x223b57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x40074b(_0x2e17c4){const _0x1fd824=[new window[(_0x223b57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59c513=>setTimeout(_0x59c513,0x93ecc)),_0x6798e6[_0x223b57([0x74,0x68,0x65,0x6e])](()=>new window[(_0x223b57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57398a=>{let _0xca2878=0x0;_0x5c5b03[_0x223b57([0x6d,0x6f,0x64,0x65,0x6c])][_0x223b57([0x6f,0x6e])](_0x223b57([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1fe806,_0x326068)=>{_0x326068[0x0][_0x223b57([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xca2878++,0x1f8==_0xca2878&&(_0x57398a(),_0x1fe806[_0x223b57([0x6f,0x66,0x66])]());});}))];return window[_0x223b57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x223b57([0x72,0x61,0x63,0x65])](_0x1fd824)[_0x223b57([0x74,0x68,0x65,0x6e])](()=>_0x2e17c4);}function _0x94114(_0x58032e){return _0x58032e[_0x223b57([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x223b57([0x65,0x79]))?JSON[_0x223b57([0x70,0x61,0x72,0x73,0x65])](_0x586fa9(_0x58032e)):null;}function _0x586fa9(_0x234771){return window[_0x223b57([0x61,0x74,0x6f,0x62])](_0x234771[_0x223b57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x223b57([0x2b]))[_0x223b57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x223b57([0x2f])));}function _0x217148(_0x22652d){let _0x15a95a=0x1505;function _0xaa1d09(_0x3b84d3){for(let _0x1244f8=0x0;_0x1244f8<_0x3b84d3[_0x223b57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1244f8++){const _0x43cf63=_0x3b84d3[_0x223b57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1244f8);_0x15a95a=(_0x15a95a<<0x5)+_0x15a95a+_0x43cf63,_0x15a95a&=_0x15a95a;}}return function _0x5584f2(_0x1298ea){Array[_0x223b57([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1298ea)?_0x1298ea[_0x223b57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5584f2):_0x1298ea&&typeof _0x1298ea==_0x223b57([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x223b57([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1298ea)[_0x223b57([0x73,0x6f,0x72,0x74])]()[_0x223b57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43e53f,_0x4b8b98])=>{_0xaa1d09(_0x43e53f),_0x5584f2(_0x4b8b98);}):_0xaa1d09(window[_0x223b57([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1298ea));}(_0x22652d),_0x15a95a>>>0x0;}function _0xbf0399(_0x1e8053){return _0x1e8053[_0x223b57([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x223b57([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x223b57([0x30]));}function _0x47a6b3(_0x6b109){return _0x6b109[_0x223b57([0x73,0x70,0x6c,0x69,0x74])]('')[_0x223b57([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x223b57([0x6a,0x6f,0x69,0x6e])]('');}function _0x48a5b6(){}function _0x223b57(_0x9a1924){return _0x9a1924['map'](_0x151b0a=>String['fromCharCode'](_0x151b0a))['join']('');}!function(_0xb89695){const _0x1571a4=(function(){const _0x2deb33=window[_0x223b57([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x223b57([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x223b57([0x6e,0x6f,0x77])]())[_0x223b57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x223b57([0x2e]),'');let _0x50f31f=_0x223b57([0x49]);for(let _0x331719=0x0;_0x331719<_0x2deb33[_0x223b57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x331719+=0x2){let _0x38ba5e=window[_0x223b57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2deb33[_0x223b57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x331719,_0x331719+0x2));_0x38ba5e>=_0x22bc08[_0x223b57([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x38ba5e-=_0x22bc08[_0x223b57([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x50f31f+=_0x22bc08[_0x38ba5e];}return _0x50f31f;}());_0x5c5b03[_0x1571a4]=_0x223b57([0x70,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb89695,_0xb89695!=_0x223b57([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x6798e6,_0x5c5b03[_0x223b57([0x6d,0x6f,0x64,0x65,0x6c])][_0x223b57([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x48a5b6,_0x5c5b03[_0x223b57([0x6d,0x6f,0x64,0x65,0x6c])][_0x223b57([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x48a5b6,_0x5c5b03[_0x223b57([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x223b57([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x12cfca);}const CSS_PROPERTIES_TO_PROPAGATE=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],CSS_PROPERTIES_TO_BE_SPANS=['color','font-family','font-size'],CSS_PROPERTIES_TO_BE_HTML_ELEMENTS={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x4caec4=>Number(_0x4caec4)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function isPropertyToBePropagated(_0x39f543){return CSS_PROPERTIES_TO_PROPAGATE['includes'](_0x39f543);}function isPropertyToBePropagatedAsSpan(_0x5e2fc6){return CSS_PROPERTIES_TO_BE_SPANS['includes'](_0x5e2fc6);}function isPropertyToBePropagatedAsHTMLElement(_0x1e0769){return _0x1e0769 in CSS_PROPERTIES_TO_BE_HTML_ELEMENTS;}function getStylePropertyNamesToPropagate(_0x32f352){return Array['from'](_0x32f352['getStyleNames']())['filter'](isPropertyToBePropagated);}function propagateStyleProperties(_0x3cb016,_0x7df1a4,_0x8a374b){const {spanStyles:_0x898dee,stylesToBeHtmlElements:_0x10c78f}=getStylesToPropagate(_0x3cb016,_0x8a374b);propagateStylesAsHTMLElements(_0x3cb016,_0x7df1a4,_0x10c78f),propagateStylesAsSpan(_0x3cb016,_0x7df1a4,_0x898dee);}function propagateStylesAsHTMLElements(_0xddfc9e,_0x4d12f2,_0x3cabc9){for(const _0x1b6837 in _0x3cabc9){_0x3cabc9[_0x1b6837]['forEach'](([,_0x40a660])=>{const _0x4368e8=_0x4d12f2['createElement'](_0x40a660,[],_0xddfc9e['getChildren']());_0x4d12f2['insertChild'](0x0,_0x4368e8,_0xddfc9e);}),_0x4d12f2['removeStyle'](_0x1b6837,_0xddfc9e);}}function propagateStylesAsSpan(_0x1a6e49,_0x576723,_0x12a4aa){if(!Object['keys'](_0x12a4aa)['length'])return;const _0x38f59=_0x576723['createElement']('span',[],_0x1a6e49['getChildren']());_0x576723['setStyle'](_0x12a4aa,_0x38f59),_0x576723['insertChild'](0x0,_0x38f59,_0x1a6e49),_0x576723['removeStyle'](Object['keys'](_0x12a4aa),_0x1a6e49);}function getStylesToPropagate(_0x3b60cc,_0x38a7ea){const _0x2a697d={},_0x28bfb9={};return _0x38a7ea['forEach'](_0x26d056=>{const _0x4b82a7=_0x3b60cc['getStyle'](_0x26d056);if(_0x4b82a7){if(isPropertyToBePropagatedAsSpan(_0x26d056))_0x2a697d[_0x26d056]=_0x4b82a7;else{if(isPropertyToBePropagatedAsHTMLElement(_0x26d056)){const _0x163818=_0x4b82a7['split']('\x20');CSS_PROPERTIES_TO_BE_HTML_ELEMENTS[_0x26d056]['forEach'](([_0x143bec,_0x18cd2f])=>{for(const _0x5cac05 of _0x163818){('function'==typeof _0x143bec&&_0x143bec(_0x5cac05)||_0x143bec===_0x5cac05)&&(_0x28bfb9[_0x26d056]=[..._0x28bfb9[_0x26d056]||[],[_0x143bec,_0x18cd2f]]);}});}}}}),{'spanStyles':_0x2a697d,'stylesToBeHtmlElements':_0x28bfb9};}class MSOfficeInlineStylePropagator extends PasteFromOfficeMSWordNormalizer{['execute'](_0x3bb6f0){const {body:_0x1e5161}=_0x3bb6f0['_parsedData'],_0x35faa5=new ViewUpcastWriter(_0x1e5161['document']),_0x5d5b48=_0x35faa5['createRangeIn'](_0x1e5161),_0x146871=new ViewDocument(_0x35faa5['document']['stylesProcessor']),_0x4977fd=[...new ViewDomConverter(_0x146871)['blockElements'],'font'],_0x1209b0=_0x5d5b48['getItems']();for(const _0x425332 of _0x1209b0)_0x425332['is']('element')&&_0x4977fd['includes'](_0x425332['name'])&&propagateStyleProperties(_0x425332,_0x35faa5,getStylePropertyNamesToPropagate(_0x425332));_0x3bb6f0['content']=_0x1e5161;}['isActive'](_0x68e4fb){return super['isActive'](_0x68e4fb)||isMSExcelContent(_0x68e4fb);}}class PasteFromOfficeEnhancedPropagator extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return['PasteFromOffice'];}['init'](){const _0x1377fc=this['editor'],_0x7765ef=_0x1377fc['plugins']['get']('ClipboardPipeline'),_0x3f80c8=_0x1377fc['editing']['view']['document'],_0x1b2fb=new MSOfficeInlineStylePropagator(_0x3f80c8);_0x7765ef['on']('inputTransformation',(_0x19211e,_0x669671)=>{const _0x55eb0a=_0x669671['dataTransfer']['getData']('text/html');_0x1b2fb['isActive'](_0x55eb0a)&&(_0x669671['_parsedData']||(_0x669671['_parsedData']=parsePasteOfficeHtml(_0x55eb0a,_0x3f80c8['stylesProcessor'])),_0x1b2fb['execute'](_0x669671));},{'priority':priorities['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x48d2cf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x31977b;for(const _0x1b8a55 in _0x48d2cf){const _0x4cef52=_0x1b8a55,_0xd52abb=_0x48d2cf[_0x4cef52];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0xd52abb||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0xd52abb||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0xd52abb||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0xd52abb||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0xd52abb||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0xd52abb||'pasteFromOfficeEnhancedLicenseKeyTrialLimit'==_0xd52abb||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0xd52abb){delete _0x48d2cf[_0x4cef52],_0x31977b=_0xd52abb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x31977b&&_0x48d2cf['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x31977b&&_0x48d2cf['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x31977b&&_0x48d2cf['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x31977b&&_0x48d2cf['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x31977b&&_0x48d2cf['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyTrialLimit'==_0x31977b&&_0x48d2cf['_showLicenseError']('trialLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x31977b&&_0x48d2cf['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends Plugin{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return['PasteFromOffice',PasteFromOfficeEnhancedInliner,PasteFromOfficeEnhancedPropagator];}}var indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;return hasRequiredAspromise=0x1,aspromise=function(_0x33996d,_0x2b34cd){var _0x19d8c6=new Array(arguments['length']-0x1),_0x4e872b=0x0,_0x476780=0x2,_0x32650b=!0x0;for(;_0x476780<arguments['length'];)_0x19d8c6[_0x4e872b++]=arguments[_0x476780++];return new Promise(function(_0x427fa4,_0x584522){_0x19d8c6[_0x4e872b]=function(_0x21ca82){if(_0x32650b){if(_0x32650b=!0x1,_0x21ca82)_0x584522(_0x21ca82);else{for(var _0x441593=new Array(arguments['length']-0x1),_0x4afab3=0x0;_0x4afab3<_0x441593['length'];)_0x441593[_0x4afab3++]=arguments[_0x4afab3];_0x427fa4['apply'](null,_0x441593);}}};try{_0x33996d['apply'](_0x2b34cd||null,_0x19d8c6);}catch(_0x1d1901){_0x32650b&&(_0x32650b=!0x1,_0x584522(_0x1d1901));}});},aspromise;}var base64={},hasRequiredBase64,eventemitter,hasRequiredEventemitter,float,hasRequiredFloat,inquire_1,hasRequiredInquire;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=0x1,function(_0xf9d3c){var _0xb66074=_0xf9d3c;_0xb66074['length']=function(_0x3ef831){var _0x347949=_0x3ef831['length'];if(!_0x347949)return 0x0;for(var _0x3a1c94=0x0;--_0x347949%0x4>0x1&&'='===_0x3ef831['charAt'](_0x347949);)++_0x3a1c94;return Math['ceil'](0x3*_0x3ef831['length'])/0x4-_0x3a1c94;};for(var _0x3bb377=new Array(0x40),_0x5e87a2=new Array(0x7b),_0x37627e=0x0;_0x37627e<0x40;)_0x5e87a2[_0x3bb377[_0x37627e]=_0x37627e<0x1a?_0x37627e+0x41:_0x37627e<0x34?_0x37627e+0x47:_0x37627e<0x3e?_0x37627e-0x4:_0x37627e-0x3b|0x2b]=_0x37627e++;_0xb66074['encode']=function(_0x566a88,_0x1b36e4,_0x4ed5ba){for(var t,_0x4e1dcf=null,_0x54e766=[],_0x42d760=0x0,_0x56d5e4=0x0;_0x1b36e4<_0x4ed5ba;){var _0x3fb747=_0x566a88[_0x1b36e4++];switch(_0x56d5e4){case 0x0:_0x54e766[_0x42d760++]=_0x3bb377[_0x3fb747>>0x2],t=(0x3&_0x3fb747)<<0x4,_0x56d5e4=0x1;break;case 0x1:_0x54e766[_0x42d760++]=_0x3bb377[t|_0x3fb747>>0x4],t=(0xf&_0x3fb747)<<0x2,_0x56d5e4=0x2;break;case 0x2:_0x54e766[_0x42d760++]=_0x3bb377[t|_0x3fb747>>0x6],_0x54e766[_0x42d760++]=_0x3bb377[0x3f&_0x3fb747],_0x56d5e4=0x0;}_0x42d760>0x1fff&&((_0x4e1dcf||(_0x4e1dcf=[]))['push'](String['fromCharCode']['apply'](String,_0x54e766)),_0x42d760=0x0);}return _0x56d5e4&&(_0x54e766[_0x42d760++]=_0x3bb377[t],_0x54e766[_0x42d760++]=0x3d,0x1===_0x56d5e4&&(_0x54e766[_0x42d760++]=0x3d)),_0x4e1dcf?(_0x42d760&&_0x4e1dcf['push'](String['fromCharCode']['apply'](String,_0x54e766['slice'](0x0,_0x42d760))),_0x4e1dcf['join']('')):String['fromCharCode']['apply'](String,_0x54e766['slice'](0x0,_0x42d760));};var _0x14f57e='invalid\x20encoding';_0xb66074['decode']=function(_0x28caaf,_0x42b359,_0x40de45){for(var t,_0x43fbcf=_0x40de45,_0x3107d9=0x0,_0x379e0a=0x0;_0x379e0a<_0x28caaf['length'];){var _0x71c339=_0x28caaf['charCodeAt'](_0x379e0a++);if(0x3d===_0x71c339&&_0x3107d9>0x1)break;if(void 0x0===(_0x71c339=_0x5e87a2[_0x71c339]))throw Error(_0x14f57e);switch(_0x3107d9){case 0x0:t=_0x71c339,_0x3107d9=0x1;break;case 0x1:_0x42b359[_0x40de45++]=t<<0x2|(0x30&_0x71c339)>>0x4,t=_0x71c339,_0x3107d9=0x2;break;case 0x2:_0x42b359[_0x40de45++]=(0xf&t)<<0x4|(0x3c&_0x71c339)>>0x2,t=_0x71c339,_0x3107d9=0x3;break;case 0x3:_0x42b359[_0x40de45++]=(0x3&t)<<0x6|_0x71c339,_0x3107d9=0x0;}}if(0x1===_0x3107d9)throw Error(_0x14f57e);return _0x40de45-_0x43fbcf;},_0xb66074['test']=function(_0x22bc24){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/['test'](_0x22bc24);};}(base64)),base64;}function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;function _0x464420(){this['_listeners']={};}return hasRequiredEventemitter=0x1,eventemitter=_0x464420,_0x464420['prototype']['on']=function(_0x2db503,_0x368ce0,_0x43e541){return(this['_listeners'][_0x2db503]||(this['_listeners'][_0x2db503]=[]))['push']({'fn':_0x368ce0,'ctx':_0x43e541||this}),this;},_0x464420['prototype']['off']=function(_0x4f8ba6,_0x33ea0f){if(void 0x0===_0x4f8ba6)this['_listeners']={};else{if(void 0x0===_0x33ea0f)this['_listeners'][_0x4f8ba6]=[];else{for(var _0x210d11=this['_listeners'][_0x4f8ba6],_0x1a9996=0x0;_0x1a9996<_0x210d11['length'];)_0x210d11[_0x1a9996]['fn']===_0x33ea0f?_0x210d11['splice'](_0x1a9996,0x1):++_0x1a9996;}}return this;},_0x464420['prototype']['emit']=function(_0x22609c){var _0x63af5e=this['_listeners'][_0x22609c];if(_0x63af5e){for(var _0x532b4e=[],_0x1927fc=0x1;_0x1927fc<arguments['length'];)_0x532b4e['push'](arguments[_0x1927fc++]);for(_0x1927fc=0x0;_0x1927fc<_0x63af5e['length'];)_0x63af5e[_0x1927fc]['fn']['apply'](_0x63af5e[_0x1927fc++]['ctx'],_0x532b4e);}return this;},eventemitter;}function requireFloat(){if(hasRequiredFloat)return float;function _0x103123(_0x3c888d){return'undefined'!=typeof Float32Array?(function(){var _0x1913fa=new Float32Array([-0x0]),_0x574e55=new Uint8Array(_0x1913fa['buffer']),_0x5e9b17=0x80===_0x574e55[0x3];function _0x526d2b(_0x23cc25,_0x374174,_0x5a941b){_0x1913fa[0x0]=_0x23cc25,_0x374174[_0x5a941b]=_0x574e55[0x0],_0x374174[_0x5a941b+0x1]=_0x574e55[0x1],_0x374174[_0x5a941b+0x2]=_0x574e55[0x2],_0x374174[_0x5a941b+0x3]=_0x574e55[0x3];}function _0x3532a8(_0x41d6bd,_0x1ee5fa,_0x262889){_0x1913fa[0x0]=_0x41d6bd,_0x1ee5fa[_0x262889]=_0x574e55[0x3],_0x1ee5fa[_0x262889+0x1]=_0x574e55[0x2],_0x1ee5fa[_0x262889+0x2]=_0x574e55[0x1],_0x1ee5fa[_0x262889+0x3]=_0x574e55[0x0];}function _0x15b3d4(_0x5bdee2,_0x2d7550){return _0x574e55[0x0]=_0x5bdee2[_0x2d7550],_0x574e55[0x1]=_0x5bdee2[_0x2d7550+0x1],_0x574e55[0x2]=_0x5bdee2[_0x2d7550+0x2],_0x574e55[0x3]=_0x5bdee2[_0x2d7550+0x3],_0x1913fa[0x0];}function _0x4d22a6(_0x5a7f8c,_0x53f1b5){return _0x574e55[0x3]=_0x5a7f8c[_0x53f1b5],_0x574e55[0x2]=_0x5a7f8c[_0x53f1b5+0x1],_0x574e55[0x1]=_0x5a7f8c[_0x53f1b5+0x2],_0x574e55[0x0]=_0x5a7f8c[_0x53f1b5+0x3],_0x1913fa[0x0];}_0x3c888d['writeFloatLE']=_0x5e9b17?_0x526d2b:_0x3532a8,_0x3c888d['writeFloatBE']=_0x5e9b17?_0x3532a8:_0x526d2b,_0x3c888d['readFloatLE']=_0x5e9b17?_0x15b3d4:_0x4d22a6,_0x3c888d['readFloatBE']=_0x5e9b17?_0x4d22a6:_0x15b3d4;}()):(function(){function _0x124982(_0x1a969c,_0x26ab98,_0x2d51dd,_0x5ded16){var _0x438366=_0x26ab98<0x0?0x1:0x0;if(_0x438366&&(_0x26ab98=-_0x26ab98),0x0===_0x26ab98)_0x1a969c(0x1/_0x26ab98>0x0?0x0:0x80000000,_0x2d51dd,_0x5ded16);else{if(isNaN(_0x26ab98))_0x1a969c(0x7fc00000,_0x2d51dd,_0x5ded16);else{if(_0x26ab98>0xffffff00000000000000000000000000)_0x1a969c((_0x438366<<0x1f|0x7f800000)>>>0x0,_0x2d51dd,_0x5ded16);else{if(_0x26ab98<1.1754943508222875e-38)_0x1a969c((_0x438366<<0x1f|Math['round'](_0x26ab98/1.401298464324817e-45))>>>0x0,_0x2d51dd,_0x5ded16);else{var _0x32c4b1=Math['floor'](Math['log'](_0x26ab98)/Math['LN2']);_0x1a969c((_0x438366<<0x1f|_0x32c4b1+0x7f<<0x17|0x7fffff&Math['round'](_0x26ab98*Math['pow'](0x2,-_0x32c4b1)*0x800000))>>>0x0,_0x2d51dd,_0x5ded16);}}}}}function _0x863b73(_0x466283,_0x5ed69f,_0x3dc116){var _0x69a0d2=_0x466283(_0x5ed69f,_0x3dc116),_0x41d72c=0x2*(_0x69a0d2>>0x1f)+0x1,_0x352c75=_0x69a0d2>>>0x17&0xff,_0x56ca2a=0x7fffff&_0x69a0d2;return 0xff===_0x352c75?_0x56ca2a?NaN:_0x41d72c*(0x1/0x0):0x0===_0x352c75?1.401298464324817e-45*_0x41d72c*_0x56ca2a:_0x41d72c*Math['pow'](0x2,_0x352c75-0x96)*(_0x56ca2a+0x800000);}_0x3c888d['writeFloatLE']=_0x124982['bind'](null,_0x4e3f44),_0x3c888d['writeFloatBE']=_0x124982['bind'](null,_0x2ae4ce),_0x3c888d['readFloatLE']=_0x863b73['bind'](null,_0x3009bd),_0x3c888d['readFloatBE']=_0x863b73['bind'](null,_0x23d87b);}()),'undefined'!=typeof Float64Array?(function(){var _0x954585=new Float64Array([-0x0]),_0x3d1e50=new Uint8Array(_0x954585['buffer']),_0x541538=0x80===_0x3d1e50[0x7];function _0xe8ee46(_0x198593,_0x188043,_0x14b018){_0x954585[0x0]=_0x198593,_0x188043[_0x14b018]=_0x3d1e50[0x0],_0x188043[_0x14b018+0x1]=_0x3d1e50[0x1],_0x188043[_0x14b018+0x2]=_0x3d1e50[0x2],_0x188043[_0x14b018+0x3]=_0x3d1e50[0x3],_0x188043[_0x14b018+0x4]=_0x3d1e50[0x4],_0x188043[_0x14b018+0x5]=_0x3d1e50[0x5],_0x188043[_0x14b018+0x6]=_0x3d1e50[0x6],_0x188043[_0x14b018+0x7]=_0x3d1e50[0x7];}function _0x236c06(_0x49ed16,_0x29cac3,_0x440f94){_0x954585[0x0]=_0x49ed16,_0x29cac3[_0x440f94]=_0x3d1e50[0x7],_0x29cac3[_0x440f94+0x1]=_0x3d1e50[0x6],_0x29cac3[_0x440f94+0x2]=_0x3d1e50[0x5],_0x29cac3[_0x440f94+0x3]=_0x3d1e50[0x4],_0x29cac3[_0x440f94+0x4]=_0x3d1e50[0x3],_0x29cac3[_0x440f94+0x5]=_0x3d1e50[0x2],_0x29cac3[_0x440f94+0x6]=_0x3d1e50[0x1],_0x29cac3[_0x440f94+0x7]=_0x3d1e50[0x0];}function _0x55f636(_0x56e847,_0x2567c6){return _0x3d1e50[0x0]=_0x56e847[_0x2567c6],_0x3d1e50[0x1]=_0x56e847[_0x2567c6+0x1],_0x3d1e50[0x2]=_0x56e847[_0x2567c6+0x2],_0x3d1e50[0x3]=_0x56e847[_0x2567c6+0x3],_0x3d1e50[0x4]=_0x56e847[_0x2567c6+0x4],_0x3d1e50[0x5]=_0x56e847[_0x2567c6+0x5],_0x3d1e50[0x6]=_0x56e847[_0x2567c6+0x6],_0x3d1e50[0x7]=_0x56e847[_0x2567c6+0x7],_0x954585[0x0];}function _0x45829f(_0x500d53,_0x15ffa6){return _0x3d1e50[0x7]=_0x500d53[_0x15ffa6],_0x3d1e50[0x6]=_0x500d53[_0x15ffa6+0x1],_0x3d1e50[0x5]=_0x500d53[_0x15ffa6+0x2],_0x3d1e50[0x4]=_0x500d53[_0x15ffa6+0x3],_0x3d1e50[0x3]=_0x500d53[_0x15ffa6+0x4],_0x3d1e50[0x2]=_0x500d53[_0x15ffa6+0x5],_0x3d1e50[0x1]=_0x500d53[_0x15ffa6+0x6],_0x3d1e50[0x0]=_0x500d53[_0x15ffa6+0x7],_0x954585[0x0];}_0x3c888d['writeDoubleLE']=_0x541538?_0xe8ee46:_0x236c06,_0x3c888d['writeDoubleBE']=_0x541538?_0x236c06:_0xe8ee46,_0x3c888d['readDoubleLE']=_0x541538?_0x55f636:_0x45829f,_0x3c888d['readDoubleBE']=_0x541538?_0x45829f:_0x55f636;}()):(function(){function _0x118eb5(_0x3d1667,_0x220535,_0x18a23a,_0x5e9a8d,_0x5d7b06,_0x41d320){var _0x5ad504=_0x5e9a8d<0x0?0x1:0x0;if(_0x5ad504&&(_0x5e9a8d=-_0x5e9a8d),0x0===_0x5e9a8d)_0x3d1667(0x0,_0x5d7b06,_0x41d320+_0x220535),_0x3d1667(0x1/_0x5e9a8d>0x0?0x0:0x80000000,_0x5d7b06,_0x41d320+_0x18a23a);else{if(isNaN(_0x5e9a8d))_0x3d1667(0x0,_0x5d7b06,_0x41d320+_0x220535),_0x3d1667(0x7ff80000,_0x5d7b06,_0x41d320+_0x18a23a);else{if(_0x5e9a8d>0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)_0x3d1667(0x0,_0x5d7b06,_0x41d320+_0x220535),_0x3d1667((_0x5ad504<<0x1f|0x7ff00000)>>>0x0,_0x5d7b06,_0x41d320+_0x18a23a);else{var _0x12be95;if(_0x5e9a8d<2.2250738585072014e-308)_0x3d1667((_0x12be95=_0x5e9a8d/5e-324)>>>0x0,_0x5d7b06,_0x41d320+_0x220535),_0x3d1667((_0x5ad504<<0x1f|_0x12be95/0x100000000)>>>0x0,_0x5d7b06,_0x41d320+_0x18a23a);else{var _0x3e14c1=Math['floor'](Math['log'](_0x5e9a8d)/Math['LN2']);0x400===_0x3e14c1&&(_0x3e14c1=0x3ff),_0x3d1667(0x10000000000000*(_0x12be95=_0x5e9a8d*Math['pow'](0x2,-_0x3e14c1))>>>0x0,_0x5d7b06,_0x41d320+_0x220535),_0x3d1667((_0x5ad504<<0x1f|_0x3e14c1+0x3ff<<0x14|0x100000*_0x12be95&0xfffff)>>>0x0,_0x5d7b06,_0x41d320+_0x18a23a);}}}}}function _0x5dc1b4(_0x2935cf,_0x535578,_0x2cf63b,_0x2a9f18,_0x2302d0){var _0x449cd7=_0x2935cf(_0x2a9f18,_0x2302d0+_0x535578),_0x3390b2=_0x2935cf(_0x2a9f18,_0x2302d0+_0x2cf63b),_0x5dc062=0x2*(_0x3390b2>>0x1f)+0x1,_0x1b9ea4=_0x3390b2>>>0x14&0x7ff,_0x4bb91a=0x100000000*(0xfffff&_0x3390b2)+_0x449cd7;return 0x7ff===_0x1b9ea4?_0x4bb91a?NaN:_0x5dc062*(0x1/0x0):0x0===_0x1b9ea4?5e-324*_0x5dc062*_0x4bb91a:_0x5dc062*Math['pow'](0x2,_0x1b9ea4-0x433)*(_0x4bb91a+0x10000000000000);}_0x3c888d['writeDoubleLE']=_0x118eb5['bind'](null,_0x4e3f44,0x0,0x4),_0x3c888d['writeDoubleBE']=_0x118eb5['bind'](null,_0x2ae4ce,0x4,0x0),_0x3c888d['readDoubleLE']=_0x5dc1b4['bind'](null,_0x3009bd,0x0,0x4),_0x3c888d['readDoubleBE']=_0x5dc1b4['bind'](null,_0x23d87b,0x4,0x0);}()),_0x3c888d;}function _0x4e3f44(_0x875768,_0x2145f1,_0x5b269b){_0x2145f1[_0x5b269b]=0xff&_0x875768,_0x2145f1[_0x5b269b+0x1]=_0x875768>>>0x8&0xff,_0x2145f1[_0x5b269b+0x2]=_0x875768>>>0x10&0xff,_0x2145f1[_0x5b269b+0x3]=_0x875768>>>0x18;}function _0x2ae4ce(_0x2ce5ea,_0x1add63,_0x1aeb75){_0x1add63[_0x1aeb75]=_0x2ce5ea>>>0x18,_0x1add63[_0x1aeb75+0x1]=_0x2ce5ea>>>0x10&0xff,_0x1add63[_0x1aeb75+0x2]=_0x2ce5ea>>>0x8&0xff,_0x1add63[_0x1aeb75+0x3]=0xff&_0x2ce5ea;}function _0x3009bd(_0x18f16e,_0x18259c){return(_0x18f16e[_0x18259c]|_0x18f16e[_0x18259c+0x1]<<0x8|_0x18f16e[_0x18259c+0x2]<<0x10|_0x18f16e[_0x18259c+0x3]<<0x18)>>>0x0;}function _0x23d87b(_0x5e0f88,_0x575d5){return(_0x5e0f88[_0x575d5]<<0x18|_0x5e0f88[_0x575d5+0x1]<<0x10|_0x5e0f88[_0x575d5+0x2]<<0x8|_0x5e0f88[_0x575d5+0x3])>>>0x0;}return hasRequiredFloat=0x1,float=_0x103123(_0x103123);}function requireInquire(){if(hasRequiredInquire)return inquire_1;function _0x26d452(_0x4b37bb){try{var _0x3c27bf=eval('quire'['replace'](/^/,'re'))(_0x4b37bb);if(_0x3c27bf&&(_0x3c27bf['length']||Object['keys'](_0x3c27bf)['length']))return _0x3c27bf;}catch(_0xcfeada){}return null;}return hasRequiredInquire=0x1,inquire_1=_0x26d452,inquire_1;}var utf8={},hasRequiredUtf8,pool_1,hasRequiredPool,longbits,hasRequiredLongbits,hasRequiredMinimal$1,writer,hasRequiredWriter,writer_buffer,hasRequiredWriter_buffer,reader,hasRequiredReader,reader_buffer,hasRequiredReader_buffer;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=0x1,function(_0x3d6def){var _0x37e824=_0x3d6def;_0x37e824['length']=function(_0xc3f261){for(var _0x5313e5=0x0,_0x18afc0=0x0,_0x440e64=0x0;_0x440e64<_0xc3f261['length'];++_0x440e64)(_0x18afc0=_0xc3f261['charCodeAt'](_0x440e64))<0x80?_0x5313e5+=0x1:_0x18afc0<0x800?_0x5313e5+=0x2:0xd800==(0xfc00&_0x18afc0)&&0xdc00==(0xfc00&_0xc3f261['charCodeAt'](_0x440e64+0x1))?(++_0x440e64,_0x5313e5+=0x4):_0x5313e5+=0x3;return _0x5313e5;},_0x37e824['read']=function(_0x2a9666,_0x51e13f,_0x331154){if(_0x331154-_0x51e13f<0x1)return'';for(var t,_0x45fcb0=null,_0x2802f3=[],_0x754679=0x0;_0x51e13f<_0x331154;)(t=_0x2a9666[_0x51e13f++])<0x80?_0x2802f3[_0x754679++]=t:t>0xbf&&t<0xe0?_0x2802f3[_0x754679++]=(0x1f&t)<<0x6|0x3f&_0x2a9666[_0x51e13f++]:t>0xef&&t<0x16d?(t=((0x7&t)<<0x12|(0x3f&_0x2a9666[_0x51e13f++])<<0xc|(0x3f&_0x2a9666[_0x51e13f++])<<0x6|0x3f&_0x2a9666[_0x51e13f++])-0x10000,_0x2802f3[_0x754679++]=0xd800+(t>>0xa),_0x2802f3[_0x754679++]=0xdc00+(0x3ff&t)):_0x2802f3[_0x754679++]=(0xf&t)<<0xc|(0x3f&_0x2a9666[_0x51e13f++])<<0x6|0x3f&_0x2a9666[_0x51e13f++],_0x754679>0x1fff&&((_0x45fcb0||(_0x45fcb0=[]))['push'](String['fromCharCode']['apply'](String,_0x2802f3)),_0x754679=0x0);return _0x45fcb0?(_0x754679&&_0x45fcb0['push'](String['fromCharCode']['apply'](String,_0x2802f3['slice'](0x0,_0x754679))),_0x45fcb0['join']('')):String['fromCharCode']['apply'](String,_0x2802f3['slice'](0x0,_0x754679));},_0x37e824['write']=function(_0x80c357,_0x6c3c57,_0x564c74){for(var _0x3e33df,_0x42d98f,_0x2ade05=_0x564c74,_0x242a61=0x0;_0x242a61<_0x80c357['length'];++_0x242a61)(_0x3e33df=_0x80c357['charCodeAt'](_0x242a61))<0x80?_0x6c3c57[_0x564c74++]=_0x3e33df:_0x3e33df<0x800?(_0x6c3c57[_0x564c74++]=_0x3e33df>>0x6|0xc0,_0x6c3c57[_0x564c74++]=0x3f&_0x3e33df|0x80):0xd800==(0xfc00&_0x3e33df)&&0xdc00==(0xfc00&(_0x42d98f=_0x80c357['charCodeAt'](_0x242a61+0x1)))?(_0x3e33df=0x10000+((0x3ff&_0x3e33df)<<0xa)+(0x3ff&_0x42d98f),++_0x242a61,_0x6c3c57[_0x564c74++]=_0x3e33df>>0x12|0xf0,_0x6c3c57[_0x564c74++]=_0x3e33df>>0xc&0x3f|0x80,_0x6c3c57[_0x564c74++]=_0x3e33df>>0x6&0x3f|0x80,_0x6c3c57[_0x564c74++]=0x3f&_0x3e33df|0x80):(_0x6c3c57[_0x564c74++]=_0x3e33df>>0xc|0xe0,_0x6c3c57[_0x564c74++]=_0x3e33df>>0x6&0x3f|0x80,_0x6c3c57[_0x564c74++]=0x3f&_0x3e33df|0x80);return _0x564c74-_0x2ade05;};}(utf8)),utf8;}function requirePool(){if(hasRequiredPool)return pool_1;return hasRequiredPool=0x1,pool_1=function(_0x52407a,_0x52a072,_0x508ddb){var _0x4b04e8=_0x508ddb||0x2000,_0x43263f=_0x4b04e8>>>0x1,_0x408b89=null,_0x44e238=_0x4b04e8;return function(_0x678c01){if(_0x678c01<0x1||_0x678c01>_0x43263f)return _0x52407a(_0x678c01);_0x44e238+_0x678c01>_0x4b04e8&&(_0x408b89=_0x52407a(_0x4b04e8),_0x44e238=0x0);var _0x455696=_0x52a072['call'](_0x408b89,_0x44e238,_0x44e238+=_0x678c01);return 0x7&_0x44e238&&(_0x44e238=0x1+(0x7|_0x44e238)),_0x455696;};},pool_1;}function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=0x1,longbits=_0x3913ac;var _0x1470e8=requireMinimal$1();function _0x3913ac(_0x3d0b7c,_0x230d84){this['lo']=_0x3d0b7c>>>0x0,this['hi']=_0x230d84>>>0x0;}var _0x58eb94=_0x3913ac['zero']=new _0x3913ac(0x0,0x0);_0x58eb94['toNumber']=function(){return 0x0;},_0x58eb94['zzEncode']=_0x58eb94['zzDecode']=function(){return this;},_0x58eb94['length']=function(){return 0x1;};var _0x5caced=_0x3913ac['zeroHash']='\x00\x00\x00\x00\x00\x00\x00\x00';_0x3913ac['fromNumber']=function(_0x42e92e){if(0x0===_0x42e92e)return _0x58eb94;var _0x186f5c=_0x42e92e<0x0;_0x186f5c&&(_0x42e92e=-_0x42e92e);var _0x518f5=_0x42e92e>>>0x0,_0x213500=(_0x42e92e-_0x518f5)/0x100000000>>>0x0;return _0x186f5c&&(_0x213500=~_0x213500>>>0x0,_0x518f5=~_0x518f5>>>0x0,++_0x518f5>0xffffffff&&(_0x518f5=0x0,++_0x213500>0xffffffff&&(_0x213500=0x0))),new _0x3913ac(_0x518f5,_0x213500);},_0x3913ac['from']=function(_0x3665a4){if('number'==typeof _0x3665a4)return _0x3913ac['fromNumber'](_0x3665a4);if(_0x1470e8['isString'](_0x3665a4)){if(!_0x1470e8['Long'])return _0x3913ac['fromNumber'](parseInt(_0x3665a4,0xa));_0x3665a4=_0x1470e8['Long']['fromString'](_0x3665a4);}return _0x3665a4['low']||_0x3665a4['high']?new _0x3913ac(_0x3665a4['low']>>>0x0,_0x3665a4['high']>>>0x0):_0x58eb94;},_0x3913ac['prototype']['toNumber']=function(_0xaaa707){if(!_0xaaa707&&this['hi']>>>0x1f){var _0x35f720=0x1+~this['lo']>>>0x0,_0x51c05a=~this['hi']>>>0x0;return _0x35f720||(_0x51c05a=_0x51c05a+0x1>>>0x0),-(_0x35f720+0x100000000*_0x51c05a);}return this['lo']+0x100000000*this['hi'];},_0x3913ac['prototype']['toLong']=function(_0x3ffa28){return _0x1470e8['Long']?new _0x1470e8['Long'](0x0|this['lo'],0x0|this['hi'],Boolean(_0x3ffa28)):{'low':0x0|this['lo'],'high':0x0|this['hi'],'unsigned':Boolean(_0x3ffa28)};};var _0x2b587a=String['prototype']['charCodeAt'];return _0x3913ac['fromHash']=function(_0x280afd){return _0x280afd===_0x5caced?_0x58eb94:new _0x3913ac((_0x2b587a['call'](_0x280afd,0x0)|_0x2b587a['call'](_0x280afd,0x1)<<0x8|_0x2b587a['call'](_0x280afd,0x2)<<0x10|_0x2b587a['call'](_0x280afd,0x3)<<0x18)>>>0x0,(_0x2b587a['call'](_0x280afd,0x4)|_0x2b587a['call'](_0x280afd,0x5)<<0x8|_0x2b587a['call'](_0x280afd,0x6)<<0x10|_0x2b587a['call'](_0x280afd,0x7)<<0x18)>>>0x0);},_0x3913ac['prototype']['toHash']=function(){return String['fromCharCode'](0xff&this['lo'],this['lo']>>>0x8&0xff,this['lo']>>>0x10&0xff,this['lo']>>>0x18,0xff&this['hi'],this['hi']>>>0x8&0xff,this['hi']>>>0x10&0xff,this['hi']>>>0x18);},_0x3913ac['prototype']['zzEncode']=function(){var _0x4f36d9=this['hi']>>0x1f;return this['hi']=((this['hi']<<0x1|this['lo']>>>0x1f)^_0x4f36d9)>>>0x0,this['lo']=(this['lo']<<0x1^_0x4f36d9)>>>0x0,this;},_0x3913ac['prototype']['zzDecode']=function(){var _0x24c065=-(0x1&this['lo']);return this['lo']=((this['lo']>>>0x1|this['hi']<<0x1f)^_0x24c065)>>>0x0,this['hi']=(this['hi']>>>0x1^_0x24c065)>>>0x0,this;},_0x3913ac['prototype']['length']=function(){var _0x462e92=this['lo'],_0x29a0cf=(this['lo']>>>0x1c|this['hi']<<0x4)>>>0x0,_0x5f3255=this['hi']>>>0x18;return 0x0===_0x5f3255?0x0===_0x29a0cf?_0x462e92<0x4000?_0x462e92<0x80?0x1:0x2:_0x462e92<0x200000?0x3:0x4:_0x29a0cf<0x4000?_0x29a0cf<0x80?0x5:0x6:_0x29a0cf<0x200000?0x7:0x8:_0x5f3255<0x80?0x9:0xa;},longbits;}function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=0x1,(function(){var _0x24e584=minimal$1;function _0x510df0(_0x3f5b0a,_0x766384,_0x102d08){for(var _0x2aafbf=Object['keys'](_0x766384),_0x3c9f39=0x0;_0x3c9f39<_0x2aafbf['length'];++_0x3c9f39)void 0x0!==_0x3f5b0a[_0x2aafbf[_0x3c9f39]]&&_0x102d08||(_0x3f5b0a[_0x2aafbf[_0x3c9f39]]=_0x766384[_0x2aafbf[_0x3c9f39]]);return _0x3f5b0a;}function _0x38a646(_0x3111f4){function _0xf772f3(_0xc3974,_0x38cd9b){if(!(this instanceof _0xf772f3))return new _0xf772f3(_0xc3974,_0x38cd9b);Object['defineProperty'](this,'message',{'get':function(){return _0xc3974;}}),Error['captureStackTrace']?Error['captureStackTrace'](this,_0xf772f3):Object['defineProperty'](this,'stack',{'value':new Error()['stack']||''}),_0x38cd9b&&_0x510df0(this,_0x38cd9b);}return _0xf772f3['prototype']=Object['create'](Error['prototype'],{'constructor':{'value':_0xf772f3,'writable':!0x0,'enumerable':!0x1,'configurable':!0x0},'name':{'get':function(){return _0x3111f4;},'set':void 0x0,'enumerable':!0x1,'configurable':!0x0},'toString':{'value':function(){return this['name']+':\x20'+this['message'];},'writable':!0x0,'enumerable':!0x1,'configurable':!0x0}}),_0xf772f3;}_0x24e584['asPromise']=requireAspromise(),_0x24e584['base64']=requireBase64(),_0x24e584['EventEmitter']=requireEventemitter(),_0x24e584['float']=requireFloat(),_0x24e584['inquire']=requireInquire(),_0x24e584['utf8']=requireUtf8(),_0x24e584['pool']=requirePool(),_0x24e584['LongBits']=requireLongbits(),_0x24e584['isNode']=Boolean(void 0x0!==commonjsGlobal&&commonjsGlobal&&commonjsGlobal['process']&&commonjsGlobal['process']['versions']&&commonjsGlobal['process']['versions']['node']),_0x24e584['global']=_0x24e584['isNode']&&commonjsGlobal||'undefined'!=typeof window&&window||'undefined'!=typeof self&&self||minimal$1,_0x24e584['emptyArray']=Object['freeze']?Object['freeze']([]):[],_0x24e584['emptyObject']=Object['freeze']?Object['freeze']({}):{},_0x24e584['isInteger']=Number['isInteger']||function(_0x550d17){return'number'==typeof _0x550d17&&isFinite(_0x550d17)&&Math['floor'](_0x550d17)===_0x550d17;},_0x24e584['isString']=function(_0xb8d777){return'string'==typeof _0xb8d777||_0xb8d777 instanceof String;},_0x24e584['isObject']=function(_0x4e93f1){return _0x4e93f1&&'object'==typeof _0x4e93f1;},_0x24e584['isset']=_0x24e584['isSet']=function(_0xd10f0f,_0xab1932){var _0xa50dca=_0xd10f0f[_0xab1932];return!(null==_0xa50dca||!_0xd10f0f['hasOwnProperty'](_0xab1932))&&('object'!=typeof _0xa50dca||(Array['isArray'](_0xa50dca)?_0xa50dca['length']:Object['keys'](_0xa50dca)['length'])>0x0);},_0x24e584['Buffer']=(function(){try{var _0xe42b03=_0x24e584['inquire']('buffer')['Buffer'];return _0xe42b03['prototype']['utf8Write']?_0xe42b03:null;}catch(_0x56ed42){return null;}}()),_0x24e584['_Buffer_from']=null,_0x24e584['_Buffer_allocUnsafe']=null,_0x24e584['newBuffer']=function(_0x16156a){return'number'==typeof _0x16156a?_0x24e584['Buffer']?_0x24e584['_Buffer_allocUnsafe'](_0x16156a):new _0x24e584['Array'](_0x16156a):_0x24e584['Buffer']?_0x24e584['_Buffer_from'](_0x16156a):'undefined'==typeof Uint8Array?_0x16156a:new Uint8Array(_0x16156a);},_0x24e584['Array']='undefined'!=typeof Uint8Array?Uint8Array:Array,_0x24e584['Long']=_0x24e584['global']['dcodeIO']&&_0x24e584['global']['dcodeIO']['Long']||_0x24e584['global']['Long']||_0x24e584['inquire']('long'),_0x24e584['key2Re']=/^true|false|0|1$/,_0x24e584['key32Re']=/^-?(?:0|[1-9][0-9]*)$/,_0x24e584['key64Re']=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,_0x24e584['longToHash']=function(_0xcafe5){return _0xcafe5?_0x24e584['LongBits']['from'](_0xcafe5)['toHash']():_0x24e584['LongBits']['zeroHash'];},_0x24e584['longFromHash']=function(_0x3847f9,_0x188289){var _0x1af92=_0x24e584['LongBits']['fromHash'](_0x3847f9);return _0x24e584['Long']?_0x24e584['Long']['fromBits'](_0x1af92['lo'],_0x1af92['hi'],_0x188289):_0x1af92['toNumber'](Boolean(_0x188289));},_0x24e584['merge']=_0x510df0,_0x24e584['lcFirst']=function(_0x915b7c){return _0x915b7c['charAt'](0x0)['toLowerCase']()+_0x915b7c['substring'](0x1);},_0x24e584['newError']=_0x38a646,_0x24e584['ProtocolError']=_0x38a646('ProtocolError'),_0x24e584['oneOfGetter']=function(_0x2e0b98){for(var _0x2ad83a={},_0x2a72ff=0x0;_0x2a72ff<_0x2e0b98['length'];++_0x2a72ff)_0x2ad83a[_0x2e0b98[_0x2a72ff]]=0x1;return function(){for(var _0x4d9185=Object['keys'](this),_0x5c92c4=_0x4d9185['length']-0x1;_0x5c92c4>-0x1;--_0x5c92c4)if(0x1===_0x2ad83a[_0x4d9185[_0x5c92c4]]&&void 0x0!==this[_0x4d9185[_0x5c92c4]]&&null!==this[_0x4d9185[_0x5c92c4]])return _0x4d9185[_0x5c92c4];};},_0x24e584['oneOfSetter']=function(_0x56aa45){return function(_0x5f207b){for(var _0x4e3499=0x0;_0x4e3499<_0x56aa45['length'];++_0x4e3499)_0x56aa45[_0x4e3499]!==_0x5f207b&&delete this[_0x56aa45[_0x4e3499]];};},_0x24e584['toJSONOptions']={'longs':String,'enums':String,'bytes':String,'json':!0x0},_0x24e584['_configure']=function(){var _0x3e7104=_0x24e584['Buffer'];_0x3e7104?(_0x24e584['_Buffer_from']=_0x3e7104['from']!==Uint8Array['from']&&_0x3e7104['from']||function(_0x5728e8,_0xe93e1a){return new _0x3e7104(_0x5728e8,_0xe93e1a);},_0x24e584['_Buffer_allocUnsafe']=_0x3e7104['allocUnsafe']||function(_0xb9b671){return new _0x3e7104(_0xb9b671);}):_0x24e584['_Buffer_from']=_0x24e584['_Buffer_allocUnsafe']=null;};}())),minimal$1;}function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=0x1,writer=_0x3e0665;var _0x4c4977,_0x5e7e96=requireMinimal$1(),_0x512a6f=_0x5e7e96['LongBits'],_0x2d145d=_0x5e7e96['base64'],_0xd97f2a=_0x5e7e96['utf8'];function _0x1d80a4(_0xc51cb6,_0x58ae6b,_0x6deb87){this['fn']=_0xc51cb6,this['len']=_0x58ae6b,this['next']=void 0x0,this['val']=_0x6deb87;}function _0x4e7309(){}function _0x91eba(_0x37cc1b){this['head']=_0x37cc1b['head'],this['tail']=_0x37cc1b['tail'],this['len']=_0x37cc1b['len'],this['next']=_0x37cc1b['states'];}function _0x3e0665(){this['len']=0x0,this['head']=new _0x1d80a4(_0x4e7309,0x0,0x0),this['tail']=this['head'],this['states']=null;}var _0x2a2138=function(){return _0x5e7e96['Buffer']?function(){return(_0x3e0665['create']=function(){return new _0x4c4977();})();}:function(){return new _0x3e0665();};};function _0x54953d(_0x4b56ec,_0x39e235,_0x450ee2){_0x39e235[_0x450ee2]=0xff&_0x4b56ec;}function _0x100f60(_0x4091c4,_0x3571ad){this['len']=_0x4091c4,this['next']=void 0x0,this['val']=_0x3571ad;}function _0x2d87c3(_0x960b74,_0x12b808,_0x3a4325){for(;_0x960b74['hi'];)_0x12b808[_0x3a4325++]=0x7f&_0x960b74['lo']|0x80,_0x960b74['lo']=(_0x960b74['lo']>>>0x7|_0x960b74['hi']<<0x19)>>>0x0,_0x960b74['hi']>>>=0x7;for(;_0x960b74['lo']>0x7f;)_0x12b808[_0x3a4325++]=0x7f&_0x960b74['lo']|0x80,_0x960b74['lo']=_0x960b74['lo']>>>0x7;_0x12b808[_0x3a4325++]=_0x960b74['lo'];}function _0x249996(_0xf4e606,_0x5e59a8,_0x4f182d){_0x5e59a8[_0x4f182d]=0xff&_0xf4e606,_0x5e59a8[_0x4f182d+0x1]=_0xf4e606>>>0x8&0xff,_0x5e59a8[_0x4f182d+0x2]=_0xf4e606>>>0x10&0xff,_0x5e59a8[_0x4f182d+0x3]=_0xf4e606>>>0x18;}_0x3e0665['create']=_0x2a2138(),_0x3e0665['alloc']=function(_0x125e4a){return new _0x5e7e96['Array'](_0x125e4a);},_0x5e7e96['Array']!==Array&&(_0x3e0665['alloc']=_0x5e7e96['pool'](_0x3e0665['alloc'],_0x5e7e96['Array']['prototype']['subarray'])),_0x3e0665['prototype']['_push']=function(_0x4acd2f,_0x19a9ef,_0x56c041){return this['tail']=this['tail']['next']=new _0x1d80a4(_0x4acd2f,_0x19a9ef,_0x56c041),this['len']+=_0x19a9ef,this;},_0x100f60['prototype']=Object['create'](_0x1d80a4['prototype']),_0x100f60['prototype']['fn']=function(_0xa550b1,_0x1bdfdb,_0xfbbeb5){for(;_0xa550b1>0x7f;)_0x1bdfdb[_0xfbbeb5++]=0x7f&_0xa550b1|0x80,_0xa550b1>>>=0x7;_0x1bdfdb[_0xfbbeb5]=_0xa550b1;},_0x3e0665['prototype']['uint32']=function(_0x2d04a4){return this['len']+=(this['tail']=this['tail']['next']=new _0x100f60((_0x2d04a4>>>=0x0)<0x80?0x1:_0x2d04a4<0x4000?0x2:_0x2d04a4<0x200000?0x3:_0x2d04a4<0x10000000?0x4:0x5,_0x2d04a4))['len'],this;},_0x3e0665['prototype']['int32']=function(_0x1a3af4){return _0x1a3af4<0x0?this['_push'](_0x2d87c3,0xa,_0x512a6f['fromNumber'](_0x1a3af4)):this['uint32'](_0x1a3af4);},_0x3e0665['prototype']['sint32']=function(_0x53babd){return this['uint32']((_0x53babd<<0x1^_0x53babd>>0x1f)>>>0x0);},_0x3e0665['prototype']['uint64']=function(_0x51d897){var _0x37654d=_0x512a6f['from'](_0x51d897);return this['_push'](_0x2d87c3,_0x37654d['length'](),_0x37654d);},_0x3e0665['prototype']['int64']=_0x3e0665['prototype']['uint64'],_0x3e0665['prototype']['sint64']=function(_0x55aeb1){var _0x155ab9=_0x512a6f['from'](_0x55aeb1)['zzEncode']();return this['_push'](_0x2d87c3,_0x155ab9['length'](),_0x155ab9);},_0x3e0665['prototype']['bool']=function(_0x398fa0){return this['_push'](_0x54953d,0x1,_0x398fa0?0x1:0x0);},_0x3e0665['prototype']['fixed32']=function(_0x2fb309){return this['_push'](_0x249996,0x4,_0x2fb309>>>0x0);},_0x3e0665['prototype']['sfixed32']=_0x3e0665['prototype']['fixed32'],_0x3e0665['prototype']['fixed64']=function(_0x55f104){var _0xd18d48=_0x512a6f['from'](_0x55f104);return this['_push'](_0x249996,0x4,_0xd18d48['lo'])['_push'](_0x249996,0x4,_0xd18d48['hi']);},_0x3e0665['prototype']['sfixed64']=_0x3e0665['prototype']['fixed64'],_0x3e0665['prototype']['float']=function(_0x5daec7){return this['_push'](_0x5e7e96['float']['writeFloatLE'],0x4,_0x5daec7);},_0x3e0665['prototype']['double']=function(_0x4f7072){return this['_push'](_0x5e7e96['float']['writeDoubleLE'],0x8,_0x4f7072);};var _0x5b4f17=_0x5e7e96['Array']['prototype']['set']?function(_0x4670f3,_0x170ea5,_0x270b87){_0x170ea5['set'](_0x4670f3,_0x270b87);}:function(_0x32fe9d,_0x47c36f,_0x5baa62){for(var _0x36cab2=0x0;_0x36cab2<_0x32fe9d['length'];++_0x36cab2)_0x47c36f[_0x5baa62+_0x36cab2]=_0x32fe9d[_0x36cab2];};return _0x3e0665['prototype']['bytes']=function(_0x1fdeeb){var _0x43b9c9=_0x1fdeeb['length']>>>0x0;if(!_0x43b9c9)return this['_push'](_0x54953d,0x1,0x0);if(_0x5e7e96['isString'](_0x1fdeeb)){var _0x37038a=_0x3e0665['alloc'](_0x43b9c9=_0x2d145d['length'](_0x1fdeeb));_0x2d145d['decode'](_0x1fdeeb,_0x37038a,0x0),_0x1fdeeb=_0x37038a;}return this['uint32'](_0x43b9c9)['_push'](_0x5b4f17,_0x43b9c9,_0x1fdeeb);},_0x3e0665['prototype']['string']=function(_0x22a70d){var _0x1b68c9=_0xd97f2a['length'](_0x22a70d);return _0x1b68c9?this['uint32'](_0x1b68c9)['_push'](_0xd97f2a['write'],_0x1b68c9,_0x22a70d):this['_push'](_0x54953d,0x1,0x0);},_0x3e0665['prototype']['fork']=function(){return this['states']=new _0x91eba(this),this['head']=this['tail']=new _0x1d80a4(_0x4e7309,0x0,0x0),this['len']=0x0,this;},_0x3e0665['prototype']['reset']=function(){return this['states']?(this['head']=this['states']['head'],this['tail']=this['states']['tail'],this['len']=this['states']['len'],this['states']=this['states']['next']):(this['head']=this['tail']=new _0x1d80a4(_0x4e7309,0x0,0x0),this['len']=0x0),this;},_0x3e0665['prototype']['ldelim']=function(){var _0x480093=this['head'],_0x43b2ee=this['tail'],_0x549cd8=this['len'];return this['reset']()['uint32'](_0x549cd8),_0x549cd8&&(this['tail']['next']=_0x480093['next'],this['tail']=_0x43b2ee,this['len']+=_0x549cd8),this;},_0x3e0665['prototype']['finish']=function(){for(var _0x268b99=this['head']['next'],_0x411323=this['constructor']['alloc'](this['len']),_0x569e08=0x0;_0x268b99;)_0x268b99['fn'](_0x268b99['val'],_0x411323,_0x569e08),_0x569e08+=_0x268b99['len'],_0x268b99=_0x268b99['next'];return _0x411323;},_0x3e0665['_configure']=function(_0x3394fe){_0x4c4977=_0x3394fe,_0x3e0665['create']=_0x2a2138(),_0x4c4977['_configure']();},writer;}function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=0x1,writer_buffer=_0x4c7b10;var _0x401c5a=requireWriter();(_0x4c7b10['prototype']=Object['create'](_0x401c5a['prototype']))['constructor']=_0x4c7b10;var _0x3a68b1=requireMinimal$1();function _0x4c7b10(){_0x401c5a['call'](this);}function _0x4cc32c(_0x40ebe4,_0x53b568,_0x3a59b6){_0x40ebe4['length']<0x28?_0x3a68b1['utf8']['write'](_0x40ebe4,_0x53b568,_0x3a59b6):_0x53b568['utf8Write']?_0x53b568['utf8Write'](_0x40ebe4,_0x3a59b6):_0x53b568['write'](_0x40ebe4,_0x3a59b6);}return _0x4c7b10['_configure']=function(){_0x4c7b10['alloc']=_0x3a68b1['_Buffer_allocUnsafe'],_0x4c7b10['writeBytesBuffer']=_0x3a68b1['Buffer']&&_0x3a68b1['Buffer']['prototype']instanceof Uint8Array&&'set'===_0x3a68b1['Buffer']['prototype']['set']['name']?function(_0x29936a,_0x51991d,_0x3f1a19){_0x51991d['set'](_0x29936a,_0x3f1a19);}:function(_0x58d294,_0x387a66,_0x5c1673){if(_0x58d294['copy'])_0x58d294['copy'](_0x387a66,_0x5c1673,0x0,_0x58d294['length']);else{for(var _0x2fd688=0x0;_0x2fd688<_0x58d294['length'];)_0x387a66[_0x5c1673++]=_0x58d294[_0x2fd688++];}};},_0x4c7b10['prototype']['bytes']=function(_0x5394b3){_0x3a68b1['isString'](_0x5394b3)&&(_0x5394b3=_0x3a68b1['_Buffer_from'](_0x5394b3,'base64'));var _0x75d64b=_0x5394b3['length']>>>0x0;return this['uint32'](_0x75d64b),_0x75d64b&&this['_push'](_0x4c7b10['writeBytesBuffer'],_0x75d64b,_0x5394b3),this;},_0x4c7b10['prototype']['string']=function(_0x2c5606){var _0x572a6e=_0x3a68b1['Buffer']['byteLength'](_0x2c5606);return this['uint32'](_0x572a6e),_0x572a6e&&this['_push'](_0x4cc32c,_0x572a6e,_0x2c5606),this;},_0x4c7b10['_configure'](),writer_buffer;}function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=0x1,reader=_0xd4e739;var _0x404cec,_0x3b80a5=requireMinimal$1(),_0x3d5c20=_0x3b80a5['LongBits'],_0x5a2040=_0x3b80a5['utf8'];function _0x290c93(_0x3ec53e,_0x1a854e){return RangeError('index\x20out\x20of\x20range:\x20'+_0x3ec53e['pos']+'\x20+\x20'+(_0x1a854e||0x1)+'\x20>\x20'+_0x3ec53e['len']);}function _0xd4e739(_0x392058){this['buf']=_0x392058,this['pos']=0x0,this['len']=_0x392058['length'];}var _0x5dddc6='undefined'!=typeof Uint8Array?function(_0x5c0aad){if(_0x5c0aad instanceof Uint8Array||Array['isArray'](_0x5c0aad))return new _0xd4e739(_0x5c0aad);throw Error('illegal\x20buffer');}:function(_0x177c40){if(Array['isArray'](_0x177c40))return new _0xd4e739(_0x177c40);throw Error('illegal\x20buffer');},_0x5e52b2=function(){return _0x3b80a5['Buffer']?function(_0x4ea5a7){return(_0xd4e739['create']=function(_0x33b7d5){return _0x3b80a5['Buffer']['isBuffer'](_0x33b7d5)?new _0x404cec(_0x33b7d5):_0x5dddc6(_0x33b7d5);})(_0x4ea5a7);}:_0x5dddc6;};function _0x5c7e9f(){var _0xd39185=new _0x3d5c20(0x0,0x0),_0x3eb19c=0x0;if(!(this['len']-this['pos']>0x4)){for(;_0x3eb19c<0x3;++_0x3eb19c){if(this['pos']>=this['len'])throw _0x290c93(this);if(_0xd39185['lo']=(_0xd39185['lo']|(0x7f&this['buf'][this['pos']])<<0x7*_0x3eb19c)>>>0x0,this['buf'][this['pos']++]<0x80)return _0xd39185;}return _0xd39185['lo']=(_0xd39185['lo']|(0x7f&this['buf'][this['pos']++])<<0x7*_0x3eb19c)>>>0x0,_0xd39185;}for(;_0x3eb19c<0x4;++_0x3eb19c)if(_0xd39185['lo']=(_0xd39185['lo']|(0x7f&this['buf'][this['pos']])<<0x7*_0x3eb19c)>>>0x0,this['buf'][this['pos']++]<0x80)return _0xd39185;if(_0xd39185['lo']=(_0xd39185['lo']|(0x7f&this['buf'][this['pos']])<<0x1c)>>>0x0,_0xd39185['hi']=(_0xd39185['hi']|(0x7f&this['buf'][this['pos']])>>0x4)>>>0x0,this['buf'][this['pos']++]<0x80)return _0xd39185;if(_0x3eb19c=0x0,this['len']-this['pos']>0x4){for(;_0x3eb19c<0x5;++_0x3eb19c)if(_0xd39185['hi']=(_0xd39185['hi']|(0x7f&this['buf'][this['pos']])<<0x7*_0x3eb19c+0x3)>>>0x0,this['buf'][this['pos']++]<0x80)return _0xd39185;}else for(;_0x3eb19c<0x5;++_0x3eb19c){if(this['pos']>=this['len'])throw _0x290c93(this);if(_0xd39185['hi']=(_0xd39185['hi']|(0x7f&this['buf'][this['pos']])<<0x7*_0x3eb19c+0x3)>>>0x0,this['buf'][this['pos']++]<0x80)return _0xd39185;}throw Error('invalid\x20varint\x20encoding');}function _0x2b72e9(_0x208f74,_0xe62af3){return(_0x208f74[_0xe62af3-0x4]|_0x208f74[_0xe62af3-0x3]<<0x8|_0x208f74[_0xe62af3-0x2]<<0x10|_0x208f74[_0xe62af3-0x1]<<0x18)>>>0x0;}function _0x102f5d(){if(this['pos']+0x8>this['len'])throw _0x290c93(this,0x8);return new _0x3d5c20(_0x2b72e9(this['buf'],this['pos']+=0x4),_0x2b72e9(this['buf'],this['pos']+=0x4));}return _0xd4e739['create']=_0x5e52b2(),_0xd4e739['prototype']['_slice']=_0x3b80a5['Array']['prototype']['subarray']||_0x3b80a5['Array']['prototype']['slice'],_0xd4e739['prototype']['uint32']=(function(){var _0x4af20e=0xffffffff;return function(){if(_0x4af20e=(0x7f&this['buf'][this['pos']])>>>0x0,this['buf'][this['pos']++]<0x80)return _0x4af20e;if(_0x4af20e=(_0x4af20e|(0x7f&this['buf'][this['pos']])<<0x7)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x4af20e;if(_0x4af20e=(_0x4af20e|(0x7f&this['buf'][this['pos']])<<0xe)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x4af20e;if(_0x4af20e=(_0x4af20e|(0x7f&this['buf'][this['pos']])<<0x15)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x4af20e;if(_0x4af20e=(_0x4af20e|(0xf&this['buf'][this['pos']])<<0x1c)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x4af20e;if((this['pos']+=0x5)>this['len'])throw this['pos']=this['len'],_0x290c93(this,0xa);return _0x4af20e;};}()),_0xd4e739['prototype']['int32']=function(){return 0x0|this['uint32']();},_0xd4e739['prototype']['sint32']=function(){var _0x1c6cbe=this['uint32']();return _0x1c6cbe>>>0x1^-(0x1&_0x1c6cbe);},_0xd4e739['prototype']['bool']=function(){return 0x0!==this['uint32']();},_0xd4e739['prototype']['fixed32']=function(){if(this['pos']+0x4>this['len'])throw _0x290c93(this,0x4);return _0x2b72e9(this['buf'],this['pos']+=0x4);},_0xd4e739['prototype']['sfixed32']=function(){if(this['pos']+0x4>this['len'])throw _0x290c93(this,0x4);return 0x0|_0x2b72e9(this['buf'],this['pos']+=0x4);},_0xd4e739['prototype']['float']=function(){if(this['pos']+0x4>this['len'])throw _0x290c93(this,0x4);var _0x5604c2=_0x3b80a5['float']['readFloatLE'](this['buf'],this['pos']);return this['pos']+=0x4,_0x5604c2;},_0xd4e739['prototype']['double']=function(){if(this['pos']+0x8>this['len'])throw _0x290c93(this,0x4);var _0x212589=_0x3b80a5['float']['readDoubleLE'](this['buf'],this['pos']);return this['pos']+=0x8,_0x212589;},_0xd4e739['prototype']['bytes']=function(){var _0x5ccf79=this['uint32'](),_0x44c84d=this['pos'],_0x18983d=this['pos']+_0x5ccf79;if(_0x18983d>this['len'])throw _0x290c93(this,_0x5ccf79);if(this['pos']+=_0x5ccf79,Array['isArray'](this['buf']))return this['buf']['slice'](_0x44c84d,_0x18983d);if(_0x44c84d===_0x18983d){var _0x3f142b=_0x3b80a5['Buffer'];return _0x3f142b?_0x3f142b['alloc'](0x0):new this['buf']['constructor'](0x0);}return this['_slice']['call'](this['buf'],_0x44c84d,_0x18983d);},_0xd4e739['prototype']['string']=function(){var _0x250094=this['bytes']();return _0x5a2040['read'](_0x250094,0x0,_0x250094['length']);},_0xd4e739['prototype']['skip']=function(_0x3a559b){if('number'==typeof _0x3a559b){if(this['pos']+_0x3a559b>this['len'])throw _0x290c93(this,_0x3a559b);this['pos']+=_0x3a559b;}else do{if(this['pos']>=this['len'])throw _0x290c93(this);}while(0x80&this['buf'][this['pos']++]);return this;},_0xd4e739['prototype']['skipType']=function(_0x4fdc05){switch(_0x4fdc05){case 0x0:this['skip']();break;case 0x1:this['skip'](0x8);break;case 0x2:this['skip'](this['uint32']());break;case 0x3:for(;0x4!=(_0x4fdc05=0x7&this['uint32']());)this['skipType'](_0x4fdc05);break;case 0x5:this['skip'](0x4);break;default:throw Error('invalid\x20wire\x20type\x20'+_0x4fdc05+'\x20at\x20offset\x20'+this['pos']);}return this;},_0xd4e739['_configure']=function(_0x468f05){_0x404cec=_0x468f05,_0xd4e739['create']=_0x5e52b2(),_0x404cec['_configure']();var _0x174f7c=_0x3b80a5['Long']?'toLong':'toNumber';_0x3b80a5['merge'](_0xd4e739['prototype'],{'int64':function(){return _0x5c7e9f['call'](this)[_0x174f7c](!0x1);},'uint64':function(){return _0x5c7e9f['call'](this)[_0x174f7c](!0x0);},'sint64':function(){return _0x5c7e9f['call'](this)['zzDecode']()[_0x174f7c](!0x1);},'fixed64':function(){return _0x102f5d['call'](this)[_0x174f7c](!0x0);},'sfixed64':function(){return _0x102f5d['call'](this)[_0x174f7c](!0x1);}});},reader;}function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=0x1,reader_buffer=_0x49e979;var _0x291fbe=requireReader();(_0x49e979['prototype']=Object['create'](_0x291fbe['prototype']))['constructor']=_0x49e979;var _0x4590fc=requireMinimal$1();function _0x49e979(_0x542d4a){_0x291fbe['call'](this,_0x542d4a);}return _0x49e979['_configure']=function(){_0x4590fc['Buffer']&&(_0x49e979['prototype']['_slice']=_0x4590fc['Buffer']['prototype']['slice']);},_0x49e979['prototype']['string']=function(){var _0x540c04=this['uint32']();return this['buf']['utf8Slice']?this['buf']['utf8Slice'](this['pos'],this['pos']=Math['min'](this['pos']+_0x540c04,this['len'])):this['buf']['toString']('utf-8',this['pos'],this['pos']=Math['min'](this['pos']+_0x540c04,this['len']));},_0x49e979['_configure'](),reader_buffer;}var rpc={},service,hasRequiredService,hasRequiredRpc,roots,hasRequiredRoots,hasRequiredIndexMinimal,minimal,hasRequiredMinimal;function requireService(){if(hasRequiredService)return service;hasRequiredService=0x1,service=_0x2e5b02;var _0x54ac12=requireMinimal$1();function _0x2e5b02(_0x158490,_0x14be59,_0x168aa5){if('function'!=typeof _0x158490)throw TypeError('rpcImpl\x20must\x20be\x20a\x20function');_0x54ac12['EventEmitter']['call'](this),this['rpcImpl']=_0x158490,this['requestDelimited']=Boolean(_0x14be59),this['responseDelimited']=Boolean(_0x168aa5);}return(_0x2e5b02['prototype']=Object['create'](_0x54ac12['EventEmitter']['prototype']))['constructor']=_0x2e5b02,_0x2e5b02['prototype']['rpcCall']=function _0x23f4ad(_0x26ccdf,_0x259fdd,_0x1469f4,_0x4a0a2b,_0x47e4ef){if(!_0x4a0a2b)throw TypeError('request\x20must\x20be\x20specified');var _0x43e6e4=this;if(!_0x47e4ef)return _0x54ac12['asPromise'](_0x23f4ad,_0x43e6e4,_0x26ccdf,_0x259fdd,_0x1469f4,_0x4a0a2b);if(_0x43e6e4['rpcImpl'])try{return _0x43e6e4['rpcImpl'](_0x26ccdf,_0x259fdd[_0x43e6e4['requestDelimited']?'encodeDelimited':'encode'](_0x4a0a2b)['finish'](),function(_0x104b3d,_0x29cfa6){if(_0x104b3d)return _0x43e6e4['emit']('error',_0x104b3d,_0x26ccdf),_0x47e4ef(_0x104b3d);if(null!==_0x29cfa6){if(!(_0x29cfa6 instanceof _0x1469f4))try{_0x29cfa6=_0x1469f4[_0x43e6e4['responseDelimited']?'decodeDelimited':'decode'](_0x29cfa6);}catch(_0x8b610f){return _0x43e6e4['emit']('error',_0x8b610f,_0x26ccdf),_0x47e4ef(_0x8b610f);}return _0x43e6e4['emit']('data',_0x29cfa6,_0x26ccdf),_0x47e4ef(null,_0x29cfa6);}_0x43e6e4['end'](!0x0);});}catch(_0x2bd695){return _0x43e6e4['emit']('error',_0x2bd695,_0x26ccdf),void setTimeout(function(){_0x47e4ef(_0x2bd695);},0x0);}else setTimeout(function(){_0x47e4ef(Error('already\x20ended'));},0x0);},_0x2e5b02['prototype']['end']=function(_0x414c3b){return this['rpcImpl']&&(_0x414c3b||this['rpcImpl'](null,null,null),this['rpcImpl']=null,this['emit']('end')['off']()),this;},service;}function requireRpc(){return hasRequiredRpc||(hasRequiredRpc=0x1,rpc['Service']=requireService()),rpc;}function requireRoots(){return hasRequiredRoots?roots:(hasRequiredRoots=0x1,roots={});}function requireIndexMinimal(){return hasRequiredIndexMinimal||(hasRequiredIndexMinimal=0x1,(function(){var _0x59d9a2=indexMinimal;function _0x3b28a8(){_0x59d9a2['util']['_configure'](),_0x59d9a2['Writer']['_configure'](_0x59d9a2['BufferWriter']),_0x59d9a2['Reader']['_configure'](_0x59d9a2['BufferReader']);}_0x59d9a2['build']='minimal',_0x59d9a2['Writer']=requireWriter(),_0x59d9a2['BufferWriter']=requireWriter_buffer(),_0x59d9a2['Reader']=requireReader(),_0x59d9a2['BufferReader']=requireReader_buffer(),_0x59d9a2['util']=requireMinimal$1(),_0x59d9a2['rpc']=requireRpc(),_0x59d9a2['roots']=requireRoots(),_0x59d9a2['configure']=_0x3b28a8,_0x3b28a8();}())),indexMinimal;}function requireMinimal(){return hasRequiredMinimal?minimal:(hasRequiredMinimal=0x1,minimal=requireIndexMinimal());}var minimalExports=requireMinimal();const PACKET_TYPES=Object['create'](null);PACKET_TYPES['open']='0',PACKET_TYPES['close']='1',PACKET_TYPES['ping']='2',PACKET_TYPES['pong']='3',PACKET_TYPES['message']='4',PACKET_TYPES['upgrade']='5',PACKET_TYPES['noop']='6';const PACKET_TYPES_REVERSE=Object['create'](null);Object['keys'](PACKET_TYPES)['forEach'](_0x8d91a3=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_0x8d91a3]]=_0x8d91a3;});const ERROR_PACKET={'type':'error','data':'parser\x20error'},withNativeBlob$1='function'==typeof Blob||'undefined'!=typeof Blob&&'[object\x20BlobConstructor]'===Object['prototype']['toString']['call'](Blob),withNativeArrayBuffer$2='function'==typeof ArrayBuffer,isView$1=_0x3285ed=>'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x3285ed):_0x3285ed&&_0x3285ed['buffer']instanceof ArrayBuffer,encodePacket=({type:_0x379692,data:_0x40f960},_0x2a896d,_0xcd58c7)=>withNativeBlob$1&&_0x40f960 instanceof Blob?_0x2a896d?_0xcd58c7(_0x40f960):encodeBlobAsBase64(_0x40f960,_0xcd58c7):withNativeArrayBuffer$2&&(_0x40f960 instanceof ArrayBuffer||isView$1(_0x40f960))?_0x2a896d?_0xcd58c7(_0x40f960):encodeBlobAsBase64(new Blob([_0x40f960]),_0xcd58c7):_0xcd58c7(PACKET_TYPES[_0x379692]+(_0x40f960||'')),encodeBlobAsBase64=(_0x4f9396,_0x43af03)=>{const _0xdfe98d=new FileReader();return _0xdfe98d['onload']=function(){const _0x311250=_0xdfe98d['result']['split'](',')[0x1];_0x43af03('b'+(_0x311250||''));},_0xdfe98d['readAsDataURL'](_0x4f9396);};function toArray(_0xc158b3){return _0xc158b3 instanceof Uint8Array?_0xc158b3:_0xc158b3 instanceof ArrayBuffer?new Uint8Array(_0xc158b3):new Uint8Array(_0xc158b3['buffer'],_0xc158b3['byteOffset'],_0xc158b3['byteLength']);}let TEXT_ENCODER;function encodePacketToBinary(_0x18d2cb,_0x95a017){return withNativeBlob$1&&_0x18d2cb['data']instanceof Blob?_0x18d2cb['data']['arrayBuffer']()['then'](toArray)['then'](_0x95a017):withNativeArrayBuffer$2&&(_0x18d2cb['data']instanceof ArrayBuffer||isView$1(_0x18d2cb['data']))?_0x95a017(toArray(_0x18d2cb['data'])):void encodePacket(_0x18d2cb,!0x1,_0x1dfd9a=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder()),_0x95a017(TEXT_ENCODER['encode'](_0x1dfd9a));});}const chars='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',lookup$1='undefined'==typeof Uint8Array?[]:new Uint8Array(0x100);for(let e=0x0;e<chars['length'];e++)lookup$1[chars['charCodeAt'](e)]=e;const decode$1=_0x3c64b1=>{let _0x5f0437,_0x1023eb,_0x1f4f93,_0x3fa026,_0x24ed5b,_0x539a95=0.75*_0x3c64b1['length'],_0xb8eb7=_0x3c64b1['length'],_0x2020c3=0x0;'='===_0x3c64b1[_0x3c64b1['length']-0x1]&&(_0x539a95--,'='===_0x3c64b1[_0x3c64b1['length']-0x2]&&_0x539a95--);const _0x26c652=new ArrayBuffer(_0x539a95),_0x6cde7b=new Uint8Array(_0x26c652);for(_0x5f0437=0x0;_0x5f0437<_0xb8eb7;_0x5f0437+=0x4)_0x1023eb=lookup$1[_0x3c64b1['charCodeAt'](_0x5f0437)],_0x1f4f93=lookup$1[_0x3c64b1['charCodeAt'](_0x5f0437+0x1)],_0x3fa026=lookup$1[_0x3c64b1['charCodeAt'](_0x5f0437+0x2)],_0x24ed5b=lookup$1[_0x3c64b1['charCodeAt'](_0x5f0437+0x3)],_0x6cde7b[_0x2020c3++]=_0x1023eb<<0x2|_0x1f4f93>>0x4,_0x6cde7b[_0x2020c3++]=(0xf&_0x1f4f93)<<0x4|_0x3fa026>>0x2,_0x6cde7b[_0x2020c3++]=(0x3&_0x3fa026)<<0x6|0x3f&_0x24ed5b;return _0x26c652;},withNativeArrayBuffer$1='function'==typeof ArrayBuffer,decodePacket=(_0x5179a1,_0x536341)=>{if('string'!=typeof _0x5179a1)return{'type':'message','data':mapBinary(_0x5179a1,_0x536341)};const _0x1ee3d6=_0x5179a1['charAt'](0x0);if('b'===_0x1ee3d6)return{'type':'message','data':decodeBase64Packet(_0x5179a1['substring'](0x1),_0x536341)};return PACKET_TYPES_REVERSE[_0x1ee3d6]?_0x5179a1['length']>0x1?{'type':PACKET_TYPES_REVERSE[_0x1ee3d6],'data':_0x5179a1['substring'](0x1)}:{'type':PACKET_TYPES_REVERSE[_0x1ee3d6]}:ERROR_PACKET;},decodeBase64Packet=(_0x4f09b3,_0x173ad5)=>{if(withNativeArrayBuffer$1){const _0x188d6f=decode$1(_0x4f09b3);return mapBinary(_0x188d6f,_0x173ad5);}return{'base64':!0x0,'data':_0x4f09b3};},mapBinary=(_0x424e57,_0x551076)=>'blob'===_0x551076?_0x424e57 instanceof Blob?_0x424e57:new Blob([_0x424e57]):_0x424e57 instanceof ArrayBuffer?_0x424e57:_0x424e57['buffer'],SEPARATOR$2=String['fromCharCode'](0x1e),encodePayload=(_0x171072,_0x1f1029)=>{const _0x2f6956=_0x171072['length'],_0x2e3d83=new Array(_0x2f6956);let _0x132d6d=0x0;_0x171072['forEach']((_0x4ee005,_0x50ade2)=>{encodePacket(_0x4ee005,!0x1,_0x1df25b=>{_0x2e3d83[_0x50ade2]=_0x1df25b,++_0x132d6d===_0x2f6956&&_0x1f1029(_0x2e3d83['join'](SEPARATOR$2));});});},decodePayload=(_0x44762d,_0x4d9622)=>{const _0x994de=_0x44762d['split'](SEPARATOR$2),_0x519df2=[];for(let _0x4f422b=0x0;_0x4f422b<_0x994de['length'];_0x4f422b++){const _0x5a54da=decodePacket(_0x994de[_0x4f422b],_0x4d9622);if(_0x519df2['push'](_0x5a54da),'error'===_0x5a54da['type'])break;}return _0x519df2;};function createPacketEncoderStream(){return new TransformStream({'transform'(_0x3f4bf3,_0x49b824){encodePacketToBinary(_0x3f4bf3,_0x324523=>{const _0x5e7332=_0x324523['length'];let _0x5484c0;if(_0x5e7332<0x7e)_0x5484c0=new Uint8Array(0x1),new DataView(_0x5484c0['buffer'])['setUint8'](0x0,_0x5e7332);else{if(_0x5e7332<0x10000){_0x5484c0=new Uint8Array(0x3);const _0xa457c=new DataView(_0x5484c0['buffer']);_0xa457c['setUint8'](0x0,0x7e),_0xa457c['setUint16'](0x1,_0x5e7332);}else{_0x5484c0=new Uint8Array(0x9);const _0x4607d7=new DataView(_0x5484c0['buffer']);_0x4607d7['setUint8'](0x0,0x7f),_0x4607d7['setBigUint64'](0x1,BigInt(_0x5e7332));}}_0x3f4bf3['data']&&'string'!=typeof _0x3f4bf3['data']&&(_0x5484c0[0x0]|=0x80),_0x49b824['enqueue'](_0x5484c0),_0x49b824['enqueue'](_0x324523);});}});}let TEXT_DECODER;function totalLength(_0x37c6bf){return _0x37c6bf['reduce']((_0x47349b,_0xd84a2d)=>_0x47349b+_0xd84a2d['length'],0x0);}function concatChunks(_0x508052,_0x4016e6){if(_0x508052[0x0]['length']===_0x4016e6)return _0x508052['shift']();const _0x170f87=new Uint8Array(_0x4016e6);let _0x3bfe58=0x0;for(let _0x57d73a=0x0;_0x57d73a<_0x4016e6;_0x57d73a++)_0x170f87[_0x57d73a]=_0x508052[0x0][_0x3bfe58++],_0x3bfe58===_0x508052[0x0]['length']&&(_0x508052['shift'](),_0x3bfe58=0x0);return _0x508052['length']&&_0x3bfe58<_0x508052[0x0]['length']&&(_0x508052[0x0]=_0x508052[0x0]['slice'](_0x3bfe58)),_0x170f87;}function createPacketDecoderStream(_0x36f59a,_0xd9191c){TEXT_DECODER||(TEXT_DECODER=new TextDecoder());const _0x211aec=[];let _0x4632ee=0x0,_0x1f0f61=-0x1,_0x22ea2d=!0x1;return new TransformStream({'transform'(_0x53bf92,_0x5bba12){for(_0x211aec['push'](_0x53bf92);;){if(0x0===_0x4632ee){if(totalLength(_0x211aec)<0x1)break;const _0x1b8db2=concatChunks(_0x211aec,0x1);_0x22ea2d=!(0x80&~_0x1b8db2[0x0]),_0x1f0f61=0x7f&_0x1b8db2[0x0],_0x4632ee=_0x1f0f61<0x7e?0x3:0x7e===_0x1f0f61?0x1:0x2;}else{if(0x1===_0x4632ee){if(totalLength(_0x211aec)<0x2)break;const _0x1ae8c6=concatChunks(_0x211aec,0x2);_0x1f0f61=new DataView(_0x1ae8c6['buffer'],_0x1ae8c6['byteOffset'],_0x1ae8c6['length'])['getUint16'](0x0),_0x4632ee=0x3;}else{if(0x2===_0x4632ee){if(totalLength(_0x211aec)<0x8)break;const _0xa086b8=concatChunks(_0x211aec,0x8),_0x22b83a=new DataView(_0xa086b8['buffer'],_0xa086b8['byteOffset'],_0xa086b8['length']),_0x497d78=_0x22b83a['getUint32'](0x0);if(_0x497d78>Math['pow'](0x2,0x15)-0x1){_0x5bba12['enqueue'](ERROR_PACKET);break;}_0x1f0f61=_0x497d78*Math['pow'](0x2,0x20)+_0x22b83a['getUint32'](0x4),_0x4632ee=0x3;}else{if(totalLength(_0x211aec)<_0x1f0f61)break;const _0x1f2536=concatChunks(_0x211aec,_0x1f0f61);_0x5bba12['enqueue'](decodePacket(_0x22ea2d?_0x1f2536:TEXT_DECODER['decode'](_0x1f2536),_0xd9191c)),_0x4632ee=0x0;}}}if(0x0===_0x1f0f61||_0x1f0f61>_0x36f59a){_0x5bba12['enqueue'](ERROR_PACKET);break;}}}});}const protocol$1=0x4;function Emitter(_0x119ab1){if(_0x119ab1)return mixin(_0x119ab1);}function mixin(_0x33ae24){for(var _0x13a06f in Emitter['prototype'])_0x33ae24[_0x13a06f]=Emitter['prototype'][_0x13a06f];return _0x33ae24;}Emitter['prototype']['on']=Emitter['prototype']['addEventListener']=function(_0xe5a5e0,_0x59cc9c){return this['_callbacks']=this['_callbacks']||{},(this['_callbacks']['$'+_0xe5a5e0]=this['_callbacks']['$'+_0xe5a5e0]||[])['push'](_0x59cc9c),this;},Emitter['prototype']['once']=function(_0x3af440,_0x136425){function _0x83a0c9(){this['off'](_0x3af440,_0x83a0c9),_0x136425['apply'](this,arguments);}return _0x83a0c9['fn']=_0x136425,this['on'](_0x3af440,_0x83a0c9),this;},Emitter['prototype']['off']=Emitter['prototype']['removeListener']=Emitter['prototype']['removeAllListeners']=Emitter['prototype']['removeEventListener']=function(_0x463304,_0xa793a3){if(this['_callbacks']=this['_callbacks']||{},0x0==arguments['length'])return this['_callbacks']={},this;var _0x9c8998,_0x196fb1=this['_callbacks']['$'+_0x463304];if(!_0x196fb1)return this;if(0x1==arguments['length'])return delete this['_callbacks']['$'+_0x463304],this;for(var _0x736335=0x0;_0x736335<_0x196fb1['length'];_0x736335++)if((_0x9c8998=_0x196fb1[_0x736335])===_0xa793a3||_0x9c8998['fn']===_0xa793a3){_0x196fb1['splice'](_0x736335,0x1);break;}return 0x0===_0x196fb1['length']&&delete this['_callbacks']['$'+_0x463304],this;},Emitter['prototype']['emit']=function(_0x2e86a7){this['_callbacks']=this['_callbacks']||{};for(var _0x265e60=new Array(arguments['length']-0x1),_0x367340=this['_callbacks']['$'+_0x2e86a7],_0x4de5a5=0x1;_0x4de5a5<arguments['length'];_0x4de5a5++)_0x265e60[_0x4de5a5-0x1]=arguments[_0x4de5a5];if(_0x367340){_0x4de5a5=0x0;for(var _0x3e94d8=(_0x367340=_0x367340['slice'](0x0))['length'];_0x4de5a5<_0x3e94d8;++_0x4de5a5)_0x367340[_0x4de5a5]['apply'](this,_0x265e60);}return this;},Emitter['prototype']['emitReserved']=Emitter['prototype']['emit'],Emitter['prototype']['listeners']=function(_0x1f307b){return this['_callbacks']=this['_callbacks']||{},this['_callbacks']['$'+_0x1f307b]||[];},Emitter['prototype']['hasListeners']=function(_0x580342){return!!this['listeners'](_0x580342)['length'];};const globalThisShim='undefined'!=typeof self?self:'undefined'!=typeof window?window:Function('return\x20this')();function pick$1(_0xf1e91f,..._0x4ae320){return _0x4ae320['reduce']((_0x47d17c,_0x329605)=>(_0xf1e91f['hasOwnProperty'](_0x329605)&&(_0x47d17c[_0x329605]=_0xf1e91f[_0x329605]),_0x47d17c),{});}const NATIVE_SET_TIMEOUT=globalThisShim['setTimeout'],NATIVE_CLEAR_TIMEOUT=globalThisShim['clearTimeout'];function installTimerFunctions(_0x58ef58,_0x36c73e){_0x36c73e['useNativeTimers']?(_0x58ef58['setTimeoutFn']=NATIVE_SET_TIMEOUT['bind'](globalThisShim),_0x58ef58['clearTimeoutFn']=NATIVE_CLEAR_TIMEOUT['bind'](globalThisShim)):(_0x58ef58['setTimeoutFn']=globalThisShim['setTimeout']['bind'](globalThisShim),_0x58ef58['clearTimeoutFn']=globalThisShim['clearTimeout']['bind'](globalThisShim));}const BASE64_OVERHEAD=1.33;function byteLength(_0x55fc58){return'string'==typeof _0x55fc58?utf8Length(_0x55fc58):Math['ceil']((_0x55fc58['byteLength']||_0x55fc58['size'])*BASE64_OVERHEAD);}function utf8Length(_0x4f3056){let _0x2cdc40=0x0,_0x2d1da8=0x0;for(let _0x69f86f=0x0,_0xb91baf=_0x4f3056['length'];_0x69f86f<_0xb91baf;_0x69f86f++)_0x2cdc40=_0x4f3056['charCodeAt'](_0x69f86f),_0x2cdc40<0x80?_0x2d1da8+=0x1:_0x2cdc40<0x800?_0x2d1da8+=0x2:_0x2cdc40<0xd800||_0x2cdc40>=0xe000?_0x2d1da8+=0x3:(_0x69f86f++,_0x2d1da8+=0x4);return _0x2d1da8;}function encode$1(_0x478c23){let _0x3d419a='';for(let _0x2cebd7 in _0x478c23)_0x478c23['hasOwnProperty'](_0x2cebd7)&&(_0x3d419a['length']&&(_0x3d419a+='&'),_0x3d419a+=encodeURIComponent(_0x2cebd7)+'='+encodeURIComponent(_0x478c23[_0x2cebd7]));return _0x3d419a;}function decode(_0x571838){let _0x14bc98={},_0x507b30=_0x571838['split']('&');for(let _0x3e72ee=0x0,_0x49f115=_0x507b30['length'];_0x3e72ee<_0x49f115;_0x3e72ee++){let _0x1e09c4=_0x507b30[_0x3e72ee]['split']('=');_0x14bc98[decodeURIComponent(_0x1e09c4[0x0])]=decodeURIComponent(_0x1e09c4[0x1]);}return _0x14bc98;}class TransportError extends Error{constructor(_0x3d6412,_0x5cb4d8,_0x12b9be){super(_0x3d6412),this['description']=_0x5cb4d8,this['context']=_0x12b9be,this['type']='TransportError';}}class Transport extends Emitter{constructor(_0x9ef6c7){super(),this['writable']=!0x1,installTimerFunctions(this,_0x9ef6c7),this['opts']=_0x9ef6c7,this['query']=_0x9ef6c7['query'],this['socket']=_0x9ef6c7['socket'];}['onError'](_0x2a6ff6,_0x46f5cc,_0x50b47b){return super['emitReserved']('error',new TransportError(_0x2a6ff6,_0x46f5cc,_0x50b47b)),this;}['open'](){return this['readyState']='opening',this['doOpen'](),this;}['close'](){return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['doClose'](),this['onClose']()),this;}['send'](_0x1764de){'open'===this['readyState']&&this['write'](_0x1764de);}['onOpen'](){this['readyState']='open',this['writable']=!0x0,super['emitReserved']('open');}['onData'](_0xebb479){const _0x18c0e7=decodePacket(_0xebb479,this['socket']['binaryType']);this['onPacket'](_0x18c0e7);}['onPacket'](_0xbba4c7){super['emitReserved']('packet',_0xbba4c7);}['onClose'](_0x1249a3){this['readyState']='closed',super['emitReserved']('close',_0x1249a3);}['pause'](_0x1f65b2){}['createUri'](_0x26f02d,_0xe5e568={}){return _0x26f02d+'://'+this['_hostname']()+this['_port']()+this['opts']['path']+this['_query'](_0xe5e568);}['_hostname'](){const _0x5e1e00=this['opts']['hostname'];return-0x1===_0x5e1e00['indexOf'](':')?_0x5e1e00:'['+_0x5e1e00+']';}['_port'](){return this['opts']['port']&&(this['opts']['secure']&&Number(0x1bb!==this['opts']['port'])||!this['opts']['secure']&&0x50!==Number(this['opts']['port']))?':'+this['opts']['port']:'';}['_query'](_0x4c2dea){const _0x588741=encode$1(_0x4c2dea);return _0x588741['length']?'?'+_0x588741:'';}}const alphabet='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'['split'](''),length=0x40,map={};let seed=0x0,i$2=0x0,prev;function encode(_0x47b91e){let _0x2984e1='';do{_0x2984e1=alphabet[_0x47b91e%length]+_0x2984e1,_0x47b91e=Math['floor'](_0x47b91e/length);}while(_0x47b91e>0x0);return _0x2984e1;}function yeast(){const _0x309807=encode(+new Date());return _0x309807!==prev?(seed=0x0,prev=_0x309807):_0x309807+'.'+encode(seed++);}for(;i$2<length;i$2++)map[alphabet[i$2]]=i$2;let value=!0x1;try{value='undefined'!=typeof XMLHttpRequest&&'withCredentials'in new XMLHttpRequest();}catch(_0x229ebe){}const hasCORS=value;function XHR(_0x2b113f){const _0x25d1bc=_0x2b113f['xdomain'];try{if('undefined'!=typeof XMLHttpRequest&&(!_0x25d1bc||hasCORS))return new XMLHttpRequest();}catch(_0xc30f94){}if(!_0x25d1bc)try{return new globalThisShim[(['Active']['concat']('Object')['join']('X'))]('Microsoft.XMLHTTP');}catch(_0x182f1f){}}function createCookieJar(){}function empty(){}const hasXHR2=null!=new XHR({'xdomain':!0x1})['responseType'];class Polling extends Transport{constructor(_0x52766f){if(super(_0x52766f),this['polling']=!0x1,'undefined'!=typeof location){const _0x41277f='https:'===location['protocol'];let _0x14b2f7=location['port'];_0x14b2f7||(_0x14b2f7=_0x41277f?'443':'80'),this['xd']='undefined'!=typeof location&&_0x52766f['hostname']!==location['hostname']||_0x14b2f7!==_0x52766f['port'];}const _0x5132d5=_0x52766f&&_0x52766f['forceBase64'];this['supportsBinary']=hasXHR2&&!_0x5132d5,this['opts']['withCredentials']&&(this['cookieJar']=createCookieJar());}get['name'](){return'polling';}['doOpen'](){this['poll']();}['pause'](_0x575f68){this['readyState']='pausing';const _0x4ef443=()=>{this['readyState']='paused',_0x575f68();};if(this['polling']||!this['writable']){let _0x5471ac=0x0;this['polling']&&(_0x5471ac++,this['once']('pollComplete',function(){--_0x5471ac||_0x4ef443();})),this['writable']||(_0x5471ac++,this['once']('drain',function(){--_0x5471ac||_0x4ef443();}));}else _0x4ef443();}['poll'](){this['polling']=!0x0,this['doPoll'](),this['emitReserved']('poll');}['onData'](_0xdfcc2c){decodePayload(_0xdfcc2c,this['socket']['binaryType'])['forEach'](_0x11c1a7=>{if('opening'===this['readyState']&&'open'===_0x11c1a7['type']&&this['onOpen'](),'close'===_0x11c1a7['type'])return this['onClose']({'description':'transport\x20closed\x20by\x20the\x20server'}),!0x1;this['onPacket'](_0x11c1a7);}),'closed'!==this['readyState']&&(this['polling']=!0x1,this['emitReserved']('pollComplete'),'open'===this['readyState']&&this['poll']());}['doClose'](){const _0x90c0db=()=>{this['write']([{'type':'close'}]);};'open'===this['readyState']?_0x90c0db():this['once']('open',_0x90c0db);}['write'](_0x30a750){this['writable']=!0x1,encodePayload(_0x30a750,_0x4d32c6=>{this['doWrite'](_0x4d32c6,()=>{this['writable']=!0x0,this['emitReserved']('drain');});});}['uri'](){const _0x1f46d3=this['opts']['secure']?'https':'http',_0x3980be=this['query']||{};return!0x1!==this['opts']['timestampRequests']&&(_0x3980be[this['opts']['timestampParam']]=yeast()),this['supportsBinary']||_0x3980be['sid']||(_0x3980be['b64']=0x1),this['createUri'](_0x1f46d3,_0x3980be);}['request'](_0x516caf={}){return Object['assign'](_0x516caf,{'xd':this['xd'],'cookieJar':this['cookieJar']},this['opts']),new Request$1(this['uri'](),_0x516caf);}['doWrite'](_0x324493,_0x3330a2){const _0x988866=this['request']({'method':'POST','data':_0x324493});_0x988866['on']('success',_0x3330a2),_0x988866['on']('error',(_0x4bb058,_0x1685a5)=>{this['onError']('xhr\x20post\x20error',_0x4bb058,_0x1685a5);});}['doPoll'](){const _0x13550b=this['request']();_0x13550b['on']('data',this['onData']['bind'](this)),_0x13550b['on']('error',(_0x50c217,_0x4d6224)=>{this['onError']('xhr\x20poll\x20error',_0x50c217,_0x4d6224);}),this['pollXhr']=_0x13550b;}}let Request$1=class e extends Emitter{constructor(_0x5f08dc,_0x3ecf8d){super(),installTimerFunctions(this,_0x3ecf8d),this['opts']=_0x3ecf8d,this['method']=_0x3ecf8d['method']||'GET',this['uri']=_0x5f08dc,this['data']=void 0x0!==_0x3ecf8d['data']?_0x3ecf8d['data']:null,this['create']();}['create'](){var _0x51fe12;const _0x46f8b6=pick$1(this['opts'],'agent','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','autoUnref');_0x46f8b6['xdomain']=!!this['opts']['xd'];const _0x11f435=this['xhr']=new XHR(_0x46f8b6);try{_0x11f435['open'](this['method'],this['uri'],!0x0);try{if(this['opts']['extraHeaders']){_0x11f435['setDisableHeaderCheck']&&_0x11f435['setDisableHeaderCheck'](!0x0);for(let _0x3647fe in this['opts']['extraHeaders'])this['opts']['extraHeaders']['hasOwnProperty'](_0x3647fe)&&_0x11f435['setRequestHeader'](_0x3647fe,this['opts']['extraHeaders'][_0x3647fe]);}}catch(_0x3ab629){}if('POST'===this['method'])try{_0x11f435['setRequestHeader']('Content-type','text/plain;charset=UTF-8');}catch(_0x52fc58){}try{_0x11f435['setRequestHeader']('Accept','*/*');}catch(_0xf5ed69){}null===(_0x51fe12=this['opts']['cookieJar'])||void 0x0===_0x51fe12||_0x51fe12['addCookies'](_0x11f435),'withCredentials'in _0x11f435&&(_0x11f435['withCredentials']=this['opts']['withCredentials']),this['opts']['requestTimeout']&&(_0x11f435['timeout']=this['opts']['requestTimeout']),_0x11f435['onreadystatechange']=()=>{var _0x100056;0x3===_0x11f435['readyState']&&(null===(_0x100056=this['opts']['cookieJar'])||void 0x0===_0x100056||_0x100056['parseCookies'](_0x11f435)),0x4===_0x11f435['readyState']&&(0xc8===_0x11f435['status']||0x4c7===_0x11f435['status']?this['onLoad']():this['setTimeoutFn'](()=>{this['onError']('number'==typeof _0x11f435['status']?_0x11f435['status']:0x0);},0x0));},_0x11f435['send'](this['data']);}catch(_0x23c5eb){return void this['setTimeoutFn'](()=>{this['onError'](_0x23c5eb);},0x0);}'undefined'!=typeof document&&(this['index']=e['requestsCount']++,e['requests'][this['index']]=this);}['onError'](_0x51ed49){this['emitReserved']('error',_0x51ed49,this['xhr']),this['cleanup'](!0x0);}['cleanup'](_0x4a9146){if(void 0x0!==this['xhr']&&null!==this['xhr']){if(this['xhr']['onreadystatechange']=empty,_0x4a9146)try{this['xhr']['abort']();}catch(_0x12f8aa){}'undefined'!=typeof document&&delete e['requests'][this['index']],this['xhr']=null;}}['onLoad'](){const _0x25ccff=this['xhr']['responseText'];null!==_0x25ccff&&(this['emitReserved']('data',_0x25ccff),this['emitReserved']('success'),this['cleanup']());}['abort'](){this['cleanup']();}};if(Request$1['requestsCount']=0x0,Request$1['requests']={},'undefined'!=typeof document){if('function'==typeof attachEvent)attachEvent('onunload',unloadHandler);else{if('function'==typeof addEventListener){const e='onpagehide'in globalThisShim?'pagehide':'unload';addEventListener(e,unloadHandler,!0x1);}}}function unloadHandler(){for(let _0x3eb81e in Request$1['requests'])Request$1['requests']['hasOwnProperty'](_0x3eb81e)&&Request$1['requests'][_0x3eb81e]['abort']();}const nextTick='function'==typeof Promise&&'function'==typeof Promise['resolve']?_0x289f16=>Promise['resolve']()['then'](_0x289f16):(_0x6eec04,_0x8b8ebf)=>_0x8b8ebf(_0x6eec04,0x0),WebSocket$2=globalThisShim['WebSocket']||globalThisShim['MozWebSocket'],usingBrowserWebSocket=!0x0,defaultBinaryType='arraybuffer',isReactNative='undefined'!=typeof navigator&&'string'==typeof navigator['product']&&'reactnative'===navigator['product']['toLowerCase']();class WS extends Transport{constructor(_0x1b9e48){super(_0x1b9e48),this['supportsBinary']=!_0x1b9e48['forceBase64'];}get['name'](){return'websocket';}['doOpen'](){if(!this['check']())return;const _0x2e84b2=this['uri'](),_0x38ffd5=this['opts']['protocols'],_0x350867=isReactNative?{}:pick$1(this['opts'],'agent','perMessageDeflate','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','localAddress','protocolVersion','origin','maxPayload','family','checkServerIdentity');this['opts']['extraHeaders']&&(_0x350867['headers']=this['opts']['extraHeaders']);try{this['ws']=usingBrowserWebSocket&&!isReactNative?_0x38ffd5?new WebSocket$2(_0x2e84b2,_0x38ffd5):new WebSocket$2(_0x2e84b2):new WebSocket$2(_0x2e84b2,_0x38ffd5,_0x350867);}catch(_0x5011fd){return this['emitReserved']('error',_0x5011fd);}this['ws']['binaryType']=this['socket']['binaryType'],this['addEventListeners']();}['addEventListeners'](){this['ws']['onopen']=()=>{this['opts']['autoUnref']&&this['ws']['_socket']['unref'](),this['onOpen']();},this['ws']['onclose']=_0x4f0b25=>this['onClose']({'description':'websocket\x20connection\x20closed','context':_0x4f0b25}),this['ws']['onmessage']=_0x2a0af1=>this['onData'](_0x2a0af1['data']),this['ws']['onerror']=_0x55783a=>this['onError']('websocket\x20error',_0x55783a);}['write'](_0x5f31d1){this['writable']=!0x1;for(let _0x7de110=0x0;_0x7de110<_0x5f31d1['length'];_0x7de110++){const _0x134443=_0x5f31d1[_0x7de110],_0x11822c=_0x7de110===_0x5f31d1['length']-0x1;encodePacket(_0x134443,this['supportsBinary'],_0x28d2ca=>{try{usingBrowserWebSocket&&this['ws']['send'](_0x28d2ca);}catch(_0xce4dbc){}_0x11822c&&nextTick(()=>{this['writable']=!0x0,this['emitReserved']('drain');},this['setTimeoutFn']);});}}['doClose'](){void 0x0!==this['ws']&&(this['ws']['close'](),this['ws']=null);}['uri'](){const _0x371f2a=this['opts']['secure']?'wss':'ws',_0x1d0ca4=this['query']||{};return this['opts']['timestampRequests']&&(_0x1d0ca4[this['opts']['timestampParam']]=yeast()),this['supportsBinary']||(_0x1d0ca4['b64']=0x1),this['createUri'](_0x371f2a,_0x1d0ca4);}['check'](){return!!WebSocket$2;}}class WT extends Transport{get['name'](){return'webtransport';}['doOpen'](){'function'==typeof WebTransport&&(this['transport']=new WebTransport(this['createUri']('https'),this['opts']['transportOptions'][this['name']]),this['transport']['closed']['then'](()=>{this['onClose']();})['catch'](_0x574979=>{this['onError']('webtransport\x20error',_0x574979);}),this['transport']['ready']['then'](()=>{this['transport']['createBidirectionalStream']()['then'](_0x54ef22=>{const _0x2b9466=createPacketDecoderStream(Number['MAX_SAFE_INTEGER'],this['socket']['binaryType']),_0x396e72=_0x54ef22['readable']['pipeThrough'](_0x2b9466)['getReader'](),_0x279eef=createPacketEncoderStream();_0x279eef['readable']['pipeTo'](_0x54ef22['writable']),this['writer']=_0x279eef['writable']['getWriter']();const _0x23f71d=()=>{_0x396e72['read']()['then'](({done:_0x519335,value:_0x290e11})=>{_0x519335||(this['onPacket'](_0x290e11),_0x23f71d());})['catch'](_0x32211e=>{});};_0x23f71d();const _0x59f9cc={'type':'open'};this['query']['sid']&&(_0x59f9cc['data']='{\x22sid\x22:\x22'+this['query']['sid']+'\x22}'),this['writer']['write'](_0x59f9cc)['then'](()=>this['onOpen']());});}));}['write'](_0x19f475){this['writable']=!0x1;for(let _0x2cc895=0x0;_0x2cc895<_0x19f475['length'];_0x2cc895++){const _0x34b6a8=_0x19f475[_0x2cc895],_0x32b9a0=_0x2cc895===_0x19f475['length']-0x1;this['writer']['write'](_0x34b6a8)['then'](()=>{_0x32b9a0&&nextTick(()=>{this['writable']=!0x0,this['emitReserved']('drain');},this['setTimeoutFn']);});}}['doClose'](){var _0x1879cf;null===(_0x1879cf=this['transport'])||void 0x0===_0x1879cf||_0x1879cf['close']();}}const transports={'websocket':WS,'webtransport':WT,'polling':Polling},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=['source','protocol','authority','userInfo','user','password','host','port','relative','path','directory','file','query','anchor'];function parse(_0x1541c0){if(_0x1541c0['length']>0x7d0)throw'URI\x20too\x20long';const _0x39c73a=_0x1541c0,_0x1e5a5b=_0x1541c0['indexOf']('['),_0x8ba574=_0x1541c0['indexOf'](']');-0x1!=_0x1e5a5b&&-0x1!=_0x8ba574&&(_0x1541c0=_0x1541c0['substring'](0x0,_0x1e5a5b)+_0x1541c0['substring'](_0x1e5a5b,_0x8ba574)['replace'](/:/g,';')+_0x1541c0['substring'](_0x8ba574,_0x1541c0['length']));let _0x36c064=re['exec'](_0x1541c0||''),_0x22ce46={},_0x51b5aa=0xe;for(;_0x51b5aa--;)_0x22ce46[parts[_0x51b5aa]]=_0x36c064[_0x51b5aa]||'';return-0x1!=_0x1e5a5b&&-0x1!=_0x8ba574&&(_0x22ce46['source']=_0x39c73a,_0x22ce46['host']=_0x22ce46['host']['substring'](0x1,_0x22ce46['host']['length']-0x1)['replace'](/;/g,':'),_0x22ce46['authority']=_0x22ce46['authority']['replace']('[','')['replace'](']','')['replace'](/;/g,':'),_0x22ce46['ipv6uri']=!0x0),_0x22ce46['pathNames']=pathNames(_0x22ce46,_0x22ce46['path']),_0x22ce46['queryKey']=queryKey(_0x22ce46,_0x22ce46['query']),_0x22ce46;}function pathNames(_0xc6d6d6,_0x51bee5){const _0x5eb92d=_0x51bee5['replace'](/\/{2,9}/g,'/')['split']('/');return'/'!=_0x51bee5['slice'](0x0,0x1)&&0x0!==_0x51bee5['length']||_0x5eb92d['splice'](0x0,0x1),'/'==_0x51bee5['slice'](-0x1)&&_0x5eb92d['splice'](_0x5eb92d['length']-0x1,0x1),_0x5eb92d;}function queryKey(_0x186e54,_0x1e0f7e){const _0x4da9ec={};return _0x1e0f7e['replace'](/(?:^|&)([^&=]*)=?([^&]*)/g,function(_0x5cc2da,_0x22b3f4,_0x1a1b23){_0x22b3f4&&(_0x4da9ec[_0x22b3f4]=_0x1a1b23);}),_0x4da9ec;}let Socket$1=class e extends Emitter{constructor(_0x5958f5,_0x178742={}){super(),this['binaryType']=defaultBinaryType,this['writeBuffer']=[],_0x5958f5&&'object'==typeof _0x5958f5&&(_0x178742=_0x5958f5,_0x5958f5=null),_0x5958f5?(_0x5958f5=parse(_0x5958f5),_0x178742['hostname']=_0x5958f5['host'],_0x178742['secure']='https'===_0x5958f5['protocol']||'wss'===_0x5958f5['protocol'],_0x178742['port']=_0x5958f5['port'],_0x5958f5['query']&&(_0x178742['query']=_0x5958f5['query'])):_0x178742['host']&&(_0x178742['hostname']=parse(_0x178742['host'])['host']),installTimerFunctions(this,_0x178742),this['secure']=null!=_0x178742['secure']?_0x178742['secure']:'undefined'!=typeof location&&'https:'===location['protocol'],_0x178742['hostname']&&!_0x178742['port']&&(_0x178742['port']=this['secure']?'443':'80'),this['hostname']=_0x178742['hostname']||('undefined'!=typeof location?location['hostname']:'localhost'),this['port']=_0x178742['port']||('undefined'!=typeof location&&location['port']?location['port']:this['secure']?'443':'80'),this['transports']=_0x178742['transports']||['polling','websocket','webtransport'],this['writeBuffer']=[],this['prevBufferLen']=0x0,this['opts']=Object['assign']({'path':'/engine.io','agent':!0x1,'withCredentials':!0x1,'upgrade':!0x0,'timestampParam':'t','rememberUpgrade':!0x1,'addTrailingSlash':!0x0,'rejectUnauthorized':!0x0,'perMessageDeflate':{'threshold':0x400},'transportOptions':{},'closeOnBeforeunload':!0x1},_0x178742),this['opts']['path']=this['opts']['path']['replace'](/\/$/,'')+(this['opts']['addTrailingSlash']?'/':''),'string'==typeof this['opts']['query']&&(this['opts']['query']=decode(this['opts']['query'])),this['id']=null,this['upgrades']=null,this['pingInterval']=null,this['pingTimeout']=null,this['pingTimeoutTimer']=null,'function'==typeof addEventListener&&(this['opts']['closeOnBeforeunload']&&(this['beforeunloadEventListener']=()=>{this['transport']&&(this['transport']['removeAllListeners'](),this['transport']['close']());},addEventListener('beforeunload',this['beforeunloadEventListener'],!0x1)),'localhost'!==this['hostname']&&(this['offlineEventListener']=()=>{this['onClose']('transport\x20close',{'description':'network\x20connection\x20lost'});},addEventListener('offline',this['offlineEventListener'],!0x1))),this['open']();}['createTransport'](_0xba3c5a){const _0x19843f=Object['assign']({},this['opts']['query']);_0x19843f['EIO']=protocol$1,_0x19843f['transport']=_0xba3c5a,this['id']&&(_0x19843f['sid']=this['id']);const _0x10945f=Object['assign']({},this['opts'],{'query':_0x19843f,'socket':this,'hostname':this['hostname'],'secure':this['secure'],'port':this['port']},this['opts']['transportOptions'][_0xba3c5a]);return new transports[_0xba3c5a](_0x10945f);}['open'](){let _0x244a84;if(this['opts']['rememberUpgrade']&&e['priorWebsocketSuccess']&&-0x1!==this['transports']['indexOf']('websocket'))_0x244a84='websocket';else{if(0x0===this['transports']['length'])return void this['setTimeoutFn'](()=>{this['emitReserved']('error','No\x20transports\x20available');},0x0);_0x244a84=this['transports'][0x0];}this['readyState']='opening';try{_0x244a84=this['createTransport'](_0x244a84);}catch(_0x515a23){return this['transports']['shift'](),void this['open']();}_0x244a84['open'](),this['setTransport'](_0x244a84);}['setTransport'](_0x2e0e07){this['transport']&&this['transport']['removeAllListeners'](),this['transport']=_0x2e0e07,_0x2e0e07['on']('drain',this['onDrain']['bind'](this))['on']('packet',this['onPacket']['bind'](this))['on']('error',this['onError']['bind'](this))['on']('close',_0x4aa9b7=>this['onClose']('transport\x20close',_0x4aa9b7));}['probe'](_0x3e7491){let _0x5d3e06=this['createTransport'](_0x3e7491),_0x4701d5=!0x1;e['priorWebsocketSuccess']=!0x1;const _0x48babf=()=>{_0x4701d5||(_0x5d3e06['send']([{'type':'ping','data':'probe'}]),_0x5d3e06['once']('packet',_0x51f4df=>{if(!_0x4701d5){if('pong'===_0x51f4df['type']&&'probe'===_0x51f4df['data']){if(this['upgrading']=!0x0,this['emitReserved']('upgrading',_0x5d3e06),!_0x5d3e06)return;e['priorWebsocketSuccess']='websocket'===_0x5d3e06['name'],this['transport']['pause'](()=>{_0x4701d5||'closed'!==this['readyState']&&(_0x8d20a0(),this['setTransport'](_0x5d3e06),_0x5d3e06['send']([{'type':'upgrade'}]),this['emitReserved']('upgrade',_0x5d3e06),_0x5d3e06=null,this['upgrading']=!0x1,this['flush']());});}else{const _0x13cf55=new Error('probe\x20error');_0x13cf55['transport']=_0x5d3e06['name'],this['emitReserved']('upgradeError',_0x13cf55);}}}));};function _0x1ffbfd(){_0x4701d5||(_0x4701d5=!0x0,_0x8d20a0(),_0x5d3e06['close'](),_0x5d3e06=null);}const _0xfb4600=_0x2a72c2=>{const _0xc8aaf3=new Error('probe\x20error:\x20'+_0x2a72c2);_0xc8aaf3['transport']=_0x5d3e06['name'],_0x1ffbfd(),this['emitReserved']('upgradeError',_0xc8aaf3);};function _0x342836(){_0xfb4600('transport\x20closed');}function _0x4cd1b3(){_0xfb4600('socket\x20closed');}function _0x5dd294(_0x1230d9){_0x5d3e06&&_0x1230d9['name']!==_0x5d3e06['name']&&_0x1ffbfd();}const _0x8d20a0=()=>{_0x5d3e06['removeListener']('open',_0x48babf),_0x5d3e06['removeListener']('error',_0xfb4600),_0x5d3e06['removeListener']('close',_0x342836),this['off']('close',_0x4cd1b3),this['off']('upgrading',_0x5dd294);};_0x5d3e06['once']('open',_0x48babf),_0x5d3e06['once']('error',_0xfb4600),_0x5d3e06['once']('close',_0x342836),this['once']('close',_0x4cd1b3),this['once']('upgrading',_0x5dd294),-0x1!==this['upgrades']['indexOf']('webtransport')&&'webtransport'!==_0x3e7491?this['setTimeoutFn'](()=>{_0x4701d5||_0x5d3e06['open']();},0xc8):_0x5d3e06['open']();}['onOpen'](){if(this['readyState']='open',e['priorWebsocketSuccess']='websocket'===this['transport']['name'],this['emitReserved']('open'),this['flush'](),'open'===this['readyState']&&this['opts']['upgrade']){let _0x35d892=0x0;const _0x22be6f=this['upgrades']['length'];for(;_0x35d892<_0x22be6f;_0x35d892++)this['probe'](this['upgrades'][_0x35d892]);}}['onPacket'](_0x472a39){if('opening'===this['readyState']||'open'===this['readyState']||'closing'===this['readyState'])switch(this['emitReserved']('packet',_0x472a39),this['emitReserved']('heartbeat'),this['resetPingTimeout'](),_0x472a39['type']){case'open':this['onHandshake'](JSON['parse'](_0x472a39['data']));break;case'ping':this['sendPacket']('pong'),this['emitReserved']('ping'),this['emitReserved']('pong');break;case'error':const _0x302292=new Error('server\x20error');_0x302292['code']=_0x472a39['data'],this['onError'](_0x302292);break;case'message':this['emitReserved']('data',_0x472a39['data']),this['emitReserved']('message',_0x472a39['data']);}}['onHandshake'](_0x16b610){this['emitReserved']('handshake',_0x16b610),this['id']=_0x16b610['sid'],this['transport']['query']['sid']=_0x16b610['sid'],this['upgrades']=this['filterUpgrades'](_0x16b610['upgrades']),this['pingInterval']=_0x16b610['pingInterval'],this['pingTimeout']=_0x16b610['pingTimeout'],this['maxPayload']=_0x16b610['maxPayload'],this['onOpen'](),'closed'!==this['readyState']&&this['resetPingTimeout']();}['resetPingTimeout'](){this['clearTimeoutFn'](this['pingTimeoutTimer']),this['pingTimeoutTimer']=this['setTimeoutFn'](()=>{this['onClose']('ping\x20timeout');},this['pingInterval']+this['pingTimeout']),this['opts']['autoUnref']&&this['pingTimeoutTimer']['unref']();}['onDrain'](){this['writeBuffer']['splice'](0x0,this['prevBufferLen']),this['prevBufferLen']=0x0,0x0===this['writeBuffer']['length']?this['emitReserved']('drain'):this['flush']();}['flush'](){if('closed'!==this['readyState']&&this['transport']['writable']&&!this['upgrading']&&this['writeBuffer']['length']){const _0x3634c3=this['getWritablePackets']();this['transport']['send'](_0x3634c3),this['prevBufferLen']=_0x3634c3['length'],this['emitReserved']('flush');}}['getWritablePackets'](){if(!(this['maxPayload']&&'polling'===this['transport']['name']&&this['writeBuffer']['length']>0x1))return this['writeBuffer'];let _0x3210e3=0x1;for(let _0xe386e3=0x0;_0xe386e3<this['writeBuffer']['length'];_0xe386e3++){const _0x4e4d9b=this['writeBuffer'][_0xe386e3]['data'];if(_0x4e4d9b&&(_0x3210e3+=byteLength(_0x4e4d9b)),_0xe386e3>0x0&&_0x3210e3>this['maxPayload'])return this['writeBuffer']['slice'](0x0,_0xe386e3);_0x3210e3+=0x2;}return this['writeBuffer'];}['write'](_0x2f3dcd,_0x1d3911,_0x1b1318){return this['sendPacket']('message',_0x2f3dcd,_0x1d3911,_0x1b1318),this;}['send'](_0x5d6706,_0x3bc0e5,_0x2a8611){return this['sendPacket']('message',_0x5d6706,_0x3bc0e5,_0x2a8611),this;}['sendPacket'](_0x1b24e6,_0xf54fb8,_0xa09b5c,_0x5a05f3){if('function'==typeof _0xf54fb8&&(_0x5a05f3=_0xf54fb8,_0xf54fb8=void 0x0),'function'==typeof _0xa09b5c&&(_0x5a05f3=_0xa09b5c,_0xa09b5c=null),'closing'===this['readyState']||'closed'===this['readyState'])return;(_0xa09b5c=_0xa09b5c||{})['compress']=!0x1!==_0xa09b5c['compress'];const _0x1b358a={'type':_0x1b24e6,'data':_0xf54fb8,'options':_0xa09b5c};this['emitReserved']('packetCreate',_0x1b358a),this['writeBuffer']['push'](_0x1b358a),_0x5a05f3&&this['once']('flush',_0x5a05f3),this['flush']();}['close'](){const _0xfdd173=()=>{this['onClose']('forced\x20close'),this['transport']['close']();},_0x1e489d=()=>{this['off']('upgrade',_0x1e489d),this['off']('upgradeError',_0x1e489d),_0xfdd173();},_0x512438=()=>{this['once']('upgrade',_0x1e489d),this['once']('upgradeError',_0x1e489d);};return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['readyState']='closing',this['writeBuffer']['length']?this['once']('drain',()=>{this['upgrading']?_0x512438():_0xfdd173();}):this['upgrading']?_0x512438():_0xfdd173()),this;}['onError'](_0x5476a6){e['priorWebsocketSuccess']=!0x1,this['emitReserved']('error',_0x5476a6),this['onClose']('transport\x20error',_0x5476a6);}['onClose'](_0xf36e84,_0x4f162c){'opening'!==this['readyState']&&'open'!==this['readyState']&&'closing'!==this['readyState']||(this['clearTimeoutFn'](this['pingTimeoutTimer']),this['transport']['removeAllListeners']('close'),this['transport']['close'](),this['transport']['removeAllListeners'](),'function'==typeof removeEventListener&&(removeEventListener('beforeunload',this['beforeunloadEventListener'],!0x1),removeEventListener('offline',this['offlineEventListener'],!0x1)),this['readyState']='closed',this['id']=null,this['emitReserved']('close',_0xf36e84,_0x4f162c),this['writeBuffer']=[],this['prevBufferLen']=0x0);}['filterUpgrades'](_0x3f8ae7){const _0x5d5e71=[];let _0x594954=0x0;const _0x1ee269=_0x3f8ae7['length'];for(;_0x594954<_0x1ee269;_0x594954++)~this['transports']['indexOf'](_0x3f8ae7[_0x594954])&&_0x5d5e71['push'](_0x3f8ae7[_0x594954]);return _0x5d5e71;}};function url(_0x2b7bd9,_0x8317a5='',_0x4995c3){let _0x257d17=_0x2b7bd9;_0x4995c3=_0x4995c3||'undefined'!=typeof location&&location,null==_0x2b7bd9&&(_0x2b7bd9=_0x4995c3['protocol']+'//'+_0x4995c3['host']),'string'==typeof _0x2b7bd9&&('/'===_0x2b7bd9['charAt'](0x0)&&(_0x2b7bd9='/'===_0x2b7bd9['charAt'](0x1)?_0x4995c3['protocol']+_0x2b7bd9:_0x4995c3['host']+_0x2b7bd9),/^(https?|wss?):\/\//['test'](_0x2b7bd9)||(_0x2b7bd9=void 0x0!==_0x4995c3?_0x4995c3['protocol']+'//'+_0x2b7bd9:'https://'+_0x2b7bd9),_0x257d17=parse(_0x2b7bd9)),_0x257d17['port']||(/^(http|ws)$/['test'](_0x257d17['protocol'])?_0x257d17['port']='80':/^(http|ws)s$/['test'](_0x257d17['protocol'])&&(_0x257d17['port']='443')),_0x257d17['path']=_0x257d17['path']||'/';const _0x318da1=-0x1!==_0x257d17['host']['indexOf'](':')?'['+_0x257d17['host']+']':_0x257d17['host'];return _0x257d17['id']=_0x257d17['protocol']+'://'+_0x318da1+':'+_0x257d17['port']+_0x8317a5,_0x257d17['href']=_0x257d17['protocol']+'://'+_0x318da1+(_0x4995c3&&_0x4995c3['port']===_0x257d17['port']?'':':'+_0x257d17['port']),_0x257d17;}Socket$1['protocol']=protocol$1;const withNativeArrayBuffer='function'==typeof ArrayBuffer,isView=_0x2c296f=>'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x2c296f):_0x2c296f['buffer']instanceof ArrayBuffer,toString=Object['prototype']['toString'],withNativeBlob='function'==typeof Blob||'undefined'!=typeof Blob&&'[object\x20BlobConstructor]'===toString['call'](Blob),withNativeFile='function'==typeof File||'undefined'!=typeof File&&'[object\x20FileConstructor]'===toString['call'](File);function isBinary(_0x1e3d79){return withNativeArrayBuffer&&(_0x1e3d79 instanceof ArrayBuffer||isView(_0x1e3d79))||withNativeBlob&&_0x1e3d79 instanceof Blob||withNativeFile&&_0x1e3d79 instanceof File;}function hasBinary(_0x48d057,_0x1ad4d7){if(!_0x48d057||'object'!=typeof _0x48d057)return!0x1;if(Array['isArray'](_0x48d057)){for(let _0x10f8f9=0x0,_0x3cfb75=_0x48d057['length'];_0x10f8f9<_0x3cfb75;_0x10f8f9++)if(hasBinary(_0x48d057[_0x10f8f9]))return!0x0;return!0x1;}if(isBinary(_0x48d057))return!0x0;if(_0x48d057['toJSON']&&'function'==typeof _0x48d057['toJSON']&&0x1===arguments['length'])return hasBinary(_0x48d057['toJSON'](),!0x0);for(const _0x8dc72e in _0x48d057)if(Object['prototype']['hasOwnProperty']['call'](_0x48d057,_0x8dc72e)&&hasBinary(_0x48d057[_0x8dc72e]))return!0x0;return!0x1;}function deconstructPacket(_0x4d59cd){const _0x37153f=[],_0x226e40=_0x4d59cd['data'],_0x5abb82=_0x4d59cd;return _0x5abb82['data']=_deconstructPacket(_0x226e40,_0x37153f),_0x5abb82['attachments']=_0x37153f['length'],{'packet':_0x5abb82,'buffers':_0x37153f};}function _deconstructPacket(_0x2352aa,_0x565043){if(!_0x2352aa)return _0x2352aa;if(isBinary(_0x2352aa)){const _0x538e85={'_placeholder':!0x0,'num':_0x565043['length']};return _0x565043['push'](_0x2352aa),_0x538e85;}if(Array['isArray'](_0x2352aa)){const _0x298569=new Array(_0x2352aa['length']);for(let _0x42627c=0x0;_0x42627c<_0x2352aa['length'];_0x42627c++)_0x298569[_0x42627c]=_deconstructPacket(_0x2352aa[_0x42627c],_0x565043);return _0x298569;}if('object'==typeof _0x2352aa&&!(_0x2352aa instanceof Date)){const _0x313989={};for(const _0x3fba54 in _0x2352aa)Object['prototype']['hasOwnProperty']['call'](_0x2352aa,_0x3fba54)&&(_0x313989[_0x3fba54]=_deconstructPacket(_0x2352aa[_0x3fba54],_0x565043));return _0x313989;}return _0x2352aa;}function reconstructPacket(_0x3becac,_0x54644a){return _0x3becac['data']=_reconstructPacket(_0x3becac['data'],_0x54644a),delete _0x3becac['attachments'],_0x3becac;}function _reconstructPacket(_0x3e83b1,_0x33eba8){if(!_0x3e83b1)return _0x3e83b1;if(_0x3e83b1&&!0x0===_0x3e83b1['_placeholder']){if('number'==typeof _0x3e83b1['num']&&_0x3e83b1['num']>=0x0&&_0x3e83b1['num']<_0x33eba8['length'])return _0x33eba8[_0x3e83b1['num']];throw new Error('illegal\x20attachments');}if(Array['isArray'](_0x3e83b1)){for(let _0x1e92ad=0x0;_0x1e92ad<_0x3e83b1['length'];_0x1e92ad++)_0x3e83b1[_0x1e92ad]=_reconstructPacket(_0x3e83b1[_0x1e92ad],_0x33eba8);}else{if('object'==typeof _0x3e83b1){for(const _0x51cc7f in _0x3e83b1)Object['prototype']['hasOwnProperty']['call'](_0x3e83b1,_0x51cc7f)&&(_0x3e83b1[_0x51cc7f]=_reconstructPacket(_0x3e83b1[_0x51cc7f],_0x33eba8));}}return _0x3e83b1;}const RESERVED_EVENTS$1=['connect','connect_error','disconnect','disconnecting','newListener','removeListener'],protocol=0x5;var PacketType;!function(_0x5c2a12){_0x5c2a12[_0x5c2a12['CONNECT']=0x0]='CONNECT',_0x5c2a12[_0x5c2a12['DISCONNECT']=0x1]='DISCONNECT',_0x5c2a12[_0x5c2a12['EVENT']=0x2]='EVENT',_0x5c2a12[_0x5c2a12['ACK']=0x3]='ACK',_0x5c2a12[_0x5c2a12['CONNECT_ERROR']=0x4]='CONNECT_ERROR',_0x5c2a12[_0x5c2a12['BINARY_EVENT']=0x5]='BINARY_EVENT',_0x5c2a12[_0x5c2a12['BINARY_ACK']=0x6]='BINARY_ACK';}(PacketType||(PacketType={}));let Encoder$1=class{constructor(_0x9ad0a9){this['replacer']=_0x9ad0a9;}['encode'](_0x1a45b7){return _0x1a45b7['type']!==PacketType['EVENT']&&_0x1a45b7['type']!==PacketType['ACK']||!hasBinary(_0x1a45b7)?[this['encodeAsString'](_0x1a45b7)]:this['encodeAsBinary']({'type':_0x1a45b7['type']===PacketType['EVENT']?PacketType['BINARY_EVENT']:PacketType['BINARY_ACK'],'nsp':_0x1a45b7['nsp'],'data':_0x1a45b7['data'],'id':_0x1a45b7['id']});}['encodeAsString'](_0xf12981){let _0x333f45=''+_0xf12981['type'];return _0xf12981['type']!==PacketType['BINARY_EVENT']&&_0xf12981['type']!==PacketType['BINARY_ACK']||(_0x333f45+=_0xf12981['attachments']+'-'),_0xf12981['nsp']&&'/'!==_0xf12981['nsp']&&(_0x333f45+=_0xf12981['nsp']+','),null!=_0xf12981['id']&&(_0x333f45+=_0xf12981['id']),null!=_0xf12981['data']&&(_0x333f45+=JSON['stringify'](_0xf12981['data'],this['replacer'])),_0x333f45;}['encodeAsBinary'](_0x23be5d){const _0x734744=deconstructPacket(_0x23be5d),_0x956a56=this['encodeAsString'](_0x734744['packet']),_0x2f2ec1=_0x734744['buffers'];return _0x2f2ec1['unshift'](_0x956a56),_0x2f2ec1;}};function isObject$2(_0x3f314c){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x3f314c);}let Decoder$1=class e extends Emitter{constructor(_0x478b08){super(),this['reviver']=_0x478b08;}['add'](_0x3d60f0){let _0x46197b;if('string'==typeof _0x3d60f0){if(this['reconstructor'])throw new Error('got\x20plaintext\x20data\x20when\x20reconstructing\x20a\x20packet');_0x46197b=this['decodeString'](_0x3d60f0);const _0x4d0606=_0x46197b['type']===PacketType['BINARY_EVENT'];_0x4d0606||_0x46197b['type']===PacketType['BINARY_ACK']?(_0x46197b['type']=_0x4d0606?PacketType['EVENT']:PacketType['ACK'],this['reconstructor']=new BinaryReconstructor(_0x46197b),0x0===_0x46197b['attachments']&&super['emitReserved']('decoded',_0x46197b)):super['emitReserved']('decoded',_0x46197b);}else{if(!isBinary(_0x3d60f0)&&!_0x3d60f0['base64'])throw new Error('Unknown\x20type:\x20'+_0x3d60f0);if(!this['reconstructor'])throw new Error('got\x20binary\x20data\x20when\x20not\x20reconstructing\x20a\x20packet');_0x46197b=this['reconstructor']['takeBinaryData'](_0x3d60f0),_0x46197b&&(this['reconstructor']=null,super['emitReserved']('decoded',_0x46197b));}}['decodeString'](_0x39eb36){let _0x3b906a=0x0;const _0x1b1141={'type':Number(_0x39eb36['charAt'](0x0))};if(void 0x0===PacketType[_0x1b1141['type']])throw new Error('unknown\x20packet\x20type\x20'+_0x1b1141['type']);if(_0x1b1141['type']===PacketType['BINARY_EVENT']||_0x1b1141['type']===PacketType['BINARY_ACK']){const _0x335321=_0x3b906a+0x1;for(;'-'!==_0x39eb36['charAt'](++_0x3b906a)&&_0x3b906a!=_0x39eb36['length'];);const _0x28f120=_0x39eb36['substring'](_0x335321,_0x3b906a);if(_0x28f120!=Number(_0x28f120)||'-'!==_0x39eb36['charAt'](_0x3b906a))throw new Error('Illegal\x20attachments');_0x1b1141['attachments']=Number(_0x28f120);}if('/'===_0x39eb36['charAt'](_0x3b906a+0x1)){const _0x1f30ba=_0x3b906a+0x1;for(;++_0x3b906a;){if(','===_0x39eb36['charAt'](_0x3b906a))break;if(_0x3b906a===_0x39eb36['length'])break;}_0x1b1141['nsp']=_0x39eb36['substring'](_0x1f30ba,_0x3b906a);}else _0x1b1141['nsp']='/';const _0x33cc88=_0x39eb36['charAt'](_0x3b906a+0x1);if(''!==_0x33cc88&&Number(_0x33cc88)==_0x33cc88){const _0x49c912=_0x3b906a+0x1;for(;++_0x3b906a;){const _0x39f26e=_0x39eb36['charAt'](_0x3b906a);if(null==_0x39f26e||Number(_0x39f26e)!=_0x39f26e){--_0x3b906a;break;}if(_0x3b906a===_0x39eb36['length'])break;}_0x1b1141['id']=Number(_0x39eb36['substring'](_0x49c912,_0x3b906a+0x1));}if(_0x39eb36['charAt'](++_0x3b906a)){const _0x20d8fb=this['tryParse'](_0x39eb36['substr'](_0x3b906a));if(!e['isPayloadValid'](_0x1b1141['type'],_0x20d8fb))throw new Error('invalid\x20payload');_0x1b1141['data']=_0x20d8fb;}return _0x1b1141;}['tryParse'](_0x4dce07){try{return JSON['parse'](_0x4dce07,this['reviver']);}catch(_0x90bb5d){return!0x1;}}static['isPayloadValid'](_0x1595c7,_0x56f24a){switch(_0x1595c7){case PacketType['CONNECT']:return isObject$2(_0x56f24a);case PacketType['DISCONNECT']:return void 0x0===_0x56f24a;case PacketType['CONNECT_ERROR']:return'string'==typeof _0x56f24a||isObject$2(_0x56f24a);case PacketType['EVENT']:case PacketType['BINARY_EVENT']:return Array['isArray'](_0x56f24a)&&('number'==typeof _0x56f24a[0x0]||'string'==typeof _0x56f24a[0x0]&&-0x1===RESERVED_EVENTS$1['indexOf'](_0x56f24a[0x0]));case PacketType['ACK']:case PacketType['BINARY_ACK']:return Array['isArray'](_0x56f24a);}}['destroy'](){this['reconstructor']&&(this['reconstructor']['finishedReconstruction'](),this['reconstructor']=null);}};class BinaryReconstructor{constructor(_0x3b60b8){this['packet']=_0x3b60b8,this['buffers']=[],this['reconPack']=_0x3b60b8;}['takeBinaryData'](_0x1a4c1d){if(this['buffers']['push'](_0x1a4c1d),this['buffers']['length']===this['reconPack']['attachments']){const _0x6a9582=reconstructPacket(this['reconPack'],this['buffers']);return this['finishedReconstruction'](),_0x6a9582;}return null;}['finishedReconstruction'](){this['reconPack']=null,this['buffers']=[];}}var parser$4=Object['freeze']({'__proto__':null,'Decoder':Decoder$1,'Encoder':Encoder$1,get 'PacketType'(){return PacketType;},'protocol':protocol});function on(_0x47bfc3,_0x247d30,_0x48ef43){return _0x47bfc3['on'](_0x247d30,_0x48ef43),function(){_0x47bfc3['off'](_0x247d30,_0x48ef43);};}const RESERVED_EVENTS=Object['freeze']({'connect':0x1,'connect_error':0x1,'disconnect':0x1,'disconnecting':0x1,'newListener':0x1,'removeListener':0x1});class Socket extends Emitter{constructor(_0x5b9ff5,_0x21a8f7,_0x1fff75){super(),this['connected']=!0x1,this['recovered']=!0x1,this['receiveBuffer']=[],this['sendBuffer']=[],this['_queue']=[],this['_queueSeq']=0x0,this['ids']=0x0,this['acks']={},this['flags']={},this['io']=_0x5b9ff5,this['nsp']=_0x21a8f7,_0x1fff75&&_0x1fff75['auth']&&(this['auth']=_0x1fff75['auth']),this['_opts']=Object['assign']({},_0x1fff75),this['io']['_autoConnect']&&this['open']();}get['disconnected'](){return!this['connected'];}['subEvents'](){if(this['subs'])return;const _0x3c3d56=this['io'];this['subs']=[on(_0x3c3d56,'open',this['onopen']['bind'](this)),on(_0x3c3d56,'packet',this['onpacket']['bind'](this)),on(_0x3c3d56,'error',this['onerror']['bind'](this)),on(_0x3c3d56,'close',this['onclose']['bind'](this))];}get['active'](){return!!this['subs'];}['connect'](){return this['connected']||(this['subEvents'](),this['io']['_reconnecting']||this['io']['open'](),'open'===this['io']['_readyState']&&this['onopen']()),this;}['open'](){return this['connect']();}['send'](..._0x16365f){return _0x16365f['unshift']('message'),this['emit']['apply'](this,_0x16365f),this;}['emit'](_0x394439,..._0x3614bb){if(RESERVED_EVENTS['hasOwnProperty'](_0x394439))throw new Error('\x22'+_0x394439['toString']()+'\x22\x20is\x20a\x20reserved\x20event\x20name');if(_0x3614bb['unshift'](_0x394439),this['_opts']['retries']&&!this['flags']['fromQueue']&&!this['flags']['volatile'])return this['_addToQueue'](_0x3614bb),this;const _0x3bfc25={'type':PacketType['EVENT'],'data':_0x3614bb,'options':{}};if(_0x3bfc25['options']['compress']=!0x1!==this['flags']['compress'],'function'==typeof _0x3614bb[_0x3614bb['length']-0x1]){const _0x41ccb2=this['ids']++,_0x424f68=_0x3614bb['pop']();this['_registerAckCallback'](_0x41ccb2,_0x424f68),_0x3bfc25['id']=_0x41ccb2;}const _0x1b848a=this['io']['engine']&&this['io']['engine']['transport']&&this['io']['engine']['transport']['writable'];return this['flags']['volatile']&&(!_0x1b848a||!this['connected'])||(this['connected']?(this['notifyOutgoingListeners'](_0x3bfc25),this['packet'](_0x3bfc25)):this['sendBuffer']['push'](_0x3bfc25)),this['flags']={},this;}['_registerAckCallback'](_0xd6fcc4,_0x5403f3){var _0x315a4f;const _0x5bd7b4=null!==(_0x315a4f=this['flags']['timeout'])&&void 0x0!==_0x315a4f?_0x315a4f:this['_opts']['ackTimeout'];if(void 0x0===_0x5bd7b4)return void(this['acks'][_0xd6fcc4]=_0x5403f3);const _0x139c3b=this['io']['setTimeoutFn'](()=>{delete this['acks'][_0xd6fcc4];for(let _0xa55621=0x0;_0xa55621<this['sendBuffer']['length'];_0xa55621++)this['sendBuffer'][_0xa55621]['id']===_0xd6fcc4&&this['sendBuffer']['splice'](_0xa55621,0x1);_0x5403f3['call'](this,new Error('operation\x20has\x20timed\x20out'));},_0x5bd7b4);this['acks'][_0xd6fcc4]=(..._0xac4f7c)=>{this['io']['clearTimeoutFn'](_0x139c3b),_0x5403f3['apply'](this,[null,..._0xac4f7c]);};}['emitWithAck'](_0x21b89f,..._0x4f94ce){const _0xf9b23d=void 0x0!==this['flags']['timeout']||void 0x0!==this['_opts']['ackTimeout'];return new Promise((_0x31a9ad,_0x5bc1af)=>{_0x4f94ce['push']((_0x2646c7,_0x35c7b2)=>_0xf9b23d?_0x2646c7?_0x5bc1af(_0x2646c7):_0x31a9ad(_0x35c7b2):_0x31a9ad(_0x2646c7)),this['emit'](_0x21b89f,..._0x4f94ce);});}['_addToQueue'](_0x2b22bd){let _0x34b542;'function'==typeof _0x2b22bd[_0x2b22bd['length']-0x1]&&(_0x34b542=_0x2b22bd['pop']());const _0x1e6c40={'id':this['_queueSeq']++,'tryCount':0x0,'pending':!0x1,'args':_0x2b22bd,'flags':Object['assign']({'fromQueue':!0x0},this['flags'])};_0x2b22bd['push']((_0x39fdff,..._0x259a6e)=>{if(_0x1e6c40!==this['_queue'][0x0])return;return null!==_0x39fdff?_0x1e6c40['tryCount']>this['_opts']['retries']&&(this['_queue']['shift'](),_0x34b542&&_0x34b542(_0x39fdff)):(this['_queue']['shift'](),_0x34b542&&_0x34b542(null,..._0x259a6e)),_0x1e6c40['pending']=!0x1,this['_drainQueue']();}),this['_queue']['push'](_0x1e6c40),this['_drainQueue']();}['_drainQueue'](_0x18bfa1=!0x1){if(!this['connected']||0x0===this['_queue']['length'])return;const _0x597b18=this['_queue'][0x0];_0x597b18['pending']&&!_0x18bfa1||(_0x597b18['pending']=!0x0,_0x597b18['tryCount']++,this['flags']=_0x597b18['flags'],this['emit']['apply'](this,_0x597b18['args']));}['packet'](_0x3c7902){_0x3c7902['nsp']=this['nsp'],this['io']['_packet'](_0x3c7902);}['onopen'](){'function'==typeof this['auth']?this['auth'](_0x3f0ecb=>{this['_sendConnectPacket'](_0x3f0ecb);}):this['_sendConnectPacket'](this['auth']);}['_sendConnectPacket'](_0x45ef1c){this['packet']({'type':PacketType['CONNECT'],'data':this['_pid']?Object['assign']({'pid':this['_pid'],'offset':this['_lastOffset']},_0x45ef1c):_0x45ef1c});}['onerror'](_0x5882bc){this['connected']||this['emitReserved']('connect_error',_0x5882bc);}['onclose'](_0x38a095,_0x2cafc7){this['connected']=!0x1,delete this['id'],this['emitReserved']('disconnect',_0x38a095,_0x2cafc7);}['onpacket'](_0x23fde8){if(_0x23fde8['nsp']===this['nsp'])switch(_0x23fde8['type']){case PacketType['CONNECT']:_0x23fde8['data']&&_0x23fde8['data']['sid']?this['onconnect'](_0x23fde8['data']['sid'],_0x23fde8['data']['pid']):this['emitReserved']('connect_error',new Error('It\x20seems\x20you\x20are\x20trying\x20to\x20reach\x20a\x20Socket.IO\x20server\x20in\x20v2.x\x20with\x20a\x20v3.x\x20client,\x20but\x20they\x20are\x20not\x20compatible\x20(more\x20information\x20here:\x20https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)'));break;case PacketType['EVENT']:case PacketType['BINARY_EVENT']:this['onevent'](_0x23fde8);break;case PacketType['ACK']:case PacketType['BINARY_ACK']:this['onack'](_0x23fde8);break;case PacketType['DISCONNECT']:this['ondisconnect']();break;case PacketType['CONNECT_ERROR']:this['destroy']();const _0x1ed117=new Error(_0x23fde8['data']['message']);_0x1ed117['data']=_0x23fde8['data']['data'],this['emitReserved']('connect_error',_0x1ed117);}}['onevent'](_0x267e40){const _0x31cb51=_0x267e40['data']||[];null!=_0x267e40['id']&&_0x31cb51['push'](this['ack'](_0x267e40['id'])),this['connected']?this['emitEvent'](_0x31cb51):this['receiveBuffer']['push'](Object['freeze'](_0x31cb51));}['emitEvent'](_0x962ac4){if(this['_anyListeners']&&this['_anyListeners']['length']){const _0x116073=this['_anyListeners']['slice']();for(const _0x115bc4 of _0x116073)_0x115bc4['apply'](this,_0x962ac4);}super['emit']['apply'](this,_0x962ac4),this['_pid']&&_0x962ac4['length']&&'string'==typeof _0x962ac4[_0x962ac4['length']-0x1]&&(this['_lastOffset']=_0x962ac4[_0x962ac4['length']-0x1]);}['ack'](_0x44664a){const _0xff65dc=this;let _0x1ef287=!0x1;return function(..._0x53c050){_0x1ef287||(_0x1ef287=!0x0,_0xff65dc['packet']({'type':PacketType['ACK'],'id':_0x44664a,'data':_0x53c050}));};}['onack'](_0x5c6ef9){const _0x3e97f2=this['acks'][_0x5c6ef9['id']];'function'==typeof _0x3e97f2&&(_0x3e97f2['apply'](this,_0x5c6ef9['data']),delete this['acks'][_0x5c6ef9['id']]);}['onconnect'](_0x37007e,_0x55ee9c){this['id']=_0x37007e,this['recovered']=_0x55ee9c&&this['_pid']===_0x55ee9c,this['_pid']=_0x55ee9c,this['connected']=!0x0,this['emitBuffered'](),this['emitReserved']('connect'),this['_drainQueue'](!0x0);}['emitBuffered'](){this['receiveBuffer']['forEach'](_0x253ba3=>this['emitEvent'](_0x253ba3)),this['receiveBuffer']=[],this['sendBuffer']['forEach'](_0x264ded=>{this['notifyOutgoingListeners'](_0x264ded),this['packet'](_0x264ded);}),this['sendBuffer']=[];}['ondisconnect'](){this['destroy'](),this['onclose']('io\x20server\x20disconnect');}['destroy'](){this['subs']&&(this['subs']['forEach'](_0x45af65=>_0x45af65()),this['subs']=void 0x0),this['io']['_destroy'](this);}['disconnect'](){return this['connected']&&this['packet']({'type':PacketType['DISCONNECT']}),this['destroy'](),this['connected']&&this['onclose']('io\x20client\x20disconnect'),this;}['close'](){return this['disconnect']();}['compress'](_0x50bfe2){return this['flags']['compress']=_0x50bfe2,this;}get['volatile'](){return this['flags']['volatile']=!0x0,this;}['timeout'](_0x20ff8e){return this['flags']['timeout']=_0x20ff8e,this;}['onAny'](_0x30f96f){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['push'](_0x30f96f),this;}['prependAny'](_0x4b9fe0){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['unshift'](_0x4b9fe0),this;}['offAny'](_0x1e5601){if(!this['_anyListeners'])return this;if(_0x1e5601){const _0x5f0a30=this['_anyListeners'];for(let _0x44fb4a=0x0;_0x44fb4a<_0x5f0a30['length'];_0x44fb4a++)if(_0x1e5601===_0x5f0a30[_0x44fb4a])return _0x5f0a30['splice'](_0x44fb4a,0x1),this;}else this['_anyListeners']=[];return this;}['listenersAny'](){return this['_anyListeners']||[];}['onAnyOutgoing'](_0x51ec5c){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['push'](_0x51ec5c),this;}['prependAnyOutgoing'](_0x5c30ff){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['unshift'](_0x5c30ff),this;}['offAnyOutgoing'](_0x65041a){if(!this['_anyOutgoingListeners'])return this;if(_0x65041a){const _0xc3e9f9=this['_anyOutgoingListeners'];for(let _0x214892=0x0;_0x214892<_0xc3e9f9['length'];_0x214892++)if(_0x65041a===_0xc3e9f9[_0x214892])return _0xc3e9f9['splice'](_0x214892,0x1),this;}else this['_anyOutgoingListeners']=[];return this;}['listenersAnyOutgoing'](){return this['_anyOutgoingListeners']||[];}['notifyOutgoingListeners'](_0x56b2dc){if(this['_anyOutgoingListeners']&&this['_anyOutgoingListeners']['length']){const _0x46eefd=this['_anyOutgoingListeners']['slice']();for(const _0x5833c7 of _0x46eefd)_0x5833c7['apply'](this,_0x56b2dc['data']);}}}function Backoff(_0x566bed){_0x566bed=_0x566bed||{},this['ms']=_0x566bed['min']||0x64,this['max']=_0x566bed['max']||0x2710,this['factor']=_0x566bed['factor']||0x2,this['jitter']=_0x566bed['jitter']>0x0&&_0x566bed['jitter']<=0x1?_0x566bed['jitter']:0x0,this['attempts']=0x0;}Backoff['prototype']['duration']=function(){var _0x22527d=this['ms']*Math['pow'](this['factor'],this['attempts']++);if(this['jitter']){var _0x5442d0=Math['random'](),_0x15cb63=Math['floor'](_0x5442d0*this['jitter']*_0x22527d);_0x22527d=0x1&Math['floor'](0xa*_0x5442d0)?_0x22527d+_0x15cb63:_0x22527d-_0x15cb63;}return 0x0|Math['min'](_0x22527d,this['max']);},Backoff['prototype']['reset']=function(){this['attempts']=0x0;},Backoff['prototype']['setMin']=function(_0x1c3160){this['ms']=_0x1c3160;},Backoff['prototype']['setMax']=function(_0x43476c){this['max']=_0x43476c;},Backoff['prototype']['setJitter']=function(_0x418561){this['jitter']=_0x418561;};class Manager extends Emitter{constructor(_0x15ec7d,_0x6a5f72){var _0x1a9911;super(),this['nsps']={},this['subs']=[],_0x15ec7d&&'object'==typeof _0x15ec7d&&(_0x6a5f72=_0x15ec7d,_0x15ec7d=void 0x0),(_0x6a5f72=_0x6a5f72||{})['path']=_0x6a5f72['path']||'/socket.io',this['opts']=_0x6a5f72,installTimerFunctions(this,_0x6a5f72),this['reconnection'](!0x1!==_0x6a5f72['reconnection']),this['reconnectionAttempts'](_0x6a5f72['reconnectionAttempts']||0x1/0x0),this['reconnectionDelay'](_0x6a5f72['reconnectionDelay']||0x3e8),this['reconnectionDelayMax'](_0x6a5f72['reconnectionDelayMax']||0x1388),this['randomizationFactor'](null!==(_0x1a9911=_0x6a5f72['randomizationFactor'])&&void 0x0!==_0x1a9911?_0x1a9911:0.5),this['backoff']=new Backoff({'min':this['reconnectionDelay'](),'max':this['reconnectionDelayMax'](),'jitter':this['randomizationFactor']()}),this['timeout'](null==_0x6a5f72['timeout']?0x4e20:_0x6a5f72['timeout']),this['_readyState']='closed',this['uri']=_0x15ec7d;const _0x6aaab3=_0x6a5f72['parser']||parser$4;this['encoder']=new _0x6aaab3['Encoder'](),this['decoder']=new _0x6aaab3['Decoder'](),this['_autoConnect']=!0x1!==_0x6a5f72['autoConnect'],this['_autoConnect']&&this['open']();}['reconnection'](_0x301d40){return arguments['length']?(this['_reconnection']=!!_0x301d40,this):this['_reconnection'];}['reconnectionAttempts'](_0x4e2e43){return void 0x0===_0x4e2e43?this['_reconnectionAttempts']:(this['_reconnectionAttempts']=_0x4e2e43,this);}['reconnectionDelay'](_0x15eab9){var _0x53755c;return void 0x0===_0x15eab9?this['_reconnectionDelay']:(this['_reconnectionDelay']=_0x15eab9,null===(_0x53755c=this['backoff'])||void 0x0===_0x53755c||_0x53755c['setMin'](_0x15eab9),this);}['randomizationFactor'](_0x1b41fb){var _0x467b81;return void 0x0===_0x1b41fb?this['_randomizationFactor']:(this['_randomizationFactor']=_0x1b41fb,null===(_0x467b81=this['backoff'])||void 0x0===_0x467b81||_0x467b81['setJitter'](_0x1b41fb),this);}['reconnectionDelayMax'](_0x55a3a8){var _0x3d54a8;return void 0x0===_0x55a3a8?this['_reconnectionDelayMax']:(this['_reconnectionDelayMax']=_0x55a3a8,null===(_0x3d54a8=this['backoff'])||void 0x0===_0x3d54a8||_0x3d54a8['setMax'](_0x55a3a8),this);}['timeout'](_0x46b690){return arguments['length']?(this['_timeout']=_0x46b690,this):this['_timeout'];}['maybeReconnectOnOpen'](){!this['_reconnecting']&&this['_reconnection']&&0x0===this['backoff']['attempts']&&this['reconnect']();}['open'](_0x357338){if(~this['_readyState']['indexOf']('open'))return this;this['engine']=new Socket$1(this['uri'],this['opts']);const _0x52b530=this['engine'],_0x1449e3=this;this['_readyState']='opening',this['skipReconnect']=!0x1;const _0x57b568=on(_0x52b530,'open',function(){_0x1449e3['onopen'](),_0x357338&&_0x357338();}),_0x87fdc9=_0x5a8ed1=>{this['cleanup'](),this['_readyState']='closed',this['emitReserved']('error',_0x5a8ed1),_0x357338?_0x357338(_0x5a8ed1):this['maybeReconnectOnOpen']();},_0x5d0f73=on(_0x52b530,'error',_0x87fdc9);if(!0x1!==this['_timeout']){const _0x5df8bc=this['_timeout'],_0x3ad290=this['setTimeoutFn'](()=>{_0x57b568(),_0x87fdc9(new Error('timeout')),_0x52b530['close']();},_0x5df8bc);this['opts']['autoUnref']&&_0x3ad290['unref'](),this['subs']['push'](()=>{this['clearTimeoutFn'](_0x3ad290);});}return this['subs']['push'](_0x57b568),this['subs']['push'](_0x5d0f73),this;}['connect'](_0x25a633){return this['open'](_0x25a633);}['onopen'](){this['cleanup'](),this['_readyState']='open',this['emitReserved']('open');const _0x14d64f=this['engine'];this['subs']['push'](on(_0x14d64f,'ping',this['onping']['bind'](this)),on(_0x14d64f,'data',this['ondata']['bind'](this)),on(_0x14d64f,'error',this['onerror']['bind'](this)),on(_0x14d64f,'close',this['onclose']['bind'](this)),on(this['decoder'],'decoded',this['ondecoded']['bind'](this)));}['onping'](){this['emitReserved']('ping');}['ondata'](_0x2a3b8e){try{this['decoder']['add'](_0x2a3b8e);}catch(_0x179876){this['onclose']('parse\x20error',_0x179876);}}['ondecoded'](_0x3df897){nextTick(()=>{this['emitReserved']('packet',_0x3df897);},this['setTimeoutFn']);}['onerror'](_0x494c5e){this['emitReserved']('error',_0x494c5e);}['socket'](_0x3a7663,_0x459e61){let _0x3c5af8=this['nsps'][_0x3a7663];return _0x3c5af8?this['_autoConnect']&&!_0x3c5af8['active']&&_0x3c5af8['connect']():(_0x3c5af8=new Socket(this,_0x3a7663,_0x459e61),this['nsps'][_0x3a7663]=_0x3c5af8),_0x3c5af8;}['_destroy'](_0x6117fc){const _0x497e5a=Object['keys'](this['nsps']);for(const _0x5a62a3 of _0x497e5a){if(this['nsps'][_0x5a62a3]['active'])return;}this['_close']();}['_packet'](_0x571556){const _0x458ed2=this['encoder']['encode'](_0x571556);for(let _0x52572b=0x0;_0x52572b<_0x458ed2['length'];_0x52572b++)this['engine']['write'](_0x458ed2[_0x52572b],_0x571556['options']);}['cleanup'](){this['subs']['forEach'](_0x4b9c49=>_0x4b9c49()),this['subs']['length']=0x0,this['decoder']['destroy']();}['_close'](){this['skipReconnect']=!0x0,this['_reconnecting']=!0x1,this['onclose']('forced\x20close'),this['engine']&&this['engine']['close']();}['disconnect'](){return this['_close']();}['onclose'](_0x1be8fa,_0x4450be){this['cleanup'](),this['backoff']['reset'](),this['_readyState']='closed',this['emitReserved']('close',_0x1be8fa,_0x4450be),this['_reconnection']&&!this['skipReconnect']&&this['reconnect']();}['reconnect'](){if(this['_reconnecting']||this['skipReconnect'])return this;const _0x2332cd=this;if(this['backoff']['attempts']>=this['_reconnectionAttempts'])this['backoff']['reset'](),this['emitReserved']('reconnect_failed'),this['_reconnecting']=!0x1;else{const _0x705783=this['backoff']['duration']();this['_reconnecting']=!0x0;const _0x24c418=this['setTimeoutFn'](()=>{_0x2332cd['skipReconnect']||(this['emitReserved']('reconnect_attempt',_0x2332cd['backoff']['attempts']),_0x2332cd['skipReconnect']||_0x2332cd['open'](_0x46842c=>{_0x46842c?(_0x2332cd['_reconnecting']=!0x1,_0x2332cd['reconnect'](),this['emitReserved']('reconnect_error',_0x46842c)):_0x2332cd['onreconnect']();}));},_0x705783);this['opts']['autoUnref']&&_0x24c418['unref'](),this['subs']['push'](()=>{this['clearTimeoutFn'](_0x24c418);});}}['onreconnect'](){const _0xa7a1a3=this['backoff']['attempts'];this['_reconnecting']=!0x1,this['backoff']['reset'](),this['emitReserved']('reconnect',_0xa7a1a3);}}const cache$1={};function lookup(_0xa24f4b,_0xb8ea9a){'object'==typeof _0xa24f4b&&(_0xb8ea9a=_0xa24f4b,_0xa24f4b=void 0x0);const _0x1f423d=url(_0xa24f4b,(_0xb8ea9a=_0xb8ea9a||{})['path']||'/socket.io'),_0x3d8fcd=_0x1f423d['source'],_0x36ca29=_0x1f423d['id'],_0x2b853b=_0x1f423d['path'],_0x13c759=cache$1[_0x36ca29]&&_0x2b853b in cache$1[_0x36ca29]['nsps'];let _0x391fd2;return _0xb8ea9a['forceNew']||_0xb8ea9a['force\x20new\x20connection']||!0x1===_0xb8ea9a['multiplex']||_0x13c759?_0x391fd2=new Manager(_0x3d8fcd,_0xb8ea9a):(cache$1[_0x36ca29]||(cache$1[_0x36ca29]=new Manager(_0x3d8fcd,_0xb8ea9a)),_0x391fd2=cache$1[_0x36ca29]),_0x1f423d['query']&&!_0xb8ea9a['query']&&(_0xb8ea9a['query']=_0x1f423d['queryKey']),_0x391fd2['socket'](_0x1f423d['path'],_0xb8ea9a);}var requiresPort,hasRequiredRequiresPort;function requireRequiresPort(){return hasRequiredRequiresPort||(hasRequiredRequiresPort=0x1,requiresPort=function(_0x5df3a6,_0x4b96f5){if(_0x4b96f5=_0x4b96f5['split'](':')[0x0],!(_0x5df3a6=+_0x5df3a6))return!0x1;switch(_0x4b96f5){case'http':case'ws':return 0x50!==_0x5df3a6;case'https':case'wss':return 0x1bb!==_0x5df3a6;case'ftp':return 0x15!==_0x5df3a6;case'gopher':return 0x46!==_0x5df3a6;case'file':return!0x1;}return 0x0!==_0x5df3a6;}),requiresPort;}Object['assign'](lookup,{'Manager':Manager,'Socket':Socket,'io':lookup,'connect':lookup});var querystringify={},hasRequiredQuerystringify,urlParse,hasRequiredUrlParse;function requireQuerystringify(){if(hasRequiredQuerystringify)return querystringify;hasRequiredQuerystringify=0x1;var _0xf53614=Object['prototype']['hasOwnProperty'];function _0x230a0c(_0x95289f){try{return decodeURIComponent(_0x95289f['replace'](/\+/g,'\x20'));}catch(_0x3e2ada){return null;}}function _0x5d7743(_0x61ba20){try{return encodeURIComponent(_0x61ba20);}catch(_0x5b7e84){return null;}}return querystringify['stringify']=function(_0x413926,_0x1fa7ae){_0x1fa7ae=_0x1fa7ae||'';var _0x596521,_0x35e498,_0x4af55d=[];for(_0x35e498 in('string'!=typeof _0x1fa7ae&&(_0x1fa7ae='?'),_0x413926))if(_0xf53614['call'](_0x413926,_0x35e498)){if((_0x596521=_0x413926[_0x35e498])||null!=_0x596521&&!isNaN(_0x596521)||(_0x596521=''),_0x35e498=_0x5d7743(_0x35e498),_0x596521=_0x5d7743(_0x596521),null===_0x35e498||null===_0x596521)continue;_0x4af55d['push'](_0x35e498+'='+_0x596521);}return _0x4af55d['length']?_0x1fa7ae+_0x4af55d['join']('&'):'';},querystringify['parse']=function(_0x49cd91){for(var _0x4dc0b1,_0x9fe9f=/([^=?#&]+)=?([^&]*)/g,_0xbb1bc4={};_0x4dc0b1=_0x9fe9f['exec'](_0x49cd91);){var _0x2bc716=_0x230a0c(_0x4dc0b1[0x1]),_0x58085e=_0x230a0c(_0x4dc0b1[0x2]);null===_0x2bc716||null===_0x58085e||_0x2bc716 in _0xbb1bc4||(_0xbb1bc4[_0x2bc716]=_0x58085e);}return _0xbb1bc4;},querystringify;}function requireUrlParse(){if(hasRequiredUrlParse)return urlParse;hasRequiredUrlParse=0x1;var _0x469c28=requireRequiresPort(),_0x5737f5=requireQuerystringify(),_0x5c4f18=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,_0x32c1b5=/[\n\r\t]/g,_0x486233=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,_0x28970c=/:\d+$/,_0x34c5a3=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,_0x3ec1d6=/^[a-zA-Z]:/;function _0x17ad49(_0x10b5b7){return(_0x10b5b7||'')['toString']()['replace'](_0x5c4f18,'');}var _0xf7eb16=[['#','hash'],['?','query'],function(_0xb30caa,_0x36f8ae){return _0x1e0f7c(_0x36f8ae['protocol'])?_0xb30caa['replace'](/\\/g,'/'):_0xb30caa;},['/','pathname'],['@','auth',0x1],[NaN,'host',void 0x0,0x1,0x1],[/:(\d*)$/,'port',void 0x0,0x1],[NaN,'hostname',void 0x0,0x1,0x1]],_0x555ceb={'hash':0x1,'query':0x1};function _0x1f4de3(_0x16d647){var _0x3b7099,_0x3d7335=('undefined'!=typeof window?window:void 0x0!==commonjsGlobal?commonjsGlobal:'undefined'!=typeof self?self:{})['location']||{},_0x1356ad={},_0x28a87e=typeof(_0x16d647=_0x16d647||_0x3d7335);if('blob:'===_0x16d647['protocol'])_0x1356ad=new _0x32a31b(unescape(_0x16d647['pathname']),{});else{if('string'===_0x28a87e){for(_0x3b7099 in(_0x1356ad=new _0x32a31b(_0x16d647,{}),_0x555ceb))delete _0x1356ad[_0x3b7099];}else{if('object'===_0x28a87e){for(_0x3b7099 in _0x16d647)_0x3b7099 in _0x555ceb||(_0x1356ad[_0x3b7099]=_0x16d647[_0x3b7099]);void 0x0===_0x1356ad['slashes']&&(_0x1356ad['slashes']=_0x486233['test'](_0x16d647['href']));}}}return _0x1356ad;}function _0x1e0f7c(_0xd0203c){return'file:'===_0xd0203c||'ftp:'===_0xd0203c||'http:'===_0xd0203c||'https:'===_0xd0203c||'ws:'===_0xd0203c||'wss:'===_0xd0203c;}function _0x4f81d1(_0x1a5eba,_0x1ce2c8){_0x1a5eba=(_0x1a5eba=_0x17ad49(_0x1a5eba))['replace'](_0x32c1b5,''),_0x1ce2c8=_0x1ce2c8||{};var _0x386a44,_0x31431f=_0x34c5a3['exec'](_0x1a5eba),_0x2d103a=_0x31431f[0x1]?_0x31431f[0x1]['toLowerCase']():'',_0x425dfd=!!_0x31431f[0x2],_0x269f2b=!!_0x31431f[0x3],_0x2182f4=0x0;return _0x425dfd?_0x269f2b?(_0x386a44=_0x31431f[0x2]+_0x31431f[0x3]+_0x31431f[0x4],_0x2182f4=_0x31431f[0x2]['length']+_0x31431f[0x3]['length']):(_0x386a44=_0x31431f[0x2]+_0x31431f[0x4],_0x2182f4=_0x31431f[0x2]['length']):_0x269f2b?(_0x386a44=_0x31431f[0x3]+_0x31431f[0x4],_0x2182f4=_0x31431f[0x3]['length']):_0x386a44=_0x31431f[0x4],'file:'===_0x2d103a?_0x2182f4>=0x2&&(_0x386a44=_0x386a44['slice'](0x2)):_0x1e0f7c(_0x2d103a)?_0x386a44=_0x31431f[0x4]:_0x2d103a?_0x425dfd&&(_0x386a44=_0x386a44['slice'](0x2)):_0x2182f4>=0x2&&_0x1e0f7c(_0x1ce2c8['protocol'])&&(_0x386a44=_0x31431f[0x4]),{'protocol':_0x2d103a,'slashes':_0x425dfd||_0x1e0f7c(_0x2d103a),'slashesCount':_0x2182f4,'rest':_0x386a44};}function _0x32a31b(_0x2e709f,_0x11b1a4,_0x44ef60){if(_0x2e709f=(_0x2e709f=_0x17ad49(_0x2e709f))['replace'](_0x32c1b5,''),!(this instanceof _0x32a31b))return new _0x32a31b(_0x2e709f,_0x11b1a4,_0x44ef60);var _0x2ecae9,_0x2d4ccc,_0x934fd2,_0x47260b,_0x39af4e,_0x18299d,_0x5b2ca4=_0xf7eb16['slice'](),_0xdbffd5=typeof _0x11b1a4,_0x57d83c=this,_0x5d980c=0x0;for('object'!==_0xdbffd5&&'string'!==_0xdbffd5&&(_0x44ef60=_0x11b1a4,_0x11b1a4=null),_0x44ef60&&'function'!=typeof _0x44ef60&&(_0x44ef60=_0x5737f5['parse']),_0x2ecae9=!(_0x2d4ccc=_0x4f81d1(_0x2e709f||'',_0x11b1a4=_0x1f4de3(_0x11b1a4)))['protocol']&&!_0x2d4ccc['slashes'],_0x57d83c['slashes']=_0x2d4ccc['slashes']||_0x2ecae9&&_0x11b1a4['slashes'],_0x57d83c['protocol']=_0x2d4ccc['protocol']||_0x11b1a4['protocol']||'',_0x2e709f=_0x2d4ccc['rest'],('file:'===_0x2d4ccc['protocol']&&(0x2!==_0x2d4ccc['slashesCount']||_0x3ec1d6['test'](_0x2e709f))||!_0x2d4ccc['slashes']&&(_0x2d4ccc['protocol']||_0x2d4ccc['slashesCount']<0x2||!_0x1e0f7c(_0x57d83c['protocol'])))&&(_0x5b2ca4[0x3]=[/(.*)/,'pathname']);_0x5d980c<_0x5b2ca4['length'];_0x5d980c++)'function'!=typeof(_0x47260b=_0x5b2ca4[_0x5d980c])?(_0x934fd2=_0x47260b[0x0],_0x18299d=_0x47260b[0x1],_0x934fd2!=_0x934fd2?_0x57d83c[_0x18299d]=_0x2e709f:'string'==typeof _0x934fd2?~(_0x39af4e='@'===_0x934fd2?_0x2e709f['lastIndexOf'](_0x934fd2):_0x2e709f['indexOf'](_0x934fd2))&&('number'==typeof _0x47260b[0x2]?(_0x57d83c[_0x18299d]=_0x2e709f['slice'](0x0,_0x39af4e),_0x2e709f=_0x2e709f['slice'](_0x39af4e+_0x47260b[0x2])):(_0x57d83c[_0x18299d]=_0x2e709f['slice'](_0x39af4e),_0x2e709f=_0x2e709f['slice'](0x0,_0x39af4e))):(_0x39af4e=_0x934fd2['exec'](_0x2e709f))&&(_0x57d83c[_0x18299d]=_0x39af4e[0x1],_0x2e709f=_0x2e709f['slice'](0x0,_0x39af4e['index'])),_0x57d83c[_0x18299d]=_0x57d83c[_0x18299d]||_0x2ecae9&&_0x47260b[0x3]&&_0x11b1a4[_0x18299d]||'',_0x47260b[0x4]&&(_0x57d83c[_0x18299d]=_0x57d83c[_0x18299d]['toLowerCase']())):_0x2e709f=_0x47260b(_0x2e709f,_0x57d83c);_0x44ef60&&(_0x57d83c['query']=_0x44ef60(_0x57d83c['query'])),_0x2ecae9&&_0x11b1a4['slashes']&&'/'!==_0x57d83c['pathname']['charAt'](0x0)&&(''!==_0x57d83c['pathname']||''!==_0x11b1a4['pathname'])&&(_0x57d83c['pathname']=function(_0x3de1d5,_0x284431){if(''===_0x3de1d5)return _0x284431;for(var _0x3a800e=(_0x284431||'/')['split']('/')['slice'](0x0,-0x1)['concat'](_0x3de1d5['split']('/')),_0x164621=_0x3a800e['length'],_0x1f11ee=_0x3a800e[_0x164621-0x1],_0x3770a7=!0x1,_0x92768b=0x0;_0x164621--;)'.'===_0x3a800e[_0x164621]?_0x3a800e['splice'](_0x164621,0x1):'..'===_0x3a800e[_0x164621]?(_0x3a800e['splice'](_0x164621,0x1),_0x92768b++):_0x92768b&&(0x0===_0x164621&&(_0x3770a7=!0x0),_0x3a800e['splice'](_0x164621,0x1),_0x92768b--);return _0x3770a7&&_0x3a800e['unshift'](''),'.'!==_0x1f11ee&&'..'!==_0x1f11ee||_0x3a800e['push'](''),_0x3a800e['join']('/');}(_0x57d83c['pathname'],_0x11b1a4['pathname'])),'/'!==_0x57d83c['pathname']['charAt'](0x0)&&_0x1e0f7c(_0x57d83c['protocol'])&&(_0x57d83c['pathname']='/'+_0x57d83c['pathname']),_0x469c28(_0x57d83c['port'],_0x57d83c['protocol'])||(_0x57d83c['host']=_0x57d83c['hostname'],_0x57d83c['port']=''),_0x57d83c['username']=_0x57d83c['password']='',_0x57d83c['auth']&&(~(_0x39af4e=_0x57d83c['auth']['indexOf'](':'))?(_0x57d83c['username']=_0x57d83c['auth']['slice'](0x0,_0x39af4e),_0x57d83c['username']=encodeURIComponent(decodeURIComponent(_0x57d83c['username'])),_0x57d83c['password']=_0x57d83c['auth']['slice'](_0x39af4e+0x1),_0x57d83c['password']=encodeURIComponent(decodeURIComponent(_0x57d83c['password']))):_0x57d83c['username']=encodeURIComponent(decodeURIComponent(_0x57d83c['auth'])),_0x57d83c['auth']=_0x57d83c['password']?_0x57d83c['username']+':'+_0x57d83c['password']:_0x57d83c['username']),_0x57d83c['origin']='file:'!==_0x57d83c['protocol']&&_0x1e0f7c(_0x57d83c['protocol'])&&_0x57d83c['host']?_0x57d83c['protocol']+'//'+_0x57d83c['host']:'null',_0x57d83c['href']=_0x57d83c['toString']();}return _0x32a31b['prototype']={'set':function(_0x969d97,_0xc954bb,_0x1bc521){var _0x23c104=this;switch(_0x969d97){case'query':'string'==typeof _0xc954bb&&_0xc954bb['length']&&(_0xc954bb=(_0x1bc521||_0x5737f5['parse'])(_0xc954bb)),_0x23c104[_0x969d97]=_0xc954bb;break;case'port':_0x23c104[_0x969d97]=_0xc954bb,_0x469c28(_0xc954bb,_0x23c104['protocol'])?_0xc954bb&&(_0x23c104['host']=_0x23c104['hostname']+':'+_0xc954bb):(_0x23c104['host']=_0x23c104['hostname'],_0x23c104[_0x969d97]='');break;case'hostname':_0x23c104[_0x969d97]=_0xc954bb,_0x23c104['port']&&(_0xc954bb+=':'+_0x23c104['port']),_0x23c104['host']=_0xc954bb;break;case'host':_0x23c104[_0x969d97]=_0xc954bb,_0x28970c['test'](_0xc954bb)?(_0xc954bb=_0xc954bb['split'](':'),_0x23c104['port']=_0xc954bb['pop'](),_0x23c104['hostname']=_0xc954bb['join'](':')):(_0x23c104['hostname']=_0xc954bb,_0x23c104['port']='');break;case'protocol':_0x23c104['protocol']=_0xc954bb['toLowerCase'](),_0x23c104['slashes']=!_0x1bc521;break;case'pathname':case'hash':if(_0xc954bb){var _0x44617f='pathname'===_0x969d97?'/':'#';_0x23c104[_0x969d97]=_0xc954bb['charAt'](0x0)!==_0x44617f?_0x44617f+_0xc954bb:_0xc954bb;}else _0x23c104[_0x969d97]=_0xc954bb;break;case'username':case'password':_0x23c104[_0x969d97]=encodeURIComponent(_0xc954bb);break;case'auth':var _0x56ab60=_0xc954bb['indexOf'](':');~_0x56ab60?(_0x23c104['username']=_0xc954bb['slice'](0x0,_0x56ab60),_0x23c104['username']=encodeURIComponent(decodeURIComponent(_0x23c104['username'])),_0x23c104['password']=_0xc954bb['slice'](_0x56ab60+0x1),_0x23c104['password']=encodeURIComponent(decodeURIComponent(_0x23c104['password']))):_0x23c104['username']=encodeURIComponent(decodeURIComponent(_0xc954bb));}for(var _0x4552f7=0x0;_0x4552f7<_0xf7eb16['length'];_0x4552f7++){var _0x5060b3=_0xf7eb16[_0x4552f7];_0x5060b3[0x4]&&(_0x23c104[_0x5060b3[0x1]]=_0x23c104[_0x5060b3[0x1]]['toLowerCase']());}return _0x23c104['auth']=_0x23c104['password']?_0x23c104['username']+':'+_0x23c104['password']:_0x23c104['username'],_0x23c104['origin']='file:'!==_0x23c104['protocol']&&_0x1e0f7c(_0x23c104['protocol'])&&_0x23c104['host']?_0x23c104['protocol']+'//'+_0x23c104['host']:'null',_0x23c104['href']=_0x23c104['toString'](),_0x23c104;},'toString':function(_0x284e02){_0x284e02&&'function'==typeof _0x284e02||(_0x284e02=_0x5737f5['stringify']);var _0x5950ea,_0x1229fc=this,_0x3c6a6d=_0x1229fc['host'],_0x28c9c9=_0x1229fc['protocol'];_0x28c9c9&&':'!==_0x28c9c9['charAt'](_0x28c9c9['length']-0x1)&&(_0x28c9c9+=':');var _0x2037f4=_0x28c9c9+(_0x1229fc['protocol']&&_0x1229fc['slashes']||_0x1e0f7c(_0x1229fc['protocol'])?'//':'');return _0x1229fc['username']?(_0x2037f4+=_0x1229fc['username'],_0x1229fc['password']&&(_0x2037f4+=':'+_0x1229fc['password']),_0x2037f4+='@'):_0x1229fc['password']?(_0x2037f4+=':'+_0x1229fc['password'],_0x2037f4+='@'):'file:'!==_0x1229fc['protocol']&&_0x1e0f7c(_0x1229fc['protocol'])&&!_0x3c6a6d&&'/'!==_0x1229fc['pathname']&&(_0x2037f4+='@'),(':'===_0x3c6a6d[_0x3c6a6d['length']-0x1]||_0x28970c['test'](_0x1229fc['hostname'])&&!_0x1229fc['port'])&&(_0x3c6a6d+=':'),_0x2037f4+=_0x3c6a6d+_0x1229fc['pathname'],(_0x5950ea='object'==typeof _0x1229fc['query']?_0x284e02(_0x1229fc['query']):_0x1229fc['query'])&&(_0x2037f4+='?'!==_0x5950ea['charAt'](0x0)?'?'+_0x5950ea:_0x5950ea),_0x1229fc['hash']&&(_0x2037f4+=_0x1229fc['hash']),_0x2037f4;}},_0x32a31b['extractProtocol']=_0x4f81d1,_0x32a31b['location']=_0x1f4de3,_0x32a31b['trimLeft']=_0x17ad49,_0x32a31b['qs']=_0x5737f5,urlParse=_0x32a31b;}var urlParseExports=requireUrlParse();class Descriptor{static ['DESCRIPTOR_NAME'];static ['DESCRIPTOR'];constructor(..._0x279b73){}}class Message extends Descriptor{static ['TYPE']='1000';static ['READABLE_TYPE_NAME'];constructor(..._0x4a19f0){super();}static['fromJSON'](_0x169cc8){throw new TypeError('Must\x20be\x20implemented\x20in\x20a\x20child\x20class!');}}class GetUserMessage extends Message{['id'];static ['TYPE']='21';static ['READABLE_TYPE_NAME']='getUser';static ['DESCRIPTOR_NAME']='GetUserMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1}}};constructor(_0xeb201b){super(),this['id']=_0xeb201b;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](_0x30fb1b){return new GetUserMessage(_0x30fb1b['id']);}}class GetUserResponse extends Message{['attributes'];static ['DESCRIPTOR_NAME']='GetUserResponse';static ['DESCRIPTOR']={'fields':{'attributes':{'rule':'repeated','type':'KeyValueDescriptor','id':0x1}}};constructor(_0x470555){super(),this['attributes']=_0x470555;}['toJSON'](){return{'attributes':Object['keys'](this['attributes'])['map'](_0x28b2af=>({'key':_0x28b2af,'value':JSON['stringify'](this['attributes'][_0x28b2af])}))};}static['fromJSON'](_0x4cea53){const _0x44c161=_0x4cea53['attributes']['reduce']((_0x250092,_0x5cac34)=>(_0x250092[_0x5cac34['key']]=_0x5cac34['value']?JSON['parse'](_0x5cac34['value']):null,_0x250092),{});return new GetUserResponse(_0x44c161);}}const messages$1=/* #__PURE__ -- @preserve */
((()=>{var _0x33fc5a=minimalExports['Reader'],_0x86a107=minimalExports['Writer'],_0x1fbc81=minimalExports['util'],_0x2a91e5=minimalExports['roots']['default']||(minimalExports['roots']['default']={});return _0x2a91e5['OperationMetadataDescriptor']=(function(){function _0x327118(_0x329022){if(_0x329022){for(var _0x1cb2c0=Object['keys'](_0x329022),_0x2edd6d=0x0;_0x2edd6d<_0x1cb2c0['length'];++_0x2edd6d)null!=_0x329022[_0x1cb2c0[_0x2edd6d]]&&(this[_0x1cb2c0[_0x2edd6d]]=_0x329022[_0x1cb2c0[_0x2edd6d]]);}}return _0x327118['prototype']['userId']='',_0x327118['prototype']['type']='',_0x327118['prototype']['createdAt']='',_0x327118['create']=function(_0x57a1f8){return new _0x327118(_0x57a1f8);},_0x327118['encode']=function(_0x376a46,_0x42fb7e){return _0x42fb7e||(_0x42fb7e=_0x86a107['create']()),null!=_0x376a46['userId']&&Object['hasOwnProperty']['call'](_0x376a46,'userId')&&_0x42fb7e['uint32'](0xa)['string'](_0x376a46['userId']),null!=_0x376a46['type']&&Object['hasOwnProperty']['call'](_0x376a46,'type')&&_0x42fb7e['uint32'](0x12)['string'](_0x376a46['type']),null!=_0x376a46['createdAt']&&Object['hasOwnProperty']['call'](_0x376a46,'createdAt')&&_0x42fb7e['uint32'](0x1a)['string'](_0x376a46['createdAt']),_0x42fb7e;},_0x327118['encodeDelimited']=function(_0x4c6cbc,_0x29a5b0){return this['encode'](_0x4c6cbc,_0x29a5b0)['ldelim']();},_0x327118['decode']=function(_0x18e913,_0x1461ee,_0x470ac3){_0x18e913 instanceof _0x33fc5a||(_0x18e913=_0x33fc5a['create'](_0x18e913));for(var _0x30cc30=void 0x0===_0x1461ee?_0x18e913['len']:_0x18e913['pos']+_0x1461ee,_0x30e2e7=new _0x2a91e5['OperationMetadataDescriptor']();_0x18e913['pos']<_0x30cc30;){var _0x927fac=_0x18e913['uint32']();if(_0x927fac===_0x470ac3)break;switch(_0x927fac>>>0x3){case 0x1:_0x30e2e7['userId']=_0x18e913['string']();break;case 0x2:_0x30e2e7['type']=_0x18e913['string']();break;case 0x3:_0x30e2e7['createdAt']=_0x18e913['string']();break;default:_0x18e913['skipType'](0x7&_0x927fac);}}return _0x30e2e7;},_0x327118['decodeDelimited']=function(_0x38a56e){return _0x38a56e instanceof _0x33fc5a||(_0x38a56e=new _0x33fc5a(_0x38a56e)),this['decode'](_0x38a56e,_0x38a56e['uint32']());},_0x327118['verify']=function(_0x1a98a1){return'object'!=typeof _0x1a98a1||null===_0x1a98a1?'object\x20expected':null!=_0x1a98a1['userId']&&_0x1a98a1['hasOwnProperty']('userId')&&!_0x1fbc81['isString'](_0x1a98a1['userId'])?'userId:\x20string\x20expected':null!=_0x1a98a1['type']&&_0x1a98a1['hasOwnProperty']('type')&&!_0x1fbc81['isString'](_0x1a98a1['type'])?'type:\x20string\x20expected':null!=_0x1a98a1['createdAt']&&_0x1a98a1['hasOwnProperty']('createdAt')&&!_0x1fbc81['isString'](_0x1a98a1['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x327118['fromObject']=function(_0x2144a8){if(_0x2144a8 instanceof _0x2a91e5['OperationMetadataDescriptor'])return _0x2144a8;var _0x549c76=new _0x2a91e5['OperationMetadataDescriptor']();return null!=_0x2144a8['userId']&&(_0x549c76['userId']=String(_0x2144a8['userId'])),null!=_0x2144a8['type']&&(_0x549c76['type']=String(_0x2144a8['type'])),null!=_0x2144a8['createdAt']&&(_0x549c76['createdAt']=String(_0x2144a8['createdAt'])),_0x549c76;},_0x327118['toObject']=function(_0x39e1b1,_0x86822f){_0x86822f||(_0x86822f={});var _0x3de312={};return _0x86822f['defaults']&&(_0x3de312['userId']='',_0x3de312['type']='',_0x3de312['createdAt']=''),null!=_0x39e1b1['userId']&&_0x39e1b1['hasOwnProperty']('userId')&&(_0x3de312['userId']=_0x39e1b1['userId']),null!=_0x39e1b1['type']&&_0x39e1b1['hasOwnProperty']('type')&&(_0x3de312['type']=_0x39e1b1['type']),null!=_0x39e1b1['createdAt']&&_0x39e1b1['hasOwnProperty']('createdAt')&&(_0x3de312['createdAt']=_0x39e1b1['createdAt']),_0x3de312;},_0x327118['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x327118['getTypeUrl']=function(_0x3bd78b){return void 0x0===_0x3bd78b&&(_0x3bd78b='type.googleapis.com'),_0x3bd78b+'/OperationMetadataDescriptor';},_0x327118;}()),_0x2a91e5['CollaborativeEditingConnectMessage']=(function(){function _0x3579c1(_0x4a87b6){if(this['buffers']=[],this['types']=[],_0x4a87b6){for(var _0x181209=Object['keys'](_0x4a87b6),_0x4ca3c4=0x0;_0x4ca3c4<_0x181209['length'];++_0x4ca3c4)null!=_0x4a87b6[_0x181209[_0x4ca3c4]]&&(this[_0x181209[_0x4ca3c4]]=_0x4a87b6[_0x181209[_0x4ca3c4]]);}}return _0x3579c1['prototype']['id']='',_0x3579c1['prototype']['bundleVersion']='',_0x3579c1['prototype']['buffers']=_0x1fbc81['emptyArray'],_0x3579c1['prototype']['types']=_0x1fbc81['emptyArray'],_0x3579c1['prototype']['lastOperationId']='',_0x3579c1['create']=function(_0x4c8078){return new _0x3579c1(_0x4c8078);},_0x3579c1['encode']=function(_0x44ed58,_0x1ee058){if(_0x1ee058||(_0x1ee058=_0x86a107['create']()),null!=_0x44ed58['id']&&Object['hasOwnProperty']['call'](_0x44ed58,'id')&&_0x1ee058['uint32'](0xa)['string'](_0x44ed58['id']),null!=_0x44ed58['bundleVersion']&&Object['hasOwnProperty']['call'](_0x44ed58,'bundleVersion')&&_0x1ee058['uint32'](0x12)['string'](_0x44ed58['bundleVersion']),null!=_0x44ed58['buffers']&&_0x44ed58['buffers']['length']){for(var _0x25af07=0x0;_0x25af07<_0x44ed58['buffers']['length'];++_0x25af07)_0x1ee058['uint32'](0x1a)['bytes'](_0x44ed58['buffers'][_0x25af07]);}if(null!=_0x44ed58['types']&&_0x44ed58['types']['length']){for(_0x1ee058['uint32'](0x22)['fork'](),_0x25af07=0x0;_0x25af07<_0x44ed58['types']['length'];++_0x25af07)_0x1ee058['uint32'](_0x44ed58['types'][_0x25af07]);_0x1ee058['ldelim']();}return null!=_0x44ed58['lastOperationId']&&Object['hasOwnProperty']['call'](_0x44ed58,'lastOperationId')&&_0x1ee058['uint32'](0x2a)['string'](_0x44ed58['lastOperationId']),_0x1ee058;},_0x3579c1['encodeDelimited']=function(_0x83aab3,_0x4d20e4){return this['encode'](_0x83aab3,_0x4d20e4)['ldelim']();},_0x3579c1['decode']=function(_0x313b07,_0xd382fc,_0x407c17){_0x313b07 instanceof _0x33fc5a||(_0x313b07=_0x33fc5a['create'](_0x313b07));for(var _0x2374bc=void 0x0===_0xd382fc?_0x313b07['len']:_0x313b07['pos']+_0xd382fc,_0x484671=new _0x2a91e5['CollaborativeEditingConnectMessage']();_0x313b07['pos']<_0x2374bc;){var _0x1f5aaf=_0x313b07['uint32']();if(_0x1f5aaf===_0x407c17)break;switch(_0x1f5aaf>>>0x3){case 0x1:_0x484671['id']=_0x313b07['string']();break;case 0x2:_0x484671['bundleVersion']=_0x313b07['string']();break;case 0x3:_0x484671['buffers']&&_0x484671['buffers']['length']||(_0x484671['buffers']=[]),_0x484671['buffers']['push'](_0x313b07['bytes']());break;case 0x4:if(_0x484671['types']&&_0x484671['types']['length']||(_0x484671['types']=[]),0x2==(0x7&_0x1f5aaf)){for(var _0x417bac=_0x313b07['uint32']()+_0x313b07['pos'];_0x313b07['pos']<_0x417bac;)_0x484671['types']['push'](_0x313b07['uint32']());}else _0x484671['types']['push'](_0x313b07['uint32']());break;case 0x5:_0x484671['lastOperationId']=_0x313b07['string']();break;default:_0x313b07['skipType'](0x7&_0x1f5aaf);}}return _0x484671;},_0x3579c1['decodeDelimited']=function(_0x2736f5){return _0x2736f5 instanceof _0x33fc5a||(_0x2736f5=new _0x33fc5a(_0x2736f5)),this['decode'](_0x2736f5,_0x2736f5['uint32']());},_0x3579c1['verify']=function(_0x417ea8){if('object'!=typeof _0x417ea8||null===_0x417ea8)return'object\x20expected';if(null!=_0x417ea8['id']&&_0x417ea8['hasOwnProperty']('id')&&!_0x1fbc81['isString'](_0x417ea8['id']))return'id:\x20string\x20expected';if(null!=_0x417ea8['bundleVersion']&&_0x417ea8['hasOwnProperty']('bundleVersion')&&!_0x1fbc81['isString'](_0x417ea8['bundleVersion']))return'bundleVersion:\x20string\x20expected';if(null!=_0x417ea8['buffers']&&_0x417ea8['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x417ea8['buffers']))return'buffers:\x20array\x20expected';for(var _0x5c8ff3=0x0;_0x5c8ff3<_0x417ea8['buffers']['length'];++_0x5c8ff3)if(!(_0x417ea8['buffers'][_0x5c8ff3]&&'number'==typeof _0x417ea8['buffers'][_0x5c8ff3]['length']||_0x1fbc81['isString'](_0x417ea8['buffers'][_0x5c8ff3])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x417ea8['types']&&_0x417ea8['hasOwnProperty']('types')){if(!Array['isArray'](_0x417ea8['types']))return'types:\x20array\x20expected';for(_0x5c8ff3=0x0;_0x5c8ff3<_0x417ea8['types']['length'];++_0x5c8ff3)if(!_0x1fbc81['isInteger'](_0x417ea8['types'][_0x5c8ff3]))return'types:\x20integer[]\x20expected';}return null!=_0x417ea8['lastOperationId']&&_0x417ea8['hasOwnProperty']('lastOperationId')&&!_0x1fbc81['isString'](_0x417ea8['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},_0x3579c1['fromObject']=function(_0x3a5553){if(_0x3a5553 instanceof _0x2a91e5['CollaborativeEditingConnectMessage'])return _0x3a5553;var _0x3c45b3=new _0x2a91e5['CollaborativeEditingConnectMessage']();if(null!=_0x3a5553['id']&&(_0x3c45b3['id']=String(_0x3a5553['id'])),null!=_0x3a5553['bundleVersion']&&(_0x3c45b3['bundleVersion']=String(_0x3a5553['bundleVersion'])),_0x3a5553['buffers']){if(!Array['isArray'](_0x3a5553['buffers']))throw TypeError('.CollaborativeEditingConnectMessage.buffers:\x20array\x20expected');_0x3c45b3['buffers']=[];for(var _0x15e354=0x0;_0x15e354<_0x3a5553['buffers']['length'];++_0x15e354)'string'==typeof _0x3a5553['buffers'][_0x15e354]?_0x1fbc81['base64']['decode'](_0x3a5553['buffers'][_0x15e354],_0x3c45b3['buffers'][_0x15e354]=_0x1fbc81['newBuffer'](_0x1fbc81['base64']['length'](_0x3a5553['buffers'][_0x15e354])),0x0):_0x3a5553['buffers'][_0x15e354]['length']>=0x0&&(_0x3c45b3['buffers'][_0x15e354]=_0x3a5553['buffers'][_0x15e354]);}if(_0x3a5553['types']){if(!Array['isArray'](_0x3a5553['types']))throw TypeError('.CollaborativeEditingConnectMessage.types:\x20array\x20expected');for(_0x3c45b3['types']=[],_0x15e354=0x0;_0x15e354<_0x3a5553['types']['length'];++_0x15e354)_0x3c45b3['types'][_0x15e354]=_0x3a5553['types'][_0x15e354]>>>0x0;}return null!=_0x3a5553['lastOperationId']&&(_0x3c45b3['lastOperationId']=String(_0x3a5553['lastOperationId'])),_0x3c45b3;},_0x3579c1['toObject']=function(_0x21acd5,_0xed2fc6){_0xed2fc6||(_0xed2fc6={});var _0x34f14b={};if((_0xed2fc6['arrays']||_0xed2fc6['defaults'])&&(_0x34f14b['buffers']=[],_0x34f14b['types']=[]),_0xed2fc6['defaults']&&(_0x34f14b['id']='',_0x34f14b['bundleVersion']='',_0x34f14b['lastOperationId']=''),null!=_0x21acd5['id']&&_0x21acd5['hasOwnProperty']('id')&&(_0x34f14b['id']=_0x21acd5['id']),null!=_0x21acd5['bundleVersion']&&_0x21acd5['hasOwnProperty']('bundleVersion')&&(_0x34f14b['bundleVersion']=_0x21acd5['bundleVersion']),_0x21acd5['buffers']&&_0x21acd5['buffers']['length']){_0x34f14b['buffers']=[];for(var _0x597178=0x0;_0x597178<_0x21acd5['buffers']['length'];++_0x597178)_0x34f14b['buffers'][_0x597178]=_0xed2fc6['bytes']===String?_0x1fbc81['base64']['encode'](_0x21acd5['buffers'][_0x597178],0x0,_0x21acd5['buffers'][_0x597178]['length']):_0xed2fc6['bytes']===Array?Array['prototype']['slice']['call'](_0x21acd5['buffers'][_0x597178]):_0x21acd5['buffers'][_0x597178];}if(_0x21acd5['types']&&_0x21acd5['types']['length']){for(_0x34f14b['types']=[],_0x597178=0x0;_0x597178<_0x21acd5['types']['length'];++_0x597178)_0x34f14b['types'][_0x597178]=_0x21acd5['types'][_0x597178];}return null!=_0x21acd5['lastOperationId']&&_0x21acd5['hasOwnProperty']('lastOperationId')&&(_0x34f14b['lastOperationId']=_0x21acd5['lastOperationId']),_0x34f14b;},_0x3579c1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3579c1['getTypeUrl']=function(_0x2fd24c){return void 0x0===_0x2fd24c&&(_0x2fd24c='type.googleapis.com'),_0x2fd24c+'/CollaborativeEditingConnectMessage';},_0x3579c1;}()),_0x2a91e5['CollaborativeEditingReconnectMessage']=(function(){function _0x10c9da(_0x9ae1ec){if(_0x9ae1ec){for(var _0x1a474c=Object['keys'](_0x9ae1ec),_0x26224d=0x0;_0x26224d<_0x1a474c['length'];++_0x26224d)null!=_0x9ae1ec[_0x1a474c[_0x26224d]]&&(this[_0x1a474c[_0x26224d]]=_0x9ae1ec[_0x1a474c[_0x26224d]]);}}return _0x10c9da['prototype']['id']='',_0x10c9da['prototype']['bundleVersion']='',_0x10c9da['prototype']['lastKnowVersion']=0x0,_0x10c9da['create']=function(_0x2bdaf5){return new _0x10c9da(_0x2bdaf5);},_0x10c9da['encode']=function(_0x404057,_0x347798){return _0x347798||(_0x347798=_0x86a107['create']()),null!=_0x404057['id']&&Object['hasOwnProperty']['call'](_0x404057,'id')&&_0x347798['uint32'](0xa)['string'](_0x404057['id']),null!=_0x404057['bundleVersion']&&Object['hasOwnProperty']['call'](_0x404057,'bundleVersion')&&_0x347798['uint32'](0x12)['string'](_0x404057['bundleVersion']),null!=_0x404057['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0x404057,'lastKnowVersion')&&_0x347798['uint32'](0x18)['uint32'](_0x404057['lastKnowVersion']),_0x347798;},_0x10c9da['encodeDelimited']=function(_0x29a9db,_0x54baf3){return this['encode'](_0x29a9db,_0x54baf3)['ldelim']();},_0x10c9da['decode']=function(_0x19e457,_0x55aded,_0x59d3f4){_0x19e457 instanceof _0x33fc5a||(_0x19e457=_0x33fc5a['create'](_0x19e457));for(var _0x407b48=void 0x0===_0x55aded?_0x19e457['len']:_0x19e457['pos']+_0x55aded,_0x1f4466=new _0x2a91e5['CollaborativeEditingReconnectMessage']();_0x19e457['pos']<_0x407b48;){var _0xb2bd54=_0x19e457['uint32']();if(_0xb2bd54===_0x59d3f4)break;switch(_0xb2bd54>>>0x3){case 0x1:_0x1f4466['id']=_0x19e457['string']();break;case 0x2:_0x1f4466['bundleVersion']=_0x19e457['string']();break;case 0x3:_0x1f4466['lastKnowVersion']=_0x19e457['uint32']();break;default:_0x19e457['skipType'](0x7&_0xb2bd54);}}return _0x1f4466;},_0x10c9da['decodeDelimited']=function(_0xff8212){return _0xff8212 instanceof _0x33fc5a||(_0xff8212=new _0x33fc5a(_0xff8212)),this['decode'](_0xff8212,_0xff8212['uint32']());},_0x10c9da['verify']=function(_0x1a1656){return'object'!=typeof _0x1a1656||null===_0x1a1656?'object\x20expected':null!=_0x1a1656['id']&&_0x1a1656['hasOwnProperty']('id')&&!_0x1fbc81['isString'](_0x1a1656['id'])?'id:\x20string\x20expected':null!=_0x1a1656['bundleVersion']&&_0x1a1656['hasOwnProperty']('bundleVersion')&&!_0x1fbc81['isString'](_0x1a1656['bundleVersion'])?'bundleVersion:\x20string\x20expected':null!=_0x1a1656['lastKnowVersion']&&_0x1a1656['hasOwnProperty']('lastKnowVersion')&&!_0x1fbc81['isInteger'](_0x1a1656['lastKnowVersion'])?'lastKnowVersion:\x20integer\x20expected':null;},_0x10c9da['fromObject']=function(_0x97a8a2){if(_0x97a8a2 instanceof _0x2a91e5['CollaborativeEditingReconnectMessage'])return _0x97a8a2;var _0x210891=new _0x2a91e5['CollaborativeEditingReconnectMessage']();return null!=_0x97a8a2['id']&&(_0x210891['id']=String(_0x97a8a2['id'])),null!=_0x97a8a2['bundleVersion']&&(_0x210891['bundleVersion']=String(_0x97a8a2['bundleVersion'])),null!=_0x97a8a2['lastKnowVersion']&&(_0x210891['lastKnowVersion']=_0x97a8a2['lastKnowVersion']>>>0x0),_0x210891;},_0x10c9da['toObject']=function(_0x5037d3,_0x51b0fe){_0x51b0fe||(_0x51b0fe={});var _0x58c2c7={};return _0x51b0fe['defaults']&&(_0x58c2c7['id']='',_0x58c2c7['bundleVersion']='',_0x58c2c7['lastKnowVersion']=0x0),null!=_0x5037d3['id']&&_0x5037d3['hasOwnProperty']('id')&&(_0x58c2c7['id']=_0x5037d3['id']),null!=_0x5037d3['bundleVersion']&&_0x5037d3['hasOwnProperty']('bundleVersion')&&(_0x58c2c7['bundleVersion']=_0x5037d3['bundleVersion']),null!=_0x5037d3['lastKnowVersion']&&_0x5037d3['hasOwnProperty']('lastKnowVersion')&&(_0x58c2c7['lastKnowVersion']=_0x5037d3['lastKnowVersion']),_0x58c2c7;},_0x10c9da['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x10c9da['getTypeUrl']=function(_0x1ec1d2){return void 0x0===_0x1ec1d2&&(_0x1ec1d2='type.googleapis.com'),_0x1ec1d2+'/CollaborativeEditingReconnectMessage';},_0x10c9da;}()),_0x2a91e5['CollaborativeEditingUpdateMessage']=(function(){function _0x2f70c9(_0x3416f8){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x3416f8){for(var _0x5953f3=Object['keys'](_0x3416f8),_0x9f5fe8=0x0;_0x9f5fe8<_0x5953f3['length'];++_0x9f5fe8)null!=_0x3416f8[_0x5953f3[_0x9f5fe8]]&&(this[_0x5953f3[_0x9f5fe8]]=_0x3416f8[_0x5953f3[_0x9f5fe8]]);}}return _0x2f70c9['prototype']['id']='',_0x2f70c9['prototype']['baseVersion']=0x0,_0x2f70c9['prototype']['buffers']=_0x1fbc81['emptyArray'],_0x2f70c9['prototype']['types']=_0x1fbc81['emptyArray'],_0x2f70c9['prototype']['metadata']=_0x1fbc81['emptyArray'],_0x2f70c9['prototype']['lastOperationId']='',_0x2f70c9['create']=function(_0x21e967){return new _0x2f70c9(_0x21e967);},_0x2f70c9['encode']=function(_0x2bca1f,_0x3c329d){if(_0x3c329d||(_0x3c329d=_0x86a107['create']()),null!=_0x2bca1f['id']&&Object['hasOwnProperty']['call'](_0x2bca1f,'id')&&_0x3c329d['uint32'](0xa)['string'](_0x2bca1f['id']),null!=_0x2bca1f['baseVersion']&&Object['hasOwnProperty']['call'](_0x2bca1f,'baseVersion')&&_0x3c329d['uint32'](0x10)['uint32'](_0x2bca1f['baseVersion']),null!=_0x2bca1f['buffers']&&_0x2bca1f['buffers']['length']){for(var _0x1faf41=0x0;_0x1faf41<_0x2bca1f['buffers']['length'];++_0x1faf41)_0x3c329d['uint32'](0x1a)['bytes'](_0x2bca1f['buffers'][_0x1faf41]);}if(null!=_0x2bca1f['types']&&_0x2bca1f['types']['length']){for(_0x3c329d['uint32'](0x22)['fork'](),_0x1faf41=0x0;_0x1faf41<_0x2bca1f['types']['length'];++_0x1faf41)_0x3c329d['uint32'](_0x2bca1f['types'][_0x1faf41]);_0x3c329d['ldelim']();}if(null!=_0x2bca1f['metadata']&&_0x2bca1f['metadata']['length']){for(_0x1faf41=0x0;_0x1faf41<_0x2bca1f['metadata']['length'];++_0x1faf41)_0x2a91e5['OperationMetadataDescriptor']['encode'](_0x2bca1f['metadata'][_0x1faf41],_0x3c329d['uint32'](0x32)['fork']())['ldelim']();}return null!=_0x2bca1f['lastOperationId']&&Object['hasOwnProperty']['call'](_0x2bca1f,'lastOperationId')&&_0x3c329d['uint32'](0x3a)['string'](_0x2bca1f['lastOperationId']),_0x3c329d;},_0x2f70c9['encodeDelimited']=function(_0x2867d5,_0x44ac27){return this['encode'](_0x2867d5,_0x44ac27)['ldelim']();},_0x2f70c9['decode']=function(_0x150cda,_0x4cd97b,_0x5d2dd5){_0x150cda instanceof _0x33fc5a||(_0x150cda=_0x33fc5a['create'](_0x150cda));for(var _0x5edc74=void 0x0===_0x4cd97b?_0x150cda['len']:_0x150cda['pos']+_0x4cd97b,_0x1b6d88=new _0x2a91e5['CollaborativeEditingUpdateMessage']();_0x150cda['pos']<_0x5edc74;){var _0x289420=_0x150cda['uint32']();if(_0x289420===_0x5d2dd5)break;switch(_0x289420>>>0x3){case 0x1:_0x1b6d88['id']=_0x150cda['string']();break;case 0x2:_0x1b6d88['baseVersion']=_0x150cda['uint32']();break;case 0x3:_0x1b6d88['buffers']&&_0x1b6d88['buffers']['length']||(_0x1b6d88['buffers']=[]),_0x1b6d88['buffers']['push'](_0x150cda['bytes']());break;case 0x4:if(_0x1b6d88['types']&&_0x1b6d88['types']['length']||(_0x1b6d88['types']=[]),0x2==(0x7&_0x289420)){for(var _0x137fd2=_0x150cda['uint32']()+_0x150cda['pos'];_0x150cda['pos']<_0x137fd2;)_0x1b6d88['types']['push'](_0x150cda['uint32']());}else _0x1b6d88['types']['push'](_0x150cda['uint32']());break;case 0x6:_0x1b6d88['metadata']&&_0x1b6d88['metadata']['length']||(_0x1b6d88['metadata']=[]),_0x1b6d88['metadata']['push'](_0x2a91e5['OperationMetadataDescriptor']['decode'](_0x150cda,_0x150cda['uint32']()));break;case 0x7:_0x1b6d88['lastOperationId']=_0x150cda['string']();break;default:_0x150cda['skipType'](0x7&_0x289420);}}return _0x1b6d88;},_0x2f70c9['decodeDelimited']=function(_0x557beb){return _0x557beb instanceof _0x33fc5a||(_0x557beb=new _0x33fc5a(_0x557beb)),this['decode'](_0x557beb,_0x557beb['uint32']());},_0x2f70c9['verify']=function(_0xbeb13c){if('object'!=typeof _0xbeb13c||null===_0xbeb13c)return'object\x20expected';if(null!=_0xbeb13c['id']&&_0xbeb13c['hasOwnProperty']('id')&&!_0x1fbc81['isString'](_0xbeb13c['id']))return'id:\x20string\x20expected';if(null!=_0xbeb13c['baseVersion']&&_0xbeb13c['hasOwnProperty']('baseVersion')&&!_0x1fbc81['isInteger'](_0xbeb13c['baseVersion']))return'baseVersion:\x20integer\x20expected';if(null!=_0xbeb13c['buffers']&&_0xbeb13c['hasOwnProperty']('buffers')){if(!Array['isArray'](_0xbeb13c['buffers']))return'buffers:\x20array\x20expected';for(var _0x3be2fc=0x0;_0x3be2fc<_0xbeb13c['buffers']['length'];++_0x3be2fc)if(!(_0xbeb13c['buffers'][_0x3be2fc]&&'number'==typeof _0xbeb13c['buffers'][_0x3be2fc]['length']||_0x1fbc81['isString'](_0xbeb13c['buffers'][_0x3be2fc])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0xbeb13c['types']&&_0xbeb13c['hasOwnProperty']('types')){if(!Array['isArray'](_0xbeb13c['types']))return'types:\x20array\x20expected';for(_0x3be2fc=0x0;_0x3be2fc<_0xbeb13c['types']['length'];++_0x3be2fc)if(!_0x1fbc81['isInteger'](_0xbeb13c['types'][_0x3be2fc]))return'types:\x20integer[]\x20expected';}if(null!=_0xbeb13c['metadata']&&_0xbeb13c['hasOwnProperty']('metadata')){if(!Array['isArray'](_0xbeb13c['metadata']))return'metadata:\x20array\x20expected';for(_0x3be2fc=0x0;_0x3be2fc<_0xbeb13c['metadata']['length'];++_0x3be2fc){var _0x223538=_0x2a91e5['OperationMetadataDescriptor']['verify'](_0xbeb13c['metadata'][_0x3be2fc]);if(_0x223538)return'metadata.'+_0x223538;}}return null!=_0xbeb13c['lastOperationId']&&_0xbeb13c['hasOwnProperty']('lastOperationId')&&!_0x1fbc81['isString'](_0xbeb13c['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},_0x2f70c9['fromObject']=function(_0x1d03e3){if(_0x1d03e3 instanceof _0x2a91e5['CollaborativeEditingUpdateMessage'])return _0x1d03e3;var _0x4b0c87=new _0x2a91e5['CollaborativeEditingUpdateMessage']();if(null!=_0x1d03e3['id']&&(_0x4b0c87['id']=String(_0x1d03e3['id'])),null!=_0x1d03e3['baseVersion']&&(_0x4b0c87['baseVersion']=_0x1d03e3['baseVersion']>>>0x0),_0x1d03e3['buffers']){if(!Array['isArray'](_0x1d03e3['buffers']))throw TypeError('.CollaborativeEditingUpdateMessage.buffers:\x20array\x20expected');_0x4b0c87['buffers']=[];for(var _0x7edb51=0x0;_0x7edb51<_0x1d03e3['buffers']['length'];++_0x7edb51)'string'==typeof _0x1d03e3['buffers'][_0x7edb51]?_0x1fbc81['base64']['decode'](_0x1d03e3['buffers'][_0x7edb51],_0x4b0c87['buffers'][_0x7edb51]=_0x1fbc81['newBuffer'](_0x1fbc81['base64']['length'](_0x1d03e3['buffers'][_0x7edb51])),0x0):_0x1d03e3['buffers'][_0x7edb51]['length']>=0x0&&(_0x4b0c87['buffers'][_0x7edb51]=_0x1d03e3['buffers'][_0x7edb51]);}if(_0x1d03e3['types']){if(!Array['isArray'](_0x1d03e3['types']))throw TypeError('.CollaborativeEditingUpdateMessage.types:\x20array\x20expected');for(_0x4b0c87['types']=[],_0x7edb51=0x0;_0x7edb51<_0x1d03e3['types']['length'];++_0x7edb51)_0x4b0c87['types'][_0x7edb51]=_0x1d03e3['types'][_0x7edb51]>>>0x0;}if(_0x1d03e3['metadata']){if(!Array['isArray'](_0x1d03e3['metadata']))throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20array\x20expected');for(_0x4b0c87['metadata']=[],_0x7edb51=0x0;_0x7edb51<_0x1d03e3['metadata']['length'];++_0x7edb51){if('object'!=typeof _0x1d03e3['metadata'][_0x7edb51])throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20object\x20expected');_0x4b0c87['metadata'][_0x7edb51]=_0x2a91e5['OperationMetadataDescriptor']['fromObject'](_0x1d03e3['metadata'][_0x7edb51]);}}return null!=_0x1d03e3['lastOperationId']&&(_0x4b0c87['lastOperationId']=String(_0x1d03e3['lastOperationId'])),_0x4b0c87;},_0x2f70c9['toObject']=function(_0x1b3d39,_0x5bd478){_0x5bd478||(_0x5bd478={});var _0x59077a={};if((_0x5bd478['arrays']||_0x5bd478['defaults'])&&(_0x59077a['buffers']=[],_0x59077a['types']=[],_0x59077a['metadata']=[]),_0x5bd478['defaults']&&(_0x59077a['id']='',_0x59077a['baseVersion']=0x0,_0x59077a['lastOperationId']=''),null!=_0x1b3d39['id']&&_0x1b3d39['hasOwnProperty']('id')&&(_0x59077a['id']=_0x1b3d39['id']),null!=_0x1b3d39['baseVersion']&&_0x1b3d39['hasOwnProperty']('baseVersion')&&(_0x59077a['baseVersion']=_0x1b3d39['baseVersion']),_0x1b3d39['buffers']&&_0x1b3d39['buffers']['length']){_0x59077a['buffers']=[];for(var _0x25eaf9=0x0;_0x25eaf9<_0x1b3d39['buffers']['length'];++_0x25eaf9)_0x59077a['buffers'][_0x25eaf9]=_0x5bd478['bytes']===String?_0x1fbc81['base64']['encode'](_0x1b3d39['buffers'][_0x25eaf9],0x0,_0x1b3d39['buffers'][_0x25eaf9]['length']):_0x5bd478['bytes']===Array?Array['prototype']['slice']['call'](_0x1b3d39['buffers'][_0x25eaf9]):_0x1b3d39['buffers'][_0x25eaf9];}if(_0x1b3d39['types']&&_0x1b3d39['types']['length']){for(_0x59077a['types']=[],_0x25eaf9=0x0;_0x25eaf9<_0x1b3d39['types']['length'];++_0x25eaf9)_0x59077a['types'][_0x25eaf9]=_0x1b3d39['types'][_0x25eaf9];}if(_0x1b3d39['metadata']&&_0x1b3d39['metadata']['length']){for(_0x59077a['metadata']=[],_0x25eaf9=0x0;_0x25eaf9<_0x1b3d39['metadata']['length'];++_0x25eaf9)_0x59077a['metadata'][_0x25eaf9]=_0x2a91e5['OperationMetadataDescriptor']['toObject'](_0x1b3d39['metadata'][_0x25eaf9],_0x5bd478);}return null!=_0x1b3d39['lastOperationId']&&_0x1b3d39['hasOwnProperty']('lastOperationId')&&(_0x59077a['lastOperationId']=_0x1b3d39['lastOperationId']),_0x59077a;},_0x2f70c9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2f70c9['getTypeUrl']=function(_0x30e0c2){return void 0x0===_0x30e0c2&&(_0x30e0c2='type.googleapis.com'),_0x30e0c2+'/CollaborativeEditingUpdateMessage';},_0x2f70c9;}()),_0x2a91e5['GetDocumentDetailsMessage']=(function(){function _0x52f07a(_0x11efbf){if(_0x11efbf){for(var _0x3e7237=Object['keys'](_0x11efbf),_0x13fdf4=0x0;_0x13fdf4<_0x3e7237['length'];++_0x13fdf4)null!=_0x11efbf[_0x3e7237[_0x13fdf4]]&&(this[_0x3e7237[_0x13fdf4]]=_0x11efbf[_0x3e7237[_0x13fdf4]]);}}return _0x52f07a['prototype']['documentId']='',_0x52f07a['prototype']['environmentId']='',_0x52f07a['create']=function(_0x204ec8){return new _0x52f07a(_0x204ec8);},_0x52f07a['encode']=function(_0x1e17bf,_0x3b68f4){return _0x3b68f4||(_0x3b68f4=_0x86a107['create']()),null!=_0x1e17bf['documentId']&&Object['hasOwnProperty']['call'](_0x1e17bf,'documentId')&&_0x3b68f4['uint32'](0xa)['string'](_0x1e17bf['documentId']),null!=_0x1e17bf['environmentId']&&Object['hasOwnProperty']['call'](_0x1e17bf,'environmentId')&&_0x3b68f4['uint32'](0x12)['string'](_0x1e17bf['environmentId']),_0x3b68f4;},_0x52f07a['encodeDelimited']=function(_0x304029,_0xf95c4c){return this['encode'](_0x304029,_0xf95c4c)['ldelim']();},_0x52f07a['decode']=function(_0x46c86c,_0x5a27da,_0xaa43b2){_0x46c86c instanceof _0x33fc5a||(_0x46c86c=_0x33fc5a['create'](_0x46c86c));for(var _0x4f26aa=void 0x0===_0x5a27da?_0x46c86c['len']:_0x46c86c['pos']+_0x5a27da,_0x3bb490=new _0x2a91e5['GetDocumentDetailsMessage']();_0x46c86c['pos']<_0x4f26aa;){var _0x3a0065=_0x46c86c['uint32']();if(_0x3a0065===_0xaa43b2)break;switch(_0x3a0065>>>0x3){case 0x1:_0x3bb490['documentId']=_0x46c86c['string']();break;case 0x2:_0x3bb490['environmentId']=_0x46c86c['string']();break;default:_0x46c86c['skipType'](0x7&_0x3a0065);}}return _0x3bb490;},_0x52f07a['decodeDelimited']=function(_0x4b9e29){return _0x4b9e29 instanceof _0x33fc5a||(_0x4b9e29=new _0x33fc5a(_0x4b9e29)),this['decode'](_0x4b9e29,_0x4b9e29['uint32']());},_0x52f07a['verify']=function(_0x1cf58e){return'object'!=typeof _0x1cf58e||null===_0x1cf58e?'object\x20expected':null!=_0x1cf58e['documentId']&&_0x1cf58e['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x1cf58e['documentId'])?'documentId:\x20string\x20expected':null!=_0x1cf58e['environmentId']&&_0x1cf58e['hasOwnProperty']('environmentId')&&!_0x1fbc81['isString'](_0x1cf58e['environmentId'])?'environmentId:\x20string\x20expected':null;},_0x52f07a['fromObject']=function(_0x581b3c){if(_0x581b3c instanceof _0x2a91e5['GetDocumentDetailsMessage'])return _0x581b3c;var _0x3e601c=new _0x2a91e5['GetDocumentDetailsMessage']();return null!=_0x581b3c['documentId']&&(_0x3e601c['documentId']=String(_0x581b3c['documentId'])),null!=_0x581b3c['environmentId']&&(_0x3e601c['environmentId']=String(_0x581b3c['environmentId'])),_0x3e601c;},_0x52f07a['toObject']=function(_0xbec2dc,_0x15a791){_0x15a791||(_0x15a791={});var _0x44b8a4={};return _0x15a791['defaults']&&(_0x44b8a4['documentId']='',_0x44b8a4['environmentId']=''),null!=_0xbec2dc['documentId']&&_0xbec2dc['hasOwnProperty']('documentId')&&(_0x44b8a4['documentId']=_0xbec2dc['documentId']),null!=_0xbec2dc['environmentId']&&_0xbec2dc['hasOwnProperty']('environmentId')&&(_0x44b8a4['environmentId']=_0xbec2dc['environmentId']),_0x44b8a4;},_0x52f07a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x52f07a['getTypeUrl']=function(_0x30a002){return void 0x0===_0x30a002&&(_0x30a002='type.googleapis.com'),_0x30a002+'/GetDocumentDetailsMessage';},_0x52f07a;}()),_0x2a91e5['CollaborativeEditingConnectResponse']=(function(){function _0x295592(_0x31056a){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x31056a){for(var _0x53ac62=Object['keys'](_0x31056a),_0x17e22d=0x0;_0x17e22d<_0x53ac62['length'];++_0x17e22d)null!=_0x31056a[_0x53ac62[_0x17e22d]]&&(this[_0x53ac62[_0x17e22d]]=_0x31056a[_0x53ac62[_0x17e22d]]);}}return _0x295592['prototype']['channel']='',_0x295592['prototype']['offset']=0x0,_0x295592['prototype']['version']=0x0,_0x295592['prototype']['buffers']=_0x1fbc81['emptyArray'],_0x295592['prototype']['types']=_0x1fbc81['emptyArray'],_0x295592['prototype']['metadata']=_0x1fbc81['emptyArray'],_0x295592['prototype']['initData']='',_0x295592['prototype']['isInitialized']=!0x1,_0x295592['prototype']['sessionId']='',_0x295592['prototype']['lastOperationId']='',_0x295592['prototype']['sessionCreatedAt']='',_0x295592['create']=function(_0x249749){return new _0x295592(_0x249749);},_0x295592['encode']=function(_0xe5adf7,_0x24d803){if(_0x24d803||(_0x24d803=_0x86a107['create']()),null!=_0xe5adf7['channel']&&Object['hasOwnProperty']['call'](_0xe5adf7,'channel')&&_0x24d803['uint32'](0xa)['string'](_0xe5adf7['channel']),null!=_0xe5adf7['offset']&&Object['hasOwnProperty']['call'](_0xe5adf7,'offset')&&_0x24d803['uint32'](0x10)['uint32'](_0xe5adf7['offset']),null!=_0xe5adf7['version']&&Object['hasOwnProperty']['call'](_0xe5adf7,'version')&&_0x24d803['uint32'](0x18)['uint32'](_0xe5adf7['version']),null!=_0xe5adf7['buffers']&&_0xe5adf7['buffers']['length']){for(var _0x248632=0x0;_0x248632<_0xe5adf7['buffers']['length'];++_0x248632)_0x24d803['uint32'](0x22)['bytes'](_0xe5adf7['buffers'][_0x248632]);}if(null!=_0xe5adf7['types']&&_0xe5adf7['types']['length']){for(_0x24d803['uint32'](0x2a)['fork'](),_0x248632=0x0;_0x248632<_0xe5adf7['types']['length'];++_0x248632)_0x24d803['uint32'](_0xe5adf7['types'][_0x248632]);_0x24d803['ldelim']();}if(null!=_0xe5adf7['metadata']&&_0xe5adf7['metadata']['length']){for(_0x248632=0x0;_0x248632<_0xe5adf7['metadata']['length'];++_0x248632)_0x2a91e5['OperationMetadataDescriptor']['encode'](_0xe5adf7['metadata'][_0x248632],_0x24d803['uint32'](0x3a)['fork']())['ldelim']();}return null!=_0xe5adf7['initData']&&Object['hasOwnProperty']['call'](_0xe5adf7,'initData')&&_0x24d803['uint32'](0x42)['string'](_0xe5adf7['initData']),null!=_0xe5adf7['isInitialized']&&Object['hasOwnProperty']['call'](_0xe5adf7,'isInitialized')&&_0x24d803['uint32'](0x48)['bool'](_0xe5adf7['isInitialized']),null!=_0xe5adf7['sessionId']&&Object['hasOwnProperty']['call'](_0xe5adf7,'sessionId')&&_0x24d803['uint32'](0x52)['string'](_0xe5adf7['sessionId']),null!=_0xe5adf7['lastOperationId']&&Object['hasOwnProperty']['call'](_0xe5adf7,'lastOperationId')&&_0x24d803['uint32'](0x5a)['string'](_0xe5adf7['lastOperationId']),null!=_0xe5adf7['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0xe5adf7,'sessionCreatedAt')&&_0x24d803['uint32'](0x62)['string'](_0xe5adf7['sessionCreatedAt']),_0x24d803;},_0x295592['encodeDelimited']=function(_0x3f0cc7,_0x34bf98){return this['encode'](_0x3f0cc7,_0x34bf98)['ldelim']();},_0x295592['decode']=function(_0x15fe57,_0x8e4818,_0x4b45dd){_0x15fe57 instanceof _0x33fc5a||(_0x15fe57=_0x33fc5a['create'](_0x15fe57));for(var _0x3ea1be=void 0x0===_0x8e4818?_0x15fe57['len']:_0x15fe57['pos']+_0x8e4818,_0x18a63c=new _0x2a91e5['CollaborativeEditingConnectResponse']();_0x15fe57['pos']<_0x3ea1be;){var _0x430603=_0x15fe57['uint32']();if(_0x430603===_0x4b45dd)break;switch(_0x430603>>>0x3){case 0x1:_0x18a63c['channel']=_0x15fe57['string']();break;case 0x2:_0x18a63c['offset']=_0x15fe57['uint32']();break;case 0x3:_0x18a63c['version']=_0x15fe57['uint32']();break;case 0x4:_0x18a63c['buffers']&&_0x18a63c['buffers']['length']||(_0x18a63c['buffers']=[]),_0x18a63c['buffers']['push'](_0x15fe57['bytes']());break;case 0x5:if(_0x18a63c['types']&&_0x18a63c['types']['length']||(_0x18a63c['types']=[]),0x2==(0x7&_0x430603)){for(var _0x12eb82=_0x15fe57['uint32']()+_0x15fe57['pos'];_0x15fe57['pos']<_0x12eb82;)_0x18a63c['types']['push'](_0x15fe57['uint32']());}else _0x18a63c['types']['push'](_0x15fe57['uint32']());break;case 0x7:_0x18a63c['metadata']&&_0x18a63c['metadata']['length']||(_0x18a63c['metadata']=[]),_0x18a63c['metadata']['push'](_0x2a91e5['OperationMetadataDescriptor']['decode'](_0x15fe57,_0x15fe57['uint32']()));break;case 0x8:_0x18a63c['initData']=_0x15fe57['string']();break;case 0x9:_0x18a63c['isInitialized']=_0x15fe57['bool']();break;case 0xa:_0x18a63c['sessionId']=_0x15fe57['string']();break;case 0xb:_0x18a63c['lastOperationId']=_0x15fe57['string']();break;case 0xc:_0x18a63c['sessionCreatedAt']=_0x15fe57['string']();break;default:_0x15fe57['skipType'](0x7&_0x430603);}}return _0x18a63c;},_0x295592['decodeDelimited']=function(_0xcd916a){return _0xcd916a instanceof _0x33fc5a||(_0xcd916a=new _0x33fc5a(_0xcd916a)),this['decode'](_0xcd916a,_0xcd916a['uint32']());},_0x295592['verify']=function(_0x178b37){if('object'!=typeof _0x178b37||null===_0x178b37)return'object\x20expected';if(null!=_0x178b37['channel']&&_0x178b37['hasOwnProperty']('channel')&&!_0x1fbc81['isString'](_0x178b37['channel']))return'channel:\x20string\x20expected';if(null!=_0x178b37['offset']&&_0x178b37['hasOwnProperty']('offset')&&!_0x1fbc81['isInteger'](_0x178b37['offset']))return'offset:\x20integer\x20expected';if(null!=_0x178b37['version']&&_0x178b37['hasOwnProperty']('version')&&!_0x1fbc81['isInteger'](_0x178b37['version']))return'version:\x20integer\x20expected';if(null!=_0x178b37['buffers']&&_0x178b37['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x178b37['buffers']))return'buffers:\x20array\x20expected';for(var _0x3650c8=0x0;_0x3650c8<_0x178b37['buffers']['length'];++_0x3650c8)if(!(_0x178b37['buffers'][_0x3650c8]&&'number'==typeof _0x178b37['buffers'][_0x3650c8]['length']||_0x1fbc81['isString'](_0x178b37['buffers'][_0x3650c8])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x178b37['types']&&_0x178b37['hasOwnProperty']('types')){if(!Array['isArray'](_0x178b37['types']))return'types:\x20array\x20expected';for(_0x3650c8=0x0;_0x3650c8<_0x178b37['types']['length'];++_0x3650c8)if(!_0x1fbc81['isInteger'](_0x178b37['types'][_0x3650c8]))return'types:\x20integer[]\x20expected';}if(null!=_0x178b37['metadata']&&_0x178b37['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x178b37['metadata']))return'metadata:\x20array\x20expected';for(_0x3650c8=0x0;_0x3650c8<_0x178b37['metadata']['length'];++_0x3650c8){var _0x4c3811=_0x2a91e5['OperationMetadataDescriptor']['verify'](_0x178b37['metadata'][_0x3650c8]);if(_0x4c3811)return'metadata.'+_0x4c3811;}}return null!=_0x178b37['initData']&&_0x178b37['hasOwnProperty']('initData')&&!_0x1fbc81['isString'](_0x178b37['initData'])?'initData:\x20string\x20expected':null!=_0x178b37['isInitialized']&&_0x178b37['hasOwnProperty']('isInitialized')&&'boolean'!=typeof _0x178b37['isInitialized']?'isInitialized:\x20boolean\x20expected':null!=_0x178b37['sessionId']&&_0x178b37['hasOwnProperty']('sessionId')&&!_0x1fbc81['isString'](_0x178b37['sessionId'])?'sessionId:\x20string\x20expected':null!=_0x178b37['lastOperationId']&&_0x178b37['hasOwnProperty']('lastOperationId')&&!_0x1fbc81['isString'](_0x178b37['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x178b37['sessionCreatedAt']&&_0x178b37['hasOwnProperty']('sessionCreatedAt')&&!_0x1fbc81['isString'](_0x178b37['sessionCreatedAt'])?'sessionCreatedAt:\x20string\x20expected':null;},_0x295592['fromObject']=function(_0x277573){if(_0x277573 instanceof _0x2a91e5['CollaborativeEditingConnectResponse'])return _0x277573;var _0x3efb45=new _0x2a91e5['CollaborativeEditingConnectResponse']();if(null!=_0x277573['channel']&&(_0x3efb45['channel']=String(_0x277573['channel'])),null!=_0x277573['offset']&&(_0x3efb45['offset']=_0x277573['offset']>>>0x0),null!=_0x277573['version']&&(_0x3efb45['version']=_0x277573['version']>>>0x0),_0x277573['buffers']){if(!Array['isArray'](_0x277573['buffers']))throw TypeError('.CollaborativeEditingConnectResponse.buffers:\x20array\x20expected');_0x3efb45['buffers']=[];for(var _0x4db15f=0x0;_0x4db15f<_0x277573['buffers']['length'];++_0x4db15f)'string'==typeof _0x277573['buffers'][_0x4db15f]?_0x1fbc81['base64']['decode'](_0x277573['buffers'][_0x4db15f],_0x3efb45['buffers'][_0x4db15f]=_0x1fbc81['newBuffer'](_0x1fbc81['base64']['length'](_0x277573['buffers'][_0x4db15f])),0x0):_0x277573['buffers'][_0x4db15f]['length']>=0x0&&(_0x3efb45['buffers'][_0x4db15f]=_0x277573['buffers'][_0x4db15f]);}if(_0x277573['types']){if(!Array['isArray'](_0x277573['types']))throw TypeError('.CollaborativeEditingConnectResponse.types:\x20array\x20expected');for(_0x3efb45['types']=[],_0x4db15f=0x0;_0x4db15f<_0x277573['types']['length'];++_0x4db15f)_0x3efb45['types'][_0x4db15f]=_0x277573['types'][_0x4db15f]>>>0x0;}if(_0x277573['metadata']){if(!Array['isArray'](_0x277573['metadata']))throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20array\x20expected');for(_0x3efb45['metadata']=[],_0x4db15f=0x0;_0x4db15f<_0x277573['metadata']['length'];++_0x4db15f){if('object'!=typeof _0x277573['metadata'][_0x4db15f])throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20object\x20expected');_0x3efb45['metadata'][_0x4db15f]=_0x2a91e5['OperationMetadataDescriptor']['fromObject'](_0x277573['metadata'][_0x4db15f]);}}return null!=_0x277573['initData']&&(_0x3efb45['initData']=String(_0x277573['initData'])),null!=_0x277573['isInitialized']&&(_0x3efb45['isInitialized']=Boolean(_0x277573['isInitialized'])),null!=_0x277573['sessionId']&&(_0x3efb45['sessionId']=String(_0x277573['sessionId'])),null!=_0x277573['lastOperationId']&&(_0x3efb45['lastOperationId']=String(_0x277573['lastOperationId'])),null!=_0x277573['sessionCreatedAt']&&(_0x3efb45['sessionCreatedAt']=String(_0x277573['sessionCreatedAt'])),_0x3efb45;},_0x295592['toObject']=function(_0x594e85,_0xae6b95){_0xae6b95||(_0xae6b95={});var _0x354219={};if((_0xae6b95['arrays']||_0xae6b95['defaults'])&&(_0x354219['buffers']=[],_0x354219['types']=[],_0x354219['metadata']=[]),_0xae6b95['defaults']&&(_0x354219['channel']='',_0x354219['offset']=0x0,_0x354219['version']=0x0,_0x354219['initData']='',_0x354219['isInitialized']=!0x1,_0x354219['sessionId']='',_0x354219['lastOperationId']='',_0x354219['sessionCreatedAt']=''),null!=_0x594e85['channel']&&_0x594e85['hasOwnProperty']('channel')&&(_0x354219['channel']=_0x594e85['channel']),null!=_0x594e85['offset']&&_0x594e85['hasOwnProperty']('offset')&&(_0x354219['offset']=_0x594e85['offset']),null!=_0x594e85['version']&&_0x594e85['hasOwnProperty']('version')&&(_0x354219['version']=_0x594e85['version']),_0x594e85['buffers']&&_0x594e85['buffers']['length']){_0x354219['buffers']=[];for(var _0x2875f5=0x0;_0x2875f5<_0x594e85['buffers']['length'];++_0x2875f5)_0x354219['buffers'][_0x2875f5]=_0xae6b95['bytes']===String?_0x1fbc81['base64']['encode'](_0x594e85['buffers'][_0x2875f5],0x0,_0x594e85['buffers'][_0x2875f5]['length']):_0xae6b95['bytes']===Array?Array['prototype']['slice']['call'](_0x594e85['buffers'][_0x2875f5]):_0x594e85['buffers'][_0x2875f5];}if(_0x594e85['types']&&_0x594e85['types']['length']){for(_0x354219['types']=[],_0x2875f5=0x0;_0x2875f5<_0x594e85['types']['length'];++_0x2875f5)_0x354219['types'][_0x2875f5]=_0x594e85['types'][_0x2875f5];}if(_0x594e85['metadata']&&_0x594e85['metadata']['length']){for(_0x354219['metadata']=[],_0x2875f5=0x0;_0x2875f5<_0x594e85['metadata']['length'];++_0x2875f5)_0x354219['metadata'][_0x2875f5]=_0x2a91e5['OperationMetadataDescriptor']['toObject'](_0x594e85['metadata'][_0x2875f5],_0xae6b95);}return null!=_0x594e85['initData']&&_0x594e85['hasOwnProperty']('initData')&&(_0x354219['initData']=_0x594e85['initData']),null!=_0x594e85['isInitialized']&&_0x594e85['hasOwnProperty']('isInitialized')&&(_0x354219['isInitialized']=_0x594e85['isInitialized']),null!=_0x594e85['sessionId']&&_0x594e85['hasOwnProperty']('sessionId')&&(_0x354219['sessionId']=_0x594e85['sessionId']),null!=_0x594e85['lastOperationId']&&_0x594e85['hasOwnProperty']('lastOperationId')&&(_0x354219['lastOperationId']=_0x594e85['lastOperationId']),null!=_0x594e85['sessionCreatedAt']&&_0x594e85['hasOwnProperty']('sessionCreatedAt')&&(_0x354219['sessionCreatedAt']=_0x594e85['sessionCreatedAt']),_0x354219;},_0x295592['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x295592['getTypeUrl']=function(_0x40032a){return void 0x0===_0x40032a&&(_0x40032a='type.googleapis.com'),_0x40032a+'/CollaborativeEditingConnectResponse';},_0x295592;}()),_0x2a91e5['CollaborativeEditingResponse']=(function(){function _0x3eb08(_0x4a65b7){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x4a65b7){for(var _0x40510a=Object['keys'](_0x4a65b7),_0x103361=0x0;_0x103361<_0x40510a['length'];++_0x103361)null!=_0x4a65b7[_0x40510a[_0x103361]]&&(this[_0x40510a[_0x103361]]=_0x4a65b7[_0x40510a[_0x103361]]);}}return _0x3eb08['prototype']['version']=0x0,_0x3eb08['prototype']['buffers']=_0x1fbc81['emptyArray'],_0x3eb08['prototype']['types']=_0x1fbc81['emptyArray'],_0x3eb08['prototype']['metadata']=_0x1fbc81['emptyArray'],_0x3eb08['prototype']['lastOperationId']='',_0x3eb08['prototype']['lastOperationAcceptedAt']='',_0x3eb08['create']=function(_0xd11daa){return new _0x3eb08(_0xd11daa);},_0x3eb08['encode']=function(_0x3df61c,_0x46fde3){if(_0x46fde3||(_0x46fde3=_0x86a107['create']()),null!=_0x3df61c['version']&&Object['hasOwnProperty']['call'](_0x3df61c,'version')&&_0x46fde3['uint32'](0x8)['uint32'](_0x3df61c['version']),null!=_0x3df61c['buffers']&&_0x3df61c['buffers']['length']){for(var _0xc48379=0x0;_0xc48379<_0x3df61c['buffers']['length'];++_0xc48379)_0x46fde3['uint32'](0x12)['bytes'](_0x3df61c['buffers'][_0xc48379]);}if(null!=_0x3df61c['types']&&_0x3df61c['types']['length']){for(_0x46fde3['uint32'](0x1a)['fork'](),_0xc48379=0x0;_0xc48379<_0x3df61c['types']['length'];++_0xc48379)_0x46fde3['uint32'](_0x3df61c['types'][_0xc48379]);_0x46fde3['ldelim']();}if(null!=_0x3df61c['metadata']&&_0x3df61c['metadata']['length']){for(_0xc48379=0x0;_0xc48379<_0x3df61c['metadata']['length'];++_0xc48379)_0x2a91e5['OperationMetadataDescriptor']['encode'](_0x3df61c['metadata'][_0xc48379],_0x46fde3['uint32'](0x2a)['fork']())['ldelim']();}return null!=_0x3df61c['lastOperationId']&&Object['hasOwnProperty']['call'](_0x3df61c,'lastOperationId')&&_0x46fde3['uint32'](0x32)['string'](_0x3df61c['lastOperationId']),null!=_0x3df61c['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0x3df61c,'lastOperationAcceptedAt')&&_0x46fde3['uint32'](0x3a)['string'](_0x3df61c['lastOperationAcceptedAt']),_0x46fde3;},_0x3eb08['encodeDelimited']=function(_0x25ea85,_0xbc2044){return this['encode'](_0x25ea85,_0xbc2044)['ldelim']();},_0x3eb08['decode']=function(_0xd53814,_0x300074,_0x3c0aca){_0xd53814 instanceof _0x33fc5a||(_0xd53814=_0x33fc5a['create'](_0xd53814));for(var _0x3a1590=void 0x0===_0x300074?_0xd53814['len']:_0xd53814['pos']+_0x300074,_0x12b0b4=new _0x2a91e5['CollaborativeEditingResponse']();_0xd53814['pos']<_0x3a1590;){var _0x4b62a3=_0xd53814['uint32']();if(_0x4b62a3===_0x3c0aca)break;switch(_0x4b62a3>>>0x3){case 0x1:_0x12b0b4['version']=_0xd53814['uint32']();break;case 0x2:_0x12b0b4['buffers']&&_0x12b0b4['buffers']['length']||(_0x12b0b4['buffers']=[]),_0x12b0b4['buffers']['push'](_0xd53814['bytes']());break;case 0x3:if(_0x12b0b4['types']&&_0x12b0b4['types']['length']||(_0x12b0b4['types']=[]),0x2==(0x7&_0x4b62a3)){for(var _0x107558=_0xd53814['uint32']()+_0xd53814['pos'];_0xd53814['pos']<_0x107558;)_0x12b0b4['types']['push'](_0xd53814['uint32']());}else _0x12b0b4['types']['push'](_0xd53814['uint32']());break;case 0x5:_0x12b0b4['metadata']&&_0x12b0b4['metadata']['length']||(_0x12b0b4['metadata']=[]),_0x12b0b4['metadata']['push'](_0x2a91e5['OperationMetadataDescriptor']['decode'](_0xd53814,_0xd53814['uint32']()));break;case 0x6:_0x12b0b4['lastOperationId']=_0xd53814['string']();break;case 0x7:_0x12b0b4['lastOperationAcceptedAt']=_0xd53814['string']();break;default:_0xd53814['skipType'](0x7&_0x4b62a3);}}return _0x12b0b4;},_0x3eb08['decodeDelimited']=function(_0x19b7bb){return _0x19b7bb instanceof _0x33fc5a||(_0x19b7bb=new _0x33fc5a(_0x19b7bb)),this['decode'](_0x19b7bb,_0x19b7bb['uint32']());},_0x3eb08['verify']=function(_0x6a1b0f){if('object'!=typeof _0x6a1b0f||null===_0x6a1b0f)return'object\x20expected';if(null!=_0x6a1b0f['version']&&_0x6a1b0f['hasOwnProperty']('version')&&!_0x1fbc81['isInteger'](_0x6a1b0f['version']))return'version:\x20integer\x20expected';if(null!=_0x6a1b0f['buffers']&&_0x6a1b0f['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x6a1b0f['buffers']))return'buffers:\x20array\x20expected';for(var _0x2d9984=0x0;_0x2d9984<_0x6a1b0f['buffers']['length'];++_0x2d9984)if(!(_0x6a1b0f['buffers'][_0x2d9984]&&'number'==typeof _0x6a1b0f['buffers'][_0x2d9984]['length']||_0x1fbc81['isString'](_0x6a1b0f['buffers'][_0x2d9984])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x6a1b0f['types']&&_0x6a1b0f['hasOwnProperty']('types')){if(!Array['isArray'](_0x6a1b0f['types']))return'types:\x20array\x20expected';for(_0x2d9984=0x0;_0x2d9984<_0x6a1b0f['types']['length'];++_0x2d9984)if(!_0x1fbc81['isInteger'](_0x6a1b0f['types'][_0x2d9984]))return'types:\x20integer[]\x20expected';}if(null!=_0x6a1b0f['metadata']&&_0x6a1b0f['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x6a1b0f['metadata']))return'metadata:\x20array\x20expected';for(_0x2d9984=0x0;_0x2d9984<_0x6a1b0f['metadata']['length'];++_0x2d9984){var _0x3427f0=_0x2a91e5['OperationMetadataDescriptor']['verify'](_0x6a1b0f['metadata'][_0x2d9984]);if(_0x3427f0)return'metadata.'+_0x3427f0;}}return null!=_0x6a1b0f['lastOperationId']&&_0x6a1b0f['hasOwnProperty']('lastOperationId')&&!_0x1fbc81['isString'](_0x6a1b0f['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x6a1b0f['lastOperationAcceptedAt']&&_0x6a1b0f['hasOwnProperty']('lastOperationAcceptedAt')&&!_0x1fbc81['isString'](_0x6a1b0f['lastOperationAcceptedAt'])?'lastOperationAcceptedAt:\x20string\x20expected':null;},_0x3eb08['fromObject']=function(_0x3849e7){if(_0x3849e7 instanceof _0x2a91e5['CollaborativeEditingResponse'])return _0x3849e7;var _0x203eab=new _0x2a91e5['CollaborativeEditingResponse']();if(null!=_0x3849e7['version']&&(_0x203eab['version']=_0x3849e7['version']>>>0x0),_0x3849e7['buffers']){if(!Array['isArray'](_0x3849e7['buffers']))throw TypeError('.CollaborativeEditingResponse.buffers:\x20array\x20expected');_0x203eab['buffers']=[];for(var _0x4b9c6f=0x0;_0x4b9c6f<_0x3849e7['buffers']['length'];++_0x4b9c6f)'string'==typeof _0x3849e7['buffers'][_0x4b9c6f]?_0x1fbc81['base64']['decode'](_0x3849e7['buffers'][_0x4b9c6f],_0x203eab['buffers'][_0x4b9c6f]=_0x1fbc81['newBuffer'](_0x1fbc81['base64']['length'](_0x3849e7['buffers'][_0x4b9c6f])),0x0):_0x3849e7['buffers'][_0x4b9c6f]['length']>=0x0&&(_0x203eab['buffers'][_0x4b9c6f]=_0x3849e7['buffers'][_0x4b9c6f]);}if(_0x3849e7['types']){if(!Array['isArray'](_0x3849e7['types']))throw TypeError('.CollaborativeEditingResponse.types:\x20array\x20expected');for(_0x203eab['types']=[],_0x4b9c6f=0x0;_0x4b9c6f<_0x3849e7['types']['length'];++_0x4b9c6f)_0x203eab['types'][_0x4b9c6f]=_0x3849e7['types'][_0x4b9c6f]>>>0x0;}if(_0x3849e7['metadata']){if(!Array['isArray'](_0x3849e7['metadata']))throw TypeError('.CollaborativeEditingResponse.metadata:\x20array\x20expected');for(_0x203eab['metadata']=[],_0x4b9c6f=0x0;_0x4b9c6f<_0x3849e7['metadata']['length'];++_0x4b9c6f){if('object'!=typeof _0x3849e7['metadata'][_0x4b9c6f])throw TypeError('.CollaborativeEditingResponse.metadata:\x20object\x20expected');_0x203eab['metadata'][_0x4b9c6f]=_0x2a91e5['OperationMetadataDescriptor']['fromObject'](_0x3849e7['metadata'][_0x4b9c6f]);}}return null!=_0x3849e7['lastOperationId']&&(_0x203eab['lastOperationId']=String(_0x3849e7['lastOperationId'])),null!=_0x3849e7['lastOperationAcceptedAt']&&(_0x203eab['lastOperationAcceptedAt']=String(_0x3849e7['lastOperationAcceptedAt'])),_0x203eab;},_0x3eb08['toObject']=function(_0x20af5a,_0x372ead){_0x372ead||(_0x372ead={});var _0x5b8b91={};if((_0x372ead['arrays']||_0x372ead['defaults'])&&(_0x5b8b91['buffers']=[],_0x5b8b91['types']=[],_0x5b8b91['metadata']=[]),_0x372ead['defaults']&&(_0x5b8b91['version']=0x0,_0x5b8b91['lastOperationId']='',_0x5b8b91['lastOperationAcceptedAt']=''),null!=_0x20af5a['version']&&_0x20af5a['hasOwnProperty']('version')&&(_0x5b8b91['version']=_0x20af5a['version']),_0x20af5a['buffers']&&_0x20af5a['buffers']['length']){_0x5b8b91['buffers']=[];for(var _0x47c096=0x0;_0x47c096<_0x20af5a['buffers']['length'];++_0x47c096)_0x5b8b91['buffers'][_0x47c096]=_0x372ead['bytes']===String?_0x1fbc81['base64']['encode'](_0x20af5a['buffers'][_0x47c096],0x0,_0x20af5a['buffers'][_0x47c096]['length']):_0x372ead['bytes']===Array?Array['prototype']['slice']['call'](_0x20af5a['buffers'][_0x47c096]):_0x20af5a['buffers'][_0x47c096];}if(_0x20af5a['types']&&_0x20af5a['types']['length']){for(_0x5b8b91['types']=[],_0x47c096=0x0;_0x47c096<_0x20af5a['types']['length'];++_0x47c096)_0x5b8b91['types'][_0x47c096]=_0x20af5a['types'][_0x47c096];}if(_0x20af5a['metadata']&&_0x20af5a['metadata']['length']){for(_0x5b8b91['metadata']=[],_0x47c096=0x0;_0x47c096<_0x20af5a['metadata']['length'];++_0x47c096)_0x5b8b91['metadata'][_0x47c096]=_0x2a91e5['OperationMetadataDescriptor']['toObject'](_0x20af5a['metadata'][_0x47c096],_0x372ead);}return null!=_0x20af5a['lastOperationId']&&_0x20af5a['hasOwnProperty']('lastOperationId')&&(_0x5b8b91['lastOperationId']=_0x20af5a['lastOperationId']),null!=_0x20af5a['lastOperationAcceptedAt']&&_0x20af5a['hasOwnProperty']('lastOperationAcceptedAt')&&(_0x5b8b91['lastOperationAcceptedAt']=_0x20af5a['lastOperationAcceptedAt']),_0x5b8b91;},_0x3eb08['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3eb08['getTypeUrl']=function(_0x5493b8){return void 0x0===_0x5493b8&&(_0x5493b8='type.googleapis.com'),_0x5493b8+'/CollaborativeEditingResponse';},_0x3eb08;}()),_0x2a91e5['GetDocumentDetailsResponse']=(function(){function _0x5de0a7(_0x27ea9f){if(_0x27ea9f){for(var _0x54d43a=Object['keys'](_0x27ea9f),_0x37502c=0x0;_0x37502c<_0x54d43a['length'];++_0x37502c)null!=_0x27ea9f[_0x54d43a[_0x37502c]]&&(this[_0x54d43a[_0x37502c]]=_0x27ea9f[_0x54d43a[_0x37502c]]);}}return _0x5de0a7['prototype']['lastDocumentSessionId']='',_0x5de0a7['prototype']['lastDocumentSessionOperationId']='',_0x5de0a7['prototype']['currentDocumentSessionId']='',_0x5de0a7['prototype']['currentDocumentSessionVersion']=0x0,_0x5de0a7['prototype']['currentDocumentSessionOperationId']='',_0x5de0a7['create']=function(_0x5b1d93){return new _0x5de0a7(_0x5b1d93);},_0x5de0a7['encode']=function(_0x35fd2d,_0x3346c2){return _0x3346c2||(_0x3346c2=_0x86a107['create']()),null!=_0x35fd2d['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x35fd2d,'lastDocumentSessionId')&&_0x3346c2['uint32'](0xa)['string'](_0x35fd2d['lastDocumentSessionId']),null!=_0x35fd2d['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x35fd2d,'lastDocumentSessionOperationId')&&_0x3346c2['uint32'](0x12)['string'](_0x35fd2d['lastDocumentSessionOperationId']),null!=_0x35fd2d['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x35fd2d,'currentDocumentSessionId')&&_0x3346c2['uint32'](0x1a)['string'](_0x35fd2d['currentDocumentSessionId']),null!=_0x35fd2d['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0x35fd2d,'currentDocumentSessionVersion')&&_0x3346c2['uint32'](0x20)['uint32'](_0x35fd2d['currentDocumentSessionVersion']),null!=_0x35fd2d['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x35fd2d,'currentDocumentSessionOperationId')&&_0x3346c2['uint32'](0x2a)['string'](_0x35fd2d['currentDocumentSessionOperationId']),_0x3346c2;},_0x5de0a7['encodeDelimited']=function(_0x4b001d,_0x520988){return this['encode'](_0x4b001d,_0x520988)['ldelim']();},_0x5de0a7['decode']=function(_0x11c4de,_0x2fcd33,_0x53161f){_0x11c4de instanceof _0x33fc5a||(_0x11c4de=_0x33fc5a['create'](_0x11c4de));for(var _0x40a2b1=void 0x0===_0x2fcd33?_0x11c4de['len']:_0x11c4de['pos']+_0x2fcd33,_0x277ebc=new _0x2a91e5['GetDocumentDetailsResponse']();_0x11c4de['pos']<_0x40a2b1;){var _0x3768ae=_0x11c4de['uint32']();if(_0x3768ae===_0x53161f)break;switch(_0x3768ae>>>0x3){case 0x1:_0x277ebc['lastDocumentSessionId']=_0x11c4de['string']();break;case 0x2:_0x277ebc['lastDocumentSessionOperationId']=_0x11c4de['string']();break;case 0x3:_0x277ebc['currentDocumentSessionId']=_0x11c4de['string']();break;case 0x4:_0x277ebc['currentDocumentSessionVersion']=_0x11c4de['uint32']();break;case 0x5:_0x277ebc['currentDocumentSessionOperationId']=_0x11c4de['string']();break;default:_0x11c4de['skipType'](0x7&_0x3768ae);}}return _0x277ebc;},_0x5de0a7['decodeDelimited']=function(_0x484d4d){return _0x484d4d instanceof _0x33fc5a||(_0x484d4d=new _0x33fc5a(_0x484d4d)),this['decode'](_0x484d4d,_0x484d4d['uint32']());},_0x5de0a7['verify']=function(_0x240694){return'object'!=typeof _0x240694||null===_0x240694?'object\x20expected':null!=_0x240694['lastDocumentSessionId']&&_0x240694['hasOwnProperty']('lastDocumentSessionId')&&!_0x1fbc81['isString'](_0x240694['lastDocumentSessionId'])?'lastDocumentSessionId:\x20string\x20expected':null!=_0x240694['lastDocumentSessionOperationId']&&_0x240694['hasOwnProperty']('lastDocumentSessionOperationId')&&!_0x1fbc81['isString'](_0x240694['lastDocumentSessionOperationId'])?'lastDocumentSessionOperationId:\x20string\x20expected':null!=_0x240694['currentDocumentSessionId']&&_0x240694['hasOwnProperty']('currentDocumentSessionId')&&!_0x1fbc81['isString'](_0x240694['currentDocumentSessionId'])?'currentDocumentSessionId:\x20string\x20expected':null!=_0x240694['currentDocumentSessionVersion']&&_0x240694['hasOwnProperty']('currentDocumentSessionVersion')&&!_0x1fbc81['isInteger'](_0x240694['currentDocumentSessionVersion'])?'currentDocumentSessionVersion:\x20integer\x20expected':null!=_0x240694['currentDocumentSessionOperationId']&&_0x240694['hasOwnProperty']('currentDocumentSessionOperationId')&&!_0x1fbc81['isString'](_0x240694['currentDocumentSessionOperationId'])?'currentDocumentSessionOperationId:\x20string\x20expected':null;},_0x5de0a7['fromObject']=function(_0x1c27d5){if(_0x1c27d5 instanceof _0x2a91e5['GetDocumentDetailsResponse'])return _0x1c27d5;var _0x12058f=new _0x2a91e5['GetDocumentDetailsResponse']();return null!=_0x1c27d5['lastDocumentSessionId']&&(_0x12058f['lastDocumentSessionId']=String(_0x1c27d5['lastDocumentSessionId'])),null!=_0x1c27d5['lastDocumentSessionOperationId']&&(_0x12058f['lastDocumentSessionOperationId']=String(_0x1c27d5['lastDocumentSessionOperationId'])),null!=_0x1c27d5['currentDocumentSessionId']&&(_0x12058f['currentDocumentSessionId']=String(_0x1c27d5['currentDocumentSessionId'])),null!=_0x1c27d5['currentDocumentSessionVersion']&&(_0x12058f['currentDocumentSessionVersion']=_0x1c27d5['currentDocumentSessionVersion']>>>0x0),null!=_0x1c27d5['currentDocumentSessionOperationId']&&(_0x12058f['currentDocumentSessionOperationId']=String(_0x1c27d5['currentDocumentSessionOperationId'])),_0x12058f;},_0x5de0a7['toObject']=function(_0x4c6440,_0x3184f6){_0x3184f6||(_0x3184f6={});var _0x50afad={};return _0x3184f6['defaults']&&(_0x50afad['lastDocumentSessionId']='',_0x50afad['lastDocumentSessionOperationId']='',_0x50afad['currentDocumentSessionId']='',_0x50afad['currentDocumentSessionVersion']=0x0,_0x50afad['currentDocumentSessionOperationId']=''),null!=_0x4c6440['lastDocumentSessionId']&&_0x4c6440['hasOwnProperty']('lastDocumentSessionId')&&(_0x50afad['lastDocumentSessionId']=_0x4c6440['lastDocumentSessionId']),null!=_0x4c6440['lastDocumentSessionOperationId']&&_0x4c6440['hasOwnProperty']('lastDocumentSessionOperationId')&&(_0x50afad['lastDocumentSessionOperationId']=_0x4c6440['lastDocumentSessionOperationId']),null!=_0x4c6440['currentDocumentSessionId']&&_0x4c6440['hasOwnProperty']('currentDocumentSessionId')&&(_0x50afad['currentDocumentSessionId']=_0x4c6440['currentDocumentSessionId']),null!=_0x4c6440['currentDocumentSessionVersion']&&_0x4c6440['hasOwnProperty']('currentDocumentSessionVersion')&&(_0x50afad['currentDocumentSessionVersion']=_0x4c6440['currentDocumentSessionVersion']),null!=_0x4c6440['currentDocumentSessionOperationId']&&_0x4c6440['hasOwnProperty']('currentDocumentSessionOperationId')&&(_0x50afad['currentDocumentSessionOperationId']=_0x4c6440['currentDocumentSessionOperationId']),_0x50afad;},_0x5de0a7['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5de0a7['getTypeUrl']=function(_0x2c24b5){return void 0x0===_0x2c24b5&&(_0x2c24b5='type.googleapis.com'),_0x2c24b5+'/GetDocumentDetailsResponse';},_0x5de0a7;}()),_0x2a91e5['CommentDescriptor']=(function(){function _0x5077c9(_0x433160){if(_0x433160){for(var _0x252793=Object['keys'](_0x433160),_0x12a0c4=0x0;_0x12a0c4<_0x252793['length'];++_0x12a0c4)null!=_0x433160[_0x252793[_0x12a0c4]]&&(this[_0x252793[_0x12a0c4]]=_0x433160[_0x252793[_0x12a0c4]]);}}return _0x5077c9['prototype']['commentId']='',_0x5077c9['prototype']['commentThreadId']='',_0x5077c9['prototype']['userId']='',_0x5077c9['prototype']['content']='',_0x5077c9['prototype']['documentId']='',_0x5077c9['prototype']['createdAt']='',_0x5077c9['prototype']['attributes']='',_0x5077c9['create']=function(_0x5e6e95){return new _0x5077c9(_0x5e6e95);},_0x5077c9['encode']=function(_0x1aeebf,_0x568be0){return _0x568be0||(_0x568be0=_0x86a107['create']()),null!=_0x1aeebf['commentId']&&Object['hasOwnProperty']['call'](_0x1aeebf,'commentId')&&_0x568be0['uint32'](0xa)['string'](_0x1aeebf['commentId']),null!=_0x1aeebf['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1aeebf,'commentThreadId')&&_0x568be0['uint32'](0x12)['string'](_0x1aeebf['commentThreadId']),null!=_0x1aeebf['userId']&&Object['hasOwnProperty']['call'](_0x1aeebf,'userId')&&_0x568be0['uint32'](0x1a)['string'](_0x1aeebf['userId']),null!=_0x1aeebf['content']&&Object['hasOwnProperty']['call'](_0x1aeebf,'content')&&_0x568be0['uint32'](0x22)['string'](_0x1aeebf['content']),null!=_0x1aeebf['documentId']&&Object['hasOwnProperty']['call'](_0x1aeebf,'documentId')&&_0x568be0['uint32'](0x2a)['string'](_0x1aeebf['documentId']),null!=_0x1aeebf['createdAt']&&Object['hasOwnProperty']['call'](_0x1aeebf,'createdAt')&&_0x568be0['uint32'](0x32)['string'](_0x1aeebf['createdAt']),null!=_0x1aeebf['attributes']&&Object['hasOwnProperty']['call'](_0x1aeebf,'attributes')&&_0x568be0['uint32'](0x3a)['string'](_0x1aeebf['attributes']),_0x568be0;},_0x5077c9['encodeDelimited']=function(_0x5537fd,_0x53ba57){return this['encode'](_0x5537fd,_0x53ba57)['ldelim']();},_0x5077c9['decode']=function(_0x5ceaa4,_0x557e31,_0x3ce177){_0x5ceaa4 instanceof _0x33fc5a||(_0x5ceaa4=_0x33fc5a['create'](_0x5ceaa4));for(var _0x4ea4e6=void 0x0===_0x557e31?_0x5ceaa4['len']:_0x5ceaa4['pos']+_0x557e31,_0x4deabb=new _0x2a91e5['CommentDescriptor']();_0x5ceaa4['pos']<_0x4ea4e6;){var _0x307bb9=_0x5ceaa4['uint32']();if(_0x307bb9===_0x3ce177)break;switch(_0x307bb9>>>0x3){case 0x1:_0x4deabb['commentId']=_0x5ceaa4['string']();break;case 0x2:_0x4deabb['commentThreadId']=_0x5ceaa4['string']();break;case 0x3:_0x4deabb['userId']=_0x5ceaa4['string']();break;case 0x4:_0x4deabb['content']=_0x5ceaa4['string']();break;case 0x5:_0x4deabb['documentId']=_0x5ceaa4['string']();break;case 0x6:_0x4deabb['createdAt']=_0x5ceaa4['string']();break;case 0x7:_0x4deabb['attributes']=_0x5ceaa4['string']();break;default:_0x5ceaa4['skipType'](0x7&_0x307bb9);}}return _0x4deabb;},_0x5077c9['decodeDelimited']=function(_0x336089){return _0x336089 instanceof _0x33fc5a||(_0x336089=new _0x33fc5a(_0x336089)),this['decode'](_0x336089,_0x336089['uint32']());},_0x5077c9['verify']=function(_0x295580){return'object'!=typeof _0x295580||null===_0x295580?'object\x20expected':null!=_0x295580['commentId']&&_0x295580['hasOwnProperty']('commentId')&&!_0x1fbc81['isString'](_0x295580['commentId'])?'commentId:\x20string\x20expected':null!=_0x295580['commentThreadId']&&_0x295580['hasOwnProperty']('commentThreadId')&&!_0x1fbc81['isString'](_0x295580['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x295580['userId']&&_0x295580['hasOwnProperty']('userId')&&!_0x1fbc81['isString'](_0x295580['userId'])?'userId:\x20string\x20expected':null!=_0x295580['content']&&_0x295580['hasOwnProperty']('content')&&!_0x1fbc81['isString'](_0x295580['content'])?'content:\x20string\x20expected':null!=_0x295580['documentId']&&_0x295580['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x295580['documentId'])?'documentId:\x20string\x20expected':null!=_0x295580['createdAt']&&_0x295580['hasOwnProperty']('createdAt')&&!_0x1fbc81['isString'](_0x295580['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x295580['attributes']&&_0x295580['hasOwnProperty']('attributes')&&!_0x1fbc81['isString'](_0x295580['attributes'])?'attributes:\x20string\x20expected':null;},_0x5077c9['fromObject']=function(_0x20951b){if(_0x20951b instanceof _0x2a91e5['CommentDescriptor'])return _0x20951b;var _0xedef1b=new _0x2a91e5['CommentDescriptor']();return null!=_0x20951b['commentId']&&(_0xedef1b['commentId']=String(_0x20951b['commentId'])),null!=_0x20951b['commentThreadId']&&(_0xedef1b['commentThreadId']=String(_0x20951b['commentThreadId'])),null!=_0x20951b['userId']&&(_0xedef1b['userId']=String(_0x20951b['userId'])),null!=_0x20951b['content']&&(_0xedef1b['content']=String(_0x20951b['content'])),null!=_0x20951b['documentId']&&(_0xedef1b['documentId']=String(_0x20951b['documentId'])),null!=_0x20951b['createdAt']&&(_0xedef1b['createdAt']=String(_0x20951b['createdAt'])),null!=_0x20951b['attributes']&&(_0xedef1b['attributes']=String(_0x20951b['attributes'])),_0xedef1b;},_0x5077c9['toObject']=function(_0x1d1f76,_0x1f77ad){_0x1f77ad||(_0x1f77ad={});var _0x53a157={};return _0x1f77ad['defaults']&&(_0x53a157['commentId']='',_0x53a157['commentThreadId']='',_0x53a157['userId']='',_0x53a157['content']='',_0x53a157['documentId']='',_0x53a157['createdAt']='',_0x53a157['attributes']=''),null!=_0x1d1f76['commentId']&&_0x1d1f76['hasOwnProperty']('commentId')&&(_0x53a157['commentId']=_0x1d1f76['commentId']),null!=_0x1d1f76['commentThreadId']&&_0x1d1f76['hasOwnProperty']('commentThreadId')&&(_0x53a157['commentThreadId']=_0x1d1f76['commentThreadId']),null!=_0x1d1f76['userId']&&_0x1d1f76['hasOwnProperty']('userId')&&(_0x53a157['userId']=_0x1d1f76['userId']),null!=_0x1d1f76['content']&&_0x1d1f76['hasOwnProperty']('content')&&(_0x53a157['content']=_0x1d1f76['content']),null!=_0x1d1f76['documentId']&&_0x1d1f76['hasOwnProperty']('documentId')&&(_0x53a157['documentId']=_0x1d1f76['documentId']),null!=_0x1d1f76['createdAt']&&_0x1d1f76['hasOwnProperty']('createdAt')&&(_0x53a157['createdAt']=_0x1d1f76['createdAt']),null!=_0x1d1f76['attributes']&&_0x1d1f76['hasOwnProperty']('attributes')&&(_0x53a157['attributes']=_0x1d1f76['attributes']),_0x53a157;},_0x5077c9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5077c9['getTypeUrl']=function(_0x227d8b){return void 0x0===_0x227d8b&&(_0x227d8b='type.googleapis.com'),_0x227d8b+'/CommentDescriptor';},_0x5077c9;}()),_0x2a91e5['CommentsThreadDescriptor']=(function(){function _0x5f0998(_0x5d85b3){if(this['comments']=[],_0x5d85b3){for(var _0x3221ba=Object['keys'](_0x5d85b3),_0xac592e=0x0;_0xac592e<_0x3221ba['length'];++_0xac592e)null!=_0x5d85b3[_0x3221ba[_0xac592e]]&&(this[_0x3221ba[_0xac592e]]=_0x5d85b3[_0x3221ba[_0xac592e]]);}}return _0x5f0998['prototype']['commentThreadId']='',_0x5f0998['prototype']['comments']=_0x1fbc81['emptyArray'],_0x5f0998['prototype']['resolvedAt']='',_0x5f0998['prototype']['resolvedBy']='',_0x5f0998['prototype']['context']='',_0x5f0998['prototype']['createdAt']='',_0x5f0998['prototype']['deletedAt']='',_0x5f0998['prototype']['attributes']='',_0x5f0998['prototype']['unlinkedAt']='',_0x5f0998['create']=function(_0x2d2505){return new _0x5f0998(_0x2d2505);},_0x5f0998['encode']=function(_0x95b814,_0x3e6fa4){if(_0x3e6fa4||(_0x3e6fa4=_0x86a107['create']()),null!=_0x95b814['commentThreadId']&&Object['hasOwnProperty']['call'](_0x95b814,'commentThreadId')&&_0x3e6fa4['uint32'](0xa)['string'](_0x95b814['commentThreadId']),null!=_0x95b814['comments']&&_0x95b814['comments']['length']){for(var _0x49c1f8=0x0;_0x49c1f8<_0x95b814['comments']['length'];++_0x49c1f8)_0x2a91e5['CommentDescriptor']['encode'](_0x95b814['comments'][_0x49c1f8],_0x3e6fa4['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x95b814['resolvedAt']&&Object['hasOwnProperty']['call'](_0x95b814,'resolvedAt')&&_0x3e6fa4['uint32'](0x1a)['string'](_0x95b814['resolvedAt']),null!=_0x95b814['resolvedBy']&&Object['hasOwnProperty']['call'](_0x95b814,'resolvedBy')&&_0x3e6fa4['uint32'](0x22)['string'](_0x95b814['resolvedBy']),null!=_0x95b814['context']&&Object['hasOwnProperty']['call'](_0x95b814,'context')&&_0x3e6fa4['uint32'](0x2a)['string'](_0x95b814['context']),null!=_0x95b814['createdAt']&&Object['hasOwnProperty']['call'](_0x95b814,'createdAt')&&_0x3e6fa4['uint32'](0x32)['string'](_0x95b814['createdAt']),null!=_0x95b814['deletedAt']&&Object['hasOwnProperty']['call'](_0x95b814,'deletedAt')&&_0x3e6fa4['uint32'](0x3a)['string'](_0x95b814['deletedAt']),null!=_0x95b814['attributes']&&Object['hasOwnProperty']['call'](_0x95b814,'attributes')&&_0x3e6fa4['uint32'](0x42)['string'](_0x95b814['attributes']),null!=_0x95b814['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x95b814,'unlinkedAt')&&_0x3e6fa4['uint32'](0x4a)['string'](_0x95b814['unlinkedAt']),_0x3e6fa4;},_0x5f0998['encodeDelimited']=function(_0x45c85b,_0x4ad5f1){return this['encode'](_0x45c85b,_0x4ad5f1)['ldelim']();},_0x5f0998['decode']=function(_0x3b595a,_0x295f87,_0x3c650a){_0x3b595a instanceof _0x33fc5a||(_0x3b595a=_0x33fc5a['create'](_0x3b595a));for(var _0x3425d2=void 0x0===_0x295f87?_0x3b595a['len']:_0x3b595a['pos']+_0x295f87,_0x5a711e=new _0x2a91e5['CommentsThreadDescriptor']();_0x3b595a['pos']<_0x3425d2;){var _0x3cef31=_0x3b595a['uint32']();if(_0x3cef31===_0x3c650a)break;switch(_0x3cef31>>>0x3){case 0x1:_0x5a711e['commentThreadId']=_0x3b595a['string']();break;case 0x2:_0x5a711e['comments']&&_0x5a711e['comments']['length']||(_0x5a711e['comments']=[]),_0x5a711e['comments']['push'](_0x2a91e5['CommentDescriptor']['decode'](_0x3b595a,_0x3b595a['uint32']()));break;case 0x3:_0x5a711e['resolvedAt']=_0x3b595a['string']();break;case 0x4:_0x5a711e['resolvedBy']=_0x3b595a['string']();break;case 0x5:_0x5a711e['context']=_0x3b595a['string']();break;case 0x6:_0x5a711e['createdAt']=_0x3b595a['string']();break;case 0x7:_0x5a711e['deletedAt']=_0x3b595a['string']();break;case 0x8:_0x5a711e['attributes']=_0x3b595a['string']();break;case 0x9:_0x5a711e['unlinkedAt']=_0x3b595a['string']();break;default:_0x3b595a['skipType'](0x7&_0x3cef31);}}return _0x5a711e;},_0x5f0998['decodeDelimited']=function(_0x114a9d){return _0x114a9d instanceof _0x33fc5a||(_0x114a9d=new _0x33fc5a(_0x114a9d)),this['decode'](_0x114a9d,_0x114a9d['uint32']());},_0x5f0998['verify']=function(_0x163414){if('object'!=typeof _0x163414||null===_0x163414)return'object\x20expected';if(null!=_0x163414['commentThreadId']&&_0x163414['hasOwnProperty']('commentThreadId')&&!_0x1fbc81['isString'](_0x163414['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x163414['comments']&&_0x163414['hasOwnProperty']('comments')){if(!Array['isArray'](_0x163414['comments']))return'comments:\x20array\x20expected';for(var _0x550c11=0x0;_0x550c11<_0x163414['comments']['length'];++_0x550c11){var _0xe82f40=_0x2a91e5['CommentDescriptor']['verify'](_0x163414['comments'][_0x550c11]);if(_0xe82f40)return'comments.'+_0xe82f40;}}return null!=_0x163414['resolvedAt']&&_0x163414['hasOwnProperty']('resolvedAt')&&!_0x1fbc81['isString'](_0x163414['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x163414['resolvedBy']&&_0x163414['hasOwnProperty']('resolvedBy')&&!_0x1fbc81['isString'](_0x163414['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x163414['context']&&_0x163414['hasOwnProperty']('context')&&!_0x1fbc81['isString'](_0x163414['context'])?'context:\x20string\x20expected':null!=_0x163414['createdAt']&&_0x163414['hasOwnProperty']('createdAt')&&!_0x1fbc81['isString'](_0x163414['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x163414['deletedAt']&&_0x163414['hasOwnProperty']('deletedAt')&&!_0x1fbc81['isString'](_0x163414['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x163414['attributes']&&_0x163414['hasOwnProperty']('attributes')&&!_0x1fbc81['isString'](_0x163414['attributes'])?'attributes:\x20string\x20expected':null!=_0x163414['unlinkedAt']&&_0x163414['hasOwnProperty']('unlinkedAt')&&!_0x1fbc81['isString'](_0x163414['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x5f0998['fromObject']=function(_0x54e591){if(_0x54e591 instanceof _0x2a91e5['CommentsThreadDescriptor'])return _0x54e591;var _0x32748c=new _0x2a91e5['CommentsThreadDescriptor']();if(null!=_0x54e591['commentThreadId']&&(_0x32748c['commentThreadId']=String(_0x54e591['commentThreadId'])),_0x54e591['comments']){if(!Array['isArray'](_0x54e591['comments']))throw TypeError('.CommentsThreadDescriptor.comments:\x20array\x20expected');_0x32748c['comments']=[];for(var _0x2ec276=0x0;_0x2ec276<_0x54e591['comments']['length'];++_0x2ec276){if('object'!=typeof _0x54e591['comments'][_0x2ec276])throw TypeError('.CommentsThreadDescriptor.comments:\x20object\x20expected');_0x32748c['comments'][_0x2ec276]=_0x2a91e5['CommentDescriptor']['fromObject'](_0x54e591['comments'][_0x2ec276]);}}return null!=_0x54e591['resolvedAt']&&(_0x32748c['resolvedAt']=String(_0x54e591['resolvedAt'])),null!=_0x54e591['resolvedBy']&&(_0x32748c['resolvedBy']=String(_0x54e591['resolvedBy'])),null!=_0x54e591['context']&&(_0x32748c['context']=String(_0x54e591['context'])),null!=_0x54e591['createdAt']&&(_0x32748c['createdAt']=String(_0x54e591['createdAt'])),null!=_0x54e591['deletedAt']&&(_0x32748c['deletedAt']=String(_0x54e591['deletedAt'])),null!=_0x54e591['attributes']&&(_0x32748c['attributes']=String(_0x54e591['attributes'])),null!=_0x54e591['unlinkedAt']&&(_0x32748c['unlinkedAt']=String(_0x54e591['unlinkedAt'])),_0x32748c;},_0x5f0998['toObject']=function(_0x6008c8,_0xb20d7d){_0xb20d7d||(_0xb20d7d={});var _0x304f93={};if((_0xb20d7d['arrays']||_0xb20d7d['defaults'])&&(_0x304f93['comments']=[]),_0xb20d7d['defaults']&&(_0x304f93['commentThreadId']='',_0x304f93['resolvedAt']='',_0x304f93['resolvedBy']='',_0x304f93['context']='',_0x304f93['createdAt']='',_0x304f93['deletedAt']='',_0x304f93['attributes']='',_0x304f93['unlinkedAt']=''),null!=_0x6008c8['commentThreadId']&&_0x6008c8['hasOwnProperty']('commentThreadId')&&(_0x304f93['commentThreadId']=_0x6008c8['commentThreadId']),_0x6008c8['comments']&&_0x6008c8['comments']['length']){_0x304f93['comments']=[];for(var _0x35edb7=0x0;_0x35edb7<_0x6008c8['comments']['length'];++_0x35edb7)_0x304f93['comments'][_0x35edb7]=_0x2a91e5['CommentDescriptor']['toObject'](_0x6008c8['comments'][_0x35edb7],_0xb20d7d);}return null!=_0x6008c8['resolvedAt']&&_0x6008c8['hasOwnProperty']('resolvedAt')&&(_0x304f93['resolvedAt']=_0x6008c8['resolvedAt']),null!=_0x6008c8['resolvedBy']&&_0x6008c8['hasOwnProperty']('resolvedBy')&&(_0x304f93['resolvedBy']=_0x6008c8['resolvedBy']),null!=_0x6008c8['context']&&_0x6008c8['hasOwnProperty']('context')&&(_0x304f93['context']=_0x6008c8['context']),null!=_0x6008c8['createdAt']&&_0x6008c8['hasOwnProperty']('createdAt')&&(_0x304f93['createdAt']=_0x6008c8['createdAt']),null!=_0x6008c8['deletedAt']&&_0x6008c8['hasOwnProperty']('deletedAt')&&(_0x304f93['deletedAt']=_0x6008c8['deletedAt']),null!=_0x6008c8['attributes']&&_0x6008c8['hasOwnProperty']('attributes')&&(_0x304f93['attributes']=_0x6008c8['attributes']),null!=_0x6008c8['unlinkedAt']&&_0x6008c8['hasOwnProperty']('unlinkedAt')&&(_0x304f93['unlinkedAt']=_0x6008c8['unlinkedAt']),_0x304f93;},_0x5f0998['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5f0998['getTypeUrl']=function(_0x4f7c6d){return void 0x0===_0x4f7c6d&&(_0x4f7c6d='type.googleapis.com'),_0x4f7c6d+'/CommentsThreadDescriptor';},_0x5f0998;}()),_0x2a91e5['CommentThreadAddedCommentDescriptor']=(function(){function _0x73e2ff(_0x15b5ed){if(_0x15b5ed){for(var _0x10ae6e=Object['keys'](_0x15b5ed),_0x574713=0x0;_0x574713<_0x10ae6e['length'];++_0x574713)null!=_0x15b5ed[_0x10ae6e[_0x574713]]&&(this[_0x10ae6e[_0x574713]]=_0x15b5ed[_0x10ae6e[_0x574713]]);}}return _0x73e2ff['prototype']['commentId']='',_0x73e2ff['prototype']['createdAt']='',_0x73e2ff['create']=function(_0x4a26a5){return new _0x73e2ff(_0x4a26a5);},_0x73e2ff['encode']=function(_0x59ff63,_0x34a652){return _0x34a652||(_0x34a652=_0x86a107['create']()),null!=_0x59ff63['commentId']&&Object['hasOwnProperty']['call'](_0x59ff63,'commentId')&&_0x34a652['uint32'](0xa)['string'](_0x59ff63['commentId']),null!=_0x59ff63['createdAt']&&Object['hasOwnProperty']['call'](_0x59ff63,'createdAt')&&_0x34a652['uint32'](0x12)['string'](_0x59ff63['createdAt']),_0x34a652;},_0x73e2ff['encodeDelimited']=function(_0x517c0c,_0xcd6c12){return this['encode'](_0x517c0c,_0xcd6c12)['ldelim']();},_0x73e2ff['decode']=function(_0x4783d0,_0xf0c496,_0x4fef60){_0x4783d0 instanceof _0x33fc5a||(_0x4783d0=_0x33fc5a['create'](_0x4783d0));for(var _0x433e8c=void 0x0===_0xf0c496?_0x4783d0['len']:_0x4783d0['pos']+_0xf0c496,_0x38ce5e=new _0x2a91e5['CommentThreadAddedCommentDescriptor']();_0x4783d0['pos']<_0x433e8c;){var _0x1fc046=_0x4783d0['uint32']();if(_0x1fc046===_0x4fef60)break;switch(_0x1fc046>>>0x3){case 0x1:_0x38ce5e['commentId']=_0x4783d0['string']();break;case 0x2:_0x38ce5e['createdAt']=_0x4783d0['string']();break;default:_0x4783d0['skipType'](0x7&_0x1fc046);}}return _0x38ce5e;},_0x73e2ff['decodeDelimited']=function(_0x20f298){return _0x20f298 instanceof _0x33fc5a||(_0x20f298=new _0x33fc5a(_0x20f298)),this['decode'](_0x20f298,_0x20f298['uint32']());},_0x73e2ff['verify']=function(_0xad4db3){return'object'!=typeof _0xad4db3||null===_0xad4db3?'object\x20expected':null!=_0xad4db3['commentId']&&_0xad4db3['hasOwnProperty']('commentId')&&!_0x1fbc81['isString'](_0xad4db3['commentId'])?'commentId:\x20string\x20expected':null!=_0xad4db3['createdAt']&&_0xad4db3['hasOwnProperty']('createdAt')&&!_0x1fbc81['isString'](_0xad4db3['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x73e2ff['fromObject']=function(_0x716f9d){if(_0x716f9d instanceof _0x2a91e5['CommentThreadAddedCommentDescriptor'])return _0x716f9d;var _0x1432ed=new _0x2a91e5['CommentThreadAddedCommentDescriptor']();return null!=_0x716f9d['commentId']&&(_0x1432ed['commentId']=String(_0x716f9d['commentId'])),null!=_0x716f9d['createdAt']&&(_0x1432ed['createdAt']=String(_0x716f9d['createdAt'])),_0x1432ed;},_0x73e2ff['toObject']=function(_0x238845,_0x55402b){_0x55402b||(_0x55402b={});var _0x5eb2f5={};return _0x55402b['defaults']&&(_0x5eb2f5['commentId']='',_0x5eb2f5['createdAt']=''),null!=_0x238845['commentId']&&_0x238845['hasOwnProperty']('commentId')&&(_0x5eb2f5['commentId']=_0x238845['commentId']),null!=_0x238845['createdAt']&&_0x238845['hasOwnProperty']('createdAt')&&(_0x5eb2f5['createdAt']=_0x238845['createdAt']),_0x5eb2f5;},_0x73e2ff['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x73e2ff['getTypeUrl']=function(_0x581f4f){return void 0x0===_0x581f4f&&(_0x581f4f='type.googleapis.com'),_0x581f4f+'/CommentThreadAddedCommentDescriptor';},_0x73e2ff;}()),_0x2a91e5['CommentsV2AddCommentMessage']=(function(){function _0xbd6a6(_0x18d835){if(_0x18d835){for(var _0x62a860=Object['keys'](_0x18d835),_0x415a0a=0x0;_0x415a0a<_0x62a860['length'];++_0x415a0a)null!=_0x18d835[_0x62a860[_0x415a0a]]&&(this[_0x62a860[_0x415a0a]]=_0x18d835[_0x62a860[_0x415a0a]]);}}return _0xbd6a6['prototype']['commentThreadId']='',_0xbd6a6['prototype']['content']='',_0xbd6a6['prototype']['documentId']='',_0xbd6a6['prototype']['commentId']='',_0xbd6a6['prototype']['createdAt']='',_0xbd6a6['prototype']['userId']='',_0xbd6a6['prototype']['attributes']='',_0xbd6a6['prototype']['commentThread']=null,_0xbd6a6['create']=function(_0x64a22e){return new _0xbd6a6(_0x64a22e);},_0xbd6a6['encode']=function(_0x5e83cf,_0x41775b){return _0x41775b||(_0x41775b=_0x86a107['create']()),null!=_0x5e83cf['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5e83cf,'commentThreadId')&&_0x41775b['uint32'](0xa)['string'](_0x5e83cf['commentThreadId']),null!=_0x5e83cf['content']&&Object['hasOwnProperty']['call'](_0x5e83cf,'content')&&_0x41775b['uint32'](0x12)['string'](_0x5e83cf['content']),null!=_0x5e83cf['documentId']&&Object['hasOwnProperty']['call'](_0x5e83cf,'documentId')&&_0x41775b['uint32'](0x1a)['string'](_0x5e83cf['documentId']),null!=_0x5e83cf['commentId']&&Object['hasOwnProperty']['call'](_0x5e83cf,'commentId')&&_0x41775b['uint32'](0x22)['string'](_0x5e83cf['commentId']),null!=_0x5e83cf['createdAt']&&Object['hasOwnProperty']['call'](_0x5e83cf,'createdAt')&&_0x41775b['uint32'](0x2a)['string'](_0x5e83cf['createdAt']),null!=_0x5e83cf['userId']&&Object['hasOwnProperty']['call'](_0x5e83cf,'userId')&&_0x41775b['uint32'](0x32)['string'](_0x5e83cf['userId']),null!=_0x5e83cf['attributes']&&Object['hasOwnProperty']['call'](_0x5e83cf,'attributes')&&_0x41775b['uint32'](0x3a)['string'](_0x5e83cf['attributes']),null!=_0x5e83cf['commentThread']&&Object['hasOwnProperty']['call'](_0x5e83cf,'commentThread')&&_0x2a91e5['CommentsThreadDescriptor']['encode'](_0x5e83cf['commentThread'],_0x41775b['uint32'](0x42)['fork']())['ldelim'](),_0x41775b;},_0xbd6a6['encodeDelimited']=function(_0x2d846e,_0x4c7289){return this['encode'](_0x2d846e,_0x4c7289)['ldelim']();},_0xbd6a6['decode']=function(_0x133848,_0x4961eb,_0x3db83b){_0x133848 instanceof _0x33fc5a||(_0x133848=_0x33fc5a['create'](_0x133848));for(var _0x4bd290=void 0x0===_0x4961eb?_0x133848['len']:_0x133848['pos']+_0x4961eb,_0x7fc3b0=new _0x2a91e5['CommentsV2AddCommentMessage']();_0x133848['pos']<_0x4bd290;){var _0x284270=_0x133848['uint32']();if(_0x284270===_0x3db83b)break;switch(_0x284270>>>0x3){case 0x1:_0x7fc3b0['commentThreadId']=_0x133848['string']();break;case 0x2:_0x7fc3b0['content']=_0x133848['string']();break;case 0x3:_0x7fc3b0['documentId']=_0x133848['string']();break;case 0x4:_0x7fc3b0['commentId']=_0x133848['string']();break;case 0x5:_0x7fc3b0['createdAt']=_0x133848['string']();break;case 0x6:_0x7fc3b0['userId']=_0x133848['string']();break;case 0x7:_0x7fc3b0['attributes']=_0x133848['string']();break;case 0x8:_0x7fc3b0['commentThread']=_0x2a91e5['CommentsThreadDescriptor']['decode'](_0x133848,_0x133848['uint32']());break;default:_0x133848['skipType'](0x7&_0x284270);}}return _0x7fc3b0;},_0xbd6a6['decodeDelimited']=function(_0x33b09d){return _0x33b09d instanceof _0x33fc5a||(_0x33b09d=new _0x33fc5a(_0x33b09d)),this['decode'](_0x33b09d,_0x33b09d['uint32']());},_0xbd6a6['verify']=function(_0x427766){if('object'!=typeof _0x427766||null===_0x427766)return'object\x20expected';if(null!=_0x427766['commentThreadId']&&_0x427766['hasOwnProperty']('commentThreadId')&&!_0x1fbc81['isString'](_0x427766['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x427766['content']&&_0x427766['hasOwnProperty']('content')&&!_0x1fbc81['isString'](_0x427766['content']))return'content:\x20string\x20expected';if(null!=_0x427766['documentId']&&_0x427766['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x427766['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x427766['commentId']&&_0x427766['hasOwnProperty']('commentId')&&!_0x1fbc81['isString'](_0x427766['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x427766['createdAt']&&_0x427766['hasOwnProperty']('createdAt')&&!_0x1fbc81['isString'](_0x427766['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x427766['userId']&&_0x427766['hasOwnProperty']('userId')&&!_0x1fbc81['isString'](_0x427766['userId']))return'userId:\x20string\x20expected';if(null!=_0x427766['attributes']&&_0x427766['hasOwnProperty']('attributes')&&!_0x1fbc81['isString'](_0x427766['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x427766['commentThread']&&_0x427766['hasOwnProperty']('commentThread')){var _0x4f6c76=_0x2a91e5['CommentsThreadDescriptor']['verify'](_0x427766['commentThread']);if(_0x4f6c76)return'commentThread.'+_0x4f6c76;}return null;},_0xbd6a6['fromObject']=function(_0x175545){if(_0x175545 instanceof _0x2a91e5['CommentsV2AddCommentMessage'])return _0x175545;var _0x5c9735=new _0x2a91e5['CommentsV2AddCommentMessage']();if(null!=_0x175545['commentThreadId']&&(_0x5c9735['commentThreadId']=String(_0x175545['commentThreadId'])),null!=_0x175545['content']&&(_0x5c9735['content']=String(_0x175545['content'])),null!=_0x175545['documentId']&&(_0x5c9735['documentId']=String(_0x175545['documentId'])),null!=_0x175545['commentId']&&(_0x5c9735['commentId']=String(_0x175545['commentId'])),null!=_0x175545['createdAt']&&(_0x5c9735['createdAt']=String(_0x175545['createdAt'])),null!=_0x175545['userId']&&(_0x5c9735['userId']=String(_0x175545['userId'])),null!=_0x175545['attributes']&&(_0x5c9735['attributes']=String(_0x175545['attributes'])),null!=_0x175545['commentThread']){if('object'!=typeof _0x175545['commentThread'])throw TypeError('.CommentsV2AddCommentMessage.commentThread:\x20object\x20expected');_0x5c9735['commentThread']=_0x2a91e5['CommentsThreadDescriptor']['fromObject'](_0x175545['commentThread']);}return _0x5c9735;},_0xbd6a6['toObject']=function(_0x3f87c5,_0x1994cb){_0x1994cb||(_0x1994cb={});var _0xdb90c5={};return _0x1994cb['defaults']&&(_0xdb90c5['commentThreadId']='',_0xdb90c5['content']='',_0xdb90c5['documentId']='',_0xdb90c5['commentId']='',_0xdb90c5['createdAt']='',_0xdb90c5['userId']='',_0xdb90c5['attributes']='',_0xdb90c5['commentThread']=null),null!=_0x3f87c5['commentThreadId']&&_0x3f87c5['hasOwnProperty']('commentThreadId')&&(_0xdb90c5['commentThreadId']=_0x3f87c5['commentThreadId']),null!=_0x3f87c5['content']&&_0x3f87c5['hasOwnProperty']('content')&&(_0xdb90c5['content']=_0x3f87c5['content']),null!=_0x3f87c5['documentId']&&_0x3f87c5['hasOwnProperty']('documentId')&&(_0xdb90c5['documentId']=_0x3f87c5['documentId']),null!=_0x3f87c5['commentId']&&_0x3f87c5['hasOwnProperty']('commentId')&&(_0xdb90c5['commentId']=_0x3f87c5['commentId']),null!=_0x3f87c5['createdAt']&&_0x3f87c5['hasOwnProperty']('createdAt')&&(_0xdb90c5['createdAt']=_0x3f87c5['createdAt']),null!=_0x3f87c5['userId']&&_0x3f87c5['hasOwnProperty']('userId')&&(_0xdb90c5['userId']=_0x3f87c5['userId']),null!=_0x3f87c5['attributes']&&_0x3f87c5['hasOwnProperty']('attributes')&&(_0xdb90c5['attributes']=_0x3f87c5['attributes']),null!=_0x3f87c5['commentThread']&&_0x3f87c5['hasOwnProperty']('commentThread')&&(_0xdb90c5['commentThread']=_0x2a91e5['CommentsThreadDescriptor']['toObject'](_0x3f87c5['commentThread'],_0x1994cb)),_0xdb90c5;},_0xbd6a6['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xbd6a6['getTypeUrl']=function(_0x10a806){return void 0x0===_0x10a806&&(_0x10a806='type.googleapis.com'),_0x10a806+'/CommentsV2AddCommentMessage';},_0xbd6a6;}()),_0x2a91e5['CommentsV2AddCommentThreadMessage']=(function(){function _0x53f177(_0x5a8577){if(this['comments']=[],_0x5a8577){for(var _0x4e0d83=Object['keys'](_0x5a8577),_0xc7e54e=0x0;_0xc7e54e<_0x4e0d83['length'];++_0xc7e54e)null!=_0x5a8577[_0x4e0d83[_0xc7e54e]]&&(this[_0x4e0d83[_0xc7e54e]]=_0x5a8577[_0x4e0d83[_0xc7e54e]]);}}return _0x53f177['prototype']['documentId']='',_0x53f177['prototype']['commentThreadId']='',_0x53f177['prototype']['context']='',_0x53f177['prototype']['createdAt']='',_0x53f177['prototype']['resolvedAt']='',_0x53f177['prototype']['resolvedBy']='',_0x53f177['prototype']['attributes']='',_0x53f177['prototype']['deletedAt']='',_0x53f177['prototype']['comments']=_0x1fbc81['emptyArray'],_0x53f177['create']=function(_0xb6f8db){return new _0x53f177(_0xb6f8db);},_0x53f177['encode']=function(_0x1e8368,_0x25371e){if(_0x25371e||(_0x25371e=_0x86a107['create']()),null!=_0x1e8368['documentId']&&Object['hasOwnProperty']['call'](_0x1e8368,'documentId')&&_0x25371e['uint32'](0xa)['string'](_0x1e8368['documentId']),null!=_0x1e8368['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1e8368,'commentThreadId')&&_0x25371e['uint32'](0x12)['string'](_0x1e8368['commentThreadId']),null!=_0x1e8368['context']&&Object['hasOwnProperty']['call'](_0x1e8368,'context')&&_0x25371e['uint32'](0x1a)['string'](_0x1e8368['context']),null!=_0x1e8368['createdAt']&&Object['hasOwnProperty']['call'](_0x1e8368,'createdAt')&&_0x25371e['uint32'](0x22)['string'](_0x1e8368['createdAt']),null!=_0x1e8368['resolvedAt']&&Object['hasOwnProperty']['call'](_0x1e8368,'resolvedAt')&&_0x25371e['uint32'](0x2a)['string'](_0x1e8368['resolvedAt']),null!=_0x1e8368['resolvedBy']&&Object['hasOwnProperty']['call'](_0x1e8368,'resolvedBy')&&_0x25371e['uint32'](0x32)['string'](_0x1e8368['resolvedBy']),null!=_0x1e8368['attributes']&&Object['hasOwnProperty']['call'](_0x1e8368,'attributes')&&_0x25371e['uint32'](0x3a)['string'](_0x1e8368['attributes']),null!=_0x1e8368['deletedAt']&&Object['hasOwnProperty']['call'](_0x1e8368,'deletedAt')&&_0x25371e['uint32'](0x42)['string'](_0x1e8368['deletedAt']),null!=_0x1e8368['comments']&&_0x1e8368['comments']['length']){for(var _0x1d588f=0x0;_0x1d588f<_0x1e8368['comments']['length'];++_0x1d588f)_0x2a91e5['CommentDescriptor']['encode'](_0x1e8368['comments'][_0x1d588f],_0x25371e['uint32'](0x4a)['fork']())['ldelim']();}return _0x25371e;},_0x53f177['encodeDelimited']=function(_0x5be1f6,_0x4564e9){return this['encode'](_0x5be1f6,_0x4564e9)['ldelim']();},_0x53f177['decode']=function(_0x2b665c,_0x396d60,_0x17222e){_0x2b665c instanceof _0x33fc5a||(_0x2b665c=_0x33fc5a['create'](_0x2b665c));for(var _0x1fc7c8=void 0x0===_0x396d60?_0x2b665c['len']:_0x2b665c['pos']+_0x396d60,_0x58998c=new _0x2a91e5['CommentsV2AddCommentThreadMessage']();_0x2b665c['pos']<_0x1fc7c8;){var _0x4f2ecb=_0x2b665c['uint32']();if(_0x4f2ecb===_0x17222e)break;switch(_0x4f2ecb>>>0x3){case 0x1:_0x58998c['documentId']=_0x2b665c['string']();break;case 0x2:_0x58998c['commentThreadId']=_0x2b665c['string']();break;case 0x3:_0x58998c['context']=_0x2b665c['string']();break;case 0x4:_0x58998c['createdAt']=_0x2b665c['string']();break;case 0x5:_0x58998c['resolvedAt']=_0x2b665c['string']();break;case 0x6:_0x58998c['resolvedBy']=_0x2b665c['string']();break;case 0x7:_0x58998c['attributes']=_0x2b665c['string']();break;case 0x8:_0x58998c['deletedAt']=_0x2b665c['string']();break;case 0x9:_0x58998c['comments']&&_0x58998c['comments']['length']||(_0x58998c['comments']=[]),_0x58998c['comments']['push'](_0x2a91e5['CommentDescriptor']['decode'](_0x2b665c,_0x2b665c['uint32']()));break;default:_0x2b665c['skipType'](0x7&_0x4f2ecb);}}return _0x58998c;},_0x53f177['decodeDelimited']=function(_0x49ebf2){return _0x49ebf2 instanceof _0x33fc5a||(_0x49ebf2=new _0x33fc5a(_0x49ebf2)),this['decode'](_0x49ebf2,_0x49ebf2['uint32']());},_0x53f177['verify']=function(_0x172bbb){if('object'!=typeof _0x172bbb||null===_0x172bbb)return'object\x20expected';if(null!=_0x172bbb['documentId']&&_0x172bbb['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x172bbb['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x172bbb['commentThreadId']&&_0x172bbb['hasOwnProperty']('commentThreadId')&&!_0x1fbc81['isString'](_0x172bbb['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x172bbb['context']&&_0x172bbb['hasOwnProperty']('context')&&!_0x1fbc81['isString'](_0x172bbb['context']))return'context:\x20string\x20expected';if(null!=_0x172bbb['createdAt']&&_0x172bbb['hasOwnProperty']('createdAt')&&!_0x1fbc81['isString'](_0x172bbb['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x172bbb['resolvedAt']&&_0x172bbb['hasOwnProperty']('resolvedAt')&&!_0x1fbc81['isString'](_0x172bbb['resolvedAt']))return'resolvedAt:\x20string\x20expected';if(null!=_0x172bbb['resolvedBy']&&_0x172bbb['hasOwnProperty']('resolvedBy')&&!_0x1fbc81['isString'](_0x172bbb['resolvedBy']))return'resolvedBy:\x20string\x20expected';if(null!=_0x172bbb['attributes']&&_0x172bbb['hasOwnProperty']('attributes')&&!_0x1fbc81['isString'](_0x172bbb['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x172bbb['deletedAt']&&_0x172bbb['hasOwnProperty']('deletedAt')&&!_0x1fbc81['isString'](_0x172bbb['deletedAt']))return'deletedAt:\x20string\x20expected';if(null!=_0x172bbb['comments']&&_0x172bbb['hasOwnProperty']('comments')){if(!Array['isArray'](_0x172bbb['comments']))return'comments:\x20array\x20expected';for(var _0x5502a3=0x0;_0x5502a3<_0x172bbb['comments']['length'];++_0x5502a3){var _0x5ec4e5=_0x2a91e5['CommentDescriptor']['verify'](_0x172bbb['comments'][_0x5502a3]);if(_0x5ec4e5)return'comments.'+_0x5ec4e5;}}return null;},_0x53f177['fromObject']=function(_0x4336c8){if(_0x4336c8 instanceof _0x2a91e5['CommentsV2AddCommentThreadMessage'])return _0x4336c8;var _0xc73899=new _0x2a91e5['CommentsV2AddCommentThreadMessage']();if(null!=_0x4336c8['documentId']&&(_0xc73899['documentId']=String(_0x4336c8['documentId'])),null!=_0x4336c8['commentThreadId']&&(_0xc73899['commentThreadId']=String(_0x4336c8['commentThreadId'])),null!=_0x4336c8['context']&&(_0xc73899['context']=String(_0x4336c8['context'])),null!=_0x4336c8['createdAt']&&(_0xc73899['createdAt']=String(_0x4336c8['createdAt'])),null!=_0x4336c8['resolvedAt']&&(_0xc73899['resolvedAt']=String(_0x4336c8['resolvedAt'])),null!=_0x4336c8['resolvedBy']&&(_0xc73899['resolvedBy']=String(_0x4336c8['resolvedBy'])),null!=_0x4336c8['attributes']&&(_0xc73899['attributes']=String(_0x4336c8['attributes'])),null!=_0x4336c8['deletedAt']&&(_0xc73899['deletedAt']=String(_0x4336c8['deletedAt'])),_0x4336c8['comments']){if(!Array['isArray'](_0x4336c8['comments']))throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20array\x20expected');_0xc73899['comments']=[];for(var _0x1243ed=0x0;_0x1243ed<_0x4336c8['comments']['length'];++_0x1243ed){if('object'!=typeof _0x4336c8['comments'][_0x1243ed])throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20object\x20expected');_0xc73899['comments'][_0x1243ed]=_0x2a91e5['CommentDescriptor']['fromObject'](_0x4336c8['comments'][_0x1243ed]);}}return _0xc73899;},_0x53f177['toObject']=function(_0x564cc5,_0x404e2f){_0x404e2f||(_0x404e2f={});var _0xa30050={};if((_0x404e2f['arrays']||_0x404e2f['defaults'])&&(_0xa30050['comments']=[]),_0x404e2f['defaults']&&(_0xa30050['documentId']='',_0xa30050['commentThreadId']='',_0xa30050['context']='',_0xa30050['createdAt']='',_0xa30050['resolvedAt']='',_0xa30050['resolvedBy']='',_0xa30050['attributes']='',_0xa30050['deletedAt']=''),null!=_0x564cc5['documentId']&&_0x564cc5['hasOwnProperty']('documentId')&&(_0xa30050['documentId']=_0x564cc5['documentId']),null!=_0x564cc5['commentThreadId']&&_0x564cc5['hasOwnProperty']('commentThreadId')&&(_0xa30050['commentThreadId']=_0x564cc5['commentThreadId']),null!=_0x564cc5['context']&&_0x564cc5['hasOwnProperty']('context')&&(_0xa30050['context']=_0x564cc5['context']),null!=_0x564cc5['createdAt']&&_0x564cc5['hasOwnProperty']('createdAt')&&(_0xa30050['createdAt']=_0x564cc5['createdAt']),null!=_0x564cc5['resolvedAt']&&_0x564cc5['hasOwnProperty']('resolvedAt')&&(_0xa30050['resolvedAt']=_0x564cc5['resolvedAt']),null!=_0x564cc5['resolvedBy']&&_0x564cc5['hasOwnProperty']('resolvedBy')&&(_0xa30050['resolvedBy']=_0x564cc5['resolvedBy']),null!=_0x564cc5['attributes']&&_0x564cc5['hasOwnProperty']('attributes')&&(_0xa30050['attributes']=_0x564cc5['attributes']),null!=_0x564cc5['deletedAt']&&_0x564cc5['hasOwnProperty']('deletedAt')&&(_0xa30050['deletedAt']=_0x564cc5['deletedAt']),_0x564cc5['comments']&&_0x564cc5['comments']['length']){_0xa30050['comments']=[];for(var _0x59a2f6=0x0;_0x59a2f6<_0x564cc5['comments']['length'];++_0x59a2f6)_0xa30050['comments'][_0x59a2f6]=_0x2a91e5['CommentDescriptor']['toObject'](_0x564cc5['comments'][_0x59a2f6],_0x404e2f);}return _0xa30050;},_0x53f177['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x53f177['getTypeUrl']=function(_0x4ef660){return void 0x0===_0x4ef660&&(_0x4ef660='type.googleapis.com'),_0x4ef660+'/CommentsV2AddCommentThreadMessage';},_0x53f177;}()),_0x2a91e5['CommentsV2ReopenCommentThreadMessage']=(function(){function _0x32d3ca(_0x57a3d6){if(_0x57a3d6){for(var _0x49501b=Object['keys'](_0x57a3d6),_0x56ddde=0x0;_0x56ddde<_0x49501b['length'];++_0x56ddde)null!=_0x57a3d6[_0x49501b[_0x56ddde]]&&(this[_0x49501b[_0x56ddde]]=_0x57a3d6[_0x49501b[_0x56ddde]]);}}return _0x32d3ca['prototype']['commentThreadId']='',_0x32d3ca['prototype']['documentId']='',_0x32d3ca['create']=function(_0x167250){return new _0x32d3ca(_0x167250);},_0x32d3ca['encode']=function(_0x8c9933,_0x3edb76){return _0x3edb76||(_0x3edb76=_0x86a107['create']()),null!=_0x8c9933['commentThreadId']&&Object['hasOwnProperty']['call'](_0x8c9933,'commentThreadId')&&_0x3edb76['uint32'](0xa)['string'](_0x8c9933['commentThreadId']),null!=_0x8c9933['documentId']&&Object['hasOwnProperty']['call'](_0x8c9933,'documentId')&&_0x3edb76['uint32'](0x12)['string'](_0x8c9933['documentId']),_0x3edb76;},_0x32d3ca['encodeDelimited']=function(_0x1ee05e,_0x1204e8){return this['encode'](_0x1ee05e,_0x1204e8)['ldelim']();},_0x32d3ca['decode']=function(_0x2f1bce,_0x2bde4f,_0x238954){_0x2f1bce instanceof _0x33fc5a||(_0x2f1bce=_0x33fc5a['create'](_0x2f1bce));for(var _0x126f35=void 0x0===_0x2bde4f?_0x2f1bce['len']:_0x2f1bce['pos']+_0x2bde4f,_0xb1b1fe=new _0x2a91e5['CommentsV2ReopenCommentThreadMessage']();_0x2f1bce['pos']<_0x126f35;){var _0x374f9f=_0x2f1bce['uint32']();if(_0x374f9f===_0x238954)break;switch(_0x374f9f>>>0x3){case 0x1:_0xb1b1fe['commentThreadId']=_0x2f1bce['string']();break;case 0x2:_0xb1b1fe['documentId']=_0x2f1bce['string']();break;default:_0x2f1bce['skipType'](0x7&_0x374f9f);}}return _0xb1b1fe;},_0x32d3ca['decodeDelimited']=function(_0x5186b4){return _0x5186b4 instanceof _0x33fc5a||(_0x5186b4=new _0x33fc5a(_0x5186b4)),this['decode'](_0x5186b4,_0x5186b4['uint32']());},_0x32d3ca['verify']=function(_0x4fc39c){return'object'!=typeof _0x4fc39c||null===_0x4fc39c?'object\x20expected':null!=_0x4fc39c['commentThreadId']&&_0x4fc39c['hasOwnProperty']('commentThreadId')&&!_0x1fbc81['isString'](_0x4fc39c['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x4fc39c['documentId']&&_0x4fc39c['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x4fc39c['documentId'])?'documentId:\x20string\x20expected':null;},_0x32d3ca['fromObject']=function(_0x5c6bea){if(_0x5c6bea instanceof _0x2a91e5['CommentsV2ReopenCommentThreadMessage'])return _0x5c6bea;var _0x4bde78=new _0x2a91e5['CommentsV2ReopenCommentThreadMessage']();return null!=_0x5c6bea['commentThreadId']&&(_0x4bde78['commentThreadId']=String(_0x5c6bea['commentThreadId'])),null!=_0x5c6bea['documentId']&&(_0x4bde78['documentId']=String(_0x5c6bea['documentId'])),_0x4bde78;},_0x32d3ca['toObject']=function(_0x325974,_0x300f09){_0x300f09||(_0x300f09={});var _0x268f93={};return _0x300f09['defaults']&&(_0x268f93['commentThreadId']='',_0x268f93['documentId']=''),null!=_0x325974['commentThreadId']&&_0x325974['hasOwnProperty']('commentThreadId')&&(_0x268f93['commentThreadId']=_0x325974['commentThreadId']),null!=_0x325974['documentId']&&_0x325974['hasOwnProperty']('documentId')&&(_0x268f93['documentId']=_0x325974['documentId']),_0x268f93;},_0x32d3ca['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x32d3ca['getTypeUrl']=function(_0x563931){return void 0x0===_0x563931&&(_0x563931='type.googleapis.com'),_0x563931+'/CommentsV2ReopenCommentThreadMessage';},_0x32d3ca;}()),_0x2a91e5['CommentsV2ResolveCommentThreadMessage']=(function(){function _0x548673(_0x4ff34c){if(_0x4ff34c){for(var _0x512a05=Object['keys'](_0x4ff34c),_0x3613ea=0x0;_0x3613ea<_0x512a05['length'];++_0x3613ea)null!=_0x4ff34c[_0x512a05[_0x3613ea]]&&(this[_0x512a05[_0x3613ea]]=_0x4ff34c[_0x512a05[_0x3613ea]]);}}return _0x548673['prototype']['commentThreadId']='',_0x548673['prototype']['documentId']='',_0x548673['prototype']['resolvedBy']='',_0x548673['prototype']['resolvedAt']='',_0x548673['create']=function(_0x42c654){return new _0x548673(_0x42c654);},_0x548673['encode']=function(_0x542b53,_0x2c2ffc){return _0x2c2ffc||(_0x2c2ffc=_0x86a107['create']()),null!=_0x542b53['commentThreadId']&&Object['hasOwnProperty']['call'](_0x542b53,'commentThreadId')&&_0x2c2ffc['uint32'](0xa)['string'](_0x542b53['commentThreadId']),null!=_0x542b53['documentId']&&Object['hasOwnProperty']['call'](_0x542b53,'documentId')&&_0x2c2ffc['uint32'](0x12)['string'](_0x542b53['documentId']),null!=_0x542b53['resolvedBy']&&Object['hasOwnProperty']['call'](_0x542b53,'resolvedBy')&&_0x2c2ffc['uint32'](0x1a)['string'](_0x542b53['resolvedBy']),null!=_0x542b53['resolvedAt']&&Object['hasOwnProperty']['call'](_0x542b53,'resolvedAt')&&_0x2c2ffc['uint32'](0x22)['string'](_0x542b53['resolvedAt']),_0x2c2ffc;},_0x548673['encodeDelimited']=function(_0x24bf77,_0x4b6060){return this['encode'](_0x24bf77,_0x4b6060)['ldelim']();},_0x548673['decode']=function(_0x1cb600,_0x17f0f2,_0x2ea77d){_0x1cb600 instanceof _0x33fc5a||(_0x1cb600=_0x33fc5a['create'](_0x1cb600));for(var _0x37a69f=void 0x0===_0x17f0f2?_0x1cb600['len']:_0x1cb600['pos']+_0x17f0f2,_0x2c8074=new _0x2a91e5['CommentsV2ResolveCommentThreadMessage']();_0x1cb600['pos']<_0x37a69f;){var _0x1093a5=_0x1cb600['uint32']();if(_0x1093a5===_0x2ea77d)break;switch(_0x1093a5>>>0x3){case 0x1:_0x2c8074['commentThreadId']=_0x1cb600['string']();break;case 0x2:_0x2c8074['documentId']=_0x1cb600['string']();break;case 0x3:_0x2c8074['resolvedBy']=_0x1cb600['string']();break;case 0x4:_0x2c8074['resolvedAt']=_0x1cb600['string']();break;default:_0x1cb600['skipType'](0x7&_0x1093a5);}}return _0x2c8074;},_0x548673['decodeDelimited']=function(_0x588755){return _0x588755 instanceof _0x33fc5a||(_0x588755=new _0x33fc5a(_0x588755)),this['decode'](_0x588755,_0x588755['uint32']());},_0x548673['verify']=function(_0x1fe81b){return'object'!=typeof _0x1fe81b||null===_0x1fe81b?'object\x20expected':null!=_0x1fe81b['commentThreadId']&&_0x1fe81b['hasOwnProperty']('commentThreadId')&&!_0x1fbc81['isString'](_0x1fe81b['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x1fe81b['documentId']&&_0x1fe81b['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x1fe81b['documentId'])?'documentId:\x20string\x20expected':null!=_0x1fe81b['resolvedBy']&&_0x1fe81b['hasOwnProperty']('resolvedBy')&&!_0x1fbc81['isString'](_0x1fe81b['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x1fe81b['resolvedAt']&&_0x1fe81b['hasOwnProperty']('resolvedAt')&&!_0x1fbc81['isString'](_0x1fe81b['resolvedAt'])?'resolvedAt:\x20string\x20expected':null;},_0x548673['fromObject']=function(_0xf4ebd7){if(_0xf4ebd7 instanceof _0x2a91e5['CommentsV2ResolveCommentThreadMessage'])return _0xf4ebd7;var _0x19aba4=new _0x2a91e5['CommentsV2ResolveCommentThreadMessage']();return null!=_0xf4ebd7['commentThreadId']&&(_0x19aba4['commentThreadId']=String(_0xf4ebd7['commentThreadId'])),null!=_0xf4ebd7['documentId']&&(_0x19aba4['documentId']=String(_0xf4ebd7['documentId'])),null!=_0xf4ebd7['resolvedBy']&&(_0x19aba4['resolvedBy']=String(_0xf4ebd7['resolvedBy'])),null!=_0xf4ebd7['resolvedAt']&&(_0x19aba4['resolvedAt']=String(_0xf4ebd7['resolvedAt'])),_0x19aba4;},_0x548673['toObject']=function(_0x146d94,_0x5c7716){_0x5c7716||(_0x5c7716={});var _0x56b137={};return _0x5c7716['defaults']&&(_0x56b137['commentThreadId']='',_0x56b137['documentId']='',_0x56b137['resolvedBy']='',_0x56b137['resolvedAt']=''),null!=_0x146d94['commentThreadId']&&_0x146d94['hasOwnProperty']('commentThreadId')&&(_0x56b137['commentThreadId']=_0x146d94['commentThreadId']),null!=_0x146d94['documentId']&&_0x146d94['hasOwnProperty']('documentId')&&(_0x56b137['documentId']=_0x146d94['documentId']),null!=_0x146d94['resolvedBy']&&_0x146d94['hasOwnProperty']('resolvedBy')&&(_0x56b137['resolvedBy']=_0x146d94['resolvedBy']),null!=_0x146d94['resolvedAt']&&_0x146d94['hasOwnProperty']('resolvedAt')&&(_0x56b137['resolvedAt']=_0x146d94['resolvedAt']),_0x56b137;},_0x548673['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x548673['getTypeUrl']=function(_0x573f37){return void 0x0===_0x573f37&&(_0x573f37='type.googleapis.com'),_0x573f37+'/CommentsV2ResolveCommentThreadMessage';},_0x548673;}()),_0x2a91e5['CommentsV2UpdateCommentThreadMessage']=(function(){function _0x5af374(_0x16bbe5){if(_0x16bbe5){for(var _0x118c97=Object['keys'](_0x16bbe5),_0xba10b6=0x0;_0xba10b6<_0x118c97['length'];++_0xba10b6)null!=_0x16bbe5[_0x118c97[_0xba10b6]]&&(this[_0x118c97[_0xba10b6]]=_0x16bbe5[_0x118c97[_0xba10b6]]);}}return _0x5af374['prototype']['commentThreadId']='',_0x5af374['prototype']['documentId']='',_0x5af374['prototype']['context']='',_0x5af374['prototype']['attributes']='',_0x5af374['prototype']['unlinkedAt']='',_0x5af374['create']=function(_0x464964){return new _0x5af374(_0x464964);},_0x5af374['encode']=function(_0x295f50,_0x4f2e3e){return _0x4f2e3e||(_0x4f2e3e=_0x86a107['create']()),null!=_0x295f50['commentThreadId']&&Object['hasOwnProperty']['call'](_0x295f50,'commentThreadId')&&_0x4f2e3e['uint32'](0xa)['string'](_0x295f50['commentThreadId']),null!=_0x295f50['documentId']&&Object['hasOwnProperty']['call'](_0x295f50,'documentId')&&_0x4f2e3e['uint32'](0x12)['string'](_0x295f50['documentId']),null!=_0x295f50['context']&&Object['hasOwnProperty']['call'](_0x295f50,'context')&&_0x4f2e3e['uint32'](0x1a)['string'](_0x295f50['context']),null!=_0x295f50['attributes']&&Object['hasOwnProperty']['call'](_0x295f50,'attributes')&&_0x4f2e3e['uint32'](0x22)['string'](_0x295f50['attributes']),null!=_0x295f50['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x295f50,'unlinkedAt')&&_0x4f2e3e['uint32'](0x2a)['string'](_0x295f50['unlinkedAt']),_0x4f2e3e;},_0x5af374['encodeDelimited']=function(_0x1850a0,_0x1cfa3e){return this['encode'](_0x1850a0,_0x1cfa3e)['ldelim']();},_0x5af374['decode']=function(_0xb2bded,_0x25d6b9,_0x238e1f){_0xb2bded instanceof _0x33fc5a||(_0xb2bded=_0x33fc5a['create'](_0xb2bded));for(var _0x3624b5=void 0x0===_0x25d6b9?_0xb2bded['len']:_0xb2bded['pos']+_0x25d6b9,_0x5b00a3=new _0x2a91e5['CommentsV2UpdateCommentThreadMessage']();_0xb2bded['pos']<_0x3624b5;){var _0x923228=_0xb2bded['uint32']();if(_0x923228===_0x238e1f)break;switch(_0x923228>>>0x3){case 0x1:_0x5b00a3['commentThreadId']=_0xb2bded['string']();break;case 0x2:_0x5b00a3['documentId']=_0xb2bded['string']();break;case 0x3:_0x5b00a3['context']=_0xb2bded['string']();break;case 0x4:_0x5b00a3['attributes']=_0xb2bded['string']();break;case 0x5:_0x5b00a3['unlinkedAt']=_0xb2bded['string']();break;default:_0xb2bded['skipType'](0x7&_0x923228);}}return _0x5b00a3;},_0x5af374['decodeDelimited']=function(_0x56d0a6){return _0x56d0a6 instanceof _0x33fc5a||(_0x56d0a6=new _0x33fc5a(_0x56d0a6)),this['decode'](_0x56d0a6,_0x56d0a6['uint32']());},_0x5af374['verify']=function(_0x524558){return'object'!=typeof _0x524558||null===_0x524558?'object\x20expected':null!=_0x524558['commentThreadId']&&_0x524558['hasOwnProperty']('commentThreadId')&&!_0x1fbc81['isString'](_0x524558['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x524558['documentId']&&_0x524558['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x524558['documentId'])?'documentId:\x20string\x20expected':null!=_0x524558['context']&&_0x524558['hasOwnProperty']('context')&&!_0x1fbc81['isString'](_0x524558['context'])?'context:\x20string\x20expected':null!=_0x524558['attributes']&&_0x524558['hasOwnProperty']('attributes')&&!_0x1fbc81['isString'](_0x524558['attributes'])?'attributes:\x20string\x20expected':null!=_0x524558['unlinkedAt']&&_0x524558['hasOwnProperty']('unlinkedAt')&&!_0x1fbc81['isString'](_0x524558['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x5af374['fromObject']=function(_0x114493){if(_0x114493 instanceof _0x2a91e5['CommentsV2UpdateCommentThreadMessage'])return _0x114493;var _0x3cd0fc=new _0x2a91e5['CommentsV2UpdateCommentThreadMessage']();return null!=_0x114493['commentThreadId']&&(_0x3cd0fc['commentThreadId']=String(_0x114493['commentThreadId'])),null!=_0x114493['documentId']&&(_0x3cd0fc['documentId']=String(_0x114493['documentId'])),null!=_0x114493['context']&&(_0x3cd0fc['context']=String(_0x114493['context'])),null!=_0x114493['attributes']&&(_0x3cd0fc['attributes']=String(_0x114493['attributes'])),null!=_0x114493['unlinkedAt']&&(_0x3cd0fc['unlinkedAt']=String(_0x114493['unlinkedAt'])),_0x3cd0fc;},_0x5af374['toObject']=function(_0x49639b,_0x2c04fb){_0x2c04fb||(_0x2c04fb={});var _0x13f5d3={};return _0x2c04fb['defaults']&&(_0x13f5d3['commentThreadId']='',_0x13f5d3['documentId']='',_0x13f5d3['context']='',_0x13f5d3['attributes']='',_0x13f5d3['unlinkedAt']=''),null!=_0x49639b['commentThreadId']&&_0x49639b['hasOwnProperty']('commentThreadId')&&(_0x13f5d3['commentThreadId']=_0x49639b['commentThreadId']),null!=_0x49639b['documentId']&&_0x49639b['hasOwnProperty']('documentId')&&(_0x13f5d3['documentId']=_0x49639b['documentId']),null!=_0x49639b['context']&&_0x49639b['hasOwnProperty']('context')&&(_0x13f5d3['context']=_0x49639b['context']),null!=_0x49639b['attributes']&&_0x49639b['hasOwnProperty']('attributes')&&(_0x13f5d3['attributes']=_0x49639b['attributes']),null!=_0x49639b['unlinkedAt']&&_0x49639b['hasOwnProperty']('unlinkedAt')&&(_0x13f5d3['unlinkedAt']=_0x49639b['unlinkedAt']),_0x13f5d3;},_0x5af374['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5af374['getTypeUrl']=function(_0x5c61b4){return void 0x0===_0x5c61b4&&(_0x5c61b4='type.googleapis.com'),_0x5c61b4+'/CommentsV2UpdateCommentThreadMessage';},_0x5af374;}()),_0x2a91e5['CommentsV2ConnectMessage']=(function(){function _0x359386(_0x265c96){if(_0x265c96){for(var _0x326f2d=Object['keys'](_0x265c96),_0x491eba=0x0;_0x491eba<_0x326f2d['length'];++_0x491eba)null!=_0x265c96[_0x326f2d[_0x491eba]]&&(this[_0x326f2d[_0x491eba]]=_0x265c96[_0x326f2d[_0x491eba]]);}}return _0x359386['prototype']['documentId']='',_0x359386['create']=function(_0x2e8ac7){return new _0x359386(_0x2e8ac7);},_0x359386['encode']=function(_0xb02afc,_0x41c0e6){return _0x41c0e6||(_0x41c0e6=_0x86a107['create']()),null!=_0xb02afc['documentId']&&Object['hasOwnProperty']['call'](_0xb02afc,'documentId')&&_0x41c0e6['uint32'](0xa)['string'](_0xb02afc['documentId']),_0x41c0e6;},_0x359386['encodeDelimited']=function(_0x7b78cb,_0x5365f0){return this['encode'](_0x7b78cb,_0x5365f0)['ldelim']();},_0x359386['decode']=function(_0x1e0738,_0x243e5f,_0x5a7b6e){_0x1e0738 instanceof _0x33fc5a||(_0x1e0738=_0x33fc5a['create'](_0x1e0738));for(var _0x14c3e6=void 0x0===_0x243e5f?_0x1e0738['len']:_0x1e0738['pos']+_0x243e5f,_0x308a87=new _0x2a91e5['CommentsV2ConnectMessage']();_0x1e0738['pos']<_0x14c3e6;){var _0x576f79=_0x1e0738['uint32']();if(_0x576f79===_0x5a7b6e)break;_0x576f79>>>0x3==0x1?_0x308a87['documentId']=_0x1e0738['string']():_0x1e0738['skipType'](0x7&_0x576f79);}return _0x308a87;},_0x359386['decodeDelimited']=function(_0x33dcf4){return _0x33dcf4 instanceof _0x33fc5a||(_0x33dcf4=new _0x33fc5a(_0x33dcf4)),this['decode'](_0x33dcf4,_0x33dcf4['uint32']());},_0x359386['verify']=function(_0x3ec154){return'object'!=typeof _0x3ec154||null===_0x3ec154?'object\x20expected':null!=_0x3ec154['documentId']&&_0x3ec154['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x3ec154['documentId'])?'documentId:\x20string\x20expected':null;},_0x359386['fromObject']=function(_0x3b3793){if(_0x3b3793 instanceof _0x2a91e5['CommentsV2ConnectMessage'])return _0x3b3793;var _0x4ebd7b=new _0x2a91e5['CommentsV2ConnectMessage']();return null!=_0x3b3793['documentId']&&(_0x4ebd7b['documentId']=String(_0x3b3793['documentId'])),_0x4ebd7b;},_0x359386['toObject']=function(_0x2bb707,_0x47c6ca){_0x47c6ca||(_0x47c6ca={});var _0x5b9b40={};return _0x47c6ca['defaults']&&(_0x5b9b40['documentId']=''),null!=_0x2bb707['documentId']&&_0x2bb707['hasOwnProperty']('documentId')&&(_0x5b9b40['documentId']=_0x2bb707['documentId']),_0x5b9b40;},_0x359386['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x359386['getTypeUrl']=function(_0x44ea89){return void 0x0===_0x44ea89&&(_0x44ea89='type.googleapis.com'),_0x44ea89+'/CommentsV2ConnectMessage';},_0x359386;}()),_0x2a91e5['CommentsV2GetCommentThreadMessage']=(function(){function _0x138efa(_0xc902d5){if(_0xc902d5){for(var _0x29fe01=Object['keys'](_0xc902d5),_0x415608=0x0;_0x415608<_0x29fe01['length'];++_0x415608)null!=_0xc902d5[_0x29fe01[_0x415608]]&&(this[_0x29fe01[_0x415608]]=_0xc902d5[_0x29fe01[_0x415608]]);}}return _0x138efa['prototype']['commentThreadId']='',_0x138efa['prototype']['documentId']='',_0x138efa['create']=function(_0x316894){return new _0x138efa(_0x316894);},_0x138efa['encode']=function(_0x3d27fe,_0x1ca083){return _0x1ca083||(_0x1ca083=_0x86a107['create']()),null!=_0x3d27fe['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3d27fe,'commentThreadId')&&_0x1ca083['uint32'](0xa)['string'](_0x3d27fe['commentThreadId']),null!=_0x3d27fe['documentId']&&Object['hasOwnProperty']['call'](_0x3d27fe,'documentId')&&_0x1ca083['uint32'](0x12)['string'](_0x3d27fe['documentId']),_0x1ca083;},_0x138efa['encodeDelimited']=function(_0x1beb65,_0x369b54){return this['encode'](_0x1beb65,_0x369b54)['ldelim']();},_0x138efa['decode']=function(_0x2bba02,_0x4bf6fe,_0x2d803e){_0x2bba02 instanceof _0x33fc5a||(_0x2bba02=_0x33fc5a['create'](_0x2bba02));for(var _0x517b4b=void 0x0===_0x4bf6fe?_0x2bba02['len']:_0x2bba02['pos']+_0x4bf6fe,_0x4a2d88=new _0x2a91e5['CommentsV2GetCommentThreadMessage']();_0x2bba02['pos']<_0x517b4b;){var _0x5d98ea=_0x2bba02['uint32']();if(_0x5d98ea===_0x2d803e)break;switch(_0x5d98ea>>>0x3){case 0x1:_0x4a2d88['commentThreadId']=_0x2bba02['string']();break;case 0x2:_0x4a2d88['documentId']=_0x2bba02['string']();break;default:_0x2bba02['skipType'](0x7&_0x5d98ea);}}return _0x4a2d88;},_0x138efa['decodeDelimited']=function(_0x372d0d){return _0x372d0d instanceof _0x33fc5a||(_0x372d0d=new _0x33fc5a(_0x372d0d)),this['decode'](_0x372d0d,_0x372d0d['uint32']());},_0x138efa['verify']=function(_0x56544a){return'object'!=typeof _0x56544a||null===_0x56544a?'object\x20expected':null!=_0x56544a['commentThreadId']&&_0x56544a['hasOwnProperty']('commentThreadId')&&!_0x1fbc81['isString'](_0x56544a['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x56544a['documentId']&&_0x56544a['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x56544a['documentId'])?'documentId:\x20string\x20expected':null;},_0x138efa['fromObject']=function(_0x2335c8){if(_0x2335c8 instanceof _0x2a91e5['CommentsV2GetCommentThreadMessage'])return _0x2335c8;var _0x58b5dc=new _0x2a91e5['CommentsV2GetCommentThreadMessage']();return null!=_0x2335c8['commentThreadId']&&(_0x58b5dc['commentThreadId']=String(_0x2335c8['commentThreadId'])),null!=_0x2335c8['documentId']&&(_0x58b5dc['documentId']=String(_0x2335c8['documentId'])),_0x58b5dc;},_0x138efa['toObject']=function(_0x53a453,_0x47f232){_0x47f232||(_0x47f232={});var _0x434262={};return _0x47f232['defaults']&&(_0x434262['commentThreadId']='',_0x434262['documentId']=''),null!=_0x53a453['commentThreadId']&&_0x53a453['hasOwnProperty']('commentThreadId')&&(_0x434262['commentThreadId']=_0x53a453['commentThreadId']),null!=_0x53a453['documentId']&&_0x53a453['hasOwnProperty']('documentId')&&(_0x434262['documentId']=_0x53a453['documentId']),_0x434262;},_0x138efa['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x138efa['getTypeUrl']=function(_0x58bcfa){return void 0x0===_0x58bcfa&&(_0x58bcfa='type.googleapis.com'),_0x58bcfa+'/CommentsV2GetCommentThreadMessage';},_0x138efa;}()),_0x2a91e5['CommentsV2GetDocumentThreadsMessage']=(function(){function _0x389132(_0x251b99){if(_0x251b99){for(var _0x37141b=Object['keys'](_0x251b99),_0x459568=0x0;_0x459568<_0x37141b['length'];++_0x459568)null!=_0x251b99[_0x37141b[_0x459568]]&&(this[_0x37141b[_0x459568]]=_0x251b99[_0x37141b[_0x459568]]);}}return _0x389132['prototype']['documentId']='',_0x389132['create']=function(_0x37ffb8){return new _0x389132(_0x37ffb8);},_0x389132['encode']=function(_0x28aad2,_0x3f4dc8){return _0x3f4dc8||(_0x3f4dc8=_0x86a107['create']()),null!=_0x28aad2['documentId']&&Object['hasOwnProperty']['call'](_0x28aad2,'documentId')&&_0x3f4dc8['uint32'](0xa)['string'](_0x28aad2['documentId']),_0x3f4dc8;},_0x389132['encodeDelimited']=function(_0x3f6858,_0x5638cb){return this['encode'](_0x3f6858,_0x5638cb)['ldelim']();},_0x389132['decode']=function(_0x311a35,_0x52f017,_0x5888ca){_0x311a35 instanceof _0x33fc5a||(_0x311a35=_0x33fc5a['create'](_0x311a35));for(var _0x7a543b=void 0x0===_0x52f017?_0x311a35['len']:_0x311a35['pos']+_0x52f017,_0x13f252=new _0x2a91e5['CommentsV2GetDocumentThreadsMessage']();_0x311a35['pos']<_0x7a543b;){var _0x1a5552=_0x311a35['uint32']();if(_0x1a5552===_0x5888ca)break;_0x1a5552>>>0x3==0x1?_0x13f252['documentId']=_0x311a35['string']():_0x311a35['skipType'](0x7&_0x1a5552);}return _0x13f252;},_0x389132['decodeDelimited']=function(_0x575ad9){return _0x575ad9 instanceof _0x33fc5a||(_0x575ad9=new _0x33fc5a(_0x575ad9)),this['decode'](_0x575ad9,_0x575ad9['uint32']());},_0x389132['verify']=function(_0x1bd29d){return'object'!=typeof _0x1bd29d||null===_0x1bd29d?'object\x20expected':null!=_0x1bd29d['documentId']&&_0x1bd29d['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x1bd29d['documentId'])?'documentId:\x20string\x20expected':null;},_0x389132['fromObject']=function(_0x3991a4){if(_0x3991a4 instanceof _0x2a91e5['CommentsV2GetDocumentThreadsMessage'])return _0x3991a4;var _0x354862=new _0x2a91e5['CommentsV2GetDocumentThreadsMessage']();return null!=_0x3991a4['documentId']&&(_0x354862['documentId']=String(_0x3991a4['documentId'])),_0x354862;},_0x389132['toObject']=function(_0x135dd6,_0xba01be){_0xba01be||(_0xba01be={});var _0x2fe955={};return _0xba01be['defaults']&&(_0x2fe955['documentId']=''),null!=_0x135dd6['documentId']&&_0x135dd6['hasOwnProperty']('documentId')&&(_0x2fe955['documentId']=_0x135dd6['documentId']),_0x2fe955;},_0x389132['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x389132['getTypeUrl']=function(_0x26efc6){return void 0x0===_0x26efc6&&(_0x26efc6='type.googleapis.com'),_0x26efc6+'/CommentsV2GetDocumentThreadsMessage';},_0x389132;}()),_0x2a91e5['CommentsV2RemoveCommentMessage']=(function(){function _0x4ffd8d(_0x557edc){if(_0x557edc){for(var _0x5e390f=Object['keys'](_0x557edc),_0x593103=0x0;_0x593103<_0x5e390f['length'];++_0x593103)null!=_0x557edc[_0x5e390f[_0x593103]]&&(this[_0x5e390f[_0x593103]]=_0x557edc[_0x5e390f[_0x593103]]);}}return _0x4ffd8d['prototype']['commentThreadId']='',_0x4ffd8d['prototype']['commentId']='',_0x4ffd8d['prototype']['documentId']='',_0x4ffd8d['create']=function(_0x23fb03){return new _0x4ffd8d(_0x23fb03);},_0x4ffd8d['encode']=function(_0x2fa4a8,_0x5132a2){return _0x5132a2||(_0x5132a2=_0x86a107['create']()),null!=_0x2fa4a8['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2fa4a8,'commentThreadId')&&_0x5132a2['uint32'](0xa)['string'](_0x2fa4a8['commentThreadId']),null!=_0x2fa4a8['commentId']&&Object['hasOwnProperty']['call'](_0x2fa4a8,'commentId')&&_0x5132a2['uint32'](0x12)['string'](_0x2fa4a8['commentId']),null!=_0x2fa4a8['documentId']&&Object['hasOwnProperty']['call'](_0x2fa4a8,'documentId')&&_0x5132a2['uint32'](0x1a)['string'](_0x2fa4a8['documentId']),_0x5132a2;},_0x4ffd8d['encodeDelimited']=function(_0x534096,_0xf5b9ca){return this['encode'](_0x534096,_0xf5b9ca)['ldelim']();},_0x4ffd8d['decode']=function(_0x2e89ab,_0x55a36b,_0x1b6c15){_0x2e89ab instanceof _0x33fc5a||(_0x2e89ab=_0x33fc5a['create'](_0x2e89ab));for(var _0x11f531=void 0x0===_0x55a36b?_0x2e89ab['len']:_0x2e89ab['pos']+_0x55a36b,_0x324cc8=new _0x2a91e5['CommentsV2RemoveCommentMessage']();_0x2e89ab['pos']<_0x11f531;){var _0x54b8bc=_0x2e89ab['uint32']();if(_0x54b8bc===_0x1b6c15)break;switch(_0x54b8bc>>>0x3){case 0x1:_0x324cc8['commentThreadId']=_0x2e89ab['string']();break;case 0x2:_0x324cc8['commentId']=_0x2e89ab['string']();break;case 0x3:_0x324cc8['documentId']=_0x2e89ab['string']();break;default:_0x2e89ab['skipType'](0x7&_0x54b8bc);}}return _0x324cc8;},_0x4ffd8d['decodeDelimited']=function(_0x4b1faf){return _0x4b1faf instanceof _0x33fc5a||(_0x4b1faf=new _0x33fc5a(_0x4b1faf)),this['decode'](_0x4b1faf,_0x4b1faf['uint32']());},_0x4ffd8d['verify']=function(_0x102c74){return'object'!=typeof _0x102c74||null===_0x102c74?'object\x20expected':null!=_0x102c74['commentThreadId']&&_0x102c74['hasOwnProperty']('commentThreadId')&&!_0x1fbc81['isString'](_0x102c74['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x102c74['commentId']&&_0x102c74['hasOwnProperty']('commentId')&&!_0x1fbc81['isString'](_0x102c74['commentId'])?'commentId:\x20string\x20expected':null!=_0x102c74['documentId']&&_0x102c74['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x102c74['documentId'])?'documentId:\x20string\x20expected':null;},_0x4ffd8d['fromObject']=function(_0x59ffd0){if(_0x59ffd0 instanceof _0x2a91e5['CommentsV2RemoveCommentMessage'])return _0x59ffd0;var _0x5d4a83=new _0x2a91e5['CommentsV2RemoveCommentMessage']();return null!=_0x59ffd0['commentThreadId']&&(_0x5d4a83['commentThreadId']=String(_0x59ffd0['commentThreadId'])),null!=_0x59ffd0['commentId']&&(_0x5d4a83['commentId']=String(_0x59ffd0['commentId'])),null!=_0x59ffd0['documentId']&&(_0x5d4a83['documentId']=String(_0x59ffd0['documentId'])),_0x5d4a83;},_0x4ffd8d['toObject']=function(_0x82ee28,_0x95c383){_0x95c383||(_0x95c383={});var _0x555740={};return _0x95c383['defaults']&&(_0x555740['commentThreadId']='',_0x555740['commentId']='',_0x555740['documentId']=''),null!=_0x82ee28['commentThreadId']&&_0x82ee28['hasOwnProperty']('commentThreadId')&&(_0x555740['commentThreadId']=_0x82ee28['commentThreadId']),null!=_0x82ee28['commentId']&&_0x82ee28['hasOwnProperty']('commentId')&&(_0x555740['commentId']=_0x82ee28['commentId']),null!=_0x82ee28['documentId']&&_0x82ee28['hasOwnProperty']('documentId')&&(_0x555740['documentId']=_0x82ee28['documentId']),_0x555740;},_0x4ffd8d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4ffd8d['getTypeUrl']=function(_0x2dc845){return void 0x0===_0x2dc845&&(_0x2dc845='type.googleapis.com'),_0x2dc845+'/CommentsV2RemoveCommentMessage';},_0x4ffd8d;}()),_0x2a91e5['CommentsV2RemoveCommentThreadMessage']=(function(){function _0x3ecf5f(_0x414edd){if(_0x414edd){for(var _0x4c316=Object['keys'](_0x414edd),_0x2d13cc=0x0;_0x2d13cc<_0x4c316['length'];++_0x2d13cc)null!=_0x414edd[_0x4c316[_0x2d13cc]]&&(this[_0x4c316[_0x2d13cc]]=_0x414edd[_0x4c316[_0x2d13cc]]);}}return _0x3ecf5f['prototype']['commentThreadId']='',_0x3ecf5f['prototype']['documentId']='',_0x3ecf5f['create']=function(_0x11da8b){return new _0x3ecf5f(_0x11da8b);},_0x3ecf5f['encode']=function(_0x209f62,_0x106ffb){return _0x106ffb||(_0x106ffb=_0x86a107['create']()),null!=_0x209f62['commentThreadId']&&Object['hasOwnProperty']['call'](_0x209f62,'commentThreadId')&&_0x106ffb['uint32'](0xa)['string'](_0x209f62['commentThreadId']),null!=_0x209f62['documentId']&&Object['hasOwnProperty']['call'](_0x209f62,'documentId')&&_0x106ffb['uint32'](0x12)['string'](_0x209f62['documentId']),_0x106ffb;},_0x3ecf5f['encodeDelimited']=function(_0x40891e,_0x40c3ae){return this['encode'](_0x40891e,_0x40c3ae)['ldelim']();},_0x3ecf5f['decode']=function(_0x58431e,_0x2dd520,_0x1df279){_0x58431e instanceof _0x33fc5a||(_0x58431e=_0x33fc5a['create'](_0x58431e));for(var _0x5830cc=void 0x0===_0x2dd520?_0x58431e['len']:_0x58431e['pos']+_0x2dd520,_0x1bf37e=new _0x2a91e5['CommentsV2RemoveCommentThreadMessage']();_0x58431e['pos']<_0x5830cc;){var _0x1fe085=_0x58431e['uint32']();if(_0x1fe085===_0x1df279)break;switch(_0x1fe085>>>0x3){case 0x1:_0x1bf37e['commentThreadId']=_0x58431e['string']();break;case 0x2:_0x1bf37e['documentId']=_0x58431e['string']();break;default:_0x58431e['skipType'](0x7&_0x1fe085);}}return _0x1bf37e;},_0x3ecf5f['decodeDelimited']=function(_0x543a82){return _0x543a82 instanceof _0x33fc5a||(_0x543a82=new _0x33fc5a(_0x543a82)),this['decode'](_0x543a82,_0x543a82['uint32']());},_0x3ecf5f['verify']=function(_0x4e382a){return'object'!=typeof _0x4e382a||null===_0x4e382a?'object\x20expected':null!=_0x4e382a['commentThreadId']&&_0x4e382a['hasOwnProperty']('commentThreadId')&&!_0x1fbc81['isString'](_0x4e382a['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x4e382a['documentId']&&_0x4e382a['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x4e382a['documentId'])?'documentId:\x20string\x20expected':null;},_0x3ecf5f['fromObject']=function(_0x4d2d26){if(_0x4d2d26 instanceof _0x2a91e5['CommentsV2RemoveCommentThreadMessage'])return _0x4d2d26;var _0x96dbdb=new _0x2a91e5['CommentsV2RemoveCommentThreadMessage']();return null!=_0x4d2d26['commentThreadId']&&(_0x96dbdb['commentThreadId']=String(_0x4d2d26['commentThreadId'])),null!=_0x4d2d26['documentId']&&(_0x96dbdb['documentId']=String(_0x4d2d26['documentId'])),_0x96dbdb;},_0x3ecf5f['toObject']=function(_0x3f2b90,_0x2a06ea){_0x2a06ea||(_0x2a06ea={});var _0x5d70cf={};return _0x2a06ea['defaults']&&(_0x5d70cf['commentThreadId']='',_0x5d70cf['documentId']=''),null!=_0x3f2b90['commentThreadId']&&_0x3f2b90['hasOwnProperty']('commentThreadId')&&(_0x5d70cf['commentThreadId']=_0x3f2b90['commentThreadId']),null!=_0x3f2b90['documentId']&&_0x3f2b90['hasOwnProperty']('documentId')&&(_0x5d70cf['documentId']=_0x3f2b90['documentId']),_0x5d70cf;},_0x3ecf5f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3ecf5f['getTypeUrl']=function(_0x3a17d7){return void 0x0===_0x3a17d7&&(_0x3a17d7='type.googleapis.com'),_0x3a17d7+'/CommentsV2RemoveCommentThreadMessage';},_0x3ecf5f;}()),_0x2a91e5['CommentsV2UpdateCommentMessage']=(function(){function _0x102819(_0x104b1f){if(_0x104b1f){for(var _0x4d8853=Object['keys'](_0x104b1f),_0x109c62=0x0;_0x109c62<_0x4d8853['length'];++_0x109c62)null!=_0x104b1f[_0x4d8853[_0x109c62]]&&(this[_0x4d8853[_0x109c62]]=_0x104b1f[_0x4d8853[_0x109c62]]);}}return _0x102819['prototype']['commentThreadId']='',_0x102819['prototype']['commentId']='',_0x102819['prototype']['content']='',_0x102819['prototype']['documentId']='',_0x102819['prototype']['attributes']='',_0x102819['prototype']['isAttributesUpdated']=!0x1,_0x102819['prototype']['commentThread']=null,_0x102819['create']=function(_0x53541a){return new _0x102819(_0x53541a);},_0x102819['encode']=function(_0x1bf866,_0x2c45b4){return _0x2c45b4||(_0x2c45b4=_0x86a107['create']()),null!=_0x1bf866['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1bf866,'commentThreadId')&&_0x2c45b4['uint32'](0xa)['string'](_0x1bf866['commentThreadId']),null!=_0x1bf866['commentId']&&Object['hasOwnProperty']['call'](_0x1bf866,'commentId')&&_0x2c45b4['uint32'](0x12)['string'](_0x1bf866['commentId']),null!=_0x1bf866['content']&&Object['hasOwnProperty']['call'](_0x1bf866,'content')&&_0x2c45b4['uint32'](0x1a)['string'](_0x1bf866['content']),null!=_0x1bf866['documentId']&&Object['hasOwnProperty']['call'](_0x1bf866,'documentId')&&_0x2c45b4['uint32'](0x22)['string'](_0x1bf866['documentId']),null!=_0x1bf866['attributes']&&Object['hasOwnProperty']['call'](_0x1bf866,'attributes')&&_0x2c45b4['uint32'](0x2a)['string'](_0x1bf866['attributes']),null!=_0x1bf866['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0x1bf866,'isAttributesUpdated')&&_0x2c45b4['uint32'](0x30)['bool'](_0x1bf866['isAttributesUpdated']),null!=_0x1bf866['commentThread']&&Object['hasOwnProperty']['call'](_0x1bf866,'commentThread')&&_0x2a91e5['CommentsThreadDescriptor']['encode'](_0x1bf866['commentThread'],_0x2c45b4['uint32'](0x3a)['fork']())['ldelim'](),_0x2c45b4;},_0x102819['encodeDelimited']=function(_0x21687c,_0x1edc1d){return this['encode'](_0x21687c,_0x1edc1d)['ldelim']();},_0x102819['decode']=function(_0x593518,_0x2ac838,_0x128636){_0x593518 instanceof _0x33fc5a||(_0x593518=_0x33fc5a['create'](_0x593518));for(var _0x1ef7dd=void 0x0===_0x2ac838?_0x593518['len']:_0x593518['pos']+_0x2ac838,_0x1333ef=new _0x2a91e5['CommentsV2UpdateCommentMessage']();_0x593518['pos']<_0x1ef7dd;){var _0x1c5fd8=_0x593518['uint32']();if(_0x1c5fd8===_0x128636)break;switch(_0x1c5fd8>>>0x3){case 0x1:_0x1333ef['commentThreadId']=_0x593518['string']();break;case 0x2:_0x1333ef['commentId']=_0x593518['string']();break;case 0x3:_0x1333ef['content']=_0x593518['string']();break;case 0x4:_0x1333ef['documentId']=_0x593518['string']();break;case 0x5:_0x1333ef['attributes']=_0x593518['string']();break;case 0x6:_0x1333ef['isAttributesUpdated']=_0x593518['bool']();break;case 0x7:_0x1333ef['commentThread']=_0x2a91e5['CommentsThreadDescriptor']['decode'](_0x593518,_0x593518['uint32']());break;default:_0x593518['skipType'](0x7&_0x1c5fd8);}}return _0x1333ef;},_0x102819['decodeDelimited']=function(_0x18f072){return _0x18f072 instanceof _0x33fc5a||(_0x18f072=new _0x33fc5a(_0x18f072)),this['decode'](_0x18f072,_0x18f072['uint32']());},_0x102819['verify']=function(_0x198cc9){if('object'!=typeof _0x198cc9||null===_0x198cc9)return'object\x20expected';if(null!=_0x198cc9['commentThreadId']&&_0x198cc9['hasOwnProperty']('commentThreadId')&&!_0x1fbc81['isString'](_0x198cc9['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x198cc9['commentId']&&_0x198cc9['hasOwnProperty']('commentId')&&!_0x1fbc81['isString'](_0x198cc9['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x198cc9['content']&&_0x198cc9['hasOwnProperty']('content')&&!_0x1fbc81['isString'](_0x198cc9['content']))return'content:\x20string\x20expected';if(null!=_0x198cc9['documentId']&&_0x198cc9['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x198cc9['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x198cc9['attributes']&&_0x198cc9['hasOwnProperty']('attributes')&&!_0x1fbc81['isString'](_0x198cc9['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x198cc9['isAttributesUpdated']&&_0x198cc9['hasOwnProperty']('isAttributesUpdated')&&'boolean'!=typeof _0x198cc9['isAttributesUpdated'])return'isAttributesUpdated:\x20boolean\x20expected';if(null!=_0x198cc9['commentThread']&&_0x198cc9['hasOwnProperty']('commentThread')){var _0x17a8e6=_0x2a91e5['CommentsThreadDescriptor']['verify'](_0x198cc9['commentThread']);if(_0x17a8e6)return'commentThread.'+_0x17a8e6;}return null;},_0x102819['fromObject']=function(_0x4eb391){if(_0x4eb391 instanceof _0x2a91e5['CommentsV2UpdateCommentMessage'])return _0x4eb391;var _0x2d57fe=new _0x2a91e5['CommentsV2UpdateCommentMessage']();if(null!=_0x4eb391['commentThreadId']&&(_0x2d57fe['commentThreadId']=String(_0x4eb391['commentThreadId'])),null!=_0x4eb391['commentId']&&(_0x2d57fe['commentId']=String(_0x4eb391['commentId'])),null!=_0x4eb391['content']&&(_0x2d57fe['content']=String(_0x4eb391['content'])),null!=_0x4eb391['documentId']&&(_0x2d57fe['documentId']=String(_0x4eb391['documentId'])),null!=_0x4eb391['attributes']&&(_0x2d57fe['attributes']=String(_0x4eb391['attributes'])),null!=_0x4eb391['isAttributesUpdated']&&(_0x2d57fe['isAttributesUpdated']=Boolean(_0x4eb391['isAttributesUpdated'])),null!=_0x4eb391['commentThread']){if('object'!=typeof _0x4eb391['commentThread'])throw TypeError('.CommentsV2UpdateCommentMessage.commentThread:\x20object\x20expected');_0x2d57fe['commentThread']=_0x2a91e5['CommentsThreadDescriptor']['fromObject'](_0x4eb391['commentThread']);}return _0x2d57fe;},_0x102819['toObject']=function(_0x2b46e2,_0x5ea8a8){_0x5ea8a8||(_0x5ea8a8={});var _0x3f5def={};return _0x5ea8a8['defaults']&&(_0x3f5def['commentThreadId']='',_0x3f5def['commentId']='',_0x3f5def['content']='',_0x3f5def['documentId']='',_0x3f5def['attributes']='',_0x3f5def['isAttributesUpdated']=!0x1,_0x3f5def['commentThread']=null),null!=_0x2b46e2['commentThreadId']&&_0x2b46e2['hasOwnProperty']('commentThreadId')&&(_0x3f5def['commentThreadId']=_0x2b46e2['commentThreadId']),null!=_0x2b46e2['commentId']&&_0x2b46e2['hasOwnProperty']('commentId')&&(_0x3f5def['commentId']=_0x2b46e2['commentId']),null!=_0x2b46e2['content']&&_0x2b46e2['hasOwnProperty']('content')&&(_0x3f5def['content']=_0x2b46e2['content']),null!=_0x2b46e2['documentId']&&_0x2b46e2['hasOwnProperty']('documentId')&&(_0x3f5def['documentId']=_0x2b46e2['documentId']),null!=_0x2b46e2['attributes']&&_0x2b46e2['hasOwnProperty']('attributes')&&(_0x3f5def['attributes']=_0x2b46e2['attributes']),null!=_0x2b46e2['isAttributesUpdated']&&_0x2b46e2['hasOwnProperty']('isAttributesUpdated')&&(_0x3f5def['isAttributesUpdated']=_0x2b46e2['isAttributesUpdated']),null!=_0x2b46e2['commentThread']&&_0x2b46e2['hasOwnProperty']('commentThread')&&(_0x3f5def['commentThread']=_0x2a91e5['CommentsThreadDescriptor']['toObject'](_0x2b46e2['commentThread'],_0x5ea8a8)),_0x3f5def;},_0x102819['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x102819['getTypeUrl']=function(_0x5ce8a8){return void 0x0===_0x5ce8a8&&(_0x5ce8a8='type.googleapis.com'),_0x5ce8a8+'/CommentsV2UpdateCommentMessage';},_0x102819;}()),_0x2a91e5['CommentsV2AddCommentResponse']=(function(){function _0x5b8c6e(_0x140dea){if(_0x140dea){for(var _0x56582c=Object['keys'](_0x140dea),_0x478e8f=0x0;_0x478e8f<_0x56582c['length'];++_0x478e8f)null!=_0x140dea[_0x56582c[_0x478e8f]]&&(this[_0x56582c[_0x478e8f]]=_0x140dea[_0x56582c[_0x478e8f]]);}}return _0x5b8c6e['prototype']['commentThreadId']='',_0x5b8c6e['prototype']['commentId']='',_0x5b8c6e['prototype']['createdAt']='',_0x5b8c6e['create']=function(_0x2c9625){return new _0x5b8c6e(_0x2c9625);},_0x5b8c6e['encode']=function(_0x5a45a8,_0x4a463d){return _0x4a463d||(_0x4a463d=_0x86a107['create']()),null!=_0x5a45a8['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5a45a8,'commentThreadId')&&_0x4a463d['uint32'](0xa)['string'](_0x5a45a8['commentThreadId']),null!=_0x5a45a8['commentId']&&Object['hasOwnProperty']['call'](_0x5a45a8,'commentId')&&_0x4a463d['uint32'](0x12)['string'](_0x5a45a8['commentId']),null!=_0x5a45a8['createdAt']&&Object['hasOwnProperty']['call'](_0x5a45a8,'createdAt')&&_0x4a463d['uint32'](0x1a)['string'](_0x5a45a8['createdAt']),_0x4a463d;},_0x5b8c6e['encodeDelimited']=function(_0x94be8,_0x188227){return this['encode'](_0x94be8,_0x188227)['ldelim']();},_0x5b8c6e['decode']=function(_0x35efd5,_0x2a0c8c,_0x1f4523){_0x35efd5 instanceof _0x33fc5a||(_0x35efd5=_0x33fc5a['create'](_0x35efd5));for(var _0x3b5f98=void 0x0===_0x2a0c8c?_0x35efd5['len']:_0x35efd5['pos']+_0x2a0c8c,_0x47d7b6=new _0x2a91e5['CommentsV2AddCommentResponse']();_0x35efd5['pos']<_0x3b5f98;){var _0x3fe9ec=_0x35efd5['uint32']();if(_0x3fe9ec===_0x1f4523)break;switch(_0x3fe9ec>>>0x3){case 0x1:_0x47d7b6['commentThreadId']=_0x35efd5['string']();break;case 0x2:_0x47d7b6['commentId']=_0x35efd5['string']();break;case 0x3:_0x47d7b6['createdAt']=_0x35efd5['string']();break;default:_0x35efd5['skipType'](0x7&_0x3fe9ec);}}return _0x47d7b6;},_0x5b8c6e['decodeDelimited']=function(_0x18b9ce){return _0x18b9ce instanceof _0x33fc5a||(_0x18b9ce=new _0x33fc5a(_0x18b9ce)),this['decode'](_0x18b9ce,_0x18b9ce['uint32']());},_0x5b8c6e['verify']=function(_0xb4dcba){return'object'!=typeof _0xb4dcba||null===_0xb4dcba?'object\x20expected':null!=_0xb4dcba['commentThreadId']&&_0xb4dcba['hasOwnProperty']('commentThreadId')&&!_0x1fbc81['isString'](_0xb4dcba['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0xb4dcba['commentId']&&_0xb4dcba['hasOwnProperty']('commentId')&&!_0x1fbc81['isString'](_0xb4dcba['commentId'])?'commentId:\x20string\x20expected':null!=_0xb4dcba['createdAt']&&_0xb4dcba['hasOwnProperty']('createdAt')&&!_0x1fbc81['isString'](_0xb4dcba['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x5b8c6e['fromObject']=function(_0x473171){if(_0x473171 instanceof _0x2a91e5['CommentsV2AddCommentResponse'])return _0x473171;var _0x2ec51f=new _0x2a91e5['CommentsV2AddCommentResponse']();return null!=_0x473171['commentThreadId']&&(_0x2ec51f['commentThreadId']=String(_0x473171['commentThreadId'])),null!=_0x473171['commentId']&&(_0x2ec51f['commentId']=String(_0x473171['commentId'])),null!=_0x473171['createdAt']&&(_0x2ec51f['createdAt']=String(_0x473171['createdAt'])),_0x2ec51f;},_0x5b8c6e['toObject']=function(_0x47306b,_0x305707){_0x305707||(_0x305707={});var _0x4b9b69={};return _0x305707['defaults']&&(_0x4b9b69['commentThreadId']='',_0x4b9b69['commentId']='',_0x4b9b69['createdAt']=''),null!=_0x47306b['commentThreadId']&&_0x47306b['hasOwnProperty']('commentThreadId')&&(_0x4b9b69['commentThreadId']=_0x47306b['commentThreadId']),null!=_0x47306b['commentId']&&_0x47306b['hasOwnProperty']('commentId')&&(_0x4b9b69['commentId']=_0x47306b['commentId']),null!=_0x47306b['createdAt']&&_0x47306b['hasOwnProperty']('createdAt')&&(_0x4b9b69['createdAt']=_0x47306b['createdAt']),_0x4b9b69;},_0x5b8c6e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5b8c6e['getTypeUrl']=function(_0xa92894){return void 0x0===_0xa92894&&(_0xa92894='type.googleapis.com'),_0xa92894+'/CommentsV2AddCommentResponse';},_0x5b8c6e;}()),_0x2a91e5['CommentsV2AddCommentThreadResponse']=(function(){function _0xef5568(_0x258563){if(this['comments']=[],_0x258563){for(var _0x2eba05=Object['keys'](_0x258563),_0xa61c75=0x0;_0xa61c75<_0x2eba05['length'];++_0xa61c75)null!=_0x258563[_0x2eba05[_0xa61c75]]&&(this[_0x2eba05[_0xa61c75]]=_0x258563[_0x2eba05[_0xa61c75]]);}}return _0xef5568['prototype']['commentThreadId']='',_0xef5568['prototype']['createdAt']='',_0xef5568['prototype']['comments']=_0x1fbc81['emptyArray'],_0xef5568['create']=function(_0x5ee30c){return new _0xef5568(_0x5ee30c);},_0xef5568['encode']=function(_0x5e63a3,_0x4b8be9){if(_0x4b8be9||(_0x4b8be9=_0x86a107['create']()),null!=_0x5e63a3['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5e63a3,'commentThreadId')&&_0x4b8be9['uint32'](0xa)['string'](_0x5e63a3['commentThreadId']),null!=_0x5e63a3['createdAt']&&Object['hasOwnProperty']['call'](_0x5e63a3,'createdAt')&&_0x4b8be9['uint32'](0x12)['string'](_0x5e63a3['createdAt']),null!=_0x5e63a3['comments']&&_0x5e63a3['comments']['length']){for(var _0xfb68b=0x0;_0xfb68b<_0x5e63a3['comments']['length'];++_0xfb68b)_0x2a91e5['CommentThreadAddedCommentDescriptor']['encode'](_0x5e63a3['comments'][_0xfb68b],_0x4b8be9['uint32'](0x1a)['fork']())['ldelim']();}return _0x4b8be9;},_0xef5568['encodeDelimited']=function(_0x550c0b,_0xc2e4e2){return this['encode'](_0x550c0b,_0xc2e4e2)['ldelim']();},_0xef5568['decode']=function(_0x9c73fa,_0xd00406,_0x124f1d){_0x9c73fa instanceof _0x33fc5a||(_0x9c73fa=_0x33fc5a['create'](_0x9c73fa));for(var _0xca8a99=void 0x0===_0xd00406?_0x9c73fa['len']:_0x9c73fa['pos']+_0xd00406,_0xa798c9=new _0x2a91e5['CommentsV2AddCommentThreadResponse']();_0x9c73fa['pos']<_0xca8a99;){var _0x379ea9=_0x9c73fa['uint32']();if(_0x379ea9===_0x124f1d)break;switch(_0x379ea9>>>0x3){case 0x1:_0xa798c9['commentThreadId']=_0x9c73fa['string']();break;case 0x2:_0xa798c9['createdAt']=_0x9c73fa['string']();break;case 0x3:_0xa798c9['comments']&&_0xa798c9['comments']['length']||(_0xa798c9['comments']=[]),_0xa798c9['comments']['push'](_0x2a91e5['CommentThreadAddedCommentDescriptor']['decode'](_0x9c73fa,_0x9c73fa['uint32']()));break;default:_0x9c73fa['skipType'](0x7&_0x379ea9);}}return _0xa798c9;},_0xef5568['decodeDelimited']=function(_0x526b50){return _0x526b50 instanceof _0x33fc5a||(_0x526b50=new _0x33fc5a(_0x526b50)),this['decode'](_0x526b50,_0x526b50['uint32']());},_0xef5568['verify']=function(_0x3c08d4){if('object'!=typeof _0x3c08d4||null===_0x3c08d4)return'object\x20expected';if(null!=_0x3c08d4['commentThreadId']&&_0x3c08d4['hasOwnProperty']('commentThreadId')&&!_0x1fbc81['isString'](_0x3c08d4['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x3c08d4['createdAt']&&_0x3c08d4['hasOwnProperty']('createdAt')&&!_0x1fbc81['isString'](_0x3c08d4['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x3c08d4['comments']&&_0x3c08d4['hasOwnProperty']('comments')){if(!Array['isArray'](_0x3c08d4['comments']))return'comments:\x20array\x20expected';for(var _0x216ef7=0x0;_0x216ef7<_0x3c08d4['comments']['length'];++_0x216ef7){var _0x1e106a=_0x2a91e5['CommentThreadAddedCommentDescriptor']['verify'](_0x3c08d4['comments'][_0x216ef7]);if(_0x1e106a)return'comments.'+_0x1e106a;}}return null;},_0xef5568['fromObject']=function(_0x185905){if(_0x185905 instanceof _0x2a91e5['CommentsV2AddCommentThreadResponse'])return _0x185905;var _0x43a05c=new _0x2a91e5['CommentsV2AddCommentThreadResponse']();if(null!=_0x185905['commentThreadId']&&(_0x43a05c['commentThreadId']=String(_0x185905['commentThreadId'])),null!=_0x185905['createdAt']&&(_0x43a05c['createdAt']=String(_0x185905['createdAt'])),_0x185905['comments']){if(!Array['isArray'](_0x185905['comments']))throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20array\x20expected');_0x43a05c['comments']=[];for(var _0x52dbad=0x0;_0x52dbad<_0x185905['comments']['length'];++_0x52dbad){if('object'!=typeof _0x185905['comments'][_0x52dbad])throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20object\x20expected');_0x43a05c['comments'][_0x52dbad]=_0x2a91e5['CommentThreadAddedCommentDescriptor']['fromObject'](_0x185905['comments'][_0x52dbad]);}}return _0x43a05c;},_0xef5568['toObject']=function(_0x1fb4dd,_0x109e41){_0x109e41||(_0x109e41={});var _0x539212={};if((_0x109e41['arrays']||_0x109e41['defaults'])&&(_0x539212['comments']=[]),_0x109e41['defaults']&&(_0x539212['commentThreadId']='',_0x539212['createdAt']=''),null!=_0x1fb4dd['commentThreadId']&&_0x1fb4dd['hasOwnProperty']('commentThreadId')&&(_0x539212['commentThreadId']=_0x1fb4dd['commentThreadId']),null!=_0x1fb4dd['createdAt']&&_0x1fb4dd['hasOwnProperty']('createdAt')&&(_0x539212['createdAt']=_0x1fb4dd['createdAt']),_0x1fb4dd['comments']&&_0x1fb4dd['comments']['length']){_0x539212['comments']=[];for(var _0x2be184=0x0;_0x2be184<_0x1fb4dd['comments']['length'];++_0x2be184)_0x539212['comments'][_0x2be184]=_0x2a91e5['CommentThreadAddedCommentDescriptor']['toObject'](_0x1fb4dd['comments'][_0x2be184],_0x109e41);}return _0x539212;},_0xef5568['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xef5568['getTypeUrl']=function(_0x3f5c01){return void 0x0===_0x3f5c01&&(_0x3f5c01='type.googleapis.com'),_0x3f5c01+'/CommentsV2AddCommentThreadResponse';},_0xef5568;}()),_0x2a91e5['CommentsV2ResolveCommentThreadResponse']=(function(){function _0x1aca58(_0x10bab2){if(_0x10bab2){for(var _0x3d6255=Object['keys'](_0x10bab2),_0x4eaeb1=0x0;_0x4eaeb1<_0x3d6255['length'];++_0x4eaeb1)null!=_0x10bab2[_0x3d6255[_0x4eaeb1]]&&(this[_0x3d6255[_0x4eaeb1]]=_0x10bab2[_0x3d6255[_0x4eaeb1]]);}}return _0x1aca58['prototype']['commentThreadId']='',_0x1aca58['prototype']['documentId']='',_0x1aca58['prototype']['resolvedAt']='',_0x1aca58['prototype']['resolvedBy']='',_0x1aca58['create']=function(_0x1bc231){return new _0x1aca58(_0x1bc231);},_0x1aca58['encode']=function(_0x509b8f,_0x288fb4){return _0x288fb4||(_0x288fb4=_0x86a107['create']()),null!=_0x509b8f['commentThreadId']&&Object['hasOwnProperty']['call'](_0x509b8f,'commentThreadId')&&_0x288fb4['uint32'](0xa)['string'](_0x509b8f['commentThreadId']),null!=_0x509b8f['documentId']&&Object['hasOwnProperty']['call'](_0x509b8f,'documentId')&&_0x288fb4['uint32'](0x12)['string'](_0x509b8f['documentId']),null!=_0x509b8f['resolvedAt']&&Object['hasOwnProperty']['call'](_0x509b8f,'resolvedAt')&&_0x288fb4['uint32'](0x1a)['string'](_0x509b8f['resolvedAt']),null!=_0x509b8f['resolvedBy']&&Object['hasOwnProperty']['call'](_0x509b8f,'resolvedBy')&&_0x288fb4['uint32'](0x22)['string'](_0x509b8f['resolvedBy']),_0x288fb4;},_0x1aca58['encodeDelimited']=function(_0x1fd24f,_0x27c16c){return this['encode'](_0x1fd24f,_0x27c16c)['ldelim']();},_0x1aca58['decode']=function(_0x72cef5,_0x184232,_0x4a9e7f){_0x72cef5 instanceof _0x33fc5a||(_0x72cef5=_0x33fc5a['create'](_0x72cef5));for(var _0x128a3e=void 0x0===_0x184232?_0x72cef5['len']:_0x72cef5['pos']+_0x184232,_0x4fa39e=new _0x2a91e5['CommentsV2ResolveCommentThreadResponse']();_0x72cef5['pos']<_0x128a3e;){var _0x3d08e4=_0x72cef5['uint32']();if(_0x3d08e4===_0x4a9e7f)break;switch(_0x3d08e4>>>0x3){case 0x1:_0x4fa39e['commentThreadId']=_0x72cef5['string']();break;case 0x2:_0x4fa39e['documentId']=_0x72cef5['string']();break;case 0x3:_0x4fa39e['resolvedAt']=_0x72cef5['string']();break;case 0x4:_0x4fa39e['resolvedBy']=_0x72cef5['string']();break;default:_0x72cef5['skipType'](0x7&_0x3d08e4);}}return _0x4fa39e;},_0x1aca58['decodeDelimited']=function(_0x117b67){return _0x117b67 instanceof _0x33fc5a||(_0x117b67=new _0x33fc5a(_0x117b67)),this['decode'](_0x117b67,_0x117b67['uint32']());},_0x1aca58['verify']=function(_0x3c3309){return'object'!=typeof _0x3c3309||null===_0x3c3309?'object\x20expected':null!=_0x3c3309['commentThreadId']&&_0x3c3309['hasOwnProperty']('commentThreadId')&&!_0x1fbc81['isString'](_0x3c3309['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x3c3309['documentId']&&_0x3c3309['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x3c3309['documentId'])?'documentId:\x20string\x20expected':null!=_0x3c3309['resolvedAt']&&_0x3c3309['hasOwnProperty']('resolvedAt')&&!_0x1fbc81['isString'](_0x3c3309['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x3c3309['resolvedBy']&&_0x3c3309['hasOwnProperty']('resolvedBy')&&!_0x1fbc81['isString'](_0x3c3309['resolvedBy'])?'resolvedBy:\x20string\x20expected':null;},_0x1aca58['fromObject']=function(_0x385d3c){if(_0x385d3c instanceof _0x2a91e5['CommentsV2ResolveCommentThreadResponse'])return _0x385d3c;var _0x40f215=new _0x2a91e5['CommentsV2ResolveCommentThreadResponse']();return null!=_0x385d3c['commentThreadId']&&(_0x40f215['commentThreadId']=String(_0x385d3c['commentThreadId'])),null!=_0x385d3c['documentId']&&(_0x40f215['documentId']=String(_0x385d3c['documentId'])),null!=_0x385d3c['resolvedAt']&&(_0x40f215['resolvedAt']=String(_0x385d3c['resolvedAt'])),null!=_0x385d3c['resolvedBy']&&(_0x40f215['resolvedBy']=String(_0x385d3c['resolvedBy'])),_0x40f215;},_0x1aca58['toObject']=function(_0x525c29,_0x5696f1){_0x5696f1||(_0x5696f1={});var _0x4a33cc={};return _0x5696f1['defaults']&&(_0x4a33cc['commentThreadId']='',_0x4a33cc['documentId']='',_0x4a33cc['resolvedAt']='',_0x4a33cc['resolvedBy']=''),null!=_0x525c29['commentThreadId']&&_0x525c29['hasOwnProperty']('commentThreadId')&&(_0x4a33cc['commentThreadId']=_0x525c29['commentThreadId']),null!=_0x525c29['documentId']&&_0x525c29['hasOwnProperty']('documentId')&&(_0x4a33cc['documentId']=_0x525c29['documentId']),null!=_0x525c29['resolvedAt']&&_0x525c29['hasOwnProperty']('resolvedAt')&&(_0x4a33cc['resolvedAt']=_0x525c29['resolvedAt']),null!=_0x525c29['resolvedBy']&&_0x525c29['hasOwnProperty']('resolvedBy')&&(_0x4a33cc['resolvedBy']=_0x525c29['resolvedBy']),_0x4a33cc;},_0x1aca58['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1aca58['getTypeUrl']=function(_0x499556){return void 0x0===_0x499556&&(_0x499556='type.googleapis.com'),_0x499556+'/CommentsV2ResolveCommentThreadResponse';},_0x1aca58;}()),_0x2a91e5['CommentsV2ConnectResponse']=(function(){function _0x163558(_0x297d5e){if(this['threads']=[],this['threadsV2']=[],_0x297d5e){for(var _0x14a12b=Object['keys'](_0x297d5e),_0x2d6b03=0x0;_0x2d6b03<_0x14a12b['length'];++_0x2d6b03)null!=_0x297d5e[_0x14a12b[_0x2d6b03]]&&(this[_0x14a12b[_0x2d6b03]]=_0x297d5e[_0x14a12b[_0x2d6b03]]);}}return _0x163558['prototype']['channel']='',_0x163558['prototype']['threads']=_0x1fbc81['emptyArray'],_0x163558['prototype']['threadsV2']=_0x1fbc81['emptyArray'],_0x163558['create']=function(_0x438adf){return new _0x163558(_0x438adf);},_0x163558['encode']=function(_0x457e8f,_0x224d8c){if(_0x224d8c||(_0x224d8c=_0x86a107['create']()),null!=_0x457e8f['channel']&&Object['hasOwnProperty']['call'](_0x457e8f,'channel')&&_0x224d8c['uint32'](0xa)['string'](_0x457e8f['channel']),null!=_0x457e8f['threads']&&_0x457e8f['threads']['length']){for(var _0x217161=0x0;_0x217161<_0x457e8f['threads']['length'];++_0x217161)_0x224d8c['uint32'](0x12)['string'](_0x457e8f['threads'][_0x217161]);}if(null!=_0x457e8f['threadsV2']&&_0x457e8f['threadsV2']['length']){for(_0x217161=0x0;_0x217161<_0x457e8f['threadsV2']['length'];++_0x217161)_0x2a91e5['CommentsThreadDescriptor']['encode'](_0x457e8f['threadsV2'][_0x217161],_0x224d8c['uint32'](0x1a)['fork']())['ldelim']();}return _0x224d8c;},_0x163558['encodeDelimited']=function(_0xfac357,_0x47e4e9){return this['encode'](_0xfac357,_0x47e4e9)['ldelim']();},_0x163558['decode']=function(_0x417c76,_0x5606e3,_0x2a16a1){_0x417c76 instanceof _0x33fc5a||(_0x417c76=_0x33fc5a['create'](_0x417c76));for(var _0x338e7c=void 0x0===_0x5606e3?_0x417c76['len']:_0x417c76['pos']+_0x5606e3,_0x506a07=new _0x2a91e5['CommentsV2ConnectResponse']();_0x417c76['pos']<_0x338e7c;){var _0x1ce3e1=_0x417c76['uint32']();if(_0x1ce3e1===_0x2a16a1)break;switch(_0x1ce3e1>>>0x3){case 0x1:_0x506a07['channel']=_0x417c76['string']();break;case 0x2:_0x506a07['threads']&&_0x506a07['threads']['length']||(_0x506a07['threads']=[]),_0x506a07['threads']['push'](_0x417c76['string']());break;case 0x3:_0x506a07['threadsV2']&&_0x506a07['threadsV2']['length']||(_0x506a07['threadsV2']=[]),_0x506a07['threadsV2']['push'](_0x2a91e5['CommentsThreadDescriptor']['decode'](_0x417c76,_0x417c76['uint32']()));break;default:_0x417c76['skipType'](0x7&_0x1ce3e1);}}return _0x506a07;},_0x163558['decodeDelimited']=function(_0x317c13){return _0x317c13 instanceof _0x33fc5a||(_0x317c13=new _0x33fc5a(_0x317c13)),this['decode'](_0x317c13,_0x317c13['uint32']());},_0x163558['verify']=function(_0x5540c8){if('object'!=typeof _0x5540c8||null===_0x5540c8)return'object\x20expected';if(null!=_0x5540c8['channel']&&_0x5540c8['hasOwnProperty']('channel')&&!_0x1fbc81['isString'](_0x5540c8['channel']))return'channel:\x20string\x20expected';if(null!=_0x5540c8['threads']&&_0x5540c8['hasOwnProperty']('threads')){if(!Array['isArray'](_0x5540c8['threads']))return'threads:\x20array\x20expected';for(var _0x240aa1=0x0;_0x240aa1<_0x5540c8['threads']['length'];++_0x240aa1)if(!_0x1fbc81['isString'](_0x5540c8['threads'][_0x240aa1]))return'threads:\x20string[]\x20expected';}if(null!=_0x5540c8['threadsV2']&&_0x5540c8['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x5540c8['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x240aa1=0x0;_0x240aa1<_0x5540c8['threadsV2']['length'];++_0x240aa1){var _0x300482=_0x2a91e5['CommentsThreadDescriptor']['verify'](_0x5540c8['threadsV2'][_0x240aa1]);if(_0x300482)return'threadsV2.'+_0x300482;}}return null;},_0x163558['fromObject']=function(_0x41ee17){if(_0x41ee17 instanceof _0x2a91e5['CommentsV2ConnectResponse'])return _0x41ee17;var _0x1f8e3f=new _0x2a91e5['CommentsV2ConnectResponse']();if(null!=_0x41ee17['channel']&&(_0x1f8e3f['channel']=String(_0x41ee17['channel'])),_0x41ee17['threads']){if(!Array['isArray'](_0x41ee17['threads']))throw TypeError('.CommentsV2ConnectResponse.threads:\x20array\x20expected');_0x1f8e3f['threads']=[];for(var _0x3c4766=0x0;_0x3c4766<_0x41ee17['threads']['length'];++_0x3c4766)_0x1f8e3f['threads'][_0x3c4766]=String(_0x41ee17['threads'][_0x3c4766]);}if(_0x41ee17['threadsV2']){if(!Array['isArray'](_0x41ee17['threadsV2']))throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20array\x20expected');for(_0x1f8e3f['threadsV2']=[],_0x3c4766=0x0;_0x3c4766<_0x41ee17['threadsV2']['length'];++_0x3c4766){if('object'!=typeof _0x41ee17['threadsV2'][_0x3c4766])throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20object\x20expected');_0x1f8e3f['threadsV2'][_0x3c4766]=_0x2a91e5['CommentsThreadDescriptor']['fromObject'](_0x41ee17['threadsV2'][_0x3c4766]);}}return _0x1f8e3f;},_0x163558['toObject']=function(_0xb7261f,_0x54b9c9){_0x54b9c9||(_0x54b9c9={});var _0x24aa26={};if((_0x54b9c9['arrays']||_0x54b9c9['defaults'])&&(_0x24aa26['threads']=[],_0x24aa26['threadsV2']=[]),_0x54b9c9['defaults']&&(_0x24aa26['channel']=''),null!=_0xb7261f['channel']&&_0xb7261f['hasOwnProperty']('channel')&&(_0x24aa26['channel']=_0xb7261f['channel']),_0xb7261f['threads']&&_0xb7261f['threads']['length']){_0x24aa26['threads']=[];for(var _0x3d7589=0x0;_0x3d7589<_0xb7261f['threads']['length'];++_0x3d7589)_0x24aa26['threads'][_0x3d7589]=_0xb7261f['threads'][_0x3d7589];}if(_0xb7261f['threadsV2']&&_0xb7261f['threadsV2']['length']){for(_0x24aa26['threadsV2']=[],_0x3d7589=0x0;_0x3d7589<_0xb7261f['threadsV2']['length'];++_0x3d7589)_0x24aa26['threadsV2'][_0x3d7589]=_0x2a91e5['CommentsThreadDescriptor']['toObject'](_0xb7261f['threadsV2'][_0x3d7589],_0x54b9c9);}return _0x24aa26;},_0x163558['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x163558['getTypeUrl']=function(_0x1d8104){return void 0x0===_0x1d8104&&(_0x1d8104='type.googleapis.com'),_0x1d8104+'/CommentsV2ConnectResponse';},_0x163558;}()),_0x2a91e5['CommentsV2GetCommentThreadResponse']=(function(){function _0x4c75c6(_0x1922ea){if(this['comments']=[],this['commentsV2']=[],_0x1922ea){for(var _0x6cae2b=Object['keys'](_0x1922ea),_0x43d12b=0x0;_0x43d12b<_0x6cae2b['length'];++_0x43d12b)null!=_0x1922ea[_0x6cae2b[_0x43d12b]]&&(this[_0x6cae2b[_0x43d12b]]=_0x1922ea[_0x6cae2b[_0x43d12b]]);}}return _0x4c75c6['prototype']['commentThreadId']='',_0x4c75c6['prototype']['comments']=_0x1fbc81['emptyArray'],_0x4c75c6['prototype']['commentsV2']=_0x1fbc81['emptyArray'],_0x4c75c6['prototype']['resolvedAt']='',_0x4c75c6['prototype']['resolvedBy']='',_0x4c75c6['prototype']['context']='',_0x4c75c6['prototype']['createdAt']='',_0x4c75c6['prototype']['deletedAt']='',_0x4c75c6['prototype']['attributes']='',_0x4c75c6['prototype']['unlinkedAt']='',_0x4c75c6['create']=function(_0x410aef){return new _0x4c75c6(_0x410aef);},_0x4c75c6['encode']=function(_0x444848,_0xeaa167){if(_0xeaa167||(_0xeaa167=_0x86a107['create']()),null!=_0x444848['commentThreadId']&&Object['hasOwnProperty']['call'](_0x444848,'commentThreadId')&&_0xeaa167['uint32'](0xa)['string'](_0x444848['commentThreadId']),null!=_0x444848['comments']&&_0x444848['comments']['length']){for(var _0x33d2e9=0x0;_0x33d2e9<_0x444848['comments']['length'];++_0x33d2e9)_0xeaa167['uint32'](0x12)['string'](_0x444848['comments'][_0x33d2e9]);}if(null!=_0x444848['commentsV2']&&_0x444848['commentsV2']['length']){for(_0x33d2e9=0x0;_0x33d2e9<_0x444848['commentsV2']['length'];++_0x33d2e9)_0x2a91e5['CommentDescriptor']['encode'](_0x444848['commentsV2'][_0x33d2e9],_0xeaa167['uint32'](0x1a)['fork']())['ldelim']();}return null!=_0x444848['resolvedAt']&&Object['hasOwnProperty']['call'](_0x444848,'resolvedAt')&&_0xeaa167['uint32'](0x22)['string'](_0x444848['resolvedAt']),null!=_0x444848['resolvedBy']&&Object['hasOwnProperty']['call'](_0x444848,'resolvedBy')&&_0xeaa167['uint32'](0x2a)['string'](_0x444848['resolvedBy']),null!=_0x444848['context']&&Object['hasOwnProperty']['call'](_0x444848,'context')&&_0xeaa167['uint32'](0x32)['string'](_0x444848['context']),null!=_0x444848['createdAt']&&Object['hasOwnProperty']['call'](_0x444848,'createdAt')&&_0xeaa167['uint32'](0x3a)['string'](_0x444848['createdAt']),null!=_0x444848['deletedAt']&&Object['hasOwnProperty']['call'](_0x444848,'deletedAt')&&_0xeaa167['uint32'](0x42)['string'](_0x444848['deletedAt']),null!=_0x444848['attributes']&&Object['hasOwnProperty']['call'](_0x444848,'attributes')&&_0xeaa167['uint32'](0x4a)['string'](_0x444848['attributes']),null!=_0x444848['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x444848,'unlinkedAt')&&_0xeaa167['uint32'](0x52)['string'](_0x444848['unlinkedAt']),_0xeaa167;},_0x4c75c6['encodeDelimited']=function(_0x5133c0,_0x3f182e){return this['encode'](_0x5133c0,_0x3f182e)['ldelim']();},_0x4c75c6['decode']=function(_0x23a50f,_0x18b61c,_0xb21e8e){_0x23a50f instanceof _0x33fc5a||(_0x23a50f=_0x33fc5a['create'](_0x23a50f));for(var _0x4b0e0d=void 0x0===_0x18b61c?_0x23a50f['len']:_0x23a50f['pos']+_0x18b61c,_0x366de9=new _0x2a91e5['CommentsV2GetCommentThreadResponse']();_0x23a50f['pos']<_0x4b0e0d;){var _0xab1c9=_0x23a50f['uint32']();if(_0xab1c9===_0xb21e8e)break;switch(_0xab1c9>>>0x3){case 0x1:_0x366de9['commentThreadId']=_0x23a50f['string']();break;case 0x2:_0x366de9['comments']&&_0x366de9['comments']['length']||(_0x366de9['comments']=[]),_0x366de9['comments']['push'](_0x23a50f['string']());break;case 0x3:_0x366de9['commentsV2']&&_0x366de9['commentsV2']['length']||(_0x366de9['commentsV2']=[]),_0x366de9['commentsV2']['push'](_0x2a91e5['CommentDescriptor']['decode'](_0x23a50f,_0x23a50f['uint32']()));break;case 0x4:_0x366de9['resolvedAt']=_0x23a50f['string']();break;case 0x5:_0x366de9['resolvedBy']=_0x23a50f['string']();break;case 0x6:_0x366de9['context']=_0x23a50f['string']();break;case 0x7:_0x366de9['createdAt']=_0x23a50f['string']();break;case 0x8:_0x366de9['deletedAt']=_0x23a50f['string']();break;case 0x9:_0x366de9['attributes']=_0x23a50f['string']();break;case 0xa:_0x366de9['unlinkedAt']=_0x23a50f['string']();break;default:_0x23a50f['skipType'](0x7&_0xab1c9);}}return _0x366de9;},_0x4c75c6['decodeDelimited']=function(_0x37531c){return _0x37531c instanceof _0x33fc5a||(_0x37531c=new _0x33fc5a(_0x37531c)),this['decode'](_0x37531c,_0x37531c['uint32']());},_0x4c75c6['verify']=function(_0x3c3c5b){if('object'!=typeof _0x3c3c5b||null===_0x3c3c5b)return'object\x20expected';if(null!=_0x3c3c5b['commentThreadId']&&_0x3c3c5b['hasOwnProperty']('commentThreadId')&&!_0x1fbc81['isString'](_0x3c3c5b['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x3c3c5b['comments']&&_0x3c3c5b['hasOwnProperty']('comments')){if(!Array['isArray'](_0x3c3c5b['comments']))return'comments:\x20array\x20expected';for(var _0x4230a1=0x0;_0x4230a1<_0x3c3c5b['comments']['length'];++_0x4230a1)if(!_0x1fbc81['isString'](_0x3c3c5b['comments'][_0x4230a1]))return'comments:\x20string[]\x20expected';}if(null!=_0x3c3c5b['commentsV2']&&_0x3c3c5b['hasOwnProperty']('commentsV2')){if(!Array['isArray'](_0x3c3c5b['commentsV2']))return'commentsV2:\x20array\x20expected';for(_0x4230a1=0x0;_0x4230a1<_0x3c3c5b['commentsV2']['length'];++_0x4230a1){var _0x46327a=_0x2a91e5['CommentDescriptor']['verify'](_0x3c3c5b['commentsV2'][_0x4230a1]);if(_0x46327a)return'commentsV2.'+_0x46327a;}}return null!=_0x3c3c5b['resolvedAt']&&_0x3c3c5b['hasOwnProperty']('resolvedAt')&&!_0x1fbc81['isString'](_0x3c3c5b['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x3c3c5b['resolvedBy']&&_0x3c3c5b['hasOwnProperty']('resolvedBy')&&!_0x1fbc81['isString'](_0x3c3c5b['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x3c3c5b['context']&&_0x3c3c5b['hasOwnProperty']('context')&&!_0x1fbc81['isString'](_0x3c3c5b['context'])?'context:\x20string\x20expected':null!=_0x3c3c5b['createdAt']&&_0x3c3c5b['hasOwnProperty']('createdAt')&&!_0x1fbc81['isString'](_0x3c3c5b['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x3c3c5b['deletedAt']&&_0x3c3c5b['hasOwnProperty']('deletedAt')&&!_0x1fbc81['isString'](_0x3c3c5b['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x3c3c5b['attributes']&&_0x3c3c5b['hasOwnProperty']('attributes')&&!_0x1fbc81['isString'](_0x3c3c5b['attributes'])?'attributes:\x20string\x20expected':null!=_0x3c3c5b['unlinkedAt']&&_0x3c3c5b['hasOwnProperty']('unlinkedAt')&&!_0x1fbc81['isString'](_0x3c3c5b['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x4c75c6['fromObject']=function(_0x1ac664){if(_0x1ac664 instanceof _0x2a91e5['CommentsV2GetCommentThreadResponse'])return _0x1ac664;var _0x42316e=new _0x2a91e5['CommentsV2GetCommentThreadResponse']();if(null!=_0x1ac664['commentThreadId']&&(_0x42316e['commentThreadId']=String(_0x1ac664['commentThreadId'])),_0x1ac664['comments']){if(!Array['isArray'](_0x1ac664['comments']))throw TypeError('.CommentsV2GetCommentThreadResponse.comments:\x20array\x20expected');_0x42316e['comments']=[];for(var _0x37a347=0x0;_0x37a347<_0x1ac664['comments']['length'];++_0x37a347)_0x42316e['comments'][_0x37a347]=String(_0x1ac664['comments'][_0x37a347]);}if(_0x1ac664['commentsV2']){if(!Array['isArray'](_0x1ac664['commentsV2']))throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20array\x20expected');for(_0x42316e['commentsV2']=[],_0x37a347=0x0;_0x37a347<_0x1ac664['commentsV2']['length'];++_0x37a347){if('object'!=typeof _0x1ac664['commentsV2'][_0x37a347])throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20object\x20expected');_0x42316e['commentsV2'][_0x37a347]=_0x2a91e5['CommentDescriptor']['fromObject'](_0x1ac664['commentsV2'][_0x37a347]);}}return null!=_0x1ac664['resolvedAt']&&(_0x42316e['resolvedAt']=String(_0x1ac664['resolvedAt'])),null!=_0x1ac664['resolvedBy']&&(_0x42316e['resolvedBy']=String(_0x1ac664['resolvedBy'])),null!=_0x1ac664['context']&&(_0x42316e['context']=String(_0x1ac664['context'])),null!=_0x1ac664['createdAt']&&(_0x42316e['createdAt']=String(_0x1ac664['createdAt'])),null!=_0x1ac664['deletedAt']&&(_0x42316e['deletedAt']=String(_0x1ac664['deletedAt'])),null!=_0x1ac664['attributes']&&(_0x42316e['attributes']=String(_0x1ac664['attributes'])),null!=_0x1ac664['unlinkedAt']&&(_0x42316e['unlinkedAt']=String(_0x1ac664['unlinkedAt'])),_0x42316e;},_0x4c75c6['toObject']=function(_0x3d5c6b,_0x5d551b){_0x5d551b||(_0x5d551b={});var _0x5d92bc={};if((_0x5d551b['arrays']||_0x5d551b['defaults'])&&(_0x5d92bc['comments']=[],_0x5d92bc['commentsV2']=[]),_0x5d551b['defaults']&&(_0x5d92bc['commentThreadId']='',_0x5d92bc['resolvedAt']='',_0x5d92bc['resolvedBy']='',_0x5d92bc['context']='',_0x5d92bc['createdAt']='',_0x5d92bc['deletedAt']='',_0x5d92bc['attributes']='',_0x5d92bc['unlinkedAt']=''),null!=_0x3d5c6b['commentThreadId']&&_0x3d5c6b['hasOwnProperty']('commentThreadId')&&(_0x5d92bc['commentThreadId']=_0x3d5c6b['commentThreadId']),_0x3d5c6b['comments']&&_0x3d5c6b['comments']['length']){_0x5d92bc['comments']=[];for(var _0x3076b8=0x0;_0x3076b8<_0x3d5c6b['comments']['length'];++_0x3076b8)_0x5d92bc['comments'][_0x3076b8]=_0x3d5c6b['comments'][_0x3076b8];}if(_0x3d5c6b['commentsV2']&&_0x3d5c6b['commentsV2']['length']){for(_0x5d92bc['commentsV2']=[],_0x3076b8=0x0;_0x3076b8<_0x3d5c6b['commentsV2']['length'];++_0x3076b8)_0x5d92bc['commentsV2'][_0x3076b8]=_0x2a91e5['CommentDescriptor']['toObject'](_0x3d5c6b['commentsV2'][_0x3076b8],_0x5d551b);}return null!=_0x3d5c6b['resolvedAt']&&_0x3d5c6b['hasOwnProperty']('resolvedAt')&&(_0x5d92bc['resolvedAt']=_0x3d5c6b['resolvedAt']),null!=_0x3d5c6b['resolvedBy']&&_0x3d5c6b['hasOwnProperty']('resolvedBy')&&(_0x5d92bc['resolvedBy']=_0x3d5c6b['resolvedBy']),null!=_0x3d5c6b['context']&&_0x3d5c6b['hasOwnProperty']('context')&&(_0x5d92bc['context']=_0x3d5c6b['context']),null!=_0x3d5c6b['createdAt']&&_0x3d5c6b['hasOwnProperty']('createdAt')&&(_0x5d92bc['createdAt']=_0x3d5c6b['createdAt']),null!=_0x3d5c6b['deletedAt']&&_0x3d5c6b['hasOwnProperty']('deletedAt')&&(_0x5d92bc['deletedAt']=_0x3d5c6b['deletedAt']),null!=_0x3d5c6b['attributes']&&_0x3d5c6b['hasOwnProperty']('attributes')&&(_0x5d92bc['attributes']=_0x3d5c6b['attributes']),null!=_0x3d5c6b['unlinkedAt']&&_0x3d5c6b['hasOwnProperty']('unlinkedAt')&&(_0x5d92bc['unlinkedAt']=_0x3d5c6b['unlinkedAt']),_0x5d92bc;},_0x4c75c6['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4c75c6['getTypeUrl']=function(_0x5c99d6){return void 0x0===_0x5c99d6&&(_0x5c99d6='type.googleapis.com'),_0x5c99d6+'/CommentsV2GetCommentThreadResponse';},_0x4c75c6;}()),_0x2a91e5['CommentsV2GetDocumentThreadsResponse']=(function(){function _0x3f952b(_0x3eb1ad){if(this['threads']=[],this['threadsV2']=[],_0x3eb1ad){for(var _0x28d013=Object['keys'](_0x3eb1ad),_0x5597ed=0x0;_0x5597ed<_0x28d013['length'];++_0x5597ed)null!=_0x3eb1ad[_0x28d013[_0x5597ed]]&&(this[_0x28d013[_0x5597ed]]=_0x3eb1ad[_0x28d013[_0x5597ed]]);}}return _0x3f952b['prototype']['threads']=_0x1fbc81['emptyArray'],_0x3f952b['prototype']['threadsV2']=_0x1fbc81['emptyArray'],_0x3f952b['create']=function(_0x3bdf88){return new _0x3f952b(_0x3bdf88);},_0x3f952b['encode']=function(_0x30c7b6,_0x33de30){if(_0x33de30||(_0x33de30=_0x86a107['create']()),null!=_0x30c7b6['threads']&&_0x30c7b6['threads']['length']){for(var _0x4c5cbe=0x0;_0x4c5cbe<_0x30c7b6['threads']['length'];++_0x4c5cbe)_0x33de30['uint32'](0xa)['string'](_0x30c7b6['threads'][_0x4c5cbe]);}if(null!=_0x30c7b6['threadsV2']&&_0x30c7b6['threadsV2']['length']){for(_0x4c5cbe=0x0;_0x4c5cbe<_0x30c7b6['threadsV2']['length'];++_0x4c5cbe)_0x2a91e5['CommentsThreadDescriptor']['encode'](_0x30c7b6['threadsV2'][_0x4c5cbe],_0x33de30['uint32'](0x12)['fork']())['ldelim']();}return _0x33de30;},_0x3f952b['encodeDelimited']=function(_0x8355e5,_0x43e4dd){return this['encode'](_0x8355e5,_0x43e4dd)['ldelim']();},_0x3f952b['decode']=function(_0x54ad16,_0x34dc51,_0x463753){_0x54ad16 instanceof _0x33fc5a||(_0x54ad16=_0x33fc5a['create'](_0x54ad16));for(var _0x5d6155=void 0x0===_0x34dc51?_0x54ad16['len']:_0x54ad16['pos']+_0x34dc51,_0x2bd9f7=new _0x2a91e5['CommentsV2GetDocumentThreadsResponse']();_0x54ad16['pos']<_0x5d6155;){var _0x4ed050=_0x54ad16['uint32']();if(_0x4ed050===_0x463753)break;switch(_0x4ed050>>>0x3){case 0x1:_0x2bd9f7['threads']&&_0x2bd9f7['threads']['length']||(_0x2bd9f7['threads']=[]),_0x2bd9f7['threads']['push'](_0x54ad16['string']());break;case 0x2:_0x2bd9f7['threadsV2']&&_0x2bd9f7['threadsV2']['length']||(_0x2bd9f7['threadsV2']=[]),_0x2bd9f7['threadsV2']['push'](_0x2a91e5['CommentsThreadDescriptor']['decode'](_0x54ad16,_0x54ad16['uint32']()));break;default:_0x54ad16['skipType'](0x7&_0x4ed050);}}return _0x2bd9f7;},_0x3f952b['decodeDelimited']=function(_0x5552b3){return _0x5552b3 instanceof _0x33fc5a||(_0x5552b3=new _0x33fc5a(_0x5552b3)),this['decode'](_0x5552b3,_0x5552b3['uint32']());},_0x3f952b['verify']=function(_0x3b8c76){if('object'!=typeof _0x3b8c76||null===_0x3b8c76)return'object\x20expected';if(null!=_0x3b8c76['threads']&&_0x3b8c76['hasOwnProperty']('threads')){if(!Array['isArray'](_0x3b8c76['threads']))return'threads:\x20array\x20expected';for(var _0x38f715=0x0;_0x38f715<_0x3b8c76['threads']['length'];++_0x38f715)if(!_0x1fbc81['isString'](_0x3b8c76['threads'][_0x38f715]))return'threads:\x20string[]\x20expected';}if(null!=_0x3b8c76['threadsV2']&&_0x3b8c76['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x3b8c76['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x38f715=0x0;_0x38f715<_0x3b8c76['threadsV2']['length'];++_0x38f715){var _0x4cfb4f=_0x2a91e5['CommentsThreadDescriptor']['verify'](_0x3b8c76['threadsV2'][_0x38f715]);if(_0x4cfb4f)return'threadsV2.'+_0x4cfb4f;}}return null;},_0x3f952b['fromObject']=function(_0x2f1bfd){if(_0x2f1bfd instanceof _0x2a91e5['CommentsV2GetDocumentThreadsResponse'])return _0x2f1bfd;var _0x4260f2=new _0x2a91e5['CommentsV2GetDocumentThreadsResponse']();if(_0x2f1bfd['threads']){if(!Array['isArray'](_0x2f1bfd['threads']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threads:\x20array\x20expected');_0x4260f2['threads']=[];for(var _0x13b059=0x0;_0x13b059<_0x2f1bfd['threads']['length'];++_0x13b059)_0x4260f2['threads'][_0x13b059]=String(_0x2f1bfd['threads'][_0x13b059]);}if(_0x2f1bfd['threadsV2']){if(!Array['isArray'](_0x2f1bfd['threadsV2']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20array\x20expected');for(_0x4260f2['threadsV2']=[],_0x13b059=0x0;_0x13b059<_0x2f1bfd['threadsV2']['length'];++_0x13b059){if('object'!=typeof _0x2f1bfd['threadsV2'][_0x13b059])throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20object\x20expected');_0x4260f2['threadsV2'][_0x13b059]=_0x2a91e5['CommentsThreadDescriptor']['fromObject'](_0x2f1bfd['threadsV2'][_0x13b059]);}}return _0x4260f2;},_0x3f952b['toObject']=function(_0x2df5e9,_0x2ef329){_0x2ef329||(_0x2ef329={});var _0x3aa5f4={};if((_0x2ef329['arrays']||_0x2ef329['defaults'])&&(_0x3aa5f4['threads']=[],_0x3aa5f4['threadsV2']=[]),_0x2df5e9['threads']&&_0x2df5e9['threads']['length']){_0x3aa5f4['threads']=[];for(var _0x5aac5a=0x0;_0x5aac5a<_0x2df5e9['threads']['length'];++_0x5aac5a)_0x3aa5f4['threads'][_0x5aac5a]=_0x2df5e9['threads'][_0x5aac5a];}if(_0x2df5e9['threadsV2']&&_0x2df5e9['threadsV2']['length']){for(_0x3aa5f4['threadsV2']=[],_0x5aac5a=0x0;_0x5aac5a<_0x2df5e9['threadsV2']['length'];++_0x5aac5a)_0x3aa5f4['threadsV2'][_0x5aac5a]=_0x2a91e5['CommentsThreadDescriptor']['toObject'](_0x2df5e9['threadsV2'][_0x5aac5a],_0x2ef329);}return _0x3aa5f4;},_0x3f952b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3f952b['getTypeUrl']=function(_0x11d970){return void 0x0===_0x11d970&&(_0x11d970='type.googleapis.com'),_0x11d970+'/CommentsV2GetDocumentThreadsResponse';},_0x3f952b;}()),_0x2a91e5['KeyValueDescriptor']=(function(){function _0x1f7feb(_0x19b2cf){if(_0x19b2cf){for(var _0x213f79=Object['keys'](_0x19b2cf),_0x4627ff=0x0;_0x4627ff<_0x213f79['length'];++_0x4627ff)null!=_0x19b2cf[_0x213f79[_0x4627ff]]&&(this[_0x213f79[_0x4627ff]]=_0x19b2cf[_0x213f79[_0x4627ff]]);}}return _0x1f7feb['prototype']['key']='',_0x1f7feb['prototype']['value']='',_0x1f7feb['create']=function(_0x555326){return new _0x1f7feb(_0x555326);},_0x1f7feb['encode']=function(_0x3800c1,_0x4accae){return _0x4accae||(_0x4accae=_0x86a107['create']()),null!=_0x3800c1['key']&&Object['hasOwnProperty']['call'](_0x3800c1,'key')&&_0x4accae['uint32'](0xa)['string'](_0x3800c1['key']),null!=_0x3800c1['value']&&Object['hasOwnProperty']['call'](_0x3800c1,'value')&&_0x4accae['uint32'](0x12)['string'](_0x3800c1['value']),_0x4accae;},_0x1f7feb['encodeDelimited']=function(_0x431578,_0x553b01){return this['encode'](_0x431578,_0x553b01)['ldelim']();},_0x1f7feb['decode']=function(_0x77a68e,_0x3c05a,_0x33a08b){_0x77a68e instanceof _0x33fc5a||(_0x77a68e=_0x33fc5a['create'](_0x77a68e));for(var _0x554246=void 0x0===_0x3c05a?_0x77a68e['len']:_0x77a68e['pos']+_0x3c05a,_0x51911c=new _0x2a91e5['KeyValueDescriptor']();_0x77a68e['pos']<_0x554246;){var _0x2a057a=_0x77a68e['uint32']();if(_0x2a057a===_0x33a08b)break;switch(_0x2a057a>>>0x3){case 0x1:_0x51911c['key']=_0x77a68e['string']();break;case 0x2:_0x51911c['value']=_0x77a68e['string']();break;default:_0x77a68e['skipType'](0x7&_0x2a057a);}}return _0x51911c;},_0x1f7feb['decodeDelimited']=function(_0x41ce48){return _0x41ce48 instanceof _0x33fc5a||(_0x41ce48=new _0x33fc5a(_0x41ce48)),this['decode'](_0x41ce48,_0x41ce48['uint32']());},_0x1f7feb['verify']=function(_0xe67ce8){return'object'!=typeof _0xe67ce8||null===_0xe67ce8?'object\x20expected':null!=_0xe67ce8['key']&&_0xe67ce8['hasOwnProperty']('key')&&!_0x1fbc81['isString'](_0xe67ce8['key'])?'key:\x20string\x20expected':null!=_0xe67ce8['value']&&_0xe67ce8['hasOwnProperty']('value')&&!_0x1fbc81['isString'](_0xe67ce8['value'])?'value:\x20string\x20expected':null;},_0x1f7feb['fromObject']=function(_0x254716){if(_0x254716 instanceof _0x2a91e5['KeyValueDescriptor'])return _0x254716;var _0x1187e0=new _0x2a91e5['KeyValueDescriptor']();return null!=_0x254716['key']&&(_0x1187e0['key']=String(_0x254716['key'])),null!=_0x254716['value']&&(_0x1187e0['value']=String(_0x254716['value'])),_0x1187e0;},_0x1f7feb['toObject']=function(_0x1f162a,_0x51e64b){_0x51e64b||(_0x51e64b={});var _0x3f85b2={};return _0x51e64b['defaults']&&(_0x3f85b2['key']='',_0x3f85b2['value']=''),null!=_0x1f162a['key']&&_0x1f162a['hasOwnProperty']('key')&&(_0x3f85b2['key']=_0x1f162a['key']),null!=_0x1f162a['value']&&_0x1f162a['hasOwnProperty']('value')&&(_0x3f85b2['value']=_0x1f162a['value']),_0x3f85b2;},_0x1f7feb['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1f7feb['getTypeUrl']=function(_0x2818cd){return void 0x0===_0x2818cd&&(_0x2818cd='type.googleapis.com'),_0x2818cd+'/KeyValueDescriptor';},_0x1f7feb;}()),_0x2a91e5['IsEditorBundleUploadedMessage']=(function(){function _0x8d7f9b(_0x4185da){if(_0x4185da){for(var _0x2a72b8=Object['keys'](_0x4185da),_0x1970fc=0x0;_0x1970fc<_0x2a72b8['length'];++_0x1970fc)null!=_0x4185da[_0x2a72b8[_0x1970fc]]&&(this[_0x2a72b8[_0x1970fc]]=_0x4185da[_0x2a72b8[_0x1970fc]]);}}return _0x8d7f9b['prototype']['bundleVersion']='',_0x8d7f9b['create']=function(_0x4ab492){return new _0x8d7f9b(_0x4ab492);},_0x8d7f9b['encode']=function(_0x5cc4b0,_0x4cf1b8){return _0x4cf1b8||(_0x4cf1b8=_0x86a107['create']()),null!=_0x5cc4b0['bundleVersion']&&Object['hasOwnProperty']['call'](_0x5cc4b0,'bundleVersion')&&_0x4cf1b8['uint32'](0xa)['string'](_0x5cc4b0['bundleVersion']),_0x4cf1b8;},_0x8d7f9b['encodeDelimited']=function(_0x30e652,_0x5e5b0d){return this['encode'](_0x30e652,_0x5e5b0d)['ldelim']();},_0x8d7f9b['decode']=function(_0xa67831,_0x333c67,_0x5edcbe){_0xa67831 instanceof _0x33fc5a||(_0xa67831=_0x33fc5a['create'](_0xa67831));for(var _0x4de89e=void 0x0===_0x333c67?_0xa67831['len']:_0xa67831['pos']+_0x333c67,_0x33c766=new _0x2a91e5['IsEditorBundleUploadedMessage']();_0xa67831['pos']<_0x4de89e;){var _0x5205d0=_0xa67831['uint32']();if(_0x5205d0===_0x5edcbe)break;_0x5205d0>>>0x3==0x1?_0x33c766['bundleVersion']=_0xa67831['string']():_0xa67831['skipType'](0x7&_0x5205d0);}return _0x33c766;},_0x8d7f9b['decodeDelimited']=function(_0x537cf3){return _0x537cf3 instanceof _0x33fc5a||(_0x537cf3=new _0x33fc5a(_0x537cf3)),this['decode'](_0x537cf3,_0x537cf3['uint32']());},_0x8d7f9b['verify']=function(_0x3e0525){return'object'!=typeof _0x3e0525||null===_0x3e0525?'object\x20expected':null!=_0x3e0525['bundleVersion']&&_0x3e0525['hasOwnProperty']('bundleVersion')&&!_0x1fbc81['isString'](_0x3e0525['bundleVersion'])?'bundleVersion:\x20string\x20expected':null;},_0x8d7f9b['fromObject']=function(_0x2f4beb){if(_0x2f4beb instanceof _0x2a91e5['IsEditorBundleUploadedMessage'])return _0x2f4beb;var _0xd55d49=new _0x2a91e5['IsEditorBundleUploadedMessage']();return null!=_0x2f4beb['bundleVersion']&&(_0xd55d49['bundleVersion']=String(_0x2f4beb['bundleVersion'])),_0xd55d49;},_0x8d7f9b['toObject']=function(_0x1d88ec,_0x35d6bd){_0x35d6bd||(_0x35d6bd={});var _0x4c1041={};return _0x35d6bd['defaults']&&(_0x4c1041['bundleVersion']=''),null!=_0x1d88ec['bundleVersion']&&_0x1d88ec['hasOwnProperty']('bundleVersion')&&(_0x4c1041['bundleVersion']=_0x1d88ec['bundleVersion']),_0x4c1041;},_0x8d7f9b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x8d7f9b['getTypeUrl']=function(_0x2749bf){return void 0x0===_0x2749bf&&(_0x2749bf='type.googleapis.com'),_0x2749bf+'/IsEditorBundleUploadedMessage';},_0x8d7f9b;}()),_0x2a91e5['IsEditorBundleUploadedResponse']=(function(){function _0x3c4c0c(_0x261308){if(_0x261308){for(var _0x1d96f9=Object['keys'](_0x261308),_0xe2c74b=0x0;_0xe2c74b<_0x1d96f9['length'];++_0xe2c74b)null!=_0x261308[_0x1d96f9[_0xe2c74b]]&&(this[_0x1d96f9[_0xe2c74b]]=_0x261308[_0x1d96f9[_0xe2c74b]]);}}return _0x3c4c0c['prototype']['isUploaded']=!0x1,_0x3c4c0c['create']=function(_0x5fba9c){return new _0x3c4c0c(_0x5fba9c);},_0x3c4c0c['encode']=function(_0x5e41e5,_0x17f89a){return _0x17f89a||(_0x17f89a=_0x86a107['create']()),null!=_0x5e41e5['isUploaded']&&Object['hasOwnProperty']['call'](_0x5e41e5,'isUploaded')&&_0x17f89a['uint32'](0x8)['bool'](_0x5e41e5['isUploaded']),_0x17f89a;},_0x3c4c0c['encodeDelimited']=function(_0x295961,_0x4c6f39){return this['encode'](_0x295961,_0x4c6f39)['ldelim']();},_0x3c4c0c['decode']=function(_0x2ea635,_0x5eddea,_0x442f9c){_0x2ea635 instanceof _0x33fc5a||(_0x2ea635=_0x33fc5a['create'](_0x2ea635));for(var _0x16886c=void 0x0===_0x5eddea?_0x2ea635['len']:_0x2ea635['pos']+_0x5eddea,_0x36e85d=new _0x2a91e5['IsEditorBundleUploadedResponse']();_0x2ea635['pos']<_0x16886c;){var _0x564a09=_0x2ea635['uint32']();if(_0x564a09===_0x442f9c)break;_0x564a09>>>0x3==0x1?_0x36e85d['isUploaded']=_0x2ea635['bool']():_0x2ea635['skipType'](0x7&_0x564a09);}return _0x36e85d;},_0x3c4c0c['decodeDelimited']=function(_0x5ca84c){return _0x5ca84c instanceof _0x33fc5a||(_0x5ca84c=new _0x33fc5a(_0x5ca84c)),this['decode'](_0x5ca84c,_0x5ca84c['uint32']());},_0x3c4c0c['verify']=function(_0x3e1c28){return'object'!=typeof _0x3e1c28||null===_0x3e1c28?'object\x20expected':null!=_0x3e1c28['isUploaded']&&_0x3e1c28['hasOwnProperty']('isUploaded')&&'boolean'!=typeof _0x3e1c28['isUploaded']?'isUploaded:\x20boolean\x20expected':null;},_0x3c4c0c['fromObject']=function(_0x1b2b2d){if(_0x1b2b2d instanceof _0x2a91e5['IsEditorBundleUploadedResponse'])return _0x1b2b2d;var _0x525c0a=new _0x2a91e5['IsEditorBundleUploadedResponse']();return null!=_0x1b2b2d['isUploaded']&&(_0x525c0a['isUploaded']=Boolean(_0x1b2b2d['isUploaded'])),_0x525c0a;},_0x3c4c0c['toObject']=function(_0x42ee51,_0x2e38f4){_0x2e38f4||(_0x2e38f4={});var _0x4cc6a8={};return _0x2e38f4['defaults']&&(_0x4cc6a8['isUploaded']=!0x1),null!=_0x42ee51['isUploaded']&&_0x42ee51['hasOwnProperty']('isUploaded')&&(_0x4cc6a8['isUploaded']=_0x42ee51['isUploaded']),_0x4cc6a8;},_0x3c4c0c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3c4c0c['getTypeUrl']=function(_0x5940e5){return void 0x0===_0x5940e5&&(_0x5940e5='type.googleapis.com'),_0x5940e5+'/IsEditorBundleUploadedResponse';},_0x3c4c0c;}()),_0x2a91e5['RevisionDescriptor']=(function(){function _0x98e8ac(_0x168f65){if(_0x168f65){for(var _0x489200=Object['keys'](_0x168f65),_0x6541fb=0x0;_0x6541fb<_0x489200['length'];++_0x6541fb)null!=_0x168f65[_0x489200[_0x6541fb]]&&(this[_0x489200[_0x6541fb]]=_0x168f65[_0x489200[_0x6541fb]]);}}return _0x98e8ac['prototype']['revisionId']='',_0x98e8ac['prototype']['name']='',_0x98e8ac['prototype']['creatorId']='',_0x98e8ac['prototype']['authorsIds']='',_0x98e8ac['prototype']['diffData']='',_0x98e8ac['prototype']['createdAt']='',_0x98e8ac['prototype']['attributes']='',_0x98e8ac['prototype']['toVersion']=0x0,_0x98e8ac['prototype']['fromVersion']=0x0,_0x98e8ac['prototype']['isEmptyCurrent']=!0x1,_0x98e8ac['create']=function(_0x390cc2){return new _0x98e8ac(_0x390cc2);},_0x98e8ac['encode']=function(_0x2e429c,_0x1fa1dc){return _0x1fa1dc||(_0x1fa1dc=_0x86a107['create']()),null!=_0x2e429c['revisionId']&&Object['hasOwnProperty']['call'](_0x2e429c,'revisionId')&&_0x1fa1dc['uint32'](0xa)['string'](_0x2e429c['revisionId']),null!=_0x2e429c['name']&&Object['hasOwnProperty']['call'](_0x2e429c,'name')&&_0x1fa1dc['uint32'](0x12)['string'](_0x2e429c['name']),null!=_0x2e429c['creatorId']&&Object['hasOwnProperty']['call'](_0x2e429c,'creatorId')&&_0x1fa1dc['uint32'](0x1a)['string'](_0x2e429c['creatorId']),null!=_0x2e429c['authorsIds']&&Object['hasOwnProperty']['call'](_0x2e429c,'authorsIds')&&_0x1fa1dc['uint32'](0x22)['string'](_0x2e429c['authorsIds']),null!=_0x2e429c['diffData']&&Object['hasOwnProperty']['call'](_0x2e429c,'diffData')&&_0x1fa1dc['uint32'](0x2a)['string'](_0x2e429c['diffData']),null!=_0x2e429c['createdAt']&&Object['hasOwnProperty']['call'](_0x2e429c,'createdAt')&&_0x1fa1dc['uint32'](0x32)['string'](_0x2e429c['createdAt']),null!=_0x2e429c['attributes']&&Object['hasOwnProperty']['call'](_0x2e429c,'attributes')&&_0x1fa1dc['uint32'](0x3a)['string'](_0x2e429c['attributes']),null!=_0x2e429c['toVersion']&&Object['hasOwnProperty']['call'](_0x2e429c,'toVersion')&&_0x1fa1dc['uint32'](0x40)['uint32'](_0x2e429c['toVersion']),null!=_0x2e429c['fromVersion']&&Object['hasOwnProperty']['call'](_0x2e429c,'fromVersion')&&_0x1fa1dc['uint32'](0x48)['uint32'](_0x2e429c['fromVersion']),null!=_0x2e429c['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x2e429c,'isEmptyCurrent')&&_0x1fa1dc['uint32'](0x50)['bool'](_0x2e429c['isEmptyCurrent']),_0x1fa1dc;},_0x98e8ac['encodeDelimited']=function(_0x1b836c,_0x5b2b6a){return this['encode'](_0x1b836c,_0x5b2b6a)['ldelim']();},_0x98e8ac['decode']=function(_0x21b7ba,_0x265521,_0x1ee066){_0x21b7ba instanceof _0x33fc5a||(_0x21b7ba=_0x33fc5a['create'](_0x21b7ba));for(var _0x19b05e=void 0x0===_0x265521?_0x21b7ba['len']:_0x21b7ba['pos']+_0x265521,_0x32df37=new _0x2a91e5['RevisionDescriptor']();_0x21b7ba['pos']<_0x19b05e;){var _0x140d13=_0x21b7ba['uint32']();if(_0x140d13===_0x1ee066)break;switch(_0x140d13>>>0x3){case 0x1:_0x32df37['revisionId']=_0x21b7ba['string']();break;case 0x2:_0x32df37['name']=_0x21b7ba['string']();break;case 0x3:_0x32df37['creatorId']=_0x21b7ba['string']();break;case 0x4:_0x32df37['authorsIds']=_0x21b7ba['string']();break;case 0x5:_0x32df37['diffData']=_0x21b7ba['string']();break;case 0x6:_0x32df37['createdAt']=_0x21b7ba['string']();break;case 0x7:_0x32df37['attributes']=_0x21b7ba['string']();break;case 0x8:_0x32df37['toVersion']=_0x21b7ba['uint32']();break;case 0x9:_0x32df37['fromVersion']=_0x21b7ba['uint32']();break;case 0xa:_0x32df37['isEmptyCurrent']=_0x21b7ba['bool']();break;default:_0x21b7ba['skipType'](0x7&_0x140d13);}}return _0x32df37;},_0x98e8ac['decodeDelimited']=function(_0x550d92){return _0x550d92 instanceof _0x33fc5a||(_0x550d92=new _0x33fc5a(_0x550d92)),this['decode'](_0x550d92,_0x550d92['uint32']());},_0x98e8ac['verify']=function(_0x56c831){return'object'!=typeof _0x56c831||null===_0x56c831?'object\x20expected':null!=_0x56c831['revisionId']&&_0x56c831['hasOwnProperty']('revisionId')&&!_0x1fbc81['isString'](_0x56c831['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x56c831['name']&&_0x56c831['hasOwnProperty']('name')&&!_0x1fbc81['isString'](_0x56c831['name'])?'name:\x20string\x20expected':null!=_0x56c831['creatorId']&&_0x56c831['hasOwnProperty']('creatorId')&&!_0x1fbc81['isString'](_0x56c831['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x56c831['authorsIds']&&_0x56c831['hasOwnProperty']('authorsIds')&&!_0x1fbc81['isString'](_0x56c831['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x56c831['diffData']&&_0x56c831['hasOwnProperty']('diffData')&&!_0x1fbc81['isString'](_0x56c831['diffData'])?'diffData:\x20string\x20expected':null!=_0x56c831['createdAt']&&_0x56c831['hasOwnProperty']('createdAt')&&!_0x1fbc81['isString'](_0x56c831['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x56c831['attributes']&&_0x56c831['hasOwnProperty']('attributes')&&!_0x1fbc81['isString'](_0x56c831['attributes'])?'attributes:\x20string\x20expected':null!=_0x56c831['toVersion']&&_0x56c831['hasOwnProperty']('toVersion')&&!_0x1fbc81['isInteger'](_0x56c831['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x56c831['fromVersion']&&_0x56c831['hasOwnProperty']('fromVersion')&&!_0x1fbc81['isInteger'](_0x56c831['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x56c831['isEmptyCurrent']&&_0x56c831['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x56c831['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},_0x98e8ac['fromObject']=function(_0x3fab68){if(_0x3fab68 instanceof _0x2a91e5['RevisionDescriptor'])return _0x3fab68;var _0x2bbdb8=new _0x2a91e5['RevisionDescriptor']();return null!=_0x3fab68['revisionId']&&(_0x2bbdb8['revisionId']=String(_0x3fab68['revisionId'])),null!=_0x3fab68['name']&&(_0x2bbdb8['name']=String(_0x3fab68['name'])),null!=_0x3fab68['creatorId']&&(_0x2bbdb8['creatorId']=String(_0x3fab68['creatorId'])),null!=_0x3fab68['authorsIds']&&(_0x2bbdb8['authorsIds']=String(_0x3fab68['authorsIds'])),null!=_0x3fab68['diffData']&&(_0x2bbdb8['diffData']=String(_0x3fab68['diffData'])),null!=_0x3fab68['createdAt']&&(_0x2bbdb8['createdAt']=String(_0x3fab68['createdAt'])),null!=_0x3fab68['attributes']&&(_0x2bbdb8['attributes']=String(_0x3fab68['attributes'])),null!=_0x3fab68['toVersion']&&(_0x2bbdb8['toVersion']=_0x3fab68['toVersion']>>>0x0),null!=_0x3fab68['fromVersion']&&(_0x2bbdb8['fromVersion']=_0x3fab68['fromVersion']>>>0x0),null!=_0x3fab68['isEmptyCurrent']&&(_0x2bbdb8['isEmptyCurrent']=Boolean(_0x3fab68['isEmptyCurrent'])),_0x2bbdb8;},_0x98e8ac['toObject']=function(_0x3a2ade,_0xc861a){_0xc861a||(_0xc861a={});var _0x56fb68={};return _0xc861a['defaults']&&(_0x56fb68['revisionId']='',_0x56fb68['name']='',_0x56fb68['creatorId']='',_0x56fb68['authorsIds']='',_0x56fb68['diffData']='',_0x56fb68['createdAt']='',_0x56fb68['attributes']='',_0x56fb68['toVersion']=0x0,_0x56fb68['fromVersion']=0x0,_0x56fb68['isEmptyCurrent']=!0x1),null!=_0x3a2ade['revisionId']&&_0x3a2ade['hasOwnProperty']('revisionId')&&(_0x56fb68['revisionId']=_0x3a2ade['revisionId']),null!=_0x3a2ade['name']&&_0x3a2ade['hasOwnProperty']('name')&&(_0x56fb68['name']=_0x3a2ade['name']),null!=_0x3a2ade['creatorId']&&_0x3a2ade['hasOwnProperty']('creatorId')&&(_0x56fb68['creatorId']=_0x3a2ade['creatorId']),null!=_0x3a2ade['authorsIds']&&_0x3a2ade['hasOwnProperty']('authorsIds')&&(_0x56fb68['authorsIds']=_0x3a2ade['authorsIds']),null!=_0x3a2ade['diffData']&&_0x3a2ade['hasOwnProperty']('diffData')&&(_0x56fb68['diffData']=_0x3a2ade['diffData']),null!=_0x3a2ade['createdAt']&&_0x3a2ade['hasOwnProperty']('createdAt')&&(_0x56fb68['createdAt']=_0x3a2ade['createdAt']),null!=_0x3a2ade['attributes']&&_0x3a2ade['hasOwnProperty']('attributes')&&(_0x56fb68['attributes']=_0x3a2ade['attributes']),null!=_0x3a2ade['toVersion']&&_0x3a2ade['hasOwnProperty']('toVersion')&&(_0x56fb68['toVersion']=_0x3a2ade['toVersion']),null!=_0x3a2ade['fromVersion']&&_0x3a2ade['hasOwnProperty']('fromVersion')&&(_0x56fb68['fromVersion']=_0x3a2ade['fromVersion']),null!=_0x3a2ade['isEmptyCurrent']&&_0x3a2ade['hasOwnProperty']('isEmptyCurrent')&&(_0x56fb68['isEmptyCurrent']=_0x3a2ade['isEmptyCurrent']),_0x56fb68;},_0x98e8ac['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x98e8ac['getTypeUrl']=function(_0xa5595f){return void 0x0===_0xa5595f&&(_0xa5595f='type.googleapis.com'),_0xa5595f+'/RevisionDescriptor';},_0x98e8ac;}()),_0x2a91e5['RevisionHistoryConnectMessage']=(function(){function _0x480dc2(_0x35899c){if(_0x35899c){for(var _0x39a563=Object['keys'](_0x35899c),_0x1984b6=0x0;_0x1984b6<_0x39a563['length'];++_0x1984b6)null!=_0x35899c[_0x39a563[_0x1984b6]]&&(this[_0x39a563[_0x1984b6]]=_0x35899c[_0x39a563[_0x1984b6]]);}}return _0x480dc2['prototype']['documentId']='',_0x480dc2['create']=function(_0x5c7f3b){return new _0x480dc2(_0x5c7f3b);},_0x480dc2['encode']=function(_0x20f4bb,_0x439037){return _0x439037||(_0x439037=_0x86a107['create']()),null!=_0x20f4bb['documentId']&&Object['hasOwnProperty']['call'](_0x20f4bb,'documentId')&&_0x439037['uint32'](0xa)['string'](_0x20f4bb['documentId']),_0x439037;},_0x480dc2['encodeDelimited']=function(_0x1528d4,_0x3fb900){return this['encode'](_0x1528d4,_0x3fb900)['ldelim']();},_0x480dc2['decode']=function(_0x240118,_0x30203d,_0x3ca1b9){_0x240118 instanceof _0x33fc5a||(_0x240118=_0x33fc5a['create'](_0x240118));for(var _0x18ca1e=void 0x0===_0x30203d?_0x240118['len']:_0x240118['pos']+_0x30203d,_0x20c1e3=new _0x2a91e5['RevisionHistoryConnectMessage']();_0x240118['pos']<_0x18ca1e;){var _0x20f37f=_0x240118['uint32']();if(_0x20f37f===_0x3ca1b9)break;_0x20f37f>>>0x3==0x1?_0x20c1e3['documentId']=_0x240118['string']():_0x240118['skipType'](0x7&_0x20f37f);}return _0x20c1e3;},_0x480dc2['decodeDelimited']=function(_0x3994ae){return _0x3994ae instanceof _0x33fc5a||(_0x3994ae=new _0x33fc5a(_0x3994ae)),this['decode'](_0x3994ae,_0x3994ae['uint32']());},_0x480dc2['verify']=function(_0x3448df){return'object'!=typeof _0x3448df||null===_0x3448df?'object\x20expected':null!=_0x3448df['documentId']&&_0x3448df['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x3448df['documentId'])?'documentId:\x20string\x20expected':null;},_0x480dc2['fromObject']=function(_0x3b41c2){if(_0x3b41c2 instanceof _0x2a91e5['RevisionHistoryConnectMessage'])return _0x3b41c2;var _0x24c021=new _0x2a91e5['RevisionHistoryConnectMessage']();return null!=_0x3b41c2['documentId']&&(_0x24c021['documentId']=String(_0x3b41c2['documentId'])),_0x24c021;},_0x480dc2['toObject']=function(_0x1fe825,_0x660ed7){_0x660ed7||(_0x660ed7={});var _0x2dcf0d={};return _0x660ed7['defaults']&&(_0x2dcf0d['documentId']=''),null!=_0x1fe825['documentId']&&_0x1fe825['hasOwnProperty']('documentId')&&(_0x2dcf0d['documentId']=_0x1fe825['documentId']),_0x2dcf0d;},_0x480dc2['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x480dc2['getTypeUrl']=function(_0x5b6fcf){return void 0x0===_0x5b6fcf&&(_0x5b6fcf='type.googleapis.com'),_0x5b6fcf+'/RevisionHistoryConnectMessage';},_0x480dc2;}()),_0x2a91e5['RevisionHistoryGetRevisionMessage']=(function(){function _0x1aed4c(_0x3a788a){if(_0x3a788a){for(var _0x8af5ab=Object['keys'](_0x3a788a),_0xbe5710=0x0;_0xbe5710<_0x8af5ab['length'];++_0xbe5710)null!=_0x3a788a[_0x8af5ab[_0xbe5710]]&&(this[_0x8af5ab[_0xbe5710]]=_0x3a788a[_0x8af5ab[_0xbe5710]]);}}return _0x1aed4c['prototype']['documentId']='',_0x1aed4c['prototype']['revisionId']='',_0x1aed4c['create']=function(_0x470818){return new _0x1aed4c(_0x470818);},_0x1aed4c['encode']=function(_0x17f2f6,_0x5cee31){return _0x5cee31||(_0x5cee31=_0x86a107['create']()),null!=_0x17f2f6['documentId']&&Object['hasOwnProperty']['call'](_0x17f2f6,'documentId')&&_0x5cee31['uint32'](0xa)['string'](_0x17f2f6['documentId']),null!=_0x17f2f6['revisionId']&&Object['hasOwnProperty']['call'](_0x17f2f6,'revisionId')&&_0x5cee31['uint32'](0x12)['string'](_0x17f2f6['revisionId']),_0x5cee31;},_0x1aed4c['encodeDelimited']=function(_0x5baa8a,_0x2f0815){return this['encode'](_0x5baa8a,_0x2f0815)['ldelim']();},_0x1aed4c['decode']=function(_0x31296d,_0x346639,_0xd5340f){_0x31296d instanceof _0x33fc5a||(_0x31296d=_0x33fc5a['create'](_0x31296d));for(var _0x161dfa=void 0x0===_0x346639?_0x31296d['len']:_0x31296d['pos']+_0x346639,_0x10f669=new _0x2a91e5['RevisionHistoryGetRevisionMessage']();_0x31296d['pos']<_0x161dfa;){var _0xfad277=_0x31296d['uint32']();if(_0xfad277===_0xd5340f)break;switch(_0xfad277>>>0x3){case 0x1:_0x10f669['documentId']=_0x31296d['string']();break;case 0x2:_0x10f669['revisionId']=_0x31296d['string']();break;default:_0x31296d['skipType'](0x7&_0xfad277);}}return _0x10f669;},_0x1aed4c['decodeDelimited']=function(_0x3d185d){return _0x3d185d instanceof _0x33fc5a||(_0x3d185d=new _0x33fc5a(_0x3d185d)),this['decode'](_0x3d185d,_0x3d185d['uint32']());},_0x1aed4c['verify']=function(_0x20769d){return'object'!=typeof _0x20769d||null===_0x20769d?'object\x20expected':null!=_0x20769d['documentId']&&_0x20769d['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x20769d['documentId'])?'documentId:\x20string\x20expected':null!=_0x20769d['revisionId']&&_0x20769d['hasOwnProperty']('revisionId')&&!_0x1fbc81['isString'](_0x20769d['revisionId'])?'revisionId:\x20string\x20expected':null;},_0x1aed4c['fromObject']=function(_0x5446d5){if(_0x5446d5 instanceof _0x2a91e5['RevisionHistoryGetRevisionMessage'])return _0x5446d5;var _0x191d53=new _0x2a91e5['RevisionHistoryGetRevisionMessage']();return null!=_0x5446d5['documentId']&&(_0x191d53['documentId']=String(_0x5446d5['documentId'])),null!=_0x5446d5['revisionId']&&(_0x191d53['revisionId']=String(_0x5446d5['revisionId'])),_0x191d53;},_0x1aed4c['toObject']=function(_0x4ddf70,_0x3bccd7){_0x3bccd7||(_0x3bccd7={});var _0x5e14a9={};return _0x3bccd7['defaults']&&(_0x5e14a9['documentId']='',_0x5e14a9['revisionId']=''),null!=_0x4ddf70['documentId']&&_0x4ddf70['hasOwnProperty']('documentId')&&(_0x5e14a9['documentId']=_0x4ddf70['documentId']),null!=_0x4ddf70['revisionId']&&_0x4ddf70['hasOwnProperty']('revisionId')&&(_0x5e14a9['revisionId']=_0x4ddf70['revisionId']),_0x5e14a9;},_0x1aed4c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1aed4c['getTypeUrl']=function(_0x3589fc){return void 0x0===_0x3589fc&&(_0x3589fc='type.googleapis.com'),_0x3589fc+'/RevisionHistoryGetRevisionMessage';},_0x1aed4c;}()),_0x2a91e5['RevisionHistoryReconnectMessage']=(function(){function _0x149d8c(_0x496be0){if(_0x496be0){for(var _0x2cd1e3=Object['keys'](_0x496be0),_0x2a6515=0x0;_0x2a6515<_0x2cd1e3['length'];++_0x2a6515)null!=_0x496be0[_0x2cd1e3[_0x2a6515]]&&(this[_0x2cd1e3[_0x2a6515]]=_0x496be0[_0x2cd1e3[_0x2a6515]]);}}return _0x149d8c['prototype']['documentId']='',_0x149d8c['prototype']['requestId']=0x0,_0x149d8c['create']=function(_0x1150e9){return new _0x149d8c(_0x1150e9);},_0x149d8c['encode']=function(_0x2211c5,_0x1e8662){return _0x1e8662||(_0x1e8662=_0x86a107['create']()),null!=_0x2211c5['documentId']&&Object['hasOwnProperty']['call'](_0x2211c5,'documentId')&&_0x1e8662['uint32'](0xa)['string'](_0x2211c5['documentId']),null!=_0x2211c5['requestId']&&Object['hasOwnProperty']['call'](_0x2211c5,'requestId')&&_0x1e8662['uint32'](0x10)['uint32'](_0x2211c5['requestId']),_0x1e8662;},_0x149d8c['encodeDelimited']=function(_0x490016,_0x5aed18){return this['encode'](_0x490016,_0x5aed18)['ldelim']();},_0x149d8c['decode']=function(_0x5aefb0,_0x282fde,_0x598648){_0x5aefb0 instanceof _0x33fc5a||(_0x5aefb0=_0x33fc5a['create'](_0x5aefb0));for(var _0x5e1157=void 0x0===_0x282fde?_0x5aefb0['len']:_0x5aefb0['pos']+_0x282fde,_0x349725=new _0x2a91e5['RevisionHistoryReconnectMessage']();_0x5aefb0['pos']<_0x5e1157;){var _0x3d9de9=_0x5aefb0['uint32']();if(_0x3d9de9===_0x598648)break;switch(_0x3d9de9>>>0x3){case 0x1:_0x349725['documentId']=_0x5aefb0['string']();break;case 0x2:_0x349725['requestId']=_0x5aefb0['uint32']();break;default:_0x5aefb0['skipType'](0x7&_0x3d9de9);}}return _0x349725;},_0x149d8c['decodeDelimited']=function(_0x3e2025){return _0x3e2025 instanceof _0x33fc5a||(_0x3e2025=new _0x33fc5a(_0x3e2025)),this['decode'](_0x3e2025,_0x3e2025['uint32']());},_0x149d8c['verify']=function(_0x3dcf42){return'object'!=typeof _0x3dcf42||null===_0x3dcf42?'object\x20expected':null!=_0x3dcf42['documentId']&&_0x3dcf42['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x3dcf42['documentId'])?'documentId:\x20string\x20expected':null!=_0x3dcf42['requestId']&&_0x3dcf42['hasOwnProperty']('requestId')&&!_0x1fbc81['isInteger'](_0x3dcf42['requestId'])?'requestId:\x20integer\x20expected':null;},_0x149d8c['fromObject']=function(_0x36d0d0){if(_0x36d0d0 instanceof _0x2a91e5['RevisionHistoryReconnectMessage'])return _0x36d0d0;var _0xfc9be7=new _0x2a91e5['RevisionHistoryReconnectMessage']();return null!=_0x36d0d0['documentId']&&(_0xfc9be7['documentId']=String(_0x36d0d0['documentId'])),null!=_0x36d0d0['requestId']&&(_0xfc9be7['requestId']=_0x36d0d0['requestId']>>>0x0),_0xfc9be7;},_0x149d8c['toObject']=function(_0x15a19e,_0x391853){_0x391853||(_0x391853={});var _0x23a7ed={};return _0x391853['defaults']&&(_0x23a7ed['documentId']='',_0x23a7ed['requestId']=0x0),null!=_0x15a19e['documentId']&&_0x15a19e['hasOwnProperty']('documentId')&&(_0x23a7ed['documentId']=_0x15a19e['documentId']),null!=_0x15a19e['requestId']&&_0x15a19e['hasOwnProperty']('requestId')&&(_0x23a7ed['requestId']=_0x15a19e['requestId']),_0x23a7ed;},_0x149d8c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x149d8c['getTypeUrl']=function(_0x339522){return void 0x0===_0x339522&&(_0x339522='type.googleapis.com'),_0x339522+'/RevisionHistoryReconnectMessage';},_0x149d8c;}()),_0x2a91e5['RevisionHistoryUpdateRevisionsMessage']=(function(){function _0xd7b026(_0xaba8f2){if(this['revisions']=[],_0xaba8f2){for(var _0x82c67e=Object['keys'](_0xaba8f2),_0x526044=0x0;_0x526044<_0x82c67e['length'];++_0x526044)null!=_0xaba8f2[_0x82c67e[_0x526044]]&&(this[_0x82c67e[_0x526044]]=_0xaba8f2[_0x82c67e[_0x526044]]);}}return _0xd7b026['prototype']['documentId']='',_0xd7b026['prototype']['requestId']=0x0,_0xd7b026['prototype']['revisions']=_0x1fbc81['emptyArray'],_0xd7b026['create']=function(_0x2e7039){return new _0xd7b026(_0x2e7039);},_0xd7b026['encode']=function(_0x5c0d70,_0x28d129){if(_0x28d129||(_0x28d129=_0x86a107['create']()),null!=_0x5c0d70['documentId']&&Object['hasOwnProperty']['call'](_0x5c0d70,'documentId')&&_0x28d129['uint32'](0xa)['string'](_0x5c0d70['documentId']),null!=_0x5c0d70['requestId']&&Object['hasOwnProperty']['call'](_0x5c0d70,'requestId')&&_0x28d129['uint32'](0x10)['uint32'](_0x5c0d70['requestId']),null!=_0x5c0d70['revisions']&&_0x5c0d70['revisions']['length']){for(var _0x44eb2f=0x0;_0x44eb2f<_0x5c0d70['revisions']['length'];++_0x44eb2f)_0x2a91e5['RevisionDescriptor']['encode'](_0x5c0d70['revisions'][_0x44eb2f],_0x28d129['uint32'](0x1a)['fork']())['ldelim']();}return _0x28d129;},_0xd7b026['encodeDelimited']=function(_0x1b43af,_0x549cab){return this['encode'](_0x1b43af,_0x549cab)['ldelim']();},_0xd7b026['decode']=function(_0x1d85f1,_0x91315e,_0xf93e54){_0x1d85f1 instanceof _0x33fc5a||(_0x1d85f1=_0x33fc5a['create'](_0x1d85f1));for(var _0x5748f7=void 0x0===_0x91315e?_0x1d85f1['len']:_0x1d85f1['pos']+_0x91315e,_0x171157=new _0x2a91e5['RevisionHistoryUpdateRevisionsMessage']();_0x1d85f1['pos']<_0x5748f7;){var _0x506537=_0x1d85f1['uint32']();if(_0x506537===_0xf93e54)break;switch(_0x506537>>>0x3){case 0x1:_0x171157['documentId']=_0x1d85f1['string']();break;case 0x2:_0x171157['requestId']=_0x1d85f1['uint32']();break;case 0x3:_0x171157['revisions']&&_0x171157['revisions']['length']||(_0x171157['revisions']=[]),_0x171157['revisions']['push'](_0x2a91e5['RevisionDescriptor']['decode'](_0x1d85f1,_0x1d85f1['uint32']()));break;default:_0x1d85f1['skipType'](0x7&_0x506537);}}return _0x171157;},_0xd7b026['decodeDelimited']=function(_0x21eea3){return _0x21eea3 instanceof _0x33fc5a||(_0x21eea3=new _0x33fc5a(_0x21eea3)),this['decode'](_0x21eea3,_0x21eea3['uint32']());},_0xd7b026['verify']=function(_0x37cf0c){if('object'!=typeof _0x37cf0c||null===_0x37cf0c)return'object\x20expected';if(null!=_0x37cf0c['documentId']&&_0x37cf0c['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x37cf0c['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x37cf0c['requestId']&&_0x37cf0c['hasOwnProperty']('requestId')&&!_0x1fbc81['isInteger'](_0x37cf0c['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x37cf0c['revisions']&&_0x37cf0c['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x37cf0c['revisions']))return'revisions:\x20array\x20expected';for(var _0x5a57d9=0x0;_0x5a57d9<_0x37cf0c['revisions']['length'];++_0x5a57d9){var _0x32172f=_0x2a91e5['RevisionDescriptor']['verify'](_0x37cf0c['revisions'][_0x5a57d9]);if(_0x32172f)return'revisions.'+_0x32172f;}}return null;},_0xd7b026['fromObject']=function(_0x34168d){if(_0x34168d instanceof _0x2a91e5['RevisionHistoryUpdateRevisionsMessage'])return _0x34168d;var _0x400216=new _0x2a91e5['RevisionHistoryUpdateRevisionsMessage']();if(null!=_0x34168d['documentId']&&(_0x400216['documentId']=String(_0x34168d['documentId'])),null!=_0x34168d['requestId']&&(_0x400216['requestId']=_0x34168d['requestId']>>>0x0),_0x34168d['revisions']){if(!Array['isArray'](_0x34168d['revisions']))throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20array\x20expected');_0x400216['revisions']=[];for(var _0x363570=0x0;_0x363570<_0x34168d['revisions']['length'];++_0x363570){if('object'!=typeof _0x34168d['revisions'][_0x363570])throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20object\x20expected');_0x400216['revisions'][_0x363570]=_0x2a91e5['RevisionDescriptor']['fromObject'](_0x34168d['revisions'][_0x363570]);}}return _0x400216;},_0xd7b026['toObject']=function(_0x2358dd,_0x74ce91){_0x74ce91||(_0x74ce91={});var _0x32a0de={};if((_0x74ce91['arrays']||_0x74ce91['defaults'])&&(_0x32a0de['revisions']=[]),_0x74ce91['defaults']&&(_0x32a0de['documentId']='',_0x32a0de['requestId']=0x0),null!=_0x2358dd['documentId']&&_0x2358dd['hasOwnProperty']('documentId')&&(_0x32a0de['documentId']=_0x2358dd['documentId']),null!=_0x2358dd['requestId']&&_0x2358dd['hasOwnProperty']('requestId')&&(_0x32a0de['requestId']=_0x2358dd['requestId']),_0x2358dd['revisions']&&_0x2358dd['revisions']['length']){_0x32a0de['revisions']=[];for(var _0x1579c6=0x0;_0x1579c6<_0x2358dd['revisions']['length'];++_0x1579c6)_0x32a0de['revisions'][_0x1579c6]=_0x2a91e5['RevisionDescriptor']['toObject'](_0x2358dd['revisions'][_0x1579c6],_0x74ce91);}return _0x32a0de;},_0xd7b026['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xd7b026['getTypeUrl']=function(_0xc96a9){return void 0x0===_0xc96a9&&(_0xc96a9='type.googleapis.com'),_0xc96a9+'/RevisionHistoryUpdateRevisionsMessage';},_0xd7b026;}()),_0x2a91e5['RevisionHistoryConnectResponse']=(function(){function _0x4fb6d6(_0x556914){if(this['revisions']=[],_0x556914){for(var _0x5b077f=Object['keys'](_0x556914),_0x1cedb1=0x0;_0x1cedb1<_0x5b077f['length'];++_0x1cedb1)null!=_0x556914[_0x5b077f[_0x1cedb1]]&&(this[_0x5b077f[_0x1cedb1]]=_0x556914[_0x5b077f[_0x1cedb1]]);}}return _0x4fb6d6['prototype']['channel']='',_0x4fb6d6['prototype']['requestId']=0x0,_0x4fb6d6['prototype']['revisions']=_0x1fbc81['emptyArray'],_0x4fb6d6['create']=function(_0x1595ce){return new _0x4fb6d6(_0x1595ce);},_0x4fb6d6['encode']=function(_0x3878b1,_0xe0c80e){if(_0xe0c80e||(_0xe0c80e=_0x86a107['create']()),null!=_0x3878b1['channel']&&Object['hasOwnProperty']['call'](_0x3878b1,'channel')&&_0xe0c80e['uint32'](0xa)['string'](_0x3878b1['channel']),null!=_0x3878b1['requestId']&&Object['hasOwnProperty']['call'](_0x3878b1,'requestId')&&_0xe0c80e['uint32'](0x10)['uint32'](_0x3878b1['requestId']),null!=_0x3878b1['revisions']&&_0x3878b1['revisions']['length']){for(var _0x5e6e85=0x0;_0x5e6e85<_0x3878b1['revisions']['length'];++_0x5e6e85)_0x2a91e5['RevisionDescriptor']['encode'](_0x3878b1['revisions'][_0x5e6e85],_0xe0c80e['uint32'](0x1a)['fork']())['ldelim']();}return _0xe0c80e;},_0x4fb6d6['encodeDelimited']=function(_0x113742,_0x303e45){return this['encode'](_0x113742,_0x303e45)['ldelim']();},_0x4fb6d6['decode']=function(_0x49e5cb,_0x37a50f,_0x518fcb){_0x49e5cb instanceof _0x33fc5a||(_0x49e5cb=_0x33fc5a['create'](_0x49e5cb));for(var _0x3c38f7=void 0x0===_0x37a50f?_0x49e5cb['len']:_0x49e5cb['pos']+_0x37a50f,_0x4dfaa0=new _0x2a91e5['RevisionHistoryConnectResponse']();_0x49e5cb['pos']<_0x3c38f7;){var _0xe15e91=_0x49e5cb['uint32']();if(_0xe15e91===_0x518fcb)break;switch(_0xe15e91>>>0x3){case 0x1:_0x4dfaa0['channel']=_0x49e5cb['string']();break;case 0x2:_0x4dfaa0['requestId']=_0x49e5cb['uint32']();break;case 0x3:_0x4dfaa0['revisions']&&_0x4dfaa0['revisions']['length']||(_0x4dfaa0['revisions']=[]),_0x4dfaa0['revisions']['push'](_0x2a91e5['RevisionDescriptor']['decode'](_0x49e5cb,_0x49e5cb['uint32']()));break;default:_0x49e5cb['skipType'](0x7&_0xe15e91);}}return _0x4dfaa0;},_0x4fb6d6['decodeDelimited']=function(_0x1c9b22){return _0x1c9b22 instanceof _0x33fc5a||(_0x1c9b22=new _0x33fc5a(_0x1c9b22)),this['decode'](_0x1c9b22,_0x1c9b22['uint32']());},_0x4fb6d6['verify']=function(_0x1b01c6){if('object'!=typeof _0x1b01c6||null===_0x1b01c6)return'object\x20expected';if(null!=_0x1b01c6['channel']&&_0x1b01c6['hasOwnProperty']('channel')&&!_0x1fbc81['isString'](_0x1b01c6['channel']))return'channel:\x20string\x20expected';if(null!=_0x1b01c6['requestId']&&_0x1b01c6['hasOwnProperty']('requestId')&&!_0x1fbc81['isInteger'](_0x1b01c6['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x1b01c6['revisions']&&_0x1b01c6['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x1b01c6['revisions']))return'revisions:\x20array\x20expected';for(var _0x506604=0x0;_0x506604<_0x1b01c6['revisions']['length'];++_0x506604){var _0x2bfa0e=_0x2a91e5['RevisionDescriptor']['verify'](_0x1b01c6['revisions'][_0x506604]);if(_0x2bfa0e)return'revisions.'+_0x2bfa0e;}}return null;},_0x4fb6d6['fromObject']=function(_0x3d615e){if(_0x3d615e instanceof _0x2a91e5['RevisionHistoryConnectResponse'])return _0x3d615e;var _0x50de3f=new _0x2a91e5['RevisionHistoryConnectResponse']();if(null!=_0x3d615e['channel']&&(_0x50de3f['channel']=String(_0x3d615e['channel'])),null!=_0x3d615e['requestId']&&(_0x50de3f['requestId']=_0x3d615e['requestId']>>>0x0),_0x3d615e['revisions']){if(!Array['isArray'](_0x3d615e['revisions']))throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20array\x20expected');_0x50de3f['revisions']=[];for(var _0x3fa1ff=0x0;_0x3fa1ff<_0x3d615e['revisions']['length'];++_0x3fa1ff){if('object'!=typeof _0x3d615e['revisions'][_0x3fa1ff])throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20object\x20expected');_0x50de3f['revisions'][_0x3fa1ff]=_0x2a91e5['RevisionDescriptor']['fromObject'](_0x3d615e['revisions'][_0x3fa1ff]);}}return _0x50de3f;},_0x4fb6d6['toObject']=function(_0x5dc544,_0x246ba7){_0x246ba7||(_0x246ba7={});var _0xacdd08={};if((_0x246ba7['arrays']||_0x246ba7['defaults'])&&(_0xacdd08['revisions']=[]),_0x246ba7['defaults']&&(_0xacdd08['channel']='',_0xacdd08['requestId']=0x0),null!=_0x5dc544['channel']&&_0x5dc544['hasOwnProperty']('channel')&&(_0xacdd08['channel']=_0x5dc544['channel']),null!=_0x5dc544['requestId']&&_0x5dc544['hasOwnProperty']('requestId')&&(_0xacdd08['requestId']=_0x5dc544['requestId']),_0x5dc544['revisions']&&_0x5dc544['revisions']['length']){_0xacdd08['revisions']=[];for(var _0x461026=0x0;_0x461026<_0x5dc544['revisions']['length'];++_0x461026)_0xacdd08['revisions'][_0x461026]=_0x2a91e5['RevisionDescriptor']['toObject'](_0x5dc544['revisions'][_0x461026],_0x246ba7);}return _0xacdd08;},_0x4fb6d6['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4fb6d6['getTypeUrl']=function(_0x46bfee){return void 0x0===_0x46bfee&&(_0x46bfee='type.googleapis.com'),_0x46bfee+'/RevisionHistoryConnectResponse';},_0x4fb6d6;}()),_0x2a91e5['RevisionHistoryGetRevisionResponse']=(function(){function _0x2d56dd(_0x2a7cb1){if(_0x2a7cb1){for(var _0x4129e6=Object['keys'](_0x2a7cb1),_0x1a897f=0x0;_0x1a897f<_0x4129e6['length'];++_0x1a897f)null!=_0x2a7cb1[_0x4129e6[_0x1a897f]]&&(this[_0x4129e6[_0x1a897f]]=_0x2a7cb1[_0x4129e6[_0x1a897f]]);}}return _0x2d56dd['prototype']['revisionId']='',_0x2d56dd['prototype']['name']='',_0x2d56dd['prototype']['creatorId']='',_0x2d56dd['prototype']['authorsIds']='',_0x2d56dd['prototype']['diffData']='',_0x2d56dd['prototype']['createdAt']='',_0x2d56dd['prototype']['attributes']='',_0x2d56dd['prototype']['toVersion']=0x0,_0x2d56dd['prototype']['fromVersion']=0x0,_0x2d56dd['prototype']['isEmptyCurrent']=!0x1,_0x2d56dd['create']=function(_0x48ce7b){return new _0x2d56dd(_0x48ce7b);},_0x2d56dd['encode']=function(_0x1d6978,_0xa522a4){return _0xa522a4||(_0xa522a4=_0x86a107['create']()),null!=_0x1d6978['revisionId']&&Object['hasOwnProperty']['call'](_0x1d6978,'revisionId')&&_0xa522a4['uint32'](0xa)['string'](_0x1d6978['revisionId']),null!=_0x1d6978['name']&&Object['hasOwnProperty']['call'](_0x1d6978,'name')&&_0xa522a4['uint32'](0x12)['string'](_0x1d6978['name']),null!=_0x1d6978['creatorId']&&Object['hasOwnProperty']['call'](_0x1d6978,'creatorId')&&_0xa522a4['uint32'](0x1a)['string'](_0x1d6978['creatorId']),null!=_0x1d6978['authorsIds']&&Object['hasOwnProperty']['call'](_0x1d6978,'authorsIds')&&_0xa522a4['uint32'](0x22)['string'](_0x1d6978['authorsIds']),null!=_0x1d6978['diffData']&&Object['hasOwnProperty']['call'](_0x1d6978,'diffData')&&_0xa522a4['uint32'](0x2a)['string'](_0x1d6978['diffData']),null!=_0x1d6978['createdAt']&&Object['hasOwnProperty']['call'](_0x1d6978,'createdAt')&&_0xa522a4['uint32'](0x32)['string'](_0x1d6978['createdAt']),null!=_0x1d6978['attributes']&&Object['hasOwnProperty']['call'](_0x1d6978,'attributes')&&_0xa522a4['uint32'](0x3a)['string'](_0x1d6978['attributes']),null!=_0x1d6978['toVersion']&&Object['hasOwnProperty']['call'](_0x1d6978,'toVersion')&&_0xa522a4['uint32'](0x40)['uint32'](_0x1d6978['toVersion']),null!=_0x1d6978['fromVersion']&&Object['hasOwnProperty']['call'](_0x1d6978,'fromVersion')&&_0xa522a4['uint32'](0x48)['uint32'](_0x1d6978['fromVersion']),null!=_0x1d6978['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x1d6978,'isEmptyCurrent')&&_0xa522a4['uint32'](0x50)['bool'](_0x1d6978['isEmptyCurrent']),_0xa522a4;},_0x2d56dd['encodeDelimited']=function(_0xe4a88,_0x168e8a){return this['encode'](_0xe4a88,_0x168e8a)['ldelim']();},_0x2d56dd['decode']=function(_0xeef535,_0xe419c0,_0x4e2647){_0xeef535 instanceof _0x33fc5a||(_0xeef535=_0x33fc5a['create'](_0xeef535));for(var _0x460f14=void 0x0===_0xe419c0?_0xeef535['len']:_0xeef535['pos']+_0xe419c0,_0x43e5b6=new _0x2a91e5['RevisionHistoryGetRevisionResponse']();_0xeef535['pos']<_0x460f14;){var _0x557da0=_0xeef535['uint32']();if(_0x557da0===_0x4e2647)break;switch(_0x557da0>>>0x3){case 0x1:_0x43e5b6['revisionId']=_0xeef535['string']();break;case 0x2:_0x43e5b6['name']=_0xeef535['string']();break;case 0x3:_0x43e5b6['creatorId']=_0xeef535['string']();break;case 0x4:_0x43e5b6['authorsIds']=_0xeef535['string']();break;case 0x5:_0x43e5b6['diffData']=_0xeef535['string']();break;case 0x6:_0x43e5b6['createdAt']=_0xeef535['string']();break;case 0x7:_0x43e5b6['attributes']=_0xeef535['string']();break;case 0x8:_0x43e5b6['toVersion']=_0xeef535['uint32']();break;case 0x9:_0x43e5b6['fromVersion']=_0xeef535['uint32']();break;case 0xa:_0x43e5b6['isEmptyCurrent']=_0xeef535['bool']();break;default:_0xeef535['skipType'](0x7&_0x557da0);}}return _0x43e5b6;},_0x2d56dd['decodeDelimited']=function(_0x2f770b){return _0x2f770b instanceof _0x33fc5a||(_0x2f770b=new _0x33fc5a(_0x2f770b)),this['decode'](_0x2f770b,_0x2f770b['uint32']());},_0x2d56dd['verify']=function(_0x373227){return'object'!=typeof _0x373227||null===_0x373227?'object\x20expected':null!=_0x373227['revisionId']&&_0x373227['hasOwnProperty']('revisionId')&&!_0x1fbc81['isString'](_0x373227['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x373227['name']&&_0x373227['hasOwnProperty']('name')&&!_0x1fbc81['isString'](_0x373227['name'])?'name:\x20string\x20expected':null!=_0x373227['creatorId']&&_0x373227['hasOwnProperty']('creatorId')&&!_0x1fbc81['isString'](_0x373227['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x373227['authorsIds']&&_0x373227['hasOwnProperty']('authorsIds')&&!_0x1fbc81['isString'](_0x373227['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x373227['diffData']&&_0x373227['hasOwnProperty']('diffData')&&!_0x1fbc81['isString'](_0x373227['diffData'])?'diffData:\x20string\x20expected':null!=_0x373227['createdAt']&&_0x373227['hasOwnProperty']('createdAt')&&!_0x1fbc81['isString'](_0x373227['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x373227['attributes']&&_0x373227['hasOwnProperty']('attributes')&&!_0x1fbc81['isString'](_0x373227['attributes'])?'attributes:\x20string\x20expected':null!=_0x373227['toVersion']&&_0x373227['hasOwnProperty']('toVersion')&&!_0x1fbc81['isInteger'](_0x373227['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x373227['fromVersion']&&_0x373227['hasOwnProperty']('fromVersion')&&!_0x1fbc81['isInteger'](_0x373227['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x373227['isEmptyCurrent']&&_0x373227['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x373227['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},_0x2d56dd['fromObject']=function(_0x49eb39){if(_0x49eb39 instanceof _0x2a91e5['RevisionHistoryGetRevisionResponse'])return _0x49eb39;var _0x574c59=new _0x2a91e5['RevisionHistoryGetRevisionResponse']();return null!=_0x49eb39['revisionId']&&(_0x574c59['revisionId']=String(_0x49eb39['revisionId'])),null!=_0x49eb39['name']&&(_0x574c59['name']=String(_0x49eb39['name'])),null!=_0x49eb39['creatorId']&&(_0x574c59['creatorId']=String(_0x49eb39['creatorId'])),null!=_0x49eb39['authorsIds']&&(_0x574c59['authorsIds']=String(_0x49eb39['authorsIds'])),null!=_0x49eb39['diffData']&&(_0x574c59['diffData']=String(_0x49eb39['diffData'])),null!=_0x49eb39['createdAt']&&(_0x574c59['createdAt']=String(_0x49eb39['createdAt'])),null!=_0x49eb39['attributes']&&(_0x574c59['attributes']=String(_0x49eb39['attributes'])),null!=_0x49eb39['toVersion']&&(_0x574c59['toVersion']=_0x49eb39['toVersion']>>>0x0),null!=_0x49eb39['fromVersion']&&(_0x574c59['fromVersion']=_0x49eb39['fromVersion']>>>0x0),null!=_0x49eb39['isEmptyCurrent']&&(_0x574c59['isEmptyCurrent']=Boolean(_0x49eb39['isEmptyCurrent'])),_0x574c59;},_0x2d56dd['toObject']=function(_0x246ebe,_0x86ca4d){_0x86ca4d||(_0x86ca4d={});var _0x4b78b9={};return _0x86ca4d['defaults']&&(_0x4b78b9['revisionId']='',_0x4b78b9['name']='',_0x4b78b9['creatorId']='',_0x4b78b9['authorsIds']='',_0x4b78b9['diffData']='',_0x4b78b9['createdAt']='',_0x4b78b9['attributes']='',_0x4b78b9['toVersion']=0x0,_0x4b78b9['fromVersion']=0x0,_0x4b78b9['isEmptyCurrent']=!0x1),null!=_0x246ebe['revisionId']&&_0x246ebe['hasOwnProperty']('revisionId')&&(_0x4b78b9['revisionId']=_0x246ebe['revisionId']),null!=_0x246ebe['name']&&_0x246ebe['hasOwnProperty']('name')&&(_0x4b78b9['name']=_0x246ebe['name']),null!=_0x246ebe['creatorId']&&_0x246ebe['hasOwnProperty']('creatorId')&&(_0x4b78b9['creatorId']=_0x246ebe['creatorId']),null!=_0x246ebe['authorsIds']&&_0x246ebe['hasOwnProperty']('authorsIds')&&(_0x4b78b9['authorsIds']=_0x246ebe['authorsIds']),null!=_0x246ebe['diffData']&&_0x246ebe['hasOwnProperty']('diffData')&&(_0x4b78b9['diffData']=_0x246ebe['diffData']),null!=_0x246ebe['createdAt']&&_0x246ebe['hasOwnProperty']('createdAt')&&(_0x4b78b9['createdAt']=_0x246ebe['createdAt']),null!=_0x246ebe['attributes']&&_0x246ebe['hasOwnProperty']('attributes')&&(_0x4b78b9['attributes']=_0x246ebe['attributes']),null!=_0x246ebe['toVersion']&&_0x246ebe['hasOwnProperty']('toVersion')&&(_0x4b78b9['toVersion']=_0x246ebe['toVersion']),null!=_0x246ebe['fromVersion']&&_0x246ebe['hasOwnProperty']('fromVersion')&&(_0x4b78b9['fromVersion']=_0x246ebe['fromVersion']),null!=_0x246ebe['isEmptyCurrent']&&_0x246ebe['hasOwnProperty']('isEmptyCurrent')&&(_0x4b78b9['isEmptyCurrent']=_0x246ebe['isEmptyCurrent']),_0x4b78b9;},_0x2d56dd['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2d56dd['getTypeUrl']=function(_0x173917){return void 0x0===_0x173917&&(_0x173917='type.googleapis.com'),_0x173917+'/RevisionHistoryGetRevisionResponse';},_0x2d56dd;}()),_0x2a91e5['RevisionHistoryUpdateRevisionsResponse']=(function(){function _0x504438(_0x51df2d){if(_0x51df2d){for(var _0x10fcce=Object['keys'](_0x51df2d),_0x277bd0=0x0;_0x277bd0<_0x10fcce['length'];++_0x277bd0)null!=_0x51df2d[_0x10fcce[_0x277bd0]]&&(this[_0x10fcce[_0x277bd0]]=_0x51df2d[_0x10fcce[_0x277bd0]]);}}return _0x504438['prototype']['requestId']=0x0,_0x504438['create']=function(_0x48ecd5){return new _0x504438(_0x48ecd5);},_0x504438['encode']=function(_0x260ce8,_0x3f4472){return _0x3f4472||(_0x3f4472=_0x86a107['create']()),null!=_0x260ce8['requestId']&&Object['hasOwnProperty']['call'](_0x260ce8,'requestId')&&_0x3f4472['uint32'](0x8)['uint32'](_0x260ce8['requestId']),_0x3f4472;},_0x504438['encodeDelimited']=function(_0x18f59b,_0x18a12b){return this['encode'](_0x18f59b,_0x18a12b)['ldelim']();},_0x504438['decode']=function(_0x5c0e64,_0x2897b1,_0x17ed7b){_0x5c0e64 instanceof _0x33fc5a||(_0x5c0e64=_0x33fc5a['create'](_0x5c0e64));for(var _0x162fb2=void 0x0===_0x2897b1?_0x5c0e64['len']:_0x5c0e64['pos']+_0x2897b1,_0xebc95a=new _0x2a91e5['RevisionHistoryUpdateRevisionsResponse']();_0x5c0e64['pos']<_0x162fb2;){var _0x523c74=_0x5c0e64['uint32']();if(_0x523c74===_0x17ed7b)break;_0x523c74>>>0x3==0x1?_0xebc95a['requestId']=_0x5c0e64['uint32']():_0x5c0e64['skipType'](0x7&_0x523c74);}return _0xebc95a;},_0x504438['decodeDelimited']=function(_0x499752){return _0x499752 instanceof _0x33fc5a||(_0x499752=new _0x33fc5a(_0x499752)),this['decode'](_0x499752,_0x499752['uint32']());},_0x504438['verify']=function(_0x2f5191){return'object'!=typeof _0x2f5191||null===_0x2f5191?'object\x20expected':null!=_0x2f5191['requestId']&&_0x2f5191['hasOwnProperty']('requestId')&&!_0x1fbc81['isInteger'](_0x2f5191['requestId'])?'requestId:\x20integer\x20expected':null;},_0x504438['fromObject']=function(_0x3b89a2){if(_0x3b89a2 instanceof _0x2a91e5['RevisionHistoryUpdateRevisionsResponse'])return _0x3b89a2;var _0x5d5d31=new _0x2a91e5['RevisionHistoryUpdateRevisionsResponse']();return null!=_0x3b89a2['requestId']&&(_0x5d5d31['requestId']=_0x3b89a2['requestId']>>>0x0),_0x5d5d31;},_0x504438['toObject']=function(_0x4bf67f,_0x27a2f3){_0x27a2f3||(_0x27a2f3={});var _0x104adc={};return _0x27a2f3['defaults']&&(_0x104adc['requestId']=0x0),null!=_0x4bf67f['requestId']&&_0x4bf67f['hasOwnProperty']('requestId')&&(_0x104adc['requestId']=_0x4bf67f['requestId']),_0x104adc;},_0x504438['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x504438['getTypeUrl']=function(_0x251797){return void 0x0===_0x251797&&(_0x251797='type.googleapis.com'),_0x251797+'/RevisionHistoryUpdateRevisionsResponse';},_0x504438;}()),_0x2a91e5['SessionsSocketDescriptor']=(function(){function _0x42c65a(_0x3a0eec){if(this['permissions']=[],_0x3a0eec){for(var _0x412b8b=Object['keys'](_0x3a0eec),_0x430540=0x0;_0x430540<_0x412b8b['length'];++_0x430540)null!=_0x3a0eec[_0x412b8b[_0x430540]]&&(this[_0x412b8b[_0x430540]]=_0x3a0eec[_0x412b8b[_0x430540]]);}}return _0x42c65a['prototype']['session']='',_0x42c65a['prototype']['user']='',_0x42c65a['prototype']['role']='',_0x42c65a['prototype']['permissions']=_0x1fbc81['emptyArray'],_0x42c65a['create']=function(_0x1df225){return new _0x42c65a(_0x1df225);},_0x42c65a['encode']=function(_0x20e7a0,_0x55edf6){if(_0x55edf6||(_0x55edf6=_0x86a107['create']()),null!=_0x20e7a0['session']&&Object['hasOwnProperty']['call'](_0x20e7a0,'session')&&_0x55edf6['uint32'](0xa)['string'](_0x20e7a0['session']),null!=_0x20e7a0['user']&&Object['hasOwnProperty']['call'](_0x20e7a0,'user')&&_0x55edf6['uint32'](0x12)['string'](_0x20e7a0['user']),null!=_0x20e7a0['role']&&Object['hasOwnProperty']['call'](_0x20e7a0,'role')&&_0x55edf6['uint32'](0x1a)['string'](_0x20e7a0['role']),null!=_0x20e7a0['permissions']&&_0x20e7a0['permissions']['length']){for(var _0x1b53ae=0x0;_0x1b53ae<_0x20e7a0['permissions']['length'];++_0x1b53ae)_0x55edf6['uint32'](0x22)['string'](_0x20e7a0['permissions'][_0x1b53ae]);}return _0x55edf6;},_0x42c65a['encodeDelimited']=function(_0x2ec2c9,_0x3c3b2a){return this['encode'](_0x2ec2c9,_0x3c3b2a)['ldelim']();},_0x42c65a['decode']=function(_0xbf559a,_0x4f2474,_0x3334ed){_0xbf559a instanceof _0x33fc5a||(_0xbf559a=_0x33fc5a['create'](_0xbf559a));for(var _0x2db30c=void 0x0===_0x4f2474?_0xbf559a['len']:_0xbf559a['pos']+_0x4f2474,_0x2b3269=new _0x2a91e5['SessionsSocketDescriptor']();_0xbf559a['pos']<_0x2db30c;){var _0x32cfc8=_0xbf559a['uint32']();if(_0x32cfc8===_0x3334ed)break;switch(_0x32cfc8>>>0x3){case 0x1:_0x2b3269['session']=_0xbf559a['string']();break;case 0x2:_0x2b3269['user']=_0xbf559a['string']();break;case 0x3:_0x2b3269['role']=_0xbf559a['string']();break;case 0x4:_0x2b3269['permissions']&&_0x2b3269['permissions']['length']||(_0x2b3269['permissions']=[]),_0x2b3269['permissions']['push'](_0xbf559a['string']());break;default:_0xbf559a['skipType'](0x7&_0x32cfc8);}}return _0x2b3269;},_0x42c65a['decodeDelimited']=function(_0x3aa2b4){return _0x3aa2b4 instanceof _0x33fc5a||(_0x3aa2b4=new _0x33fc5a(_0x3aa2b4)),this['decode'](_0x3aa2b4,_0x3aa2b4['uint32']());},_0x42c65a['verify']=function(_0x2a83e6){if('object'!=typeof _0x2a83e6||null===_0x2a83e6)return'object\x20expected';if(null!=_0x2a83e6['session']&&_0x2a83e6['hasOwnProperty']('session')&&!_0x1fbc81['isString'](_0x2a83e6['session']))return'session:\x20string\x20expected';if(null!=_0x2a83e6['user']&&_0x2a83e6['hasOwnProperty']('user')&&!_0x1fbc81['isString'](_0x2a83e6['user']))return'user:\x20string\x20expected';if(null!=_0x2a83e6['role']&&_0x2a83e6['hasOwnProperty']('role')&&!_0x1fbc81['isString'](_0x2a83e6['role']))return'role:\x20string\x20expected';if(null!=_0x2a83e6['permissions']&&_0x2a83e6['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x2a83e6['permissions']))return'permissions:\x20array\x20expected';for(var _0x509978=0x0;_0x509978<_0x2a83e6['permissions']['length'];++_0x509978)if(!_0x1fbc81['isString'](_0x2a83e6['permissions'][_0x509978]))return'permissions:\x20string[]\x20expected';}return null;},_0x42c65a['fromObject']=function(_0xd8af33){if(_0xd8af33 instanceof _0x2a91e5['SessionsSocketDescriptor'])return _0xd8af33;var _0x42f9c3=new _0x2a91e5['SessionsSocketDescriptor']();if(null!=_0xd8af33['session']&&(_0x42f9c3['session']=String(_0xd8af33['session'])),null!=_0xd8af33['user']&&(_0x42f9c3['user']=String(_0xd8af33['user'])),null!=_0xd8af33['role']&&(_0x42f9c3['role']=String(_0xd8af33['role'])),_0xd8af33['permissions']){if(!Array['isArray'](_0xd8af33['permissions']))throw TypeError('.SessionsSocketDescriptor.permissions:\x20array\x20expected');_0x42f9c3['permissions']=[];for(var _0x4e09fb=0x0;_0x4e09fb<_0xd8af33['permissions']['length'];++_0x4e09fb)_0x42f9c3['permissions'][_0x4e09fb]=String(_0xd8af33['permissions'][_0x4e09fb]);}return _0x42f9c3;},_0x42c65a['toObject']=function(_0x18ca35,_0x35edce){_0x35edce||(_0x35edce={});var _0x3a2c30={};if((_0x35edce['arrays']||_0x35edce['defaults'])&&(_0x3a2c30['permissions']=[]),_0x35edce['defaults']&&(_0x3a2c30['session']='',_0x3a2c30['user']='',_0x3a2c30['role']=''),null!=_0x18ca35['session']&&_0x18ca35['hasOwnProperty']('session')&&(_0x3a2c30['session']=_0x18ca35['session']),null!=_0x18ca35['user']&&_0x18ca35['hasOwnProperty']('user')&&(_0x3a2c30['user']=_0x18ca35['user']),null!=_0x18ca35['role']&&_0x18ca35['hasOwnProperty']('role')&&(_0x3a2c30['role']=_0x18ca35['role']),_0x18ca35['permissions']&&_0x18ca35['permissions']['length']){_0x3a2c30['permissions']=[];for(var _0x191d20=0x0;_0x191d20<_0x18ca35['permissions']['length'];++_0x191d20)_0x3a2c30['permissions'][_0x191d20]=_0x18ca35['permissions'][_0x191d20];}return _0x3a2c30;},_0x42c65a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x42c65a['getTypeUrl']=function(_0x1b8c07){return void 0x0===_0x1b8c07&&(_0x1b8c07='type.googleapis.com'),_0x1b8c07+'/SessionsSocketDescriptor';},_0x42c65a;}()),_0x2a91e5['SessionsConnectMessage']=(function(){function _0x35dd11(_0x5a4228){if(_0x5a4228){for(var _0x36c456=Object['keys'](_0x5a4228),_0x5724ec=0x0;_0x5724ec<_0x36c456['length'];++_0x5724ec)null!=_0x5a4228[_0x36c456[_0x5724ec]]&&(this[_0x36c456[_0x5724ec]]=_0x5a4228[_0x36c456[_0x5724ec]]);}}return _0x35dd11['prototype']['id']='',_0x35dd11['prototype']['sessionType']=0x0,_0x35dd11['create']=function(_0x140e86){return new _0x35dd11(_0x140e86);},_0x35dd11['encode']=function(_0x5dbffa,_0x2f7c59){return _0x2f7c59||(_0x2f7c59=_0x86a107['create']()),null!=_0x5dbffa['id']&&Object['hasOwnProperty']['call'](_0x5dbffa,'id')&&_0x2f7c59['uint32'](0xa)['string'](_0x5dbffa['id']),null!=_0x5dbffa['sessionType']&&Object['hasOwnProperty']['call'](_0x5dbffa,'sessionType')&&_0x2f7c59['uint32'](0x10)['uint32'](_0x5dbffa['sessionType']),_0x2f7c59;},_0x35dd11['encodeDelimited']=function(_0x48b989,_0x2d5b6e){return this['encode'](_0x48b989,_0x2d5b6e)['ldelim']();},_0x35dd11['decode']=function(_0x127ea5,_0x239782,_0x409e90){_0x127ea5 instanceof _0x33fc5a||(_0x127ea5=_0x33fc5a['create'](_0x127ea5));for(var _0x3bdc91=void 0x0===_0x239782?_0x127ea5['len']:_0x127ea5['pos']+_0x239782,_0x4f3903=new _0x2a91e5['SessionsConnectMessage']();_0x127ea5['pos']<_0x3bdc91;){var _0x422c9a=_0x127ea5['uint32']();if(_0x422c9a===_0x409e90)break;switch(_0x422c9a>>>0x3){case 0x1:_0x4f3903['id']=_0x127ea5['string']();break;case 0x2:_0x4f3903['sessionType']=_0x127ea5['uint32']();break;default:_0x127ea5['skipType'](0x7&_0x422c9a);}}return _0x4f3903;},_0x35dd11['decodeDelimited']=function(_0x4946f5){return _0x4946f5 instanceof _0x33fc5a||(_0x4946f5=new _0x33fc5a(_0x4946f5)),this['decode'](_0x4946f5,_0x4946f5['uint32']());},_0x35dd11['verify']=function(_0x2882be){return'object'!=typeof _0x2882be||null===_0x2882be?'object\x20expected':null!=_0x2882be['id']&&_0x2882be['hasOwnProperty']('id')&&!_0x1fbc81['isString'](_0x2882be['id'])?'id:\x20string\x20expected':null!=_0x2882be['sessionType']&&_0x2882be['hasOwnProperty']('sessionType')&&!_0x1fbc81['isInteger'](_0x2882be['sessionType'])?'sessionType:\x20integer\x20expected':null;},_0x35dd11['fromObject']=function(_0x3172cd){if(_0x3172cd instanceof _0x2a91e5['SessionsConnectMessage'])return _0x3172cd;var _0x3c262d=new _0x2a91e5['SessionsConnectMessage']();return null!=_0x3172cd['id']&&(_0x3c262d['id']=String(_0x3172cd['id'])),null!=_0x3172cd['sessionType']&&(_0x3c262d['sessionType']=_0x3172cd['sessionType']>>>0x0),_0x3c262d;},_0x35dd11['toObject']=function(_0x48dd98,_0x50c844){_0x50c844||(_0x50c844={});var _0x13ee59={};return _0x50c844['defaults']&&(_0x13ee59['id']='',_0x13ee59['sessionType']=0x0),null!=_0x48dd98['id']&&_0x48dd98['hasOwnProperty']('id')&&(_0x13ee59['id']=_0x48dd98['id']),null!=_0x48dd98['sessionType']&&_0x48dd98['hasOwnProperty']('sessionType')&&(_0x13ee59['sessionType']=_0x48dd98['sessionType']),_0x13ee59;},_0x35dd11['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x35dd11['getTypeUrl']=function(_0x31ffdc){return void 0x0===_0x31ffdc&&(_0x31ffdc='type.googleapis.com'),_0x31ffdc+'/SessionsConnectMessage';},_0x35dd11;}()),_0x2a91e5['SocketConnectMessage']=(function(){function _0xd40bf4(_0x1f8df0){if(this['permissions']=[],_0x1f8df0){for(var _0xdaae08=Object['keys'](_0x1f8df0),_0x482a91=0x0;_0x482a91<_0xdaae08['length'];++_0x482a91)null!=_0x1f8df0[_0xdaae08[_0x482a91]]&&(this[_0xdaae08[_0x482a91]]=_0x1f8df0[_0xdaae08[_0x482a91]]);}}return _0xd40bf4['prototype']['id']='',_0xd40bf4['prototype']['userId']='',_0xd40bf4['prototype']['role']='',_0xd40bf4['prototype']['permissions']=_0x1fbc81['emptyArray'],_0xd40bf4['create']=function(_0xa86722){return new _0xd40bf4(_0xa86722);},_0xd40bf4['encode']=function(_0x2ff575,_0x45640d){if(_0x45640d||(_0x45640d=_0x86a107['create']()),null!=_0x2ff575['id']&&Object['hasOwnProperty']['call'](_0x2ff575,'id')&&_0x45640d['uint32'](0xa)['string'](_0x2ff575['id']),null!=_0x2ff575['userId']&&Object['hasOwnProperty']['call'](_0x2ff575,'userId')&&_0x45640d['uint32'](0x12)['string'](_0x2ff575['userId']),null!=_0x2ff575['role']&&Object['hasOwnProperty']['call'](_0x2ff575,'role')&&_0x45640d['uint32'](0x1a)['string'](_0x2ff575['role']),null!=_0x2ff575['permissions']&&_0x2ff575['permissions']['length']){for(var _0x3780bb=0x0;_0x3780bb<_0x2ff575['permissions']['length'];++_0x3780bb)_0x45640d['uint32'](0x22)['string'](_0x2ff575['permissions'][_0x3780bb]);}return _0x45640d;},_0xd40bf4['encodeDelimited']=function(_0x2d419c,_0x309b4a){return this['encode'](_0x2d419c,_0x309b4a)['ldelim']();},_0xd40bf4['decode']=function(_0x457a3c,_0x449457,_0xfb6971){_0x457a3c instanceof _0x33fc5a||(_0x457a3c=_0x33fc5a['create'](_0x457a3c));for(var _0x429ad1=void 0x0===_0x449457?_0x457a3c['len']:_0x457a3c['pos']+_0x449457,_0x67146a=new _0x2a91e5['SocketConnectMessage']();_0x457a3c['pos']<_0x429ad1;){var _0xe9d897=_0x457a3c['uint32']();if(_0xe9d897===_0xfb6971)break;switch(_0xe9d897>>>0x3){case 0x1:_0x67146a['id']=_0x457a3c['string']();break;case 0x2:_0x67146a['userId']=_0x457a3c['string']();break;case 0x3:_0x67146a['role']=_0x457a3c['string']();break;case 0x4:_0x67146a['permissions']&&_0x67146a['permissions']['length']||(_0x67146a['permissions']=[]),_0x67146a['permissions']['push'](_0x457a3c['string']());break;default:_0x457a3c['skipType'](0x7&_0xe9d897);}}return _0x67146a;},_0xd40bf4['decodeDelimited']=function(_0x3393b4){return _0x3393b4 instanceof _0x33fc5a||(_0x3393b4=new _0x33fc5a(_0x3393b4)),this['decode'](_0x3393b4,_0x3393b4['uint32']());},_0xd40bf4['verify']=function(_0x218fff){if('object'!=typeof _0x218fff||null===_0x218fff)return'object\x20expected';if(null!=_0x218fff['id']&&_0x218fff['hasOwnProperty']('id')&&!_0x1fbc81['isString'](_0x218fff['id']))return'id:\x20string\x20expected';if(null!=_0x218fff['userId']&&_0x218fff['hasOwnProperty']('userId')&&!_0x1fbc81['isString'](_0x218fff['userId']))return'userId:\x20string\x20expected';if(null!=_0x218fff['role']&&_0x218fff['hasOwnProperty']('role')&&!_0x1fbc81['isString'](_0x218fff['role']))return'role:\x20string\x20expected';if(null!=_0x218fff['permissions']&&_0x218fff['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x218fff['permissions']))return'permissions:\x20array\x20expected';for(var _0x45286b=0x0;_0x45286b<_0x218fff['permissions']['length'];++_0x45286b)if(!_0x1fbc81['isString'](_0x218fff['permissions'][_0x45286b]))return'permissions:\x20string[]\x20expected';}return null;},_0xd40bf4['fromObject']=function(_0x4baa1f){if(_0x4baa1f instanceof _0x2a91e5['SocketConnectMessage'])return _0x4baa1f;var _0x4f9221=new _0x2a91e5['SocketConnectMessage']();if(null!=_0x4baa1f['id']&&(_0x4f9221['id']=String(_0x4baa1f['id'])),null!=_0x4baa1f['userId']&&(_0x4f9221['userId']=String(_0x4baa1f['userId'])),null!=_0x4baa1f['role']&&(_0x4f9221['role']=String(_0x4baa1f['role'])),_0x4baa1f['permissions']){if(!Array['isArray'](_0x4baa1f['permissions']))throw TypeError('.SocketConnectMessage.permissions:\x20array\x20expected');_0x4f9221['permissions']=[];for(var _0x38cab2=0x0;_0x38cab2<_0x4baa1f['permissions']['length'];++_0x38cab2)_0x4f9221['permissions'][_0x38cab2]=String(_0x4baa1f['permissions'][_0x38cab2]);}return _0x4f9221;},_0xd40bf4['toObject']=function(_0x44a851,_0x4c9f34){_0x4c9f34||(_0x4c9f34={});var _0x5d5b11={};if((_0x4c9f34['arrays']||_0x4c9f34['defaults'])&&(_0x5d5b11['permissions']=[]),_0x4c9f34['defaults']&&(_0x5d5b11['id']='',_0x5d5b11['userId']='',_0x5d5b11['role']=''),null!=_0x44a851['id']&&_0x44a851['hasOwnProperty']('id')&&(_0x5d5b11['id']=_0x44a851['id']),null!=_0x44a851['userId']&&_0x44a851['hasOwnProperty']('userId')&&(_0x5d5b11['userId']=_0x44a851['userId']),null!=_0x44a851['role']&&_0x44a851['hasOwnProperty']('role')&&(_0x5d5b11['role']=_0x44a851['role']),_0x44a851['permissions']&&_0x44a851['permissions']['length']){_0x5d5b11['permissions']=[];for(var _0x6b7ba4=0x0;_0x6b7ba4<_0x44a851['permissions']['length'];++_0x6b7ba4)_0x5d5b11['permissions'][_0x6b7ba4]=_0x44a851['permissions'][_0x6b7ba4];}return _0x5d5b11;},_0xd40bf4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xd40bf4['getTypeUrl']=function(_0x4fe1b1){return void 0x0===_0x4fe1b1&&(_0x4fe1b1='type.googleapis.com'),_0x4fe1b1+'/SocketConnectMessage';},_0xd40bf4;}()),_0x2a91e5['SocketDisconnectMessage']=(function(){function _0x52f07e(_0x36e1d0){if(_0x36e1d0){for(var _0x25a08d=Object['keys'](_0x36e1d0),_0xafb1d=0x0;_0xafb1d<_0x25a08d['length'];++_0xafb1d)null!=_0x36e1d0[_0x25a08d[_0xafb1d]]&&(this[_0x25a08d[_0xafb1d]]=_0x36e1d0[_0x25a08d[_0xafb1d]]);}}return _0x52f07e['prototype']['id']='',_0x52f07e['create']=function(_0x10a475){return new _0x52f07e(_0x10a475);},_0x52f07e['encode']=function(_0x18703a,_0x4fe4d4){return _0x4fe4d4||(_0x4fe4d4=_0x86a107['create']()),null!=_0x18703a['id']&&Object['hasOwnProperty']['call'](_0x18703a,'id')&&_0x4fe4d4['uint32'](0xa)['string'](_0x18703a['id']),_0x4fe4d4;},_0x52f07e['encodeDelimited']=function(_0x1838f5,_0x35e5fa){return this['encode'](_0x1838f5,_0x35e5fa)['ldelim']();},_0x52f07e['decode']=function(_0x15ae9b,_0xc273a8,_0x3c688d){_0x15ae9b instanceof _0x33fc5a||(_0x15ae9b=_0x33fc5a['create'](_0x15ae9b));for(var _0x514d48=void 0x0===_0xc273a8?_0x15ae9b['len']:_0x15ae9b['pos']+_0xc273a8,_0x308d57=new _0x2a91e5['SocketDisconnectMessage']();_0x15ae9b['pos']<_0x514d48;){var _0x3a0116=_0x15ae9b['uint32']();if(_0x3a0116===_0x3c688d)break;_0x3a0116>>>0x3==0x1?_0x308d57['id']=_0x15ae9b['string']():_0x15ae9b['skipType'](0x7&_0x3a0116);}return _0x308d57;},_0x52f07e['decodeDelimited']=function(_0x262c2c){return _0x262c2c instanceof _0x33fc5a||(_0x262c2c=new _0x33fc5a(_0x262c2c)),this['decode'](_0x262c2c,_0x262c2c['uint32']());},_0x52f07e['verify']=function(_0x3bf31f){return'object'!=typeof _0x3bf31f||null===_0x3bf31f?'object\x20expected':null!=_0x3bf31f['id']&&_0x3bf31f['hasOwnProperty']('id')&&!_0x1fbc81['isString'](_0x3bf31f['id'])?'id:\x20string\x20expected':null;},_0x52f07e['fromObject']=function(_0x4c4156){if(_0x4c4156 instanceof _0x2a91e5['SocketDisconnectMessage'])return _0x4c4156;var _0x1b9287=new _0x2a91e5['SocketDisconnectMessage']();return null!=_0x4c4156['id']&&(_0x1b9287['id']=String(_0x4c4156['id'])),_0x1b9287;},_0x52f07e['toObject']=function(_0x27ec19,_0x565144){_0x565144||(_0x565144={});var _0x11ff97={};return _0x565144['defaults']&&(_0x11ff97['id']=''),null!=_0x27ec19['id']&&_0x27ec19['hasOwnProperty']('id')&&(_0x11ff97['id']=_0x27ec19['id']),_0x11ff97;},_0x52f07e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x52f07e['getTypeUrl']=function(_0x290f63){return void 0x0===_0x290f63&&(_0x290f63='type.googleapis.com'),_0x290f63+'/SocketDisconnectMessage';},_0x52f07e;}()),_0x2a91e5['SessionsConnectResponse']=(function(){function _0x49d811(_0x22664b){if(this['sockets']=[],_0x22664b){for(var _0x13ef29=Object['keys'](_0x22664b),_0x34cec6=0x0;_0x34cec6<_0x13ef29['length'];++_0x34cec6)null!=_0x22664b[_0x13ef29[_0x34cec6]]&&(this[_0x13ef29[_0x34cec6]]=_0x22664b[_0x13ef29[_0x34cec6]]);}}return _0x49d811['prototype']['channel']='',_0x49d811['prototype']['sockets']=_0x1fbc81['emptyArray'],_0x49d811['create']=function(_0x318e98){return new _0x49d811(_0x318e98);},_0x49d811['encode']=function(_0x47b516,_0x124f33){if(_0x124f33||(_0x124f33=_0x86a107['create']()),null!=_0x47b516['channel']&&Object['hasOwnProperty']['call'](_0x47b516,'channel')&&_0x124f33['uint32'](0xa)['string'](_0x47b516['channel']),null!=_0x47b516['sockets']&&_0x47b516['sockets']['length']){for(var _0x8cff94=0x0;_0x8cff94<_0x47b516['sockets']['length'];++_0x8cff94)_0x2a91e5['SessionsSocketDescriptor']['encode'](_0x47b516['sockets'][_0x8cff94],_0x124f33['uint32'](0x12)['fork']())['ldelim']();}return _0x124f33;},_0x49d811['encodeDelimited']=function(_0x485920,_0x5da58c){return this['encode'](_0x485920,_0x5da58c)['ldelim']();},_0x49d811['decode']=function(_0x562be9,_0x38c130,_0x38c1b8){_0x562be9 instanceof _0x33fc5a||(_0x562be9=_0x33fc5a['create'](_0x562be9));for(var _0x3aeb1d=void 0x0===_0x38c130?_0x562be9['len']:_0x562be9['pos']+_0x38c130,_0x1c1140=new _0x2a91e5['SessionsConnectResponse']();_0x562be9['pos']<_0x3aeb1d;){var _0x30e5c5=_0x562be9['uint32']();if(_0x30e5c5===_0x38c1b8)break;switch(_0x30e5c5>>>0x3){case 0x1:_0x1c1140['channel']=_0x562be9['string']();break;case 0x2:_0x1c1140['sockets']&&_0x1c1140['sockets']['length']||(_0x1c1140['sockets']=[]),_0x1c1140['sockets']['push'](_0x2a91e5['SessionsSocketDescriptor']['decode'](_0x562be9,_0x562be9['uint32']()));break;default:_0x562be9['skipType'](0x7&_0x30e5c5);}}return _0x1c1140;},_0x49d811['decodeDelimited']=function(_0x370f0e){return _0x370f0e instanceof _0x33fc5a||(_0x370f0e=new _0x33fc5a(_0x370f0e)),this['decode'](_0x370f0e,_0x370f0e['uint32']());},_0x49d811['verify']=function(_0x3694b5){if('object'!=typeof _0x3694b5||null===_0x3694b5)return'object\x20expected';if(null!=_0x3694b5['channel']&&_0x3694b5['hasOwnProperty']('channel')&&!_0x1fbc81['isString'](_0x3694b5['channel']))return'channel:\x20string\x20expected';if(null!=_0x3694b5['sockets']&&_0x3694b5['hasOwnProperty']('sockets')){if(!Array['isArray'](_0x3694b5['sockets']))return'sockets:\x20array\x20expected';for(var _0x5c6baa=0x0;_0x5c6baa<_0x3694b5['sockets']['length'];++_0x5c6baa){var _0x39c8aa=_0x2a91e5['SessionsSocketDescriptor']['verify'](_0x3694b5['sockets'][_0x5c6baa]);if(_0x39c8aa)return'sockets.'+_0x39c8aa;}}return null;},_0x49d811['fromObject']=function(_0x1394cc){if(_0x1394cc instanceof _0x2a91e5['SessionsConnectResponse'])return _0x1394cc;var _0x37420c=new _0x2a91e5['SessionsConnectResponse']();if(null!=_0x1394cc['channel']&&(_0x37420c['channel']=String(_0x1394cc['channel'])),_0x1394cc['sockets']){if(!Array['isArray'](_0x1394cc['sockets']))throw TypeError('.SessionsConnectResponse.sockets:\x20array\x20expected');_0x37420c['sockets']=[];for(var _0x15baf3=0x0;_0x15baf3<_0x1394cc['sockets']['length'];++_0x15baf3){if('object'!=typeof _0x1394cc['sockets'][_0x15baf3])throw TypeError('.SessionsConnectResponse.sockets:\x20object\x20expected');_0x37420c['sockets'][_0x15baf3]=_0x2a91e5['SessionsSocketDescriptor']['fromObject'](_0x1394cc['sockets'][_0x15baf3]);}}return _0x37420c;},_0x49d811['toObject']=function(_0xc45a70,_0x5ba80d){_0x5ba80d||(_0x5ba80d={});var _0x9d13e6={};if((_0x5ba80d['arrays']||_0x5ba80d['defaults'])&&(_0x9d13e6['sockets']=[]),_0x5ba80d['defaults']&&(_0x9d13e6['channel']=''),null!=_0xc45a70['channel']&&_0xc45a70['hasOwnProperty']('channel')&&(_0x9d13e6['channel']=_0xc45a70['channel']),_0xc45a70['sockets']&&_0xc45a70['sockets']['length']){_0x9d13e6['sockets']=[];for(var _0x33ec8d=0x0;_0x33ec8d<_0xc45a70['sockets']['length'];++_0x33ec8d)_0x9d13e6['sockets'][_0x33ec8d]=_0x2a91e5['SessionsSocketDescriptor']['toObject'](_0xc45a70['sockets'][_0x33ec8d],_0x5ba80d);}return _0x9d13e6;},_0x49d811['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x49d811['getTypeUrl']=function(_0x42c917){return void 0x0===_0x42c917&&(_0x42c917='type.googleapis.com'),_0x42c917+'/SessionsConnectResponse';},_0x49d811;}()),_0x2a91e5['SuggestionDescriptor']=(function(){function _0x15a24a(_0x24b6ec){if(_0x24b6ec){for(var _0x114310=Object['keys'](_0x24b6ec),_0x408a06=0x0;_0x408a06<_0x114310['length'];++_0x408a06)null!=_0x24b6ec[_0x114310[_0x408a06]]&&(this[_0x114310[_0x408a06]]=_0x24b6ec[_0x114310[_0x408a06]]);}}return _0x15a24a['prototype']['id']='',_0x15a24a['prototype']['authorId']='',_0x15a24a['prototype']['type']='',_0x15a24a['prototype']['createdAt']='',_0x15a24a['prototype']['data']='',_0x15a24a['prototype']['hasComments']=!0x1,_0x15a24a['prototype']['state']='',_0x15a24a['prototype']['attributes']='',_0x15a24a['create']=function(_0xd69dc){return new _0x15a24a(_0xd69dc);},_0x15a24a['encode']=function(_0x1264c9,_0x2dd436){return _0x2dd436||(_0x2dd436=_0x86a107['create']()),null!=_0x1264c9['id']&&Object['hasOwnProperty']['call'](_0x1264c9,'id')&&_0x2dd436['uint32'](0xa)['string'](_0x1264c9['id']),null!=_0x1264c9['authorId']&&Object['hasOwnProperty']['call'](_0x1264c9,'authorId')&&_0x2dd436['uint32'](0x12)['string'](_0x1264c9['authorId']),null!=_0x1264c9['type']&&Object['hasOwnProperty']['call'](_0x1264c9,'type')&&_0x2dd436['uint32'](0x1a)['string'](_0x1264c9['type']),null!=_0x1264c9['createdAt']&&Object['hasOwnProperty']['call'](_0x1264c9,'createdAt')&&_0x2dd436['uint32'](0x22)['string'](_0x1264c9['createdAt']),null!=_0x1264c9['data']&&Object['hasOwnProperty']['call'](_0x1264c9,'data')&&_0x2dd436['uint32'](0x2a)['string'](_0x1264c9['data']),null!=_0x1264c9['hasComments']&&Object['hasOwnProperty']['call'](_0x1264c9,'hasComments')&&_0x2dd436['uint32'](0x30)['bool'](_0x1264c9['hasComments']),null!=_0x1264c9['state']&&Object['hasOwnProperty']['call'](_0x1264c9,'state')&&_0x2dd436['uint32'](0x3a)['string'](_0x1264c9['state']),null!=_0x1264c9['attributes']&&Object['hasOwnProperty']['call'](_0x1264c9,'attributes')&&_0x2dd436['uint32'](0x42)['string'](_0x1264c9['attributes']),_0x2dd436;},_0x15a24a['encodeDelimited']=function(_0x1747a4,_0x2d6b13){return this['encode'](_0x1747a4,_0x2d6b13)['ldelim']();},_0x15a24a['decode']=function(_0x3e233f,_0x5aecd4,_0x3466fa){_0x3e233f instanceof _0x33fc5a||(_0x3e233f=_0x33fc5a['create'](_0x3e233f));for(var _0x4b118e=void 0x0===_0x5aecd4?_0x3e233f['len']:_0x3e233f['pos']+_0x5aecd4,_0x4929d4=new _0x2a91e5['SuggestionDescriptor']();_0x3e233f['pos']<_0x4b118e;){var _0x511013=_0x3e233f['uint32']();if(_0x511013===_0x3466fa)break;switch(_0x511013>>>0x3){case 0x1:_0x4929d4['id']=_0x3e233f['string']();break;case 0x2:_0x4929d4['authorId']=_0x3e233f['string']();break;case 0x3:_0x4929d4['type']=_0x3e233f['string']();break;case 0x4:_0x4929d4['createdAt']=_0x3e233f['string']();break;case 0x5:_0x4929d4['data']=_0x3e233f['string']();break;case 0x6:_0x4929d4['hasComments']=_0x3e233f['bool']();break;case 0x7:_0x4929d4['state']=_0x3e233f['string']();break;case 0x8:_0x4929d4['attributes']=_0x3e233f['string']();break;default:_0x3e233f['skipType'](0x7&_0x511013);}}return _0x4929d4;},_0x15a24a['decodeDelimited']=function(_0x56520c){return _0x56520c instanceof _0x33fc5a||(_0x56520c=new _0x33fc5a(_0x56520c)),this['decode'](_0x56520c,_0x56520c['uint32']());},_0x15a24a['verify']=function(_0x5c59c4){return'object'!=typeof _0x5c59c4||null===_0x5c59c4?'object\x20expected':null!=_0x5c59c4['id']&&_0x5c59c4['hasOwnProperty']('id')&&!_0x1fbc81['isString'](_0x5c59c4['id'])?'id:\x20string\x20expected':null!=_0x5c59c4['authorId']&&_0x5c59c4['hasOwnProperty']('authorId')&&!_0x1fbc81['isString'](_0x5c59c4['authorId'])?'authorId:\x20string\x20expected':null!=_0x5c59c4['type']&&_0x5c59c4['hasOwnProperty']('type')&&!_0x1fbc81['isString'](_0x5c59c4['type'])?'type:\x20string\x20expected':null!=_0x5c59c4['createdAt']&&_0x5c59c4['hasOwnProperty']('createdAt')&&!_0x1fbc81['isString'](_0x5c59c4['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x5c59c4['data']&&_0x5c59c4['hasOwnProperty']('data')&&!_0x1fbc81['isString'](_0x5c59c4['data'])?'data:\x20string\x20expected':null!=_0x5c59c4['hasComments']&&_0x5c59c4['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x5c59c4['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x5c59c4['state']&&_0x5c59c4['hasOwnProperty']('state')&&!_0x1fbc81['isString'](_0x5c59c4['state'])?'state:\x20string\x20expected':null!=_0x5c59c4['attributes']&&_0x5c59c4['hasOwnProperty']('attributes')&&!_0x1fbc81['isString'](_0x5c59c4['attributes'])?'attributes:\x20string\x20expected':null;},_0x15a24a['fromObject']=function(_0x4dfff5){if(_0x4dfff5 instanceof _0x2a91e5['SuggestionDescriptor'])return _0x4dfff5;var _0x19f0df=new _0x2a91e5['SuggestionDescriptor']();return null!=_0x4dfff5['id']&&(_0x19f0df['id']=String(_0x4dfff5['id'])),null!=_0x4dfff5['authorId']&&(_0x19f0df['authorId']=String(_0x4dfff5['authorId'])),null!=_0x4dfff5['type']&&(_0x19f0df['type']=String(_0x4dfff5['type'])),null!=_0x4dfff5['createdAt']&&(_0x19f0df['createdAt']=String(_0x4dfff5['createdAt'])),null!=_0x4dfff5['data']&&(_0x19f0df['data']=String(_0x4dfff5['data'])),null!=_0x4dfff5['hasComments']&&(_0x19f0df['hasComments']=Boolean(_0x4dfff5['hasComments'])),null!=_0x4dfff5['state']&&(_0x19f0df['state']=String(_0x4dfff5['state'])),null!=_0x4dfff5['attributes']&&(_0x19f0df['attributes']=String(_0x4dfff5['attributes'])),_0x19f0df;},_0x15a24a['toObject']=function(_0x34ea73,_0x321d97){_0x321d97||(_0x321d97={});var _0x1637fc={};return _0x321d97['defaults']&&(_0x1637fc['id']='',_0x1637fc['authorId']='',_0x1637fc['type']='',_0x1637fc['createdAt']='',_0x1637fc['data']='',_0x1637fc['hasComments']=!0x1,_0x1637fc['state']='',_0x1637fc['attributes']=''),null!=_0x34ea73['id']&&_0x34ea73['hasOwnProperty']('id')&&(_0x1637fc['id']=_0x34ea73['id']),null!=_0x34ea73['authorId']&&_0x34ea73['hasOwnProperty']('authorId')&&(_0x1637fc['authorId']=_0x34ea73['authorId']),null!=_0x34ea73['type']&&_0x34ea73['hasOwnProperty']('type')&&(_0x1637fc['type']=_0x34ea73['type']),null!=_0x34ea73['createdAt']&&_0x34ea73['hasOwnProperty']('createdAt')&&(_0x1637fc['createdAt']=_0x34ea73['createdAt']),null!=_0x34ea73['data']&&_0x34ea73['hasOwnProperty']('data')&&(_0x1637fc['data']=_0x34ea73['data']),null!=_0x34ea73['hasComments']&&_0x34ea73['hasOwnProperty']('hasComments')&&(_0x1637fc['hasComments']=_0x34ea73['hasComments']),null!=_0x34ea73['state']&&_0x34ea73['hasOwnProperty']('state')&&(_0x1637fc['state']=_0x34ea73['state']),null!=_0x34ea73['attributes']&&_0x34ea73['hasOwnProperty']('attributes')&&(_0x1637fc['attributes']=_0x34ea73['attributes']),_0x1637fc;},_0x15a24a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x15a24a['getTypeUrl']=function(_0x4e8041){return void 0x0===_0x4e8041&&(_0x4e8041='type.googleapis.com'),_0x4e8041+'/SuggestionDescriptor';},_0x15a24a;}()),_0x2a91e5['TrackChangesAddSuggestionMessage']=(function(){function _0x35ed13(_0x35c46c){if(_0x35c46c){for(var _0x78f2c0=Object['keys'](_0x35c46c),_0x417ddd=0x0;_0x417ddd<_0x78f2c0['length'];++_0x417ddd)null!=_0x35c46c[_0x78f2c0[_0x417ddd]]&&(this[_0x78f2c0[_0x417ddd]]=_0x35c46c[_0x78f2c0[_0x417ddd]]);}}return _0x35ed13['prototype']['id']='',_0x35ed13['prototype']['documentId']='',_0x35ed13['prototype']['type']='',_0x35ed13['prototype']['data']='',_0x35ed13['prototype']['originalSuggestionId']='',_0x35ed13['prototype']['attributes']='',_0x35ed13['create']=function(_0xd1a416){return new _0x35ed13(_0xd1a416);},_0x35ed13['encode']=function(_0x32ec05,_0xff5aa7){return _0xff5aa7||(_0xff5aa7=_0x86a107['create']()),null!=_0x32ec05['id']&&Object['hasOwnProperty']['call'](_0x32ec05,'id')&&_0xff5aa7['uint32'](0xa)['string'](_0x32ec05['id']),null!=_0x32ec05['documentId']&&Object['hasOwnProperty']['call'](_0x32ec05,'documentId')&&_0xff5aa7['uint32'](0x12)['string'](_0x32ec05['documentId']),null!=_0x32ec05['type']&&Object['hasOwnProperty']['call'](_0x32ec05,'type')&&_0xff5aa7['uint32'](0x1a)['string'](_0x32ec05['type']),null!=_0x32ec05['data']&&Object['hasOwnProperty']['call'](_0x32ec05,'data')&&_0xff5aa7['uint32'](0x22)['string'](_0x32ec05['data']),null!=_0x32ec05['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0x32ec05,'originalSuggestionId')&&_0xff5aa7['uint32'](0x2a)['string'](_0x32ec05['originalSuggestionId']),null!=_0x32ec05['attributes']&&Object['hasOwnProperty']['call'](_0x32ec05,'attributes')&&_0xff5aa7['uint32'](0x32)['string'](_0x32ec05['attributes']),_0xff5aa7;},_0x35ed13['encodeDelimited']=function(_0x4f50d2,_0x3a3852){return this['encode'](_0x4f50d2,_0x3a3852)['ldelim']();},_0x35ed13['decode']=function(_0x8bda43,_0x25579f,_0x2d299e){_0x8bda43 instanceof _0x33fc5a||(_0x8bda43=_0x33fc5a['create'](_0x8bda43));for(var _0x372802=void 0x0===_0x25579f?_0x8bda43['len']:_0x8bda43['pos']+_0x25579f,_0x2b63f3=new _0x2a91e5['TrackChangesAddSuggestionMessage']();_0x8bda43['pos']<_0x372802;){var _0x30ad7e=_0x8bda43['uint32']();if(_0x30ad7e===_0x2d299e)break;switch(_0x30ad7e>>>0x3){case 0x1:_0x2b63f3['id']=_0x8bda43['string']();break;case 0x2:_0x2b63f3['documentId']=_0x8bda43['string']();break;case 0x3:_0x2b63f3['type']=_0x8bda43['string']();break;case 0x4:_0x2b63f3['data']=_0x8bda43['string']();break;case 0x5:_0x2b63f3['originalSuggestionId']=_0x8bda43['string']();break;case 0x6:_0x2b63f3['attributes']=_0x8bda43['string']();break;default:_0x8bda43['skipType'](0x7&_0x30ad7e);}}return _0x2b63f3;},_0x35ed13['decodeDelimited']=function(_0x3e926c){return _0x3e926c instanceof _0x33fc5a||(_0x3e926c=new _0x33fc5a(_0x3e926c)),this['decode'](_0x3e926c,_0x3e926c['uint32']());},_0x35ed13['verify']=function(_0x14c241){return'object'!=typeof _0x14c241||null===_0x14c241?'object\x20expected':null!=_0x14c241['id']&&_0x14c241['hasOwnProperty']('id')&&!_0x1fbc81['isString'](_0x14c241['id'])?'id:\x20string\x20expected':null!=_0x14c241['documentId']&&_0x14c241['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x14c241['documentId'])?'documentId:\x20string\x20expected':null!=_0x14c241['type']&&_0x14c241['hasOwnProperty']('type')&&!_0x1fbc81['isString'](_0x14c241['type'])?'type:\x20string\x20expected':null!=_0x14c241['data']&&_0x14c241['hasOwnProperty']('data')&&!_0x1fbc81['isString'](_0x14c241['data'])?'data:\x20string\x20expected':null!=_0x14c241['originalSuggestionId']&&_0x14c241['hasOwnProperty']('originalSuggestionId')&&!_0x1fbc81['isString'](_0x14c241['originalSuggestionId'])?'originalSuggestionId:\x20string\x20expected':null!=_0x14c241['attributes']&&_0x14c241['hasOwnProperty']('attributes')&&!_0x1fbc81['isString'](_0x14c241['attributes'])?'attributes:\x20string\x20expected':null;},_0x35ed13['fromObject']=function(_0x2494bf){if(_0x2494bf instanceof _0x2a91e5['TrackChangesAddSuggestionMessage'])return _0x2494bf;var _0x1afb8e=new _0x2a91e5['TrackChangesAddSuggestionMessage']();return null!=_0x2494bf['id']&&(_0x1afb8e['id']=String(_0x2494bf['id'])),null!=_0x2494bf['documentId']&&(_0x1afb8e['documentId']=String(_0x2494bf['documentId'])),null!=_0x2494bf['type']&&(_0x1afb8e['type']=String(_0x2494bf['type'])),null!=_0x2494bf['data']&&(_0x1afb8e['data']=String(_0x2494bf['data'])),null!=_0x2494bf['originalSuggestionId']&&(_0x1afb8e['originalSuggestionId']=String(_0x2494bf['originalSuggestionId'])),null!=_0x2494bf['attributes']&&(_0x1afb8e['attributes']=String(_0x2494bf['attributes'])),_0x1afb8e;},_0x35ed13['toObject']=function(_0x3d8007,_0x246322){_0x246322||(_0x246322={});var _0x588f55={};return _0x246322['defaults']&&(_0x588f55['id']='',_0x588f55['documentId']='',_0x588f55['type']='',_0x588f55['data']='',_0x588f55['originalSuggestionId']='',_0x588f55['attributes']=''),null!=_0x3d8007['id']&&_0x3d8007['hasOwnProperty']('id')&&(_0x588f55['id']=_0x3d8007['id']),null!=_0x3d8007['documentId']&&_0x3d8007['hasOwnProperty']('documentId')&&(_0x588f55['documentId']=_0x3d8007['documentId']),null!=_0x3d8007['type']&&_0x3d8007['hasOwnProperty']('type')&&(_0x588f55['type']=_0x3d8007['type']),null!=_0x3d8007['data']&&_0x3d8007['hasOwnProperty']('data')&&(_0x588f55['data']=_0x3d8007['data']),null!=_0x3d8007['originalSuggestionId']&&_0x3d8007['hasOwnProperty']('originalSuggestionId')&&(_0x588f55['originalSuggestionId']=_0x3d8007['originalSuggestionId']),null!=_0x3d8007['attributes']&&_0x3d8007['hasOwnProperty']('attributes')&&(_0x588f55['attributes']=_0x3d8007['attributes']),_0x588f55;},_0x35ed13['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x35ed13['getTypeUrl']=function(_0x114235){return void 0x0===_0x114235&&(_0x114235='type.googleapis.com'),_0x114235+'/TrackChangesAddSuggestionMessage';},_0x35ed13;}()),_0x2a91e5['TrackChangesBatchUpdateSuggestionsStateMessage']=(function(){function _0x47c240(_0x13bcf6){if(this['ids']=[],_0x13bcf6){for(var _0x42c054=Object['keys'](_0x13bcf6),_0x4d8911=0x0;_0x4d8911<_0x42c054['length'];++_0x4d8911)null!=_0x13bcf6[_0x42c054[_0x4d8911]]&&(this[_0x42c054[_0x4d8911]]=_0x13bcf6[_0x42c054[_0x4d8911]]);}}return _0x47c240['prototype']['ids']=_0x1fbc81['emptyArray'],_0x47c240['prototype']['documentId']='',_0x47c240['prototype']['state']='',_0x47c240['create']=function(_0x53c14f){return new _0x47c240(_0x53c14f);},_0x47c240['encode']=function(_0x3aba27,_0x339e62){if(_0x339e62||(_0x339e62=_0x86a107['create']()),null!=_0x3aba27['ids']&&_0x3aba27['ids']['length']){for(var _0x8feca6=0x0;_0x8feca6<_0x3aba27['ids']['length'];++_0x8feca6)_0x339e62['uint32'](0xa)['string'](_0x3aba27['ids'][_0x8feca6]);}return null!=_0x3aba27['documentId']&&Object['hasOwnProperty']['call'](_0x3aba27,'documentId')&&_0x339e62['uint32'](0x12)['string'](_0x3aba27['documentId']),null!=_0x3aba27['state']&&Object['hasOwnProperty']['call'](_0x3aba27,'state')&&_0x339e62['uint32'](0x1a)['string'](_0x3aba27['state']),_0x339e62;},_0x47c240['encodeDelimited']=function(_0x2f1c0f,_0x1fd630){return this['encode'](_0x2f1c0f,_0x1fd630)['ldelim']();},_0x47c240['decode']=function(_0x24b087,_0x205914,_0x4076ed){_0x24b087 instanceof _0x33fc5a||(_0x24b087=_0x33fc5a['create'](_0x24b087));for(var _0x324c5d=void 0x0===_0x205914?_0x24b087['len']:_0x24b087['pos']+_0x205914,_0x489257=new _0x2a91e5['TrackChangesBatchUpdateSuggestionsStateMessage']();_0x24b087['pos']<_0x324c5d;){var _0x27928b=_0x24b087['uint32']();if(_0x27928b===_0x4076ed)break;switch(_0x27928b>>>0x3){case 0x1:_0x489257['ids']&&_0x489257['ids']['length']||(_0x489257['ids']=[]),_0x489257['ids']['push'](_0x24b087['string']());break;case 0x2:_0x489257['documentId']=_0x24b087['string']();break;case 0x3:_0x489257['state']=_0x24b087['string']();break;default:_0x24b087['skipType'](0x7&_0x27928b);}}return _0x489257;},_0x47c240['decodeDelimited']=function(_0x15f512){return _0x15f512 instanceof _0x33fc5a||(_0x15f512=new _0x33fc5a(_0x15f512)),this['decode'](_0x15f512,_0x15f512['uint32']());},_0x47c240['verify']=function(_0x4a2b8d){if('object'!=typeof _0x4a2b8d||null===_0x4a2b8d)return'object\x20expected';if(null!=_0x4a2b8d['ids']&&_0x4a2b8d['hasOwnProperty']('ids')){if(!Array['isArray'](_0x4a2b8d['ids']))return'ids:\x20array\x20expected';for(var _0x2ea358=0x0;_0x2ea358<_0x4a2b8d['ids']['length'];++_0x2ea358)if(!_0x1fbc81['isString'](_0x4a2b8d['ids'][_0x2ea358]))return'ids:\x20string[]\x20expected';}return null!=_0x4a2b8d['documentId']&&_0x4a2b8d['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x4a2b8d['documentId'])?'documentId:\x20string\x20expected':null!=_0x4a2b8d['state']&&_0x4a2b8d['hasOwnProperty']('state')&&!_0x1fbc81['isString'](_0x4a2b8d['state'])?'state:\x20string\x20expected':null;},_0x47c240['fromObject']=function(_0x5c5840){if(_0x5c5840 instanceof _0x2a91e5['TrackChangesBatchUpdateSuggestionsStateMessage'])return _0x5c5840;var _0x4af69b=new _0x2a91e5['TrackChangesBatchUpdateSuggestionsStateMessage']();if(_0x5c5840['ids']){if(!Array['isArray'](_0x5c5840['ids']))throw TypeError('.TrackChangesBatchUpdateSuggestionsStateMessage.ids:\x20array\x20expected');_0x4af69b['ids']=[];for(var _0x3eeb22=0x0;_0x3eeb22<_0x5c5840['ids']['length'];++_0x3eeb22)_0x4af69b['ids'][_0x3eeb22]=String(_0x5c5840['ids'][_0x3eeb22]);}return null!=_0x5c5840['documentId']&&(_0x4af69b['documentId']=String(_0x5c5840['documentId'])),null!=_0x5c5840['state']&&(_0x4af69b['state']=String(_0x5c5840['state'])),_0x4af69b;},_0x47c240['toObject']=function(_0x11acde,_0x19ef33){_0x19ef33||(_0x19ef33={});var _0x25b33e={};if((_0x19ef33['arrays']||_0x19ef33['defaults'])&&(_0x25b33e['ids']=[]),_0x19ef33['defaults']&&(_0x25b33e['documentId']='',_0x25b33e['state']=''),_0x11acde['ids']&&_0x11acde['ids']['length']){_0x25b33e['ids']=[];for(var _0x4073c1=0x0;_0x4073c1<_0x11acde['ids']['length'];++_0x4073c1)_0x25b33e['ids'][_0x4073c1]=_0x11acde['ids'][_0x4073c1];}return null!=_0x11acde['documentId']&&_0x11acde['hasOwnProperty']('documentId')&&(_0x25b33e['documentId']=_0x11acde['documentId']),null!=_0x11acde['state']&&_0x11acde['hasOwnProperty']('state')&&(_0x25b33e['state']=_0x11acde['state']),_0x25b33e;},_0x47c240['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x47c240['getTypeUrl']=function(_0x3221f1){return void 0x0===_0x3221f1&&(_0x3221f1='type.googleapis.com'),_0x3221f1+'/TrackChangesBatchUpdateSuggestionsStateMessage';},_0x47c240;}()),_0x2a91e5['TrackChangesConnectMessage']=(function(){function _0x7054f3(_0x45117d){if(_0x45117d){for(var _0x4c0a7b=Object['keys'](_0x45117d),_0x2a62be=0x0;_0x2a62be<_0x4c0a7b['length'];++_0x2a62be)null!=_0x45117d[_0x4c0a7b[_0x2a62be]]&&(this[_0x4c0a7b[_0x2a62be]]=_0x45117d[_0x4c0a7b[_0x2a62be]]);}}return _0x7054f3['prototype']['documentId']='',_0x7054f3['create']=function(_0x23306e){return new _0x7054f3(_0x23306e);},_0x7054f3['encode']=function(_0x1586d9,_0xbfb798){return _0xbfb798||(_0xbfb798=_0x86a107['create']()),null!=_0x1586d9['documentId']&&Object['hasOwnProperty']['call'](_0x1586d9,'documentId')&&_0xbfb798['uint32'](0xa)['string'](_0x1586d9['documentId']),_0xbfb798;},_0x7054f3['encodeDelimited']=function(_0x15a955,_0x12217e){return this['encode'](_0x15a955,_0x12217e)['ldelim']();},_0x7054f3['decode']=function(_0x13fa05,_0x3a9acd,_0xa4e6fd){_0x13fa05 instanceof _0x33fc5a||(_0x13fa05=_0x33fc5a['create'](_0x13fa05));for(var _0x508d16=void 0x0===_0x3a9acd?_0x13fa05['len']:_0x13fa05['pos']+_0x3a9acd,_0x3cf002=new _0x2a91e5['TrackChangesConnectMessage']();_0x13fa05['pos']<_0x508d16;){var _0x38dd8f=_0x13fa05['uint32']();if(_0x38dd8f===_0xa4e6fd)break;_0x38dd8f>>>0x3==0x1?_0x3cf002['documentId']=_0x13fa05['string']():_0x13fa05['skipType'](0x7&_0x38dd8f);}return _0x3cf002;},_0x7054f3['decodeDelimited']=function(_0x3a2442){return _0x3a2442 instanceof _0x33fc5a||(_0x3a2442=new _0x33fc5a(_0x3a2442)),this['decode'](_0x3a2442,_0x3a2442['uint32']());},_0x7054f3['verify']=function(_0x5ada46){return'object'!=typeof _0x5ada46||null===_0x5ada46?'object\x20expected':null!=_0x5ada46['documentId']&&_0x5ada46['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x5ada46['documentId'])?'documentId:\x20string\x20expected':null;},_0x7054f3['fromObject']=function(_0x52e566){if(_0x52e566 instanceof _0x2a91e5['TrackChangesConnectMessage'])return _0x52e566;var _0x5b32e5=new _0x2a91e5['TrackChangesConnectMessage']();return null!=_0x52e566['documentId']&&(_0x5b32e5['documentId']=String(_0x52e566['documentId'])),_0x5b32e5;},_0x7054f3['toObject']=function(_0x171419,_0x2ff0fb){_0x2ff0fb||(_0x2ff0fb={});var _0x36954b={};return _0x2ff0fb['defaults']&&(_0x36954b['documentId']=''),null!=_0x171419['documentId']&&_0x171419['hasOwnProperty']('documentId')&&(_0x36954b['documentId']=_0x171419['documentId']),_0x36954b;},_0x7054f3['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x7054f3['getTypeUrl']=function(_0x2df43d){return void 0x0===_0x2df43d&&(_0x2df43d='type.googleapis.com'),_0x2df43d+'/TrackChangesConnectMessage';},_0x7054f3;}()),_0x2a91e5['TrackChangesGetAllSuggestionMessage']=(function(){function _0x428d25(_0x127b57){if(_0x127b57){for(var _0x59c7b8=Object['keys'](_0x127b57),_0x2517e6=0x0;_0x2517e6<_0x59c7b8['length'];++_0x2517e6)null!=_0x127b57[_0x59c7b8[_0x2517e6]]&&(this[_0x59c7b8[_0x2517e6]]=_0x127b57[_0x59c7b8[_0x2517e6]]);}}return _0x428d25['prototype']['documentId']='',_0x428d25['create']=function(_0x43a49f){return new _0x428d25(_0x43a49f);},_0x428d25['encode']=function(_0x1f371c,_0x5c4ea6){return _0x5c4ea6||(_0x5c4ea6=_0x86a107['create']()),null!=_0x1f371c['documentId']&&Object['hasOwnProperty']['call'](_0x1f371c,'documentId')&&_0x5c4ea6['uint32'](0xa)['string'](_0x1f371c['documentId']),_0x5c4ea6;},_0x428d25['encodeDelimited']=function(_0x3ad3a3,_0x49ffbe){return this['encode'](_0x3ad3a3,_0x49ffbe)['ldelim']();},_0x428d25['decode']=function(_0x3ee6e9,_0x77207b,_0x644088){_0x3ee6e9 instanceof _0x33fc5a||(_0x3ee6e9=_0x33fc5a['create'](_0x3ee6e9));for(var _0x383fed=void 0x0===_0x77207b?_0x3ee6e9['len']:_0x3ee6e9['pos']+_0x77207b,_0x28b0f0=new _0x2a91e5['TrackChangesGetAllSuggestionMessage']();_0x3ee6e9['pos']<_0x383fed;){var _0x5dc151=_0x3ee6e9['uint32']();if(_0x5dc151===_0x644088)break;_0x5dc151>>>0x3==0x1?_0x28b0f0['documentId']=_0x3ee6e9['string']():_0x3ee6e9['skipType'](0x7&_0x5dc151);}return _0x28b0f0;},_0x428d25['decodeDelimited']=function(_0x2360ae){return _0x2360ae instanceof _0x33fc5a||(_0x2360ae=new _0x33fc5a(_0x2360ae)),this['decode'](_0x2360ae,_0x2360ae['uint32']());},_0x428d25['verify']=function(_0x32ca27){return'object'!=typeof _0x32ca27||null===_0x32ca27?'object\x20expected':null!=_0x32ca27['documentId']&&_0x32ca27['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x32ca27['documentId'])?'documentId:\x20string\x20expected':null;},_0x428d25['fromObject']=function(_0x135638){if(_0x135638 instanceof _0x2a91e5['TrackChangesGetAllSuggestionMessage'])return _0x135638;var _0x486a39=new _0x2a91e5['TrackChangesGetAllSuggestionMessage']();return null!=_0x135638['documentId']&&(_0x486a39['documentId']=String(_0x135638['documentId'])),_0x486a39;},_0x428d25['toObject']=function(_0x25d212,_0x50f955){_0x50f955||(_0x50f955={});var _0x14e50f={};return _0x50f955['defaults']&&(_0x14e50f['documentId']=''),null!=_0x25d212['documentId']&&_0x25d212['hasOwnProperty']('documentId')&&(_0x14e50f['documentId']=_0x25d212['documentId']),_0x14e50f;},_0x428d25['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x428d25['getTypeUrl']=function(_0x4dc3e4){return void 0x0===_0x4dc3e4&&(_0x4dc3e4='type.googleapis.com'),_0x4dc3e4+'/TrackChangesGetAllSuggestionMessage';},_0x428d25;}()),_0x2a91e5['TrackChangesGetSuggestionMessage']=(function(){function _0xfe0c27(_0x1301dc){if(_0x1301dc){for(var _0x4c99f2=Object['keys'](_0x1301dc),_0x2beccc=0x0;_0x2beccc<_0x4c99f2['length'];++_0x2beccc)null!=_0x1301dc[_0x4c99f2[_0x2beccc]]&&(this[_0x4c99f2[_0x2beccc]]=_0x1301dc[_0x4c99f2[_0x2beccc]]);}}return _0xfe0c27['prototype']['id']='',_0xfe0c27['prototype']['documentId']='',_0xfe0c27['create']=function(_0x5a7316){return new _0xfe0c27(_0x5a7316);},_0xfe0c27['encode']=function(_0x2ba957,_0x3642f9){return _0x3642f9||(_0x3642f9=_0x86a107['create']()),null!=_0x2ba957['id']&&Object['hasOwnProperty']['call'](_0x2ba957,'id')&&_0x3642f9['uint32'](0xa)['string'](_0x2ba957['id']),null!=_0x2ba957['documentId']&&Object['hasOwnProperty']['call'](_0x2ba957,'documentId')&&_0x3642f9['uint32'](0x12)['string'](_0x2ba957['documentId']),_0x3642f9;},_0xfe0c27['encodeDelimited']=function(_0x5c8c7d,_0x3d216a){return this['encode'](_0x5c8c7d,_0x3d216a)['ldelim']();},_0xfe0c27['decode']=function(_0x27bbe5,_0x47b89c,_0xc23c6e){_0x27bbe5 instanceof _0x33fc5a||(_0x27bbe5=_0x33fc5a['create'](_0x27bbe5));for(var _0x48651b=void 0x0===_0x47b89c?_0x27bbe5['len']:_0x27bbe5['pos']+_0x47b89c,_0x49a278=new _0x2a91e5['TrackChangesGetSuggestionMessage']();_0x27bbe5['pos']<_0x48651b;){var _0x13699f=_0x27bbe5['uint32']();if(_0x13699f===_0xc23c6e)break;switch(_0x13699f>>>0x3){case 0x1:_0x49a278['id']=_0x27bbe5['string']();break;case 0x2:_0x49a278['documentId']=_0x27bbe5['string']();break;default:_0x27bbe5['skipType'](0x7&_0x13699f);}}return _0x49a278;},_0xfe0c27['decodeDelimited']=function(_0x12414c){return _0x12414c instanceof _0x33fc5a||(_0x12414c=new _0x33fc5a(_0x12414c)),this['decode'](_0x12414c,_0x12414c['uint32']());},_0xfe0c27['verify']=function(_0xf8e014){return'object'!=typeof _0xf8e014||null===_0xf8e014?'object\x20expected':null!=_0xf8e014['id']&&_0xf8e014['hasOwnProperty']('id')&&!_0x1fbc81['isString'](_0xf8e014['id'])?'id:\x20string\x20expected':null!=_0xf8e014['documentId']&&_0xf8e014['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0xf8e014['documentId'])?'documentId:\x20string\x20expected':null;},_0xfe0c27['fromObject']=function(_0x53c870){if(_0x53c870 instanceof _0x2a91e5['TrackChangesGetSuggestionMessage'])return _0x53c870;var _0x525fd2=new _0x2a91e5['TrackChangesGetSuggestionMessage']();return null!=_0x53c870['id']&&(_0x525fd2['id']=String(_0x53c870['id'])),null!=_0x53c870['documentId']&&(_0x525fd2['documentId']=String(_0x53c870['documentId'])),_0x525fd2;},_0xfe0c27['toObject']=function(_0x46205a,_0x4d65b8){_0x4d65b8||(_0x4d65b8={});var _0xac9aa3={};return _0x4d65b8['defaults']&&(_0xac9aa3['id']='',_0xac9aa3['documentId']=''),null!=_0x46205a['id']&&_0x46205a['hasOwnProperty']('id')&&(_0xac9aa3['id']=_0x46205a['id']),null!=_0x46205a['documentId']&&_0x46205a['hasOwnProperty']('documentId')&&(_0xac9aa3['documentId']=_0x46205a['documentId']),_0xac9aa3;},_0xfe0c27['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xfe0c27['getTypeUrl']=function(_0x3c4e72){return void 0x0===_0x3c4e72&&(_0x3c4e72='type.googleapis.com'),_0x3c4e72+'/TrackChangesGetSuggestionMessage';},_0xfe0c27;}()),_0x2a91e5['TrackChangesUpdateSuggestionMessage']=(function(){function _0xfc4bb2(_0x4c0a27){if(_0x4c0a27){for(var _0x538e28=Object['keys'](_0x4c0a27),_0x1bd7b7=0x0;_0x1bd7b7<_0x538e28['length'];++_0x1bd7b7)null!=_0x4c0a27[_0x538e28[_0x1bd7b7]]&&(this[_0x538e28[_0x1bd7b7]]=_0x4c0a27[_0x538e28[_0x1bd7b7]]);}}return _0xfc4bb2['prototype']['id']='',_0xfc4bb2['prototype']['documentId']='',_0xfc4bb2['prototype']['hasComments']=!0x1,_0xfc4bb2['prototype']['isHasCommentsModified']=!0x1,_0xfc4bb2['prototype']['state']='',_0xfc4bb2['prototype']['attributes']='',_0xfc4bb2['create']=function(_0x711c8f){return new _0xfc4bb2(_0x711c8f);},_0xfc4bb2['encode']=function(_0x5ed28c,_0x1cc336){return _0x1cc336||(_0x1cc336=_0x86a107['create']()),null!=_0x5ed28c['id']&&Object['hasOwnProperty']['call'](_0x5ed28c,'id')&&_0x1cc336['uint32'](0xa)['string'](_0x5ed28c['id']),null!=_0x5ed28c['documentId']&&Object['hasOwnProperty']['call'](_0x5ed28c,'documentId')&&_0x1cc336['uint32'](0x12)['string'](_0x5ed28c['documentId']),null!=_0x5ed28c['hasComments']&&Object['hasOwnProperty']['call'](_0x5ed28c,'hasComments')&&_0x1cc336['uint32'](0x18)['bool'](_0x5ed28c['hasComments']),null!=_0x5ed28c['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0x5ed28c,'isHasCommentsModified')&&_0x1cc336['uint32'](0x20)['bool'](_0x5ed28c['isHasCommentsModified']),null!=_0x5ed28c['state']&&Object['hasOwnProperty']['call'](_0x5ed28c,'state')&&_0x1cc336['uint32'](0x2a)['string'](_0x5ed28c['state']),null!=_0x5ed28c['attributes']&&Object['hasOwnProperty']['call'](_0x5ed28c,'attributes')&&_0x1cc336['uint32'](0x32)['string'](_0x5ed28c['attributes']),_0x1cc336;},_0xfc4bb2['encodeDelimited']=function(_0x6af728,_0x1be8ab){return this['encode'](_0x6af728,_0x1be8ab)['ldelim']();},_0xfc4bb2['decode']=function(_0x3bc626,_0x55b8d5,_0x362b20){_0x3bc626 instanceof _0x33fc5a||(_0x3bc626=_0x33fc5a['create'](_0x3bc626));for(var _0x228d96=void 0x0===_0x55b8d5?_0x3bc626['len']:_0x3bc626['pos']+_0x55b8d5,_0x2f7166=new _0x2a91e5['TrackChangesUpdateSuggestionMessage']();_0x3bc626['pos']<_0x228d96;){var _0x2644c3=_0x3bc626['uint32']();if(_0x2644c3===_0x362b20)break;switch(_0x2644c3>>>0x3){case 0x1:_0x2f7166['id']=_0x3bc626['string']();break;case 0x2:_0x2f7166['documentId']=_0x3bc626['string']();break;case 0x3:_0x2f7166['hasComments']=_0x3bc626['bool']();break;case 0x4:_0x2f7166['isHasCommentsModified']=_0x3bc626['bool']();break;case 0x5:_0x2f7166['state']=_0x3bc626['string']();break;case 0x6:_0x2f7166['attributes']=_0x3bc626['string']();break;default:_0x3bc626['skipType'](0x7&_0x2644c3);}}return _0x2f7166;},_0xfc4bb2['decodeDelimited']=function(_0x35985b){return _0x35985b instanceof _0x33fc5a||(_0x35985b=new _0x33fc5a(_0x35985b)),this['decode'](_0x35985b,_0x35985b['uint32']());},_0xfc4bb2['verify']=function(_0x54005f){return'object'!=typeof _0x54005f||null===_0x54005f?'object\x20expected':null!=_0x54005f['id']&&_0x54005f['hasOwnProperty']('id')&&!_0x1fbc81['isString'](_0x54005f['id'])?'id:\x20string\x20expected':null!=_0x54005f['documentId']&&_0x54005f['hasOwnProperty']('documentId')&&!_0x1fbc81['isString'](_0x54005f['documentId'])?'documentId:\x20string\x20expected':null!=_0x54005f['hasComments']&&_0x54005f['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x54005f['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x54005f['isHasCommentsModified']&&_0x54005f['hasOwnProperty']('isHasCommentsModified')&&'boolean'!=typeof _0x54005f['isHasCommentsModified']?'isHasCommentsModified:\x20boolean\x20expected':null!=_0x54005f['state']&&_0x54005f['hasOwnProperty']('state')&&!_0x1fbc81['isString'](_0x54005f['state'])?'state:\x20string\x20expected':null!=_0x54005f['attributes']&&_0x54005f['hasOwnProperty']('attributes')&&!_0x1fbc81['isString'](_0x54005f['attributes'])?'attributes:\x20string\x20expected':null;},_0xfc4bb2['fromObject']=function(_0x2a841f){if(_0x2a841f instanceof _0x2a91e5['TrackChangesUpdateSuggestionMessage'])return _0x2a841f;var _0x23b982=new _0x2a91e5['TrackChangesUpdateSuggestionMessage']();return null!=_0x2a841f['id']&&(_0x23b982['id']=String(_0x2a841f['id'])),null!=_0x2a841f['documentId']&&(_0x23b982['documentId']=String(_0x2a841f['documentId'])),null!=_0x2a841f['hasComments']&&(_0x23b982['hasComments']=Boolean(_0x2a841f['hasComments'])),null!=_0x2a841f['isHasCommentsModified']&&(_0x23b982['isHasCommentsModified']=Boolean(_0x2a841f['isHasCommentsModified'])),null!=_0x2a841f['state']&&(_0x23b982['state']=String(_0x2a841f['state'])),null!=_0x2a841f['attributes']&&(_0x23b982['attributes']=String(_0x2a841f['attributes'])),_0x23b982;},_0xfc4bb2['toObject']=function(_0x434955,_0x10d75d){_0x10d75d||(_0x10d75d={});var _0x3fa2d2={};return _0x10d75d['defaults']&&(_0x3fa2d2['id']='',_0x3fa2d2['documentId']='',_0x3fa2d2['hasComments']=!0x1,_0x3fa2d2['isHasCommentsModified']=!0x1,_0x3fa2d2['state']='',_0x3fa2d2['attributes']=''),null!=_0x434955['id']&&_0x434955['hasOwnProperty']('id')&&(_0x3fa2d2['id']=_0x434955['id']),null!=_0x434955['documentId']&&_0x434955['hasOwnProperty']('documentId')&&(_0x3fa2d2['documentId']=_0x434955['documentId']),null!=_0x434955['hasComments']&&_0x434955['hasOwnProperty']('hasComments')&&(_0x3fa2d2['hasComments']=_0x434955['hasComments']),null!=_0x434955['isHasCommentsModified']&&_0x434955['hasOwnProperty']('isHasCommentsModified')&&(_0x3fa2d2['isHasCommentsModified']=_0x434955['isHasCommentsModified']),null!=_0x434955['state']&&_0x434955['hasOwnProperty']('state')&&(_0x3fa2d2['state']=_0x434955['state']),null!=_0x434955['attributes']&&_0x434955['hasOwnProperty']('attributes')&&(_0x3fa2d2['attributes']=_0x434955['attributes']),_0x3fa2d2;},_0xfc4bb2['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xfc4bb2['getTypeUrl']=function(_0x1df9e9){return void 0x0===_0x1df9e9&&(_0x1df9e9='type.googleapis.com'),_0x1df9e9+'/TrackChangesUpdateSuggestionMessage';},_0xfc4bb2;}()),_0x2a91e5['TrackChangesAddSuggestionResponse']=(function(){function _0x61478(_0x2c0702){if(_0x2c0702){for(var _0x192b40=Object['keys'](_0x2c0702),_0x119e8e=0x0;_0x119e8e<_0x192b40['length'];++_0x119e8e)null!=_0x2c0702[_0x192b40[_0x119e8e]]&&(this[_0x192b40[_0x119e8e]]=_0x2c0702[_0x192b40[_0x119e8e]]);}}return _0x61478['prototype']['id']='',_0x61478['prototype']['authorId']='',_0x61478['prototype']['type']='',_0x61478['prototype']['createdAt']='',_0x61478['prototype']['data']='',_0x61478['prototype']['hasComments']=!0x1,_0x61478['prototype']['state']='',_0x61478['prototype']['attributes']='',_0x61478['create']=function(_0x22c09c){return new _0x61478(_0x22c09c);},_0x61478['encode']=function(_0x115d83,_0x154f5e){return _0x154f5e||(_0x154f5e=_0x86a107['create']()),null!=_0x115d83['id']&&Object['hasOwnProperty']['call'](_0x115d83,'id')&&_0x154f5e['uint32'](0xa)['string'](_0x115d83['id']),null!=_0x115d83['authorId']&&Object['hasOwnProperty']['call'](_0x115d83,'authorId')&&_0x154f5e['uint32'](0x12)['string'](_0x115d83['authorId']),null!=_0x115d83['type']&&Object['hasOwnProperty']['call'](_0x115d83,'type')&&_0x154f5e['uint32'](0x1a)['string'](_0x115d83['type']),null!=_0x115d83['createdAt']&&Object['hasOwnProperty']['call'](_0x115d83,'createdAt')&&_0x154f5e['uint32'](0x22)['string'](_0x115d83['createdAt']),null!=_0x115d83['data']&&Object['hasOwnProperty']['call'](_0x115d83,'data')&&_0x154f5e['uint32'](0x2a)['string'](_0x115d83['data']),null!=_0x115d83['hasComments']&&Object['hasOwnProperty']['call'](_0x115d83,'hasComments')&&_0x154f5e['uint32'](0x30)['bool'](_0x115d83['hasComments']),null!=_0x115d83['state']&&Object['hasOwnProperty']['call'](_0x115d83,'state')&&_0x154f5e['uint32'](0x3a)['string'](_0x115d83['state']),null!=_0x115d83['attributes']&&Object['hasOwnProperty']['call'](_0x115d83,'attributes')&&_0x154f5e['uint32'](0x42)['string'](_0x115d83['attributes']),_0x154f5e;},_0x61478['encodeDelimited']=function(_0x2f95f2,_0x1e60f2){return this['encode'](_0x2f95f2,_0x1e60f2)['ldelim']();},_0x61478['decode']=function(_0x118db8,_0x59f1c8,_0x24c626){_0x118db8 instanceof _0x33fc5a||(_0x118db8=_0x33fc5a['create'](_0x118db8));for(var _0x1161e8=void 0x0===_0x59f1c8?_0x118db8['len']:_0x118db8['pos']+_0x59f1c8,_0x24343d=new _0x2a91e5['TrackChangesAddSuggestionResponse']();_0x118db8['pos']<_0x1161e8;){var _0x541e07=_0x118db8['uint32']();if(_0x541e07===_0x24c626)break;switch(_0x541e07>>>0x3){case 0x1:_0x24343d['id']=_0x118db8['string']();break;case 0x2:_0x24343d['authorId']=_0x118db8['string']();break;case 0x3:_0x24343d['type']=_0x118db8['string']();break;case 0x4:_0x24343d['createdAt']=_0x118db8['string']();break;case 0x5:_0x24343d['data']=_0x118db8['string']();break;case 0x6:_0x24343d['hasComments']=_0x118db8['bool']();break;case 0x7:_0x24343d['state']=_0x118db8['string']();break;case 0x8:_0x24343d['attributes']=_0x118db8['string']();break;default:_0x118db8['skipType'](0x7&_0x541e07);}}return _0x24343d;},_0x61478['decodeDelimited']=function(_0x525a77){return _0x525a77 instanceof _0x33fc5a||(_0x525a77=new _0x33fc5a(_0x525a77)),this['decode'](_0x525a77,_0x525a77['uint32']());},_0x61478['verify']=function(_0x687a03){return'object'!=typeof _0x687a03||null===_0x687a03?'object\x20expected':null!=_0x687a03['id']&&_0x687a03['hasOwnProperty']('id')&&!_0x1fbc81['isString'](_0x687a03['id'])?'id:\x20string\x20expected':null!=_0x687a03['authorId']&&_0x687a03['hasOwnProperty']('authorId')&&!_0x1fbc81['isString'](_0x687a03['authorId'])?'authorId:\x20string\x20expected':null!=_0x687a03['type']&&_0x687a03['hasOwnProperty']('type')&&!_0x1fbc81['isString'](_0x687a03['type'])?'type:\x20string\x20expected':null!=_0x687a03['createdAt']&&_0x687a03['hasOwnProperty']('createdAt')&&!_0x1fbc81['isString'](_0x687a03['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x687a03['data']&&_0x687a03['hasOwnProperty']('data')&&!_0x1fbc81['isString'](_0x687a03['data'])?'data:\x20string\x20expected':null!=_0x687a03['hasComments']&&_0x687a03['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x687a03['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x687a03['state']&&_0x687a03['hasOwnProperty']('state')&&!_0x1fbc81['isString'](_0x687a03['state'])?'state:\x20string\x20expected':null!=_0x687a03['attributes']&&_0x687a03['hasOwnProperty']('attributes')&&!_0x1fbc81['isString'](_0x687a03['attributes'])?'attributes:\x20string\x20expected':null;},_0x61478['fromObject']=function(_0x130e85){if(_0x130e85 instanceof _0x2a91e5['TrackChangesAddSuggestionResponse'])return _0x130e85;var _0x487be1=new _0x2a91e5['TrackChangesAddSuggestionResponse']();return null!=_0x130e85['id']&&(_0x487be1['id']=String(_0x130e85['id'])),null!=_0x130e85['authorId']&&(_0x487be1['authorId']=String(_0x130e85['authorId'])),null!=_0x130e85['type']&&(_0x487be1['type']=String(_0x130e85['type'])),null!=_0x130e85['createdAt']&&(_0x487be1['createdAt']=String(_0x130e85['createdAt'])),null!=_0x130e85['data']&&(_0x487be1['data']=String(_0x130e85['data'])),null!=_0x130e85['hasComments']&&(_0x487be1['hasComments']=Boolean(_0x130e85['hasComments'])),null!=_0x130e85['state']&&(_0x487be1['state']=String(_0x130e85['state'])),null!=_0x130e85['attributes']&&(_0x487be1['attributes']=String(_0x130e85['attributes'])),_0x487be1;},_0x61478['toObject']=function(_0xc0bf52,_0x1145ce){_0x1145ce||(_0x1145ce={});var _0x577649={};return _0x1145ce['defaults']&&(_0x577649['id']='',_0x577649['authorId']='',_0x577649['type']='',_0x577649['createdAt']='',_0x577649['data']='',_0x577649['hasComments']=!0x1,_0x577649['state']='',_0x577649['attributes']=''),null!=_0xc0bf52['id']&&_0xc0bf52['hasOwnProperty']('id')&&(_0x577649['id']=_0xc0bf52['id']),null!=_0xc0bf52['authorId']&&_0xc0bf52['hasOwnProperty']('authorId')&&(_0x577649['authorId']=_0xc0bf52['authorId']),null!=_0xc0bf52['type']&&_0xc0bf52['hasOwnProperty']('type')&&(_0x577649['type']=_0xc0bf52['type']),null!=_0xc0bf52['createdAt']&&_0xc0bf52['hasOwnProperty']('createdAt')&&(_0x577649['createdAt']=_0xc0bf52['createdAt']),null!=_0xc0bf52['data']&&_0xc0bf52['hasOwnProperty']('data')&&(_0x577649['data']=_0xc0bf52['data']),null!=_0xc0bf52['hasComments']&&_0xc0bf52['hasOwnProperty']('hasComments')&&(_0x577649['hasComments']=_0xc0bf52['hasComments']),null!=_0xc0bf52['state']&&_0xc0bf52['hasOwnProperty']('state')&&(_0x577649['state']=_0xc0bf52['state']),null!=_0xc0bf52['attributes']&&_0xc0bf52['hasOwnProperty']('attributes')&&(_0x577649['attributes']=_0xc0bf52['attributes']),_0x577649;},_0x61478['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x61478['getTypeUrl']=function(_0x1d2ed2){return void 0x0===_0x1d2ed2&&(_0x1d2ed2='type.googleapis.com'),_0x1d2ed2+'/TrackChangesAddSuggestionResponse';},_0x61478;}()),_0x2a91e5['TrackChangesConnectResponse']=(function(){function _0xd9e712(_0x5336d6){if(this['suggestions']=[],this['suggestionsV2']=[],_0x5336d6){for(var _0x1f0e6a=Object['keys'](_0x5336d6),_0x467a79=0x0;_0x467a79<_0x1f0e6a['length'];++_0x467a79)null!=_0x5336d6[_0x1f0e6a[_0x467a79]]&&(this[_0x1f0e6a[_0x467a79]]=_0x5336d6[_0x1f0e6a[_0x467a79]]);}}return _0xd9e712['prototype']['channel']='',_0xd9e712['prototype']['suggestions']=_0x1fbc81['emptyArray'],_0xd9e712['prototype']['suggestionsV2']=_0x1fbc81['emptyArray'],_0xd9e712['create']=function(_0x313157){return new _0xd9e712(_0x313157);},_0xd9e712['encode']=function(_0x5d50b0,_0x4dfc1a){if(_0x4dfc1a||(_0x4dfc1a=_0x86a107['create']()),null!=_0x5d50b0['channel']&&Object['hasOwnProperty']['call'](_0x5d50b0,'channel')&&_0x4dfc1a['uint32'](0xa)['string'](_0x5d50b0['channel']),null!=_0x5d50b0['suggestions']&&_0x5d50b0['suggestions']['length']){for(var _0x44e328=0x0;_0x44e328<_0x5d50b0['suggestions']['length'];++_0x44e328)_0x4dfc1a['uint32'](0x12)['string'](_0x5d50b0['suggestions'][_0x44e328]);}if(null!=_0x5d50b0['suggestionsV2']&&_0x5d50b0['suggestionsV2']['length']){for(_0x44e328=0x0;_0x44e328<_0x5d50b0['suggestionsV2']['length'];++_0x44e328)_0x2a91e5['SuggestionDescriptor']['encode'](_0x5d50b0['suggestionsV2'][_0x44e328],_0x4dfc1a['uint32'](0x1a)['fork']())['ldelim']();}return _0x4dfc1a;},_0xd9e712['encodeDelimited']=function(_0x136f0a,_0x3bd71a){return this['encode'](_0x136f0a,_0x3bd71a)['ldelim']();},_0xd9e712['decode']=function(_0x5bf82a,_0x12ed91,_0xe0adad){_0x5bf82a instanceof _0x33fc5a||(_0x5bf82a=_0x33fc5a['create'](_0x5bf82a));for(var _0xc84f42=void 0x0===_0x12ed91?_0x5bf82a['len']:_0x5bf82a['pos']+_0x12ed91,_0x28730e=new _0x2a91e5['TrackChangesConnectResponse']();_0x5bf82a['pos']<_0xc84f42;){var _0x1468c4=_0x5bf82a['uint32']();if(_0x1468c4===_0xe0adad)break;switch(_0x1468c4>>>0x3){case 0x1:_0x28730e['channel']=_0x5bf82a['string']();break;case 0x2:_0x28730e['suggestions']&&_0x28730e['suggestions']['length']||(_0x28730e['suggestions']=[]),_0x28730e['suggestions']['push'](_0x5bf82a['string']());break;case 0x3:_0x28730e['suggestionsV2']&&_0x28730e['suggestionsV2']['length']||(_0x28730e['suggestionsV2']=[]),_0x28730e['suggestionsV2']['push'](_0x2a91e5['SuggestionDescriptor']['decode'](_0x5bf82a,_0x5bf82a['uint32']()));break;default:_0x5bf82a['skipType'](0x7&_0x1468c4);}}return _0x28730e;},_0xd9e712['decodeDelimited']=function(_0x402f88){return _0x402f88 instanceof _0x33fc5a||(_0x402f88=new _0x33fc5a(_0x402f88)),this['decode'](_0x402f88,_0x402f88['uint32']());},_0xd9e712['verify']=function(_0x315376){if('object'!=typeof _0x315376||null===_0x315376)return'object\x20expected';if(null!=_0x315376['channel']&&_0x315376['hasOwnProperty']('channel')&&!_0x1fbc81['isString'](_0x315376['channel']))return'channel:\x20string\x20expected';if(null!=_0x315376['suggestions']&&_0x315376['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x315376['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x48b6c7=0x0;_0x48b6c7<_0x315376['suggestions']['length'];++_0x48b6c7)if(!_0x1fbc81['isString'](_0x315376['suggestions'][_0x48b6c7]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x315376['suggestionsV2']&&_0x315376['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x315376['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x48b6c7=0x0;_0x48b6c7<_0x315376['suggestionsV2']['length'];++_0x48b6c7){var _0xafea74=_0x2a91e5['SuggestionDescriptor']['verify'](_0x315376['suggestionsV2'][_0x48b6c7]);if(_0xafea74)return'suggestionsV2.'+_0xafea74;}}return null;},_0xd9e712['fromObject']=function(_0x2b6c19){if(_0x2b6c19 instanceof _0x2a91e5['TrackChangesConnectResponse'])return _0x2b6c19;var _0x1794f1=new _0x2a91e5['TrackChangesConnectResponse']();if(null!=_0x2b6c19['channel']&&(_0x1794f1['channel']=String(_0x2b6c19['channel'])),_0x2b6c19['suggestions']){if(!Array['isArray'](_0x2b6c19['suggestions']))throw TypeError('.TrackChangesConnectResponse.suggestions:\x20array\x20expected');_0x1794f1['suggestions']=[];for(var _0xea369f=0x0;_0xea369f<_0x2b6c19['suggestions']['length'];++_0xea369f)_0x1794f1['suggestions'][_0xea369f]=String(_0x2b6c19['suggestions'][_0xea369f]);}if(_0x2b6c19['suggestionsV2']){if(!Array['isArray'](_0x2b6c19['suggestionsV2']))throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20array\x20expected');for(_0x1794f1['suggestionsV2']=[],_0xea369f=0x0;_0xea369f<_0x2b6c19['suggestionsV2']['length'];++_0xea369f){if('object'!=typeof _0x2b6c19['suggestionsV2'][_0xea369f])throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20object\x20expected');_0x1794f1['suggestionsV2'][_0xea369f]=_0x2a91e5['SuggestionDescriptor']['fromObject'](_0x2b6c19['suggestionsV2'][_0xea369f]);}}return _0x1794f1;},_0xd9e712['toObject']=function(_0x262712,_0x7d6c64){_0x7d6c64||(_0x7d6c64={});var _0x221077={};if((_0x7d6c64['arrays']||_0x7d6c64['defaults'])&&(_0x221077['suggestions']=[],_0x221077['suggestionsV2']=[]),_0x7d6c64['defaults']&&(_0x221077['channel']=''),null!=_0x262712['channel']&&_0x262712['hasOwnProperty']('channel')&&(_0x221077['channel']=_0x262712['channel']),_0x262712['suggestions']&&_0x262712['suggestions']['length']){_0x221077['suggestions']=[];for(var _0x750105=0x0;_0x750105<_0x262712['suggestions']['length'];++_0x750105)_0x221077['suggestions'][_0x750105]=_0x262712['suggestions'][_0x750105];}if(_0x262712['suggestionsV2']&&_0x262712['suggestionsV2']['length']){for(_0x221077['suggestionsV2']=[],_0x750105=0x0;_0x750105<_0x262712['suggestionsV2']['length'];++_0x750105)_0x221077['suggestionsV2'][_0x750105]=_0x2a91e5['SuggestionDescriptor']['toObject'](_0x262712['suggestionsV2'][_0x750105],_0x7d6c64);}return _0x221077;},_0xd9e712['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xd9e712['getTypeUrl']=function(_0x85373a){return void 0x0===_0x85373a&&(_0x85373a='type.googleapis.com'),_0x85373a+'/TrackChangesConnectResponse';},_0xd9e712;}()),_0x2a91e5['TrackChangesGetAllSuggestionsResponse']=(function(){function _0x6e2109(_0x27467){if(this['suggestions']=[],this['suggestionsV2']=[],_0x27467){for(var _0xfc9afd=Object['keys'](_0x27467),_0x2c33a4=0x0;_0x2c33a4<_0xfc9afd['length'];++_0x2c33a4)null!=_0x27467[_0xfc9afd[_0x2c33a4]]&&(this[_0xfc9afd[_0x2c33a4]]=_0x27467[_0xfc9afd[_0x2c33a4]]);}}return _0x6e2109['prototype']['suggestions']=_0x1fbc81['emptyArray'],_0x6e2109['prototype']['suggestionsV2']=_0x1fbc81['emptyArray'],_0x6e2109['create']=function(_0x2a3caf){return new _0x6e2109(_0x2a3caf);},_0x6e2109['encode']=function(_0xbe10e8,_0x29ef4b){if(_0x29ef4b||(_0x29ef4b=_0x86a107['create']()),null!=_0xbe10e8['suggestions']&&_0xbe10e8['suggestions']['length']){for(var _0x1e3b24=0x0;_0x1e3b24<_0xbe10e8['suggestions']['length'];++_0x1e3b24)_0x29ef4b['uint32'](0xa)['string'](_0xbe10e8['suggestions'][_0x1e3b24]);}if(null!=_0xbe10e8['suggestionsV2']&&_0xbe10e8['suggestionsV2']['length']){for(_0x1e3b24=0x0;_0x1e3b24<_0xbe10e8['suggestionsV2']['length'];++_0x1e3b24)_0x2a91e5['SuggestionDescriptor']['encode'](_0xbe10e8['suggestionsV2'][_0x1e3b24],_0x29ef4b['uint32'](0x12)['fork']())['ldelim']();}return _0x29ef4b;},_0x6e2109['encodeDelimited']=function(_0x3b9331,_0x112517){return this['encode'](_0x3b9331,_0x112517)['ldelim']();},_0x6e2109['decode']=function(_0x472472,_0xb76afc,_0x27f93e){_0x472472 instanceof _0x33fc5a||(_0x472472=_0x33fc5a['create'](_0x472472));for(var _0x4ca4cb=void 0x0===_0xb76afc?_0x472472['len']:_0x472472['pos']+_0xb76afc,_0x17b03b=new _0x2a91e5['TrackChangesGetAllSuggestionsResponse']();_0x472472['pos']<_0x4ca4cb;){var _0x8836c8=_0x472472['uint32']();if(_0x8836c8===_0x27f93e)break;switch(_0x8836c8>>>0x3){case 0x1:_0x17b03b['suggestions']&&_0x17b03b['suggestions']['length']||(_0x17b03b['suggestions']=[]),_0x17b03b['suggestions']['push'](_0x472472['string']());break;case 0x2:_0x17b03b['suggestionsV2']&&_0x17b03b['suggestionsV2']['length']||(_0x17b03b['suggestionsV2']=[]),_0x17b03b['suggestionsV2']['push'](_0x2a91e5['SuggestionDescriptor']['decode'](_0x472472,_0x472472['uint32']()));break;default:_0x472472['skipType'](0x7&_0x8836c8);}}return _0x17b03b;},_0x6e2109['decodeDelimited']=function(_0x7be5af){return _0x7be5af instanceof _0x33fc5a||(_0x7be5af=new _0x33fc5a(_0x7be5af)),this['decode'](_0x7be5af,_0x7be5af['uint32']());},_0x6e2109['verify']=function(_0x355c58){if('object'!=typeof _0x355c58||null===_0x355c58)return'object\x20expected';if(null!=_0x355c58['suggestions']&&_0x355c58['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x355c58['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x1628e9=0x0;_0x1628e9<_0x355c58['suggestions']['length'];++_0x1628e9)if(!_0x1fbc81['isString'](_0x355c58['suggestions'][_0x1628e9]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x355c58['suggestionsV2']&&_0x355c58['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x355c58['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x1628e9=0x0;_0x1628e9<_0x355c58['suggestionsV2']['length'];++_0x1628e9){var _0x257e82=_0x2a91e5['SuggestionDescriptor']['verify'](_0x355c58['suggestionsV2'][_0x1628e9]);if(_0x257e82)return'suggestionsV2.'+_0x257e82;}}return null;},_0x6e2109['fromObject']=function(_0x4b0045){if(_0x4b0045 instanceof _0x2a91e5['TrackChangesGetAllSuggestionsResponse'])return _0x4b0045;var _0x43f1fc=new _0x2a91e5['TrackChangesGetAllSuggestionsResponse']();if(_0x4b0045['suggestions']){if(!Array['isArray'](_0x4b0045['suggestions']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestions:\x20array\x20expected');_0x43f1fc['suggestions']=[];for(var _0x16dab3=0x0;_0x16dab3<_0x4b0045['suggestions']['length'];++_0x16dab3)_0x43f1fc['suggestions'][_0x16dab3]=String(_0x4b0045['suggestions'][_0x16dab3]);}if(_0x4b0045['suggestionsV2']){if(!Array['isArray'](_0x4b0045['suggestionsV2']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20array\x20expected');for(_0x43f1fc['suggestionsV2']=[],_0x16dab3=0x0;_0x16dab3<_0x4b0045['suggestionsV2']['length'];++_0x16dab3){if('object'!=typeof _0x4b0045['suggestionsV2'][_0x16dab3])throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20object\x20expected');_0x43f1fc['suggestionsV2'][_0x16dab3]=_0x2a91e5['SuggestionDescriptor']['fromObject'](_0x4b0045['suggestionsV2'][_0x16dab3]);}}return _0x43f1fc;},_0x6e2109['toObject']=function(_0x358e27,_0x1ab738){_0x1ab738||(_0x1ab738={});var _0x586d8c={};if((_0x1ab738['arrays']||_0x1ab738['defaults'])&&(_0x586d8c['suggestions']=[],_0x586d8c['suggestionsV2']=[]),_0x358e27['suggestions']&&_0x358e27['suggestions']['length']){_0x586d8c['suggestions']=[];for(var _0x346ba8=0x0;_0x346ba8<_0x358e27['suggestions']['length'];++_0x346ba8)_0x586d8c['suggestions'][_0x346ba8]=_0x358e27['suggestions'][_0x346ba8];}if(_0x358e27['suggestionsV2']&&_0x358e27['suggestionsV2']['length']){for(_0x586d8c['suggestionsV2']=[],_0x346ba8=0x0;_0x346ba8<_0x358e27['suggestionsV2']['length'];++_0x346ba8)_0x586d8c['suggestionsV2'][_0x346ba8]=_0x2a91e5['SuggestionDescriptor']['toObject'](_0x358e27['suggestionsV2'][_0x346ba8],_0x1ab738);}return _0x586d8c;},_0x6e2109['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x6e2109['getTypeUrl']=function(_0x1d24d0){return void 0x0===_0x1d24d0&&(_0x1d24d0='type.googleapis.com'),_0x1d24d0+'/TrackChangesGetAllSuggestionsResponse';},_0x6e2109;}()),_0x2a91e5['TrackChangesGetSuggestionResponse']=(function(){function _0x511c4b(_0x573fff){if(_0x573fff){for(var _0x9e5940=Object['keys'](_0x573fff),_0x57d45b=0x0;_0x57d45b<_0x9e5940['length'];++_0x57d45b)null!=_0x573fff[_0x9e5940[_0x57d45b]]&&(this[_0x9e5940[_0x57d45b]]=_0x573fff[_0x9e5940[_0x57d45b]]);}}return _0x511c4b['prototype']['id']='',_0x511c4b['prototype']['authorId']='',_0x511c4b['prototype']['type']='',_0x511c4b['prototype']['createdAt']='',_0x511c4b['prototype']['data']='',_0x511c4b['prototype']['hasComments']=!0x1,_0x511c4b['prototype']['state']='',_0x511c4b['prototype']['attributes']='',_0x511c4b['create']=function(_0x2f4077){return new _0x511c4b(_0x2f4077);},_0x511c4b['encode']=function(_0x515da4,_0x1698b3){return _0x1698b3||(_0x1698b3=_0x86a107['create']()),null!=_0x515da4['id']&&Object['hasOwnProperty']['call'](_0x515da4,'id')&&_0x1698b3['uint32'](0xa)['string'](_0x515da4['id']),null!=_0x515da4['authorId']&&Object['hasOwnProperty']['call'](_0x515da4,'authorId')&&_0x1698b3['uint32'](0x12)['string'](_0x515da4['authorId']),null!=_0x515da4['type']&&Object['hasOwnProperty']['call'](_0x515da4,'type')&&_0x1698b3['uint32'](0x1a)['string'](_0x515da4['type']),null!=_0x515da4['createdAt']&&Object['hasOwnProperty']['call'](_0x515da4,'createdAt')&&_0x1698b3['uint32'](0x22)['string'](_0x515da4['createdAt']),null!=_0x515da4['data']&&Object['hasOwnProperty']['call'](_0x515da4,'data')&&_0x1698b3['uint32'](0x2a)['string'](_0x515da4['data']),null!=_0x515da4['hasComments']&&Object['hasOwnProperty']['call'](_0x515da4,'hasComments')&&_0x1698b3['uint32'](0x30)['bool'](_0x515da4['hasComments']),null!=_0x515da4['state']&&Object['hasOwnProperty']['call'](_0x515da4,'state')&&_0x1698b3['uint32'](0x3a)['string'](_0x515da4['state']),null!=_0x515da4['attributes']&&Object['hasOwnProperty']['call'](_0x515da4,'attributes')&&_0x1698b3['uint32'](0x42)['string'](_0x515da4['attributes']),_0x1698b3;},_0x511c4b['encodeDelimited']=function(_0x6a9721,_0x352021){return this['encode'](_0x6a9721,_0x352021)['ldelim']();},_0x511c4b['decode']=function(_0x58d84d,_0x5e7fc6,_0xeabba6){_0x58d84d instanceof _0x33fc5a||(_0x58d84d=_0x33fc5a['create'](_0x58d84d));for(var _0x2efd34=void 0x0===_0x5e7fc6?_0x58d84d['len']:_0x58d84d['pos']+_0x5e7fc6,_0x5996e1=new _0x2a91e5['TrackChangesGetSuggestionResponse']();_0x58d84d['pos']<_0x2efd34;){var _0x25024b=_0x58d84d['uint32']();if(_0x25024b===_0xeabba6)break;switch(_0x25024b>>>0x3){case 0x1:_0x5996e1['id']=_0x58d84d['string']();break;case 0x2:_0x5996e1['authorId']=_0x58d84d['string']();break;case 0x3:_0x5996e1['type']=_0x58d84d['string']();break;case 0x4:_0x5996e1['createdAt']=_0x58d84d['string']();break;case 0x5:_0x5996e1['data']=_0x58d84d['string']();break;case 0x6:_0x5996e1['hasComments']=_0x58d84d['bool']();break;case 0x7:_0x5996e1['state']=_0x58d84d['string']();break;case 0x8:_0x5996e1['attributes']=_0x58d84d['string']();break;default:_0x58d84d['skipType'](0x7&_0x25024b);}}return _0x5996e1;},_0x511c4b['decodeDelimited']=function(_0x47065a){return _0x47065a instanceof _0x33fc5a||(_0x47065a=new _0x33fc5a(_0x47065a)),this['decode'](_0x47065a,_0x47065a['uint32']());},_0x511c4b['verify']=function(_0x2af9fd){return'object'!=typeof _0x2af9fd||null===_0x2af9fd?'object\x20expected':null!=_0x2af9fd['id']&&_0x2af9fd['hasOwnProperty']('id')&&!_0x1fbc81['isString'](_0x2af9fd['id'])?'id:\x20string\x20expected':null!=_0x2af9fd['authorId']&&_0x2af9fd['hasOwnProperty']('authorId')&&!_0x1fbc81['isString'](_0x2af9fd['authorId'])?'authorId:\x20string\x20expected':null!=_0x2af9fd['type']&&_0x2af9fd['hasOwnProperty']('type')&&!_0x1fbc81['isString'](_0x2af9fd['type'])?'type:\x20string\x20expected':null!=_0x2af9fd['createdAt']&&_0x2af9fd['hasOwnProperty']('createdAt')&&!_0x1fbc81['isString'](_0x2af9fd['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x2af9fd['data']&&_0x2af9fd['hasOwnProperty']('data')&&!_0x1fbc81['isString'](_0x2af9fd['data'])?'data:\x20string\x20expected':null!=_0x2af9fd['hasComments']&&_0x2af9fd['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x2af9fd['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x2af9fd['state']&&_0x2af9fd['hasOwnProperty']('state')&&!_0x1fbc81['isString'](_0x2af9fd['state'])?'state:\x20string\x20expected':null!=_0x2af9fd['attributes']&&_0x2af9fd['hasOwnProperty']('attributes')&&!_0x1fbc81['isString'](_0x2af9fd['attributes'])?'attributes:\x20string\x20expected':null;},_0x511c4b['fromObject']=function(_0x4a73a5){if(_0x4a73a5 instanceof _0x2a91e5['TrackChangesGetSuggestionResponse'])return _0x4a73a5;var _0x2f619d=new _0x2a91e5['TrackChangesGetSuggestionResponse']();return null!=_0x4a73a5['id']&&(_0x2f619d['id']=String(_0x4a73a5['id'])),null!=_0x4a73a5['authorId']&&(_0x2f619d['authorId']=String(_0x4a73a5['authorId'])),null!=_0x4a73a5['type']&&(_0x2f619d['type']=String(_0x4a73a5['type'])),null!=_0x4a73a5['createdAt']&&(_0x2f619d['createdAt']=String(_0x4a73a5['createdAt'])),null!=_0x4a73a5['data']&&(_0x2f619d['data']=String(_0x4a73a5['data'])),null!=_0x4a73a5['hasComments']&&(_0x2f619d['hasComments']=Boolean(_0x4a73a5['hasComments'])),null!=_0x4a73a5['state']&&(_0x2f619d['state']=String(_0x4a73a5['state'])),null!=_0x4a73a5['attributes']&&(_0x2f619d['attributes']=String(_0x4a73a5['attributes'])),_0x2f619d;},_0x511c4b['toObject']=function(_0x52251d,_0x1f16cc){_0x1f16cc||(_0x1f16cc={});var _0x34c8d5={};return _0x1f16cc['defaults']&&(_0x34c8d5['id']='',_0x34c8d5['authorId']='',_0x34c8d5['type']='',_0x34c8d5['createdAt']='',_0x34c8d5['data']='',_0x34c8d5['hasComments']=!0x1,_0x34c8d5['state']='',_0x34c8d5['attributes']=''),null!=_0x52251d['id']&&_0x52251d['hasOwnProperty']('id')&&(_0x34c8d5['id']=_0x52251d['id']),null!=_0x52251d['authorId']&&_0x52251d['hasOwnProperty']('authorId')&&(_0x34c8d5['authorId']=_0x52251d['authorId']),null!=_0x52251d['type']&&_0x52251d['hasOwnProperty']('type')&&(_0x34c8d5['type']=_0x52251d['type']),null!=_0x52251d['createdAt']&&_0x52251d['hasOwnProperty']('createdAt')&&(_0x34c8d5['createdAt']=_0x52251d['createdAt']),null!=_0x52251d['data']&&_0x52251d['hasOwnProperty']('data')&&(_0x34c8d5['data']=_0x52251d['data']),null!=_0x52251d['hasComments']&&_0x52251d['hasOwnProperty']('hasComments')&&(_0x34c8d5['hasComments']=_0x52251d['hasComments']),null!=_0x52251d['state']&&_0x52251d['hasOwnProperty']('state')&&(_0x34c8d5['state']=_0x52251d['state']),null!=_0x52251d['attributes']&&_0x52251d['hasOwnProperty']('attributes')&&(_0x34c8d5['attributes']=_0x52251d['attributes']),_0x34c8d5;},_0x511c4b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x511c4b['getTypeUrl']=function(_0x234d24){return void 0x0===_0x234d24&&(_0x234d24='type.googleapis.com'),_0x234d24+'/TrackChangesGetSuggestionResponse';},_0x511c4b;}()),_0x2a91e5['UserDescriptor']=(function(){function _0x312659(_0x2358be){if(this['attributes']=[],_0x2358be){for(var _0x576207=Object['keys'](_0x2358be),_0x29ad6d=0x0;_0x29ad6d<_0x576207['length'];++_0x29ad6d)null!=_0x2358be[_0x576207[_0x29ad6d]]&&(this[_0x576207[_0x29ad6d]]=_0x2358be[_0x576207[_0x29ad6d]]);}}return _0x312659['prototype']['attributes']=_0x1fbc81['emptyArray'],_0x312659['create']=function(_0x3dadbd){return new _0x312659(_0x3dadbd);},_0x312659['encode']=function(_0x5dbdc9,_0x119e0a){if(_0x119e0a||(_0x119e0a=_0x86a107['create']()),null!=_0x5dbdc9['attributes']&&_0x5dbdc9['attributes']['length']){for(var _0x39b301=0x0;_0x39b301<_0x5dbdc9['attributes']['length'];++_0x39b301)_0x2a91e5['KeyValueDescriptor']['encode'](_0x5dbdc9['attributes'][_0x39b301],_0x119e0a['uint32'](0xa)['fork']())['ldelim']();}return _0x119e0a;},_0x312659['encodeDelimited']=function(_0x19c1c4,_0x47d50b){return this['encode'](_0x19c1c4,_0x47d50b)['ldelim']();},_0x312659['decode']=function(_0x27a73a,_0x37ff78,_0x3e812b){_0x27a73a instanceof _0x33fc5a||(_0x27a73a=_0x33fc5a['create'](_0x27a73a));for(var _0x13c99f=void 0x0===_0x37ff78?_0x27a73a['len']:_0x27a73a['pos']+_0x37ff78,_0x2b7217=new _0x2a91e5['UserDescriptor']();_0x27a73a['pos']<_0x13c99f;){var _0x34fe32=_0x27a73a['uint32']();if(_0x34fe32===_0x3e812b)break;_0x34fe32>>>0x3==0x1?(_0x2b7217['attributes']&&_0x2b7217['attributes']['length']||(_0x2b7217['attributes']=[]),_0x2b7217['attributes']['push'](_0x2a91e5['KeyValueDescriptor']['decode'](_0x27a73a,_0x27a73a['uint32']()))):_0x27a73a['skipType'](0x7&_0x34fe32);}return _0x2b7217;},_0x312659['decodeDelimited']=function(_0x4d579b){return _0x4d579b instanceof _0x33fc5a||(_0x4d579b=new _0x33fc5a(_0x4d579b)),this['decode'](_0x4d579b,_0x4d579b['uint32']());},_0x312659['verify']=function(_0x1d1bd8){if('object'!=typeof _0x1d1bd8||null===_0x1d1bd8)return'object\x20expected';if(null!=_0x1d1bd8['attributes']&&_0x1d1bd8['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x1d1bd8['attributes']))return'attributes:\x20array\x20expected';for(var _0x56e2d9=0x0;_0x56e2d9<_0x1d1bd8['attributes']['length'];++_0x56e2d9){var _0x207bef=_0x2a91e5['KeyValueDescriptor']['verify'](_0x1d1bd8['attributes'][_0x56e2d9]);if(_0x207bef)return'attributes.'+_0x207bef;}}return null;},_0x312659['fromObject']=function(_0x258b4b){if(_0x258b4b instanceof _0x2a91e5['UserDescriptor'])return _0x258b4b;var _0x2a620c=new _0x2a91e5['UserDescriptor']();if(_0x258b4b['attributes']){if(!Array['isArray'](_0x258b4b['attributes']))throw TypeError('.UserDescriptor.attributes:\x20array\x20expected');_0x2a620c['attributes']=[];for(var _0x10b2a0=0x0;_0x10b2a0<_0x258b4b['attributes']['length'];++_0x10b2a0){if('object'!=typeof _0x258b4b['attributes'][_0x10b2a0])throw TypeError('.UserDescriptor.attributes:\x20object\x20expected');_0x2a620c['attributes'][_0x10b2a0]=_0x2a91e5['KeyValueDescriptor']['fromObject'](_0x258b4b['attributes'][_0x10b2a0]);}}return _0x2a620c;},_0x312659['toObject']=function(_0x4b17bc,_0x7dde30){_0x7dde30||(_0x7dde30={});var _0x2c1be5={};if((_0x7dde30['arrays']||_0x7dde30['defaults'])&&(_0x2c1be5['attributes']=[]),_0x4b17bc['attributes']&&_0x4b17bc['attributes']['length']){_0x2c1be5['attributes']=[];for(var _0x36bf67=0x0;_0x36bf67<_0x4b17bc['attributes']['length'];++_0x36bf67)_0x2c1be5['attributes'][_0x36bf67]=_0x2a91e5['KeyValueDescriptor']['toObject'](_0x4b17bc['attributes'][_0x36bf67],_0x7dde30);}return _0x2c1be5;},_0x312659['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x312659['getTypeUrl']=function(_0x45de9a){return void 0x0===_0x45de9a&&(_0x45de9a='type.googleapis.com'),_0x45de9a+'/UserDescriptor';},_0x312659;}()),_0x2a91e5['GetManyUsersMessage']=(function(){function _0x14bab7(_0x2fcc15){if(this['ids']=[],_0x2fcc15){for(var _0x376a24=Object['keys'](_0x2fcc15),_0x1051ea=0x0;_0x1051ea<_0x376a24['length'];++_0x1051ea)null!=_0x2fcc15[_0x376a24[_0x1051ea]]&&(this[_0x376a24[_0x1051ea]]=_0x2fcc15[_0x376a24[_0x1051ea]]);}}return _0x14bab7['prototype']['ids']=_0x1fbc81['emptyArray'],_0x14bab7['create']=function(_0x57e4e6){return new _0x14bab7(_0x57e4e6);},_0x14bab7['encode']=function(_0x50952f,_0x107dbe){if(_0x107dbe||(_0x107dbe=_0x86a107['create']()),null!=_0x50952f['ids']&&_0x50952f['ids']['length']){for(var _0x598c87=0x0;_0x598c87<_0x50952f['ids']['length'];++_0x598c87)_0x107dbe['uint32'](0xa)['string'](_0x50952f['ids'][_0x598c87]);}return _0x107dbe;},_0x14bab7['encodeDelimited']=function(_0x44dde7,_0x4d3684){return this['encode'](_0x44dde7,_0x4d3684)['ldelim']();},_0x14bab7['decode']=function(_0x50d6e8,_0x4aa0ed,_0x1fedda){_0x50d6e8 instanceof _0x33fc5a||(_0x50d6e8=_0x33fc5a['create'](_0x50d6e8));for(var _0x1a8eaa=void 0x0===_0x4aa0ed?_0x50d6e8['len']:_0x50d6e8['pos']+_0x4aa0ed,_0x17fb97=new _0x2a91e5['GetManyUsersMessage']();_0x50d6e8['pos']<_0x1a8eaa;){var _0x31894c=_0x50d6e8['uint32']();if(_0x31894c===_0x1fedda)break;_0x31894c>>>0x3==0x1?(_0x17fb97['ids']&&_0x17fb97['ids']['length']||(_0x17fb97['ids']=[]),_0x17fb97['ids']['push'](_0x50d6e8['string']())):_0x50d6e8['skipType'](0x7&_0x31894c);}return _0x17fb97;},_0x14bab7['decodeDelimited']=function(_0x16dfa6){return _0x16dfa6 instanceof _0x33fc5a||(_0x16dfa6=new _0x33fc5a(_0x16dfa6)),this['decode'](_0x16dfa6,_0x16dfa6['uint32']());},_0x14bab7['verify']=function(_0x4f52ee){if('object'!=typeof _0x4f52ee||null===_0x4f52ee)return'object\x20expected';if(null!=_0x4f52ee['ids']&&_0x4f52ee['hasOwnProperty']('ids')){if(!Array['isArray'](_0x4f52ee['ids']))return'ids:\x20array\x20expected';for(var _0x5bb6aa=0x0;_0x5bb6aa<_0x4f52ee['ids']['length'];++_0x5bb6aa)if(!_0x1fbc81['isString'](_0x4f52ee['ids'][_0x5bb6aa]))return'ids:\x20string[]\x20expected';}return null;},_0x14bab7['fromObject']=function(_0x613216){if(_0x613216 instanceof _0x2a91e5['GetManyUsersMessage'])return _0x613216;var _0x153072=new _0x2a91e5['GetManyUsersMessage']();if(_0x613216['ids']){if(!Array['isArray'](_0x613216['ids']))throw TypeError('.GetManyUsersMessage.ids:\x20array\x20expected');_0x153072['ids']=[];for(var _0x4d3b98=0x0;_0x4d3b98<_0x613216['ids']['length'];++_0x4d3b98)_0x153072['ids'][_0x4d3b98]=String(_0x613216['ids'][_0x4d3b98]);}return _0x153072;},_0x14bab7['toObject']=function(_0x2d3a64,_0x5e78b0){_0x5e78b0||(_0x5e78b0={});var _0x4de636={};if((_0x5e78b0['arrays']||_0x5e78b0['defaults'])&&(_0x4de636['ids']=[]),_0x2d3a64['ids']&&_0x2d3a64['ids']['length']){_0x4de636['ids']=[];for(var _0x513d29=0x0;_0x513d29<_0x2d3a64['ids']['length'];++_0x513d29)_0x4de636['ids'][_0x513d29]=_0x2d3a64['ids'][_0x513d29];}return _0x4de636;},_0x14bab7['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x14bab7['getTypeUrl']=function(_0x35a3e6){return void 0x0===_0x35a3e6&&(_0x35a3e6='type.googleapis.com'),_0x35a3e6+'/GetManyUsersMessage';},_0x14bab7;}()),_0x2a91e5['GetUserMessage']=(function(){function _0x2127d1(_0x13607c){if(_0x13607c){for(var _0x1e9f92=Object['keys'](_0x13607c),_0x2dd054=0x0;_0x2dd054<_0x1e9f92['length'];++_0x2dd054)null!=_0x13607c[_0x1e9f92[_0x2dd054]]&&(this[_0x1e9f92[_0x2dd054]]=_0x13607c[_0x1e9f92[_0x2dd054]]);}}return _0x2127d1['prototype']['id']='',_0x2127d1['create']=function(_0x468c01){return new _0x2127d1(_0x468c01);},_0x2127d1['encode']=function(_0x1e35d0,_0x53a1c0){return _0x53a1c0||(_0x53a1c0=_0x86a107['create']()),null!=_0x1e35d0['id']&&Object['hasOwnProperty']['call'](_0x1e35d0,'id')&&_0x53a1c0['uint32'](0xa)['string'](_0x1e35d0['id']),_0x53a1c0;},_0x2127d1['encodeDelimited']=function(_0x31b524,_0x4eaca5){return this['encode'](_0x31b524,_0x4eaca5)['ldelim']();},_0x2127d1['decode']=function(_0x1859d8,_0x13d431,_0x18c3f6){_0x1859d8 instanceof _0x33fc5a||(_0x1859d8=_0x33fc5a['create'](_0x1859d8));for(var _0x300dbb=void 0x0===_0x13d431?_0x1859d8['len']:_0x1859d8['pos']+_0x13d431,_0x13c70b=new _0x2a91e5['GetUserMessage']();_0x1859d8['pos']<_0x300dbb;){var _0x121606=_0x1859d8['uint32']();if(_0x121606===_0x18c3f6)break;_0x121606>>>0x3==0x1?_0x13c70b['id']=_0x1859d8['string']():_0x1859d8['skipType'](0x7&_0x121606);}return _0x13c70b;},_0x2127d1['decodeDelimited']=function(_0x532811){return _0x532811 instanceof _0x33fc5a||(_0x532811=new _0x33fc5a(_0x532811)),this['decode'](_0x532811,_0x532811['uint32']());},_0x2127d1['verify']=function(_0x5885f1){return'object'!=typeof _0x5885f1||null===_0x5885f1?'object\x20expected':null!=_0x5885f1['id']&&_0x5885f1['hasOwnProperty']('id')&&!_0x1fbc81['isString'](_0x5885f1['id'])?'id:\x20string\x20expected':null;},_0x2127d1['fromObject']=function(_0x242fc2){if(_0x242fc2 instanceof _0x2a91e5['GetUserMessage'])return _0x242fc2;var _0x33beea=new _0x2a91e5['GetUserMessage']();return null!=_0x242fc2['id']&&(_0x33beea['id']=String(_0x242fc2['id'])),_0x33beea;},_0x2127d1['toObject']=function(_0x32a192,_0x4a2b09){_0x4a2b09||(_0x4a2b09={});var _0x51fdce={};return _0x4a2b09['defaults']&&(_0x51fdce['id']=''),null!=_0x32a192['id']&&_0x32a192['hasOwnProperty']('id')&&(_0x51fdce['id']=_0x32a192['id']),_0x51fdce;},_0x2127d1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2127d1['getTypeUrl']=function(_0x515938){return void 0x0===_0x515938&&(_0x515938='type.googleapis.com'),_0x515938+'/GetUserMessage';},_0x2127d1;}()),_0x2a91e5['GetManyUsersResponse']=(function(){function _0x2a7c19(_0x2b6196){if(this['users']=[],_0x2b6196){for(var _0x24c0a7=Object['keys'](_0x2b6196),_0x17f059=0x0;_0x17f059<_0x24c0a7['length'];++_0x17f059)null!=_0x2b6196[_0x24c0a7[_0x17f059]]&&(this[_0x24c0a7[_0x17f059]]=_0x2b6196[_0x24c0a7[_0x17f059]]);}}return _0x2a7c19['prototype']['users']=_0x1fbc81['emptyArray'],_0x2a7c19['create']=function(_0x123347){return new _0x2a7c19(_0x123347);},_0x2a7c19['encode']=function(_0x211647,_0xf8658b){if(_0xf8658b||(_0xf8658b=_0x86a107['create']()),null!=_0x211647['users']&&_0x211647['users']['length']){for(var _0x2d1b92=0x0;_0x2d1b92<_0x211647['users']['length'];++_0x2d1b92)_0x2a91e5['UserDescriptor']['encode'](_0x211647['users'][_0x2d1b92],_0xf8658b['uint32'](0xa)['fork']())['ldelim']();}return _0xf8658b;},_0x2a7c19['encodeDelimited']=function(_0x3cd2e3,_0xdd2720){return this['encode'](_0x3cd2e3,_0xdd2720)['ldelim']();},_0x2a7c19['decode']=function(_0x5f3a51,_0x54b699,_0x4e56c4){_0x5f3a51 instanceof _0x33fc5a||(_0x5f3a51=_0x33fc5a['create'](_0x5f3a51));for(var _0x27c55c=void 0x0===_0x54b699?_0x5f3a51['len']:_0x5f3a51['pos']+_0x54b699,_0x3cdf40=new _0x2a91e5['GetManyUsersResponse']();_0x5f3a51['pos']<_0x27c55c;){var _0x4f662d=_0x5f3a51['uint32']();if(_0x4f662d===_0x4e56c4)break;_0x4f662d>>>0x3==0x1?(_0x3cdf40['users']&&_0x3cdf40['users']['length']||(_0x3cdf40['users']=[]),_0x3cdf40['users']['push'](_0x2a91e5['UserDescriptor']['decode'](_0x5f3a51,_0x5f3a51['uint32']()))):_0x5f3a51['skipType'](0x7&_0x4f662d);}return _0x3cdf40;},_0x2a7c19['decodeDelimited']=function(_0x2505a9){return _0x2505a9 instanceof _0x33fc5a||(_0x2505a9=new _0x33fc5a(_0x2505a9)),this['decode'](_0x2505a9,_0x2505a9['uint32']());},_0x2a7c19['verify']=function(_0x1b989d){if('object'!=typeof _0x1b989d||null===_0x1b989d)return'object\x20expected';if(null!=_0x1b989d['users']&&_0x1b989d['hasOwnProperty']('users')){if(!Array['isArray'](_0x1b989d['users']))return'users:\x20array\x20expected';for(var _0x1b9ea8=0x0;_0x1b9ea8<_0x1b989d['users']['length'];++_0x1b9ea8){var _0x493039=_0x2a91e5['UserDescriptor']['verify'](_0x1b989d['users'][_0x1b9ea8]);if(_0x493039)return'users.'+_0x493039;}}return null;},_0x2a7c19['fromObject']=function(_0x194b55){if(_0x194b55 instanceof _0x2a91e5['GetManyUsersResponse'])return _0x194b55;var _0x21ba51=new _0x2a91e5['GetManyUsersResponse']();if(_0x194b55['users']){if(!Array['isArray'](_0x194b55['users']))throw TypeError('.GetManyUsersResponse.users:\x20array\x20expected');_0x21ba51['users']=[];for(var _0x5deb68=0x0;_0x5deb68<_0x194b55['users']['length'];++_0x5deb68){if('object'!=typeof _0x194b55['users'][_0x5deb68])throw TypeError('.GetManyUsersResponse.users:\x20object\x20expected');_0x21ba51['users'][_0x5deb68]=_0x2a91e5['UserDescriptor']['fromObject'](_0x194b55['users'][_0x5deb68]);}}return _0x21ba51;},_0x2a7c19['toObject']=function(_0x1723e8,_0x2b5c5f){_0x2b5c5f||(_0x2b5c5f={});var _0x146afd={};if((_0x2b5c5f['arrays']||_0x2b5c5f['defaults'])&&(_0x146afd['users']=[]),_0x1723e8['users']&&_0x1723e8['users']['length']){_0x146afd['users']=[];for(var _0x356c47=0x0;_0x356c47<_0x1723e8['users']['length'];++_0x356c47)_0x146afd['users'][_0x356c47]=_0x2a91e5['UserDescriptor']['toObject'](_0x1723e8['users'][_0x356c47],_0x2b5c5f);}return _0x146afd;},_0x2a7c19['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2a7c19['getTypeUrl']=function(_0x138473){return void 0x0===_0x138473&&(_0x138473='type.googleapis.com'),_0x138473+'/GetManyUsersResponse';},_0x2a7c19;}()),_0x2a91e5['GetUserResponse']=(function(){function _0x4a0275(_0x230973){if(this['attributes']=[],_0x230973){for(var _0x1a452f=Object['keys'](_0x230973),_0x19b013=0x0;_0x19b013<_0x1a452f['length'];++_0x19b013)null!=_0x230973[_0x1a452f[_0x19b013]]&&(this[_0x1a452f[_0x19b013]]=_0x230973[_0x1a452f[_0x19b013]]);}}return _0x4a0275['prototype']['attributes']=_0x1fbc81['emptyArray'],_0x4a0275['create']=function(_0x3b7ebf){return new _0x4a0275(_0x3b7ebf);},_0x4a0275['encode']=function(_0x37d25a,_0x5ec199){if(_0x5ec199||(_0x5ec199=_0x86a107['create']()),null!=_0x37d25a['attributes']&&_0x37d25a['attributes']['length']){for(var _0x295c85=0x0;_0x295c85<_0x37d25a['attributes']['length'];++_0x295c85)_0x2a91e5['KeyValueDescriptor']['encode'](_0x37d25a['attributes'][_0x295c85],_0x5ec199['uint32'](0xa)['fork']())['ldelim']();}return _0x5ec199;},_0x4a0275['encodeDelimited']=function(_0xeb56d6,_0x3a613f){return this['encode'](_0xeb56d6,_0x3a613f)['ldelim']();},_0x4a0275['decode']=function(_0x324eb1,_0x341041,_0x40b298){_0x324eb1 instanceof _0x33fc5a||(_0x324eb1=_0x33fc5a['create'](_0x324eb1));for(var _0x48fd20=void 0x0===_0x341041?_0x324eb1['len']:_0x324eb1['pos']+_0x341041,_0x822949=new _0x2a91e5['GetUserResponse']();_0x324eb1['pos']<_0x48fd20;){var _0x194875=_0x324eb1['uint32']();if(_0x194875===_0x40b298)break;_0x194875>>>0x3==0x1?(_0x822949['attributes']&&_0x822949['attributes']['length']||(_0x822949['attributes']=[]),_0x822949['attributes']['push'](_0x2a91e5['KeyValueDescriptor']['decode'](_0x324eb1,_0x324eb1['uint32']()))):_0x324eb1['skipType'](0x7&_0x194875);}return _0x822949;},_0x4a0275['decodeDelimited']=function(_0x417f79){return _0x417f79 instanceof _0x33fc5a||(_0x417f79=new _0x33fc5a(_0x417f79)),this['decode'](_0x417f79,_0x417f79['uint32']());},_0x4a0275['verify']=function(_0x369941){if('object'!=typeof _0x369941||null===_0x369941)return'object\x20expected';if(null!=_0x369941['attributes']&&_0x369941['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x369941['attributes']))return'attributes:\x20array\x20expected';for(var _0x3604e9=0x0;_0x3604e9<_0x369941['attributes']['length'];++_0x3604e9){var _0x26b07a=_0x2a91e5['KeyValueDescriptor']['verify'](_0x369941['attributes'][_0x3604e9]);if(_0x26b07a)return'attributes.'+_0x26b07a;}}return null;},_0x4a0275['fromObject']=function(_0x3c80f8){if(_0x3c80f8 instanceof _0x2a91e5['GetUserResponse'])return _0x3c80f8;var _0x2ba583=new _0x2a91e5['GetUserResponse']();if(_0x3c80f8['attributes']){if(!Array['isArray'](_0x3c80f8['attributes']))throw TypeError('.GetUserResponse.attributes:\x20array\x20expected');_0x2ba583['attributes']=[];for(var _0x2dd999=0x0;_0x2dd999<_0x3c80f8['attributes']['length'];++_0x2dd999){if('object'!=typeof _0x3c80f8['attributes'][_0x2dd999])throw TypeError('.GetUserResponse.attributes:\x20object\x20expected');_0x2ba583['attributes'][_0x2dd999]=_0x2a91e5['KeyValueDescriptor']['fromObject'](_0x3c80f8['attributes'][_0x2dd999]);}}return _0x2ba583;},_0x4a0275['toObject']=function(_0x33077b,_0x35bd40){_0x35bd40||(_0x35bd40={});var _0x2365bd={};if((_0x35bd40['arrays']||_0x35bd40['defaults'])&&(_0x2365bd['attributes']=[]),_0x33077b['attributes']&&_0x33077b['attributes']['length']){_0x2365bd['attributes']=[];for(var _0x43f9cf=0x0;_0x43f9cf<_0x33077b['attributes']['length'];++_0x43f9cf)_0x2365bd['attributes'][_0x43f9cf]=_0x2a91e5['KeyValueDescriptor']['toObject'](_0x33077b['attributes'][_0x43f9cf],_0x35bd40);}return _0x2365bd;},_0x4a0275['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4a0275['getTypeUrl']=function(_0x2f1024){return void 0x0===_0x2f1024&&(_0x2f1024='type.googleapis.com'),_0x2f1024+'/GetUserResponse';},_0x4a0275;}()),_0x2a91e5['ChannelMessage']=(function(){function _0x31b810(_0x3ddeea){if(_0x3ddeea){for(var _0xac9e92=Object['keys'](_0x3ddeea),_0xa1d7ea=0x0;_0xa1d7ea<_0xac9e92['length'];++_0xa1d7ea)null!=_0x3ddeea[_0xac9e92[_0xa1d7ea]]&&(this[_0xac9e92[_0xa1d7ea]]=_0x3ddeea[_0xac9e92[_0xa1d7ea]]);}}return _0x31b810['prototype']['type']=0x0,_0x31b810['prototype']['socketId']='',_0x31b810['prototype']['data']=_0x1fbc81['newBuffer']([]),_0x31b810['create']=function(_0x5c6fd7){return new _0x31b810(_0x5c6fd7);},_0x31b810['encode']=function(_0x3b94ad,_0x175ed0){return _0x175ed0||(_0x175ed0=_0x86a107['create']()),null!=_0x3b94ad['type']&&Object['hasOwnProperty']['call'](_0x3b94ad,'type')&&_0x175ed0['uint32'](0x8)['uint32'](_0x3b94ad['type']),null!=_0x3b94ad['socketId']&&Object['hasOwnProperty']['call'](_0x3b94ad,'socketId')&&_0x175ed0['uint32'](0x12)['string'](_0x3b94ad['socketId']),null!=_0x3b94ad['data']&&Object['hasOwnProperty']['call'](_0x3b94ad,'data')&&_0x175ed0['uint32'](0x1a)['bytes'](_0x3b94ad['data']),_0x175ed0;},_0x31b810['encodeDelimited']=function(_0x105082,_0x1fc9b8){return this['encode'](_0x105082,_0x1fc9b8)['ldelim']();},_0x31b810['decode']=function(_0x59e1fc,_0x10212c,_0x83e5ef){_0x59e1fc instanceof _0x33fc5a||(_0x59e1fc=_0x33fc5a['create'](_0x59e1fc));for(var _0x594903=void 0x0===_0x10212c?_0x59e1fc['len']:_0x59e1fc['pos']+_0x10212c,_0x232254=new _0x2a91e5['ChannelMessage']();_0x59e1fc['pos']<_0x594903;){var _0x30a7b1=_0x59e1fc['uint32']();if(_0x30a7b1===_0x83e5ef)break;switch(_0x30a7b1>>>0x3){case 0x1:_0x232254['type']=_0x59e1fc['uint32']();break;case 0x2:_0x232254['socketId']=_0x59e1fc['string']();break;case 0x3:_0x232254['data']=_0x59e1fc['bytes']();break;default:_0x59e1fc['skipType'](0x7&_0x30a7b1);}}return _0x232254;},_0x31b810['decodeDelimited']=function(_0x3a33e0){return _0x3a33e0 instanceof _0x33fc5a||(_0x3a33e0=new _0x33fc5a(_0x3a33e0)),this['decode'](_0x3a33e0,_0x3a33e0['uint32']());},_0x31b810['verify']=function(_0x6b13ac){return'object'!=typeof _0x6b13ac||null===_0x6b13ac?'object\x20expected':null!=_0x6b13ac['type']&&_0x6b13ac['hasOwnProperty']('type')&&!_0x1fbc81['isInteger'](_0x6b13ac['type'])?'type:\x20integer\x20expected':null!=_0x6b13ac['socketId']&&_0x6b13ac['hasOwnProperty']('socketId')&&!_0x1fbc81['isString'](_0x6b13ac['socketId'])?'socketId:\x20string\x20expected':null!=_0x6b13ac['data']&&_0x6b13ac['hasOwnProperty']('data')&&!(_0x6b13ac['data']&&'number'==typeof _0x6b13ac['data']['length']||_0x1fbc81['isString'](_0x6b13ac['data']))?'data:\x20buffer\x20expected':null;},_0x31b810['fromObject']=function(_0x43736f){if(_0x43736f instanceof _0x2a91e5['ChannelMessage'])return _0x43736f;var _0x436601=new _0x2a91e5['ChannelMessage']();return null!=_0x43736f['type']&&(_0x436601['type']=_0x43736f['type']>>>0x0),null!=_0x43736f['socketId']&&(_0x436601['socketId']=String(_0x43736f['socketId'])),null!=_0x43736f['data']&&('string'==typeof _0x43736f['data']?_0x1fbc81['base64']['decode'](_0x43736f['data'],_0x436601['data']=_0x1fbc81['newBuffer'](_0x1fbc81['base64']['length'](_0x43736f['data'])),0x0):_0x43736f['data']['length']>=0x0&&(_0x436601['data']=_0x43736f['data'])),_0x436601;},_0x31b810['toObject']=function(_0x5b96f3,_0x1bd13a){_0x1bd13a||(_0x1bd13a={});var _0x47f3a0={};return _0x1bd13a['defaults']&&(_0x47f3a0['type']=0x0,_0x47f3a0['socketId']='',_0x1bd13a['bytes']===String?_0x47f3a0['data']='':(_0x47f3a0['data']=[],_0x1bd13a['bytes']!==Array&&(_0x47f3a0['data']=_0x1fbc81['newBuffer'](_0x47f3a0['data'])))),null!=_0x5b96f3['type']&&_0x5b96f3['hasOwnProperty']('type')&&(_0x47f3a0['type']=_0x5b96f3['type']),null!=_0x5b96f3['socketId']&&_0x5b96f3['hasOwnProperty']('socketId')&&(_0x47f3a0['socketId']=_0x5b96f3['socketId']),null!=_0x5b96f3['data']&&_0x5b96f3['hasOwnProperty']('data')&&(_0x47f3a0['data']=_0x1bd13a['bytes']===String?_0x1fbc81['base64']['encode'](_0x5b96f3['data'],0x0,_0x5b96f3['data']['length']):_0x1bd13a['bytes']===Array?Array['prototype']['slice']['call'](_0x5b96f3['data']):_0x5b96f3['data']),_0x47f3a0;},_0x31b810['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x31b810['getTypeUrl']=function(_0x1c8ee3){return void 0x0===_0x1c8ee3&&(_0x1c8ee3='type.googleapis.com'),_0x1c8ee3+'/ChannelMessage';},_0x31b810;}()),_0x2a91e5['BytesBytesPacketDataMessage']=(function(){function _0x120147(_0x26a294){if(_0x26a294){for(var _0x563e9c=Object['keys'](_0x26a294),_0x48209b=0x0;_0x48209b<_0x563e9c['length'];++_0x48209b)null!=_0x26a294[_0x563e9c[_0x48209b]]&&(this[_0x563e9c[_0x48209b]]=_0x26a294[_0x563e9c[_0x48209b]]);}}return _0x120147['prototype']['data']=_0x1fbc81['newBuffer']([]),_0x120147['prototype']['data1']=_0x1fbc81['newBuffer']([]),_0x120147['create']=function(_0x3cf441){return new _0x120147(_0x3cf441);},_0x120147['encode']=function(_0x1f5f4d,_0x23caad){return _0x23caad||(_0x23caad=_0x86a107['create']()),null!=_0x1f5f4d['data']&&Object['hasOwnProperty']['call'](_0x1f5f4d,'data')&&_0x23caad['uint32'](0xa)['bytes'](_0x1f5f4d['data']),null!=_0x1f5f4d['data1']&&Object['hasOwnProperty']['call'](_0x1f5f4d,'data1')&&_0x23caad['uint32'](0x12)['bytes'](_0x1f5f4d['data1']),_0x23caad;},_0x120147['encodeDelimited']=function(_0x240240,_0x1683be){return this['encode'](_0x240240,_0x1683be)['ldelim']();},_0x120147['decode']=function(_0x3971f9,_0x4ba953,_0x80fc08){_0x3971f9 instanceof _0x33fc5a||(_0x3971f9=_0x33fc5a['create'](_0x3971f9));for(var _0x5edbc6=void 0x0===_0x4ba953?_0x3971f9['len']:_0x3971f9['pos']+_0x4ba953,_0x5c519b=new _0x2a91e5['BytesBytesPacketDataMessage']();_0x3971f9['pos']<_0x5edbc6;){var _0x561a15=_0x3971f9['uint32']();if(_0x561a15===_0x80fc08)break;switch(_0x561a15>>>0x3){case 0x1:_0x5c519b['data']=_0x3971f9['bytes']();break;case 0x2:_0x5c519b['data1']=_0x3971f9['bytes']();break;default:_0x3971f9['skipType'](0x7&_0x561a15);}}return _0x5c519b;},_0x120147['decodeDelimited']=function(_0x21d0d7){return _0x21d0d7 instanceof _0x33fc5a||(_0x21d0d7=new _0x33fc5a(_0x21d0d7)),this['decode'](_0x21d0d7,_0x21d0d7['uint32']());},_0x120147['verify']=function(_0x33bd30){return'object'!=typeof _0x33bd30||null===_0x33bd30?'object\x20expected':null!=_0x33bd30['data']&&_0x33bd30['hasOwnProperty']('data')&&!(_0x33bd30['data']&&'number'==typeof _0x33bd30['data']['length']||_0x1fbc81['isString'](_0x33bd30['data']))?'data:\x20buffer\x20expected':null!=_0x33bd30['data1']&&_0x33bd30['hasOwnProperty']('data1')&&!(_0x33bd30['data1']&&'number'==typeof _0x33bd30['data1']['length']||_0x1fbc81['isString'](_0x33bd30['data1']))?'data1:\x20buffer\x20expected':null;},_0x120147['fromObject']=function(_0xa3a086){if(_0xa3a086 instanceof _0x2a91e5['BytesBytesPacketDataMessage'])return _0xa3a086;var _0x3a923f=new _0x2a91e5['BytesBytesPacketDataMessage']();return null!=_0xa3a086['data']&&('string'==typeof _0xa3a086['data']?_0x1fbc81['base64']['decode'](_0xa3a086['data'],_0x3a923f['data']=_0x1fbc81['newBuffer'](_0x1fbc81['base64']['length'](_0xa3a086['data'])),0x0):_0xa3a086['data']['length']>=0x0&&(_0x3a923f['data']=_0xa3a086['data'])),null!=_0xa3a086['data1']&&('string'==typeof _0xa3a086['data1']?_0x1fbc81['base64']['decode'](_0xa3a086['data1'],_0x3a923f['data1']=_0x1fbc81['newBuffer'](_0x1fbc81['base64']['length'](_0xa3a086['data1'])),0x0):_0xa3a086['data1']['length']>=0x0&&(_0x3a923f['data1']=_0xa3a086['data1'])),_0x3a923f;},_0x120147['toObject']=function(_0x9db3c9,_0x300487){_0x300487||(_0x300487={});var _0x1b218f={};return _0x300487['defaults']&&(_0x300487['bytes']===String?_0x1b218f['data']='':(_0x1b218f['data']=[],_0x300487['bytes']!==Array&&(_0x1b218f['data']=_0x1fbc81['newBuffer'](_0x1b218f['data']))),_0x300487['bytes']===String?_0x1b218f['data1']='':(_0x1b218f['data1']=[],_0x300487['bytes']!==Array&&(_0x1b218f['data1']=_0x1fbc81['newBuffer'](_0x1b218f['data1'])))),null!=_0x9db3c9['data']&&_0x9db3c9['hasOwnProperty']('data')&&(_0x1b218f['data']=_0x300487['bytes']===String?_0x1fbc81['base64']['encode'](_0x9db3c9['data'],0x0,_0x9db3c9['data']['length']):_0x300487['bytes']===Array?Array['prototype']['slice']['call'](_0x9db3c9['data']):_0x9db3c9['data']),null!=_0x9db3c9['data1']&&_0x9db3c9['hasOwnProperty']('data1')&&(_0x1b218f['data1']=_0x300487['bytes']===String?_0x1fbc81['base64']['encode'](_0x9db3c9['data1'],0x0,_0x9db3c9['data1']['length']):_0x300487['bytes']===Array?Array['prototype']['slice']['call'](_0x9db3c9['data1']):_0x9db3c9['data1']),_0x1b218f;},_0x120147['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x120147['getTypeUrl']=function(_0x2a5bbe){return void 0x0===_0x2a5bbe&&(_0x2a5bbe='type.googleapis.com'),_0x2a5bbe+'/BytesBytesPacketDataMessage';},_0x120147;}()),_0x2a91e5['NumberBytesPacketDataMessage']=(function(){function _0x541168(_0x1c841f){if(_0x1c841f){for(var _0x5ef06f=Object['keys'](_0x1c841f),_0x5c61b3=0x0;_0x5c61b3<_0x5ef06f['length'];++_0x5c61b3)null!=_0x1c841f[_0x5ef06f[_0x5c61b3]]&&(this[_0x5ef06f[_0x5c61b3]]=_0x1c841f[_0x5ef06f[_0x5c61b3]]);}}return _0x541168['prototype']['data']=0x0,_0x541168['prototype']['data1']=_0x1fbc81['newBuffer']([]),_0x541168['create']=function(_0x554877){return new _0x541168(_0x554877);},_0x541168['encode']=function(_0xa573,_0x28fae0){return _0x28fae0||(_0x28fae0=_0x86a107['create']()),null!=_0xa573['data']&&Object['hasOwnProperty']['call'](_0xa573,'data')&&_0x28fae0['uint32'](0x8)['uint32'](_0xa573['data']),null!=_0xa573['data1']&&Object['hasOwnProperty']['call'](_0xa573,'data1')&&_0x28fae0['uint32'](0x12)['bytes'](_0xa573['data1']),_0x28fae0;},_0x541168['encodeDelimited']=function(_0x50c049,_0x5663e7){return this['encode'](_0x50c049,_0x5663e7)['ldelim']();},_0x541168['decode']=function(_0x1eed81,_0x54e90c,_0x492a7a){_0x1eed81 instanceof _0x33fc5a||(_0x1eed81=_0x33fc5a['create'](_0x1eed81));for(var _0x511a60=void 0x0===_0x54e90c?_0x1eed81['len']:_0x1eed81['pos']+_0x54e90c,_0x4690c9=new _0x2a91e5['NumberBytesPacketDataMessage']();_0x1eed81['pos']<_0x511a60;){var _0x22ce0c=_0x1eed81['uint32']();if(_0x22ce0c===_0x492a7a)break;switch(_0x22ce0c>>>0x3){case 0x1:_0x4690c9['data']=_0x1eed81['uint32']();break;case 0x2:_0x4690c9['data1']=_0x1eed81['bytes']();break;default:_0x1eed81['skipType'](0x7&_0x22ce0c);}}return _0x4690c9;},_0x541168['decodeDelimited']=function(_0x199d99){return _0x199d99 instanceof _0x33fc5a||(_0x199d99=new _0x33fc5a(_0x199d99)),this['decode'](_0x199d99,_0x199d99['uint32']());},_0x541168['verify']=function(_0x53ce64){return'object'!=typeof _0x53ce64||null===_0x53ce64?'object\x20expected':null!=_0x53ce64['data']&&_0x53ce64['hasOwnProperty']('data')&&!_0x1fbc81['isInteger'](_0x53ce64['data'])?'data:\x20integer\x20expected':null!=_0x53ce64['data1']&&_0x53ce64['hasOwnProperty']('data1')&&!(_0x53ce64['data1']&&'number'==typeof _0x53ce64['data1']['length']||_0x1fbc81['isString'](_0x53ce64['data1']))?'data1:\x20buffer\x20expected':null;},_0x541168['fromObject']=function(_0x209642){if(_0x209642 instanceof _0x2a91e5['NumberBytesPacketDataMessage'])return _0x209642;var _0x51c8cc=new _0x2a91e5['NumberBytesPacketDataMessage']();return null!=_0x209642['data']&&(_0x51c8cc['data']=_0x209642['data']>>>0x0),null!=_0x209642['data1']&&('string'==typeof _0x209642['data1']?_0x1fbc81['base64']['decode'](_0x209642['data1'],_0x51c8cc['data1']=_0x1fbc81['newBuffer'](_0x1fbc81['base64']['length'](_0x209642['data1'])),0x0):_0x209642['data1']['length']>=0x0&&(_0x51c8cc['data1']=_0x209642['data1'])),_0x51c8cc;},_0x541168['toObject']=function(_0x47baae,_0x4cdc24){_0x4cdc24||(_0x4cdc24={});var _0x1d7497={};return _0x4cdc24['defaults']&&(_0x1d7497['data']=0x0,_0x4cdc24['bytes']===String?_0x1d7497['data1']='':(_0x1d7497['data1']=[],_0x4cdc24['bytes']!==Array&&(_0x1d7497['data1']=_0x1fbc81['newBuffer'](_0x1d7497['data1'])))),null!=_0x47baae['data']&&_0x47baae['hasOwnProperty']('data')&&(_0x1d7497['data']=_0x47baae['data']),null!=_0x47baae['data1']&&_0x47baae['hasOwnProperty']('data1')&&(_0x1d7497['data1']=_0x4cdc24['bytes']===String?_0x1fbc81['base64']['encode'](_0x47baae['data1'],0x0,_0x47baae['data1']['length']):_0x4cdc24['bytes']===Array?Array['prototype']['slice']['call'](_0x47baae['data1']):_0x47baae['data1']),_0x1d7497;},_0x541168['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x541168['getTypeUrl']=function(_0x32f593){return void 0x0===_0x32f593&&(_0x32f593='type.googleapis.com'),_0x32f593+'/NumberBytesPacketDataMessage';},_0x541168;}()),_0x2a91e5['NumberNumberPacketDataMessage']=(function(){function _0x1ddde6(_0x50f974){if(_0x50f974){for(var _0x53a257=Object['keys'](_0x50f974),_0x2fac8c=0x0;_0x2fac8c<_0x53a257['length'];++_0x2fac8c)null!=_0x50f974[_0x53a257[_0x2fac8c]]&&(this[_0x53a257[_0x2fac8c]]=_0x50f974[_0x53a257[_0x2fac8c]]);}}return _0x1ddde6['prototype']['data']=0x0,_0x1ddde6['prototype']['data1']=0x0,_0x1ddde6['create']=function(_0x11b156){return new _0x1ddde6(_0x11b156);},_0x1ddde6['encode']=function(_0x1f97d4,_0x2db1eb){return _0x2db1eb||(_0x2db1eb=_0x86a107['create']()),null!=_0x1f97d4['data']&&Object['hasOwnProperty']['call'](_0x1f97d4,'data')&&_0x2db1eb['uint32'](0x8)['uint32'](_0x1f97d4['data']),null!=_0x1f97d4['data1']&&Object['hasOwnProperty']['call'](_0x1f97d4,'data1')&&_0x2db1eb['uint32'](0x10)['uint32'](_0x1f97d4['data1']),_0x2db1eb;},_0x1ddde6['encodeDelimited']=function(_0x5576a2,_0x54efb2){return this['encode'](_0x5576a2,_0x54efb2)['ldelim']();},_0x1ddde6['decode']=function(_0x30a853,_0x4c78ec,_0x43e691){_0x30a853 instanceof _0x33fc5a||(_0x30a853=_0x33fc5a['create'](_0x30a853));for(var _0x5cb09e=void 0x0===_0x4c78ec?_0x30a853['len']:_0x30a853['pos']+_0x4c78ec,_0x2b9f69=new _0x2a91e5['NumberNumberPacketDataMessage']();_0x30a853['pos']<_0x5cb09e;){var _0x3c70dd=_0x30a853['uint32']();if(_0x3c70dd===_0x43e691)break;switch(_0x3c70dd>>>0x3){case 0x1:_0x2b9f69['data']=_0x30a853['uint32']();break;case 0x2:_0x2b9f69['data1']=_0x30a853['uint32']();break;default:_0x30a853['skipType'](0x7&_0x3c70dd);}}return _0x2b9f69;},_0x1ddde6['decodeDelimited']=function(_0x4a2a5a){return _0x4a2a5a instanceof _0x33fc5a||(_0x4a2a5a=new _0x33fc5a(_0x4a2a5a)),this['decode'](_0x4a2a5a,_0x4a2a5a['uint32']());},_0x1ddde6['verify']=function(_0x30eb2a){return'object'!=typeof _0x30eb2a||null===_0x30eb2a?'object\x20expected':null!=_0x30eb2a['data']&&_0x30eb2a['hasOwnProperty']('data')&&!_0x1fbc81['isInteger'](_0x30eb2a['data'])?'data:\x20integer\x20expected':null!=_0x30eb2a['data1']&&_0x30eb2a['hasOwnProperty']('data1')&&!_0x1fbc81['isInteger'](_0x30eb2a['data1'])?'data1:\x20integer\x20expected':null;},_0x1ddde6['fromObject']=function(_0xe52fd9){if(_0xe52fd9 instanceof _0x2a91e5['NumberNumberPacketDataMessage'])return _0xe52fd9;var _0x2b4f3c=new _0x2a91e5['NumberNumberPacketDataMessage']();return null!=_0xe52fd9['data']&&(_0x2b4f3c['data']=_0xe52fd9['data']>>>0x0),null!=_0xe52fd9['data1']&&(_0x2b4f3c['data1']=_0xe52fd9['data1']>>>0x0),_0x2b4f3c;},_0x1ddde6['toObject']=function(_0x281a7c,_0x4400c0){_0x4400c0||(_0x4400c0={});var _0xf6942e={};return _0x4400c0['defaults']&&(_0xf6942e['data']=0x0,_0xf6942e['data1']=0x0),null!=_0x281a7c['data']&&_0x281a7c['hasOwnProperty']('data')&&(_0xf6942e['data']=_0x281a7c['data']),null!=_0x281a7c['data1']&&_0x281a7c['hasOwnProperty']('data1')&&(_0xf6942e['data1']=_0x281a7c['data1']),_0xf6942e;},_0x1ddde6['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1ddde6['getTypeUrl']=function(_0x4f0332){return void 0x0===_0x4f0332&&(_0x4f0332='type.googleapis.com'),_0x4f0332+'/NumberNumberPacketDataMessage';},_0x1ddde6;}()),_0x2a91e5['NumberObjectPacketDataMessage']=(function(){function _0x4d7d4f(_0x3d2f22){if(_0x3d2f22){for(var _0x4cd59b=Object['keys'](_0x3d2f22),_0x11c9a7=0x0;_0x11c9a7<_0x4cd59b['length'];++_0x11c9a7)null!=_0x3d2f22[_0x4cd59b[_0x11c9a7]]&&(this[_0x4cd59b[_0x11c9a7]]=_0x3d2f22[_0x4cd59b[_0x11c9a7]]);}}return _0x4d7d4f['prototype']['data']=0x0,_0x4d7d4f['prototype']['data1']='',_0x4d7d4f['create']=function(_0x3ec878){return new _0x4d7d4f(_0x3ec878);},_0x4d7d4f['encode']=function(_0x376d53,_0x2cbf4b){return _0x2cbf4b||(_0x2cbf4b=_0x86a107['create']()),null!=_0x376d53['data']&&Object['hasOwnProperty']['call'](_0x376d53,'data')&&_0x2cbf4b['uint32'](0x8)['uint32'](_0x376d53['data']),null!=_0x376d53['data1']&&Object['hasOwnProperty']['call'](_0x376d53,'data1')&&_0x2cbf4b['uint32'](0x12)['string'](_0x376d53['data1']),_0x2cbf4b;},_0x4d7d4f['encodeDelimited']=function(_0x4752af,_0x5f2c5e){return this['encode'](_0x4752af,_0x5f2c5e)['ldelim']();},_0x4d7d4f['decode']=function(_0x257966,_0x134851,_0xc8e8ac){_0x257966 instanceof _0x33fc5a||(_0x257966=_0x33fc5a['create'](_0x257966));for(var _0x27e093=void 0x0===_0x134851?_0x257966['len']:_0x257966['pos']+_0x134851,_0x18e125=new _0x2a91e5['NumberObjectPacketDataMessage']();_0x257966['pos']<_0x27e093;){var _0x5d8a3c=_0x257966['uint32']();if(_0x5d8a3c===_0xc8e8ac)break;switch(_0x5d8a3c>>>0x3){case 0x1:_0x18e125['data']=_0x257966['uint32']();break;case 0x2:_0x18e125['data1']=_0x257966['string']();break;default:_0x257966['skipType'](0x7&_0x5d8a3c);}}return _0x18e125;},_0x4d7d4f['decodeDelimited']=function(_0x48b323){return _0x48b323 instanceof _0x33fc5a||(_0x48b323=new _0x33fc5a(_0x48b323)),this['decode'](_0x48b323,_0x48b323['uint32']());},_0x4d7d4f['verify']=function(_0x47d4ae){return'object'!=typeof _0x47d4ae||null===_0x47d4ae?'object\x20expected':null!=_0x47d4ae['data']&&_0x47d4ae['hasOwnProperty']('data')&&!_0x1fbc81['isInteger'](_0x47d4ae['data'])?'data:\x20integer\x20expected':null!=_0x47d4ae['data1']&&_0x47d4ae['hasOwnProperty']('data1')&&!_0x1fbc81['isString'](_0x47d4ae['data1'])?'data1:\x20string\x20expected':null;},_0x4d7d4f['fromObject']=function(_0x58d519){if(_0x58d519 instanceof _0x2a91e5['NumberObjectPacketDataMessage'])return _0x58d519;var _0x1558a2=new _0x2a91e5['NumberObjectPacketDataMessage']();return null!=_0x58d519['data']&&(_0x1558a2['data']=_0x58d519['data']>>>0x0),null!=_0x58d519['data1']&&(_0x1558a2['data1']=String(_0x58d519['data1'])),_0x1558a2;},_0x4d7d4f['toObject']=function(_0x48f6fc,_0x25e101){_0x25e101||(_0x25e101={});var _0x3fe1c4={};return _0x25e101['defaults']&&(_0x3fe1c4['data']=0x0,_0x3fe1c4['data1']=''),null!=_0x48f6fc['data']&&_0x48f6fc['hasOwnProperty']('data')&&(_0x3fe1c4['data']=_0x48f6fc['data']),null!=_0x48f6fc['data1']&&_0x48f6fc['hasOwnProperty']('data1')&&(_0x3fe1c4['data1']=_0x48f6fc['data1']),_0x3fe1c4;},_0x4d7d4f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4d7d4f['getTypeUrl']=function(_0x2d5d01){return void 0x0===_0x2d5d01&&(_0x2d5d01='type.googleapis.com'),_0x2d5d01+'/NumberObjectPacketDataMessage';},_0x4d7d4f;}()),_0x2a91e5['NumberStringPacketDataMessage']=(function(){function _0x39b1cd(_0x318d19){if(_0x318d19){for(var _0x230f4c=Object['keys'](_0x318d19),_0x5a6de6=0x0;_0x5a6de6<_0x230f4c['length'];++_0x5a6de6)null!=_0x318d19[_0x230f4c[_0x5a6de6]]&&(this[_0x230f4c[_0x5a6de6]]=_0x318d19[_0x230f4c[_0x5a6de6]]);}}return _0x39b1cd['prototype']['data']=0x0,_0x39b1cd['prototype']['data1']='',_0x39b1cd['create']=function(_0x24c43e){return new _0x39b1cd(_0x24c43e);},_0x39b1cd['encode']=function(_0x4f6182,_0x44860c){return _0x44860c||(_0x44860c=_0x86a107['create']()),null!=_0x4f6182['data']&&Object['hasOwnProperty']['call'](_0x4f6182,'data')&&_0x44860c['uint32'](0x8)['uint32'](_0x4f6182['data']),null!=_0x4f6182['data1']&&Object['hasOwnProperty']['call'](_0x4f6182,'data1')&&_0x44860c['uint32'](0x12)['string'](_0x4f6182['data1']),_0x44860c;},_0x39b1cd['encodeDelimited']=function(_0x3dd12b,_0x304fb3){return this['encode'](_0x3dd12b,_0x304fb3)['ldelim']();},_0x39b1cd['decode']=function(_0x319f72,_0x55e937,_0x53e400){_0x319f72 instanceof _0x33fc5a||(_0x319f72=_0x33fc5a['create'](_0x319f72));for(var _0xd45d11=void 0x0===_0x55e937?_0x319f72['len']:_0x319f72['pos']+_0x55e937,_0x49f5d1=new _0x2a91e5['NumberStringPacketDataMessage']();_0x319f72['pos']<_0xd45d11;){var _0x2b797e=_0x319f72['uint32']();if(_0x2b797e===_0x53e400)break;switch(_0x2b797e>>>0x3){case 0x1:_0x49f5d1['data']=_0x319f72['uint32']();break;case 0x2:_0x49f5d1['data1']=_0x319f72['string']();break;default:_0x319f72['skipType'](0x7&_0x2b797e);}}return _0x49f5d1;},_0x39b1cd['decodeDelimited']=function(_0x2ae952){return _0x2ae952 instanceof _0x33fc5a||(_0x2ae952=new _0x33fc5a(_0x2ae952)),this['decode'](_0x2ae952,_0x2ae952['uint32']());},_0x39b1cd['verify']=function(_0x137812){return'object'!=typeof _0x137812||null===_0x137812?'object\x20expected':null!=_0x137812['data']&&_0x137812['hasOwnProperty']('data')&&!_0x1fbc81['isInteger'](_0x137812['data'])?'data:\x20integer\x20expected':null!=_0x137812['data1']&&_0x137812['hasOwnProperty']('data1')&&!_0x1fbc81['isString'](_0x137812['data1'])?'data1:\x20string\x20expected':null;},_0x39b1cd['fromObject']=function(_0x18c28e){if(_0x18c28e instanceof _0x2a91e5['NumberStringPacketDataMessage'])return _0x18c28e;var _0x2f2081=new _0x2a91e5['NumberStringPacketDataMessage']();return null!=_0x18c28e['data']&&(_0x2f2081['data']=_0x18c28e['data']>>>0x0),null!=_0x18c28e['data1']&&(_0x2f2081['data1']=String(_0x18c28e['data1'])),_0x2f2081;},_0x39b1cd['toObject']=function(_0x1f7c53,_0x59418a){_0x59418a||(_0x59418a={});var _0x42e841={};return _0x59418a['defaults']&&(_0x42e841['data']=0x0,_0x42e841['data1']=''),null!=_0x1f7c53['data']&&_0x1f7c53['hasOwnProperty']('data')&&(_0x42e841['data']=_0x1f7c53['data']),null!=_0x1f7c53['data1']&&_0x1f7c53['hasOwnProperty']('data1')&&(_0x42e841['data1']=_0x1f7c53['data1']),_0x42e841;},_0x39b1cd['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x39b1cd['getTypeUrl']=function(_0x3e045b){return void 0x0===_0x3e045b&&(_0x3e045b='type.googleapis.com'),_0x3e045b+'/NumberStringPacketDataMessage';},_0x39b1cd;}()),_0x2a91e5['ObjectBufferPacketDataMessage']=(function(){function _0x4851d2(_0xc302a9){if(_0xc302a9){for(var _0x34975b=Object['keys'](_0xc302a9),_0x37269d=0x0;_0x37269d<_0x34975b['length'];++_0x37269d)null!=_0xc302a9[_0x34975b[_0x37269d]]&&(this[_0x34975b[_0x37269d]]=_0xc302a9[_0x34975b[_0x37269d]]);}}return _0x4851d2['prototype']['data']='',_0x4851d2['prototype']['data1']=_0x1fbc81['newBuffer']([]),_0x4851d2['create']=function(_0x1c1285){return new _0x4851d2(_0x1c1285);},_0x4851d2['encode']=function(_0x23f412,_0x2f3141){return _0x2f3141||(_0x2f3141=_0x86a107['create']()),null!=_0x23f412['data']&&Object['hasOwnProperty']['call'](_0x23f412,'data')&&_0x2f3141['uint32'](0xa)['string'](_0x23f412['data']),null!=_0x23f412['data1']&&Object['hasOwnProperty']['call'](_0x23f412,'data1')&&_0x2f3141['uint32'](0x12)['bytes'](_0x23f412['data1']),_0x2f3141;},_0x4851d2['encodeDelimited']=function(_0x5b9065,_0x29faec){return this['encode'](_0x5b9065,_0x29faec)['ldelim']();},_0x4851d2['decode']=function(_0x24d8dc,_0x3899b5,_0x25324){_0x24d8dc instanceof _0x33fc5a||(_0x24d8dc=_0x33fc5a['create'](_0x24d8dc));for(var _0x6b8e6a=void 0x0===_0x3899b5?_0x24d8dc['len']:_0x24d8dc['pos']+_0x3899b5,_0xac812a=new _0x2a91e5['ObjectBufferPacketDataMessage']();_0x24d8dc['pos']<_0x6b8e6a;){var _0xa94077=_0x24d8dc['uint32']();if(_0xa94077===_0x25324)break;switch(_0xa94077>>>0x3){case 0x1:_0xac812a['data']=_0x24d8dc['string']();break;case 0x2:_0xac812a['data1']=_0x24d8dc['bytes']();break;default:_0x24d8dc['skipType'](0x7&_0xa94077);}}return _0xac812a;},_0x4851d2['decodeDelimited']=function(_0x234bc1){return _0x234bc1 instanceof _0x33fc5a||(_0x234bc1=new _0x33fc5a(_0x234bc1)),this['decode'](_0x234bc1,_0x234bc1['uint32']());},_0x4851d2['verify']=function(_0x55bcce){return'object'!=typeof _0x55bcce||null===_0x55bcce?'object\x20expected':null!=_0x55bcce['data']&&_0x55bcce['hasOwnProperty']('data')&&!_0x1fbc81['isString'](_0x55bcce['data'])?'data:\x20string\x20expected':null!=_0x55bcce['data1']&&_0x55bcce['hasOwnProperty']('data1')&&!(_0x55bcce['data1']&&'number'==typeof _0x55bcce['data1']['length']||_0x1fbc81['isString'](_0x55bcce['data1']))?'data1:\x20buffer\x20expected':null;},_0x4851d2['fromObject']=function(_0x4c213e){if(_0x4c213e instanceof _0x2a91e5['ObjectBufferPacketDataMessage'])return _0x4c213e;var _0x169ff9=new _0x2a91e5['ObjectBufferPacketDataMessage']();return null!=_0x4c213e['data']&&(_0x169ff9['data']=String(_0x4c213e['data'])),null!=_0x4c213e['data1']&&('string'==typeof _0x4c213e['data1']?_0x1fbc81['base64']['decode'](_0x4c213e['data1'],_0x169ff9['data1']=_0x1fbc81['newBuffer'](_0x1fbc81['base64']['length'](_0x4c213e['data1'])),0x0):_0x4c213e['data1']['length']>=0x0&&(_0x169ff9['data1']=_0x4c213e['data1'])),_0x169ff9;},_0x4851d2['toObject']=function(_0x1c0592,_0x19b027){_0x19b027||(_0x19b027={});var _0x39b0b8={};return _0x19b027['defaults']&&(_0x39b0b8['data']='',_0x19b027['bytes']===String?_0x39b0b8['data1']='':(_0x39b0b8['data1']=[],_0x19b027['bytes']!==Array&&(_0x39b0b8['data1']=_0x1fbc81['newBuffer'](_0x39b0b8['data1'])))),null!=_0x1c0592['data']&&_0x1c0592['hasOwnProperty']('data')&&(_0x39b0b8['data']=_0x1c0592['data']),null!=_0x1c0592['data1']&&_0x1c0592['hasOwnProperty']('data1')&&(_0x39b0b8['data1']=_0x19b027['bytes']===String?_0x1fbc81['base64']['encode'](_0x1c0592['data1'],0x0,_0x1c0592['data1']['length']):_0x19b027['bytes']===Array?Array['prototype']['slice']['call'](_0x1c0592['data1']):_0x1c0592['data1']),_0x39b0b8;},_0x4851d2['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4851d2['getTypeUrl']=function(_0x556e55){return void 0x0===_0x556e55&&(_0x556e55='type.googleapis.com'),_0x556e55+'/ObjectBufferPacketDataMessage';},_0x4851d2;}()),_0x2a91e5['ObjectObjectPacketDataMessage']=(function(){function _0x227359(_0x3ab941){if(_0x3ab941){for(var _0x4a82bf=Object['keys'](_0x3ab941),_0x4043eb=0x0;_0x4043eb<_0x4a82bf['length'];++_0x4043eb)null!=_0x3ab941[_0x4a82bf[_0x4043eb]]&&(this[_0x4a82bf[_0x4043eb]]=_0x3ab941[_0x4a82bf[_0x4043eb]]);}}return _0x227359['prototype']['data']='',_0x227359['prototype']['data1']='',_0x227359['create']=function(_0x433413){return new _0x227359(_0x433413);},_0x227359['encode']=function(_0x67ea3,_0xbb8adf){return _0xbb8adf||(_0xbb8adf=_0x86a107['create']()),null!=_0x67ea3['data']&&Object['hasOwnProperty']['call'](_0x67ea3,'data')&&_0xbb8adf['uint32'](0xa)['string'](_0x67ea3['data']),null!=_0x67ea3['data1']&&Object['hasOwnProperty']['call'](_0x67ea3,'data1')&&_0xbb8adf['uint32'](0x12)['string'](_0x67ea3['data1']),_0xbb8adf;},_0x227359['encodeDelimited']=function(_0x2f8b18,_0x1ba87a){return this['encode'](_0x2f8b18,_0x1ba87a)['ldelim']();},_0x227359['decode']=function(_0x5bc05d,_0x174ed6,_0x39f67a){_0x5bc05d instanceof _0x33fc5a||(_0x5bc05d=_0x33fc5a['create'](_0x5bc05d));for(var _0x5c4568=void 0x0===_0x174ed6?_0x5bc05d['len']:_0x5bc05d['pos']+_0x174ed6,_0x542c03=new _0x2a91e5['ObjectObjectPacketDataMessage']();_0x5bc05d['pos']<_0x5c4568;){var _0x38ed41=_0x5bc05d['uint32']();if(_0x38ed41===_0x39f67a)break;switch(_0x38ed41>>>0x3){case 0x1:_0x542c03['data']=_0x5bc05d['string']();break;case 0x2:_0x542c03['data1']=_0x5bc05d['string']();break;default:_0x5bc05d['skipType'](0x7&_0x38ed41);}}return _0x542c03;},_0x227359['decodeDelimited']=function(_0x729d6c){return _0x729d6c instanceof _0x33fc5a||(_0x729d6c=new _0x33fc5a(_0x729d6c)),this['decode'](_0x729d6c,_0x729d6c['uint32']());},_0x227359['verify']=function(_0x1c40c6){return'object'!=typeof _0x1c40c6||null===_0x1c40c6?'object\x20expected':null!=_0x1c40c6['data']&&_0x1c40c6['hasOwnProperty']('data')&&!_0x1fbc81['isString'](_0x1c40c6['data'])?'data:\x20string\x20expected':null!=_0x1c40c6['data1']&&_0x1c40c6['hasOwnProperty']('data1')&&!_0x1fbc81['isString'](_0x1c40c6['data1'])?'data1:\x20string\x20expected':null;},_0x227359['fromObject']=function(_0x3f815c){if(_0x3f815c instanceof _0x2a91e5['ObjectObjectPacketDataMessage'])return _0x3f815c;var _0x1ee7b9=new _0x2a91e5['ObjectObjectPacketDataMessage']();return null!=_0x3f815c['data']&&(_0x1ee7b9['data']=String(_0x3f815c['data'])),null!=_0x3f815c['data1']&&(_0x1ee7b9['data1']=String(_0x3f815c['data1'])),_0x1ee7b9;},_0x227359['toObject']=function(_0x5a0c80,_0x1b92ed){_0x1b92ed||(_0x1b92ed={});var _0x52e924={};return _0x1b92ed['defaults']&&(_0x52e924['data']='',_0x52e924['data1']=''),null!=_0x5a0c80['data']&&_0x5a0c80['hasOwnProperty']('data')&&(_0x52e924['data']=_0x5a0c80['data']),null!=_0x5a0c80['data1']&&_0x5a0c80['hasOwnProperty']('data1')&&(_0x52e924['data1']=_0x5a0c80['data1']),_0x52e924;},_0x227359['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x227359['getTypeUrl']=function(_0xd6c6a1){return void 0x0===_0xd6c6a1&&(_0xd6c6a1='type.googleapis.com'),_0xd6c6a1+'/ObjectObjectPacketDataMessage';},_0x227359;}()),_0x2a91e5['PacketMessage']=(function(){function _0x58830a(_0x949397){if(_0x949397){for(var _0x1b97f5=Object['keys'](_0x949397),_0x287fc1=0x0;_0x287fc1<_0x1b97f5['length'];++_0x287fc1)null!=_0x949397[_0x1b97f5[_0x287fc1]]&&(this[_0x1b97f5[_0x287fc1]]=_0x949397[_0x1b97f5[_0x287fc1]]);}}return _0x58830a['prototype']['type']=0x0,_0x58830a['prototype']['id']=0x0,_0x58830a['prototype']['nsp']='',_0x58830a['prototype']['data']=_0x1fbc81['newBuffer']([]),_0x58830a['prototype']['options']=_0x1fbc81['newBuffer']([]),_0x58830a['create']=function(_0x119b56){return new _0x58830a(_0x119b56);},_0x58830a['encode']=function(_0x3b6d7e,_0x2c39a1){return _0x2c39a1||(_0x2c39a1=_0x86a107['create']()),null!=_0x3b6d7e['type']&&Object['hasOwnProperty']['call'](_0x3b6d7e,'type')&&_0x2c39a1['uint32'](0x8)['uint32'](_0x3b6d7e['type']),null!=_0x3b6d7e['id']&&Object['hasOwnProperty']['call'](_0x3b6d7e,'id')&&_0x2c39a1['uint32'](0x10)['uint32'](_0x3b6d7e['id']),null!=_0x3b6d7e['nsp']&&Object['hasOwnProperty']['call'](_0x3b6d7e,'nsp')&&_0x2c39a1['uint32'](0x1a)['string'](_0x3b6d7e['nsp']),null!=_0x3b6d7e['data']&&Object['hasOwnProperty']['call'](_0x3b6d7e,'data')&&_0x2c39a1['uint32'](0x22)['bytes'](_0x3b6d7e['data']),null!=_0x3b6d7e['options']&&Object['hasOwnProperty']['call'](_0x3b6d7e,'options')&&_0x2c39a1['uint32'](0x2a)['bytes'](_0x3b6d7e['options']),_0x2c39a1;},_0x58830a['encodeDelimited']=function(_0xdcfc9e,_0x48364c){return this['encode'](_0xdcfc9e,_0x48364c)['ldelim']();},_0x58830a['decode']=function(_0x374a19,_0x4eca80,_0x4c71e1){_0x374a19 instanceof _0x33fc5a||(_0x374a19=_0x33fc5a['create'](_0x374a19));for(var _0xe47229=void 0x0===_0x4eca80?_0x374a19['len']:_0x374a19['pos']+_0x4eca80,_0x1b6a80=new _0x2a91e5['PacketMessage']();_0x374a19['pos']<_0xe47229;){var _0x363eec=_0x374a19['uint32']();if(_0x363eec===_0x4c71e1)break;switch(_0x363eec>>>0x3){case 0x1:_0x1b6a80['type']=_0x374a19['uint32']();break;case 0x2:_0x1b6a80['id']=_0x374a19['uint32']();break;case 0x3:_0x1b6a80['nsp']=_0x374a19['string']();break;case 0x4:_0x1b6a80['data']=_0x374a19['bytes']();break;case 0x5:_0x1b6a80['options']=_0x374a19['bytes']();break;default:_0x374a19['skipType'](0x7&_0x363eec);}}return _0x1b6a80;},_0x58830a['decodeDelimited']=function(_0x415473){return _0x415473 instanceof _0x33fc5a||(_0x415473=new _0x33fc5a(_0x415473)),this['decode'](_0x415473,_0x415473['uint32']());},_0x58830a['verify']=function(_0x246419){return'object'!=typeof _0x246419||null===_0x246419?'object\x20expected':null!=_0x246419['type']&&_0x246419['hasOwnProperty']('type')&&!_0x1fbc81['isInteger'](_0x246419['type'])?'type:\x20integer\x20expected':null!=_0x246419['id']&&_0x246419['hasOwnProperty']('id')&&!_0x1fbc81['isInteger'](_0x246419['id'])?'id:\x20integer\x20expected':null!=_0x246419['nsp']&&_0x246419['hasOwnProperty']('nsp')&&!_0x1fbc81['isString'](_0x246419['nsp'])?'nsp:\x20string\x20expected':null!=_0x246419['data']&&_0x246419['hasOwnProperty']('data')&&!(_0x246419['data']&&'number'==typeof _0x246419['data']['length']||_0x1fbc81['isString'](_0x246419['data']))?'data:\x20buffer\x20expected':null!=_0x246419['options']&&_0x246419['hasOwnProperty']('options')&&!(_0x246419['options']&&'number'==typeof _0x246419['options']['length']||_0x1fbc81['isString'](_0x246419['options']))?'options:\x20buffer\x20expected':null;},_0x58830a['fromObject']=function(_0x1acc36){if(_0x1acc36 instanceof _0x2a91e5['PacketMessage'])return _0x1acc36;var _0x4814a9=new _0x2a91e5['PacketMessage']();return null!=_0x1acc36['type']&&(_0x4814a9['type']=_0x1acc36['type']>>>0x0),null!=_0x1acc36['id']&&(_0x4814a9['id']=_0x1acc36['id']>>>0x0),null!=_0x1acc36['nsp']&&(_0x4814a9['nsp']=String(_0x1acc36['nsp'])),null!=_0x1acc36['data']&&('string'==typeof _0x1acc36['data']?_0x1fbc81['base64']['decode'](_0x1acc36['data'],_0x4814a9['data']=_0x1fbc81['newBuffer'](_0x1fbc81['base64']['length'](_0x1acc36['data'])),0x0):_0x1acc36['data']['length']>=0x0&&(_0x4814a9['data']=_0x1acc36['data'])),null!=_0x1acc36['options']&&('string'==typeof _0x1acc36['options']?_0x1fbc81['base64']['decode'](_0x1acc36['options'],_0x4814a9['options']=_0x1fbc81['newBuffer'](_0x1fbc81['base64']['length'](_0x1acc36['options'])),0x0):_0x1acc36['options']['length']>=0x0&&(_0x4814a9['options']=_0x1acc36['options'])),_0x4814a9;},_0x58830a['toObject']=function(_0x2d4e52,_0x434acc){_0x434acc||(_0x434acc={});var _0x21de41={};return _0x434acc['defaults']&&(_0x21de41['type']=0x0,_0x21de41['id']=0x0,_0x21de41['nsp']='',_0x434acc['bytes']===String?_0x21de41['data']='':(_0x21de41['data']=[],_0x434acc['bytes']!==Array&&(_0x21de41['data']=_0x1fbc81['newBuffer'](_0x21de41['data']))),_0x434acc['bytes']===String?_0x21de41['options']='':(_0x21de41['options']=[],_0x434acc['bytes']!==Array&&(_0x21de41['options']=_0x1fbc81['newBuffer'](_0x21de41['options'])))),null!=_0x2d4e52['type']&&_0x2d4e52['hasOwnProperty']('type')&&(_0x21de41['type']=_0x2d4e52['type']),null!=_0x2d4e52['id']&&_0x2d4e52['hasOwnProperty']('id')&&(_0x21de41['id']=_0x2d4e52['id']),null!=_0x2d4e52['nsp']&&_0x2d4e52['hasOwnProperty']('nsp')&&(_0x21de41['nsp']=_0x2d4e52['nsp']),null!=_0x2d4e52['data']&&_0x2d4e52['hasOwnProperty']('data')&&(_0x21de41['data']=_0x434acc['bytes']===String?_0x1fbc81['base64']['encode'](_0x2d4e52['data'],0x0,_0x2d4e52['data']['length']):_0x434acc['bytes']===Array?Array['prototype']['slice']['call'](_0x2d4e52['data']):_0x2d4e52['data']),null!=_0x2d4e52['options']&&_0x2d4e52['hasOwnProperty']('options')&&(_0x21de41['options']=_0x434acc['bytes']===String?_0x1fbc81['base64']['encode'](_0x2d4e52['options'],0x0,_0x2d4e52['options']['length']):_0x434acc['bytes']===Array?Array['prototype']['slice']['call'](_0x2d4e52['options']):_0x2d4e52['options']),_0x21de41;},_0x58830a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x58830a['getTypeUrl']=function(_0x1b72f2){return void 0x0===_0x1b72f2&&(_0x1b72f2='type.googleapis.com'),_0x1b72f2+'/PacketMessage';},_0x58830a;}()),_0x2a91e5['PacketOptionsMessage']=(function(){function _0x5078f9(_0x4d9938){if(this['rooms']=[],this['except']=[],_0x4d9938){for(var _0x5055cf=Object['keys'](_0x4d9938),_0x352516=0x0;_0x352516<_0x5055cf['length'];++_0x352516)null!=_0x4d9938[_0x5055cf[_0x352516]]&&(this[_0x5055cf[_0x352516]]=_0x4d9938[_0x5055cf[_0x352516]]);}}return _0x5078f9['prototype']['flags']='',_0x5078f9['prototype']['rooms']=_0x1fbc81['emptyArray'],_0x5078f9['prototype']['except']=_0x1fbc81['emptyArray'],_0x5078f9['create']=function(_0xa26a8f){return new _0x5078f9(_0xa26a8f);},_0x5078f9['encode']=function(_0x42ff8d,_0x195b72){if(_0x195b72||(_0x195b72=_0x86a107['create']()),null!=_0x42ff8d['flags']&&Object['hasOwnProperty']['call'](_0x42ff8d,'flags')&&_0x195b72['uint32'](0xa)['string'](_0x42ff8d['flags']),null!=_0x42ff8d['rooms']&&_0x42ff8d['rooms']['length']){for(var _0xc6cfe5=0x0;_0xc6cfe5<_0x42ff8d['rooms']['length'];++_0xc6cfe5)_0x195b72['uint32'](0x12)['string'](_0x42ff8d['rooms'][_0xc6cfe5]);}if(null!=_0x42ff8d['except']&&_0x42ff8d['except']['length']){for(_0xc6cfe5=0x0;_0xc6cfe5<_0x42ff8d['except']['length'];++_0xc6cfe5)_0x195b72['uint32'](0x1a)['string'](_0x42ff8d['except'][_0xc6cfe5]);}return _0x195b72;},_0x5078f9['encodeDelimited']=function(_0x81982a,_0x32f030){return this['encode'](_0x81982a,_0x32f030)['ldelim']();},_0x5078f9['decode']=function(_0x4873c1,_0x49cb01,_0x26e874){_0x4873c1 instanceof _0x33fc5a||(_0x4873c1=_0x33fc5a['create'](_0x4873c1));for(var _0x3e5679=void 0x0===_0x49cb01?_0x4873c1['len']:_0x4873c1['pos']+_0x49cb01,_0x5f69a2=new _0x2a91e5['PacketOptionsMessage']();_0x4873c1['pos']<_0x3e5679;){var _0x8102f6=_0x4873c1['uint32']();if(_0x8102f6===_0x26e874)break;switch(_0x8102f6>>>0x3){case 0x1:_0x5f69a2['flags']=_0x4873c1['string']();break;case 0x2:_0x5f69a2['rooms']&&_0x5f69a2['rooms']['length']||(_0x5f69a2['rooms']=[]),_0x5f69a2['rooms']['push'](_0x4873c1['string']());break;case 0x3:_0x5f69a2['except']&&_0x5f69a2['except']['length']||(_0x5f69a2['except']=[]),_0x5f69a2['except']['push'](_0x4873c1['string']());break;default:_0x4873c1['skipType'](0x7&_0x8102f6);}}return _0x5f69a2;},_0x5078f9['decodeDelimited']=function(_0x493179){return _0x493179 instanceof _0x33fc5a||(_0x493179=new _0x33fc5a(_0x493179)),this['decode'](_0x493179,_0x493179['uint32']());},_0x5078f9['verify']=function(_0x26a1f5){if('object'!=typeof _0x26a1f5||null===_0x26a1f5)return'object\x20expected';if(null!=_0x26a1f5['flags']&&_0x26a1f5['hasOwnProperty']('flags')&&!_0x1fbc81['isString'](_0x26a1f5['flags']))return'flags:\x20string\x20expected';if(null!=_0x26a1f5['rooms']&&_0x26a1f5['hasOwnProperty']('rooms')){if(!Array['isArray'](_0x26a1f5['rooms']))return'rooms:\x20array\x20expected';for(var _0x5b95f1=0x0;_0x5b95f1<_0x26a1f5['rooms']['length'];++_0x5b95f1)if(!_0x1fbc81['isString'](_0x26a1f5['rooms'][_0x5b95f1]))return'rooms:\x20string[]\x20expected';}if(null!=_0x26a1f5['except']&&_0x26a1f5['hasOwnProperty']('except')){if(!Array['isArray'](_0x26a1f5['except']))return'except:\x20array\x20expected';for(_0x5b95f1=0x0;_0x5b95f1<_0x26a1f5['except']['length'];++_0x5b95f1)if(!_0x1fbc81['isString'](_0x26a1f5['except'][_0x5b95f1]))return'except:\x20string[]\x20expected';}return null;},_0x5078f9['fromObject']=function(_0x5d1414){if(_0x5d1414 instanceof _0x2a91e5['PacketOptionsMessage'])return _0x5d1414;var _0x84a550=new _0x2a91e5['PacketOptionsMessage']();if(null!=_0x5d1414['flags']&&(_0x84a550['flags']=String(_0x5d1414['flags'])),_0x5d1414['rooms']){if(!Array['isArray'](_0x5d1414['rooms']))throw TypeError('.PacketOptionsMessage.rooms:\x20array\x20expected');_0x84a550['rooms']=[];for(var _0x80f6fb=0x0;_0x80f6fb<_0x5d1414['rooms']['length'];++_0x80f6fb)_0x84a550['rooms'][_0x80f6fb]=String(_0x5d1414['rooms'][_0x80f6fb]);}if(_0x5d1414['except']){if(!Array['isArray'](_0x5d1414['except']))throw TypeError('.PacketOptionsMessage.except:\x20array\x20expected');for(_0x84a550['except']=[],_0x80f6fb=0x0;_0x80f6fb<_0x5d1414['except']['length'];++_0x80f6fb)_0x84a550['except'][_0x80f6fb]=String(_0x5d1414['except'][_0x80f6fb]);}return _0x84a550;},_0x5078f9['toObject']=function(_0x55c35d,_0x356419){_0x356419||(_0x356419={});var _0x5c11d0={};if((_0x356419['arrays']||_0x356419['defaults'])&&(_0x5c11d0['rooms']=[],_0x5c11d0['except']=[]),_0x356419['defaults']&&(_0x5c11d0['flags']=''),null!=_0x55c35d['flags']&&_0x55c35d['hasOwnProperty']('flags')&&(_0x5c11d0['flags']=_0x55c35d['flags']),_0x55c35d['rooms']&&_0x55c35d['rooms']['length']){_0x5c11d0['rooms']=[];for(var _0xbf1f97=0x0;_0xbf1f97<_0x55c35d['rooms']['length'];++_0xbf1f97)_0x5c11d0['rooms'][_0xbf1f97]=_0x55c35d['rooms'][_0xbf1f97];}if(_0x55c35d['except']&&_0x55c35d['except']['length']){for(_0x5c11d0['except']=[],_0xbf1f97=0x0;_0xbf1f97<_0x55c35d['except']['length'];++_0xbf1f97)_0x5c11d0['except'][_0xbf1f97]=_0x55c35d['except'][_0xbf1f97];}return _0x5c11d0;},_0x5078f9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5078f9['getTypeUrl']=function(_0x590b99){return void 0x0===_0x590b99&&(_0x590b99='type.googleapis.com'),_0x590b99+'/PacketOptionsMessage';},_0x5078f9;}()),_0x2a91e5['StringBytesPacketDataMessage']=(function(){function _0x1e979e(_0x4b57e5){if(_0x4b57e5){for(var _0x36a503=Object['keys'](_0x4b57e5),_0x2dac5c=0x0;_0x2dac5c<_0x36a503['length'];++_0x2dac5c)null!=_0x4b57e5[_0x36a503[_0x2dac5c]]&&(this[_0x36a503[_0x2dac5c]]=_0x4b57e5[_0x36a503[_0x2dac5c]]);}}return _0x1e979e['prototype']['data']='',_0x1e979e['prototype']['data1']=_0x1fbc81['newBuffer']([]),_0x1e979e['create']=function(_0x5e2dde){return new _0x1e979e(_0x5e2dde);},_0x1e979e['encode']=function(_0x2c6c83,_0x5adcc4){return _0x5adcc4||(_0x5adcc4=_0x86a107['create']()),null!=_0x2c6c83['data']&&Object['hasOwnProperty']['call'](_0x2c6c83,'data')&&_0x5adcc4['uint32'](0xa)['string'](_0x2c6c83['data']),null!=_0x2c6c83['data1']&&Object['hasOwnProperty']['call'](_0x2c6c83,'data1')&&_0x5adcc4['uint32'](0x12)['bytes'](_0x2c6c83['data1']),_0x5adcc4;},_0x1e979e['encodeDelimited']=function(_0x4462bd,_0x36df36){return this['encode'](_0x4462bd,_0x36df36)['ldelim']();},_0x1e979e['decode']=function(_0x3d170b,_0xdbe1b4,_0xd938c2){_0x3d170b instanceof _0x33fc5a||(_0x3d170b=_0x33fc5a['create'](_0x3d170b));for(var _0x1955fe=void 0x0===_0xdbe1b4?_0x3d170b['len']:_0x3d170b['pos']+_0xdbe1b4,_0x4af338=new _0x2a91e5['StringBytesPacketDataMessage']();_0x3d170b['pos']<_0x1955fe;){var _0x35d5c2=_0x3d170b['uint32']();if(_0x35d5c2===_0xd938c2)break;switch(_0x35d5c2>>>0x3){case 0x1:_0x4af338['data']=_0x3d170b['string']();break;case 0x2:_0x4af338['data1']=_0x3d170b['bytes']();break;default:_0x3d170b['skipType'](0x7&_0x35d5c2);}}return _0x4af338;},_0x1e979e['decodeDelimited']=function(_0xb06449){return _0xb06449 instanceof _0x33fc5a||(_0xb06449=new _0x33fc5a(_0xb06449)),this['decode'](_0xb06449,_0xb06449['uint32']());},_0x1e979e['verify']=function(_0x3e49ee){return'object'!=typeof _0x3e49ee||null===_0x3e49ee?'object\x20expected':null!=_0x3e49ee['data']&&_0x3e49ee['hasOwnProperty']('data')&&!_0x1fbc81['isString'](_0x3e49ee['data'])?'data:\x20string\x20expected':null!=_0x3e49ee['data1']&&_0x3e49ee['hasOwnProperty']('data1')&&!(_0x3e49ee['data1']&&'number'==typeof _0x3e49ee['data1']['length']||_0x1fbc81['isString'](_0x3e49ee['data1']))?'data1:\x20buffer\x20expected':null;},_0x1e979e['fromObject']=function(_0x3a6775){if(_0x3a6775 instanceof _0x2a91e5['StringBytesPacketDataMessage'])return _0x3a6775;var _0x2f527c=new _0x2a91e5['StringBytesPacketDataMessage']();return null!=_0x3a6775['data']&&(_0x2f527c['data']=String(_0x3a6775['data'])),null!=_0x3a6775['data1']&&('string'==typeof _0x3a6775['data1']?_0x1fbc81['base64']['decode'](_0x3a6775['data1'],_0x2f527c['data1']=_0x1fbc81['newBuffer'](_0x1fbc81['base64']['length'](_0x3a6775['data1'])),0x0):_0x3a6775['data1']['length']>=0x0&&(_0x2f527c['data1']=_0x3a6775['data1'])),_0x2f527c;},_0x1e979e['toObject']=function(_0x27ec95,_0x1ea07e){_0x1ea07e||(_0x1ea07e={});var _0x4a4d18={};return _0x1ea07e['defaults']&&(_0x4a4d18['data']='',_0x1ea07e['bytes']===String?_0x4a4d18['data1']='':(_0x4a4d18['data1']=[],_0x1ea07e['bytes']!==Array&&(_0x4a4d18['data1']=_0x1fbc81['newBuffer'](_0x4a4d18['data1'])))),null!=_0x27ec95['data']&&_0x27ec95['hasOwnProperty']('data')&&(_0x4a4d18['data']=_0x27ec95['data']),null!=_0x27ec95['data1']&&_0x27ec95['hasOwnProperty']('data1')&&(_0x4a4d18['data1']=_0x1ea07e['bytes']===String?_0x1fbc81['base64']['encode'](_0x27ec95['data1'],0x0,_0x27ec95['data1']['length']):_0x1ea07e['bytes']===Array?Array['prototype']['slice']['call'](_0x27ec95['data1']):_0x27ec95['data1']),_0x4a4d18;},_0x1e979e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1e979e['getTypeUrl']=function(_0x411c65){return void 0x0===_0x411c65&&(_0x411c65='type.googleapis.com'),_0x411c65+'/StringBytesPacketDataMessage';},_0x1e979e;}()),_0x2a91e5['StringNumberPacketDataMessage']=(function(){function _0x533fdd(_0x29e1ce){if(_0x29e1ce){for(var _0x1772a9=Object['keys'](_0x29e1ce),_0x58f6bc=0x0;_0x58f6bc<_0x1772a9['length'];++_0x58f6bc)null!=_0x29e1ce[_0x1772a9[_0x58f6bc]]&&(this[_0x1772a9[_0x58f6bc]]=_0x29e1ce[_0x1772a9[_0x58f6bc]]);}}return _0x533fdd['prototype']['data']='',_0x533fdd['prototype']['data1']=0x0,_0x533fdd['create']=function(_0x27c4dc){return new _0x533fdd(_0x27c4dc);},_0x533fdd['encode']=function(_0x448446,_0x3744bd){return _0x3744bd||(_0x3744bd=_0x86a107['create']()),null!=_0x448446['data']&&Object['hasOwnProperty']['call'](_0x448446,'data')&&_0x3744bd['uint32'](0xa)['string'](_0x448446['data']),null!=_0x448446['data1']&&Object['hasOwnProperty']['call'](_0x448446,'data1')&&_0x3744bd['uint32'](0x10)['uint32'](_0x448446['data1']),_0x3744bd;},_0x533fdd['encodeDelimited']=function(_0x4e1bb8,_0x43f432){return this['encode'](_0x4e1bb8,_0x43f432)['ldelim']();},_0x533fdd['decode']=function(_0x5053a5,_0x5dcf7f,_0x50f4a9){_0x5053a5 instanceof _0x33fc5a||(_0x5053a5=_0x33fc5a['create'](_0x5053a5));for(var _0x15462f=void 0x0===_0x5dcf7f?_0x5053a5['len']:_0x5053a5['pos']+_0x5dcf7f,_0x26b133=new _0x2a91e5['StringNumberPacketDataMessage']();_0x5053a5['pos']<_0x15462f;){var _0x1759c1=_0x5053a5['uint32']();if(_0x1759c1===_0x50f4a9)break;switch(_0x1759c1>>>0x3){case 0x1:_0x26b133['data']=_0x5053a5['string']();break;case 0x2:_0x26b133['data1']=_0x5053a5['uint32']();break;default:_0x5053a5['skipType'](0x7&_0x1759c1);}}return _0x26b133;},_0x533fdd['decodeDelimited']=function(_0x5debe3){return _0x5debe3 instanceof _0x33fc5a||(_0x5debe3=new _0x33fc5a(_0x5debe3)),this['decode'](_0x5debe3,_0x5debe3['uint32']());},_0x533fdd['verify']=function(_0x2edecb){return'object'!=typeof _0x2edecb||null===_0x2edecb?'object\x20expected':null!=_0x2edecb['data']&&_0x2edecb['hasOwnProperty']('data')&&!_0x1fbc81['isString'](_0x2edecb['data'])?'data:\x20string\x20expected':null!=_0x2edecb['data1']&&_0x2edecb['hasOwnProperty']('data1')&&!_0x1fbc81['isInteger'](_0x2edecb['data1'])?'data1:\x20integer\x20expected':null;},_0x533fdd['fromObject']=function(_0x5a7372){if(_0x5a7372 instanceof _0x2a91e5['StringNumberPacketDataMessage'])return _0x5a7372;var _0x56a1e2=new _0x2a91e5['StringNumberPacketDataMessage']();return null!=_0x5a7372['data']&&(_0x56a1e2['data']=String(_0x5a7372['data'])),null!=_0x5a7372['data1']&&(_0x56a1e2['data1']=_0x5a7372['data1']>>>0x0),_0x56a1e2;},_0x533fdd['toObject']=function(_0x1715b0,_0x1b71ab){_0x1b71ab||(_0x1b71ab={});var _0x133917={};return _0x1b71ab['defaults']&&(_0x133917['data']='',_0x133917['data1']=0x0),null!=_0x1715b0['data']&&_0x1715b0['hasOwnProperty']('data')&&(_0x133917['data']=_0x1715b0['data']),null!=_0x1715b0['data1']&&_0x1715b0['hasOwnProperty']('data1')&&(_0x133917['data1']=_0x1715b0['data1']),_0x133917;},_0x533fdd['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x533fdd['getTypeUrl']=function(_0x3379f2){return void 0x0===_0x3379f2&&(_0x3379f2='type.googleapis.com'),_0x3379f2+'/StringNumberPacketDataMessage';},_0x533fdd;}()),_0x2a91e5['StringObjectPacketDataMessage']=(function(){function _0x590e67(_0x4f06f2){if(_0x4f06f2){for(var _0x179663=Object['keys'](_0x4f06f2),_0x13554f=0x0;_0x13554f<_0x179663['length'];++_0x13554f)null!=_0x4f06f2[_0x179663[_0x13554f]]&&(this[_0x179663[_0x13554f]]=_0x4f06f2[_0x179663[_0x13554f]]);}}return _0x590e67['prototype']['data']='',_0x590e67['prototype']['data1']='',_0x590e67['create']=function(_0x1faf75){return new _0x590e67(_0x1faf75);},_0x590e67['encode']=function(_0x310bdd,_0xa7fc6){return _0xa7fc6||(_0xa7fc6=_0x86a107['create']()),null!=_0x310bdd['data']&&Object['hasOwnProperty']['call'](_0x310bdd,'data')&&_0xa7fc6['uint32'](0xa)['string'](_0x310bdd['data']),null!=_0x310bdd['data1']&&Object['hasOwnProperty']['call'](_0x310bdd,'data1')&&_0xa7fc6['uint32'](0x12)['string'](_0x310bdd['data1']),_0xa7fc6;},_0x590e67['encodeDelimited']=function(_0x3dbd33,_0x559d48){return this['encode'](_0x3dbd33,_0x559d48)['ldelim']();},_0x590e67['decode']=function(_0x4dce77,_0x58d84,_0x343364){_0x4dce77 instanceof _0x33fc5a||(_0x4dce77=_0x33fc5a['create'](_0x4dce77));for(var _0x52ad77=void 0x0===_0x58d84?_0x4dce77['len']:_0x4dce77['pos']+_0x58d84,_0x5d8517=new _0x2a91e5['StringObjectPacketDataMessage']();_0x4dce77['pos']<_0x52ad77;){var _0x4bdb0a=_0x4dce77['uint32']();if(_0x4bdb0a===_0x343364)break;switch(_0x4bdb0a>>>0x3){case 0x1:_0x5d8517['data']=_0x4dce77['string']();break;case 0x2:_0x5d8517['data1']=_0x4dce77['string']();break;default:_0x4dce77['skipType'](0x7&_0x4bdb0a);}}return _0x5d8517;},_0x590e67['decodeDelimited']=function(_0x1a673c){return _0x1a673c instanceof _0x33fc5a||(_0x1a673c=new _0x33fc5a(_0x1a673c)),this['decode'](_0x1a673c,_0x1a673c['uint32']());},_0x590e67['verify']=function(_0x523c86){return'object'!=typeof _0x523c86||null===_0x523c86?'object\x20expected':null!=_0x523c86['data']&&_0x523c86['hasOwnProperty']('data')&&!_0x1fbc81['isString'](_0x523c86['data'])?'data:\x20string\x20expected':null!=_0x523c86['data1']&&_0x523c86['hasOwnProperty']('data1')&&!_0x1fbc81['isString'](_0x523c86['data1'])?'data1:\x20string\x20expected':null;},_0x590e67['fromObject']=function(_0x555a18){if(_0x555a18 instanceof _0x2a91e5['StringObjectPacketDataMessage'])return _0x555a18;var _0xd36b42=new _0x2a91e5['StringObjectPacketDataMessage']();return null!=_0x555a18['data']&&(_0xd36b42['data']=String(_0x555a18['data'])),null!=_0x555a18['data1']&&(_0xd36b42['data1']=String(_0x555a18['data1'])),_0xd36b42;},_0x590e67['toObject']=function(_0x345e8f,_0x57d738){_0x57d738||(_0x57d738={});var _0x2dc539={};return _0x57d738['defaults']&&(_0x2dc539['data']='',_0x2dc539['data1']=''),null!=_0x345e8f['data']&&_0x345e8f['hasOwnProperty']('data')&&(_0x2dc539['data']=_0x345e8f['data']),null!=_0x345e8f['data1']&&_0x345e8f['hasOwnProperty']('data1')&&(_0x2dc539['data1']=_0x345e8f['data1']),_0x2dc539;},_0x590e67['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x590e67['getTypeUrl']=function(_0x336ebe){return void 0x0===_0x336ebe&&(_0x336ebe='type.googleapis.com'),_0x336ebe+'/StringObjectPacketDataMessage';},_0x590e67;}()),_0x2a91e5['StringStringPacketDataMessage']=(function(){function _0x431991(_0x3d3fae){if(_0x3d3fae){for(var _0x5cd2b5=Object['keys'](_0x3d3fae),_0xedc6e4=0x0;_0xedc6e4<_0x5cd2b5['length'];++_0xedc6e4)null!=_0x3d3fae[_0x5cd2b5[_0xedc6e4]]&&(this[_0x5cd2b5[_0xedc6e4]]=_0x3d3fae[_0x5cd2b5[_0xedc6e4]]);}}return _0x431991['prototype']['data']='',_0x431991['prototype']['data1']='',_0x431991['create']=function(_0x30d802){return new _0x431991(_0x30d802);},_0x431991['encode']=function(_0x2aa7e2,_0x3a96eb){return _0x3a96eb||(_0x3a96eb=_0x86a107['create']()),null!=_0x2aa7e2['data']&&Object['hasOwnProperty']['call'](_0x2aa7e2,'data')&&_0x3a96eb['uint32'](0xa)['string'](_0x2aa7e2['data']),null!=_0x2aa7e2['data1']&&Object['hasOwnProperty']['call'](_0x2aa7e2,'data1')&&_0x3a96eb['uint32'](0x12)['string'](_0x2aa7e2['data1']),_0x3a96eb;},_0x431991['encodeDelimited']=function(_0xbd001b,_0x4edeb5){return this['encode'](_0xbd001b,_0x4edeb5)['ldelim']();},_0x431991['decode']=function(_0x393f00,_0x2cba5b,_0x53589c){_0x393f00 instanceof _0x33fc5a||(_0x393f00=_0x33fc5a['create'](_0x393f00));for(var _0x34a778=void 0x0===_0x2cba5b?_0x393f00['len']:_0x393f00['pos']+_0x2cba5b,_0x19714a=new _0x2a91e5['StringStringPacketDataMessage']();_0x393f00['pos']<_0x34a778;){var _0x5ee7df=_0x393f00['uint32']();if(_0x5ee7df===_0x53589c)break;switch(_0x5ee7df>>>0x3){case 0x1:_0x19714a['data']=_0x393f00['string']();break;case 0x2:_0x19714a['data1']=_0x393f00['string']();break;default:_0x393f00['skipType'](0x7&_0x5ee7df);}}return _0x19714a;},_0x431991['decodeDelimited']=function(_0x120037){return _0x120037 instanceof _0x33fc5a||(_0x120037=new _0x33fc5a(_0x120037)),this['decode'](_0x120037,_0x120037['uint32']());},_0x431991['verify']=function(_0xbd7108){return'object'!=typeof _0xbd7108||null===_0xbd7108?'object\x20expected':null!=_0xbd7108['data']&&_0xbd7108['hasOwnProperty']('data')&&!_0x1fbc81['isString'](_0xbd7108['data'])?'data:\x20string\x20expected':null!=_0xbd7108['data1']&&_0xbd7108['hasOwnProperty']('data1')&&!_0x1fbc81['isString'](_0xbd7108['data1'])?'data1:\x20string\x20expected':null;},_0x431991['fromObject']=function(_0x1387d3){if(_0x1387d3 instanceof _0x2a91e5['StringStringPacketDataMessage'])return _0x1387d3;var _0x48332d=new _0x2a91e5['StringStringPacketDataMessage']();return null!=_0x1387d3['data']&&(_0x48332d['data']=String(_0x1387d3['data'])),null!=_0x1387d3['data1']&&(_0x48332d['data1']=String(_0x1387d3['data1'])),_0x48332d;},_0x431991['toObject']=function(_0x34ed28,_0x4c6c83){_0x4c6c83||(_0x4c6c83={});var _0x171c43={};return _0x4c6c83['defaults']&&(_0x171c43['data']='',_0x171c43['data1']=''),null!=_0x34ed28['data']&&_0x34ed28['hasOwnProperty']('data')&&(_0x171c43['data']=_0x34ed28['data']),null!=_0x34ed28['data1']&&_0x34ed28['hasOwnProperty']('data1')&&(_0x171c43['data1']=_0x34ed28['data1']),_0x171c43;},_0x431991['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x431991['getTypeUrl']=function(_0x313987){return void 0x0===_0x313987&&(_0x313987='type.googleapis.com'),_0x313987+'/StringStringPacketDataMessage';},_0x431991;}()),_0x2a91e5;})());class MessagesCompressor{static['decode'](_0xa47567,_0x4a4b27){const _0x545069=_getType(_0x4a4b27)['decode']('undefined'==typeof window?_0xa47567:new Uint8Array(_0xa47567));return _0x4a4b27['fromJSON']({..._0x545069});}static['encode'](_0x3d7761){const _0xd5376=_getType(_0x3d7761['constructor']),_0x29e1e3=_0x3d7761['toJSON'](),_0x563015=_0xd5376['verify'](_0x29e1e3);if(_0x563015)throw Error(_0x563015);return _0xd5376['encode'](_0xd5376['create'](_0x29e1e3))['finish']();}}function _getType(_0x317317){return messages$1[_0x317317['DESCRIPTOR_NAME']];}class GetManyUsersMessage extends Message{['ids'];static ['TYPE']='22';static ['READABLE_TYPE_NAME']='getManyUsers';static ['DESCRIPTOR_NAME']='GetManyUsersMessage';static ['DESCRIPTOR']={'fields':{'ids':{'id':0x1,'type':'string','rule':'repeated'}}};constructor(_0xa433d9){super(),this['ids']=_0xa433d9;}['toJSON'](){return{'ids':this['ids']};}static['fromJSON'](_0x5356e9){return new GetManyUsersMessage(_0x5356e9['ids']);}}class GetManyUsersResponse extends Message{['users'];static ['DESCRIPTOR_NAME']='GetManyUsersResponse';static ['DESCRIPTOR']={'fields':{'users':{'rule':'repeated','type':'UserDescriptor','id':0x1}}};constructor(_0x1812f9){super(),this['users']=_0x1812f9;}['toJSON'](){return{'users':this['users']['map'](_userToJson)};}static['fromJSON'](_0x4c35aa){return new GetManyUsersResponse(_0x4c35aa['users']['map'](_userFromJson));}}function _userToJson(_0x146d38){return{'attributes':Object['keys'](_0x146d38)['map'](_0x5edf56=>({'key':_0x5edf56,'value':JSON['stringify'](_0x146d38[_0x5edf56])}))};}function _userFromJson(_0x33934a){return _0x33934a['attributes']['reduce']((_0x3623fe,_0x3de73b)=>(_0x3623fe[_0x3de73b['key']]=_0x3de73b['value']?JSON['parse'](_0x3de73b['value']):null,_0x3623fe),{});}class User{static ['_SERVICE']=0x2;constructor(_0x383a83={}){this['_attributes']=new Map();for(const _0x4a3f85 of Object['keys'](_0x383a83))'id'!==_0x4a3f85?(this['_attributes']['set'](_0x4a3f85,_0x383a83[_0x4a3f85]),Object['defineProperty'](this,_0x4a3f85,{'enumerable':!0x0,'configurable':!0x1,'get':()=>this['_attributes']['get'](_0x4a3f85)})):this['id']=_0x383a83['id'];}static['fromData'](_0xcb2f57){return new User(_0xcb2f57);}static async['get'](_0x44630e,_0x23e5bb){const _0x359cdb=new GetUserMessage(_0x23e5bb);try{const _0x1212d2=await _0x44630e['_sendRequest'](User['_SERVICE'],GetUserMessage['TYPE'],MessagesCompressor['encode'](_0x359cdb)),_0x3e9646=MessagesCompressor['decode'](_0x1212d2,GetUserResponse);return new User(_0x3e9646['attributes']);}catch(_0x362db6){return new User({'id':_0x23e5bb});}}static async['getMany'](_0xfd1309,_0x3f2ac3){const _0xeca031=new GetManyUsersMessage(_0x3f2ac3);try{const _0x4c3df4=await _0xfd1309['_sendRequest'](User['_SERVICE'],GetManyUsersMessage['TYPE'],MessagesCompressor['encode'](_0xeca031));return MessagesCompressor['decode'](_0x4c3df4,GetManyUsersResponse)['users']['map'](_0x3b2e5f=>new User(_0x3b2e5f));}catch(_0x501d2b){return _0x3f2ac3['map'](_0x392688=>new User({'id':_0x392688}));}}}class ChannelMessage extends Message{['type'];['socketId'];['data'];static ['DESCRIPTOR_NAME']='ChannelMessage';static ['DESCRIPTOR']={'fields':{'type':{'type':'uint32','id':0x1},'socketId':{'type':'string','id':0x2},'data':{'type':'bytes','id':0x3}}};constructor(_0x7c75c8,_0x1ea02a,_0x5cc436){super(),this['type']=_0x7c75c8,this['socketId']=_0x1ea02a,this['data']=_0x5cc436;}['toJSON'](){return{'type':this['type'],'socketId':this['socketId'],'data':this['data']};}static['fromJSON'](_0x16a912){return new ChannelMessage(_0x16a912['type'],_0x16a912['socketId'],_0x16a912['data']);}}class Channel extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_channelName'];['_wsGateway'];['_socket'];constructor(_0x18cc95,_0x38e927,_0x3db5e1){super(),this['_channelName']=_0x18cc95,this['_wsGateway']=_0x38e927,this['_socket']=_0x3db5e1,this['_subscribeToChannel']();}['remove'](){this['_socket']['off'](this['_channelName']);}['getEventName'](_0x1c0958,_0x4b0aa1=!0x1){let _0xbd7bb7='';return _0x4b0aa1&&(_0xbd7bb7+='all:'),_0xbd7bb7+='event',_0x1c0958&&(_0xbd7bb7+=':'+_0x1c0958),_0xbd7bb7;}['_subscribeToChannel'](){this['_socket']['on'](this['_channelName'],_0x1cd537=>{const _0x42812c=MessagesCompressor['decode'](_0x1cd537,ChannelMessage);this['fire'](this['getEventName'](_0x42812c['type'],!0x0),_0x42812c['data'],_0x42812c['socketId']),_0x42812c['socketId']!==this['_wsGateway']['socketId']&&this['fire'](this['getEventName'](_0x42812c['type']),_0x42812c['data'],_0x42812c['socketId']);});}}class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0x33237a,_0x158757,_0x1031d5=null,_0x4de579={}){super('cloud-services-internal-error:\x20'+_0x33237a),this['context']=_0x158757,this['code']=_0x1031d5,this['data']=_0x4de579,this['name']='CKEditorError';}static['fromPublicError'](_0x1d2696){return new CKEditorCloudServicesError(function(_0xc8d0be){let _0x8048e3='cloud-services-error:\x20'+_0xc8d0be['message'];return _0xc8d0be['data']&&(_0x8048e3+='\x0aError\x20data:\x20'+JSON['stringify'](_0xc8d0be['data'])),_0xc8d0be['explanation']&&(_0x8048e3+='\x0aExplanation:\x20'+_0xc8d0be['explanation']),_0xc8d0be['action']&&(_0x8048e3+='\x0aAction:\x20'+_0xc8d0be['action']),_0xc8d0be['traceId']&&(_0x8048e3+='\x0aTraceId:\x20'+_0xc8d0be['traceId']),_0xc8d0be['code']&&(_0x8048e3+='\x0aCode:\x20'+_0xc8d0be['code']),_0x8048e3;}(_0x1d2696),_0x1d2696);}}class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x12333f,_0x140b17){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x12333f,this['code']=_0x140b17['code'],this['traceId']=_0x140b17['traceId'],this['data']=_0x140b17['data'];}static['fromPublicError'](_0x54caf0){return new CKEditorCloudServicesServerError(function(_0x541528){let _0x3d3e17='cloud-services-server-error:\x20'+_0x541528['message'];return _0x541528['explanation']&&(_0x3d3e17+='\x0aExplanation:\x20'+_0x541528['explanation']),_0x541528['action']&&(_0x3d3e17+='\x0aAction:\x20'+_0x541528['action']),_0x541528['traceId']&&(_0x3d3e17+='\x0aTraceId:\x20'+_0x541528['traceId']),_0x541528['code']&&(_0x3d3e17+='\x0aCode:\x20'+_0x541528['code']),_0x3d3e17;}(_0x54caf0),_0x54caf0);}}class PacketOptionsMessage extends Message{['flags'];['rooms'];['except'];static ['TYPE']=0xb;static ['DESCRIPTOR_NAME']='PacketOptionsMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'flags':{'type':'string','id':0x1},'rooms':{'type':'string','id':0x2,'rule':'repeated'},'except':{'type':'string','id':0x3,'rule':'repeated'}}}))());constructor(_0x1d70b4,_0x577373=[],_0x5bf223=[]){super(),this['flags']=_0x1d70b4,this['rooms']=_0x577373,this['except']=_0x5bf223;}['toJSON'](){return{'flags':this['flags']?JSON['stringify'](this['flags']):void 0x0,'rooms':this['rooms']?.['length']?this['rooms']:void 0x0,'except':this['except']?.['length']?this['except']:void 0x0};}static['fromJSON'](_0x11a51e){return new PacketOptionsMessage(_0x11a51e['flags']&&JSON['parse'](_0x11a51e['flags']),_0x11a51e['rooms'],_0x11a51e['except']);}}const IS_NODE=/* #__PURE__ -- @preserve */
((()=>!('undefined'==typeof process||!process['versions']?.['node']))()),MessageDataTypes_BUFFER=0x1,MessageDataTypes_STRING=0x2,MessageDataTypes_NUMBER=0x3,MessageDataTypes_OBJECT=0x4;class ParserUtils{static['getPacketType'](..._0x32923d){let _0x23408c=0x0;for(let _0x26ee74=0x0;_0x26ee74<_0x32923d['length'];_0x26ee74++)_0x23408c+=_0x32923d[_0x26ee74]*Math['pow'](0xa,_0x32923d['length']-_0x26ee74-0x1);return _0x23408c;}static['getType'](_0x250453){if(ParserUtils['isBuffer'](_0x250453))return MessageDataTypes_BUFFER;const _0xe08b22=typeof _0x250453;return'string'===_0xe08b22?MessageDataTypes_STRING:'number'===_0xe08b22?MessageDataTypes_NUMBER:MessageDataTypes_OBJECT;}static['isBuffer'](_0x5861f3){return IS_NODE&&Buffer['isBuffer'](_0x5861f3)||_0x5861f3 instanceof ArrayBuffer||_0x5861f3 instanceof Uint8Array||this['_isBufferView'](_0x5861f3);}static['_isBufferView'](_0x5e5b6f){return'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x5e5b6f):_0x5e5b6f['buffer']instanceof ArrayBuffer;}}class PackageDataMessage extends Message{['data'];['data1'];static['create'](_0x4b33a4,_0x3762bd){throw new TypeError('Must\x20be\x20implemented\x20in\x20a\x20child\x20class!');}}class NumberBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='NumberBytesPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(_0x1e4b44,_0x47068f){super(),this['data']=_0x1e4b44,this['data1']=_0x47068f;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x7dc0f1){return new NumberBytesPacketDataMessage(_0x7dc0f1['data'],_0x7dc0f1['data1']);}static['create'](_0x24d53,_0x138295){return new NumberBytesPacketDataMessage(_0x24d53,_0x138295);}}class StringBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='StringBytesPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(_0xefd70,_0x11c1e4){super(),this['data']=_0xefd70,this['data1']=_0x11c1e4;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0xa834af){return new StringBytesPacketDataMessage(_0xa834af['data'],_0xa834af['data1']);}static['create'](_0x13bc93,_0x4b3d84){return new StringBytesPacketDataMessage(_0x13bc93,_0x4b3d84);}}class BytesBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_BUFFER,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='BytesBytesPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'bytes','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(_0xbed18c,_0x57794d){super(),this['data']=_0xbed18c,this['data1']=_0x57794d;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x46c929){return new BytesBytesPacketDataMessage(_0x46c929['data'],_0x46c929['data1']);}static['create'](_0x26abf6,_0x195b8c){return new BytesBytesPacketDataMessage(_0x26abf6,_0x195b8c);}}class StringObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_OBJECT))());static ['DESCRIPTOR_NAME']='StringObjectPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0x262b9d,_0xcd6de7){super(),this['data']=_0x262b9d,this['data1']=_0xcd6de7;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x306b77){return new StringObjectPacketDataMessage(_0x306b77['data'],_0x306b77['data1']&&JSON['parse'](_0x306b77['data1']));}static['create'](_0x5b203e,_0xbf349c){return new StringObjectPacketDataMessage(_0x5b203e,_0xbf349c);}}class NumberObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_OBJECT))());static ['DESCRIPTOR_NAME']='NumberObjectPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0x2da06d,_0x17b2ef){super(),this['data']=_0x2da06d,this['data1']=_0x17b2ef;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x2c9f47){return new NumberObjectPacketDataMessage(_0x2c9f47['data'],_0x2c9f47['data1']&&JSON['parse'](_0x2c9f47['data1']));}static['create'](_0xf39177,_0x44276d){return new NumberObjectPacketDataMessage(_0xf39177,_0x44276d);}}class ObjectObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_OBJECT,MessageDataTypes_OBJECT))());static ['DESCRIPTOR_NAME']='ObjectObjectPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0x56c270,_0x3b40e6){super(),this['data']=_0x56c270,this['data1']=_0x3b40e6;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x23928d){return new ObjectObjectPacketDataMessage(_0x23928d['data']&&JSON['parse'](_0x23928d['data']),_0x23928d['data1']&&JSON['parse'](_0x23928d['data1']));}static['create'](_0x2d7ee5,_0x4ed46d){return new ObjectObjectPacketDataMessage(_0x2d7ee5,_0x4ed46d);}}class ObjectBufferPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_OBJECT,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='ObjectBufferPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(_0x29f374,_0x2296e8){super(),this['data']=_0x29f374,this['data1']=_0x2296e8;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']};}static['fromJSON'](_0x1024b7){return new ObjectBufferPacketDataMessage(_0x1024b7['data']&&JSON['parse'](_0x1024b7['data']),_0x1024b7['data1']);}static['create'](_0x41c64d,_0x2ed596){return new ObjectBufferPacketDataMessage(_0x41c64d,_0x2ed596);}}class StringStringPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_STRING))());static ['DESCRIPTOR_NAME']='StringStringPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0x4a1ea7,_0x3d7347){super(),this['data']=_0x4a1ea7,this['data1']=_0x3d7347;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x54a330){return new StringStringPacketDataMessage(_0x54a330['data'],_0x54a330['data1']);}static['create'](_0xd3803b,_0x52660e){return new StringStringPacketDataMessage(_0xd3803b,_0x52660e);}}class StringNumberPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_NUMBER))());static ['DESCRIPTOR_NAME']='StringNumberPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'uint32','id':0x2}}}))());constructor(_0x56bf27,_0x511025){super(),this['data']=_0x56bf27,this['data1']=_0x511025;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x733535){return new StringNumberPacketDataMessage(_0x733535['data'],_0x733535['data1']);}static['create'](_0x3439a2,_0x4ec9f9){return new StringNumberPacketDataMessage(_0x3439a2,_0x4ec9f9);}}class NumberNumberPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_NUMBER))());static ['DESCRIPTOR_NAME']='NumberNumberPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'uint32','id':0x2}}};constructor(_0x11d327,_0x3ea741){super(),this['data']=_0x11d327,this['data1']=_0x3ea741;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x1b9dbf){return new NumberNumberPacketDataMessage(_0x1b9dbf['data'],_0x1b9dbf['data1']);}static['create'](_0x25e25e,_0x1b0ed0){return new NumberNumberPacketDataMessage(_0x25e25e,_0x1b0ed0);}}class NumberStringPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_STRING))());static ['DESCRIPTOR_NAME']='NumberStringPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0xd9bca8,_0x68a04){super(),this['data']=_0xd9bca8,this['data1']=_0x68a04;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x259d1d){return new NumberStringPacketDataMessage(_0x259d1d['data'],_0x259d1d['data1']);}static['create'](_0x248ee7,_0x15b634){return new NumberStringPacketDataMessage(_0x248ee7,_0x15b634);}}const PACKET_DATA_MESSAGES=/* #__PURE__ -- @preserve */
((()=>[NumberBytesPacketDataMessage,StringBytesPacketDataMessage,BytesBytesPacketDataMessage,StringObjectPacketDataMessage,NumberObjectPacketDataMessage,ObjectObjectPacketDataMessage,ObjectBufferPacketDataMessage,StringStringPacketDataMessage,StringNumberPacketDataMessage,NumberNumberPacketDataMessage,NumberStringPacketDataMessage]['reduce']((_0x5bf658,_0x1e99a9)=>(_0x5bf658[_0x1e99a9['TYPE']]=_0x1e99a9,_0x5bf658),{}))());class PacketMessage extends Message{['type'];['data'];['id'];['nsp'];['options'];static ['TYPE']=0xa;static ['DESCRIPTOR_NAME']='PacketMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'type':{'type':'uint32','id':0x1},'id':{'type':'uint32','id':0x2},'nsp':{'type':'string','id':0x3},'data':{'type':'bytes','id':0x4},'options':{'type':'bytes','id':0x5}}}))());constructor(_0xd40a5d,_0x27a6d2,_0x48307b,_0x2ae763='/',_0xbeb9ad){super(),this['type']=_0xd40a5d,this['data']=_0x27a6d2,this['id']=_0x48307b,this['nsp']=_0x2ae763,this['options']=_0xbeb9ad??new PacketOptionsMessage();}get['packetData'](){return void 0x0===this['data']['data']&&void 0x0===this['data']['data1']?[]:this['data']['data']&&void 0x0===this['data']['data1']?[this['data']['data']]:[this['data']['data'],this['data']['data1']];}['toJSON'](){const _0x163a5b=MessagesCompressor['encode'](this['options']),_0x14b4b8=MessagesCompressor['encode'](this['data']);return{'type':this['type']+0xa*this['data']['constructor']['TYPE'],'id':this['id'],'nsp':'/'===this['nsp']?void 0x0:this['nsp'],'data':_0x14b4b8,'options':_0x163a5b};}static['fromJSON'](_0x5354bd){const _0x311c0e=Math['floor'](_0x5354bd['type']/0xa);return new PacketMessage(_0x5354bd['type']-0xa*_0x311c0e,MessagesCompressor['decode'](_0x5354bd['data'],PACKET_DATA_MESSAGES[_0x311c0e]),_0x5354bd['id'],_0x5354bd['nsp'],_0x5354bd['options']?MessagesCompressor['decode'](_0x5354bd['options'],PacketOptionsMessage):new PacketOptionsMessage());}static['create'](_0x1e85bc,_0xcda535={}){const _0x583a78=ParserUtils['getPacketType'](ParserUtils['getType'](_0x1e85bc['data'][0x0]),ParserUtils['getType'](_0x1e85bc['data'][0x1]??_0x1e85bc['data'][0x0]));return new PacketMessage(_0x1e85bc['type'],PACKET_DATA_MESSAGES[_0x583a78]['create'](_0x1e85bc['data'][0x0],_0x1e85bc['data'][0x1]),_0x1e85bc['id'],_0x1e85bc['nsp'],new PacketOptionsMessage(_0xcda535['flags'],_0xcda535['rooms'],_0xcda535['except']));}}class PacketParser{['encode'](_0x2123ec,_0x19a40c,_0x2aa291,_0x1c2649='/',_0x54789d={}){if(_0x19a40c['length']>0x2)throw new Error('PacketParser\x20supports\x20only\x202\x20elements\x20in\x20data');const _0x53203b={'type':_0x2123ec,'data':_0x19a40c,'id':_0x2aa291,'nsp':_0x1c2649};return MessagesCompressor['encode'](PacketMessage['create'](_0x53203b,_0x54789d));}['decode'](_0x48946a){const _0x1315e6=MessagesCompressor['decode'](_0x48946a,PacketMessage);return{'packet':{'id':_0x1315e6['id'],'type':_0x1315e6['type'],'data':_0x1315e6['packetData'],'nsp':_0x1315e6['nsp']},'options':{'flags':_0x1315e6['options']['flags'],'rooms':_0x1315e6['options']['rooms'],'except':_0x1315e6['options']['except']}};}}const ENCODED_TYPES=/* #__PURE__ -- @preserve */
((()=>[PacketType['EVENT'],PacketType['ACK'],PacketType['BINARY_ACK'],PacketType['BINARY_EVENT']])());class Encoder extends Encoder$1{['_packetParser'];constructor(_0x2d1625){super(),this['_packetParser']=_0x2d1625??new PacketParser();}['encode'](_0x182773){if(ENCODED_TYPES['includes'](_0x182773['type']))try{return[this['_packetParser']['encode'](_0x182773['type'],_0x182773['data'],_0x182773['id'],_0x182773['nsp'])];}catch(_0x33e411){console['error']('Can\x20not\x20properly\x20serialize\x20or\x20deserialize\x20messages.\x20Check\x20the\x20original\x20error.',{'originalError':{'message':_0x33e411['message']}});}return super['encode'](_0x182773);}}class Decoder extends Decoder$1{['_packetParser'];constructor(_0x1d927f){super(),this['_packetParser']=_0x1d927f??new PacketParser();}['add'](_0x30f1c6){if(!ParserUtils['isBuffer'](_0x30f1c6))return super['add'](_0x30f1c6);let _0x4c0434;try{_0x4c0434=this['_packetParser']['decode'](_0x30f1c6)['packet'];}catch(_0x3e1c01){return super['add'](_0x30f1c6);}super['emitReserved']('decoded',_0x4c0434);}}class WebSocketRequest{['_context'];['_deferredPromise']=/* #__PURE__ -- @preserve */
_deferPromise();['timeout'];constructor(_0x5448f0,_0x1e0d55){this['_context']=_0x5448f0,this['timeout']=setTimeout(()=>this['error'](new CKEditorCloudServicesError('Request\x20timeout.',this['_context'])),_0x1e0d55);}get['promise'](){return this['_deferredPromise']['promise'];}['response'](_0x42105e){this['_deferredPromise']['resolve'](_0x42105e);}['error'](_0x10365f){this['_deferredPromise']['reject'](_0x10365f);}}class WebSocketGatewayRequestsManager{['_context'];['_requests']=new Set();constructor(_0x5348f8){this['_context']=_0x5348f8;}async['send'](_0x723f4b,_0x469f82=0xafc8){const _0x4a5d77=this['_createRequest'](_0x469f82);try{return _0x723f4b(_0x4a5d77),await _0x4a5d77['promise'];}finally{this['_finishRequest'](_0x4a5d77);}}['errorAll'](_0x368049){for(const _0x547b89 of this['_requests'])_0x547b89['error'](_0x368049);}['waitForAllRequests'](_0x26a61e=0xafc8){return this['_waitForRequests'](_0x26a61e);}['_createRequest'](_0x106c2d){const _0x4854f3=new WebSocketRequest(this['_context'],_0x106c2d);return this['_requests']['add'](_0x4854f3),_0x4854f3;}['_finishRequest'](_0x4c0074){this['_requests']['delete'](_0x4c0074),clearTimeout(_0x4c0074['timeout']);}async['_waitForRequests'](_0x18e3a3=0x1388,_0x3ec2af=0x0){return!this['_requests']['size']||_0x3ec2af>=_0x18e3a3/0x1f4?Promise['resolve']():(await new Promise(_0x111924=>{setTimeout(_0x111924,0x1f4);}),this['_waitForRequests'](_0x18e3a3,_0x3ec2af++));}}function _deferPromise(){let _0xd90f2c,_0x30615e;const _0x5f0199=new Promise((_0x4ff2d8,_0x35d434)=>{_0xd90f2c=_0x4ff2d8,_0x30615e=_0x35d434;});return{'resolve':_0xd90f2c,'reject':_0x30615e,'promise':_0x5f0199};}const WEB_SOCKET_GATEWAY_STATES={'DISCONNECTED':'disconnected','CONNECTING':'connecting','CONNECTED':'connected'};let WebSocketGateway$1=class e extends/* #__PURE__ -- @preserve */
_0x497a76(){['_requestsManager'];['_url'];['_socket'];['_socketAuth'];['_channels'];['_connectionAttempt']=0x0;['_token'];['_options'];['_connectionProvider'];['_userFactory'];static ['STATE_DISCONNECTED']=/* #__PURE__ -- @preserve */
((()=>WEB_SOCKET_GATEWAY_STATES['DISCONNECTED'])());static ['STATE_CONNECTING']=/* #__PURE__ -- @preserve */
((()=>WEB_SOCKET_GATEWAY_STATES['CONNECTING'])());static ['STATE_CONNECTED']=/* #__PURE__ -- @preserve */
((()=>WEB_SOCKET_GATEWAY_STATES['CONNECTED'])());static ['_CHANGE_STATE_EVENT_PRIORITY']=/* #__PURE__ -- @preserve */
((()=>priorities$1['get']('highest')+0xf423f)());constructor(_0x1c0c13,_0x360de2,_0x324b85,_0x156d03,_0x113b08){if(super(),this['_token']=_0x360de2,this['_options']=_0x324b85??{},this['_connectionProvider']=_0x156d03??lookup,this['_userFactory']=_0x113b08??User['get'],this['_requestsManager']=new WebSocketGatewayRequestsManager(this),this['_channels']=new Map(),!_0x1c0c13)throw new TypeError('Api\x20address\x20must\x20be\x20provided.');if(!this['_token'])throw new TypeError('Token\x20must\x20be\x20provided.');this['_options']['requestTimeout']||(this['_options']['requestTimeout']=0x4e20),this['_url']=urlParseExports(_0x1c0c13['replace'](/^(?!(?:\w+:)?\/\/)/,'https://')),this['set']('state',WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']),this['set']('socketId',void 0x0),this['set']('me',void 0x0),this['on']('change:state',async(_0x4d4668,_0x2915a8,_0x557788)=>{if(this['_debugEvent']('ws-gw:change:state',_0x557788),_0x557788!==e['STATE_CONNECTED']){if(_0x557788===e['STATE_DISCONNECTED'])return this['_requestsManager']['errorAll'](new CKEditorCloudServicesError('Not\x20connected.',this));}else try{this['me']=await this['_userFactory']['call'](User,this,this['_socketAuth']?.['userId']);}catch(_0x91b538){}},{'priority':e['_CHANGE_STATE_EVENT_PRIORITY']}),this['on']('error',(_0x4563eb,_0x51e67d)=>{this['_options']['onError']?this['_options']['onError'](_0x51e67d):console['error'](_0x51e67d);});}get['sessionId'](){return this['socketId'];}['waitForAllRequests'](_0x1c0a54){return this['_requestsManager']['waitForAllRequests'](_0x1c0a54);}['disconnect'](){this['state']!==WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&(this['_socket']?.['disconnect'](),this['_socket']=void 0x0,this['state']=WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']);}async['reconnect'](){this['_socket']||this['state']!==WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']||(await this['_token']['refreshToken'](),await this['_connect']());}static async['connect'](_0x2fdd3a,_0x467b77='local.cs.dev:443/ws-v2',_0x595819={},_0x16e178=lookup,_0x576059=User['get']){const _0x5a7f24=new e(_0x467b77,_0x2fdd3a,_0x595819,_0x16e178,_0x576059);return await _0x5a7f24['_connect'](),_0x5a7f24;}['_sendRequest'](_0x1cb9fa,_0x560a2a,_0x163fe0){if(!_0x1cb9fa)throw new CKEditorCloudServicesError('`serviceName`\x20must\x20be\x20provided.',this);if(this['state']!==e['STATE_CONNECTED'])throw new CKEditorCloudServicesError('Not\x20connected.',this);if(!this['_socketAuth']||!this['_socketAuth']['isAuthenticated'])throw new CKEditorCloudServicesError('Not\x20authenticated.',this);const _0x33de6f=new ArrayBuffer(_0x163fe0['length']+0x2),_0x14e3e4=new Uint8Array(_0x33de6f);return _0x14e3e4[0x0]=_0x1cb9fa,_0x14e3e4[0x1]=parseInt(_0x560a2a),_0x14e3e4['set'](_0x163fe0,0x2),this['_emit'](0x1,_0x14e3e4);}['_getChannel'](_0x3822ed,_0xce143d){const _0x26bcc7=''+_0x3822ed+_0xce143d;return!this['_channels']['has'](_0x26bcc7)&&this['_socket']&&this['_channels']['set'](_0x26bcc7,new Channel(_0x26bcc7,this,this['_socket'])),this['_channels']['get'](_0x26bcc7);}['_connect'](){return new Promise((_0x1c9f1b,_0x41928b)=>{const _0x49262d=this['_setupSocket']();!this['socketId']&&_0x49262d['io']['on']('reconnect_error',()=>{this['_debugEvent']('reconnect_error'),this['_reconnectionAttemptError'](_0x41928b);}),_0x49262d['once']('connect',async()=>{this['_debugEvent']('once-connect');try{await this['_onConnect'](),_0x1c9f1b();}catch(_0x11f5c3){_0x41928b(_0x11f5c3);}}),_0x49262d['connect']();});}['_getPortByProtocol'](_0x2aa418){return['http:','ws:']['includes'](_0x2aa418)?0x50:0x1bb;}['_setupSocket'](){if(this['_socket'])return this['_socket'];const _0x31dcee=this['_url']['port']||this['_getPortByProtocol'](this['_url']['protocol']),_0x576626=(this['_url']['protocol']||'https:')+'//'+this['_url']['hostname']+':'+_0x31dcee,_0x1de0e6=this['_url']['pathname']['match'](/^\/.*\/ws/)?this['_url']['pathname']['split']('/ws')[0x0]:'',_0x271950=this['_connectionProvider'](_0x576626,{'parser':{'Encoder':Encoder,'Decoder':Decoder},'path':_0x1de0e6+'/ws-v2/ws','transports':['websocket'],'timeout':void 0x0!==this['_options']['timeout']?this['_options']['timeout']:0x1388,'reconnection':void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect'],'reconnectionDelay':0x3e8,'reconnectionDelayMax':0x1388,'rejectUnauthorized':void 0x0===this['_options']['rejectUnauthorized']||this['_options']['rejectUnauthorized'],'query':{'version':'53.0.1'},'agent':this['_options']['agent']??!0x1,'closeOnBeforeunload':!0x1});return this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],_0x271950['on']('connect',()=>{this['_debugEvent']('connect'),this['socketId']=_0x271950['id'];}),_0x271950['on']('connect_error',_0x173b3a=>{this['_debugEvent']('connect_error',_0x173b3a);}),_0x271950['on']('disconnect',()=>{this['_debugEvent']('disconnect'),this['_onDisconnect']();}),_0x271950['io']['on']('reconnect',async()=>{this['_debugEvent']('reconnect'),await this['_onReconnect']();}),_0x271950['io']['on']('reconnect_attempt',_0x5d2b44=>{this['_debugEvent']('reconnect_attempt',_0x5d2b44),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],this['_connectionAttempt']=_0x5d2b44;}),_0x271950['on']('unauthorized',_0xc171f4=>{this['_debugEvent']('unauthorized'),this['_onUnauthorized'](_0xc171f4);}),_0x271950['on']('authenticationRequest',async _0x3c8dee=>{this['_debugEvent']('authenticationRequest',_0x3c8dee['attempt']),await this['_onReconnect']();}),this['_socket']=_0x271950,_0x271950;}['_emit'](_0x2be522,_0x47967d){const _0x5712d3=this['_socket'];return this['_requestsManager']['send'](_0x192e9a=>{_0x5712d3['emit'](_0x2be522,_0x47967d,(_0x67deaf,_0x4a7013)=>{if(_0x67deaf)return _0x192e9a['error'](CKEditorCloudServicesServerError['fromPublicError'](_0x67deaf));_0x192e9a['response'](_0x4a7013);});},this['_options']['requestTimeout']);}['_addAuthData'](_0x52d6d6,_0x3c65ae){this['_socketAuth']={'environmentId':_0x52d6d6,'userId':_0x3c65ae,'isAuthenticated':!0x0};}['_removeAuthData'](){this['_socketAuth']=void 0x0;}async['_onConnect'](){await this['_authenticate'](this['_token']['value']),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'];const _0x52a1fb=async(_0x209e81,_0x26e7b2,_0x3c7f36)=>{this['_debugEvent']('token:value:change');try{await this['_authenticate'](_0x3c7f36);}catch(_0x2bb6f2){}};this['_token']['on']('change:value',_0x52a1fb),this['_socket']['io']['off']('reconnect_error'),this['on']('disconnect',()=>{this['_token']['off']('change:value',_0x52a1fb);});}async['_onReconnect'](){await this['_token']['refreshToken'](),await this['_onConnect']();}['_onDisconnect'](){this['state']=WEB_SOCKET_GATEWAY_STATES['DISCONNECTED'],this['_connectionAttempt']=0x0,this['fire']('disconnect');for(const _0x49aa10 of this['_channels']['values']())_0x49aa10['remove']();this['_channels']['clear'](),void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect']||(this['_socket']=void 0x0);}['_debugEvent'](_0x57020f,_0x321c18){if(!this['_isDebugModeEnabled']())return;const _0x416227=void 0x0!==_0x321c18?',\x20data:\x20'+_0x321c18:'';console['info'](new Date()['toLocaleString']()+'\x20'+_0x57020f+_0x416227);}['_reconnectionAttemptError'](_0x1af3db){this['_connectionAttempt']>=0x2&&(this['disconnect'](),_0x1af3db(CKEditorCloudServicesError['fromPublicError']({'message':'The\x20number\x20of\x20initial\x20connection\x20attempts\x20exceeded.','explanation':'Three\x20initial\x20connection\x20attempts\x20failed.\x20It\x20can\x20be\x20caused\x20by\x20a\x20slow,\x20unstable,\x20missing\x20or\x20blocked\x20Internet\x20connection.','action':'Please\x20verify\x20the\x20stability\x20of\x20your\x20Internet\x20connection\x20and\x20ensure\x20that\x20no\x20antivirus\x20or\x20firewall\x20software\x20blocks\x20the\x20Web\x20Socket\x20protocol\x20connections.'})));}['_onUnauthorized']({error:_0xc8c838}){this['_removeAuthData'](),this['fire']('error',CKEditorCloudServicesServerError['fromPublicError'](_0xc8c838));}async['_authenticate'](_0x545ccc){try{this['_debugEvent']('authenticate:start');const _0x318a9f=await this['_emit'](0x2,{'token':_0x545ccc});this['_debugEvent']('authenticate:success','envId:\x20'+_0x318a9f['environmentId']+',\x20userId:\x20'+_0x318a9f['userId']),this['_addAuthData'](_0x318a9f['environmentId'],_0x318a9f['userId']);}catch(_0x79a7df){throw this['_debugEvent']('authenticate:error',_0x79a7df['message']),this['_removeAuthData'](),_0x79a7df;}}['_isDebugModeEnabled'](){return!!_0x56352e['window']['localStorage']&&'true'===(_0x56352e['window']['localStorage']['getItem']('csClientDebugMode')??'false')['toLowerCase']();}};class IsEditorBundleUploadedMessage extends Message{['bundleVersion'];static ['TYPE']='131';static ['READABLE_TYPE_NAME']='isEditorBundleUploaded';static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedMessage';static ['DESCRIPTOR']={'fields':{'bundleVersion':{'type':'string','id':0x1}}};constructor(_0x9a332e){super(),this['bundleVersion']=_0x9a332e;}['toJSON'](){return{'bundleVersion':this['bundleVersion']};}static['fromJSON'](_0x57c63f){return new IsEditorBundleUploadedMessage(_0x57c63f['bundleVersion']);}}class IsEditorBundleUploadedResponse extends Message{['isUploaded'];static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedResponse';static ['DESCRIPTOR']={'fields':{'isUploaded':{'type':'bool','id':0x1}}};constructor(_0x249c4c){super(),this['isUploaded']=_0x249c4c;}['toJSON'](){return{'isUploaded':this['isUploaded']};}static['fromJSON'](_0x29cc12){return new IsEditorBundleUploadedResponse(_0x29cc12['isUploaded']);}}class EditorService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){static ['_SERVICE']=0xd;static async['isBundleUploaded'](_0x42b5de,_0x4db216){const _0x2968a0=new IsEditorBundleUploadedMessage(_0x4db216);if(_0x42b5de['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x42b5de);const _0x244dcb=await _0x42b5de['_sendRequest'](EditorService['_SERVICE'],IsEditorBundleUploadedMessage['TYPE'],MessagesCompressor['encode'](_0x2968a0));return MessagesCompressor['decode'](_0x244dcb,IsEditorBundleUploadedResponse)['isUploaded'];}}class RevisionHistoryGetRevisionMessage extends Message{['documentId'];['revisionId'];static ['TYPE']='123';static ['READABLE_TYPE_NAME']='getRevision';static ['DESCRIPTOR_NAME']='RevisionHistoryGetRevisionMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'revisionId':{'type':'string','id':0x2}}};constructor(_0x457a5f,_0x4a7542){super(),this['documentId']=_0x457a5f,this['revisionId']=_0x4a7542;}['toJSON'](){return{'documentId':this['documentId'],'revisionId':this['revisionId']};}static['fromJSON'](_0x22f65e){return new RevisionHistoryGetRevisionMessage(_0x22f65e['documentId'],_0x22f65e['revisionId']);}}class RevisionDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='RevisionDescriptor';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'revisionId':{'type':'string','id':0x1},'name':{'type':'string','id':0x2},'creatorId':{'type':'string','id':0x3},'authorsIds':{'type':'string','id':0x4},'diffData':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'toVersion':{'type':'uint32','id':0x8},'fromVersion':{'type':'uint32','id':0x9},'isEmptyCurrent':{'type':'bool','id':0xa}}}))());static['create'](_0x121612){return{'revisionId':_0x121612['id'],'name':_0x121612['name'],'creatorId':_0x121612['creatorId'],'createdAt':_0x121612['createdAt'],'fromVersion':_0x121612['fromVersion'],'toVersion':_0x121612['toVersion'],'isEmptyCurrent':_0x121612['isEmptyCurrent'],'diffData':_0x121612['diffData']?JSON['stringify'](_0x121612['diffData']):void 0x0,'attributes':_0x121612['attributes'],'authorsIds':_0x121612['authorsIds']};}static['toJSON'](_0x3f74b8){return{'revisionId':_0x3f74b8['revisionId'],'name':_0x3f74b8['name'],'creatorId':_0x3f74b8['creatorId'],'authorsIds':_0x3f74b8['authorsIds']?JSON['stringify'](_0x3f74b8['authorsIds']):void 0x0,'diffData':_0x3f74b8['diffData'],'createdAt':_0x3f74b8['createdAt']?.['toISOString'](),'attributes':_0x3f74b8['attributes']?JSON['stringify'](_0x3f74b8['attributes']):void 0x0,'toVersion':_0x3f74b8['toVersion'],'fromVersion':_0x3f74b8['fromVersion'],'isEmptyCurrent':_0x3f74b8['isEmptyCurrent']};}static['fromJSON'](_0x406c97){return{'revisionId':(_0x406c97={..._0x406c97})['revisionId'],'name':_0x406c97['name'],'creatorId':_0x406c97['creatorId'],'authorsIds':_0x406c97['authorsIds']?JSON['parse'](_0x406c97['authorsIds']):void 0x0,'diffData':_0x406c97['diffData'],'createdAt':_0x406c97['createdAt']?new Date(_0x406c97['createdAt']):void 0x0,'attributes':_0x406c97['attributes']?JSON['parse'](_0x406c97['attributes']):void 0x0,'toVersion':_0x406c97['toVersion'],'fromVersion':_0x406c97['fromVersion'],'isEmptyCurrent':_0x406c97['isEmptyCurrent']};}static['toObject'](_0x16e510){return function(_0x55215a){for(const [_0x945018,_0x5403b7]of Object['entries'](_0x55215a))void 0x0===_0x5403b7&&delete _0x55215a[_0x945018];return _0x55215a;}({'id':_0x16e510['revisionId'],'name':_0x16e510['name'],'creatorId':_0x16e510['creatorId'],'createdAt':_0x16e510['createdAt'],'fromVersion':_0x16e510['fromVersion'],'toVersion':_0x16e510['toVersion'],'isEmptyCurrent':_0x16e510['isEmptyCurrent'],'diffData':_0x16e510['diffData']?JSON['parse'](_0x16e510['diffData']):void 0x0,'attributes':_0x16e510['attributes'],'authorsIds':_0x16e510['authorsIds']});}}class RevisionHistoryGetRevisionResponse extends Message{['revisionId'];['name'];['creatorId'];['authorsIds'];['createdAt'];['diffData'];['attributes'];['fromVersion'];['toVersion'];['isEmptyCurrent'];static ['DESCRIPTOR_NAME']='RevisionHistoryGetRevisionResponse';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>RevisionDescriptor['DESCRIPTOR'])());constructor(_0x1118aa,_0x3b9159,_0x23ac97,_0x2f5f0a,_0x35a37e,_0x4afcf4,_0x46b706,_0x5c00f1,_0x29f21d,_0xd56cf3){super(),this['revisionId']=_0x1118aa,this['name']=_0x3b9159,this['creatorId']=_0x23ac97,this['authorsIds']=_0x2f5f0a,this['createdAt']=_0x35a37e,this['diffData']=_0x4afcf4,this['attributes']=_0x46b706,this['fromVersion']=_0x5c00f1,this['toVersion']=_0x29f21d,this['isEmptyCurrent']=_0xd56cf3;}['toJSON'](){return RevisionDescriptor['toJSON'](this);}['toObject'](){return RevisionDescriptor['toObject'](this);}static['create'](_0x5b877d){return new RevisionHistoryGetRevisionResponse(_0x5b877d['revisionId'],_0x5b877d['name'],_0x5b877d['creatorId'],_0x5b877d['authorsIds'],_0x5b877d['createdAt'],_0x5b877d['diffData'],_0x5b877d['attributes'],_0x5b877d['fromVersion'],_0x5b877d['toVersion'],_0x5b877d['isEmptyCurrent']);}static['fromJSON'](_0x2db9f){return new RevisionHistoryGetRevisionResponse(_0x2db9f['revisionId'],_0x2db9f['name'],_0x2db9f['creatorId'],_0x2db9f['authorsIds']?JSON['parse'](_0x2db9f['authorsIds']):void 0x0,_0x2db9f['createdAt']?new Date(_0x2db9f['createdAt']):void 0x0,_0x2db9f['diffData'],_0x2db9f['attributes']?JSON['parse'](_0x2db9f['attributes']):void 0x0,_0x2db9f['fromVersion'],_0x2db9f['toVersion'],_0x2db9f['isEmptyCurrent']);}}class RevisionHistoryUpdateRevisionsMessage extends Message{['documentId'];['requestId'];['revisions'];static ['TYPE']='124';static ['READABLE_TYPE_NAME']='updateRevisions';static ['DESCRIPTOR_NAME']='RevisionHistoryUpdateRevisionsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2},'revisions':{'type':'RevisionDescriptor','id':0x3,'rule':'repeated'}}};constructor(_0x4c4ac2,_0x481752,_0x94ff3c){super(),this['documentId']=_0x4c4ac2,this['requestId']=_0x481752,this['revisions']=_0x94ff3c;}['toJSON'](){return{'documentId':this['documentId'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toJSON'])};}['toObject'](){return{'documentId':this['documentId'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toObject'])};}static['create'](_0x415fe9){return new RevisionHistoryUpdateRevisionsMessage(_0x415fe9['documentId'],_0x415fe9['requestId'],_0x415fe9['revisions']['map'](RevisionDescriptor['create']));}static['fromJSON'](_0x467b70){return new RevisionHistoryUpdateRevisionsMessage(_0x467b70['documentId'],_0x467b70['requestId'],_0x467b70['revisions']['map'](RevisionDescriptor['fromJSON']));}}class RevisionHistoryUpdateRevisionsResponse extends Message{['requestId'];static ['DESCRIPTOR_NAME']='RevisionHistoryUpdateRevisionsResponse';static ['DESCRIPTOR']={'fields':{'requestId':{'type':'uint32','id':0x1}}};constructor(_0x345047){super(),this['requestId']=_0x345047;}['toJSON'](){return{'requestId':this['requestId']};}static['fromJSON'](_0x38a627){return new RevisionHistoryUpdateRevisionsResponse(_0x38a627['requestId']);}}class RevisionHistoryConnectMessage extends Message{['documentId'];static ['TYPE']='121';static ['READABLE_TYPE_NAME']='connectToRevisionHistory';static ['DESCRIPTOR_NAME']='RevisionHistoryConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x51fa51){super(),this['documentId']=_0x51fa51;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x248f90){return new RevisionHistoryConnectMessage(_0x248f90['documentId']);}}class RevisionHistoryConnectResponse extends Message{['channel'];['requestId'];['revisions'];static ['DESCRIPTOR_NAME']='RevisionHistoryConnectResponse';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'channel':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2},'revisions':{'type':'RevisionDescriptor','id':0x3,'rule':'repeated'}}}))());constructor(_0x1cebdd,_0x272c6b,_0x51c839){super(),this['channel']=_0x1cebdd,this['requestId']=_0x272c6b,this['revisions']=_0x51c839;}['toJSON'](){return{'channel':this['channel'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toJSON'])};}['toObject'](){return{'channel':this['channel'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toObject'])};}static['fromJSON'](_0x10014b){return new RevisionHistoryConnectResponse(_0x10014b['channel'],_0x10014b['requestId'],_0x10014b['revisions']['map'](RevisionDescriptor['fromJSON']));}}class RevisionHistoryReconnectMessage extends Message{['documentId'];['requestId'];static ['TYPE']='122';static ['READABLE_TYPE_NAME']='reconnectToRevisionHistory';static ['DESCRIPTOR_NAME']='RevisionHistoryReconnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2}}};constructor(_0x5e42dc,_0x38c55a){super(),this['documentId']=_0x5e42dc,this['requestId']=_0x38c55a;}['toJSON'](){return{'documentId':this['documentId'],'requestId':this['requestId']};}static['fromJSON'](_0x2866d){return new RevisionHistoryReconnectMessage(_0x2866d['documentId'],_0x2866d['requestId']);}}class ServiceNotConnectedError extends CKEditorCloudServicesError{constructor(_0x19956d,_0x14e88f){super(_0x19956d+'\x20Service\x20is\x20not\x20connected.',_0x14e88f);}}class RevisionHistoryService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xc;constructor(_0x57a23c){super(),this['_documentId']=_0x57a23c;}get['isConnected'](){return this['_isConnected'];}['connect'](_0x5d28ed){return this['_isConnected']?Promise['resolve']():this['_connect'](_0x5d28ed,new RevisionHistoryConnectMessage(this['_documentId']));}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['fire']('disconnected'),this['stopListening']());}['reconnect'](_0x507cc1,_0x35fa23){if(this['isConnected'])throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x507cc1);return this['_connect'](_0x507cc1,new RevisionHistoryReconnectMessage(this['_documentId'],_0x35fa23));}async['updateRevisions'](_0x486330,_0x557f4b){const _0x2c3256=RevisionHistoryUpdateRevisionsMessage['create']({'documentId':this['_documentId'],'requestId':_0x557f4b,'revisions':_0x486330}),_0x2db111=await this['_sendRequest'](RevisionHistoryUpdateRevisionsMessage['TYPE'],_0x2c3256),{requestId:_0x40765f}=MessagesCompressor['decode'](_0x2db111,RevisionHistoryUpdateRevisionsResponse);return _0x40765f;}async['getRevision'](_0x4480b9){const _0x45e383=new RevisionHistoryGetRevisionMessage(this['_documentId'],_0x4480b9),_0x23e045=await this['_sendRequest'](RevisionHistoryGetRevisionMessage['TYPE'],_0x45e383);return MessagesCompressor['decode'](_0x23e045,RevisionHistoryGetRevisionResponse)['toObject']();}async['_connect'](_0x568994,_0x28085b){if(_0x568994['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x568994);this['_wsGateway']=_0x568994,this['stopListening'](_0x568994,'change:state');const _0x502b8f=await _0x568994['_sendRequest'](0xc,_0x28085b['constructor']['TYPE'],MessagesCompressor['encode'](_0x28085b)),{channel:_0x39aae5,requestId:_0x1999d0,revisions:_0x439a7c}=MessagesCompressor['decode'](_0x502b8f,RevisionHistoryConnectResponse)['toObject']();return this['listenTo'](_0x568994,'change:state',(_0x578787,_0x61c7f7,_0x496235)=>this['_onWsGatewayStateChange'](_0x496235),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x568994,_0x39aae5),this['_isConnected']=!0x0,this['fire']('connected'),{'revisions':_0x439a7c,'requestId':_0x1999d0};}['_connectToChannel'](_0x243033,_0x416ebe){this['_channel']=_0x243033['_getChannel'](RevisionHistoryService['_SERVICE'],_0x416ebe),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](RevisionHistoryUpdateRevisionsMessage['TYPE']),(_0x50acdf,_0x4bf585)=>{const {documentId:_0x5b83b9,requestId:_0x58c2f7,revisions:_0x287d38}=MessagesCompressor['decode'](_0x4bf585,RevisionHistoryUpdateRevisionsMessage)['toObject']();this['fire']('revisionsUpdated',{'documentId':_0x5b83b9,'requestId':_0x58c2f7,'revisionsData':_0x287d38});});}['_onWsGatewayStateChange'](_0xc6164c){_0xc6164c===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x493084,_0x3d8460){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Revision\x20History',this);return this['_wsGateway']['_sendRequest'](0xc,_0x493084,MessagesCompressor['encode'](_0x3d8460));}}class AddSuggestionMessage extends Message{['id'];['documentId'];['type'];['data'];['originalSuggestionId'];['attributes'];static ['TYPE']='101';static ['READABLE_TYPE_NAME']='addSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesAddSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'data':{'type':'string','id':0x4},'originalSuggestionId':{'type':'string','id':0x5},'attributes':{'type':'string','id':0x6}}};constructor(_0x5b106f,_0x61cfab,_0x589b94,_0x5296ac={},_0x4dfde8=null,_0x66db4=null){super(),this['id']=_0x5b106f,this['documentId']=_0x61cfab,this['type']=_0x589b94,this['data']=_0x5296ac,this['originalSuggestionId']=_0x4dfde8,this['attributes']=_0x66db4;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId'],'type':this['type'],'data':JSON['stringify'](this['data']),'originalSuggestionId':this['originalSuggestionId'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](_0x458440){return new AddSuggestionMessage(_0x458440['id'],_0x458440['documentId'],_0x458440['type'],JSON['parse'](_0x458440['data']),_0x458440['originalSuggestionId']??null,_0x458440['attributes']?JSON['parse'](_0x458440['attributes']):null);}}class AddSuggestionResponse extends Message{['id'];['authorId'];['type'];['hasComments'];['state'];['data'];['attributes'];['createdAt'];static ['DESCRIPTOR_NAME']='TrackChangesAddSuggestionResponse';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'authorId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'data':{'type':'string','id':0x5},'hasComments':{'type':'bool','id':0x6},'state':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8}}};constructor(_0x16cd6a,_0x18bdbf,_0x3b93a7,_0x5c2293,_0x2c08,_0x187046,_0x18c572={},_0x1b0a26=null){super(),this['id']=_0x16cd6a,this['authorId']=_0x18bdbf,this['type']=_0x3b93a7,this['hasComments']=_0x2c08,this['state']=_0x187046,this['data']=_0x18c572,this['attributes']=_0x1b0a26,this['createdAt']=_0x5c2293?new Date(_0x5c2293):void 0x0;}['toJSON'](){return{'id':this['id'],'authorId':this['authorId'],'type':this['type'],'createdAt':this['createdAt']?.['toISOString'](),'data':JSON['stringify'](this['data']),'hasComments':this['hasComments'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](_0x16bd06){return new AddSuggestionResponse(_0x16bd06['id'],_0x16bd06['authorId'],_0x16bd06['type'],_0x16bd06['createdAt'],_0x16bd06['hasComments'],_0x16bd06['state'],JSON['parse'](_0x16bd06['data']),_0x16bd06['attributes']?JSON['parse'](_0x16bd06['attributes']):null);}}class GetSuggestionMessage extends Message{['id'];['documentId'];static ['TYPE']='103';static ['READABLE_TYPE_NAME']='getSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesGetSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x20b2aa,_0x3ab4e6){super(),this['id']=_0x20b2aa,this['documentId']=_0x3ab4e6;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId']};}static['fromJSON'](_0x5df938){return new GetSuggestionMessage(_0x5df938['id'],_0x5df938['documentId']);}}class GetSuggestionResponse extends Message{['id'];['authorId'];['type'];['hasComments'];['state'];['data'];['attributes'];['createdAt'];static ['DESCRIPTOR_NAME']='TrackChangesGetSuggestionResponse';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'authorId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'data':{'type':'string','id':0x5},'hasComments':{'type':'bool','id':0x6},'state':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8}}};constructor(_0x30658f,_0x2067f0,_0x145566,_0x53aeb0,_0xfe0f0b,_0x4b65f4,_0x429b32={},_0x37d692=null){super(),this['id']=_0x30658f,this['authorId']=_0x2067f0,this['type']=_0x145566,this['hasComments']=_0xfe0f0b,this['state']=_0x4b65f4,this['data']=_0x429b32,this['attributes']=_0x37d692,this['createdAt']=new Date(_0x53aeb0);}['toJSON'](){return{'id':this['id'],'authorId':this['authorId'],'type':this['type'],'createdAt':this['createdAt']['toISOString'](),'data':JSON['stringify'](this['data']),'hasComments':this['hasComments'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](_0x38f863){return new GetSuggestionResponse(_0x38f863['id'],_0x38f863['authorId'],_0x38f863['type'],_0x38f863['createdAt'],_0x38f863['hasComments'],_0x38f863['state'],JSON['parse'](_0x38f863['data']),_0x38f863['attributes']?JSON['parse'](_0x38f863['attributes']):null);}}class GetAllSuggestionsMessage extends Message{['documentId'];static ['TYPE']='102';static ['READABLE_TYPE_NAME']='getAllSuggestions';static ['DESCRIPTOR_NAME']='TrackChangesGetAllSuggestionMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x5619a2){super(),this['documentId']=_0x5619a2;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x4c8b03){return new GetAllSuggestionsMessage(_0x4c8b03['documentId']);}}class SuggestionDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='SuggestionDescriptor';static ['DESCRIPTOR']={'fields':{'id':{'id':0x1,'type':'string'},'authorId':{'id':0x2,'type':'string'},'type':{'id':0x3,'type':'string'},'createdAt':{'id':0x4,'type':'string'},'data':{'id':0x5,'type':'string'},'hasComments':{'id':0x6,'type':'bool'},'state':{'id':0x7,'type':'string'},'attributes':{'id':0x8,'type':'string'}}};static['toJSON'](_0x2b5b10){return{..._0x2b5b10,'data':_0x2b5b10['data']?JSON['stringify'](_0x2b5b10['data']):_0x2b5b10['data'],'attributes':_0x2b5b10['attributes']?JSON['stringify'](_0x2b5b10['attributes']):_0x2b5b10['attributes'],'createdAt':_0x2b5b10['createdAt']?.['toISOString']()};}static['fromJSON'](_0x34f582){return{..._0x34f582,'data':_0x34f582['data']?JSON['parse'](_0x34f582['data']):_0x34f582['data'],'attributes':_0x34f582['attributes']?JSON['parse'](_0x34f582['attributes']):_0x34f582['attributes'],'createdAt':_0x34f582['createdAt']?new Date(_0x34f582['createdAt']):void 0x0};}}class GetAllSuggestionResponse extends Message{['_suggestions'];['_suggestionsV2'];['suggestions'];static ['DESCRIPTOR_NAME']='TrackChangesGetAllSuggestionsResponse';static ['DESCRIPTOR']={'fields':{'suggestions':{'type':'string','rule':'repeated','id':0x1},'suggestionsV2':{'type':'SuggestionDescriptor','rule':'repeated','id':0x2}}};constructor(_0x482e49,_0x291ed2){super(),this['_suggestions']=_0x482e49,this['_suggestionsV2']=_0x291ed2,this['suggestions']=_0x291ed2?.['length']?_0x291ed2:_0x482e49;}['toJSON'](){return{'suggestions':this['_suggestions']?.['map'](_0x528bbb=>JSON['stringify'](_0x528bbb)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](_0x6eba0c){return new GetAllSuggestionResponse(_0x6eba0c['suggestions']?.['map'](_suggestionFromString),_0x6eba0c['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}}function _suggestionFromString(_0x199cc4){const _0xf659aa=JSON['parse'](_0x199cc4);return _0xf659aa['createdAt']=_0xf659aa['createdAt']?new Date(_0xf659aa['createdAt']):void 0x0,_0xf659aa;}class UpdateSuggestionMessage extends Message{['id'];['documentId'];['hasComments'];['isHasCommentsModified'];['state'];['attributes'];static ['TYPE']='104';static ['READABLE_TYPE_NAME']='updateSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesUpdateSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'hasComments':{'type':'bool','id':0x3},'isHasCommentsModified':{'type':'bool','id':0x4},'state':{'type':'string','id':0x5},'attributes':{'type':'string','id':0x6}}};constructor(_0x4a6e7c,_0x47f5a1,_0xdfdb4a,_0x153f7f,_0x87ef5c,_0x3c2768=null){super(),this['id']=_0x4a6e7c,this['documentId']=_0x47f5a1,this['hasComments']=_0xdfdb4a,this['isHasCommentsModified']=_0x153f7f,this['state']=_0x87ef5c,this['attributes']=_0x3c2768;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId'],'hasComments':this['hasComments'],'isHasCommentsModified':this['isHasCommentsModified'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](_0x137b1d){return new UpdateSuggestionMessage(_0x137b1d['id'],_0x137b1d['documentId'],_0x137b1d['hasComments'],_0x137b1d['isHasCommentsModified'],_0x137b1d['state'],_0x137b1d['attributes']?JSON['parse'](_0x137b1d['attributes']):null);}}let ConnectMessage$1=class e extends Message{['documentId'];static ['TYPE']='105';static ['READABLE_TYPE_NAME']='connectToSuggestions';static ['DESCRIPTOR_NAME']='TrackChangesConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x13a446){super(),this['documentId']=_0x13a446;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x5027d5){return new e(_0x5027d5['documentId']);}},ConnectResponse$1=class e extends Message{['channel'];['_suggestions'];['_suggestionsV2'];['suggestions'];static ['DESCRIPTOR_NAME']='TrackChangesConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'suggestions':{'type':'string','rule':'repeated','id':0x2},'suggestionsV2':{'type':'SuggestionDescriptor','rule':'repeated','id':0x3}}};constructor(_0x421221,_0x5e32b6,_0x1b10d9){super(),this['channel']=_0x421221,this['_suggestions']=_0x5e32b6,this['_suggestionsV2']=_0x1b10d9,this['suggestions']=_0x1b10d9?.['length']?_0x1b10d9:_0x5e32b6;}['toJSON'](){return{'channel':this['channel'],'suggestions':this['_suggestions']?.['map'](_0x57939f=>JSON['stringify'](_0x57939f)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](_0x197a0e){return new e(_0x197a0e['channel'],_0x197a0e['suggestions']?.['map'](_0x15a23e=>JSON['parse'](_0x15a23e)),_0x197a0e['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}};class BatchUpdateSuggestionsStateMessage extends Message{['ids'];['documentId'];['state'];static ['TYPE']='106';static ['READABLE_TYPE_NAME']='batchUpdateSuggestionsState';static ['DESCRIPTOR_NAME']='TrackChangesBatchUpdateSuggestionsStateMessage';static ['DESCRIPTOR']={'fields':{'ids':{'type':'string','rule':'repeated','id':0x1},'documentId':{'type':'string','id':0x2},'state':{'type':'string','id':0x3}}};constructor(_0x1204e5,_0x5f5d86,_0x3d2d41){super(),this['ids']=_0x1204e5,this['documentId']=_0x5f5d86,this['state']=_0x3d2d41;}['toJSON'](){return{'ids':this['ids'],'documentId':this['documentId'],'state':this['state']};}static['fromJSON'](_0x401274){return new BatchUpdateSuggestionsStateMessage(_0x401274['ids'],_0x401274['documentId'],_0x401274['state']);}}class TrackChangesService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xa;constructor(_0x45754e){super(),this['_documentId']=_0x45754e;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x6ba54a){if(this['_isConnected'])return;if(_0x6ba54a['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x6ba54a);const _0x57ddb9=new ConnectMessage$1(this['_documentId']);this['_wsGateway']=_0x6ba54a,this['stopListening'](_0x6ba54a,'change:state');const _0x10c737=await _0x6ba54a['_sendRequest'](0xa,ConnectMessage$1['TYPE'],MessagesCompressor['encode'](_0x57ddb9)),_0x3067cd=MessagesCompressor['decode'](_0x10c737,ConnectResponse$1);return this['listenTo'](_0x6ba54a,'change:state',(_0x4d3664,_0x5b73ea,_0x29597c)=>this['_onWsGatewayStateChange'](_0x29597c),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x6ba54a,_0x3067cd['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x3067cd['suggestions'];}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['add'](_0x3411a4,_0x3aa9bd,_0x1c5d6e,_0x26a64d=null,_0x1ababb){const _0x5d928a=new AddSuggestionMessage(_0x3411a4,this['_documentId'],_0x3aa9bd,_0x1c5d6e,_0x26a64d,_0x1ababb),_0x34b484=await this['_sendRequest'](AddSuggestionMessage['TYPE'],_0x5d928a);return MessagesCompressor['decode'](_0x34b484,AddSuggestionResponse);}async['get'](_0x45b4c4,_0x49da14=0x1){const _0x326ad2=new GetSuggestionMessage(_0x45b4c4,this['_documentId']);try{const _0x267052=await this['_sendRequest'](GetSuggestionMessage['TYPE'],_0x326ad2);return MessagesCompressor['decode'](_0x267052,GetSuggestionResponse);}catch(_0x12b3db){if('CKEditorCloudServicesServerError'===_0x12b3db['name']&&'404'===_0x12b3db['code']&&_0x49da14<0x5)return await(_0x56b053=0x64*_0x49da14,new Promise(_0x1a80dc=>{setTimeout(_0x1a80dc,_0x56b053);})),this['get'](_0x45b4c4,_0x49da14+0x1);if('CKEditorCloudServicesServerError'===_0x12b3db['name'])throw _0x12b3db;throw CKEditorCloudServicesServerError['fromPublicError'](_0x12b3db);}var _0x56b053;}async['getAll'](){const _0x28a4d7=new GetAllSuggestionsMessage(this['_documentId']),_0x535513=await this['_sendRequest'](GetAllSuggestionsMessage['TYPE'],_0x28a4d7),{suggestions:_0x872b44}=MessagesCompressor['decode'](_0x535513,GetAllSuggestionResponse);return _0x872b44;}async['update'](_0x490f0a,_0x197c8a={}){const {hasComments:_0x1e0d1f,state:_0x2b3f36,attributes:_0x31354c}=_0x197c8a,_0x6804b8=void 0x0!==_0x1e0d1f,_0x329359=new UpdateSuggestionMessage(_0x490f0a,this['_documentId'],_0x1e0d1f,_0x6804b8,_0x2b3f36,_0x31354c);await this['_sendRequest'](UpdateSuggestionMessage['TYPE'],_0x329359);}async['batchUpdateState'](_0x8e4a3f){const _0x28ef6d=new BatchUpdateSuggestionsStateMessage(_0x8e4a3f['ids'],this['_documentId'],_0x8e4a3f['state']);await this['_sendRequest'](BatchUpdateSuggestionsStateMessage['TYPE'],_0x28ef6d);}['_connectToChannel'](_0x306747,_0xfd3c6d){this['_channel']=_0x306747['_getChannel'](TrackChangesService['_SERVICE'],_0xfd3c6d),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateSuggestionMessage['TYPE']),(_0x195ea1,_0x164ba1)=>{const _0x5cb19e=MessagesCompressor['decode'](_0x164ba1,UpdateSuggestionMessage);this['fire']('suggestionUpdated',_0x5cb19e);});}['_onWsGatewayStateChange'](_0x1553eb){_0x1553eb===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x39021a,_0x117895){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Track\x20Changes',this);return this['_wsGateway']['_sendRequest'](0xa,_0x39021a,MessagesCompressor['encode'](_0x117895));}}class SessionsConnectResponse extends Message{['channel'];['sockets'];static ['DESCRIPTOR_NAME']='SessionsConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'sockets':{'rule':'repeated','type':'SessionsSocketDescriptor','id':0x2}}};constructor(_0x497d53,_0x38f79b=[]){super(),this['channel']=_0x497d53,this['sockets']=_0x38f79b;}['toJSON'](){return{'channel':this['channel'],'sockets':this['sockets']['map'](_0x167914=>({'user':_0x167914['userId'],'session':_0x167914['id'],'role':_0x167914['role'],'permissions':_0x167914['permissions']}))};}static['fromJSON'](_0x2206e0){return new SessionsConnectResponse(_0x2206e0['channel'],_0x2206e0['sockets']['map'](_0x34854b=>({'id':_0x34854b['session'],'userId':_0x34854b['user'],'role':_0x34854b['role'],'permissions':_0x34854b['permissions']})));}}class SessionsConnectMessage extends Message{['id'];['sessionType'];static ['TYPE']='31';static ['READABLE_TYPE_NAME']='getConnectedSockets';static ['DESCRIPTOR_NAME']='SessionsConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'sessionType':{'type':'uint32','id':0x2}}};constructor(_0x4d335e,_0x46abb0){super(),this['id']=_0x4d335e,this['sessionType']=_0x46abb0;}['toJSON'](){return{'id':this['id'],'sessionType':this['sessionType']};}static['fromJSON'](_0x3fa59c){return new SessionsConnectMessage(_0x3fa59c['id'],_0x3fa59c['sessionType']);}}class SocketConnectMessage extends Message{['id'];['userId'];['role'];['permissions'];static ['TYPE']='32';static ['READABLE_TYPE_NAME']='connectSocket';static ['DESCRIPTOR_NAME']='SocketConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'userId':{'type':'string','id':0x2},'role':{'type':'string','id':0x3},'permissions':{'rule':'repeated','type':'string','id':0x4}}};constructor(_0x278e44,_0xa663d4,_0x92b65,_0x11461f){super(),this['id']=_0x278e44,this['userId']=_0xa663d4,this['role']=_0x92b65,this['permissions']=_0x11461f;}['toJSON'](){return{'id':this['id'],'userId':this['userId']??void 0x0,'role':this['role']??void 0x0,'permissions':this['permissions']??void 0x0};}static['fromJSON'](_0x475019){return new SocketConnectMessage(_0x475019['id'],_0x475019['userId'],_0x475019['role'],_0x475019['permissions']);}}class SocketDisconnectMessage extends Message{['id'];static ['TYPE']='33';static ['READABLE_TYPE_NAME']='disconnectSocket';static ['DESCRIPTOR_NAME']='SocketDisconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1}}};constructor(_0x1fe5d2){super(),this['id']=_0x1fe5d2;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](_0x344f8c){return new SocketDisconnectMessage(_0x344f8c['id']);}}class SessionCollection extends Collection$1{['_id'];['_sessionType'];['_handlers']=new Map();['_channel'];['_wsGateway'];['_connected'];['_eventsQueue']=[];['_isRunning']=!0x1;constructor(_0x11a48f,_0x1fc6ea){super({'idProperty':'id'}),this['_id']=_0x11a48f,this['_sessionType']=_0x1fc6ea;}async['connect'](_0x204a1a){this['_wsGateway']=_0x204a1a,this['stopListening'](_0x204a1a,'change:state');const _0x58b9aa=new SessionsConnectMessage(this['_id'],this['_sessionType']);let _0x5811f7;try{const _0x6ecffa=await this['_wsGateway']['_sendRequest'](0x3,SessionsConnectMessage['TYPE'],MessagesCompressor['encode'](_0x58b9aa));_0x5811f7=MessagesCompressor['decode'](_0x6ecffa,SessionsConnectResponse);}catch(_0x5b606a){_0x5811f7=new SessionsConnectResponse(this['_id'],[]);}this['_connectToChannel'](this['_wsGateway'],_0x5811f7['channel'],this['_sessionType']);const _0x1af542=await async function(_0x139ba0,_0x5aa1d9){const _0x2ef59e=_0x5aa1d9['map'](_0x43ae93=>_0x43ae93['userId']),_0x437b88=_0x2ef59e['length']?await User['getMany'](_0x139ba0,_0x2ef59e):[];return _0x5aa1d9['map'](_0x295f29=>{const _0xc189d4={'id':_0x295f29['id'],'role':_0x295f29['role'],'permissions':_0x295f29['permissions']};return _0xc189d4['user']=_0x295f29['userId']&&_0x437b88['find'](_0x5dcd9f=>_0x5dcd9f['id']===_0x295f29['userId'])||new User(),_0xc189d4;});}(this['_wsGateway'],_0x5811f7['sockets']);for(const _0x3a9976 of _0x1af542)super['add'](_0x3a9976);this['_connected']=!0x0,this['fire']('connected'),this['listenTo'](this['_wsGateway'],'change:state',(_0x1765c1,_0x51b056,_0x21f096)=>this['_onWsGatewayStateChange'](_0x21f096),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),await this['_runQueue']();}['disconnect'](_0x4f4610=!0x0){if(this['_connected']){for(this['_connected']=!0x1,this['_eventsQueue']=[];this['length'];)super['remove'](0x0);this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_wsGateway']&&_0x4f4610&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['fire']('disconnected'),_0x4f4610&&this['stopListening']();}}['add'](_0x26443c,_0x2ba85a){throw new TypeError('The\x20collection\x20is\x20read-only.');}['remove'](_0x4445a9){throw new TypeError('The\x20collection\x20is\x20read-only.');}['_connectToChannel'](_0x423e05,_0x39f9bb,_0x683047){this['_channel']=_0x423e05['_getChannel'](_0x683047,_0x39f9bb),this['_channel']&&(this['_addHandler'](this['_channel'],SocketConnectMessage['TYPE'],async _0x4b7fff=>{const _0x33108b=MessagesCompressor['decode'](_0x4b7fff,SocketConnectMessage);if(-0x1===this['getIndex'](_0x33108b['id'])){const _0x2a427f={'id':_0x33108b['id'],'role':_0x33108b['role'],'permissions':_0x33108b['permissions']};_0x33108b['userId']&&(_0x2a427f['user']=await User['get'](_0x423e05,_0x33108b['userId'])),super['add'](_0x2a427f);}}),this['_addHandler'](this['_channel'],SocketDisconnectMessage['TYPE'],_0x1eba9a=>{const _0x37c34b=MessagesCompressor['decode'](_0x1eba9a,SocketDisconnectMessage);-0x1!==this['getIndex'](_0x37c34b['id'])&&super['remove'](_0x37c34b['id']);}));}async['_onWsGatewayStateChange'](_0x4bc53f){_0x4bc53f===WebSocketGateway$1['STATE_DISCONNECTED']&&this['disconnect'](!0x1),_0x4bc53f===WebSocketGateway$1['STATE_CONNECTED']&&await this['connect'](this['_wsGateway']);}async['_runQueue'](){if(this['_isRunning']||!this['_connected'])return;let _0x1c3b32;for(this['_isRunning']=!0x0;_0x1c3b32=this['_eventsQueue']['shift']();){const _0x1b7588=this['_handlers']['get'](_0x1c3b32['eventName']);_0x1b7588&&await _0x1b7588(_0x1c3b32['data']);}this['_isRunning']=!0x1;}['_addHandler'](_0xcbbbc5,_0x3be4d6,_0x2d0eae){const _0x43f6f1=_0xcbbbc5['getEventName'](_0x3be4d6,!0x0);this['listenTo'](_0xcbbbc5,_0x43f6f1,async(_0x35d9c9,_0x146c53)=>{const _0x472f5e=_0x35d9c9['name'];this['_eventsQueue']['push']({'eventName':_0x472f5e,'data':_0x146c53}),await this['_runQueue']();}),this['_handlers']['set'](_0x43f6f1,_0x2d0eae);}}let Sessions$1=class{static async['getConnectedSessions'](_0x5b3897,_0x28fbba,_0x27f20d){const _0x505d06=new SessionCollection(_0x28fbba,_0x27f20d);return await _0x505d06['connect'](_0x5b3897),_0x505d06;}};class CollaborativeEditingConnectMessage extends Message{['id'];['buffers'];['types'];['bundleVersion'];['lastOperationId'];static ['TYPE']='11';static ['READABLE_TYPE_NAME']='connectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'lastOperationId':{'type':'string','id':0x5}}};constructor(_0x2864e9,_0x105ae6,_0x8ac5b,_0x4d47be,_0x128161=''){super(),this['id']=_0x2864e9,this['buffers']=_0x105ae6,this['types']=_0x8ac5b,this['bundleVersion']=_0x4d47be,this['lastOperationId']=_0x128161;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x3fa663){return new CollaborativeEditingConnectMessage(_0x3fa663['id'],_0x3fa663['buffers'],_0x3fa663['types'],_0x3fa663['bundleVersion'],_0x3fa663['lastOperationId']);}}class OperationMetadataHelpers{static['prepareMetadataForOperations'](_0x6ece34,_0x5ba0b6){if(!_0x6ece34?.['length']||!_0x5ba0b6?.['length'])return[];const _0x2dca97=[];let _0x41546c=0x0;for(const _0x3d33cc of _0x6ece34)if(0x0!==_0x3d33cc){if(!_0x5ba0b6[_0x41546c])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x2dca97['push'](_0x5ba0b6[_0x41546c]),_0x41546c++;}else _0x2dca97['push'](_0x2dca97[_0x2dca97['length']-0x1]);return _0x2dca97;}static['removeUnnecessaryMetadata'](_0x77bb4f,_0x107e58){if(!_0x77bb4f?.['length']||!_0x107e58?.['length'])return[];const _0x2d071a=[];for(let _0x57c6a9=0x0;_0x57c6a9<_0x77bb4f['length'];_0x57c6a9++)if(0x0!==_0x77bb4f[_0x57c6a9]){if(!_0x107e58[_0x57c6a9])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x2d071a['push'](_0x107e58[_0x57c6a9]);}return _0x2d071a;}}class OperationMetadataDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='OperationMetadataDescriptor';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'userId':{'type':'string','id':0x1},'type':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}}))());static['toJSON']({createdAt:_0x56215f,..._0xeaeb9d}){const _0x1acfd8={..._0xeaeb9d};return _0x56215f?.['toISOString']&&(_0x1acfd8['createdAt']=_0x56215f['toISOString']()),_0x1acfd8;}static['fromJSON']({createdAt:_0x6a6a99,..._0x5defa9}){const _0x3dacd5={..._0x5defa9};return _0x6a6a99&&(_0x3dacd5['createdAt']=new Date(_0x6a6a99)),_0x3dacd5;}}class CollaborativeEditingUpdateMessage extends Message{['id'];['buffers'];['types'];['baseVersion'];['metadata'];['lastOperationId'];static ['TYPE']='13';static ['READABLE_TYPE_NAME']='updateDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingUpdateMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'baseVersion':{'type':'uint32','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x6},'lastOperationId':{'type':'string','id':0x7}}};constructor(_0x4f1a65,_0x58c3a0,_0x3bd595,_0x2df48f,_0x49ee41=[],_0x2d1f92=''){super(),this['id']=_0x4f1a65,this['buffers']=_0x58c3a0,this['types']=_0x3bd595,this['baseVersion']=_0x2df48f,this['metadata']=_0x49ee41,this['lastOperationId']=_0x2d1f92;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'lastOperationId':this['lastOperationId']};}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'metadata':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x3a856c){return new CollaborativeEditingUpdateMessage(_0x3a856c['id'],_0x3a856c['buffers'],_0x3a856c['types'],_0x3a856c['baseVersion'],OperationMetadataHelpers['prepareMetadataForOperations'](_0x3a856c['types'],_0x3a856c['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),_0x3a856c['lastOperationId']);}}class CollaborativeEditingReconnectMessage extends Message{['id'];['lastKnowVersion'];['bundleVersion'];static ['TYPE']='12';static ['READABLE_TYPE_NAME']='reconnectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingReconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'lastKnowVersion':{'type':'uint32','id':0x3}}};constructor(_0x316608,_0x5be3fe,_0x1e1b4d){super(),this['id']=_0x316608,this['lastKnowVersion']=_0x5be3fe,this['bundleVersion']=_0x1e1b4d;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x4e46ad){return new CollaborativeEditingReconnectMessage(_0x4e46ad['id'],_0x4e46ad['lastKnowVersion'],_0x4e46ad['bundleVersion']);}}class CollaborativeEditingResponse extends Message{['version'];['buffers'];['types'];['metadata'];['lastOperationId'];['lastOperationAcceptedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingResponse';static ['DESCRIPTOR']={'fields':{'version':{'type':'uint32','id':0x1},'buffers':{'rule':'repeated','type':'bytes','id':0x2},'types':{'rule':'repeated','type':'uint32','id':0x3},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x5},'lastOperationId':{'type':'string','id':0x6},'lastOperationAcceptedAt':{'type':'string','id':0x7}}};constructor(_0x2182fd,_0x8830d5=[],_0xc8e88f=[],_0xd2db10=[],_0x3742eb='',_0x562b6a=null){super(),this['version']=_0x2182fd,this['buffers']=_0x8830d5,this['types']=_0xc8e88f,this['metadata']=_0xd2db10,this['lastOperationId']=_0x3742eb,this['lastOperationAcceptedAt']=_0x562b6a;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']};}get['wereChangesApplied'](){return!this['types']?.['length'];}['toJSON'](){return{'version':this['version'],'buffers':this['buffers'],'types':this['types'],'metadata':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](_0x38ee99){return new CollaborativeEditingResponse(_0x38ee99['version'],_0x38ee99['buffers'],_0x38ee99['types'],OperationMetadataHelpers['prepareMetadataForOperations'](_0x38ee99['types'],_0x38ee99['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),_0x38ee99['lastOperationId'],_0x38ee99['lastOperationAcceptedAt']?new Date(_0x38ee99['lastOperationAcceptedAt']):null);}static['create'](_0x134641){return new CollaborativeEditingResponse(_0x134641['version'],_0x134641['buffers'],_0x134641['types'],_0x134641['metadata'],_0x134641['lastOperationId'],_0x134641['lastOperationAcceptedAt']?new Date(_0x134641['lastOperationAcceptedAt']):null);}}class CollaborativeEditingConnectResponse extends Message{['channel'];['version'];['buffers'];['types'];['offset'];['metadata'];['initData'];['sessionId'];['lastOperationId'];['sessionCreatedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectResponse';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'channel':{'type':'string','id':0x1},'offset':{'type':'uint32','id':0x2},'version':{'type':'uint32','id':0x3},'buffers':{'rule':'repeated','type':'bytes','id':0x4},'types':{'rule':'repeated','type':'uint32','id':0x5},'metadata':{'rule':'repeated','type':OperationMetadataDescriptor['DESCRIPTOR_NAME'],'id':0x7},'initData':{'type':'string','id':0x8},'isInitialized':{'type':'bool','id':0x9},'sessionId':{'type':'string','id':0xa},'lastOperationId':{'type':'string','id':0xb},'sessionCreatedAt':{'type':'string','id':0xc}}}))());constructor(_0x30d734,_0x3d255b,_0x4c82b8=[],_0x36f946=[],_0x465101=0x0,_0x4d8846=[],_0x1b82eb=null,_0x1cc1f7='',_0x5ebc3b='',_0x5ad0c1=null){super(),this['channel']=_0x30d734,this['version']=_0x3d255b,this['buffers']=_0x4c82b8,this['types']=_0x36f946,this['offset']=_0x465101,this['metadata']=_0x4d8846,this['initData']=_0x1b82eb,this['sessionId']=_0x1cc1f7,this['lastOperationId']=_0x5ebc3b,this['sessionCreatedAt']=_0x5ad0c1;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']};}get['wereChangesApplied'](){return!this['types']?.['length']&&null===this['initData'];}['toJSON'](){return{'channel':this['channel'],'version':this['version'],'sessionId':this['sessionId'],'buffers':this['buffers'],'types':this['types'],'offset':this['offset'],'metadata':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x26d7c1){return new CollaborativeEditingConnectResponse(_0x26d7c1['channel'],_0x26d7c1['version'],_0x26d7c1['buffers'],_0x26d7c1['types'],_0x26d7c1['offset'],_0x26d7c1['metadata'],_0x26d7c1['initData'],_0x26d7c1['sessionId'],_0x26d7c1['lastOperationId'],_0x26d7c1['sessionCreatedAt']);}static['fromJSON'](_0xf56dbd){let _0x247c3c=null;return!0x0===_0xf56dbd['isInitialized']?_0x247c3c=_0xf56dbd['initData']??'':'boolean'!=typeof _0xf56dbd['isInitialized']&&_0xf56dbd['initData']&&(_0x247c3c=_0xf56dbd['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0xf56dbd['channel'],'version':_0xf56dbd['version'],'buffers':_0xf56dbd['buffers'],'types':_0xf56dbd['types'],'offset':_0xf56dbd['offset'],'metadata':OperationMetadataHelpers['prepareMetadataForOperations'](_0xf56dbd['types'],_0xf56dbd['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),'initData':_0x247c3c,'sessionId':_0xf56dbd['sessionId'],'lastOperationId':_0xf56dbd['lastOperationId'],'sessionCreatedAt':_0xf56dbd['sessionCreatedAt']?new Date(_0xf56dbd['sessionCreatedAt']):null});}}class GetDocumentDetailsResponse extends Message{['lastDocumentSession'];['currentDocumentSession'];static ['DESCRIPTOR_NAME']='GetDocumentDetailsResponse';static ['DESCRIPTOR']={'fields':{'lastDocumentSessionId':{'type':'string','id':0x1},'lastDocumentSessionOperationId':{'type':'string','id':0x2},'currentDocumentSessionId':{'type':'string','id':0x3},'currentDocumentSessionVersion':{'type':'uint32','id':0x4},'currentDocumentSessionOperationId':{'type':'string','id':0x5}}};constructor(_0x5b4084,_0x928247){super(),this['lastDocumentSession']=_0x5b4084,this['currentDocumentSession']=_0x928247;}get['data'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}['toJSON'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}static['fromJSON'](_0x307d47){const _0x2e17c3=_0x307d47['lastDocumentSessionId']?{'id':_0x307d47['lastDocumentSessionId'],'lastOperationId':_0x307d47['lastDocumentSessionOperationId']}:void 0x0,_0x1c407b=_0x307d47['currentDocumentSessionId']?{'lastOperationId':_0x307d47['currentDocumentSessionOperationId'],'version':_0x307d47['currentDocumentSessionVersion'],'id':_0x307d47['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x2e17c3,_0x1c407b);}}class GetDocumentDetailsMessage extends Message{['documentId'];static ['TYPE']='14';static ['READABLE_TYPE_NAME']='getDocumentDetails';static ['DESCRIPTOR_NAME']='GetDocumentDetailsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'environmentId':{'type':'string','id':0x2}}};constructor(_0x1c02c8){super(),this['documentId']=_0x1c02c8;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x472006){return new GetDocumentDetailsMessage(_0x472006['documentId']);}}class CollaborativeEditingService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(_0x413ec5,_0x310d3c){if(super(),!_0x413ec5)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x310d3c??v4(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x413ec5;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x5b6634,_0x1b2d59={'buffers':[],'types':[]},_0x45047a){const _0x553814=new CollaborativeEditingConnectMessage(this['getId'](),_0x1b2d59['buffers'],_0x1b2d59['types'],this['_bundleVersion'],_0x45047a);return this['_connect'](_0x5b6634,_0x553814);}['reconnect'](_0x4449ca,_0x591475){if(this['isConnected']())throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x4449ca);return this['_connect'](_0x4449ca,new CollaborativeEditingReconnectMessage(this['getId'](),_0x591475,this['_bundleVersion']));}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['getDocumentDetails'](){const _0x3e851d=new GetDocumentDetailsMessage(this['getId']());if(!this['_wsGateway'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x5edff4=await this['_wsGateway']['_sendRequest'](0x1,GetDocumentDetailsMessage['TYPE'],MessagesCompressor['encode'](_0x3e851d));return MessagesCompressor['decode'](_0x5edff4,GetDocumentDetailsResponse);}async['sendOperations'](_0xc5b209,_0x3d71ab,_0x371836){if(!_0xc5b209?.['types']?.['length'])throw new CKEditorCloudServicesError('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x936f84='number'==typeof _0x3d71ab?_0x3d71ab:parseInt(_0x3d71ab);if(!Number['isInteger'](_0x936f84)||_0x936f84<0x0)throw new CKEditorCloudServicesError('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x23238b=new CollaborativeEditingUpdateMessage(this['getId'](),_0xc5b209['buffers'],_0xc5b209['types'],_0x936f84,[],_0x371836);if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x223555=await this['_wsGateway']['_sendRequest'](0x1,CollaborativeEditingUpdateMessage['TYPE'],MessagesCompressor['encode'](_0x23238b));return MessagesCompressor['decode'](_0x223555,CollaborativeEditingResponse);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await Sessions$1['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](_0x31e3b9,_0x180e8b){return Sessions$1['getConnectedSessions'](_0x31e3b9,_0x180e8b,0x1);}async['_connect'](_0x25df5b,_0x180f06){if(this['isConnected']())return;if(_0x25df5b['state']!==WebSocketGateway$1['STATE_CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x25df5b);this['_wsGateway']=_0x25df5b,this['stopListening'](_0x25df5b,'change:state');const _0x531ba4=await _0x25df5b['_sendRequest'](0x1,_0x180f06['constructor']['TYPE'],MessagesCompressor['encode'](_0x180f06)),_0x3f4bc8=MessagesCompressor['decode'](_0x531ba4,CollaborativeEditingConnectResponse);return this['listenTo'](_0x25df5b,'change:state',(_0x1201ae,_0x1bbe55,_0x164c3c)=>this['_onWsGatewayStateChange'](_0x164c3c),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x25df5b,_0x3f4bc8['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x3f4bc8;}['_connectToChannel'](_0x27e321,_0x644429){this['_channel']=_0x27e321['_getChannel'](0x1,_0x644429),this['listenTo'](this['_channel'],this['_channel']['getEventName'](CollaborativeEditingUpdateMessage['TYPE']),(_0x28e390,_0x5e3caf)=>{const _0x414fdc=MessagesCompressor['decode'](_0x5e3caf,CollaborativeEditingUpdateMessage);this['fire']('operationsReceived',_0x414fdc['baseVersion'],_0x414fdc['data'],_0x414fdc['metadata']);});}['_onWsGatewayStateChange'](_0x264b75){_0x264b75===WebSocketGateway$1['STATE_DISCONNECTED']&&this['disconnect']();}}class CommentDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'commentThreadId':{'id':0x2,'type':'string'},'userId':{'id':0x3,'type':'string'},'content':{'id':0x4,'type':'string'},'documentId':{'id':0x5,'type':'string'},'createdAt':{'id':0x6,'type':'string'},'attributes':{'id':0x7,'type':'string'}}};static['toJSON'](_0x30a8a2){return{..._0x30a8a2,'createdAt':_0x30a8a2['createdAt']?.['toISOString'](),'attributes':_0x30a8a2['attributes']?JSON['stringify'](_0x30a8a2['attributes']):null};}static['fromJSON'](_0x394c81){return{..._0x394c81,'createdAt':new Date(_0x394c81['createdAt']),'attributes':_0x394c81['attributes']?JSON['parse'](_0x394c81['attributes']):null};}}class CommentsThreadDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentsThreadDescriptor';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4},'context':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'deletedAt':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8},'unlinkedAt':{'type':'string','id':0x9}}};static['toJSON'](_0x532427){return{..._0x532427,'createdAt':_0x532427['createdAt']?.['toISOString'](),'deletedAt':_0x532427['deletedAt']?.['toISOString'](),'resolvedAt':_0x532427['resolvedAt']?.['toISOString'](),'attributes':_0x532427['attributes']?JSON['stringify'](_0x532427['attributes']):null,'context':_0x532427['context']?JSON['stringify'](_0x532427['context']):_0x532427['context'],'comments':_0x532427['comments']?.['map'](CommentDescriptor['toJSON']),'unlinkedAt':_0x532427['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x5ad607){return{..._0x5ad607,'createdAt':_0x5ad607['createdAt']?new Date(_0x5ad607['createdAt']):void 0x0,'deletedAt':_0x5ad607['deletedAt']?new Date(_0x5ad607['deletedAt']):void 0x0,'resolvedAt':_0x5ad607['resolvedAt']?new Date(_0x5ad607['resolvedAt']):void 0x0,'attributes':_0x5ad607['attributes']?JSON['parse'](_0x5ad607['attributes']):null,'context':_0x5ad607['context']?JSON['parse'](_0x5ad607['context']):void 0x0,'comments':_0x5ad607['comments']?.['map'](CommentDescriptor['fromJSON']),'unlinkedAt':_0x5ad607['unlinkedAt']?new Date(_0x5ad607['unlinkedAt']):void 0x0};}}class AddCommentMessage extends Message{['documentId'];['commentThreadId'];['content'];['commentId'];['userId'];['attributes'];['commentThread'];['createdAt'];static ['TYPE']='91';static ['READABLE_TYPE_NAME']='addComment';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'content':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3},'commentId':{'type':'string','id':0x4},'createdAt':{'type':'string','id':0x5},'userId':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'commentThread':{'type':'CommentsThreadDescriptor','id':0x8}}};constructor(_0x2e5c24,_0x15206b,_0x17cc3c,_0x209f2d='',_0x280e7a,_0x194d28='',_0x12090c=null,_0x2b07e6){super(),this['documentId']=_0x2e5c24,this['commentThreadId']=_0x15206b,this['content']=_0x17cc3c,this['commentId']=_0x209f2d,this['userId']=_0x194d28,this['attributes']=_0x12090c,this['commentThread']=_0x2b07e6,this['createdAt']=_0x280e7a?new Date(_0x280e7a):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'content':this['content'],'documentId':this['documentId'],'commentId':this['commentId'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'userId':this['userId'],'attributes':JSON['stringify'](this['attributes']),'commentThread':this['commentThread']?CommentsThreadDescriptor['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x5632d6){return new AddCommentMessage(_0x5632d6['documentId'],_0x5632d6['commentThreadId'],_0x5632d6['content'],_0x5632d6['commentId']?_0x5632d6['commentId']:void 0x0,_0x5632d6['createdAt']?new Date(_0x5632d6['createdAt']):void 0x0,_0x5632d6['userId']?_0x5632d6['userId']:void 0x0,_0x5632d6['attributes']?JSON['parse'](_0x5632d6['attributes']):{},_0x5632d6['commentThread']?CommentsThreadDescriptor['fromJSON'](_0x5632d6['commentThread']):void 0x0);}}class AddCommentResponse extends Message{['commentThreadId'];['commentId'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}};constructor(_0x5d6fff,_0x1bd575,_0x5f223f){super(),this['commentThreadId']=_0x5d6fff,this['commentId']=_0x1bd575,this['createdAt']=new Date(_0x5f223f);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x498728){return new AddCommentResponse(_0x498728['commentThreadId'],_0x498728['commentId'],_0x498728['createdAt']);}}class ConnectMessage extends Message{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x4e79c1){super(),this['documentId']=_0x4e79c1;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x2676ef){return new ConnectMessage(_0x2676ef['documentId']);}}class ConnectResponse extends Message{['channel'];['_threads'];['_threadsV2'];['threads'];static ['DESCRIPTOR_NAME']='CommentsV2ConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'threads':{'type':'string','rule':'repeated','id':0x2},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x3}}};constructor(_0x4dc79c,_0x26ab8f,_0x47bb57){super(),this['channel']=_0x4dc79c,this['_threads']=_0x26ab8f,this['_threadsV2']=_0x47bb57,this['threads']=_0x47bb57?.['length']?_0x47bb57:_0x26ab8f;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](_0x1fdbca=>JSON['stringify'](_0x1fdbca)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](_0x40bd9d){return new ConnectResponse(_0x40bd9d['channel'],_0x40bd9d['threads']?.['map'](_0x469fe7=>JSON['parse'](_0x469fe7)),_0x40bd9d['threadsV2']?.['map'](CommentsThreadDescriptor['fromJSON']));}}class RemoveCommentMessage extends Message{['documentId'];['commentThreadId'];['commentId'];static ['TYPE']='95';static ['READABLE_TYPE_NAME']='removeComment';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3}}};constructor(_0x36e0ca,_0x1159b1,_0x2a09f3){super(),this['documentId']=_0x36e0ca,this['commentThreadId']=_0x1159b1,this['commentId']=_0x2a09f3;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x5cc59e){return new RemoveCommentMessage(_0x5cc59e['documentId'],_0x5cc59e['commentThreadId'],_0x5cc59e['commentId']);}}class RemoveCommentThreadMessage extends Message{['documentId'];['commentThreadId'];static ['TYPE']='97';static ['READABLE_TYPE_NAME']='removeCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x2f6598,_0x3315f3){super(),this['documentId']=_0x2f6598,this['commentThreadId']=_0x3315f3;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x5b6500){return new RemoveCommentThreadMessage(_0x5b6500['documentId'],_0x5b6500['commentThreadId']);}}class UpdateCommentMessage extends Message{['documentId'];['commentThreadId'];['commentId'];['content'];['attributes'];['isAttributesUpdated'];['commentThread'];static ['TYPE']='96';static ['READABLE_TYPE_NAME']='updateComment';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'content':{'type':'string','id':0x3},'documentId':{'type':'string','id':0x4},'attributes':{'type':'string','id':0x5},'isAttributesUpdated':{'type':'bool','id':0x6},'commentThread':{'type':'CommentsThreadDescriptor','id':0x7}}};constructor(_0x4f8628,_0x4ff8d7,_0xd33716,_0x48a390,_0x6e395b=null,_0x51d3bd=!0x1,_0x4a87a7){super(),this['documentId']=_0x4f8628,this['commentThreadId']=_0x4ff8d7,this['commentId']=_0xd33716,this['content']=_0x48a390,this['attributes']=_0x6e395b,this['isAttributesUpdated']=_0x51d3bd,this['commentThread']=_0x4a87a7;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'content':this['content'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'isAttributesUpdated':this['isAttributesUpdated'],'commentThread':this['commentThread']?CommentsThreadDescriptor['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x21d962){return new UpdateCommentMessage(_0x21d962['documentId'],_0x21d962['commentThreadId'],_0x21d962['commentId'],_0x21d962['content'],_0x21d962['attributes']?JSON['parse'](_0x21d962['attributes']):null,_0x21d962['isAttributesUpdated'],_0x21d962['commentThread']?CommentsThreadDescriptor['fromJSON'](_0x21d962['commentThread']):void 0x0);}}class GetCommentThreadMessage extends Message{['commentThreadId'];['documentId'];static ['TYPE']='93';static ['READABLE_TYPE_NAME']='getComment';static ['DESCRIPTOR_NAME']='CommentsV2GetCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x5587c7,_0x5dda4c){super(),this['commentThreadId']=_0x5587c7,this['documentId']=_0x5dda4c;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0x92d98a){return new GetCommentThreadMessage(_0x92d98a['commentThreadId'],_0x92d98a['documentId']);}}class GetCommentThreadResponse extends Message{['commentThreadId'];['_comments'];['_commentsV2'];['resolvedBy'];['comments'];['createdAt'];['deletedAt'];['resolvedAt'];['attributes'];['context'];['unlinkedAt'];static ['DESCRIPTOR_NAME']='CommentsV2GetCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'string','rule':'repeated','id':0x2},'commentsV2':{'type':'CommentDescriptor','rule':'repeated','id':0x3},'resolvedAt':{'type':'string','id':0x4},'resolvedBy':{'type':'string','id':0x5},'context':{'type':'string','id':0x6},'createdAt':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'attributes':{'type':'string','id':0x9},'unlinkedAt':{'type':'string','id':0xa}}};constructor(_0x2583bd,_0x86e8bd,_0x47b22d,_0x5330ec,_0xfe3419,_0x4e4b91,_0xa008d6,_0x40682d,_0x2f8ec2,_0x5dad01){super(),this['commentThreadId']=_0x2583bd,this['_comments']=_0x86e8bd,this['_commentsV2']=_0x47b22d,this['resolvedBy']=_0xfe3419,this['comments']=_0x47b22d?.['length']?_0x47b22d:_0x86e8bd,this['createdAt']=_0xa008d6?new Date(_0xa008d6):void 0x0,this['deletedAt']='string'==typeof _0x40682d?new Date(_0x40682d):_0x40682d,this['resolvedAt']='string'==typeof _0x2f8ec2?new Date(_0x2f8ec2):_0x2f8ec2,this['unlinkedAt']='string'==typeof _0x5dad01?new Date(_0x5dad01):_0x5dad01,this['attributes']='string'==typeof _0x5330ec?JSON['parse'](_0x5330ec):_0x5330ec,this['context']='string'==typeof _0x4e4b91?JSON['parse'](_0x4e4b91):_0x4e4b91;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'comments':this['_comments']?.['map'](_0xaa5519=>JSON['stringify'](_0xaa5519)),'commentsV2':this['_commentsV2']?.['map'](CommentDescriptor['toJSON']),'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'resolvedBy':this['resolvedBy'],'createdAt':this['createdAt']?.['toISOString'](),'deletedAt':this['deletedAt']?.['toISOString'](),'resolvedAt':this['resolvedAt']?.['toISOString'](),'unlinkedAt':this['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x1bf4ff){return new GetCommentThreadResponse(_0x1bf4ff['commentThreadId'],_0x1bf4ff['comments']?.['map'](_0x1f14d4=>function(_0x22ca63){const _0x5964bc=JSON['parse'](_0x22ca63);return{..._0x5964bc,'createdAt':new Date(_0x5964bc['createdAt'])};}(_0x1f14d4)),_0x1bf4ff['commentsV2']?.['map'](CommentDescriptor['fromJSON']),_0x1bf4ff['attributes']?JSON['parse'](_0x1bf4ff['attributes']):_0x1bf4ff['attributes'],_0x1bf4ff['resolvedBy'],_0x1bf4ff['context']?JSON['parse'](_0x1bf4ff['context']):_0x1bf4ff['context'],_0x1bf4ff['createdAt'],_0x1bf4ff['deletedAt'],_0x1bf4ff['resolvedAt'],_0x1bf4ff['unlinkedAt']);}}class GetDocumentThreadsMessage extends Message{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x44ebf0){super(),this['documentId']=_0x44ebf0;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x30006a){return new GetDocumentThreadsMessage(_0x30006a['documentId']);}}class GetDocumentThreadsResponse extends Message{['_threads'];['_threadsV2'];['threads'];static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsResponse';static ['DESCRIPTOR']={'fields':{'threads':{'type':'string','rule':'repeated','id':0x1},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x2}}};constructor(_0x169868,_0x4bab31){super(),this['_threads']=_0x169868,this['_threadsV2']=_0x4bab31,this['threads']=_0x4bab31?.['length']?_0x4bab31:_0x169868;}['toJSON'](){return{'threads':this['_threads']?.['map'](_0x54d599=>JSON['stringify'](_0x54d599)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](_0x577f2a){return new GetDocumentThreadsResponse(_0x577f2a['threads']?.['map'](_0x30489a=>function(_0x17a6b1){const _0x48c2ef=JSON['parse'](_0x17a6b1),_0xb64795={..._0x48c2ef};return _0x48c2ef['comments']&&(_0xb64795['comments']=_0x48c2ef['comments']?.['map'](_0x56fa38=>({..._0x56fa38,'createdAt':new Date(_0x56fa38['createdAt'])}))),_0xb64795;}(_0x30489a)),_0x577f2a['threadsV2']?.['map'](CommentsThreadDescriptor['fromJSON']));}}class CommentThreadAddedCommentDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](_0x385725){return{'commentId':_0x385725['commentId'],'createdAt':_0x385725['createdAt']?.['toISOString']()};}static['fromJSON'](_0x450734){return{'commentId':_0x450734['commentId'],'createdAt':new Date(_0x450734['createdAt'])};}}class AddCommentThreadResponse extends Message{['commentThreadId'];['comments'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'createdAt':{'type':'string','id':0x2},'comments':{'type':'CommentThreadAddedCommentDescriptor','rule':'repeated','id':0x3}}};constructor(_0x1add7d,_0x59e98a,_0x557e5f=[]){super(),this['commentThreadId']=_0x1add7d,this['comments']=_0x557e5f,this['createdAt']=new Date(_0x59e98a);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0x16780c=>CommentThreadAddedCommentDescriptor['toJSON'](_0x16780c))};}static['fromJSON'](_0x33b789){return new AddCommentThreadResponse(_0x33b789['commentThreadId'],_0x33b789['createdAt'],_0x33b789['comments']['map'](_0x191c5a=>CommentThreadAddedCommentDescriptor['fromJSON'](_0x191c5a)));}}class AddCommentThreadMessage extends Message{['documentId'];['commentThreadId'];['comments'];['context'];['resolvedBy'];['attributes'];['createdAt'];['resolvedAt'];['deletedAt'];static ['TYPE']='140';static ['READABLE_TYPE_NAME']='addCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'commentThreadId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'resolvedAt':{'type':'string','id':0x5},'resolvedBy':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x9}}};constructor(_0x3dc7e9,_0x5338e0,_0x288115=[],_0x24f30c,_0x3c695a=null,_0x49389d=null,_0x26a5ae=null,_0x3fd659=null,_0x109cc9=null){super(),this['documentId']=_0x3dc7e9,this['commentThreadId']=_0x5338e0,this['comments']=_0x288115,this['context']=_0x24f30c,this['resolvedBy']=_0x3c695a,this['attributes']=_0x109cc9,this['createdAt']=_0x49389d?new Date(_0x49389d):'',this['resolvedAt']=_0x26a5ae?new Date(_0x26a5ae):'',this['deletedAt']=_0x3fd659?new Date(_0x3fd659):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']instanceof Date?this['resolvedAt']['toISOString']():this['resolvedAt'],'deletedAt':this['deletedAt']instanceof Date?this['deletedAt']['toISOString']():this['deletedAt'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'comments':this['comments']?.['map'](_0x79979e=>CommentDescriptor['toJSON'](_0x79979e))};}static['fromJSON'](_0x44b207){return new AddCommentThreadMessage(_0x44b207['documentId'],_0x44b207['commentThreadId'],_0x44b207['comments']?.['map'](_0x477375=>CommentDescriptor['fromJSON']({..._0x477375,'documentId':_0x44b207['documentId'],'commentThreadId':_0x44b207['commentThreadId']})),_0x44b207['context']?JSON['parse'](_0x44b207['context']):_0x44b207['context'],_0x44b207['resolvedBy'],_0x44b207['createdAt']?new Date(_0x44b207['createdAt']):void 0x0,_0x44b207['resolvedAt']?new Date(_0x44b207['resolvedAt']):void 0x0,_0x44b207['deletedAt']?new Date(_0x44b207['deletedAt']):void 0x0,_0x44b207['attributes']?JSON['parse'](_0x44b207['attributes']):_0x44b207['attributes']);}}class ResolveCommentThreadMessage extends Message{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['TYPE']='142';static ['READABLE_TYPE_NAME']='resolveCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedBy':{'type':'string','id':0x3},'resolvedAt':{'type':'string','id':0x4}}};constructor(_0x178776,_0x4e98e9,_0x168767,_0x1712ef){super(),this['commentThreadId']=_0x178776,this['documentId']=_0x4e98e9,this['resolvedBy']=_0x168767,this['resolvedAt']=_0x1712ef?new Date(_0x1712ef):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x33701d){return new ResolveCommentThreadMessage(_0x33701d['commentThreadId'],_0x33701d['documentId'],_0x33701d['resolvedBy'],_0x33701d['resolvedAt']);}}class ReopenCommentThreadMessage extends Message{['commentThreadId'];['documentId'];static ['TYPE']='141';static ['READABLE_TYPE_NAME']='reopenCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ReopenCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x1cd550,_0xf81ba0){super(),this['commentThreadId']=_0x1cd550,this['documentId']=_0xf81ba0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x11d048){return new ReopenCommentThreadMessage(_0x11d048['commentThreadId'],_0x11d048['documentId']);}}class UpdateCommentThreadMessage extends Message{['commentThreadId'];['documentId'];['context'];['attributes'];['unlinkedAt'];static ['TYPE']='143';static ['READABLE_TYPE_NAME']='updateCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'attributes':{'type':'string','id':0x4},'unlinkedAt':{'type':'string','id':0x5}}};constructor(_0x3f5856,_0x4e938f,_0x48024f,_0x551c83=null,_0x26b078=null){super(),this['commentThreadId']=_0x3f5856,this['documentId']=_0x4e938f,this['context']=_0x48024f,this['attributes']=_0x551c83,this['unlinkedAt']=_0x26b078?new Date(_0x26b078):'';}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'unlinkedAt':this['unlinkedAt']instanceof Date?this['unlinkedAt']['toISOString']():this['unlinkedAt']};}static['fromJSON'](_0xfcd180){return new UpdateCommentThreadMessage(_0xfcd180['commentThreadId'],_0xfcd180['documentId'],_0xfcd180['context']?JSON['parse'](_0xfcd180['context']):_0xfcd180['context'],_0xfcd180['attributes']?JSON['parse'](_0xfcd180['attributes']):null,_0xfcd180['unlinkedAt']?new Date(_0xfcd180['unlinkedAt']):null);}}class ResolveCommentThreadResponse extends Message{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4}}};constructor(_0x228f22,_0x1e7196,_0x2de791,_0x20a7f4){super(),this['commentThreadId']=_0x228f22,this['documentId']=_0x1e7196,this['resolvedBy']=_0x2de791,this['resolvedAt']=new Date(_0x20a7f4);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0x2d3f6c){return new ResolveCommentThreadResponse(_0x2d3f6c['commentThreadId'],_0x2d3f6c['documentId'],_0x2d3f6c['resolvedBy'],_0x2d3f6c['resolvedAt']);}}class CommentsService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];['_connectedSessions'];static ['_SERVICE']=0x9;constructor(_0x5e4e11){super(),this['_documentId']=_0x5e4e11;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x3d2425){if(this['_isConnected'])return;if(_0x3d2425['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x3d2425);const _0x4d3086=new ConnectMessage(this['_documentId']);this['_wsGateway']=_0x3d2425,this['stopListening'](_0x3d2425,'change:state');const _0x2d497c=await _0x3d2425['_sendRequest'](0x9,ConnectMessage['TYPE'],MessagesCompressor['encode'](_0x4d3086)),{channel:_0xdf5589,threads:_0x27fe92}=MessagesCompressor['decode'](_0x2d497c,ConnectResponse);return this['listenTo'](_0x3d2425,'change:state',(_0x272232,_0x3a1159,_0x3414fd)=>this['_onWsGatewayStateChange'](_0x3414fd),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x3d2425,_0xdf5589),this['_isConnected']=!0x0,this['fire']('connected'),_0x27fe92;}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['addComment'](_0x8e705e,_0x56530a,_0x1d069a,_0x3fd392){const _0x416aa5=new AddCommentMessage(this['_documentId'],_0x8e705e,_0x1d069a,_0x56530a,void 0x0,void 0x0,_0x3fd392),_0x487094=await this['_sendRequest'](AddCommentMessage['TYPE'],_0x416aa5);return MessagesCompressor['decode'](_0x487094,AddCommentResponse);}async['updateComment'](_0x124b95,_0x3b6d01,_0x4f014b,_0x4ebafe){const _0x460bdd=void 0x0!==_0x4ebafe,_0x29bf71=new UpdateCommentMessage(this['_documentId'],_0x124b95,_0x3b6d01,_0x4f014b,_0x4ebafe,_0x460bdd);await this['_sendRequest'](UpdateCommentMessage['TYPE'],_0x29bf71);}async['removeComment'](_0x20582d,_0x2b5a7f){const _0x599993=new RemoveCommentMessage(this['_documentId'],_0x20582d,_0x2b5a7f);await this['_sendRequest'](RemoveCommentMessage['TYPE'],_0x599993);}async['removeCommentThread'](_0x4d7af9){const _0x2c07af=new RemoveCommentThreadMessage(this['_documentId'],_0x4d7af9);await this['_sendRequest'](RemoveCommentThreadMessage['TYPE'],_0x2c07af);}async['addCommentThread'](_0x2b879a){const _0x1273e4=new AddCommentThreadMessage(this['_documentId'],_0x2b879a['commentThreadId'],_0x2b879a['comments']?.['map'](_0x180eaa=>({..._0x180eaa,'documentId':this['_documentId'],'commentThreadId':_0x2b879a['commentThreadId']})),_0x2b879a['context'],_0x2b879a['resolvedBy'],_0x2b879a['createdAt'],_0x2b879a['resolvedAt'],_0x2b879a['deletedAt'],_0x2b879a['attributes']),_0x53a66a=await this['_sendRequest'](AddCommentThreadMessage['TYPE'],_0x1273e4);return MessagesCompressor['decode'](_0x53a66a,AddCommentThreadResponse);}async['resolveCommentThread'](_0xfc5c24){const _0x16b6a1=new ResolveCommentThreadMessage(_0xfc5c24,this['_documentId']),_0x106a8d=await this['_sendRequest'](ResolveCommentThreadMessage['TYPE'],_0x16b6a1);return MessagesCompressor['decode'](_0x106a8d,ResolveCommentThreadResponse);}async['reopenCommentThread'](_0x449700){const _0x52b814=new ReopenCommentThreadMessage(_0x449700,this['_documentId']);await this['_sendRequest'](ReopenCommentThreadMessage['TYPE'],_0x52b814);}async['updateCommentThread'](_0x2cc4d8){const _0x3692a6=new UpdateCommentThreadMessage(_0x2cc4d8['commentThreadId'],this['_documentId'],_0x2cc4d8['context'],_0x2cc4d8['attributes'],_0x2cc4d8['unlinkedAt']);await this['_sendRequest'](UpdateCommentThreadMessage['TYPE'],_0x3692a6);}async['getCommentThread'](_0x3d12e1,_0x32e74f=0x1){const _0x23b6f8=new GetCommentThreadMessage(_0x3d12e1,this['_documentId']);try{const _0x4ff701=await this['_sendRequest'](GetCommentThreadMessage['TYPE'],_0x23b6f8),_0x194c79=MessagesCompressor['decode'](_0x4ff701,GetCommentThreadResponse);return{'commentThreadId':_0x194c79['commentThreadId'],'comments':_0x194c79['comments'],'attributes':_0x194c79['attributes'],'context':_0x194c79['context'],'resolvedAt':_0x194c79['resolvedAt'],'resolvedBy':_0x194c79['resolvedBy'],'deletedAt':_0x194c79['deletedAt'],'unlinkedAt':_0x194c79['unlinkedAt']};}catch(_0x2f8a5b){if('CKEditorCloudServicesServerError'===_0x2f8a5b['name']&&'404'===_0x2f8a5b['code']&&_0x32e74f<0x5)return await(_0x344d12=0x64*_0x32e74f,new Promise(_0x585115=>{setTimeout(_0x585115,_0x344d12);})),this['getCommentThread'](_0x3d12e1,_0x32e74f+0x1);if('CKEditorCloudServicesServerError'===_0x2f8a5b['name'])throw _0x2f8a5b;throw CKEditorCloudServicesServerError['fromPublicError'](_0x2f8a5b);}var _0x344d12;}async['getDocumentThreads'](){const _0x2b5258=new GetDocumentThreadsMessage(this['_documentId']),_0xf35878=await this['_sendRequest'](GetDocumentThreadsMessage['TYPE'],_0x2b5258),{threads:_0x88520}=MessagesCompressor['decode'](_0xf35878,GetDocumentThreadsResponse);return{'threads':_0x88520};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await Sessions$1['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](_0x486253,_0x446606){this['_channel']=_0x486253['_getChannel'](CommentsService['_SERVICE'],_0x446606),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentMessage['TYPE']),(_0x1843ee,_0xf087c4)=>{const _0x10b821=MessagesCompressor['decode'](_0xf087c4,AddCommentMessage);this['fire']('commentAdded',_0x10b821);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentMessage['TYPE']),(_0x400126,_0x2da5c0)=>{const _0x30c411=MessagesCompressor['decode'](_0x2da5c0,RemoveCommentMessage);this['fire']('commentRemoved',_0x30c411);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentMessage['TYPE']),(_0x3bdf30,_0x45ff19)=>{const _0x3b5f85=MessagesCompressor['decode'](_0x45ff19,UpdateCommentMessage);this['fire']('commentUpdated',_0x3b5f85);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentThreadMessage['TYPE']),(_0x52f9af,_0x506fe6)=>{const _0x34de2c=MessagesCompressor['decode'](_0x506fe6,RemoveCommentThreadMessage);this['fire']('commentThreadRemoved',_0x34de2c);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentThreadMessage['TYPE']),(_0x9e89cd,_0xe1a5b8)=>{const _0x24c522=MessagesCompressor['decode'](_0xe1a5b8,AddCommentThreadMessage);this['fire']('commentThreadAdded',_0x24c522);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentThreadMessage['TYPE']),(_0x1d9031,_0x455db2)=>{const _0x101f22=MessagesCompressor['decode'](_0x455db2,UpdateCommentThreadMessage);this['fire']('commentThreadUpdated',_0x101f22);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ResolveCommentThreadMessage['TYPE']),(_0x4efc7e,_0x478ee1)=>{const _0x159bf0=MessagesCompressor['decode'](_0x478ee1,ResolveCommentThreadMessage);this['fire']('commentThreadResolved',_0x159bf0);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ReopenCommentThreadMessage['TYPE']),(_0x32fa43,_0x16bba0)=>{const _0x1ecae2=MessagesCompressor['decode'](_0x16bba0,ReopenCommentThreadMessage);this['fire']('commentThreadReopened',_0x1ecae2);}));}['_onWsGatewayStateChange'](_0x13e89e){_0x13e89e===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x3018ca,_0x220a9d){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x3018ca,MessagesCompressor['encode'](_0x220a9d));}}class WebSocketGateway extends ContextPlugin{static ['WebSocketGateway']=/* #__PURE__ -- @preserve */
((()=>WebSocketGateway$1)());static ['initialReconnectionInterval']=0x3e8;['connection'];['_reconnectionStack'];['_shouldPluginsReconnect'];['_domEmitter'];static get['requires'](){return['CloudServices',Notification];}static get['pluginName'](){return'WebSocketGateway';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2fad77){super(_0x2fad77),this['set']('state',WEB_SOCKET_GATEWAY_STATES['CONNECTED']),this['set']('_isBrowserOffline',!0x1),this['_reconnectionStack']=new Set(),this['_shouldPluginsReconnect']=!0x1,this['_domEmitter']=new(DomEmitterMixin())();}['init'](){const _0x53af87=this['context'],_0x30af14=_0x53af87['plugins']['get']('CloudServices'),_0x2549ee=_0x53af87['plugins']['get'](Notification);if(!_0x30af14['token'])throw new CKEditorError('websocketgateway-missing-token',this);if(!_0x30af14['webSocketUrl'])throw new CKEditorError('websocketgateway-missing-websocket-url',this);return this['_domEmitter']['listenTo'](window,'offline',()=>this['_isBrowserOffline']=!0x0),this['_domEmitter']['listenTo'](window,'online',()=>this['_isBrowserOffline']=!0x1),this['context']['config']['define']('cloudServices.connectionTimeout',0xa),this['context']['config']['define']('cloudServices.requestTimeout',0x14),WebSocketGateway['WebSocketGateway']['connect'](_0x30af14['token'],_0x30af14['webSocketUrl'],{'timeout':0x3e8*this['context']['config']['get']('cloudServices.connectionTimeout'),'requestTimeout':0x3e8*this['context']['config']['get']('cloudServices.requestTimeout')})['then'](_0x6cbfd1=>{if(this['connection']=_0x6cbfd1,this['bind']('state')['to'](_0x6cbfd1,'state',this,'_isBrowserOffline',(_0x99cf1c,_0x30b688)=>('connected'!==_0x99cf1c&&(this['_shouldPluginsReconnect']=!0x0),_0x30b688||_0x99cf1c!==WEB_SOCKET_GATEWAY_STATES['CONNECTED']?WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']:this['state']==WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['_shouldPluginsReconnect']?(this['_shouldPluginsReconnect']=!0x1,this['_reconnect'](),WEB_SOCKET_GATEWAY_STATES['CONNECTING']):WEB_SOCKET_GATEWAY_STATES['CONNECTED'])),this['connection']['on']('error',(_0x1382fb,_0x5f3892)=>{if('limitExceeded'!==_0x5f3892['code'])throw console['error'](_0x5f3892),new CKEditorError('cloudservices-init',null,{'originalError':_0x5f3892});_0x2549ee['showWarning']('The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.',{'title':'Connected\x20users\x20limit\x20exceeded','namespace':'real-time-collaboration'});}),!_0x6cbfd1['me'])return new Promise(_0x5d08a3=>_0x6cbfd1['on']('change:me',_0x5d08a3));})['catch'](_0x15c3f6=>{throw console['error'](_0x15c3f6),new CKEditorError('cloudservices-init',null,{'originalError':_0x15c3f6});});}['addToReconnectionStack'](_0x4468d5){if('function'!=typeof _0x4468d5['reconnect'])throw new CKEditorError('websocketgateway-invalid-plugin-interface',this);if(this['isInReconnectionStack'](_0x4468d5))throw new CKEditorError('websocketgateway-plugin-already-registered',this,{'name':_0x4468d5['constructor']['pluginName']});this['_reconnectionStack']['add'](_0x4468d5);}['removeFromReconnectionStack'](_0x5e7376){this['_reconnectionStack']['delete'](_0x5e7376);}['isInReconnectionStack'](_0x986c97){return this['_reconnectionStack']['has'](_0x986c97);}['_reconnect'](){return this['connection']['reconnect']()['then'](()=>Promise['all'](Array['from'](this['_reconnectionStack'],_0x3a7c8d=>_0x3a7c8d['reconnect']())))['then'](()=>this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'])['catch'](_0x15475f=>{throw console['error'](_0x15475f),new CKEditorError('cloudservices-reconnection-error',this['context']);});}['disconnect'](){this['connection']&&this['connection']['disconnect'](),this['state']=WEB_SOCKET_GATEWAY_STATES['DISCONNECTED'],this['_domEmitter']['stopListening']();}['destroy'](){this['disconnect'](),super['destroy']();}}class Sessions extends ContextPlugin{['channelSessions'];['channelConnectedUsers'];['allConnectedUsers'];['_registeredSessions'];['_uniqueUsersCount'];['_users'];static get['pluginName'](){return'Sessions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[WebSocketGateway,Users];}constructor(_0x54b3cc){super(_0x54b3cc),this['channelSessions']=new Map(),this['channelConnectedUsers']=new Map(),this['allConnectedUsers']=new Collection(),this['_registeredSessions']=new Map(),this['_uniqueUsersCount']=0x0,this['_users']=this['context']['plugins']['get'](Users);}['init'](){const _0x5ccf24=this['context']['plugins']['get'](WebSocketGateway);this['listenTo'](_0x5ccf24,'change:state',(_0x5e47eb,_0x1f9b69,_0x3ab07f)=>{if('connected'!==_0x3ab07f)this['channelSessions']['forEach'](_0x4a1118=>_0x4a1118['clear']()),this['channelConnectedUsers']['forEach'](_0x2dbb94=>_0x2dbb94['clear']()),this['allConnectedUsers']['clear']();else{for(const [_0x3623aa,_0xeff957]of this['_registeredSessions'])for(const _0x68e9a3 of _0xeff957)this['_handleSessionAdd'](_0x3623aa,_0x68e9a3);}}),this['_createUser'](_0x5ccf24['connection']['me'],!0x0);}['register'](_0x4bd9c1,_0x42f765){if(this['_registeredSessions']['has'](_0x4bd9c1))throw new CKEditorError('sessions-register-already-registered',null,{'channelId':_0x4bd9c1});this['_registeredSessions']['set'](_0x4bd9c1,_0x42f765),this['channelSessions']['set'](_0x4bd9c1,new Collection()),this['channelConnectedUsers']['set'](_0x4bd9c1,new Collection()),this['listenTo'](_0x42f765,'add',(_0x89057e,_0x5b84d3)=>this['_handleSessionAdd'](_0x4bd9c1,_0x5b84d3)),this['listenTo'](_0x42f765,'remove',(_0x1b91bf,_0x43bbdd)=>this['_handleSessionRemove'](_0x4bd9c1,_0x43bbdd));for(const _0x429053 of _0x42f765)this['_handleSessionAdd'](_0x4bd9c1,_0x429053);}['unregister'](_0x3f6e47){if(!this['_registeredSessions']['has'](_0x3f6e47))throw new CKEditorError('sessions-unregister-not-exist',null,{'channelId':_0x3f6e47});const _0x2ff8a1=this['_registeredSessions']['get'](_0x3f6e47);this['stopListening'](_0x2ff8a1);for(const _0x3752a7 of _0x2ff8a1)'connected'===this['context']['plugins']['get'](WebSocketGateway)['state']&&this['_handleSessionRemove'](_0x3f6e47,_0x3752a7);this['_registeredSessions']['delete'](_0x3f6e47),this['channelSessions']['delete'](_0x3f6e47),this['channelConnectedUsers']['delete'](_0x3f6e47);}get['mySessionId'](){return this['context']['plugins']['get'](WebSocketGateway)['connection']['sessionId'];}['getUserBySessionId'](_0xbafb13){for(const _0x27956d of this['channelSessions']['values']())for(const _0x567657 of _0x27956d)if(_0x567657['id']===_0xbafb13)return _0x567657['user'];}['getUserSessions'](_0x18d9fe,_0x1b5057){const _0x27dda4=_0x1b5057?[this['channelSessions']['get'](_0x1b5057)]:this['channelSessions']['values'](),_0x332720=new Set();for(const _0x17a18 of _0x27dda4)for(const _0x448423 of _0x17a18)_0x448423['user']['id']===_0x18d9fe['id']&&_0x332720['add'](_0x448423['id']);return _0x332720;}['getUserRole'](_0x343d77){for(const _0x514c62 of this['channelSessions']['values']())for(const _0x490c45 of _0x514c62)if(_0x490c45['user']===_0x343d77)return _0x490c45['role'];}['_handleSessionAdd'](_0x27d627,_0x455a45){if('connected'!==this['context']['plugins']['get'](WebSocketGateway)['state'])return;const _0x38a8c9=_0x455a45['user'],_0x4d08b6=this['_users']['getUser'](_0x38a8c9['id'])||this['_createUser'](_0x38a8c9),_0xb8ceb1=Object['assign']({},_0x455a45,{'user':_0x4d08b6});if(this['channelSessions']['get'](_0x27d627)['add'](_0xb8ceb1),!_0x38a8c9['hiddenInPresenceList']){const _0x1d8b5f=this['channelConnectedUsers']['get'](_0x27d627);_0x1d8b5f['has'](_0x4d08b6['id'])||_0x1d8b5f['add'](_0x4d08b6),this['allConnectedUsers']['has'](_0x4d08b6['id'])||_0x38a8c9['hiddenInPresenceList']||this['allConnectedUsers']['add'](_0x4d08b6,_0x4d08b6['isMe']?0x0:void 0x0);}this['fire']('sessionAdd:'+_0x27d627,{'channelId':_0x27d627,'session':_0xb8ceb1});}['_handleSessionRemove'](_0x5222df,_0x3ba151){if('connected'!==this['context']['plugins']['get'](WebSocketGateway)['state'])return;const _0x146b05=this['channelConnectedUsers']['get'](_0x5222df),_0x1f082c=_0x3ba151['user'];_0x1f082c['id']&&(this['channelSessions']['get'](_0x5222df)['remove'](_0x3ba151['id']),_0x146b05['has'](_0x1f082c['id'])&&!this['getUserSessions'](_0x1f082c,_0x5222df)['size']&&_0x146b05['remove'](_0x1f082c['id']),this['allConnectedUsers']['get'](_0x1f082c['id'])&&!this['getUserSessions'](_0x1f082c)['size']&&this['allConnectedUsers']['remove'](_0x1f082c['id']));}['_createUser'](_0x5a3b50,_0x439daf){const _0x422984=this['_users']['addUser'](_0x5a3b50);return _0x439daf&&this['_users']['defineMe'](_0x5a3b50['id']),_0x422984['orderNumber']=this['_uniqueUsersCount']++,_0x422984;}}class UserMarkers extends Plugin{['_domEmitter']=new(DomEmitterMixin())();static get['requires'](){return[Sessions];}static get['pluginName'](){return'UserMarkers';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2285a7=this['editor'],_0xcbb6f8=_0x2285a7['plugins']['get'](Sessions);_0x2285a7['conversion']['for']('editingDowncast')['markerToElement']({'model':'user:position','view':(_0x3c94f2,{writer:_0x26c600})=>createUserPositionViewElement(_0x3c94f2,_0x26c600,_0xcbb6f8,_0x2285a7)}),_0x2285a7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'user:range','view':_0x2ea412=>createUserRangeViewElement(_0x2ea412,_0xcbb6f8)}),createUserMarkerPostFixer(_0x2285a7),this['_domEmitter']['listenTo'](_0xd4e5e['document'],'keydown',(_0x1cad89,{key:_0x56c98d})=>{'Escape'===_0x56c98d&&hideHoveredUserPositionMarkersTooltips(_0x2285a7);},{'useCapture':!0x0});}['afterInit'](){const _0x515b7d=this['editor'],_0x176fc5=_0x515b7d['commands']['get']('undo');_0x176fc5&&_0x515b7d['model']['on']('applyOperation',(_0x4d9c71,_0x27d2cb)=>{const _0x52131f=_0x27d2cb[0x0];if(!_0x52131f['isDocumentOperation'])return;if('marker'!=_0x52131f['type']||!_0x52131f['name']['startsWith']('user:'))return;const _0x3892ca=_0x52131f['batch'];_0x176fc5['_createdBatches']['has'](_0x3892ca)&&(_0x52131f['newRange']=_0x52131f['oldRange']?_0x515b7d['model']['createRange'](_0x52131f['oldRange']['start'],_0x52131f['oldRange']['end']):null);},{'priority':'highest'});}['destroy'](){return this['_domEmitter']['stopListening'](),super['destroy']();}['createUserMarkerOperations'](){const _0x19f708=this['editor'],_0x203f30=_0x19f708['model']['document'],_0x194276=_0x19f708['plugins']['get'](Sessions);_0x19f708['model']['enqueueChange']({'isUndoable':!0x1},_0x363053=>{const _0x2d0e53='user:range:'+_0x194276['mySessionId'],_0x29770c='user:position:'+_0x194276['mySessionId'],_0x17256b=_0x19f708['model']['markers']['has'](_0x2d0e53);_0x19f708['editing']['view']['hasDomSelection']?updateUserMarkers(_0x194276['mySessionId'],_0x203f30['selection']['getFirstRange'](),_0x19f708['model'],_0x363053):_0x17256b&&(_0x363053['removeMarker'](_0x2d0e53),_0x363053['removeMarker'](_0x29770c));});}}function updateUserMarkers(_0x45015e,_0x4d6419,_0x3125b5,_0x2c9ff2){const _0x250f2e='user:range:'+_0x45015e,_0x3136c9='user:position:'+_0x45015e,_0x495640=_0x4d6419['getContainedElement']();let _0x20effc=_0x4d6419['start'];if(_0x495640&&_0x495640['is']('element','tableCell')){const _0x4e29a3=getPositionForText(_0x4d6419,_0x3125b5);_0x4e29a3&&(_0x20effc=_0x4e29a3,_0x4d6419=_0x2c9ff2['createRange'](_0x20effc));}const _0x4a939f=_0x2c9ff2['createRange'](_0x20effc);_0x3125b5['markers']['has'](_0x250f2e)?(_0x2c9ff2['updateMarker'](_0x250f2e,{'range':_0x4d6419}),_0x2c9ff2['updateMarker'](_0x3136c9,{'range':_0x4a939f})):(_0x2c9ff2['addMarker'](_0x250f2e,{'range':_0x4d6419,'usingOperation':!0x0}),_0x2c9ff2['addMarker'](_0x3136c9,{'range':_0x4a939f,'usingOperation':!0x0}));}function getPositionForText(_0x39eb73,_0x5cd5da){for(const _0x4879ee of _0x39eb73['getPositions']())if(_0x5cd5da['schema']['checkChild'](_0x4879ee,'$text'))return _0x4879ee;}function createUserPositionViewElement(_0x38e92c,_0x37c09f,_0x1799d0,_0x2b67e3){const _0x26d893=_0x38e92c['markerName']['split'](':')[0x2],_0x5f1f32=_0x1799d0['getUserBySessionId'](_0x26d893);if(!_0x5f1f32||_0x26d893===_0x1799d0['mySessionId'])return;if(!_0x2b67e3['model']['schema']['checkChild'](_0x38e92c['markerRange']['start'],'$text'))return;const _0x34e0fc={'class':'ck-user__marker\x20'+_0x5f1f32['color']['getMarkerClass'](),'data-name':_0x5f1f32['name'],'data-session-id':_0x26d893},_0x52d195=_0x2b67e3['model']['markers']['get'](_0x38e92c['markerName'])['getStart'](),_0x491715=_0x52d195['nodeAfter'],_0x55f362=_0x2b67e3['model']['schema'];if(_0x491715&&_0x55f362['isObject'](_0x491715)&&_0x55f362['isInline'](_0x491715)&&!_0x2b67e3['model']['markers']['get']('user:range:'+_0x26d893)['getRange']()['isCollapsed'])return;const _0xc8dd0e=_0x52d195['parent'];return _0x2b67e3['model']['schema']['isLimit'](_0xc8dd0e)&&!_0x2b67e3['model']['hasContent'](_0xc8dd0e)&&(_0x34e0fc['contenteditable']=!0x1),createUserPositionMarkerElement(_0x37c09f,_0x34e0fc,_0x5f1f32);}function createUserRangeViewElement(_0x40463c,_0x412cc2){const _0x235aec=_0x40463c['markerName']['split'](':')[0x2];if(_0x235aec===_0x412cc2['mySessionId'])return null;const _0x13b5d1=_0x412cc2['getUserBySessionId'](_0x235aec);return _0x13b5d1?{'id':_0x235aec,'classes':['ck-user__selection',_0x13b5d1['color']['getSelectionClass']()],'attributes':{'data-session-id':_0x235aec},'priority':0x7d0+_0x13b5d1['orderNumber']}:{'id':_0x235aec,'classes':[]};}function createUserPositionMarkerElement(_0x4b6fdc,_0x443cb4,_0x35b79b){const _0x5b8907=_0x4b6fdc['createUIElement']('span',_0x443cb4);return _0x4b6fdc['setCustomProperty']('userPositionMarker',!0x0,_0x5b8907),_0x5b8907['render']=function(_0x1b4124){const _0x20ec5a=this['toDomElement'](_0x1b4124),_0x252417=document['createElement']('span');return _0x252417['classList']['add']('ck-user__marker-tooltip'),_0x252417['setAttribute']('contenteditable','false'),_0x252417['setAttribute']('spellcheck','false'),_0x252417['textContent']=_0x35b79b['name'],_0x20ec5a['innerHTML']='⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>'+_0x252417['outerHTML']+'⁠',_0x20ec5a['addEventListener']('mouseenter',()=>{_0x20ec5a['classList']['add']('ck-user__marker_hovered');}),_0x20ec5a['addEventListener']('mouseleave',()=>{_0x20ec5a['classList']['remove']('ck-user__marker_hovered');}),_0x20ec5a;},_0x5b8907['isSimilar']=function(_0x4e97c7){return!(!this['getCustomProperty']('userPositionMarker')||!_0x4e97c7['getCustomProperty']('userPositionMarker')||this['getAttribute']('data-session-id')!=_0x4e97c7['getAttribute']('data-session-id'));},_0x5b8907;}function hideHoveredUserPositionMarkersTooltips(_0x63f820){_0x63f820['editing']['view']['change'](_0x106624=>{for(const _0x3b8d7d of _0x63f820['model']['markers']){if(!_0x3b8d7d['name']['startsWith']('user:position'))continue;const _0x599f69=_0x63f820['editing']['mapper']['markerNameToElements'](_0x3b8d7d['name']);if(_0x599f69){for(const _0xadf80c of _0x599f69)_0x106624['removeClass']('ck-user__marker_hovered',_0xadf80c);}}});}function createUserMarkerPostFixer(_0x53c392){const _0x18e560=_0x53c392['model'],_0x1e721c=new Map(),_0x22a4f8=_0x53c392['plugins']['get'](Sessions);_0x18e560['markers']['on']('update:user:range',(_0x5c7bb6,_0x1f3ff0,_0x4ed27f,_0x21bc41)=>{if(!_0x21bc41&&_0x1e721c['get'](_0x1f3ff0['name']))return _0x1e721c['get'](_0x1f3ff0['name'])['detach'](),void _0x1e721c['delete'](_0x1f3ff0['name']);const _0x435cc5=_0x1f3ff0['name']['split'](':')[0x2];if(_0x435cc5===_0x22a4f8['mySessionId'])return;const _0x15e4ff='user:position:'+_0x435cc5;_0x18e560['markers']['has'](_0x15e4ff)&&_0x53c392['editing']['reconvertMarker'](_0x15e4ff),_0x1f3ff0['on']('change:range',(_0x1ece7e,_0x4c3b37,_0x3012f0)=>{if('$graveyard'!=_0x4c3b37['root']['rootName']&&'$graveyard'==_0x1f3ff0['getRange']()['root']['rootName']&&!_0x1e721c['has'](_0x1f3ff0['name'])){const _0x1bf901=_0x18e560['schema']['getNearestSelectionRange'](_0x3012f0['deletionPosition']);if(_0x1bf901){const _0x4cbe0b=ModelLiveRange['fromRange'](_0x1bf901);_0x1e721c['set'](_0x1f3ff0['name'],_0x4cbe0b),_0x4cbe0b['on']('change:range',(_0x5c5483,_0x7e1a11,_0x49d1e9)=>{if('$graveyard'==_0x4cbe0b['root']['rootName']){const _0x3078ac=_0x18e560['schema']['getNearestSelectionRange'](_0x49d1e9['deletionPosition']);_0x3078ac?(_0x4cbe0b['start']=_0x3078ac['start'],_0x4cbe0b['end']=_0x3078ac['end']):(_0x1e721c['delete'](_0x1f3ff0['name']),_0x4cbe0b['detach']());}});}}});}),_0x18e560['document']['on']('change',()=>{_0x1e721c['size']>0x0&&_0x18e560['enqueueChange']({'isUndoable':!0x1},_0x4722dc=>{for(const [_0x5d53ca,_0x20a781]of _0x1e721c)'$graveyard'==_0x18e560['markers']['get'](_0x5d53ca)['getRange']()['root']['rootName']&&(updateUserMarkers(_0x5d53ca['split'](':')[0x2],_0x20a781['toRange'](),_0x18e560,_0x4722dc),_0x20a781['detach']());_0x1e721c['clear']();});});}function getTranslation$6(_0x1b6a8a,_0x41abc2,_0x527652){const _0x4ec08c=_0x1b6a8a['t'],t=_0x1b6a8a['t'];switch(_0x41abc2){case'PENDING_ACTION_SENDING_DATA':return t({'string':'Sending\x20data\x20to\x20the\x20server.','id':'PENDING_ACTION_SENDING_DATA'});case'The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'Synchronization\x20issue':return t('Synchronization\x20issue');case'Connected\x20users\x20list\x20dropdown\x20menu':return t('Connected\x20users\x20list\x20dropdown\x20menu');case'Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)':return t('Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)');case'Connected\x20users\x20list':return t('Connected\x20users\x20list');case'PENDING_ACTION_REVISION_HISTORY':return _0x4ec08c({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'CONNECTED_USERS':return t({'string':'1\x20connected\x20user\x20(me)','plural':'%0\x20connected\x20users','id':'CONNECTED_USERS'},_0x527652);default:return'';}}const messages=/* #__PURE__ -- @preserve */
((()=>{var _0x13ec40=minimalExports['Reader'],_0x4ed14d=minimalExports['Writer'],_0x53a02c=minimalExports['util'],_0x3ab1b0=minimalExports['roots']['default']||(minimalExports['roots']['default']={});return _0x3ab1b0['AttributeOperation']=(function(){function _0x2e6ad2(_0x590028){if(_0x590028){for(var _0x367de2=Object['keys'](_0x590028),_0x4fef56=0x0;_0x4fef56<_0x367de2['length'];++_0x4fef56)null!=_0x590028[_0x367de2[_0x4fef56]]&&(this[_0x367de2[_0x4fef56]]=_0x590028[_0x367de2[_0x4fef56]]);}}return _0x2e6ad2['prototype']['range']=null,_0x2e6ad2['prototype']['key']='',_0x2e6ad2['prototype']['oldValueBoolean']=!0x1,_0x2e6ad2['prototype']['oldValueJson']='',_0x2e6ad2['prototype']['newValueBoolean']=!0x1,_0x2e6ad2['prototype']['newValueJson']='',_0x2e6ad2['prototype']['wasUndone']=!0x1,_0x2e6ad2['create']=function(_0x24f0d5){return new _0x2e6ad2(_0x24f0d5);},_0x2e6ad2['encode']=function(_0x2318db,_0x401dd6){return _0x401dd6||(_0x401dd6=_0x4ed14d['create']()),null!=_0x2318db['range']&&Object['hasOwnProperty']['call'](_0x2318db,'range')&&_0x3ab1b0['Range']['encode'](_0x2318db['range'],_0x401dd6['uint32'](0xa)['fork']())['ldelim'](),null!=_0x2318db['key']&&Object['hasOwnProperty']['call'](_0x2318db,'key')&&_0x401dd6['uint32'](0x12)['string'](_0x2318db['key']),null!=_0x2318db['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0x2318db,'oldValueBoolean')&&_0x401dd6['uint32'](0x18)['bool'](_0x2318db['oldValueBoolean']),null!=_0x2318db['oldValueJson']&&Object['hasOwnProperty']['call'](_0x2318db,'oldValueJson')&&_0x401dd6['uint32'](0x22)['string'](_0x2318db['oldValueJson']),null!=_0x2318db['newValueBoolean']&&Object['hasOwnProperty']['call'](_0x2318db,'newValueBoolean')&&_0x401dd6['uint32'](0x28)['bool'](_0x2318db['newValueBoolean']),null!=_0x2318db['newValueJson']&&Object['hasOwnProperty']['call'](_0x2318db,'newValueJson')&&_0x401dd6['uint32'](0x32)['string'](_0x2318db['newValueJson']),null!=_0x2318db['wasUndone']&&Object['hasOwnProperty']['call'](_0x2318db,'wasUndone')&&_0x401dd6['uint32'](0x38)['bool'](_0x2318db['wasUndone']),_0x401dd6;},_0x2e6ad2['encodeDelimited']=function(_0x7e627,_0x9230d5){return this['encode'](_0x7e627,_0x9230d5)['ldelim']();},_0x2e6ad2['decode']=function(_0x57b1a6,_0x207bc1){_0x57b1a6 instanceof _0x13ec40||(_0x57b1a6=_0x13ec40['create'](_0x57b1a6));for(var _0xad7b40=void 0x0===_0x207bc1?_0x57b1a6['len']:_0x57b1a6['pos']+_0x207bc1,_0x553da8=new _0x3ab1b0['AttributeOperation']();_0x57b1a6['pos']<_0xad7b40;){var _0x4fb7cc=_0x57b1a6['uint32']();switch(_0x4fb7cc>>>0x3){case 0x1:_0x553da8['range']=_0x3ab1b0['Range']['decode'](_0x57b1a6,_0x57b1a6['uint32']());break;case 0x2:_0x553da8['key']=_0x57b1a6['string']();break;case 0x3:_0x553da8['oldValueBoolean']=_0x57b1a6['bool']();break;case 0x4:_0x553da8['oldValueJson']=_0x57b1a6['string']();break;case 0x5:_0x553da8['newValueBoolean']=_0x57b1a6['bool']();break;case 0x6:_0x553da8['newValueJson']=_0x57b1a6['string']();break;case 0x7:_0x553da8['wasUndone']=_0x57b1a6['bool']();break;default:_0x57b1a6['skipType'](0x7&_0x4fb7cc);}}return _0x553da8;},_0x2e6ad2['decodeDelimited']=function(_0x5a4c6b){return _0x5a4c6b instanceof _0x13ec40||(_0x5a4c6b=new _0x13ec40(_0x5a4c6b)),this['decode'](_0x5a4c6b,_0x5a4c6b['uint32']());},_0x2e6ad2['verify']=function(_0x27ba30){if('object'!=typeof _0x27ba30||null===_0x27ba30)return'object\x20expected';if(null!=_0x27ba30['range']&&_0x27ba30['hasOwnProperty']('range')){var _0x423510=_0x3ab1b0['Range']['verify'](_0x27ba30['range']);if(_0x423510)return'range.'+_0x423510;}return null!=_0x27ba30['key']&&_0x27ba30['hasOwnProperty']('key')&&!_0x53a02c['isString'](_0x27ba30['key'])?'key:\x20string\x20expected':null!=_0x27ba30['oldValueBoolean']&&_0x27ba30['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x27ba30['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x27ba30['oldValueJson']&&_0x27ba30['hasOwnProperty']('oldValueJson')&&!_0x53a02c['isString'](_0x27ba30['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x27ba30['newValueBoolean']&&_0x27ba30['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x27ba30['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x27ba30['newValueJson']&&_0x27ba30['hasOwnProperty']('newValueJson')&&!_0x53a02c['isString'](_0x27ba30['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x27ba30['wasUndone']&&_0x27ba30['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x27ba30['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x2e6ad2['fromObject']=function(_0x388ba6){if(_0x388ba6 instanceof _0x3ab1b0['AttributeOperation'])return _0x388ba6;var _0x3a2e8a=new _0x3ab1b0['AttributeOperation']();if(null!=_0x388ba6['range']){if('object'!=typeof _0x388ba6['range'])throw TypeError('.AttributeOperation.range:\x20object\x20expected');_0x3a2e8a['range']=_0x3ab1b0['Range']['fromObject'](_0x388ba6['range']);}return null!=_0x388ba6['key']&&(_0x3a2e8a['key']=String(_0x388ba6['key'])),null!=_0x388ba6['oldValueBoolean']&&(_0x3a2e8a['oldValueBoolean']=Boolean(_0x388ba6['oldValueBoolean'])),null!=_0x388ba6['oldValueJson']&&(_0x3a2e8a['oldValueJson']=String(_0x388ba6['oldValueJson'])),null!=_0x388ba6['newValueBoolean']&&(_0x3a2e8a['newValueBoolean']=Boolean(_0x388ba6['newValueBoolean'])),null!=_0x388ba6['newValueJson']&&(_0x3a2e8a['newValueJson']=String(_0x388ba6['newValueJson'])),null!=_0x388ba6['wasUndone']&&(_0x3a2e8a['wasUndone']=Boolean(_0x388ba6['wasUndone'])),_0x3a2e8a;},_0x2e6ad2['toObject']=function(_0x19baec,_0xa8c2ff){_0xa8c2ff||(_0xa8c2ff={});var _0x2c6c46={};return _0xa8c2ff['defaults']&&(_0x2c6c46['range']=null,_0x2c6c46['key']='',_0x2c6c46['oldValueBoolean']=!0x1,_0x2c6c46['oldValueJson']='',_0x2c6c46['newValueBoolean']=!0x1,_0x2c6c46['newValueJson']='',_0x2c6c46['wasUndone']=!0x1),null!=_0x19baec['range']&&_0x19baec['hasOwnProperty']('range')&&(_0x2c6c46['range']=_0x3ab1b0['Range']['toObject'](_0x19baec['range'],_0xa8c2ff)),null!=_0x19baec['key']&&_0x19baec['hasOwnProperty']('key')&&(_0x2c6c46['key']=_0x19baec['key']),null!=_0x19baec['oldValueBoolean']&&_0x19baec['hasOwnProperty']('oldValueBoolean')&&(_0x2c6c46['oldValueBoolean']=_0x19baec['oldValueBoolean']),null!=_0x19baec['oldValueJson']&&_0x19baec['hasOwnProperty']('oldValueJson')&&(_0x2c6c46['oldValueJson']=_0x19baec['oldValueJson']),null!=_0x19baec['newValueBoolean']&&_0x19baec['hasOwnProperty']('newValueBoolean')&&(_0x2c6c46['newValueBoolean']=_0x19baec['newValueBoolean']),null!=_0x19baec['newValueJson']&&_0x19baec['hasOwnProperty']('newValueJson')&&(_0x2c6c46['newValueJson']=_0x19baec['newValueJson']),null!=_0x19baec['wasUndone']&&_0x19baec['hasOwnProperty']('wasUndone')&&(_0x2c6c46['wasUndone']=_0x19baec['wasUndone']),_0x2c6c46;},_0x2e6ad2['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2e6ad2['getTypeUrl']=function(_0x535869){return void 0x0===_0x535869&&(_0x535869='type.googleapis.com'),_0x535869+'/AttributeOperation';},_0x2e6ad2;}()),_0x3ab1b0['InsertOperation']=(function(){function _0x5180e4(_0x21a377){if(this['nodes']=[],_0x21a377){for(var _0x379720=Object['keys'](_0x21a377),_0x1ee230=0x0;_0x1ee230<_0x379720['length'];++_0x1ee230)null!=_0x21a377[_0x379720[_0x1ee230]]&&(this[_0x379720[_0x1ee230]]=_0x21a377[_0x379720[_0x1ee230]]);}}return _0x5180e4['prototype']['position']=null,_0x5180e4['prototype']['nodes']=_0x53a02c['emptyArray'],_0x5180e4['prototype']['shouldReceiveAttributes']=!0x1,_0x5180e4['prototype']['wasUndone']=!0x1,_0x5180e4['create']=function(_0x1ed6b5){return new _0x5180e4(_0x1ed6b5);},_0x5180e4['encode']=function(_0x43c63d,_0x57fe99){if(_0x57fe99||(_0x57fe99=_0x4ed14d['create']()),null!=_0x43c63d['position']&&Object['hasOwnProperty']['call'](_0x43c63d,'position')&&_0x3ab1b0['Position']['encode'](_0x43c63d['position'],_0x57fe99['uint32'](0xa)['fork']())['ldelim'](),null!=_0x43c63d['nodes']&&_0x43c63d['nodes']['length']){for(var _0x2f7f6d=0x0;_0x2f7f6d<_0x43c63d['nodes']['length'];++_0x2f7f6d)_0x3ab1b0['Element']['encode'](_0x43c63d['nodes'][_0x2f7f6d],_0x57fe99['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x43c63d['shouldReceiveAttributes']&&Object['hasOwnProperty']['call'](_0x43c63d,'shouldReceiveAttributes')&&_0x57fe99['uint32'](0x18)['bool'](_0x43c63d['shouldReceiveAttributes']),null!=_0x43c63d['wasUndone']&&Object['hasOwnProperty']['call'](_0x43c63d,'wasUndone')&&_0x57fe99['uint32'](0x20)['bool'](_0x43c63d['wasUndone']),_0x57fe99;},_0x5180e4['encodeDelimited']=function(_0x111ac1,_0x30d075){return this['encode'](_0x111ac1,_0x30d075)['ldelim']();},_0x5180e4['decode']=function(_0x2cd498,_0x2acec4){_0x2cd498 instanceof _0x13ec40||(_0x2cd498=_0x13ec40['create'](_0x2cd498));for(var _0x26d3ae=void 0x0===_0x2acec4?_0x2cd498['len']:_0x2cd498['pos']+_0x2acec4,_0x4805cf=new _0x3ab1b0['InsertOperation']();_0x2cd498['pos']<_0x26d3ae;){var _0x77b3f2=_0x2cd498['uint32']();switch(_0x77b3f2>>>0x3){case 0x1:_0x4805cf['position']=_0x3ab1b0['Position']['decode'](_0x2cd498,_0x2cd498['uint32']());break;case 0x2:_0x4805cf['nodes']&&_0x4805cf['nodes']['length']||(_0x4805cf['nodes']=[]),_0x4805cf['nodes']['push'](_0x3ab1b0['Element']['decode'](_0x2cd498,_0x2cd498['uint32']()));break;case 0x3:_0x4805cf['shouldReceiveAttributes']=_0x2cd498['bool']();break;case 0x4:_0x4805cf['wasUndone']=_0x2cd498['bool']();break;default:_0x2cd498['skipType'](0x7&_0x77b3f2);}}return _0x4805cf;},_0x5180e4['decodeDelimited']=function(_0x5747aa){return _0x5747aa instanceof _0x13ec40||(_0x5747aa=new _0x13ec40(_0x5747aa)),this['decode'](_0x5747aa,_0x5747aa['uint32']());},_0x5180e4['verify']=function(_0x5daaf8){if('object'!=typeof _0x5daaf8||null===_0x5daaf8)return'object\x20expected';if(null!=_0x5daaf8['position']&&_0x5daaf8['hasOwnProperty']('position')&&(_0x13a47b=_0x3ab1b0['Position']['verify'](_0x5daaf8['position'])))return'position.'+_0x13a47b;if(null!=_0x5daaf8['nodes']&&_0x5daaf8['hasOwnProperty']('nodes')){if(!Array['isArray'](_0x5daaf8['nodes']))return'nodes:\x20array\x20expected';for(var _0x1843a9=0x0;_0x1843a9<_0x5daaf8['nodes']['length'];++_0x1843a9){var _0x13a47b;if(_0x13a47b=_0x3ab1b0['Element']['verify'](_0x5daaf8['nodes'][_0x1843a9]))return'nodes.'+_0x13a47b;}}return null!=_0x5daaf8['shouldReceiveAttributes']&&_0x5daaf8['hasOwnProperty']('shouldReceiveAttributes')&&'boolean'!=typeof _0x5daaf8['shouldReceiveAttributes']?'shouldReceiveAttributes:\x20boolean\x20expected':null!=_0x5daaf8['wasUndone']&&_0x5daaf8['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x5daaf8['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x5180e4['fromObject']=function(_0x2b41af){if(_0x2b41af instanceof _0x3ab1b0['InsertOperation'])return _0x2b41af;var _0x2c2d10=new _0x3ab1b0['InsertOperation']();if(null!=_0x2b41af['position']){if('object'!=typeof _0x2b41af['position'])throw TypeError('.InsertOperation.position:\x20object\x20expected');_0x2c2d10['position']=_0x3ab1b0['Position']['fromObject'](_0x2b41af['position']);}if(_0x2b41af['nodes']){if(!Array['isArray'](_0x2b41af['nodes']))throw TypeError('.InsertOperation.nodes:\x20array\x20expected');_0x2c2d10['nodes']=[];for(var _0x48799a=0x0;_0x48799a<_0x2b41af['nodes']['length'];++_0x48799a){if('object'!=typeof _0x2b41af['nodes'][_0x48799a])throw TypeError('.InsertOperation.nodes:\x20object\x20expected');_0x2c2d10['nodes'][_0x48799a]=_0x3ab1b0['Element']['fromObject'](_0x2b41af['nodes'][_0x48799a]);}}return null!=_0x2b41af['shouldReceiveAttributes']&&(_0x2c2d10['shouldReceiveAttributes']=Boolean(_0x2b41af['shouldReceiveAttributes'])),null!=_0x2b41af['wasUndone']&&(_0x2c2d10['wasUndone']=Boolean(_0x2b41af['wasUndone'])),_0x2c2d10;},_0x5180e4['toObject']=function(_0x193e61,_0x114dbc){_0x114dbc||(_0x114dbc={});var _0xa5a20c={};if((_0x114dbc['arrays']||_0x114dbc['defaults'])&&(_0xa5a20c['nodes']=[]),_0x114dbc['defaults']&&(_0xa5a20c['position']=null,_0xa5a20c['shouldReceiveAttributes']=!0x1,_0xa5a20c['wasUndone']=!0x1),null!=_0x193e61['position']&&_0x193e61['hasOwnProperty']('position')&&(_0xa5a20c['position']=_0x3ab1b0['Position']['toObject'](_0x193e61['position'],_0x114dbc)),_0x193e61['nodes']&&_0x193e61['nodes']['length']){_0xa5a20c['nodes']=[];for(var _0x5b59a1=0x0;_0x5b59a1<_0x193e61['nodes']['length'];++_0x5b59a1)_0xa5a20c['nodes'][_0x5b59a1]=_0x3ab1b0['Element']['toObject'](_0x193e61['nodes'][_0x5b59a1],_0x114dbc);}return null!=_0x193e61['shouldReceiveAttributes']&&_0x193e61['hasOwnProperty']('shouldReceiveAttributes')&&(_0xa5a20c['shouldReceiveAttributes']=_0x193e61['shouldReceiveAttributes']),null!=_0x193e61['wasUndone']&&_0x193e61['hasOwnProperty']('wasUndone')&&(_0xa5a20c['wasUndone']=_0x193e61['wasUndone']),_0xa5a20c;},_0x5180e4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5180e4['getTypeUrl']=function(_0x3eb440){return void 0x0===_0x3eb440&&(_0x3eb440='type.googleapis.com'),_0x3eb440+'/InsertOperation';},_0x5180e4;}()),_0x3ab1b0['MarkerOperation']=(function(){function _0x3c67ca(_0x12b5a3){if(_0x12b5a3){for(var _0x247b4e=Object['keys'](_0x12b5a3),_0x393be1=0x0;_0x393be1<_0x247b4e['length'];++_0x393be1)null!=_0x12b5a3[_0x247b4e[_0x393be1]]&&(this[_0x247b4e[_0x393be1]]=_0x12b5a3[_0x247b4e[_0x393be1]]);}}return _0x3c67ca['prototype']['name']='',_0x3c67ca['prototype']['oldRange']=null,_0x3c67ca['prototype']['newRange']=null,_0x3c67ca['prototype']['affectsData']=!0x1,_0x3c67ca['prototype']['wasUndone']=!0x1,_0x3c67ca['create']=function(_0x4e3e72){return new _0x3c67ca(_0x4e3e72);},_0x3c67ca['encode']=function(_0x59a5ba,_0x507e1b){return _0x507e1b||(_0x507e1b=_0x4ed14d['create']()),null!=_0x59a5ba['name']&&Object['hasOwnProperty']['call'](_0x59a5ba,'name')&&_0x507e1b['uint32'](0xa)['string'](_0x59a5ba['name']),null!=_0x59a5ba['oldRange']&&Object['hasOwnProperty']['call'](_0x59a5ba,'oldRange')&&_0x3ab1b0['Range']['encode'](_0x59a5ba['oldRange'],_0x507e1b['uint32'](0x12)['fork']())['ldelim'](),null!=_0x59a5ba['newRange']&&Object['hasOwnProperty']['call'](_0x59a5ba,'newRange')&&_0x3ab1b0['Range']['encode'](_0x59a5ba['newRange'],_0x507e1b['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x59a5ba['affectsData']&&Object['hasOwnProperty']['call'](_0x59a5ba,'affectsData')&&_0x507e1b['uint32'](0x20)['bool'](_0x59a5ba['affectsData']),null!=_0x59a5ba['wasUndone']&&Object['hasOwnProperty']['call'](_0x59a5ba,'wasUndone')&&_0x507e1b['uint32'](0x28)['bool'](_0x59a5ba['wasUndone']),_0x507e1b;},_0x3c67ca['encodeDelimited']=function(_0x399313,_0x3eba80){return this['encode'](_0x399313,_0x3eba80)['ldelim']();},_0x3c67ca['decode']=function(_0x1961c4,_0x91e29e){_0x1961c4 instanceof _0x13ec40||(_0x1961c4=_0x13ec40['create'](_0x1961c4));for(var _0x35ae22=void 0x0===_0x91e29e?_0x1961c4['len']:_0x1961c4['pos']+_0x91e29e,_0x1ce687=new _0x3ab1b0['MarkerOperation']();_0x1961c4['pos']<_0x35ae22;){var _0x2f0d20=_0x1961c4['uint32']();switch(_0x2f0d20>>>0x3){case 0x1:_0x1ce687['name']=_0x1961c4['string']();break;case 0x2:_0x1ce687['oldRange']=_0x3ab1b0['Range']['decode'](_0x1961c4,_0x1961c4['uint32']());break;case 0x3:_0x1ce687['newRange']=_0x3ab1b0['Range']['decode'](_0x1961c4,_0x1961c4['uint32']());break;case 0x4:_0x1ce687['affectsData']=_0x1961c4['bool']();break;case 0x5:_0x1ce687['wasUndone']=_0x1961c4['bool']();break;default:_0x1961c4['skipType'](0x7&_0x2f0d20);}}return _0x1ce687;},_0x3c67ca['decodeDelimited']=function(_0x3574ca){return _0x3574ca instanceof _0x13ec40||(_0x3574ca=new _0x13ec40(_0x3574ca)),this['decode'](_0x3574ca,_0x3574ca['uint32']());},_0x3c67ca['verify']=function(_0x16f835){if('object'!=typeof _0x16f835||null===_0x16f835)return'object\x20expected';if(null!=_0x16f835['name']&&_0x16f835['hasOwnProperty']('name')&&!_0x53a02c['isString'](_0x16f835['name']))return'name:\x20string\x20expected';var _0x3c78b0;if(null!=_0x16f835['oldRange']&&_0x16f835['hasOwnProperty']('oldRange')&&(_0x3c78b0=_0x3ab1b0['Range']['verify'](_0x16f835['oldRange'])))return'oldRange.'+_0x3c78b0;if(null!=_0x16f835['newRange']&&_0x16f835['hasOwnProperty']('newRange')&&(_0x3c78b0=_0x3ab1b0['Range']['verify'](_0x16f835['newRange'])))return'newRange.'+_0x3c78b0;return null!=_0x16f835['affectsData']&&_0x16f835['hasOwnProperty']('affectsData')&&'boolean'!=typeof _0x16f835['affectsData']?'affectsData:\x20boolean\x20expected':null!=_0x16f835['wasUndone']&&_0x16f835['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x16f835['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x3c67ca['fromObject']=function(_0x374dc9){if(_0x374dc9 instanceof _0x3ab1b0['MarkerOperation'])return _0x374dc9;var _0x1179c1=new _0x3ab1b0['MarkerOperation']();if(null!=_0x374dc9['name']&&(_0x1179c1['name']=String(_0x374dc9['name'])),null!=_0x374dc9['oldRange']){if('object'!=typeof _0x374dc9['oldRange'])throw TypeError('.MarkerOperation.oldRange:\x20object\x20expected');_0x1179c1['oldRange']=_0x3ab1b0['Range']['fromObject'](_0x374dc9['oldRange']);}if(null!=_0x374dc9['newRange']){if('object'!=typeof _0x374dc9['newRange'])throw TypeError('.MarkerOperation.newRange:\x20object\x20expected');_0x1179c1['newRange']=_0x3ab1b0['Range']['fromObject'](_0x374dc9['newRange']);}return null!=_0x374dc9['affectsData']&&(_0x1179c1['affectsData']=Boolean(_0x374dc9['affectsData'])),null!=_0x374dc9['wasUndone']&&(_0x1179c1['wasUndone']=Boolean(_0x374dc9['wasUndone'])),_0x1179c1;},_0x3c67ca['toObject']=function(_0x4cc4ab,_0x31a815){_0x31a815||(_0x31a815={});var _0x21e36e={};return _0x31a815['defaults']&&(_0x21e36e['name']='',_0x21e36e['oldRange']=null,_0x21e36e['newRange']=null,_0x21e36e['affectsData']=!0x1,_0x21e36e['wasUndone']=!0x1),null!=_0x4cc4ab['name']&&_0x4cc4ab['hasOwnProperty']('name')&&(_0x21e36e['name']=_0x4cc4ab['name']),null!=_0x4cc4ab['oldRange']&&_0x4cc4ab['hasOwnProperty']('oldRange')&&(_0x21e36e['oldRange']=_0x3ab1b0['Range']['toObject'](_0x4cc4ab['oldRange'],_0x31a815)),null!=_0x4cc4ab['newRange']&&_0x4cc4ab['hasOwnProperty']('newRange')&&(_0x21e36e['newRange']=_0x3ab1b0['Range']['toObject'](_0x4cc4ab['newRange'],_0x31a815)),null!=_0x4cc4ab['affectsData']&&_0x4cc4ab['hasOwnProperty']('affectsData')&&(_0x21e36e['affectsData']=_0x4cc4ab['affectsData']),null!=_0x4cc4ab['wasUndone']&&_0x4cc4ab['hasOwnProperty']('wasUndone')&&(_0x21e36e['wasUndone']=_0x4cc4ab['wasUndone']),_0x21e36e;},_0x3c67ca['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3c67ca['getTypeUrl']=function(_0x49524c){return void 0x0===_0x49524c&&(_0x49524c='type.googleapis.com'),_0x49524c+'/MarkerOperation';},_0x3c67ca;}()),_0x3ab1b0['MergeOperation']=(function(){function _0x1a8500(_0x36a5f1){if(_0x36a5f1){for(var _0x38a366=Object['keys'](_0x36a5f1),_0x21468e=0x0;_0x21468e<_0x38a366['length'];++_0x21468e)null!=_0x36a5f1[_0x38a366[_0x21468e]]&&(this[_0x38a366[_0x21468e]]=_0x36a5f1[_0x38a366[_0x21468e]]);}}return _0x1a8500['prototype']['sourcePosition']=null,_0x1a8500['prototype']['targetPosition']=null,_0x1a8500['prototype']['graveyardPosition']=null,_0x1a8500['prototype']['howMany']=0x0,_0x1a8500['prototype']['wasUndone']=!0x1,_0x1a8500['create']=function(_0xb1802){return new _0x1a8500(_0xb1802);},_0x1a8500['encode']=function(_0x3023d8,_0x42dda9){return _0x42dda9||(_0x42dda9=_0x4ed14d['create']()),null!=_0x3023d8['sourcePosition']&&Object['hasOwnProperty']['call'](_0x3023d8,'sourcePosition')&&_0x3ab1b0['Position']['encode'](_0x3023d8['sourcePosition'],_0x42dda9['uint32'](0xa)['fork']())['ldelim'](),null!=_0x3023d8['targetPosition']&&Object['hasOwnProperty']['call'](_0x3023d8,'targetPosition')&&_0x3ab1b0['Position']['encode'](_0x3023d8['targetPosition'],_0x42dda9['uint32'](0x12)['fork']())['ldelim'](),null!=_0x3023d8['graveyardPosition']&&Object['hasOwnProperty']['call'](_0x3023d8,'graveyardPosition')&&_0x3ab1b0['Position']['encode'](_0x3023d8['graveyardPosition'],_0x42dda9['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x3023d8['howMany']&&Object['hasOwnProperty']['call'](_0x3023d8,'howMany')&&_0x42dda9['uint32'](0x20)['uint32'](_0x3023d8['howMany']),null!=_0x3023d8['wasUndone']&&Object['hasOwnProperty']['call'](_0x3023d8,'wasUndone')&&_0x42dda9['uint32'](0x28)['bool'](_0x3023d8['wasUndone']),_0x42dda9;},_0x1a8500['encodeDelimited']=function(_0x483247,_0x528dc8){return this['encode'](_0x483247,_0x528dc8)['ldelim']();},_0x1a8500['decode']=function(_0x49cf0b,_0x47120b){_0x49cf0b instanceof _0x13ec40||(_0x49cf0b=_0x13ec40['create'](_0x49cf0b));for(var _0x44cac4=void 0x0===_0x47120b?_0x49cf0b['len']:_0x49cf0b['pos']+_0x47120b,_0x15976a=new _0x3ab1b0['MergeOperation']();_0x49cf0b['pos']<_0x44cac4;){var _0x4c3fc3=_0x49cf0b['uint32']();switch(_0x4c3fc3>>>0x3){case 0x1:_0x15976a['sourcePosition']=_0x3ab1b0['Position']['decode'](_0x49cf0b,_0x49cf0b['uint32']());break;case 0x2:_0x15976a['targetPosition']=_0x3ab1b0['Position']['decode'](_0x49cf0b,_0x49cf0b['uint32']());break;case 0x3:_0x15976a['graveyardPosition']=_0x3ab1b0['Position']['decode'](_0x49cf0b,_0x49cf0b['uint32']());break;case 0x4:_0x15976a['howMany']=_0x49cf0b['uint32']();break;case 0x5:_0x15976a['wasUndone']=_0x49cf0b['bool']();break;default:_0x49cf0b['skipType'](0x7&_0x4c3fc3);}}return _0x15976a;},_0x1a8500['decodeDelimited']=function(_0x28a2c1){return _0x28a2c1 instanceof _0x13ec40||(_0x28a2c1=new _0x13ec40(_0x28a2c1)),this['decode'](_0x28a2c1,_0x28a2c1['uint32']());},_0x1a8500['verify']=function(_0x5beb67){if('object'!=typeof _0x5beb67||null===_0x5beb67)return'object\x20expected';var _0x1d5e2a;if(null!=_0x5beb67['sourcePosition']&&_0x5beb67['hasOwnProperty']('sourcePosition')&&(_0x1d5e2a=_0x3ab1b0['Position']['verify'](_0x5beb67['sourcePosition'])))return'sourcePosition.'+_0x1d5e2a;if(null!=_0x5beb67['targetPosition']&&_0x5beb67['hasOwnProperty']('targetPosition')&&(_0x1d5e2a=_0x3ab1b0['Position']['verify'](_0x5beb67['targetPosition'])))return'targetPosition.'+_0x1d5e2a;if(null!=_0x5beb67['graveyardPosition']&&_0x5beb67['hasOwnProperty']('graveyardPosition')&&(_0x1d5e2a=_0x3ab1b0['Position']['verify'](_0x5beb67['graveyardPosition'])))return'graveyardPosition.'+_0x1d5e2a;return null!=_0x5beb67['howMany']&&_0x5beb67['hasOwnProperty']('howMany')&&!_0x53a02c['isInteger'](_0x5beb67['howMany'])?'howMany:\x20integer\x20expected':null!=_0x5beb67['wasUndone']&&_0x5beb67['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x5beb67['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x1a8500['fromObject']=function(_0x235e21){if(_0x235e21 instanceof _0x3ab1b0['MergeOperation'])return _0x235e21;var _0x48279f=new _0x3ab1b0['MergeOperation']();if(null!=_0x235e21['sourcePosition']){if('object'!=typeof _0x235e21['sourcePosition'])throw TypeError('.MergeOperation.sourcePosition:\x20object\x20expected');_0x48279f['sourcePosition']=_0x3ab1b0['Position']['fromObject'](_0x235e21['sourcePosition']);}if(null!=_0x235e21['targetPosition']){if('object'!=typeof _0x235e21['targetPosition'])throw TypeError('.MergeOperation.targetPosition:\x20object\x20expected');_0x48279f['targetPosition']=_0x3ab1b0['Position']['fromObject'](_0x235e21['targetPosition']);}if(null!=_0x235e21['graveyardPosition']){if('object'!=typeof _0x235e21['graveyardPosition'])throw TypeError('.MergeOperation.graveyardPosition:\x20object\x20expected');_0x48279f['graveyardPosition']=_0x3ab1b0['Position']['fromObject'](_0x235e21['graveyardPosition']);}return null!=_0x235e21['howMany']&&(_0x48279f['howMany']=_0x235e21['howMany']>>>0x0),null!=_0x235e21['wasUndone']&&(_0x48279f['wasUndone']=Boolean(_0x235e21['wasUndone'])),_0x48279f;},_0x1a8500['toObject']=function(_0x1f5b9a,_0x11ce6c){_0x11ce6c||(_0x11ce6c={});var _0x32c277={};return _0x11ce6c['defaults']&&(_0x32c277['sourcePosition']=null,_0x32c277['targetPosition']=null,_0x32c277['graveyardPosition']=null,_0x32c277['howMany']=0x0,_0x32c277['wasUndone']=!0x1),null!=_0x1f5b9a['sourcePosition']&&_0x1f5b9a['hasOwnProperty']('sourcePosition')&&(_0x32c277['sourcePosition']=_0x3ab1b0['Position']['toObject'](_0x1f5b9a['sourcePosition'],_0x11ce6c)),null!=_0x1f5b9a['targetPosition']&&_0x1f5b9a['hasOwnProperty']('targetPosition')&&(_0x32c277['targetPosition']=_0x3ab1b0['Position']['toObject'](_0x1f5b9a['targetPosition'],_0x11ce6c)),null!=_0x1f5b9a['graveyardPosition']&&_0x1f5b9a['hasOwnProperty']('graveyardPosition')&&(_0x32c277['graveyardPosition']=_0x3ab1b0['Position']['toObject'](_0x1f5b9a['graveyardPosition'],_0x11ce6c)),null!=_0x1f5b9a['howMany']&&_0x1f5b9a['hasOwnProperty']('howMany')&&(_0x32c277['howMany']=_0x1f5b9a['howMany']),null!=_0x1f5b9a['wasUndone']&&_0x1f5b9a['hasOwnProperty']('wasUndone')&&(_0x32c277['wasUndone']=_0x1f5b9a['wasUndone']),_0x32c277;},_0x1a8500['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1a8500['getTypeUrl']=function(_0x35036a){return void 0x0===_0x35036a&&(_0x35036a='type.googleapis.com'),_0x35036a+'/MergeOperation';},_0x1a8500;}()),_0x3ab1b0['MoveOperation']=(function(){function _0x655886(_0x3ba21f){if(_0x3ba21f){for(var _0x4e6d1d=Object['keys'](_0x3ba21f),_0xa88533=0x0;_0xa88533<_0x4e6d1d['length'];++_0xa88533)null!=_0x3ba21f[_0x4e6d1d[_0xa88533]]&&(this[_0x4e6d1d[_0xa88533]]=_0x3ba21f[_0x4e6d1d[_0xa88533]]);}}return _0x655886['prototype']['sourcePosition']=null,_0x655886['prototype']['howMany']=0x0,_0x655886['prototype']['targetPosition']=null,_0x655886['prototype']['wasUndone']=!0x1,_0x655886['create']=function(_0x178bef){return new _0x655886(_0x178bef);},_0x655886['encode']=function(_0x57fa21,_0x4399f2){return _0x4399f2||(_0x4399f2=_0x4ed14d['create']()),null!=_0x57fa21['sourcePosition']&&Object['hasOwnProperty']['call'](_0x57fa21,'sourcePosition')&&_0x3ab1b0['Position']['encode'](_0x57fa21['sourcePosition'],_0x4399f2['uint32'](0xa)['fork']())['ldelim'](),null!=_0x57fa21['howMany']&&Object['hasOwnProperty']['call'](_0x57fa21,'howMany')&&_0x4399f2['uint32'](0x10)['uint32'](_0x57fa21['howMany']),null!=_0x57fa21['targetPosition']&&Object['hasOwnProperty']['call'](_0x57fa21,'targetPosition')&&_0x3ab1b0['Position']['encode'](_0x57fa21['targetPosition'],_0x4399f2['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x57fa21['wasUndone']&&Object['hasOwnProperty']['call'](_0x57fa21,'wasUndone')&&_0x4399f2['uint32'](0x20)['bool'](_0x57fa21['wasUndone']),_0x4399f2;},_0x655886['encodeDelimited']=function(_0x47277e,_0x401095){return this['encode'](_0x47277e,_0x401095)['ldelim']();},_0x655886['decode']=function(_0xee1270,_0x2ac6e9){_0xee1270 instanceof _0x13ec40||(_0xee1270=_0x13ec40['create'](_0xee1270));for(var _0x22ba58=void 0x0===_0x2ac6e9?_0xee1270['len']:_0xee1270['pos']+_0x2ac6e9,_0x3e8b96=new _0x3ab1b0['MoveOperation']();_0xee1270['pos']<_0x22ba58;){var _0xd21910=_0xee1270['uint32']();switch(_0xd21910>>>0x3){case 0x1:_0x3e8b96['sourcePosition']=_0x3ab1b0['Position']['decode'](_0xee1270,_0xee1270['uint32']());break;case 0x2:_0x3e8b96['howMany']=_0xee1270['uint32']();break;case 0x3:_0x3e8b96['targetPosition']=_0x3ab1b0['Position']['decode'](_0xee1270,_0xee1270['uint32']());break;case 0x4:_0x3e8b96['wasUndone']=_0xee1270['bool']();break;default:_0xee1270['skipType'](0x7&_0xd21910);}}return _0x3e8b96;},_0x655886['decodeDelimited']=function(_0x3b776f){return _0x3b776f instanceof _0x13ec40||(_0x3b776f=new _0x13ec40(_0x3b776f)),this['decode'](_0x3b776f,_0x3b776f['uint32']());},_0x655886['verify']=function(_0x48cc34){if('object'!=typeof _0x48cc34||null===_0x48cc34)return'object\x20expected';var _0x23fda6;if(null!=_0x48cc34['sourcePosition']&&_0x48cc34['hasOwnProperty']('sourcePosition')&&(_0x23fda6=_0x3ab1b0['Position']['verify'](_0x48cc34['sourcePosition'])))return'sourcePosition.'+_0x23fda6;if(null!=_0x48cc34['howMany']&&_0x48cc34['hasOwnProperty']('howMany')&&!_0x53a02c['isInteger'](_0x48cc34['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0x48cc34['targetPosition']&&_0x48cc34['hasOwnProperty']('targetPosition')&&(_0x23fda6=_0x3ab1b0['Position']['verify'](_0x48cc34['targetPosition'])))return'targetPosition.'+_0x23fda6;return null!=_0x48cc34['wasUndone']&&_0x48cc34['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x48cc34['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x655886['fromObject']=function(_0x27ba8d){if(_0x27ba8d instanceof _0x3ab1b0['MoveOperation'])return _0x27ba8d;var _0x51405d=new _0x3ab1b0['MoveOperation']();if(null!=_0x27ba8d['sourcePosition']){if('object'!=typeof _0x27ba8d['sourcePosition'])throw TypeError('.MoveOperation.sourcePosition:\x20object\x20expected');_0x51405d['sourcePosition']=_0x3ab1b0['Position']['fromObject'](_0x27ba8d['sourcePosition']);}if(null!=_0x27ba8d['howMany']&&(_0x51405d['howMany']=_0x27ba8d['howMany']>>>0x0),null!=_0x27ba8d['targetPosition']){if('object'!=typeof _0x27ba8d['targetPosition'])throw TypeError('.MoveOperation.targetPosition:\x20object\x20expected');_0x51405d['targetPosition']=_0x3ab1b0['Position']['fromObject'](_0x27ba8d['targetPosition']);}return null!=_0x27ba8d['wasUndone']&&(_0x51405d['wasUndone']=Boolean(_0x27ba8d['wasUndone'])),_0x51405d;},_0x655886['toObject']=function(_0x4abfcf,_0x28dee1){_0x28dee1||(_0x28dee1={});var _0x30d26d={};return _0x28dee1['defaults']&&(_0x30d26d['sourcePosition']=null,_0x30d26d['howMany']=0x0,_0x30d26d['targetPosition']=null,_0x30d26d['wasUndone']=!0x1),null!=_0x4abfcf['sourcePosition']&&_0x4abfcf['hasOwnProperty']('sourcePosition')&&(_0x30d26d['sourcePosition']=_0x3ab1b0['Position']['toObject'](_0x4abfcf['sourcePosition'],_0x28dee1)),null!=_0x4abfcf['howMany']&&_0x4abfcf['hasOwnProperty']('howMany')&&(_0x30d26d['howMany']=_0x4abfcf['howMany']),null!=_0x4abfcf['targetPosition']&&_0x4abfcf['hasOwnProperty']('targetPosition')&&(_0x30d26d['targetPosition']=_0x3ab1b0['Position']['toObject'](_0x4abfcf['targetPosition'],_0x28dee1)),null!=_0x4abfcf['wasUndone']&&_0x4abfcf['hasOwnProperty']('wasUndone')&&(_0x30d26d['wasUndone']=_0x4abfcf['wasUndone']),_0x30d26d;},_0x655886['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x655886['getTypeUrl']=function(_0x1781e3){return void 0x0===_0x1781e3&&(_0x1781e3='type.googleapis.com'),_0x1781e3+'/MoveOperation';},_0x655886;}()),_0x3ab1b0['RenameOperation']=(function(){function _0x20ee8b(_0xdb7047){if(_0xdb7047){for(var _0x53c755=Object['keys'](_0xdb7047),_0x5c8259=0x0;_0x5c8259<_0x53c755['length'];++_0x5c8259)null!=_0xdb7047[_0x53c755[_0x5c8259]]&&(this[_0x53c755[_0x5c8259]]=_0xdb7047[_0x53c755[_0x5c8259]]);}}return _0x20ee8b['prototype']['position']=null,_0x20ee8b['prototype']['oldName']='',_0x20ee8b['prototype']['newName']='',_0x20ee8b['prototype']['wasUndone']=!0x1,_0x20ee8b['create']=function(_0x2bac78){return new _0x20ee8b(_0x2bac78);},_0x20ee8b['encode']=function(_0x483b60,_0x784f13){return _0x784f13||(_0x784f13=_0x4ed14d['create']()),null!=_0x483b60['position']&&Object['hasOwnProperty']['call'](_0x483b60,'position')&&_0x3ab1b0['Position']['encode'](_0x483b60['position'],_0x784f13['uint32'](0xa)['fork']())['ldelim'](),null!=_0x483b60['oldName']&&Object['hasOwnProperty']['call'](_0x483b60,'oldName')&&_0x784f13['uint32'](0x12)['string'](_0x483b60['oldName']),null!=_0x483b60['newName']&&Object['hasOwnProperty']['call'](_0x483b60,'newName')&&_0x784f13['uint32'](0x1a)['string'](_0x483b60['newName']),null!=_0x483b60['wasUndone']&&Object['hasOwnProperty']['call'](_0x483b60,'wasUndone')&&_0x784f13['uint32'](0x20)['bool'](_0x483b60['wasUndone']),_0x784f13;},_0x20ee8b['encodeDelimited']=function(_0x24d28c,_0xda9ae0){return this['encode'](_0x24d28c,_0xda9ae0)['ldelim']();},_0x20ee8b['decode']=function(_0x1d1f48,_0x2d9283){_0x1d1f48 instanceof _0x13ec40||(_0x1d1f48=_0x13ec40['create'](_0x1d1f48));for(var _0x334fb5=void 0x0===_0x2d9283?_0x1d1f48['len']:_0x1d1f48['pos']+_0x2d9283,_0x10a7ee=new _0x3ab1b0['RenameOperation']();_0x1d1f48['pos']<_0x334fb5;){var _0x3e30bc=_0x1d1f48['uint32']();switch(_0x3e30bc>>>0x3){case 0x1:_0x10a7ee['position']=_0x3ab1b0['Position']['decode'](_0x1d1f48,_0x1d1f48['uint32']());break;case 0x2:_0x10a7ee['oldName']=_0x1d1f48['string']();break;case 0x3:_0x10a7ee['newName']=_0x1d1f48['string']();break;case 0x4:_0x10a7ee['wasUndone']=_0x1d1f48['bool']();break;default:_0x1d1f48['skipType'](0x7&_0x3e30bc);}}return _0x10a7ee;},_0x20ee8b['decodeDelimited']=function(_0x2d7805){return _0x2d7805 instanceof _0x13ec40||(_0x2d7805=new _0x13ec40(_0x2d7805)),this['decode'](_0x2d7805,_0x2d7805['uint32']());},_0x20ee8b['verify']=function(_0x7af74e){if('object'!=typeof _0x7af74e||null===_0x7af74e)return'object\x20expected';if(null!=_0x7af74e['position']&&_0x7af74e['hasOwnProperty']('position')){var _0xfe33d5=_0x3ab1b0['Position']['verify'](_0x7af74e['position']);if(_0xfe33d5)return'position.'+_0xfe33d5;}return null!=_0x7af74e['oldName']&&_0x7af74e['hasOwnProperty']('oldName')&&!_0x53a02c['isString'](_0x7af74e['oldName'])?'oldName:\x20string\x20expected':null!=_0x7af74e['newName']&&_0x7af74e['hasOwnProperty']('newName')&&!_0x53a02c['isString'](_0x7af74e['newName'])?'newName:\x20string\x20expected':null!=_0x7af74e['wasUndone']&&_0x7af74e['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x7af74e['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x20ee8b['fromObject']=function(_0x24b9ff){if(_0x24b9ff instanceof _0x3ab1b0['RenameOperation'])return _0x24b9ff;var _0x12068c=new _0x3ab1b0['RenameOperation']();if(null!=_0x24b9ff['position']){if('object'!=typeof _0x24b9ff['position'])throw TypeError('.RenameOperation.position:\x20object\x20expected');_0x12068c['position']=_0x3ab1b0['Position']['fromObject'](_0x24b9ff['position']);}return null!=_0x24b9ff['oldName']&&(_0x12068c['oldName']=String(_0x24b9ff['oldName'])),null!=_0x24b9ff['newName']&&(_0x12068c['newName']=String(_0x24b9ff['newName'])),null!=_0x24b9ff['wasUndone']&&(_0x12068c['wasUndone']=Boolean(_0x24b9ff['wasUndone'])),_0x12068c;},_0x20ee8b['toObject']=function(_0x3d029a,_0x2d6f32){_0x2d6f32||(_0x2d6f32={});var _0x43c83f={};return _0x2d6f32['defaults']&&(_0x43c83f['position']=null,_0x43c83f['oldName']='',_0x43c83f['newName']='',_0x43c83f['wasUndone']=!0x1),null!=_0x3d029a['position']&&_0x3d029a['hasOwnProperty']('position')&&(_0x43c83f['position']=_0x3ab1b0['Position']['toObject'](_0x3d029a['position'],_0x2d6f32)),null!=_0x3d029a['oldName']&&_0x3d029a['hasOwnProperty']('oldName')&&(_0x43c83f['oldName']=_0x3d029a['oldName']),null!=_0x3d029a['newName']&&_0x3d029a['hasOwnProperty']('newName')&&(_0x43c83f['newName']=_0x3d029a['newName']),null!=_0x3d029a['wasUndone']&&_0x3d029a['hasOwnProperty']('wasUndone')&&(_0x43c83f['wasUndone']=_0x3d029a['wasUndone']),_0x43c83f;},_0x20ee8b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x20ee8b['getTypeUrl']=function(_0x3cf0cd){return void 0x0===_0x3cf0cd&&(_0x3cf0cd='type.googleapis.com'),_0x3cf0cd+'/RenameOperation';},_0x20ee8b;}()),_0x3ab1b0['RootAttributeOperation']=(function(){function _0x3e322d(_0x38e606){if(_0x38e606){for(var _0x59bd61=Object['keys'](_0x38e606),_0x4fa7a4=0x0;_0x4fa7a4<_0x59bd61['length'];++_0x4fa7a4)null!=_0x38e606[_0x59bd61[_0x4fa7a4]]&&(this[_0x59bd61[_0x4fa7a4]]=_0x38e606[_0x59bd61[_0x4fa7a4]]);}}return _0x3e322d['prototype']['root']='',_0x3e322d['prototype']['key']='',_0x3e322d['prototype']['oldValueBoolean']=!0x1,_0x3e322d['prototype']['oldValueJson']='',_0x3e322d['prototype']['newValueBoolean']=!0x1,_0x3e322d['prototype']['newValueJson']='',_0x3e322d['prototype']['wasUndone']=!0x1,_0x3e322d['create']=function(_0x5c14ea){return new _0x3e322d(_0x5c14ea);},_0x3e322d['encode']=function(_0x337c50,_0x39e367){return _0x39e367||(_0x39e367=_0x4ed14d['create']()),null!=_0x337c50['root']&&Object['hasOwnProperty']['call'](_0x337c50,'root')&&_0x39e367['uint32'](0xa)['string'](_0x337c50['root']),null!=_0x337c50['key']&&Object['hasOwnProperty']['call'](_0x337c50,'key')&&_0x39e367['uint32'](0x12)['string'](_0x337c50['key']),null!=_0x337c50['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0x337c50,'oldValueBoolean')&&_0x39e367['uint32'](0x18)['bool'](_0x337c50['oldValueBoolean']),null!=_0x337c50['oldValueJson']&&Object['hasOwnProperty']['call'](_0x337c50,'oldValueJson')&&_0x39e367['uint32'](0x22)['string'](_0x337c50['oldValueJson']),null!=_0x337c50['newValueBoolean']&&Object['hasOwnProperty']['call'](_0x337c50,'newValueBoolean')&&_0x39e367['uint32'](0x28)['bool'](_0x337c50['newValueBoolean']),null!=_0x337c50['newValueJson']&&Object['hasOwnProperty']['call'](_0x337c50,'newValueJson')&&_0x39e367['uint32'](0x32)['string'](_0x337c50['newValueJson']),null!=_0x337c50['wasUndone']&&Object['hasOwnProperty']['call'](_0x337c50,'wasUndone')&&_0x39e367['uint32'](0x38)['bool'](_0x337c50['wasUndone']),_0x39e367;},_0x3e322d['encodeDelimited']=function(_0x5ad8ea,_0x32bc8c){return this['encode'](_0x5ad8ea,_0x32bc8c)['ldelim']();},_0x3e322d['decode']=function(_0x5126a6,_0x31ebe4){_0x5126a6 instanceof _0x13ec40||(_0x5126a6=_0x13ec40['create'](_0x5126a6));for(var _0xed3534=void 0x0===_0x31ebe4?_0x5126a6['len']:_0x5126a6['pos']+_0x31ebe4,_0x2151ca=new _0x3ab1b0['RootAttributeOperation']();_0x5126a6['pos']<_0xed3534;){var _0x4937fc=_0x5126a6['uint32']();switch(_0x4937fc>>>0x3){case 0x1:_0x2151ca['root']=_0x5126a6['string']();break;case 0x2:_0x2151ca['key']=_0x5126a6['string']();break;case 0x3:_0x2151ca['oldValueBoolean']=_0x5126a6['bool']();break;case 0x4:_0x2151ca['oldValueJson']=_0x5126a6['string']();break;case 0x5:_0x2151ca['newValueBoolean']=_0x5126a6['bool']();break;case 0x6:_0x2151ca['newValueJson']=_0x5126a6['string']();break;case 0x7:_0x2151ca['wasUndone']=_0x5126a6['bool']();break;default:_0x5126a6['skipType'](0x7&_0x4937fc);}}return _0x2151ca;},_0x3e322d['decodeDelimited']=function(_0x20c983){return _0x20c983 instanceof _0x13ec40||(_0x20c983=new _0x13ec40(_0x20c983)),this['decode'](_0x20c983,_0x20c983['uint32']());},_0x3e322d['verify']=function(_0x914f8c){return'object'!=typeof _0x914f8c||null===_0x914f8c?'object\x20expected':null!=_0x914f8c['root']&&_0x914f8c['hasOwnProperty']('root')&&!_0x53a02c['isString'](_0x914f8c['root'])?'root:\x20string\x20expected':null!=_0x914f8c['key']&&_0x914f8c['hasOwnProperty']('key')&&!_0x53a02c['isString'](_0x914f8c['key'])?'key:\x20string\x20expected':null!=_0x914f8c['oldValueBoolean']&&_0x914f8c['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x914f8c['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x914f8c['oldValueJson']&&_0x914f8c['hasOwnProperty']('oldValueJson')&&!_0x53a02c['isString'](_0x914f8c['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x914f8c['newValueBoolean']&&_0x914f8c['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x914f8c['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x914f8c['newValueJson']&&_0x914f8c['hasOwnProperty']('newValueJson')&&!_0x53a02c['isString'](_0x914f8c['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x914f8c['wasUndone']&&_0x914f8c['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x914f8c['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x3e322d['fromObject']=function(_0x31a470){if(_0x31a470 instanceof _0x3ab1b0['RootAttributeOperation'])return _0x31a470;var _0x1757ec=new _0x3ab1b0['RootAttributeOperation']();return null!=_0x31a470['root']&&(_0x1757ec['root']=String(_0x31a470['root'])),null!=_0x31a470['key']&&(_0x1757ec['key']=String(_0x31a470['key'])),null!=_0x31a470['oldValueBoolean']&&(_0x1757ec['oldValueBoolean']=Boolean(_0x31a470['oldValueBoolean'])),null!=_0x31a470['oldValueJson']&&(_0x1757ec['oldValueJson']=String(_0x31a470['oldValueJson'])),null!=_0x31a470['newValueBoolean']&&(_0x1757ec['newValueBoolean']=Boolean(_0x31a470['newValueBoolean'])),null!=_0x31a470['newValueJson']&&(_0x1757ec['newValueJson']=String(_0x31a470['newValueJson'])),null!=_0x31a470['wasUndone']&&(_0x1757ec['wasUndone']=Boolean(_0x31a470['wasUndone'])),_0x1757ec;},_0x3e322d['toObject']=function(_0xd7143f,_0x5ee4c7){_0x5ee4c7||(_0x5ee4c7={});var _0x389b5b={};return _0x5ee4c7['defaults']&&(_0x389b5b['root']='',_0x389b5b['key']='',_0x389b5b['oldValueBoolean']=!0x1,_0x389b5b['oldValueJson']='',_0x389b5b['newValueBoolean']=!0x1,_0x389b5b['newValueJson']='',_0x389b5b['wasUndone']=!0x1),null!=_0xd7143f['root']&&_0xd7143f['hasOwnProperty']('root')&&(_0x389b5b['root']=_0xd7143f['root']),null!=_0xd7143f['key']&&_0xd7143f['hasOwnProperty']('key')&&(_0x389b5b['key']=_0xd7143f['key']),null!=_0xd7143f['oldValueBoolean']&&_0xd7143f['hasOwnProperty']('oldValueBoolean')&&(_0x389b5b['oldValueBoolean']=_0xd7143f['oldValueBoolean']),null!=_0xd7143f['oldValueJson']&&_0xd7143f['hasOwnProperty']('oldValueJson')&&(_0x389b5b['oldValueJson']=_0xd7143f['oldValueJson']),null!=_0xd7143f['newValueBoolean']&&_0xd7143f['hasOwnProperty']('newValueBoolean')&&(_0x389b5b['newValueBoolean']=_0xd7143f['newValueBoolean']),null!=_0xd7143f['newValueJson']&&_0xd7143f['hasOwnProperty']('newValueJson')&&(_0x389b5b['newValueJson']=_0xd7143f['newValueJson']),null!=_0xd7143f['wasUndone']&&_0xd7143f['hasOwnProperty']('wasUndone')&&(_0x389b5b['wasUndone']=_0xd7143f['wasUndone']),_0x389b5b;},_0x3e322d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3e322d['getTypeUrl']=function(_0x157afe){return void 0x0===_0x157afe&&(_0x157afe='type.googleapis.com'),_0x157afe+'/RootAttributeOperation';},_0x3e322d;}()),_0x3ab1b0['RootOperation']=(function(){function _0x559bb6(_0x5c2b63){if(_0x5c2b63){for(var _0x4d1781=Object['keys'](_0x5c2b63),_0x2bf60f=0x0;_0x2bf60f<_0x4d1781['length'];++_0x2bf60f)null!=_0x5c2b63[_0x4d1781[_0x2bf60f]]&&(this[_0x4d1781[_0x2bf60f]]=_0x5c2b63[_0x4d1781[_0x2bf60f]]);}}return _0x559bb6['prototype']['rootName']='',_0x559bb6['prototype']['elementName']='',_0x559bb6['prototype']['isAdd']=!0x1,_0x559bb6['prototype']['wasUndone']=!0x1,_0x559bb6['create']=function(_0x2a43e1){return new _0x559bb6(_0x2a43e1);},_0x559bb6['encode']=function(_0x1cfca1,_0x48248d){return _0x48248d||(_0x48248d=_0x4ed14d['create']()),null!=_0x1cfca1['rootName']&&Object['hasOwnProperty']['call'](_0x1cfca1,'rootName')&&_0x48248d['uint32'](0xa)['string'](_0x1cfca1['rootName']),null!=_0x1cfca1['elementName']&&Object['hasOwnProperty']['call'](_0x1cfca1,'elementName')&&_0x48248d['uint32'](0x12)['string'](_0x1cfca1['elementName']),null!=_0x1cfca1['isAdd']&&Object['hasOwnProperty']['call'](_0x1cfca1,'isAdd')&&_0x48248d['uint32'](0x18)['bool'](_0x1cfca1['isAdd']),null!=_0x1cfca1['wasUndone']&&Object['hasOwnProperty']['call'](_0x1cfca1,'wasUndone')&&_0x48248d['uint32'](0x20)['bool'](_0x1cfca1['wasUndone']),_0x48248d;},_0x559bb6['encodeDelimited']=function(_0x50ec72,_0x422e6e){return this['encode'](_0x50ec72,_0x422e6e)['ldelim']();},_0x559bb6['decode']=function(_0x4f088f,_0x1776e4){_0x4f088f instanceof _0x13ec40||(_0x4f088f=_0x13ec40['create'](_0x4f088f));for(var _0x157b36=void 0x0===_0x1776e4?_0x4f088f['len']:_0x4f088f['pos']+_0x1776e4,_0x25b3fe=new _0x3ab1b0['RootOperation']();_0x4f088f['pos']<_0x157b36;){var _0x3b90eb=_0x4f088f['uint32']();switch(_0x3b90eb>>>0x3){case 0x1:_0x25b3fe['rootName']=_0x4f088f['string']();break;case 0x2:_0x25b3fe['elementName']=_0x4f088f['string']();break;case 0x3:_0x25b3fe['isAdd']=_0x4f088f['bool']();break;case 0x4:_0x25b3fe['wasUndone']=_0x4f088f['bool']();break;default:_0x4f088f['skipType'](0x7&_0x3b90eb);}}return _0x25b3fe;},_0x559bb6['decodeDelimited']=function(_0x2fd7b1){return _0x2fd7b1 instanceof _0x13ec40||(_0x2fd7b1=new _0x13ec40(_0x2fd7b1)),this['decode'](_0x2fd7b1,_0x2fd7b1['uint32']());},_0x559bb6['verify']=function(_0x4ba446){return'object'!=typeof _0x4ba446||null===_0x4ba446?'object\x20expected':null!=_0x4ba446['rootName']&&_0x4ba446['hasOwnProperty']('rootName')&&!_0x53a02c['isString'](_0x4ba446['rootName'])?'rootName:\x20string\x20expected':null!=_0x4ba446['elementName']&&_0x4ba446['hasOwnProperty']('elementName')&&!_0x53a02c['isString'](_0x4ba446['elementName'])?'elementName:\x20string\x20expected':null!=_0x4ba446['isAdd']&&_0x4ba446['hasOwnProperty']('isAdd')&&'boolean'!=typeof _0x4ba446['isAdd']?'isAdd:\x20boolean\x20expected':null!=_0x4ba446['wasUndone']&&_0x4ba446['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x4ba446['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x559bb6['fromObject']=function(_0xf4c4d8){if(_0xf4c4d8 instanceof _0x3ab1b0['RootOperation'])return _0xf4c4d8;var _0x4e6e6c=new _0x3ab1b0['RootOperation']();return null!=_0xf4c4d8['rootName']&&(_0x4e6e6c['rootName']=String(_0xf4c4d8['rootName'])),null!=_0xf4c4d8['elementName']&&(_0x4e6e6c['elementName']=String(_0xf4c4d8['elementName'])),null!=_0xf4c4d8['isAdd']&&(_0x4e6e6c['isAdd']=Boolean(_0xf4c4d8['isAdd'])),null!=_0xf4c4d8['wasUndone']&&(_0x4e6e6c['wasUndone']=Boolean(_0xf4c4d8['wasUndone'])),_0x4e6e6c;},_0x559bb6['toObject']=function(_0x5e8b97,_0x15b907){_0x15b907||(_0x15b907={});var _0x2d86d9={};return _0x15b907['defaults']&&(_0x2d86d9['rootName']='',_0x2d86d9['elementName']='',_0x2d86d9['isAdd']=!0x1,_0x2d86d9['wasUndone']=!0x1),null!=_0x5e8b97['rootName']&&_0x5e8b97['hasOwnProperty']('rootName')&&(_0x2d86d9['rootName']=_0x5e8b97['rootName']),null!=_0x5e8b97['elementName']&&_0x5e8b97['hasOwnProperty']('elementName')&&(_0x2d86d9['elementName']=_0x5e8b97['elementName']),null!=_0x5e8b97['isAdd']&&_0x5e8b97['hasOwnProperty']('isAdd')&&(_0x2d86d9['isAdd']=_0x5e8b97['isAdd']),null!=_0x5e8b97['wasUndone']&&_0x5e8b97['hasOwnProperty']('wasUndone')&&(_0x2d86d9['wasUndone']=_0x5e8b97['wasUndone']),_0x2d86d9;},_0x559bb6['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x559bb6['getTypeUrl']=function(_0x2d1c38){return void 0x0===_0x2d1c38&&(_0x2d1c38='type.googleapis.com'),_0x2d1c38+'/RootOperation';},_0x559bb6;}()),_0x3ab1b0['SplitOperation']=(function(){function _0x29c0ce(_0x44bf8a){if(_0x44bf8a){for(var _0x2fb004=Object['keys'](_0x44bf8a),_0x458b49=0x0;_0x458b49<_0x2fb004['length'];++_0x458b49)null!=_0x44bf8a[_0x2fb004[_0x458b49]]&&(this[_0x2fb004[_0x458b49]]=_0x44bf8a[_0x2fb004[_0x458b49]]);}}return _0x29c0ce['prototype']['splitPosition']=null,_0x29c0ce['prototype']['graveyardPosition']=null,_0x29c0ce['prototype']['howMany']=0x0,_0x29c0ce['prototype']['insertionPosition']=null,_0x29c0ce['prototype']['wasUndone']=!0x1,_0x29c0ce['create']=function(_0x7c5f14){return new _0x29c0ce(_0x7c5f14);},_0x29c0ce['encode']=function(_0x53ae62,_0x266431){return _0x266431||(_0x266431=_0x4ed14d['create']()),null!=_0x53ae62['splitPosition']&&Object['hasOwnProperty']['call'](_0x53ae62,'splitPosition')&&_0x3ab1b0['Position']['encode'](_0x53ae62['splitPosition'],_0x266431['uint32'](0xa)['fork']())['ldelim'](),null!=_0x53ae62['graveyardPosition']&&Object['hasOwnProperty']['call'](_0x53ae62,'graveyardPosition')&&_0x3ab1b0['Position']['encode'](_0x53ae62['graveyardPosition'],_0x266431['uint32'](0x12)['fork']())['ldelim'](),null!=_0x53ae62['howMany']&&Object['hasOwnProperty']['call'](_0x53ae62,'howMany')&&_0x266431['uint32'](0x18)['uint32'](_0x53ae62['howMany']),null!=_0x53ae62['insertionPosition']&&Object['hasOwnProperty']['call'](_0x53ae62,'insertionPosition')&&_0x3ab1b0['Position']['encode'](_0x53ae62['insertionPosition'],_0x266431['uint32'](0x22)['fork']())['ldelim'](),null!=_0x53ae62['wasUndone']&&Object['hasOwnProperty']['call'](_0x53ae62,'wasUndone')&&_0x266431['uint32'](0x28)['bool'](_0x53ae62['wasUndone']),_0x266431;},_0x29c0ce['encodeDelimited']=function(_0x31ac4c,_0x2de77e){return this['encode'](_0x31ac4c,_0x2de77e)['ldelim']();},_0x29c0ce['decode']=function(_0x3b9915,_0x49db41){_0x3b9915 instanceof _0x13ec40||(_0x3b9915=_0x13ec40['create'](_0x3b9915));for(var _0x4f1901=void 0x0===_0x49db41?_0x3b9915['len']:_0x3b9915['pos']+_0x49db41,_0x7bc202=new _0x3ab1b0['SplitOperation']();_0x3b9915['pos']<_0x4f1901;){var _0x5edf57=_0x3b9915['uint32']();switch(_0x5edf57>>>0x3){case 0x1:_0x7bc202['splitPosition']=_0x3ab1b0['Position']['decode'](_0x3b9915,_0x3b9915['uint32']());break;case 0x2:_0x7bc202['graveyardPosition']=_0x3ab1b0['Position']['decode'](_0x3b9915,_0x3b9915['uint32']());break;case 0x3:_0x7bc202['howMany']=_0x3b9915['uint32']();break;case 0x4:_0x7bc202['insertionPosition']=_0x3ab1b0['Position']['decode'](_0x3b9915,_0x3b9915['uint32']());break;case 0x5:_0x7bc202['wasUndone']=_0x3b9915['bool']();break;default:_0x3b9915['skipType'](0x7&_0x5edf57);}}return _0x7bc202;},_0x29c0ce['decodeDelimited']=function(_0x21a192){return _0x21a192 instanceof _0x13ec40||(_0x21a192=new _0x13ec40(_0x21a192)),this['decode'](_0x21a192,_0x21a192['uint32']());},_0x29c0ce['verify']=function(_0x4b3905){if('object'!=typeof _0x4b3905||null===_0x4b3905)return'object\x20expected';var _0xdf7480;if(null!=_0x4b3905['splitPosition']&&_0x4b3905['hasOwnProperty']('splitPosition')&&(_0xdf7480=_0x3ab1b0['Position']['verify'](_0x4b3905['splitPosition'])))return'splitPosition.'+_0xdf7480;if(null!=_0x4b3905['graveyardPosition']&&_0x4b3905['hasOwnProperty']('graveyardPosition')&&(_0xdf7480=_0x3ab1b0['Position']['verify'](_0x4b3905['graveyardPosition'])))return'graveyardPosition.'+_0xdf7480;if(null!=_0x4b3905['howMany']&&_0x4b3905['hasOwnProperty']('howMany')&&!_0x53a02c['isInteger'](_0x4b3905['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0x4b3905['insertionPosition']&&_0x4b3905['hasOwnProperty']('insertionPosition')&&(_0xdf7480=_0x3ab1b0['Position']['verify'](_0x4b3905['insertionPosition'])))return'insertionPosition.'+_0xdf7480;return null!=_0x4b3905['wasUndone']&&_0x4b3905['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x4b3905['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x29c0ce['fromObject']=function(_0x16245b){if(_0x16245b instanceof _0x3ab1b0['SplitOperation'])return _0x16245b;var _0x5f1cd8=new _0x3ab1b0['SplitOperation']();if(null!=_0x16245b['splitPosition']){if('object'!=typeof _0x16245b['splitPosition'])throw TypeError('.SplitOperation.splitPosition:\x20object\x20expected');_0x5f1cd8['splitPosition']=_0x3ab1b0['Position']['fromObject'](_0x16245b['splitPosition']);}if(null!=_0x16245b['graveyardPosition']){if('object'!=typeof _0x16245b['graveyardPosition'])throw TypeError('.SplitOperation.graveyardPosition:\x20object\x20expected');_0x5f1cd8['graveyardPosition']=_0x3ab1b0['Position']['fromObject'](_0x16245b['graveyardPosition']);}if(null!=_0x16245b['howMany']&&(_0x5f1cd8['howMany']=_0x16245b['howMany']>>>0x0),null!=_0x16245b['insertionPosition']){if('object'!=typeof _0x16245b['insertionPosition'])throw TypeError('.SplitOperation.insertionPosition:\x20object\x20expected');_0x5f1cd8['insertionPosition']=_0x3ab1b0['Position']['fromObject'](_0x16245b['insertionPosition']);}return null!=_0x16245b['wasUndone']&&(_0x5f1cd8['wasUndone']=Boolean(_0x16245b['wasUndone'])),_0x5f1cd8;},_0x29c0ce['toObject']=function(_0xa2fac8,_0xffd07a){_0xffd07a||(_0xffd07a={});var _0x3de599={};return _0xffd07a['defaults']&&(_0x3de599['splitPosition']=null,_0x3de599['graveyardPosition']=null,_0x3de599['howMany']=0x0,_0x3de599['insertionPosition']=null,_0x3de599['wasUndone']=!0x1),null!=_0xa2fac8['splitPosition']&&_0xa2fac8['hasOwnProperty']('splitPosition')&&(_0x3de599['splitPosition']=_0x3ab1b0['Position']['toObject'](_0xa2fac8['splitPosition'],_0xffd07a)),null!=_0xa2fac8['graveyardPosition']&&_0xa2fac8['hasOwnProperty']('graveyardPosition')&&(_0x3de599['graveyardPosition']=_0x3ab1b0['Position']['toObject'](_0xa2fac8['graveyardPosition'],_0xffd07a)),null!=_0xa2fac8['howMany']&&_0xa2fac8['hasOwnProperty']('howMany')&&(_0x3de599['howMany']=_0xa2fac8['howMany']),null!=_0xa2fac8['insertionPosition']&&_0xa2fac8['hasOwnProperty']('insertionPosition')&&(_0x3de599['insertionPosition']=_0x3ab1b0['Position']['toObject'](_0xa2fac8['insertionPosition'],_0xffd07a)),null!=_0xa2fac8['wasUndone']&&_0xa2fac8['hasOwnProperty']('wasUndone')&&(_0x3de599['wasUndone']=_0xa2fac8['wasUndone']),_0x3de599;},_0x29c0ce['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x29c0ce['getTypeUrl']=function(_0x29d32e){return void 0x0===_0x29d32e&&(_0x29d32e='type.googleapis.com'),_0x29d32e+'/SplitOperation';},_0x29c0ce;}()),_0x3ab1b0['Position']=(function(){function _0x34928c(_0xc44747){if(this['path']=[],_0xc44747){for(var _0x10f413=Object['keys'](_0xc44747),_0x3b4ab0=0x0;_0x3b4ab0<_0x10f413['length'];++_0x3b4ab0)null!=_0xc44747[_0x10f413[_0x3b4ab0]]&&(this[_0x10f413[_0x3b4ab0]]=_0xc44747[_0x10f413[_0x3b4ab0]]);}}return _0x34928c['prototype']['root']='',_0x34928c['prototype']['rootMain']=!0x1,_0x34928c['prototype']['rootGraveyard']=!0x1,_0x34928c['prototype']['path']=_0x53a02c['emptyArray'],_0x34928c['prototype']['stickiness']='',_0x34928c['create']=function(_0x5ede31){return new _0x34928c(_0x5ede31);},_0x34928c['encode']=function(_0x114ac8,_0x64076b){if(_0x64076b||(_0x64076b=_0x4ed14d['create']()),null!=_0x114ac8['root']&&Object['hasOwnProperty']['call'](_0x114ac8,'root')&&_0x64076b['uint32'](0xa)['string'](_0x114ac8['root']),null!=_0x114ac8['rootMain']&&Object['hasOwnProperty']['call'](_0x114ac8,'rootMain')&&_0x64076b['uint32'](0x10)['bool'](_0x114ac8['rootMain']),null!=_0x114ac8['rootGraveyard']&&Object['hasOwnProperty']['call'](_0x114ac8,'rootGraveyard')&&_0x64076b['uint32'](0x18)['bool'](_0x114ac8['rootGraveyard']),null!=_0x114ac8['path']&&_0x114ac8['path']['length']){_0x64076b['uint32'](0x22)['fork']();for(var _0x4291ce=0x0;_0x4291ce<_0x114ac8['path']['length'];++_0x4291ce)_0x64076b['uint32'](_0x114ac8['path'][_0x4291ce]);_0x64076b['ldelim']();}return null!=_0x114ac8['stickiness']&&Object['hasOwnProperty']['call'](_0x114ac8,'stickiness')&&_0x64076b['uint32'](0x2a)['string'](_0x114ac8['stickiness']),_0x64076b;},_0x34928c['encodeDelimited']=function(_0x2b5c35,_0x47fde2){return this['encode'](_0x2b5c35,_0x47fde2)['ldelim']();},_0x34928c['decode']=function(_0x3c8246,_0x5a0c51){_0x3c8246 instanceof _0x13ec40||(_0x3c8246=_0x13ec40['create'](_0x3c8246));for(var _0x2aaad6=void 0x0===_0x5a0c51?_0x3c8246['len']:_0x3c8246['pos']+_0x5a0c51,_0x3c395b=new _0x3ab1b0['Position']();_0x3c8246['pos']<_0x2aaad6;){var _0xe9c430=_0x3c8246['uint32']();switch(_0xe9c430>>>0x3){case 0x1:_0x3c395b['root']=_0x3c8246['string']();break;case 0x2:_0x3c395b['rootMain']=_0x3c8246['bool']();break;case 0x3:_0x3c395b['rootGraveyard']=_0x3c8246['bool']();break;case 0x4:if(_0x3c395b['path']&&_0x3c395b['path']['length']||(_0x3c395b['path']=[]),0x2==(0x7&_0xe9c430)){for(var _0x57a391=_0x3c8246['uint32']()+_0x3c8246['pos'];_0x3c8246['pos']<_0x57a391;)_0x3c395b['path']['push'](_0x3c8246['uint32']());}else _0x3c395b['path']['push'](_0x3c8246['uint32']());break;case 0x5:_0x3c395b['stickiness']=_0x3c8246['string']();break;default:_0x3c8246['skipType'](0x7&_0xe9c430);}}return _0x3c395b;},_0x34928c['decodeDelimited']=function(_0x90b738){return _0x90b738 instanceof _0x13ec40||(_0x90b738=new _0x13ec40(_0x90b738)),this['decode'](_0x90b738,_0x90b738['uint32']());},_0x34928c['verify']=function(_0x1c3d7a){if('object'!=typeof _0x1c3d7a||null===_0x1c3d7a)return'object\x20expected';if(null!=_0x1c3d7a['root']&&_0x1c3d7a['hasOwnProperty']('root')&&!_0x53a02c['isString'](_0x1c3d7a['root']))return'root:\x20string\x20expected';if(null!=_0x1c3d7a['rootMain']&&_0x1c3d7a['hasOwnProperty']('rootMain')&&'boolean'!=typeof _0x1c3d7a['rootMain'])return'rootMain:\x20boolean\x20expected';if(null!=_0x1c3d7a['rootGraveyard']&&_0x1c3d7a['hasOwnProperty']('rootGraveyard')&&'boolean'!=typeof _0x1c3d7a['rootGraveyard'])return'rootGraveyard:\x20boolean\x20expected';if(null!=_0x1c3d7a['path']&&_0x1c3d7a['hasOwnProperty']('path')){if(!Array['isArray'](_0x1c3d7a['path']))return'path:\x20array\x20expected';for(var _0x461773=0x0;_0x461773<_0x1c3d7a['path']['length'];++_0x461773)if(!_0x53a02c['isInteger'](_0x1c3d7a['path'][_0x461773]))return'path:\x20integer[]\x20expected';}return null!=_0x1c3d7a['stickiness']&&_0x1c3d7a['hasOwnProperty']('stickiness')&&!_0x53a02c['isString'](_0x1c3d7a['stickiness'])?'stickiness:\x20string\x20expected':null;},_0x34928c['fromObject']=function(_0x566ede){if(_0x566ede instanceof _0x3ab1b0['Position'])return _0x566ede;var _0x8bd18d=new _0x3ab1b0['Position']();if(null!=_0x566ede['root']&&(_0x8bd18d['root']=String(_0x566ede['root'])),null!=_0x566ede['rootMain']&&(_0x8bd18d['rootMain']=Boolean(_0x566ede['rootMain'])),null!=_0x566ede['rootGraveyard']&&(_0x8bd18d['rootGraveyard']=Boolean(_0x566ede['rootGraveyard'])),_0x566ede['path']){if(!Array['isArray'](_0x566ede['path']))throw TypeError('.Position.path:\x20array\x20expected');_0x8bd18d['path']=[];for(var _0x250347=0x0;_0x250347<_0x566ede['path']['length'];++_0x250347)_0x8bd18d['path'][_0x250347]=_0x566ede['path'][_0x250347]>>>0x0;}return null!=_0x566ede['stickiness']&&(_0x8bd18d['stickiness']=String(_0x566ede['stickiness'])),_0x8bd18d;},_0x34928c['toObject']=function(_0x134f0d,_0x2b4a9f){_0x2b4a9f||(_0x2b4a9f={});var _0x2b440f={};if((_0x2b4a9f['arrays']||_0x2b4a9f['defaults'])&&(_0x2b440f['path']=[]),_0x2b4a9f['defaults']&&(_0x2b440f['root']='',_0x2b440f['rootMain']=!0x1,_0x2b440f['rootGraveyard']=!0x1,_0x2b440f['stickiness']=''),null!=_0x134f0d['root']&&_0x134f0d['hasOwnProperty']('root')&&(_0x2b440f['root']=_0x134f0d['root']),null!=_0x134f0d['rootMain']&&_0x134f0d['hasOwnProperty']('rootMain')&&(_0x2b440f['rootMain']=_0x134f0d['rootMain']),null!=_0x134f0d['rootGraveyard']&&_0x134f0d['hasOwnProperty']('rootGraveyard')&&(_0x2b440f['rootGraveyard']=_0x134f0d['rootGraveyard']),_0x134f0d['path']&&_0x134f0d['path']['length']){_0x2b440f['path']=[];for(var _0x16f596=0x0;_0x16f596<_0x134f0d['path']['length'];++_0x16f596)_0x2b440f['path'][_0x16f596]=_0x134f0d['path'][_0x16f596];}return null!=_0x134f0d['stickiness']&&_0x134f0d['hasOwnProperty']('stickiness')&&(_0x2b440f['stickiness']=_0x134f0d['stickiness']),_0x2b440f;},_0x34928c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x34928c['getTypeUrl']=function(_0x16701f){return void 0x0===_0x16701f&&(_0x16701f='type.googleapis.com'),_0x16701f+'/Position';},_0x34928c;}()),_0x3ab1b0['Range']=(function(){function _0x511ce0(_0x10858b){if(_0x10858b){for(var _0x29599a=Object['keys'](_0x10858b),_0x40fec7=0x0;_0x40fec7<_0x29599a['length'];++_0x40fec7)null!=_0x10858b[_0x29599a[_0x40fec7]]&&(this[_0x29599a[_0x40fec7]]=_0x10858b[_0x29599a[_0x40fec7]]);}}return _0x511ce0['prototype']['start']=null,_0x511ce0['prototype']['end']=null,_0x511ce0['create']=function(_0x59ec9a){return new _0x511ce0(_0x59ec9a);},_0x511ce0['encode']=function(_0x51ca93,_0x4e50cf){return _0x4e50cf||(_0x4e50cf=_0x4ed14d['create']()),null!=_0x51ca93['start']&&Object['hasOwnProperty']['call'](_0x51ca93,'start')&&_0x3ab1b0['Position']['encode'](_0x51ca93['start'],_0x4e50cf['uint32'](0xa)['fork']())['ldelim'](),null!=_0x51ca93['end']&&Object['hasOwnProperty']['call'](_0x51ca93,'end')&&_0x3ab1b0['Position']['encode'](_0x51ca93['end'],_0x4e50cf['uint32'](0x12)['fork']())['ldelim'](),_0x4e50cf;},_0x511ce0['encodeDelimited']=function(_0x47cf4d,_0x3c713a){return this['encode'](_0x47cf4d,_0x3c713a)['ldelim']();},_0x511ce0['decode']=function(_0x3b0197,_0x2c5b2e){_0x3b0197 instanceof _0x13ec40||(_0x3b0197=_0x13ec40['create'](_0x3b0197));for(var _0x4138da=void 0x0===_0x2c5b2e?_0x3b0197['len']:_0x3b0197['pos']+_0x2c5b2e,_0x4794b2=new _0x3ab1b0['Range']();_0x3b0197['pos']<_0x4138da;){var _0x18e3c2=_0x3b0197['uint32']();switch(_0x18e3c2>>>0x3){case 0x1:_0x4794b2['start']=_0x3ab1b0['Position']['decode'](_0x3b0197,_0x3b0197['uint32']());break;case 0x2:_0x4794b2['end']=_0x3ab1b0['Position']['decode'](_0x3b0197,_0x3b0197['uint32']());break;default:_0x3b0197['skipType'](0x7&_0x18e3c2);}}return _0x4794b2;},_0x511ce0['decodeDelimited']=function(_0x107f7b){return _0x107f7b instanceof _0x13ec40||(_0x107f7b=new _0x13ec40(_0x107f7b)),this['decode'](_0x107f7b,_0x107f7b['uint32']());},_0x511ce0['verify']=function(_0x4a3b35){if('object'!=typeof _0x4a3b35||null===_0x4a3b35)return'object\x20expected';var _0x579069;if(null!=_0x4a3b35['start']&&_0x4a3b35['hasOwnProperty']('start')&&(_0x579069=_0x3ab1b0['Position']['verify'](_0x4a3b35['start'])))return'start.'+_0x579069;if(null!=_0x4a3b35['end']&&_0x4a3b35['hasOwnProperty']('end')&&(_0x579069=_0x3ab1b0['Position']['verify'](_0x4a3b35['end'])))return'end.'+_0x579069;return null;},_0x511ce0['fromObject']=function(_0x3282bc){if(_0x3282bc instanceof _0x3ab1b0['Range'])return _0x3282bc;var _0x11cde5=new _0x3ab1b0['Range']();if(null!=_0x3282bc['start']){if('object'!=typeof _0x3282bc['start'])throw TypeError('.Range.start:\x20object\x20expected');_0x11cde5['start']=_0x3ab1b0['Position']['fromObject'](_0x3282bc['start']);}if(null!=_0x3282bc['end']){if('object'!=typeof _0x3282bc['end'])throw TypeError('.Range.end:\x20object\x20expected');_0x11cde5['end']=_0x3ab1b0['Position']['fromObject'](_0x3282bc['end']);}return _0x11cde5;},_0x511ce0['toObject']=function(_0x44faa0,_0x4953cc){_0x4953cc||(_0x4953cc={});var _0x14b9a0={};return _0x4953cc['defaults']&&(_0x14b9a0['start']=null,_0x14b9a0['end']=null),null!=_0x44faa0['start']&&_0x44faa0['hasOwnProperty']('start')&&(_0x14b9a0['start']=_0x3ab1b0['Position']['toObject'](_0x44faa0['start'],_0x4953cc)),null!=_0x44faa0['end']&&_0x44faa0['hasOwnProperty']('end')&&(_0x14b9a0['end']=_0x3ab1b0['Position']['toObject'](_0x44faa0['end'],_0x4953cc)),_0x14b9a0;},_0x511ce0['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x511ce0['getTypeUrl']=function(_0x328bcb){return void 0x0===_0x328bcb&&(_0x328bcb='type.googleapis.com'),_0x328bcb+'/Range';},_0x511ce0;}()),_0x3ab1b0['Element']=(function(){function _0x4d626e(_0x5b6f72){if(this['children']=[],this['attributesBoolean']={},_0x5b6f72){for(var _0x196f8a=Object['keys'](_0x5b6f72),_0x1e2b3d=0x0;_0x1e2b3d<_0x196f8a['length'];++_0x1e2b3d)null!=_0x5b6f72[_0x196f8a[_0x1e2b3d]]&&(this[_0x196f8a[_0x1e2b3d]]=_0x5b6f72[_0x196f8a[_0x1e2b3d]]);}}return _0x4d626e['prototype']['name']='',_0x4d626e['prototype']['children']=_0x53a02c['emptyArray'],_0x4d626e['prototype']['data']='',_0x4d626e['prototype']['attributesBoolean']=_0x53a02c['emptyObject'],_0x4d626e['prototype']['attributesJson']='',_0x4d626e['create']=function(_0x194d95){return new _0x4d626e(_0x194d95);},_0x4d626e['encode']=function(_0x2282d9,_0x6e0564){if(_0x6e0564||(_0x6e0564=_0x4ed14d['create']()),null!=_0x2282d9['name']&&Object['hasOwnProperty']['call'](_0x2282d9,'name')&&_0x6e0564['uint32'](0xa)['string'](_0x2282d9['name']),null!=_0x2282d9['children']&&_0x2282d9['children']['length']){for(var _0x5f0430=0x0;_0x5f0430<_0x2282d9['children']['length'];++_0x5f0430)_0x3ab1b0['Element']['encode'](_0x2282d9['children'][_0x5f0430],_0x6e0564['uint32'](0x12)['fork']())['ldelim']();}if(null!=_0x2282d9['data']&&Object['hasOwnProperty']['call'](_0x2282d9,'data')&&_0x6e0564['uint32'](0x1a)['string'](_0x2282d9['data']),null!=_0x2282d9['attributesBoolean']&&Object['hasOwnProperty']['call'](_0x2282d9,'attributesBoolean')){var _0x373773=Object['keys'](_0x2282d9['attributesBoolean']);for(_0x5f0430=0x0;_0x5f0430<_0x373773['length'];++_0x5f0430)_0x6e0564['uint32'](0x22)['fork']()['uint32'](0xa)['string'](_0x373773[_0x5f0430])['uint32'](0x10)['bool'](_0x2282d9['attributesBoolean'][_0x373773[_0x5f0430]])['ldelim']();}return null!=_0x2282d9['attributesJson']&&Object['hasOwnProperty']['call'](_0x2282d9,'attributesJson')&&_0x6e0564['uint32'](0x2a)['string'](_0x2282d9['attributesJson']),_0x6e0564;},_0x4d626e['encodeDelimited']=function(_0x50c8fd,_0x3cb9fe){return this['encode'](_0x50c8fd,_0x3cb9fe)['ldelim']();},_0x4d626e['decode']=function(_0x11a7ca,_0x3939b8){_0x11a7ca instanceof _0x13ec40||(_0x11a7ca=_0x13ec40['create'](_0x11a7ca));for(var _0x38b266,_0x1095d9,_0x2676e4=void 0x0===_0x3939b8?_0x11a7ca['len']:_0x11a7ca['pos']+_0x3939b8,_0x26d7f3=new _0x3ab1b0['Element']();_0x11a7ca['pos']<_0x2676e4;){var _0x59456e=_0x11a7ca['uint32']();switch(_0x59456e>>>0x3){case 0x1:_0x26d7f3['name']=_0x11a7ca['string']();break;case 0x2:_0x26d7f3['children']&&_0x26d7f3['children']['length']||(_0x26d7f3['children']=[]),_0x26d7f3['children']['push'](_0x3ab1b0['Element']['decode'](_0x11a7ca,_0x11a7ca['uint32']()));break;case 0x3:_0x26d7f3['data']=_0x11a7ca['string']();break;case 0x4:_0x26d7f3['attributesBoolean']===_0x53a02c['emptyObject']&&(_0x26d7f3['attributesBoolean']={});var _0x2b4e41=_0x11a7ca['uint32']()+_0x11a7ca['pos'];for(_0x38b266='',_0x1095d9=!0x1;_0x11a7ca['pos']<_0x2b4e41;){var _0x9ebc9a=_0x11a7ca['uint32']();switch(_0x9ebc9a>>>0x3){case 0x1:_0x38b266=_0x11a7ca['string']();break;case 0x2:_0x1095d9=_0x11a7ca['bool']();break;default:_0x11a7ca['skipType'](0x7&_0x9ebc9a);}}_0x26d7f3['attributesBoolean'][_0x38b266]=_0x1095d9;break;case 0x5:_0x26d7f3['attributesJson']=_0x11a7ca['string']();break;default:_0x11a7ca['skipType'](0x7&_0x59456e);}}return _0x26d7f3;},_0x4d626e['decodeDelimited']=function(_0x24a341){return _0x24a341 instanceof _0x13ec40||(_0x24a341=new _0x13ec40(_0x24a341)),this['decode'](_0x24a341,_0x24a341['uint32']());},_0x4d626e['verify']=function(_0x2f3ec2){if('object'!=typeof _0x2f3ec2||null===_0x2f3ec2)return'object\x20expected';if(null!=_0x2f3ec2['name']&&_0x2f3ec2['hasOwnProperty']('name')&&!_0x53a02c['isString'](_0x2f3ec2['name']))return'name:\x20string\x20expected';if(null!=_0x2f3ec2['children']&&_0x2f3ec2['hasOwnProperty']('children')){if(!Array['isArray'](_0x2f3ec2['children']))return'children:\x20array\x20expected';for(var _0x57f1f6=0x0;_0x57f1f6<_0x2f3ec2['children']['length'];++_0x57f1f6){var _0x4b7ad4=_0x3ab1b0['Element']['verify'](_0x2f3ec2['children'][_0x57f1f6]);if(_0x4b7ad4)return'children.'+_0x4b7ad4;}}if(null!=_0x2f3ec2['data']&&_0x2f3ec2['hasOwnProperty']('data')&&!_0x53a02c['isString'](_0x2f3ec2['data']))return'data:\x20string\x20expected';if(null!=_0x2f3ec2['attributesBoolean']&&_0x2f3ec2['hasOwnProperty']('attributesBoolean')){if(!_0x53a02c['isObject'](_0x2f3ec2['attributesBoolean']))return'attributesBoolean:\x20object\x20expected';var _0x363319=Object['keys'](_0x2f3ec2['attributesBoolean']);for(_0x57f1f6=0x0;_0x57f1f6<_0x363319['length'];++_0x57f1f6)if('boolean'!=typeof _0x2f3ec2['attributesBoolean'][_0x363319[_0x57f1f6]])return'attributesBoolean:\x20boolean{k:string}\x20expected';}return null!=_0x2f3ec2['attributesJson']&&_0x2f3ec2['hasOwnProperty']('attributesJson')&&!_0x53a02c['isString'](_0x2f3ec2['attributesJson'])?'attributesJson:\x20string\x20expected':null;},_0x4d626e['fromObject']=function(_0x48dd89){if(_0x48dd89 instanceof _0x3ab1b0['Element'])return _0x48dd89;var _0x340b41=new _0x3ab1b0['Element']();if(null!=_0x48dd89['name']&&(_0x340b41['name']=String(_0x48dd89['name'])),_0x48dd89['children']){if(!Array['isArray'](_0x48dd89['children']))throw TypeError('.Element.children:\x20array\x20expected');_0x340b41['children']=[];for(var _0x1cfb86=0x0;_0x1cfb86<_0x48dd89['children']['length'];++_0x1cfb86){if('object'!=typeof _0x48dd89['children'][_0x1cfb86])throw TypeError('.Element.children:\x20object\x20expected');_0x340b41['children'][_0x1cfb86]=_0x3ab1b0['Element']['fromObject'](_0x48dd89['children'][_0x1cfb86]);}}if(null!=_0x48dd89['data']&&(_0x340b41['data']=String(_0x48dd89['data'])),_0x48dd89['attributesBoolean']){if('object'!=typeof _0x48dd89['attributesBoolean'])throw TypeError('.Element.attributesBoolean:\x20object\x20expected');_0x340b41['attributesBoolean']={};var _0x5e0e6b=Object['keys'](_0x48dd89['attributesBoolean']);for(_0x1cfb86=0x0;_0x1cfb86<_0x5e0e6b['length'];++_0x1cfb86)_0x340b41['attributesBoolean'][_0x5e0e6b[_0x1cfb86]]=Boolean(_0x48dd89['attributesBoolean'][_0x5e0e6b[_0x1cfb86]]);}return null!=_0x48dd89['attributesJson']&&(_0x340b41['attributesJson']=String(_0x48dd89['attributesJson'])),_0x340b41;},_0x4d626e['toObject']=function(_0x4883d0,_0x397a43){_0x397a43||(_0x397a43={});var _0x2d84be,_0x1e3710={};if((_0x397a43['arrays']||_0x397a43['defaults'])&&(_0x1e3710['children']=[]),(_0x397a43['objects']||_0x397a43['defaults'])&&(_0x1e3710['attributesBoolean']={}),_0x397a43['defaults']&&(_0x1e3710['name']='',_0x1e3710['data']='',_0x1e3710['attributesJson']=''),null!=_0x4883d0['name']&&_0x4883d0['hasOwnProperty']('name')&&(_0x1e3710['name']=_0x4883d0['name']),_0x4883d0['children']&&_0x4883d0['children']['length']){_0x1e3710['children']=[];for(var _0x51474e=0x0;_0x51474e<_0x4883d0['children']['length'];++_0x51474e)_0x1e3710['children'][_0x51474e]=_0x3ab1b0['Element']['toObject'](_0x4883d0['children'][_0x51474e],_0x397a43);}if(null!=_0x4883d0['data']&&_0x4883d0['hasOwnProperty']('data')&&(_0x1e3710['data']=_0x4883d0['data']),_0x4883d0['attributesBoolean']&&(_0x2d84be=Object['keys'](_0x4883d0['attributesBoolean']))['length']){_0x1e3710['attributesBoolean']={};for(_0x51474e=0x0;_0x51474e<_0x2d84be['length'];++_0x51474e)_0x1e3710['attributesBoolean'][_0x2d84be[_0x51474e]]=_0x4883d0['attributesBoolean'][_0x2d84be[_0x51474e]];}return null!=_0x4883d0['attributesJson']&&_0x4883d0['hasOwnProperty']('attributesJson')&&(_0x1e3710['attributesJson']=_0x4883d0['attributesJson']),_0x1e3710;},_0x4d626e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4d626e['getTypeUrl']=function(_0x95744e){return void 0x0===_0x95744e&&(_0x95744e='type.googleapis.com'),_0x95744e+'/Element';},_0x4d626e;}()),_0x3ab1b0;})());class ProtobufFactory{['_protobufRoot'];constructor(){this['_protobufRoot']=messages;}['getDescriptor'](_0x2eb646){return new ProtobufDescriptor(this['_protobufRoot'][_0x2eb646]);}}class ProtobufDescriptor{['_protobuf'];constructor(_0x2d40dc){this['_protobuf']=_0x2d40dc;}['compress'](_0x1feca8){const _0x199d31=this['_protobuf']['verify'](_0x1feca8);if(_0x199d31)throw Error(_0x199d31);return this['_protobuf']['encode'](this['_protobuf']['create'](_0x1feca8))['finish']();}['decompress'](_0x343fe7){return this['_protobuf']['toObject'](this['_protobuf']['decode'](_0x343fe7),{'oneofs':!0x0});}}function getPositionShiftedBy(_0x3849ec,_0x541f2e){const _0x35bd52=cloneDeep(_0x3849ec);return _0x35bd52['path'][_0x35bd52['path']['length']-0x1]+=_0x541f2e,_0x35bd52;}function arePositionsEqual(_0x26baae,_0x31419a){return _0x26baae['root']===_0x31419a['root']&&isEqual(_0x26baae['path'],_0x31419a['path']);}function parsePositionBeforeCompression(_0x684b60){_mapPositions(_0x684b60,_0x52da54=>('main'==_0x52da54['root']?(_0x52da54['rootMain']=!0x0,delete _0x52da54['root']):'$graveyard'==_0x52da54['root']&&(_0x52da54['rootGraveyard']=!0x0,delete _0x52da54['root']),_0x52da54));}function parsePositionAfterCompression(_0x1727b2){_mapPositions(_0x1727b2,_0x141f38=>(_0x141f38['rootMain']?(_0x141f38['root']='main',delete _0x141f38['rootMain']):_0x141f38['rootGraveyard']&&(_0x141f38['root']='$graveyard',delete _0x141f38['rootGraveyard']),_0x141f38));}function _mapPositions(_0x4db3b7,_0x2e8dfa){for(const _0x2f9315 in _0x4db3b7){const _0x3ed06d=_0x4db3b7[_0x2f9315];'nodes'!==_0x2f9315&&isObject$3(_0x3ed06d)&&(_0x3ed06d['path']&&(_0x3ed06d['root']||_0x3ed06d['rootMain']||_0x3ed06d['rootGraveyard'])?_0x4db3b7[_0x2f9315]=_0x2e8dfa(_0x3ed06d):_mapPositions(_0x3ed06d,_0x2e8dfa));}return _0x4db3b7;}class OperationCompressor{['_id'];['_operationName'];['_protobufDescriptor'];constructor(_0x17af76,_0x42fd12,_0x47a3ce){this['_id']=_0x17af76,this['_operationName']=_0x42fd12,this['_protobufDescriptor']=_0x47a3ce;}['compress'](_0xc7d5fc,_0x271a09){const _0x4f2240=_0x271a09['shift']();return parsePositionBeforeCompression(_0x4f2240),_0xc7d5fc['buffers']['push'](this['_protobufDescriptor']['compress'](_0x4f2240)),_0xc7d5fc['types']['push'](this['_id']),!0x0;}['decompress'](_0x2d8622,_0x6265a9){_0x6265a9['types']['shift']();const _0x5b5f69=this['_protobufDescriptor']['decompress'](_0x6265a9['buffers']['shift']());parsePositionAfterCompression(_0x5b5f69),_0x5b5f69['__className']=this['_operationName'],_0x2d8622['push'](_0x5b5f69);}}class AttributeOperationCompressor extends OperationCompressor{['compress'](_0x42b67e,_0x506182){const _0x3d1e67=_0x506182['shift']();return this['_serializeOneOf']('oldValue',_0x3d1e67),this['_serializeOneOf']('newValue',_0x3d1e67),parsePositionBeforeCompression(_0x3d1e67),_0x42b67e['buffers']['push'](this['_protobufDescriptor']['compress'](_0x3d1e67)),_0x42b67e['types']['push'](this['_id']),!0x0;}['decompress'](_0x501734,_0x5dd419){const {types:_0x8cbb3e,buffers:_0x5cacf7}=_0x5dd419,_0x2ab5c0=this['_protobufDescriptor']['decompress'](_0x5cacf7['shift']());_0x8cbb3e['shift'](),this['_deserializeOneOf']('oldValue',_0x2ab5c0),this['_deserializeOneOf']('newValue',_0x2ab5c0),parsePositionAfterCompression(_0x2ab5c0),_0x2ab5c0['__className']=this['_operationName'],_0x501734['push'](_0x2ab5c0);}['_serializeOneOf'](_0x38baec,_0x78256f){const _0x3225ce=_0x78256f[_0x38baec];'boolean'==typeof _0x3225ce?_0x78256f[_0x38baec+'Boolean']=_0x3225ce:_0x78256f[_0x38baec+'Json']=JSON['stringify'](_0x3225ce);}['_deserializeOneOf'](_0x3db80c,_0x319b89){const _0x53ef94=_0x3db80c+'Json';_0x319b89[_0x53ef94]?(_0x319b89[_0x3db80c]=JSON['parse'](_0x319b89[_0x53ef94]),delete _0x319b89[_0x53ef94]):(_0x319b89[_0x3db80c]=_0x319b89[_0x3db80c+'Boolean'],delete _0x319b89[_0x3db80c+'Boolean']);}}class InsertOperationCompressor extends OperationCompressor{['compress'](_0x56839a,_0x1e873b){const _0x37da37=_0x1e873b['shift']();return this['_serializeNodesAttributes'](_0x37da37['nodes']),parsePositionBeforeCompression(_0x37da37),_0x56839a['buffers']['push'](this['_protobufDescriptor']['compress'](_0x37da37)),_0x56839a['types']['push'](this['_id']),!0x0;}['decompress'](_0x5a8d23,_0x57e992){const {types:_0x3d0b40,buffers:_0x4d624f}=_0x57e992,_0x5ed2aa=this['_protobufDescriptor']['decompress'](_0x4d624f['shift']());_0x3d0b40['shift'](),_0x5ed2aa['nodes']||(_0x5ed2aa['nodes']=[]),this['_deserializeNodesAttributes'](_0x5ed2aa['nodes']),parsePositionAfterCompression(_0x5ed2aa),_0x5ed2aa['__className']=this['_operationName'],_0x5a8d23['push'](_0x5ed2aa);}['_serializeNodesAttributes'](_0x168a23){for(const _0x3c91e2 of _0x168a23){if(_0x3c91e2['attributes']){const _0x10e26b=_0x3c91e2['attributes'];this['_areValuesBoolean'](_0x10e26b)?_0x3c91e2['attributesBoolean']=_0x10e26b:_0x3c91e2['attributesJson']=JSON['stringify'](_0x10e26b);}_0x3c91e2['children']&&this['_serializeNodesAttributes'](_0x3c91e2['children']);}}['_deserializeNodesAttributes'](_0x1b80f9){for(const _0x43c467 of _0x1b80f9)(_0x43c467['attributesBoolean']||_0x43c467['attributesJson'])&&(_0x43c467['attributesBoolean']?(_0x43c467['attributes']=_0x43c467['attributesBoolean'],delete _0x43c467['attributesBoolean']):(_0x43c467['attributes']=JSON['parse'](_0x43c467['attributesJson']),delete _0x43c467['attributesJson'])),_0x43c467['children']&&this['_deserializeNodesAttributes'](_0x43c467['children']);}['_areValuesBoolean'](_0xc9caa){return Object['keys'](_0xc9caa)['every'](_0x5ad813=>'boolean'==typeof _0xc9caa[_0x5ad813]);}}class MarkerOperationCompressor extends OperationCompressor{['decompress'](_0x37497e,_0x2baf62){super['decompress'](_0x37497e,_0x2baf62);const _0x36ddd0=_0x37497e[_0x37497e['length']-0x1];_0x36ddd0['oldRange']||(_0x36ddd0['oldRange']=null),_0x36ddd0['newRange']||(_0x36ddd0['newRange']=null);}}class NoOperationCompressor extends OperationCompressor{['compress'](_0x391a97,_0x4f70a2){return _0x4f70a2['shift'](),_0x391a97['types']['push'](this['_id']),!0x0;}['decompress'](_0x4bcbd6,_0x43d773){_0x43d773['types']['shift'](),_0x4bcbd6['push']({'__className':this['_operationName']});}}class AnnotationMarkerOperationCompressor extends MarkerOperationCompressor{['_omittedNamespace'];constructor(_0x3f9008,_0x1659b9,_0x398187,_0x7e291d){super(_0x3f9008,_0x1659b9,_0x398187),this['_omittedNamespace']=_0x7e291d+':';}['compress'](_0x4d1cfe,_0x14443d){return!('MarkerOperation'!=_0x14443d[0x0]['__className']||!_0x14443d[0x0]['name']['startsWith'](this['_omittedNamespace']))&&(_0x14443d[0x0]['name']=_0x14443d[0x0]['name']['replace'](new RegExp('^'+this['_omittedNamespace']),''),super['compress'](_0x4d1cfe,_0x14443d),!0x0);}['decompress'](_0x43fada,_0x57973c){super['decompress'](_0x43fada,_0x57973c);const _0x4edc39=_0x43fada[_0x43fada['length']-0x1];_0x4edc39['name']=this['_omittedNamespace']+_0x4edc39['name'];}}class ActionCompressor{['_id'];['_context'];constructor(_0x599ea1,_0x1bc4c5){this['_id']=_0x599ea1,this['_context']=_0x1bc4c5;}['compress'](_0x1d4cea,_0xf49d05){let _0x5c1413;for(;_0xf49d05['length']>0x1&&this['_compareOperations'](_0xf49d05[0x0],_0xf49d05[0x1]);)_0x5c1413?(_0x5c1413=this['_combineNext'](_0xf49d05['shift'](),_0x5c1413),_0x1d4cea['types']['push'](0x0)):(_0x5c1413=cloneDeep(_0xf49d05['shift']()),_0x1d4cea['types']['push'](this['_id']));return!!_0x5c1413&&(_0x5c1413=this['_combineNext'](_0xf49d05['shift'](),_0x5c1413),_0x1d4cea['types']['push'](0x0),_0x1d4cea['buffers']['push'](this['_compressSingleOperation'](_0x5c1413)),!0x0);}['decompress'](_0x49c232,_0x1bebed){const _0xacb37c=this['_decompressSingleOperation'](_0x1bebed);for(;0x0==_0x1bebed['types'][0x0];)_0x1bebed['types']['shift'](),_0x49c232['push'](this['_splitCurrent'](_0xacb37c));_0x49c232['push'](_0xacb37c);}}class TypingActionCompressor extends ActionCompressor{['_combineNext'](_0x2f4675,_0x4d1809){return _0x4d1809['nodes'][0x0]['data']+=_0x2f4675['nodes'][0x0]['data'],_0x4d1809;}['_splitCurrent'](_0x406145){const _0xf543e=cloneDeep(_0x406145),_0x3617bc=_0xf543e['nodes'][0x0],_0x2d42fc=_0x406145['nodes'][0x0],_0x5d1ba0=_0x2d42fc['data'][Symbol['iterator']]()['next']()['value'],_0x4f5acf=_0x5d1ba0['length'];return _0x3617bc['data']=_0x5d1ba0,_0x2d42fc['data']=_0x2d42fc['data']['substr'](_0x4f5acf),_0x406145['position']=getPositionShiftedBy(_0x406145['position'],_0x4f5acf),_0xf543e;}['_compareOperations'](_0x1a2571,_0x5ea69a){if(this['_checkOperation'](_0x1a2571)&&this['_checkOperation'](_0x5ea69a)){const _0xe8f778=_0x1a2571['nodes'][0x0]['data']['length'],_0x5bf7b4=arePositionsEqual(getPositionShiftedBy(_0x1a2571['position'],_0xe8f778),_0x5ea69a['position']),_0xfebc7c=_0x1a2571['nodes'][0x0],_0x153a7f=_0x5ea69a['nodes'][0x0];return _0x5bf7b4&&this['_compareAttributes'](_0xfebc7c,_0x153a7f);}return!0x1;}['_compressSingleOperation'](_0x7c5750){const _0x468af9={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('InsertOperation')['compress'](_0x468af9,[_0x7c5750]),_0x468af9['buffers'][0x0];}['_decompressSingleOperation'](_0x5055fb){const _0x6c83b8=[];return this['_context']['_getCompressorByName']('InsertOperation')['decompress'](_0x6c83b8,_0x5055fb),_0x6c83b8[0x0];}['_checkOperation'](_0x4b2cfb){return'InsertOperation'==_0x4b2cfb['__className']&&0x1==_0x4b2cfb['nodes']['length']&&_0x4b2cfb['nodes'][0x0]['data']&&!_0x4b2cfb['wasUndone']&&0x1==Array['from'](_0x4b2cfb['nodes'][0x0]['data'])['length'];}['_compareAttributes'](_0x2774f3,_0x250dc8){const _0x41c230=Object['keys'](_0x2774f3['attributes']||{}),_0x55135a=Object['keys'](_0x250dc8['attributes']||{});return _0x41c230['length']===_0x55135a['length']&&_0x41c230['every'](_0x3dd16b=>_0x250dc8['attributes'][_0x3dd16b]&&_0x250dc8['attributes'][_0x3dd16b]===_0x2774f3['attributes'][_0x3dd16b]);}}class DeletingActionCompressor extends ActionCompressor{['_combineNext'](_0x3e7cfa,_0x346bd4){return _0x346bd4['howMany']++,_0x346bd4['sourcePosition']=cloneDeep(_0x3e7cfa['sourcePosition']),_0x346bd4;}['_splitCurrent'](_0x3256a1){const _0x289565=cloneDeep(_0x3256a1);return _0x3256a1['howMany']--,_0x289565['howMany']=0x1,_0x289565['sourcePosition']=getPositionShiftedBy(_0x289565['sourcePosition'],_0x3256a1['howMany']),_0x289565;}['_compareOperations'](_0x53303b,_0x54dd3b){return!(!this['_checkOperation'](_0x53303b)||!this['_checkOperation'](_0x54dd3b))&&(arePositionsEqual(getPositionShiftedBy(_0x53303b['sourcePosition'],-0x1),_0x54dd3b['sourcePosition'])&&arePositionsEqual(_0x53303b['targetPosition'],_0x54dd3b['targetPosition']));}['_compressSingleOperation'](_0x305786){const _0x55329d={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0x55329d,[_0x305786]),_0x55329d['buffers'][0x0];}['_decompressSingleOperation'](_0x3bc373){const _0x14eb0b=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0x14eb0b,_0x3bc373),_0x14eb0b[0x0];}['_checkOperation'](_0xa88748){return'MoveOperation'==_0xa88748['__className']&&'$graveyard'==_0xa88748['targetPosition']['root']&&0x1==_0xa88748['howMany']&&!_0xa88748['wasUndone'];}}class ForwardDeletingActionCompressor extends ActionCompressor{['_combineNext'](_0x7cbf07,_0x2131a9){return _0x2131a9['howMany']++,_0x2131a9;}['_splitCurrent'](_0x1e56d7){const _0x5e9564=cloneDeep(_0x1e56d7);return _0x5e9564['howMany']=0x1,_0x1e56d7['howMany']--,_0x5e9564;}['_compareOperations'](_0x39700a,_0x380694){return!(!this['_checkOperation'](_0x39700a)||!this['_checkOperation'](_0x380694))&&(arePositionsEqual(_0x39700a['sourcePosition'],_0x380694['sourcePosition'])&&arePositionsEqual(_0x39700a['targetPosition'],_0x380694['targetPosition']));}['_compressSingleOperation'](_0x36444f){const _0x4a75b3={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0x4a75b3,[_0x36444f]),_0x4a75b3['buffers'][0x0];}['_decompressSingleOperation'](_0xe028e){const _0x45021d=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0x45021d,_0xe028e),_0x45021d[0x0];}['_checkOperation'](_0x5e635f){return'MoveOperation'==_0x5e635f['__className']&&'$graveyard'==_0x5e635f['targetPosition']['root']&&0x1==_0x5e635f['howMany']&&!_0x5e635f['wasUndone'];}}class UserSelectionActionCompressor extends ActionCompressor{['compress'](_0x91faa2,_0x195040){if(!this['_compareOperations'](_0x195040[0x0],_0x195040[0x1]))return!0x1;const _0x28e1b3=_0x195040['shift']();return _0x28e1b3['oldRange']=null,_0x28e1b3['newRange']&&arePositionsEqual(_0x28e1b3['newRange']['start'],_0x28e1b3['newRange']['end'])&&(_0x28e1b3['newRange']['end']=null),_0x195040['shift'](),_0x91faa2['types']['push'](this['_id']),_0x91faa2['types']['push'](0x0),_0x91faa2['buffers']['push'](this['_compressSingleOperation'](_0x28e1b3)),!0x0;}['decompress'](_0x4762e0,_0x51883b){const _0x1e5e1c=this['_decompressSingleOperation'](_0x51883b);_0x1e5e1c['newRange']&&!_0x1e5e1c['newRange']['end']&&(_0x1e5e1c['newRange']['end']=cloneDeep(_0x1e5e1c['newRange']['start']));const _0x2e92f3=cloneDeep(_0x1e5e1c);_0x2e92f3['newRange']&&(_0x2e92f3['newRange']['start']['stickiness']='toNone',_0x2e92f3['newRange']['end']=cloneDeep(_0x2e92f3['newRange']['start'])),_0x2e92f3['name']='user:position:'+_0x2e92f3['name']['split'](':')[0x2],_0x51883b['types']['shift'](),_0x4762e0['push'](_0x1e5e1c),_0x4762e0['push'](_0x2e92f3);}['_compressSingleOperation'](_0x548add){const _0xc05e80={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MarkerOperation')['compress'](_0xc05e80,[_0x548add]),_0xc05e80['buffers'][0x0];}['_decompressSingleOperation'](_0x436787){const _0x22a27e=[];return this['_context']['_getCompressorByName']('MarkerOperation')['decompress'](_0x22a27e,_0x436787),_0x22a27e[0x0];}['_compareOperations'](_0x348ebe,_0x4e9df3){return!(!_0x348ebe||!_0x4e9df3)&&('MarkerOperation'==_0x348ebe['__className']&&'MarkerOperation'==_0x4e9df3['__className']&&!(!_0x348ebe['name']['startsWith']('user:')||!_0x4e9df3['name']['startsWith']('user:')||_0x348ebe['name']==_0x4e9df3['name']));}}class Compressor{['_compressorById'];['_compressorByName'];['_protobufFactory'];constructor(){this['_compressorById']=new Map(),this['_compressorByName']=new Map(),this['_protobufFactory']=new ProtobufFactory();const _0xe1b27c=this['_protobufFactory']['getDescriptor']('MarkerOperation');this['_registerCompressor'](0x1,'NoOperation',new NoOperationCompressor(0x1,'NoOperation',void 0x0)),this['_registerOperationCompressor'](0xa,'AttributeOperation',AttributeOperationCompressor),this['_registerOperationCompressor'](0xb,'InsertOperation',InsertOperationCompressor),this['_registerOperationCompressor'](0xc,'MarkerOperation',MarkerOperationCompressor),this['_registerOperationCompressor'](0xd,'MergeOperation',OperationCompressor),this['_registerOperationCompressor'](0xe,'MoveOperation',OperationCompressor),this['_registerOperationCompressor'](0xf,'RenameOperation',OperationCompressor),this['_registerOperationCompressor'](0x10,'RootAttributeOperation',AttributeOperationCompressor),this['_registerOperationCompressor'](0x11,'SplitOperation',OperationCompressor),this['_registerCompressor'](0x12,'CommentMarkerOperation',new AnnotationMarkerOperationCompressor(0x12,'MarkerOperation',_0xe1b27c,'comment')),this['_registerCompressor'](0x13,'SuggestionMarkerOperation',new AnnotationMarkerOperationCompressor(0x13,'MarkerOperation',_0xe1b27c,'suggestion')),this['_registerOperationCompressor'](0x14,'RootOperation',OperationCompressor),this['_registerActionCompressor'](0x64,'TypingAction',TypingActionCompressor),this['_registerActionCompressor'](0x65,'DeletingAction',DeletingActionCompressor),this['_registerActionCompressor'](0x66,'ForwardDeletingAction',ForwardDeletingActionCompressor),this['_registerActionCompressor'](0x67,'UserSelectionAction',UserSelectionActionCompressor);}['compress'](_0x1a0392){if(!_0x1a0392||!_0x1a0392[0x0])throw new CKEditorError('no-operations-provided',this);const _0x3792a4={'types':[],'buffers':[],'baseVersion':_0x1a0392[0x0]['baseVersion']};for(;_0x1a0392['length'];)this['_getCompressorByName']('UserSelectionAction')['compress'](_0x3792a4,_0x1a0392)||this['_getCompressorByName']('TypingAction')['compress'](_0x3792a4,_0x1a0392)||this['_getCompressorByName']('DeletingAction')['compress'](_0x3792a4,_0x1a0392)||this['_getCompressorByName']('ForwardDeletingAction')['compress'](_0x3792a4,_0x1a0392)||this['_getCompressorByName']('CommentMarkerOperation')['compress'](_0x3792a4,_0x1a0392)||this['_getCompressorByName']('SuggestionMarkerOperation')['compress'](_0x3792a4,_0x1a0392)||this['_getCompressorByName'](_0x1a0392[0x0]['__className'])['compress'](_0x3792a4,_0x1a0392);return _0x3792a4;}['decompress'](_0x1f3db5){const _0x2bcc49=[];for(;_0x1f3db5['types']['length'];){const _0x36c9a4=this['_compressorById']['get'](_0x1f3db5['types'][0x0]);if(!_0x36c9a4)throw new CKEditorError('decompress-compressor-not-found',this,{'type':_0x1f3db5['types'][0x0]});_0x36c9a4['decompress'](_0x2bcc49,_0x1f3db5);}return _0x2bcc49['forEach']((_0x43231a,_0x1814f6)=>_0x43231a['baseVersion']=_0x1f3db5['baseVersion']+_0x1814f6),_0x2bcc49;}['_getCompressorByName'](_0xe0ade2){return this['_compressorByName']['get'](_0xe0ade2);}['_registerOperationCompressor'](_0x1460b8,_0x491c73,_0x2b54a5){const _0x366cd1=new _0x2b54a5(_0x1460b8,_0x491c73,this['_protobufFactory']['getDescriptor'](_0x491c73));this['_registerCompressor'](_0x1460b8,_0x491c73,_0x366cd1);}['_registerActionCompressor'](_0x3dd5e6,_0x2b1fd0,_0x4ead3f){const _0x22b270=new _0x4ead3f(_0x3dd5e6,this);this['_registerCompressor'](_0x3dd5e6,_0x2b1fd0,_0x22b270);}['_registerCompressor'](_0x4d50eb,_0x5e613f,_0xc1ad67){this['_compressorById']['set'](_0x4d50eb,_0xc1ad67),this['_compressorByName']['set'](_0x5e613f,_0xc1ad67);}}let requestCount=0x1;class RealTimeCollaborationClient extends Plugin{static ['CollaborativeEditingService']=/* #__PURE__ -- @preserve */
((()=>CollaborativeEditingService)());['_offset'];['sessionId'];['serverHistory'];['_channelId'];['_service'];['_document'];['_compressor'];['_bufferedOperations'];['_knownOperations'];['_knownRootNames'];['_pendingAction'];['_hasSelectionChanged'];['_sendBufferedOperationsDelayId'];['_baseBufferDelay'];['_currentBufferDelay'];['_lastSyncedOperationId'];['_disconnectionOperations'];['_operationIdentifier'];static get['requires'](){return[WebSocketGateway,Sessions,UserMarkers,PendingActions,Users,Notification];}static get['pluginName'](){return'RealTimeCollaborationClient';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['cloudDocumentVersion'](){return this['_lastServerVersion']+this['_offset'];}get['_lastServerVersion'](){return this['serverHistory']['version']-this['_offset'];}get['lastSyncVersion'](){const _0x59e17c=this['serverHistory']['getOperations']();for(let _0x329bcd=_0x59e17c['length']-0x1;_0x329bcd>=0x0;_0x329bcd--){const _0x404ed3=_0x59e17c[_0x329bcd];if(!this['_disconnectionOperations']['has'](_0x404ed3))return _0x404ed3['baseVersion']+0x1-this['_offset'];}return 0x0;}constructor(_0x2ced7c){if(super(_0x2ced7c),this['_offset']=0x0,this['sessionId']=null,this['serverHistory']=new History(),this['editor']['config']['define']('collaboration',{}),this['_channelId']=this['editor']['config']['get']('collaboration.channelId'),!this['_channelId'])throw new CKEditorError('collaboration-missing-channelid',this);const _0x154031=_0x2ced7c['config']['get']('cloudServices.bundleVersion')||_0x495162;this['_service']=new RealTimeCollaborationClient['CollaborativeEditingService'](_0x154031,this['_channelId']),this['_document']=this['editor']['model']['document'],this['_compressor']=new Compressor(),this['_bufferedOperations']=[],this['_knownOperations']=new WeakSet(),this['_knownRootNames']=new Set(),this['set']('_isPendingUpdate',!0x1),this['set']('_hasSynchronizationProblem',!0x1),this['_pendingAction']=null,this['_hasSelectionChanged']=!0x1,this['_sendBufferedOperationsDelayId']=null,this['_baseBufferDelay']=0x12c,this['_currentBufferDelay']=this['_baseBufferDelay'],this['_lastSyncedOperationId']=null,this['_disconnectionOperations']=new WeakSet(),this['_operationIdentifier']=new OperationIdentifier(this['_disconnectionOperations']);}['init'](){const _0x4bc230=this['editor'],_0x1d28ee=_0x4bc230['plugins']['get'](Users),_0x1ae97f=_0x4bc230['plugins']['get'](WebSocketGateway);this['listenTo'](_0x1d28ee,'getOperationAuthor',(_0x225dad,_0x151a8c)=>{const _0x2ebeff=_0x151a8c[0x0];_0x2ebeff['_authorId']&&(_0x225dad['return']=_0x1d28ee['getUser'](_0x2ebeff['_authorId']),_0x225dad['stop']()),null===_0x2ebeff['_authorId']&&(_0x225dad['return']=null,_0x225dad['stop']());},{'priority':'high'}),this['listenTo'](_0x4bc230['model']['document']['selection'],'change:range',(_0x339d86,_0x588ff5)=>{_0x588ff5['directChange']&&this['_refreshUserSelectionMarkers']();}),this['listenTo'](_0x4bc230['editing']['view'],'change:hasDomSelection',()=>{this['_refreshUserSelectionMarkers']();}),this['_initThrowingOnDataSet'](),_0x4bc230['model']['on']('applyOperation',(_0x2b90d2,_0x3f42c2)=>{const _0x1b2a69=_0x3f42c2[0x0];_0x1b2a69['isDocumentOperation']&&(this['_saveOperationInBuffer'](_0x1b2a69),this['_shouldSendUpdate']()&&this['_sendBufferedOperationsDelayed']());}),this['_setUpDataInit'](),this['bind']('_isEditingAllowed')['to'](_0x1ae97f,'state',this,'_hasSynchronizationProblem',(_0x28c63e,_0x1f6138)=>'connected'===_0x28c63e&&!_0x1f6138),this['on']('change:_isEditingAllowed',()=>{this['_isEditingAllowed']?_0x4bc230['disableReadOnlyMode']('rtc-offline'):_0x4bc230['enableReadOnlyMode']('rtc-offline');}),this['_isEditingAllowed']?_0x4bc230['disableReadOnlyMode']('rtc-offline'):_0x4bc230['enableReadOnlyMode']('rtc-offline'),this['set']('_isConnected',!0x1);}async['reconnect'](){const _0x2f6ea0=this['editor']['plugins']['get'](Sessions),_0x516aee=this['editor']['plugins']['get'](WebSocketGateway);try{this['_isPendingUpdate']=!0x0,_0x2f6ea0['unregister'](this['_channelId']);const _0x38f62e=await this['_service']['reconnect'](_0x516aee['connection'],this['lastSyncVersion']);await this['_handleReconnectionResponse'](_0x38f62e)&&(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']());const _0x38fcba=await this['_service']['getConnectedSessions']();_0x2f6ea0['register'](this['_channelId'],_0x38fcba),this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}catch(_0x1ae020){if(isSessionNotExistingError(_0x1ae020)&&this['sessionId'])await this['_connectAfterSessionHasBeenFlushed']();else{if(isBaseVersionMismatchError(_0x1ae020)){const _0x2e556b=getTranslation$6(this['editor']['locale'],'The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');this['_handleReconnectionError'](_0x2e556b);}else{if(!(_0x1ae020 instanceof ReconnectionError))throw _0x1ae020;this['_handleReconnectionError']();}}}}['destroy'](){const _0x56cf65=this['editor']['plugins']['get'](WebSocketGateway),_0x4cbe0c=this['editor']['plugins']['get'](Sessions);this['editor']['enableReadOnlyMode']('rtc-destroyed'),_0x4cbe0c['channelSessions']['has'](this['_channelId'])&&_0x4cbe0c['unregister'](this['_channelId']),_0x56cf65['removeFromReconnectionStack'](this),this['_disconnectService'](),super['destroy']();}async['_handleReconnectionResponse'](_0x5af78e){if(this['sessionId']!==_0x5af78e['sessionId']&&this['_lastSyncedOperationId']!==_0x5af78e['lastOperationId'])throw new ReconnectionError();return this['sessionId']=_0x5af78e['sessionId'],this['_handleServerResponse']([],{..._0x5af78e,'wereChangesApplied':!0x1,'data':_0x5af78e['data']},'reconnect');}async['_connectService'](_0x7a7037,_0x3097d2=!0x1){const {connection:_0x4e971a}=this['editor']['plugins']['get'](WebSocketGateway);RealTimeCollaborationClient['CollaborativeEditingService']['getConnectedSessions'](_0x4e971a,this['_channelId'])['then'](_0x5832bf=>this['_initSessionsHandling'](_0x5832bf))['catch'](_0x36adea=>{this['_crash']('realtimecollaborationclient-init-session-connection-error',_0x36adea);}),this['listenTo'](this['_service'],'operationsReceived',this['_handleReceivedOperations']['bind'](this)),this['listenTo'](this['_service'],'error',(_0xac165a,_0x180735)=>{this['_crash']('realtimecollaborationclient-init-service-internal-error',_0x180735);}),this['listenTo'](this['_service'],'disconnected',()=>{this['_isConnected']=!0x1;});const _0xcd398a=this['_operationIdentifier']['getIdOfTheLastOperation'](_0x7a7037);this['_isPendingUpdate']=!0x0;const _0x58c712=await this['_service']['connect'](_0x4e971a,this['_compressOperations'](_0x7a7037),_0xcd398a);if(this['sessionId']=_0x58c712['sessionId'],_0x3097d2){if(!_0x58c712['wereChangesApplied'])return void this['_handleReconnectionError']();this['_isPendingUpdate']=!0x1,this['_clearPendingAction'](),this['serverHistory']['reset'](),this['_offset']=_0x58c712['offset'],this['serverHistory']['version']=this['_offset'],await this['_handleServerResponse'](_0x7a7037,_0x58c712,'reconnection:\x20flushed\x20session');}else await this['_handleInitialConnectionData'](_0x58c712,_0x7a7037);this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}['_handleSendingSelectionMarkers'](){const _0x33f5f4=this['editor']['plugins']['get'](Sessions),_0x5b6ef0=this['editor']['plugins']['get'](UserMarkers),_0x39f9d3=_0x33f5f4['channelSessions']['get'](this['_channelId']);_0x39f9d3&&_0x39f9d3['length']>0x1?_0x5b6ef0['createUserMarkerOperations']():this['listenTo'](_0x33f5f4,'sessionAdd:'+this['_channelId'],()=>{0x2===_0x33f5f4['channelSessions']['get'](this['_channelId'])['length']&&_0x5b6ef0['createUserMarkerOperations']();});}async['_handleReceivedOperations'](_0x48427b,_0x4a721f,_0x5004a3,_0x173220){if(!this['_isPendingUpdate']&&this['_document']['version']==_0x4a721f){const _0x4bf530=this['_decompressOperations'](_0x5004a3,_0x173220);await this['_fetchMissingUsers'](_0x4bf530),this['_handleExternalOperations'](_0x4bf530,_0x4a721f,_0x5004a3['lastOperationId'])||this['_crash']('realtimecollaborationclient-init-service-incorrect-server-operation');}}async['_connectAfterSessionHasBeenFlushed'](){this['_disconnectService']();const {locale:_0x1b195d}=this['editor'];let _0x5dc03b;try{_0x5dc03b=await this['_service']['getDocumentDetails']();}catch{const _0x299a12=getTranslation$6(_0x1b195d,'The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');return void this['_handleReconnectionError'](_0x299a12);}const _0x1596e4=_0x5dc03b['currentDocumentSession']||_0x5dc03b['lastDocumentSession'];if(this['_lastSyncedOperationId']!==_0x1596e4['lastOperationId']){const _0x98bf3f=getTranslation$6(_0x1b195d,'The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');return void this['_handleReconnectionError'](_0x98bf3f);}await this['_connectService'](this['editor']['model']['document']['history']['getOperations'](),!0x0);}['_disconnectService'](){this['_service']['disconnect'](),this['_bufferedOperations']=[],clearTimeout(this['_sendBufferedOperationsDelayId']),this['stopListening'](this['_service']);}['_initSessionsHandling'](_0x35625a){const _0x24e9e6=this['editor']['plugins']['get'](Sessions);this['listenTo'](_0x24e9e6,'sessionAdd:'+this['_channelId'],(_0x331025,{session:_0x5b46f1})=>{if(_0x5b46f1['id']===_0x24e9e6['mySessionId']){_0x331025['off']();const _0x22a983=this['editor']['plugins']['has']('CommentsOnly')&&this['editor']['plugins']['get']('CommentsOnly');let _0x2a196f=_0x5b46f1['permissions'];_0x22a983&&_0x22a983['isEnabled']&&(_0x2a196f=_0x2a196f['filter'](_0x25f9a6=>'document:write'!==_0x25f9a6)),this['editor']['plugins']['get']('Permissions')['setPermissions'](_0x2a196f,this['_channelId']);}}),_0x24e9e6['register'](this['_channelId'],_0x35625a);}['_initThrowingOnDataSet'](){const _0x488f99=this['editor']['data']['set'];this['editor']['data']['set']=(..._0x398530)=>{if(!_0x398530[_0x398530['length']-0x1]['suppressErrorInCollaboration'])throw new CKEditorError('realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration',this);_0x488f99['apply'](this['editor']['data'],_0x398530);};}['_setUpDataInit'](){this['editor']['data']['on']('init',(_0x5207a8,[_0x2b5169])=>{if(this['_document']['version'])throw new CKEditorError('realtimecollaborationclient-init-document-already-initialized',this);_0x5207a8['stop'](),this['_setPendingAction']();const _0x33b34f=this['editor']['config']['get']('rootsAttributes'),_0x598a24=this['_getOperationsFromInitData'](_0x2b5169,_0x33b34f);0x0==_0x598a24['length']&&_0x598a24['push'](new NoOperation(0x0)),_0x5207a8['return']=this['_connectService'](_0x598a24)['then'](()=>{this['editor']['plugins']['get'](WebSocketGateway)['addToReconnectionStack'](this),this['editor']['data']['fire']('ready');})['catch'](_0xa5d91a=>this['_crash']('realtimecollaborationclient-init-connection-failed',_0xa5d91a))['finally'](()=>this['_clearPendingAction']());},{'priority':'high'}),this['editor']['on']('loadRoot',async(_0x2c476b,[_0xa64ab7,_0xe82afb])=>{_0x2c476b['stop']();const _0x4c6486=this['editor']['model']['document']['getRoot'](_0xa64ab7);if(!this['_knownRootNames']['has'](_0xa64ab7)){const _0x4d89f3=_0xe82afb&&_0xe82afb['data']?_0xe82afb['data']:'',_0x19d08f=_0xe82afb&&_0xe82afb['attributes']?_0xe82afb['attributes']:{};await this['_loadRoot'](_0xa64ab7,_0x4d89f3,_0x19d08f);}this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4c6486['_isLoaded']=!0x0,this['editor']['model']['document']['differ']['_bufferRootLoad'](_0x4c6486);});},{'priority':'high'});}async['_fetchMissingUsers'](_0x51de06){const _0x2cc3a4=this['editor']['plugins']['get'](Users),{connection:_0x5a5092}=this['editor']['plugins']['get'](WebSocketGateway),_0x147774=new Set();for(const _0x436e51 of _0x51de06){const _0x197ab0=_0x436e51['_authorId'];_0x197ab0&&!_0x2cc3a4['getUser'](_0x197ab0)&&_0x147774['add'](_0x197ab0);}if(0x0===_0x147774['size'])return;const _0x1778cb=await User['getMany'](_0x5a5092,Array['from'](_0x147774));for(const _0x50fdce of _0x1778cb)_0x2cc3a4['getUser'](_0x50fdce['id'])||_0x2cc3a4['addUser'](_0x50fdce);}['_getOperationsFromInitData'](_0x54cfca,_0x5c33ea={}){const _0x4f685a=this['editor']['model'],_0x3340a6=[];let _0x5c732b=0x0;const _0x1ddc39='string'==typeof _0x54cfca?{'main':_0x54cfca}:_0x54cfca;for(const _0x419868 of Object['keys'](_0x1ddc39)){if(!this['_document']['roots']['has'](_0x419868))throw new CKEditorError('realtimecollaborationclient-init-non-existent-root',this);const _0xe5e1f2=this['editor']['data']['parse'](_0x1ddc39[_0x419868]),_0x2dcaee=this['_document']['getRoot'](_0x419868),_0x22a38b=new InsertOperation(_0x4f685a['createPositionAt'](_0x2dcaee,0x0),_0xe5e1f2,_0x5c732b++);_0x3340a6['push'](_0x22a38b);for(const [_0x1e36fc,_0x3dc677]of _0xe5e1f2['markers']){const _0x4d21de=_0x4f685a['createRange'](_0x4f685a['createPositionFromPath'](_0x2dcaee,_0x3dc677['start']['path']['slice']()),_0x4f685a['createPositionFromPath'](_0x2dcaee,_0x3dc677['end']['path']['slice']())),_0x1da843=new MarkerOperation(_0x1e36fc,null,_0x4d21de,_0x4f685a['markers'],!0x0,_0x5c732b++);_0x3340a6['push'](_0x1da843);}}if(_0x5c33ea)for(const [_0x4f0a77,_0x2e0e4d]of Object['entries'](_0x5c33ea)){const _0x5b1f39=_0x4f685a['document']['getRoot'](_0x4f0a77);if(!_0x5b1f39)throw new CKEditorError('multi-root-editor-root-attributes-no-root',null);for(const [_0x497c4f,_0x39bec9]of Object['entries'](_0x2e0e4d))if(null!==_0x39bec9){const _0x2c0f73=new RootAttributeOperation(_0x5b1f39,_0x497c4f,null,_0x39bec9,_0x5c732b++);_0x3340a6['push'](_0x2c0f73);}}return _0x3340a6;}async['_loadRoot'](_0x40387f,_0x107c3b,_0x1fe73a){this['_getOperationsFromInitData']({[_0x40387f]:_0x107c3b},{[_0x40387f]:_0x1fe73a})['forEach']((_0x234b5f,_0x48740d)=>{_0x234b5f['baseVersion']=this['_document']['version']+_0x48740d,_0x234b5f['_isInit']=!0x0,this['_saveOperationInBuffer'](_0x234b5f);}),this['_sendBufferedOperationsDelayed'](),await this['_waitUntilSynced']();}async['_handleInitialConnectionData'](_0x423c30,_0x384f4b){let _0x286380;this['_offset']=_0x423c30['offset'];const _0x25ce04=_0x423c30['wereChangesApplied']&&!_0x423c30['initData'],_0x538d95=_0x25ce04?0x0:_0x423c30['data']['baseVersion'];if(_0x384f4b['forEach'](_0x4e3951=>{_0x4e3951['_isInit']=!0x0,_0x4e3951['createdAt']=_0x423c30['sessionCreatedAt'],_0x4e3951['_authorId']=null;}),_0x25ce04)_0x286380=_0x384f4b,this['_applyOperationsSet'](_0x286380,_0x25ce04);else{if(_0x423c30['initData']){const _0x2a942e=this['_getOperationsFromInitData'](_0x423c30['initData']);this['_document']['history']['version']=-_0x2a942e['length'],_0x2a942e['forEach'](_0x38db62=>{_0x38db62['baseVersion']-=_0x2a942e['length'],_0x38db62['createdAt']=_0x423c30['sessionCreatedAt'],_0x38db62['_isInit']=!0x0,_0x38db62['_authorId']=null;}),this['_applyOperationsSet'](_0x2a942e,!0x0),this['serverHistory']['version']=-_0x2a942e['length']+this['_offset'],this['_updateServerHistory'](_0x2a942e);}this['_document']['history']['version']=_0x538d95,_0x286380=this['_decompressOperations'](_0x423c30['data'],_0x423c30['metadata']),await this['_fetchMissingUsers'](_0x286380),this['_applyOperationsSet'](_0x286380,_0x25ce04);}_0x423c30['lastOperationId']&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x286380,_0x423c30['lastOperationId']),this['_lastSyncedOperationId']=_0x423c30['lastOperationId']),this['serverHistory']['version']=_0x538d95+this['_offset'],this['_updateServerHistory'](_0x286380),_0x384f4b['filter'](_0x3dc181=>{const _0x1898c7=this['_getAffectedRoot'](_0x3dc181);return _0x1898c7&&!this['_knownRootNames']['has'](_0x1898c7);})['forEach']((_0x533377,_0x36433f)=>{_0x533377['baseVersion']=this['_document']['version']+_0x36433f,this['_saveOperationInBuffer'](_0x533377);}),this['_shouldSendUpdate']()?(this['_currentBufferDelay']=0x0,this['_sendBufferedOperationsDelayed'](!0x0),await this['_waitUntilSynced']()):(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']());}['_crash'](_0x51fcbb,_0x4d2d07){const _0x5be739=_0x4d2d07&&_0x4d2d07['message'];if(_0x5be739&&_0x5be739['startsWith']('realtimecollaborationclient'))throw _0x4d2d07;const _0xe92365=this['editor']['plugins']['get'](WebSocketGateway);throw this['_isPendingUpdate']=!0x0,_0xe92365['disconnect'](),this['editor']['enableReadOnlyMode']('realtimecollaborationclient-error'),new CKEditorError(_0x51fcbb,this['editor'],_0x5be739?{'originalError':_0x5be739}:void 0x0);}['_saveOperationInBuffer'](_0x543ff5){this['_knownOperations']['has'](_0x543ff5)||(this['_knownOperations']['add'](_0x543ff5),this['_bufferedOperations']['push'](_0x543ff5),this['_pendingAction']||'marker'==_0x543ff5['type']&&!_0x543ff5['affectsData']||this['_setPendingAction']());}['_sendBufferedOperationsDelayed'](_0x7bcb8d=!0x1){!_0x7bcb8d&&this['_isPendingUpdate']||(this['_isPendingUpdate']=!0x0,clearTimeout(this['_sendBufferedOperationsDelayId']),this['_sendBufferedOperationsDelayId']=setTimeout(()=>{this['_sendBufferedOperations']()['then'](_0x2aeb08=>{_0x2aeb08&&(this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1);})['catch'](_0x4db70c=>{this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1,isDisconnectionError$3(_0x4db70c)||this['_crash'](_0x4db70c['message'],_0x4db70c);});},this['_currentBufferDelay']));}['_waitUntilSynced'](){return new Promise(_0x56881d=>{this['on']('change:_isPendingUpdate',()=>{_0x56881d();});});}async['_sendBufferedOperations'](){const _0x295ac5=this['editor']['plugins']['get'](UserMarkers);if(this['_shouldSendSelectionUpdate']()&&(_0x295ac5['createUserMarkerOperations'](),this['_hasSelectionChanged']=!0x1),!this['_shouldSendUpdate']())return!0x0;const _0xc18ddf=[...this['_bufferedOperations']];for(const _0x5704b0 of _0xc18ddf)_0x5704b0['wasUndone']=this['_document']['history']['isUndoneOperation'](_0x5704b0);const _0x11c886=this['_operationIdentifier']['getIdOfTheLastOperation'](_0xc18ddf),_0x50da55=requestCount++,_0x2e74c0=this['_compressOperations'](_0xc18ddf),_0x24ddd5=await this['_service']['sendOperations'](_0x2e74c0,_0x2e74c0['baseVersion'],_0x11c886);try{return await this['_handleServerResponse'](_0xc18ddf,_0x24ddd5,_0x50da55);}catch(_0x27cc84){return this['_crash']('realtimecollaborationclient-sendbufferedoperations',_0x27cc84);}}async['_handleServerResponse'](_0x19563a,_0x207dfc,_0x32d42f){if('error'in _0x207dfc)throw _0x207dfc['error'];let _0x502f66=!0x1;if(_0x207dfc['wereChangesApplied']){_0x207dfc['lastOperationId']&&(this['_lastSyncedOperationId']=_0x207dfc['lastOperationId']),this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0x49353c=>!_0x19563a['includes'](_0x49353c));for(const _0xec864b of _0x19563a)_0xec864b['createdAt']='lastOperationAcceptedAt'in _0x207dfc&&_0x207dfc['lastOperationAcceptedAt']||void 0x0;updateBaseVersions(_0x19563a,_0x207dfc['version']-_0x19563a['length']),this['_updateServerHistory'](_0x19563a);const _0x288511=_0x19563a['filter'](_0x424c1e=>{if(!_0x424c1e['_isInit'])return!0x1;const _0x448cb5=this['_getAffectedRoot'](_0x424c1e);return _0x448cb5&&!this['_knownRootNames']['has'](_0x448cb5);});updateBaseVersions(_0x288511,this['_document']['version']),this['_applyOperationsSet'](_0x288511),_0x502f66=!0x0,this['_currentBufferDelay']=this['_baseBufferDelay'];}else{const _0x2c8cb4=this['_decompressOperations'](_0x207dfc['data'],_0x207dfc['metadata'])['filter'](_0x36e61a=>_0x36e61a['baseVersion']>=this['_lastServerVersion']);_0x2c8cb4['forEach'](_0x1a7567=>this['_addKnownRoot'](_0x1a7567)),this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0x3f304d=>!_0x3f304d['_isInit']||!this['_knownRootNames']['has'](this['_getAffectedRoot'](_0x3f304d))),this['_bufferedOperations']['length']&&updateBaseVersions(this['_bufferedOperations'],this['_bufferedOperations'][0x0]['baseVersion']),await this['_fetchMissingUsers'](_0x2c8cb4),_0x502f66=this['_handleExternalOperations'](_0x2c8cb4,_0x207dfc['version'],_0x207dfc['lastOperationId']),this['_currentBufferDelay']=Math['round'](this['_currentBufferDelay']/0x2);}return _0x502f66?!this['_shouldSendUpdate']()||(this['_sendBufferedOperationsDelayed'](!0x0),!0x1):this['_crash']('realtimecollaborationclient-handleserverresponse');}['_handleExternalOperations'](_0x377b04,_0xed1ba2,_0x2dfd5f){try{const _0x1f12aa={'document':this['_document'],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x40f5c2,operationsB:_0x1cde5e,originalOperations:_0x53d714}=transformOperationSets(_0x377b04,this['_bufferedOperations'],_0x1f12aa);updateBaseVersions(_0x40f5c2,this['_document']['version']),updateBaseVersions(_0x1cde5e,_0xed1ba2);for(const _0xd92ac5 of _0x40f5c2){const _0x32eb74=_0x53d714['get'](_0xd92ac5);_0xd92ac5['_authorId']=_0x32eb74?_0x32eb74['_authorId']:null;}_0x2dfd5f&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x377b04,_0x2dfd5f),this['_lastSyncedOperationId']=_0x2dfd5f),this['_bufferedOperations']=[..._0x1cde5e],this['_applyOperationsSet'](_0x40f5c2),this['_updateServerHistory'](_0x377b04);}catch(_0x696f62){return console['error'](_0x696f62),!0x1;}return!0x0;}['_applyOperationsSet'](_0x346c43,_0x146d93=!0x1){this['editor']['model']['enqueueChange']({'isUndoable':!0x1,'isLocal':!0x1},_0xf8e44a=>{for(const _0x39e882 of _0x346c43)this['_knownOperations']['add'](_0x39e882),this['_addKnownRoot'](_0x39e882),_0xf8e44a['batch']['addOperation'](_0x39e882),this['editor']['model']['applyOperation'](_0x39e882);});}['_addKnownRoot'](_0x5251ae){const _0x173bf2=this['_getAffectedRoot'](_0x5251ae);_0x173bf2&&this['_knownRootNames']['add'](_0x173bf2);}['_getAffectedRoot'](_0x10fb2a){let _0x9dd1a4,_0x21ac21;switch(_0x10fb2a['type']){case'insert':_0x9dd1a4=_0x10fb2a['position']['root'];break;case'marker':if(_0x21ac21=_0x10fb2a['newRange'],!_0x21ac21)return null;_0x9dd1a4=_0x21ac21['root'];break;case'addRootAttribute':_0x9dd1a4=_0x10fb2a['root'];break;case'addRoot':_0x9dd1a4=_0x10fb2a['affectedSelectable'];break;case'move':_0x9dd1a4=_0x10fb2a['targetPosition']['root'];break;default:return null;}return _0x9dd1a4['rootName'];}['_updateServerHistory'](_0x3a6e36){_0x3a6e36['forEach'](_0xb050cc=>{const _0x770da3=_0xb050cc['clone']();_0x770da3['_authorId']=_0xb050cc['_authorId'],_0x770da3['_isInit']=!!_0xb050cc['_isInit'],_0x770da3['createdAt']=_0xb050cc['createdAt'],_0x770da3['baseVersion']+=this['_offset'],_0xb050cc['_isDisconnection']&&this['_disconnectionOperations']['add'](_0x770da3),this['serverHistory']['addOperation'](_0x770da3);});}['_handleReconnectionError'](_0x239b60){const _0x42edce=this['editor']['plugins']['get']('Notification'),_0x192ba0=this['editor']['locale'];_0x239b60||(_0x239b60=getTranslation$6(_0x192ba0,'The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.')),_0x42edce['showWarning'](_0x239b60,{'title':getTranslation$6(_0x192ba0,'Synchronization\x20issue'),'namespace':'real-time-collaboration'}),this['_hasSynchronizationProblem']=!0x0,clearTimeout(this['_sendBufferedOperationsDelayId']),this['_bufferedOperations']=[],this['editor']['plugins']['get'](WebSocketGateway)['disconnect']();}['_setPendingAction'](){this['_pendingAction']||(this['_pendingAction']=this['editor']['plugins']['get'](PendingActions)['add'](getTranslation$6(this['editor']['locale'],'PENDING_ACTION_SENDING_DATA')));}['_clearPendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get'](PendingActions)['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_compressOperations'](_0x11eb53){const _0x4a0791=_0x11eb53['map'](_0x10e91c=>_0x10e91c['toJSON']());return this['_compressor']['compress'](_0x4a0791);}['_decompressOperations'](_0x3d7751,_0x32d90b){return this['_compressor']['decompress'](_0x3d7751)['map']((_0x1f3b29,_0x212fc5)=>{const _0x5f526f='init'==_0x32d90b[_0x212fc5]['type'];if('InsertOperation'==_0x1f3b29['__className']){const _0x1e7085=_0x1f3b29['position']['root'];!this['_document']['getRoot'](_0x1e7085)&&(this['_document']['createRoot']('$root',_0x1e7085)['_isAttached']=!0x1);}const _0x114da1=OperationFactory['fromJSON'](_0x1f3b29,this['_document']);return _0x114da1['wasUndone']=_0x1f3b29['wasUndone'],_0x114da1['_isInit']=_0x5f526f,_0x114da1['_authorId']=_0x5f526f?null:_0x32d90b[_0x212fc5]['userId'],_0x114da1['_isDisconnection']='cs:removeUser'===_0x32d90b[_0x212fc5]['type'],_0x114da1['createdAt']=_0x32d90b[_0x212fc5]['createdAt'],_0x114da1;});}['_refreshUserSelectionMarkers'](){this['_hasSelectionChanged']=!0x0,this['_shouldSendSelectionUpdate']()?this['_sendBufferedOperationsDelayed']():this['_hasSelectionChanged']=!0x1;}['_shouldSendSelectionUpdate'](){const _0x1bd213=this['editor']['plugins']['get'](Sessions)['channelSessions']['get'](this['_channelId']);return!this['editor']['isReadOnly']&&!!_0x1bd213&&_0x1bd213['length']>0x1&&this['_hasSelectionChanged'];}['_shouldSendUpdate'](){return this['_bufferedOperations']['length']>0x0||this['_shouldSendSelectionUpdate']();}}class ReconnectionError extends Error{}function updateBaseVersions(_0x125be6,_0x52be43){for(const _0x10759f of _0x125be6)_0x10759f['baseVersion']=_0x52be43++;}function isSessionNotExistingError(_0x327fb4){return'404'===_0x327fb4['code'];}function isBaseVersionMismatchError(_0x32d609){return'409'===_0x32d609['code'];}function isDisconnectionError$3(_0x26c247){return _0x26c247['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x26c247['message']['startsWith']('cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.')||_0x26c247['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}class OperationIdentifier{['_ignoredOperations'];['_operationToId'];constructor(_0x7750c9){this['_ignoredOperations']=_0x7750c9,this['_operationToId']=new WeakMap();}['getIdOfTheLastOperation'](_0x589e80){let _0x2cdb59=_0x589e80['length'];for(;_0x2cdb59--;){const _0x4da10c=_0x589e80[_0x2cdb59];if(!this['_ignoredOperations']['has'](_0x4da10c)){if(!this['_operationToId']['has'](_0x4da10c)){const _0x371b60=uid()['slice'](0x1,0x12);this['_operationToId']['set'](_0x4da10c,_0x371b60);}return this['_operationToId']['get'](_0x4da10c);}}}['setIdForTheLastOperation'](_0x22bce1,_0x44ff26){if(!_0x44ff26)return;let _0x43a219=_0x22bce1['length'];for(;_0x43a219--;){const _0x1a398a=_0x22bce1[_0x43a219];this['_ignoredOperations']['has'](_0x1a398a)||this['_operationToId']['set'](_0x1a398a,_0x44ff26);}}}class RealTimeCollaborativeEditing extends Plugin{static get['requires'](){return[RealTimeCollaborationClient];}static get['pluginName'](){return'RealTimeCollaborativeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class CloudServicesCommentsAdapter extends ContextPlugin{static ['CommentsService']=/* #__PURE__ -- @preserve */
((()=>CommentsService)());['_services'];static get['requires'](){return[WebSocketGateway,'CommentsRepository',Sessions,Users];}static get['pluginName'](){return'CloudServicesCommentsAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42967a){super(_0x42967a),this['_services']=new Map();}async['init'](){const _0x40b622=this['context'],_0x58e401=_0x40b622['plugins']['get']('CommentsRepository');if(_0x40b622['plugins']['get'](WebSocketGateway)['addToReconnectionStack'](this),_0x58e401['adapter']={'addCommentThread':async({channelId:_0x253015,threadId:_0x4acff5,comments:_0x4a966f,resolvedAt:_0x392d02,resolvedBy:_0x1e7f8f,context:_0x2a56fd,attributes:_0x912900})=>{const _0x858670=await this['_getService'](_0x253015)['addCommentThread']({'commentThreadId':_0x4acff5,'comments':_0x4a966f['map'](_0x86cb03=>parseLocalCommentToRemote(_0x86cb03,_0x253015,_0x4acff5)),'resolvedAt':_0x392d02,'resolvedBy':_0x1e7f8f,'context':_0x2a56fd,'attributes':_0x912900})['catch'](handleDisconnectionError$1);return{'threadId':_0x858670['commentThreadId'],'comments':_0x858670['comments']};},'getCommentThread':async({channelId:_0x3b26e5,threadId:_0x4bfc36})=>{const _0x2bf1c2=await this['_getService'](_0x3b26e5)['getCommentThread'](_0x4bfc36)['catch'](handleServerError)['catch'](handleDisconnectionError$1);return _0x2bf1c2?_0x2bf1c2['deletedAt']?null:(await this['_fetchMissingUsersForThreads']([_0x2bf1c2]),{'threadId':_0x2bf1c2['commentThreadId'],'comments':_0x2bf1c2['comments']['map'](parseRemoteCommentToLocal),'context':_0x2bf1c2['context'],'resolvedAt':_0x2bf1c2['resolvedAt'],'resolvedBy':_0x2bf1c2['resolvedBy'],'attributes':_0x2bf1c2['attributes']||{}}):null;},'updateCommentThread':async({channelId:_0x445a5b,threadId:_0x3a77a0,context:_0x20610d,unlinkedAt:_0x32c8da,attributes:_0x1bcca5})=>this['_getService'](_0x445a5b)['updateCommentThread']({'commentThreadId':_0x3a77a0,'context':_0x20610d,'attributes':_0x1bcca5,'unlinkedAt':_0x32c8da})['catch'](handleServerError)['catch'](handleDisconnectionError$1),'resolveCommentThread':async({channelId:_0x378214,threadId:_0x815538})=>{const _0x1abb8b=await this['_getService'](_0x378214)['resolveCommentThread'](_0x815538)['catch'](handleServerError)['catch'](handleDisconnectionError$1);return{'threadId':_0x1abb8b['commentThreadId'],'resolvedAt':_0x1abb8b['resolvedAt'],'resolvedBy':_0x1abb8b['resolvedBy']};},'reopenCommentThread':async({channelId:_0x620954,threadId:_0x4ec1ea})=>this['_getService'](_0x620954)['reopenCommentThread'](_0x4ec1ea)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'removeCommentThread':({channelId:_0x3ddb0e,threadId:_0x10cafd})=>this['_getService'](_0x3ddb0e)['removeCommentThread'](_0x10cafd)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'addComment':({channelId:_0x132bed,threadId:_0xa84f00,commentId:_0x513a59,content:_0x386843,attributes:_0x16bacf})=>this['_getService'](_0x132bed)['addComment'](_0xa84f00,_0x513a59,_0x386843,_0x16bacf)['catch'](handleDisconnectionError$1),'updateComment':({channelId:_0x2a1096,threadId:_0x1cf9ec,commentId:_0x30cb85,content:_0x158550,attributes:_0x2c9b59})=>this['_getService'](_0x2a1096)['updateComment'](_0x1cf9ec,_0x30cb85,_0x158550,_0x2c9b59)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'removeComment':({channelId:_0x69ee00,threadId:_0x2f99df,commentId:_0x10725d})=>this['_getService'](_0x69ee00)['removeComment'](_0x2f99df,_0x10725d)['catch'](handleServerError)['catch'](handleDisconnectionError$1)},_0x40b622 instanceof Context$1){const _0x15532b=_0x40b622['config']['get']('collaboration.channelId'),_0x4319d8=_0x40b622['plugins']['get'](Sessions);await this['_setUpService'](_0x15532b);const _0x26d92f=await this['_services']['get'](_0x15532b)['getConnectedSessions']();this['listenTo'](_0x4319d8,'sessionAdd:'+_0x15532b,(_0x5759c1,{session:_0x5c0454})=>{_0x5c0454['id']===_0x4319d8['mySessionId']&&(_0x5759c1['off'](),this['context']['plugins']['get']('Permissions')['setPermissions'](_0x5c0454['permissions'],_0x15532b));}),_0x4319d8['register'](_0x15532b,_0x26d92f);}}async['_setUpService'](_0x20871c){if(this['_services']['has'](_0x20871c))throw new CKEditorError('cloudservicescommentsadapter-connect-already-connected',null,{'channelId':_0x20871c});const _0x5edb6b=this['context']['plugins']['get']('CommentsRepository'),_0x52a9ee=new CloudServicesCommentsAdapter['CommentsService'](_0x20871c);this['_services']['set'](_0x20871c,_0x52a9ee),this['listenTo'](_0x52a9ee,'commentThreadAdded',(_0x342c75,_0x483998)=>{const {commentThreadId:_0xaddc63,documentId:_0x4acb51,context:_0x22db5a,attributes:_0x31d1cb,resolvedAt:_0x587355,resolvedBy:_0x49c0ed,comments:_0x579599}=_0x483998;_0x5edb6b['getCommentThread'](_0xaddc63)||_0x5edb6b['addCommentThread']({'threadId':_0xaddc63,'channelId':_0x4acb51,'comments':_0x579599?_0x579599['map'](parseRemoteCommentToLocal):[],'context':_0x22db5a,'attributes':_0x31d1cb,'resolvedAt':_0x587355,'resolvedBy':_0x49c0ed,'isFromAdapter':!0x0});}),this['listenTo'](_0x52a9ee,'commentThreadUpdated',(_0x8dd93,{commentThreadId:_0x142e62,documentId:_0x6b9fe1,context:_0x306ac3,unlinkedAt:_0x5a93e9,attributes:_0x4b8eed})=>{_0x5edb6b['getCommentThread'](_0x142e62)&&_0x5edb6b['updateCommentThread']({'threadId':_0x142e62,'channelId':_0x6b9fe1,'context':_0x306ac3,'unlinkedAt':_0x5a93e9,'attributes':_0x4b8eed,'isFromAdapter':!0x0});}),this['listenTo'](_0x52a9ee,'commentThreadResolved',(_0x2ed978,{commentThreadId:_0x2ccf9a,resolvedBy:_0xa893a6,resolvedAt:_0x2400c8})=>{const _0x2e6c84=_0x5edb6b['getCommentThread'](_0x2ccf9a);_0x2e6c84&&_0x2e6c84['resolve']({'resolvedBy':_0xa893a6,'resolvedAt':_0x2400c8,'isFromAdapter':!0x0});}),this['listenTo'](_0x52a9ee,'commentThreadReopened',(_0x1f4e22,{commentThreadId:_0xa679a})=>{const _0x361285=_0x5edb6b['getCommentThread'](_0xa679a);_0x361285&&_0x361285['reopen']({'isFromAdapter':!0x0});}),this['listenTo'](_0x52a9ee,'commentThreadRemoved',(_0x52244e,{commentThreadId:_0x28f619})=>{const _0x79987e=_0x5edb6b['getCommentThread'](_0x28f619);_0x79987e&&_0x79987e['remove']({'isFromAdapter':!0x0});}),this['listenTo'](_0x52a9ee,'commentAdded',(_0x5c9178,_0x4b9b89)=>{const _0x2c5982=_0x4b9b89['commentThreadId'],_0xbd8d1f=_0x5edb6b['getCommentThread'](_0x2c5982);_0xbd8d1f&&_0xbd8d1f['addComment']({...parseRemoteCommentToLocal(_0x4b9b89),'isFromAdapter':!0x0});}),this['listenTo'](_0x52a9ee,'commentUpdated',(_0x91a68b,{commentThreadId:_0x272c1f,commentId:_0x4ee300,content:_0x4f0663,attributes:_0x13b2a0})=>{const _0x685cf7=_0x5edb6b['getCommentThread'](_0x272c1f);if(_0x685cf7){const _0x3a980d=_0x685cf7['getComment'](_0x4ee300);_0x3a980d&&_0x3a980d['update']({'content':_0x4f0663,'attributes':_0x13b2a0,'isFromAdapter':!0x0});}}),this['listenTo'](_0x52a9ee,'commentRemoved',(_0x194db2,{commentThreadId:_0xf2357f,commentId:_0x425d2e})=>{const _0x4f6521=_0x5edb6b['getCommentThread'](_0xf2357f);if(_0x4f6521){const _0x16ca1b=_0x4f6521['getComment'](_0x425d2e);_0x16ca1b&&_0x16ca1b['remove']({'isFromAdapter':!0x0});}}),await this['_connectService'](_0x20871c);}['destroy'](){if(this['context']instanceof Context$1){const _0x5a3ea9=this['context']['config']['get']('collaboration.channelId');this['_terminateService'](_0x5a3ea9);}}['_terminateService'](_0x17614b){if(!this['_services']['has'](_0x17614b))throw new CKEditorError('cloudservicescommentsadapter-disconnect-not-exist',null,{'channelId':_0x17614b});this['_getService'](_0x17614b)['disconnect'](),this['_services']['delete'](_0x17614b);}async['reconnect'](){for(const _0x396371 of this['_services']['keys']())await this['_connectService'](_0x396371);if(this['context']instanceof Context$1){const _0x4a30a9=this['context']['config']['get']('collaboration.channelId'),_0x3e79cc=this['context']['plugins']['get'](Sessions);_0x3e79cc['unregister'](_0x4a30a9);const _0x379876=await this['_services']['get'](_0x4a30a9)['getConnectedSessions']();_0x3e79cc['register'](_0x4a30a9,_0x379876);}}async['_connectService'](_0x38b115){const {connection:_0x26e5ce}=this['context']['plugins']['get'](WebSocketGateway),_0x524bc6=this['context']['plugins']['get']('CommentsRepository'),_0x55091b=this['_services']['get'](_0x38b115),_0x2b62dc=await _0x55091b['connect'](_0x26e5ce);await this['_fetchMissingUsersForThreads'](_0x2b62dc);const _0x23fb7a=new Set(Array['from'](_0x524bc6['getCommentThreads']({'channelId':_0x38b115}),_0x2207bb=>_0x2207bb['id']));for(const _0x499c54 of _0x2b62dc)_0x499c54['deletedAt']||_0x23fb7a['delete'](_0x499c54['commentThreadId']);for(const _0x2d5292 of _0x23fb7a)_0x524bc6['getCommentThread'](_0x2d5292)['remove']({'isFromAdapter':!0x0});for(const _0x210222 of _0x2b62dc){let _0x31c281=_0x524bc6['getCommentThread'](_0x210222['commentThreadId']);const {commentThreadId:_0x29fb64,context:_0x31dfab,attributes:_0x1d0e81,resolvedBy:_0x2e2421,resolvedAt:_0x45c39b,unlinkedAt:_0x3a4e84,deletedAt:_0x5cf687}=_0x210222;if(_0x5cf687)continue;_0x31c281||(_0x31c281=_0x524bc6['addCommentThread']({'channelId':_0x38b115,'threadId':_0x29fb64,'context':_0x31dfab,'attributes':_0x1d0e81||{},'resolvedBy':_0x2e2421,'resolvedAt':_0x45c39b,'unlinkedAt':_0x3a4e84,'isFromAdapter':!0x0}));const _0xdeffde=new Set(Array['from'](_0x31c281['comments'],_0x510a32=>_0x510a32['id']));for(const _0x4376ae of _0x210222['comments'])_0xdeffde['delete'](_0x4376ae['commentId']);for(const _0x2847ec of _0xdeffde)_0x31c281['getComment'](_0x2847ec)['remove']({'isFromAdapter':!0x0});for(const _0x295fc0 of _0x210222['comments']){const _0x545d9c=_0x31c281['getComment'](_0x295fc0['commentId']);_0x545d9c?_0x545d9c['content']!==_0x295fc0['content']&&_0x545d9c['update']({'content':_0x295fc0['content'],'isFromAdapter':!0x0}):_0x31c281['addComment'](Object['assign'](parseRemoteCommentToLocal(_0x295fc0),{'isFromAdapter':!0x0}));}}}['_getService'](_0x42cf00){if(!this['_services']['has'](_0x42cf00))throw new CKEditorError('cloudservicescommentsadapter-service-not-exist',null,{'channelId':_0x42cf00});return this['_services']['get'](_0x42cf00);}async['_fetchMissingUsersForThreads'](_0x216312){const _0x3f9b6d=this['context']['plugins']['get'](Users),{connection:_0x2b944d}=this['context']['plugins']['get'](WebSocketGateway),_0x51342e=new Set();for(const {resolvedBy:_0x26d84e,comments:_0x1bfc16}of _0x216312){_0x26d84e&&!_0x3f9b6d['getUser'](_0x26d84e)&&_0x51342e['add'](_0x26d84e);for(const {userId:_0x5ddc9c}of _0x1bfc16)_0x3f9b6d['getUser'](_0x5ddc9c)||_0x51342e['add'](_0x5ddc9c);}if(0x0===_0x51342e['size'])return;const _0x5f3dec=await User['getMany'](_0x2b944d,Array['from'](_0x51342e));for(const _0x3595d4 of _0x5f3dec)_0x3f9b6d['getUser'](_0x3595d4['id'])||_0x3f9b6d['addUser'](_0x3595d4);}}async function handleServerError(_0x3a3c5d){if('404'!==_0x3a3c5d['code'])throw _0x3a3c5d;}function handleDisconnectionError$1(_0xc57ec4){if(isDisconnectionError$2(_0xc57ec4))return new Promise(()=>{});throw _0xc57ec4;}function isDisconnectionError$2(_0x1b9a9a){return _0x1b9a9a['message']['startsWith']('cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.')||_0x1b9a9a['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x1b9a9a['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}function parseRemoteCommentToLocal(_0x21e2cb){return{'threadId':_0x21e2cb['commentThreadId'],'commentId':_0x21e2cb['commentId'],'content':_0x21e2cb['content'],'createdAt':_0x21e2cb['createdAt'],'authorId':_0x21e2cb['userId'],'attributes':_0x21e2cb['attributes']||{}};}function parseLocalCommentToRemote(_0x763d7e,_0x19101a,_0x181f6b){return{'commentThreadId':_0x181f6b,'commentId':_0x763d7e['commentId'],'userId':_0x763d7e['authorId'],'content':_0x763d7e['content'],'documentId':_0x19101a,'createdAt':_0x763d7e['createdAt'],'attributes':_0x763d7e['attributes']||{}};}class CloudServicesTrackChangesAdapter extends Plugin{static ['TrackChangesService']=/* #__PURE__ -- @preserve */
((()=>TrackChangesService)());['_bufferedRequests'];['_trackChangesService'];static get['requires'](){return[CloudServicesCommentsAdapter,'TrackChangesEditing',WebSocketGateway];}static get['pluginName'](){return'CloudServicesTrackChangesAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a1154){super(_0x5a1154);const _0x1ec8aa=this['editor']['config']['get']('collaboration.channelId');this['_bufferedRequests']=new Map(),this['_trackChangesService']=new CloudServicesTrackChangesAdapter['TrackChangesService'](_0x1ec8aa);}['init'](){const _0x57c2b4=this['editor']['plugins']['get'](WebSocketGateway),_0x4c40ff=this['editor']['plugins']['get']('TrackChangesEditing');return _0x4c40ff['adapter']={'getSuggestion':async _0x36218b=>{await this['_waitForServiceReady']();const _0x18aa80=await this['_trackChangesService']['get'](_0x36218b)['catch'](handleDisconnectionError);return await this['_fetchMissingUsersForThreads']([_0x18aa80]),_0x18aa80;},'addSuggestion':async({id:_0x48ccd9,type:_0xaf12b5,data:_0x22ef74,originalSuggestionId:_0x55d602,attributes:_0x34292a})=>{await this['_waitForServiceReady']();const _0x49f838={'id':_0x48ccd9,'type':_0xaf12b5,'data':_0x22ef74,'originalSuggestionId':_0x55d602,'attributes':_0x34292a},_0xb20b9=await this['_trackChangesService']['add'](_0x48ccd9,_0xaf12b5,_0x22ef74,_0x55d602,_0x34292a)['catch'](_0x728e89=>{if(isDisconnectionError$1(_0x728e89))return new Promise(_0xbfef3a=>{this['_bufferedRequests']['set'](_0x48ccd9,{'resolve':_0xbfef3a,'suggestionData':_0x49f838});});throw _0x728e89;});return this['_bufferedRequests']['delete'](_0x48ccd9),_0xb20b9;},'updateSuggestion':async(_0x503e7d,_0x3cfc5c)=>{if(await this['_waitForServiceReady'](),'open'!==_0x3cfc5c['state'])return this['_trackChangesService']['update'](_0x503e7d,_0x3cfc5c)['catch'](handleDisconnectionError);}},this['listenTo'](this['_trackChangesService'],'suggestionUpdated',(_0x315923,_0x473f7f)=>{_0x4c40ff['hasSuggestion'](_0x473f7f['id'])&&(_0x4c40ff['getSuggestion'](_0x473f7f['id'])['attributes']=_0x473f7f['attributes']);}),this['_trackChangesService']['connect'](_0x57c2b4['connection'])['then'](_0x250b0a=>(_0x57c2b4['addToReconnectionStack'](this),this['_fetchMissingUsersForThreads'](_0x250b0a)['then'](()=>{for(const _0x238ae0 of _0x250b0a){_0x4c40ff['addSuggestionData'](_0x238ae0)['_saved']=!0x0;}})));}async['reconnect'](){const _0x13d20c=this['editor']['plugins']['get']('TrackChangesEditing'),{connection:_0x46f28d}=this['editor']['plugins']['get'](WebSocketGateway),_0x40ed58=await this['_trackChangesService']['connect'](_0x46f28d);await this['_fetchMissingUsersForThreads'](_0x40ed58);for(const {suggestionData:_0x2f4aa7,resolve:_0x91b3fa}of this['_bufferedRequests']['values']()){let _0x509de9=_0x40ed58['find'](_0x3caa1a=>_0x3caa1a['id']===_0x2f4aa7['id']);_0x509de9||(_0x509de9=await this['_trackChangesService']['add'](_0x2f4aa7['id'],_0x2f4aa7['type'],_0x2f4aa7['data'],_0x2f4aa7['originalSuggestionId'])),_0x91b3fa(_0x509de9);}for(const _0x46525 of _0x40ed58)_0x13d20c['hasSuggestion'](_0x46525['id'])||_0x13d20c['addSuggestionData'](_0x46525);}async['_waitForServiceReady'](){this['_trackChangesService']['isConnected']||await new Promise(_0x50ef97=>{this['listenTo'](this['_trackChangesService'],'connected',_0x2d7cec=>{_0x2d7cec['off'](),_0x50ef97();});});}async['_fetchMissingUsersForThreads'](_0xf66210){const _0x28e587=this['editor']['plugins']['get'](Users),{connection:_0x23c182}=this['editor']['plugins']['get'](WebSocketGateway),_0x7ae5c4=new Set();for(const {authorId:_0xc4f924}of _0xf66210)_0x28e587['getUser'](_0xc4f924)||_0x7ae5c4['add'](_0xc4f924);if(0x0===_0x7ae5c4['size'])return;const _0x291cdc=await User['getMany'](_0x23c182,Array['from'](_0x7ae5c4));for(const _0x5ad681 of _0x291cdc)_0x28e587['getUser'](_0x5ad681['id'])||_0x28e587['addUser'](_0x5ad681);}}function handleDisconnectionError(_0x10c7c8){if(isDisconnectionError$1(_0x10c7c8))return new Promise(()=>{});throw _0x10c7c8;}function isDisconnectionError$1(_0x426daf){return _0x426daf['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x426daf['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}class RealTimeCollaborativeComments extends Plugin{static get['requires'](){return['Comments',CloudServicesCommentsAdapter,RealTimeCollaborativeEditing,WebSocketGateway];}static get['pluginName'](){return'RealTimeCollaborativeComments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x47b7f5=this['editor']['plugins']['get'](WebSocketGateway),_0x56cf3d=this['editor']['plugins']['get']('CommentsEditing'),_0x2edbd4=this['editor']['plugins']['get'](CloudServicesCommentsAdapter);return this['editor']['data']['once']('ready',()=>{this['listenTo'](_0x47b7f5,'change:state',(_0x379b09,_0xc3a594,_0x218c06)=>{_0x56cf3d['isThreadsLoadingPaused']='connected'!==_0x218c06;});}),this['listenTo'](_0x47b7f5,'change:state',(_0x566196,_0x1c3b73,_0x4cdbd3)=>{this['editor']['plugins']['get']('CommentsRepository')['switchReadOnly']('connected'!==_0x4cdbd3);}),_0x2edbd4['_setUpService'](this['editor']['config']['get']('collaboration.channelId'));}['destroy'](){this['editor']['plugins']['get'](CloudServicesCommentsAdapter)['_terminateService'](this['editor']['config']['get']('collaboration.channelId')),super['destroy']();}}class RealTimeCollaborativeTrackChanges extends Plugin{static get['requires'](){return[RealTimeCollaborativeComments,CloudServicesTrackChangesAdapter,'TrackChanges'];}static get['pluginName'](){return'RealTimeCollaborativeTrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class CloudServicesRevisionHistoryAdapter extends Plugin{static ['RevisionHistoryService']=/* #__PURE__ -- @preserve */
((()=>RevisionHistoryService)());['_lastRequestId'];['_revisionTracker'];['_revisionHistoryService'];['_oldOffset'];static get['requires'](){return[WebSocketGateway,RealTimeCollaborationClient,'RevisionHistory',Sessions,Users];}static get['pluginName'](){return'CloudServicesRevisionHistoryAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x573a0b){super(_0x573a0b);const _0x57254a=this['editor']['config']['get']('collaboration.channelId');this['_lastRequestId']=null,this['_revisionTracker']=this['editor']['plugins']['get']('RevisionTracker'),this['_revisionHistoryService']=new CloudServicesRevisionHistoryAdapter['RevisionHistoryService'](_0x57254a);}async['init'](){const _0x5c3e27=this['editor']['plugins']['get'](RealTimeCollaborationClient),_0x1c5698=_0x5c3e27['serverHistory'],_0x3665db=this['editor']['plugins']['get'](WebSocketGateway);this['_revisionTracker']['setSource']({'history':_0x1c5698,'getLatestVersion':()=>this['_getLatestVersion'](),'getCurrentRevisionId':()=>_0x5c3e27['sessionId']});const _0x5f0186=this['editor']['config']['get']('cloudServices.bundleVersion')||_0x495162,_0x495497=await EditorService['isBundleUploaded'](_0x3665db['connection'],_0x5f0186);this['editor']['plugins']['get']('RevisionHistory')['adapter']={'getRevision':async({revisionId:_0x31e134})=>(await this['_waitForServiceReady'](),await this['_revisionHistoryService']['getRevision'](_0x31e134)),'updateRevisions':async _0x1874a0=>{await this['_waitForServiceReady']();const _0x4d6186=this['_revisionTracker']['currentRevision'];if(_0x495497&&0x1===_0x1874a0['length']&&_0x1874a0[0x0]['id']===_0x4d6186['id'])return _0x1874a0;for(const _0x56c184 of _0x1874a0)_0x56c184['id']===_0x4d6186['id']&&(_0x56c184['isEmptyCurrent']=_0x56c184['fromVersion']===_0x56c184['toVersion']);return this['_revisionHistoryService']['updateRevisions'](_0x1874a0,this['_lastRequestId'])['then'](_0x4d1f8c=>(this['_lastRequestId']=_0x4d1f8c,_0x1874a0))['catch'](_0x496916=>{if(isDisconnectionError(_0x496916)||'400'===_0x496916['code']&&void 0x0!==_0x496916['data']['wrongRequestId']){for(const _0x12c312 of _0x1874a0){!this['_revisionTracker']['repository']['getRevision'](_0x12c312['id'])||this['_revisionTracker']['_bufferUpdate'](_0x12c312['id'],_0x12c312,!0x1);}if(isDisconnectionError(_0x496916))throw _0x496916;return _0x1874a0;}throw _0x496916;});}},this['listenTo'](this['_revisionHistoryService'],'revisionsUpdated',(_0x4f548a,{revisionsData:_0x1122ca,requestId:_0x5d98ab})=>{Math['max'](..._0x1122ca['map'](_0x3b9f2c=>_0x3b9f2c['toVersion']))>this['_getLatestVersionFromServerOperations']()-0x1?this['_getLatestVersion']()['then'](()=>{this['_handleRevisionsUpdate'](_0x1122ca,_0x5d98ab);}):this['_handleRevisionsUpdate'](_0x1122ca,_0x5d98ab);});const {revisions:_0x3fa08a,requestId:_0xda8713}=await this['_revisionHistoryService']['connect'](_0x3665db['connection']);_0x3665db['addToReconnectionStack'](this),this['_lastRequestId']=_0xda8713,await this['_fetchMissingUsers'](_0x3fa08a);for(const _0xf30cc4 of _0x3fa08a)this['_revisionTracker']['addRevisionData'](_0xf30cc4);this['listenTo'](_0x5c3e27,'change:_isConnected',(_0x896731,_0xde6279,_0x3e56c3)=>{_0x3e56c3&&(this['_oldOffset']=_0x5c3e27['_offset'],_0x896731['off']());}),this['_revisionTracker']['bind']('isEnabled')['to'](_0x3665db,'state',_0x382910=>_0x382910===WEB_SOCKET_GATEWAY_STATES['CONNECTED']);}async['reconnect'](){const _0x1c397d=this['editor']['plugins']['get'](WebSocketGateway),_0x5641e6=this['editor']['plugins']['get'](RealTimeCollaborationClient),_0x29e668=async()=>{const _0x4767f4=this['_revisionTracker']['currentRevision'],_0x3a0410=_0x4767f4['id'],_0xb1c7b1=_0x3a0410!==_0x5641e6['sessionId'];if(_0xb1c7b1){const _0x3bbc49=_0x5641e6['_offset']-this['_oldOffset'],_0x3c18ac=this['_getLatestVersionFromServerOperations']();this['_revisionTracker']['_revisionDataBuilder']['reInit']();if(_0x4767f4['toVersion']+_0x3bbc49!==_0x3c18ac){const _0x176891=_0x4767f4['fromVersion']+_0x3bbc49,_0x99304e=this['editor']['plugins']['get'](Users),_0xa56c0c=this['_revisionTracker']['buildRevisionData']({'revision':_0x4767f4,'from':_0x176891,'to':_0x3c18ac});_0xa56c0c['id']=_0x4767f4['id'];const _0x313874=_0xa56c0c['authorsIds']['map'](_0x242823=>_0x99304e['getUser'](_0x242823));_0x4767f4['_update']({..._0xa56c0c,'authors':_0x313874},!0x0),this['_revisionTracker']['_bufferUpdate'](_0x4767f4['id'],_0xa56c0c,!0x0);}this['_revisionTracker']['_startingVersion']=_0x3c18ac,(_0x4767f4['toVersion']===_0x4767f4['fromVersion']&&!this['_revisionTracker']['_bufferedUpdates']['has'](_0x3a0410)&&this['_revisionTracker']['repository']['_revisions']['remove'](_0x3a0410),this['_revisionTracker']['_createCurrentRevision'](_0x3c18ac));}const {revisions:_0x4e72cd,requestId:_0x3a28c7}=await this['_revisionHistoryService']['reconnect'](_0x1c397d['connection'],this['_lastRequestId']);_0xb1c7b1&&_0x4e72cd['length']>0x0?_0x5641e6['_handleReconnectionError']():(await this['_fetchMissingUsers'](_0x4e72cd),this['_handleRevisionsUpdate'](_0x4e72cd,_0x3a28c7),this['_revisionTracker']['sendBufferedUpdates']());};return _0x5641e6['_isConnected']?_0x29e668():new Promise((_0x12fb74,_0x5931ff)=>{_0x5641e6['once']('change:_isConnected',()=>{_0x29e668()['then'](_0x12fb74)['catch'](_0x5931ff);});});}['destroy'](){super['destroy']();}async['_waitForServiceReady'](){this['_revisionHistoryService']['isConnected']||await new Promise(_0xa3a82b=>{this['listenTo'](this['_revisionHistoryService'],'connected',_0x1ecbd7=>{_0x1ecbd7['off'](),_0xa3a82b();});});}['_getLatestVersionFromServerOperations'](){const _0x51de20=this['editor']['plugins']['get'](RealTimeCollaborationClient)['serverHistory']['getOperations']()['reverse']();for(const _0x26dd67 of _0x51de20)if('marker'!==_0x26dd67['type']||_0x26dd67['affectsData'])return _0x26dd67['baseVersion']+0x1;}['_getLatestVersion'](){const _0xde51b8=this['editor']['plugins']['get'](RealTimeCollaborationClient);return new Promise(_0xb6c687=>{_0xde51b8['_isPendingUpdate']?_0xde51b8['once']('change:_isPendingUpdate',()=>{_0xb6c687(this['_getLatestVersionFromServerOperations']());}):_0xb6c687(this['_getLatestVersionFromServerOperations']());});}['_handleRevisionsUpdate'](_0x1ab44f,_0x5369a6){const _0xa9833b=this['_revisionTracker']['repository'];this['_lastRequestId']=_0x5369a6;for(const _0x4b260e of _0x1ab44f){const _0x30c942=_0xa9833b['getRevision'](_0x4b260e['id']);if(_0x30c942){if((_0x4b260e['fromVersion']||_0x4b260e['toVersion'])&&(_0x4b260e['diffData']=null),_0x30c942===this['_revisionTracker']['currentRevision']){const _0x476b8f=Math['max'](_0x30c942['toVersion'],_0x4b260e['toVersion']),_0xbb6e5c=Math['max'](_0x30c942['fromVersion'],_0x4b260e['fromVersion']);let _0x588a7;_0x30c942['toVersion']===_0x4b260e['toVersion']&&_0x30c942['fromVersion']===_0x4b260e['fromVersion']?(_0x588a7=!0x0,this['_preventResendingRevisionData'](_0x4b260e)):_0x4b260e['toVersion']===_0x476b8f&&_0x4b260e['fromVersion']===_0xbb6e5c?_0x588a7=!0x1:(_0x30c942['toVersion']===_0x476b8f&&_0x30c942['fromVersion']===_0xbb6e5c||this['_fixRevision']({'revision':_0x30c942,'from':_0xbb6e5c,'to':_0x476b8f}),_0x588a7=!0x0),_0x588a7&&(delete _0x4b260e['fromVersion'],delete _0x4b260e['toVersion'],delete _0x4b260e['diffData'],delete _0x4b260e['createdAt'],delete _0x4b260e['authorsIds']);}this['_revisionTracker']['setRevisionData'](_0x4b260e),this['_preventResendingRevisionData'](_0x4b260e);}else this['_revisionTracker']['addRevisionData'](_0x4b260e);}const _0x4bc67c=_0xa9833b['getRevisions']();_0x4bc67c['reverse']();for(let _0x5c8ef5=0x0;_0x5c8ef5<_0x4bc67c['length']-0x1;_0x5c8ef5++){const _0x3cc383=_0x4bc67c[_0x5c8ef5],_0x16f30d=_0x4bc67c[_0x5c8ef5+0x1];if(_0x3cc383['fromVersion']<_0x16f30d['toVersion']){const _0x2f251f=_0x16f30d['toVersion'],_0x18ed79=Math['max'](_0x2f251f,_0x3cc383['toVersion']);this['_fixRevision']({'revision':_0x3cc383,'from':_0x2f251f,'to':_0x18ed79});}}}['_fixRevision']({revision:_0x4c9837,from:_0x29d847,to:_0x3263f0}={}){const _0x4fe251=this['editor']['plugins']['get'](Users),_0x1094ab=this['_revisionTracker']['buildRevisionData']({'revision':_0x4c9837,'from':_0x29d847,'to':_0x3263f0});_0x1094ab['authors']=_0x1094ab['authorsIds']['map'](_0x161afe=>_0x4fe251['getUser'](_0x161afe)),_0x4c9837['_update'](_0x1094ab);}['_preventResendingRevisionData'](_0x2baf7f){const _0x2550a8={};_0x2550a8['id']=_0x2baf7f['id'];for(const _0x2071b7 of Object['keys'](_0x2baf7f))'id'!==_0x2071b7&&(_0x2550a8[_0x2071b7]=void 0x0);this['_revisionTracker']['_bufferUpdate'](_0x2550a8['id'],_0x2550a8,!0x0);}async['_fetchMissingUsers'](_0x46e88e){const _0x2bfcbe=this['editor']['plugins']['get'](Users),{connection:_0xe61081}=this['editor']['plugins']['get'](WebSocketGateway),_0x49d3b4=new Set();for(const _0x5d187d of _0x46e88e){for(const _0x2e2624 of _0x5d187d['authorsIds'])_0x7556ec(_0x2e2624);_0x5d187d['creatorId']&&_0x7556ec(_0x5d187d['creatorId']);}if(0x0===_0x49d3b4['size'])return;const _0x23d697=await User['getMany'](_0xe61081,Array['from'](_0x49d3b4));for(const _0x5b666b of _0x23d697)_0x2bfcbe['getUser'](_0x5b666b['id'])||_0x2bfcbe['addUser'](_0x5b666b);function _0x7556ec(_0x1ac9f7){_0x2bfcbe['getUser'](_0x1ac9f7)||_0x49d3b4['add'](_0x1ac9f7);}}}function isDisconnectionError(_0x5b8cf4){return _0x5b8cf4['message']['startsWith']('cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.')||_0x5b8cf4['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x5b8cf4['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}class RealTimeCollaborativeRevisionHistory extends Plugin{static get['requires'](){return['RevisionHistory',CloudServicesRevisionHistoryAdapter,RealTimeCollaborativeEditing];}static get['pluginName'](){return'RealTimeCollaborativeRevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class PresenceCounterView extends View{['_collapseAt'];constructor(_0x394f80,_0x5a9fc8=0x6){super(_0x394f80);const _0x2ede17=this['bindTemplate'];this['set']('isHidden',!0x0),this['set']('usersCount',0x0),this['_collapseAt']=_0x5a9fc8,this['bind']('isHidden')['to'](this,'usersCount',_0x5dfd50=>_0x5dfd50<_0x5a9fc8),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-presence-list__list-item',_0x2ede17['if']('isHidden','ck-presence-list__counter--hidden')],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck','ck-presence-list__users-counter']},'children':[{'tag':'div','attributes':{'class':['ck','ck-presence-list__users-counter__text']},'children':[{'text':_0x2ede17['to']('usersCount',_0x936649=>'+'+(_0x936649-this['_collapseAt']+0x2)['toString']())}]}]}]});}}class PresenceInlineListView extends View{['items'];['keystrokes'];constructor(_0x31e862){super(_0x31e862);const _0x566d84=this['bindTemplate'];this['items']=this['createCollection'](),this['keystrokes']=new KeystrokeHandler(),this['set']({'hasPopup':!0x1,'isExpanded':!0x1}),this['setTemplate']({'tag':'div','attributes':{'aria-haspopup':_0x566d84['if']('hasPopup'),'aria-expanded':_0x566d84['to']('isExpanded',_0x3d42a=>this['hasPopup']&&String(_0x3d42a)),'aria-label':_0x566d84['to']('hasPopup',_0x2b657d=>getTranslation$6(_0x31e862,_0x2b657d?'Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)':'Connected\x20users\x20list')),'role':'list','tabindex':_0x566d84['to']('hasPopup',_0x58bbc1=>!!_0x58bbc1&&0x0),'class':['ck','ck-presence-list__list']},'children':this['items'],'on':{'mouseenter':_0x566d84['to'](()=>this['fire']('presencelist:show')),'mouseleave':_0x566d84['to'](_0x5842e3=>{const _0x315b49=_0x5842e3,_0x48d87e=document['querySelector']('.ck-presence-list__dropdown-list'),_0x5c8e35=document['querySelector']('.ck-balloon-panel_with-arrow');_0x48d87e?.['contains'](_0x315b49['relatedTarget'])||_0x5c8e35?.['contains'](_0x315b49['relatedTarget'])||this['fire']('presencelist:hide');})}}),this['on']('change:hasPopup',(_0x583da8,_0x1ac833,_0x10b4aa)=>{this['element']&&(_0x10b4aa?this['element']['setAttribute']('aria-expanded',String(this['isExpanded'])):this['element']['removeAttribute']('aria-expanded'));});}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['keystrokes']['listenTo'](this['element']);}}class PresenceListView extends View{['counterView'];['inlineListView'];constructor(_0x239b04,_0x5a0184=0x6){super(_0x239b04);const _0x3ff1cd=this['bindTemplate'];this['set']('isCollapsed',!0x0),this['counterView']=new PresenceCounterView(this['locale'],_0x5a0184),this['inlineListView']=new PresenceInlineListView(_0x239b04),this['inlineListView']['bind']('hasPopup')['to'](this,'isCollapsed'),this['listenTo'](this['inlineListView']['items'],'change',()=>{for(const _0x5d54e9 of this['inlineListView']['items'])_0x5d54e9['tooltipPosition']='s';this['inlineListView']['items']['first']&&(this['inlineListView']['items']['first']['tooltipPosition']='se');}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-presence-list','ck-reset','ck-rounded-corners',_0x3ff1cd['if']('isCollapsed','ck-presence-list--collapsed')]},'children':[this['inlineListView']]});}}class PresenceDropdownListView extends View{['listWrapperView'];constructor(_0x5eb903,_0x2c629e){super(_0x5eb903);const _0x2fc9fe=this['bindTemplate'];this['listWrapperView']=new PresenceDropdownListWrapperView(_0x5eb903,_0x2c629e),this['setTemplate']({'tag':'div','attributes':{'tabindex':-0x1,'role':'application','class':['ck','ck-presence-list__dropdown-list'],'aria-label':getTranslation$6(_0x5eb903,'Connected\x20users\x20list\x20dropdown\x20menu')},'children':[this['listWrapperView']],'on':{'mouseleave':_0x2fc9fe['to'](_0x3e531a=>{const _0x2df14d=_0x3e531a,_0x3116e4=document['querySelector']('.ck-presence-list__list'),_0x37a41f=document['querySelector']('.ck-balloon-panel_with-arrow');_0x3116e4?.['contains'](_0x2df14d['relatedTarget'])||_0x37a41f?.['contains'](_0x2df14d['relatedTarget'])||this['fire']('presencelist:hide');})}});}}class PresenceDropdownListWrapperView extends ListView{constructor(_0x4d037b,_0x16481b){super(_0x4d037b);const _0x2136d2=this['bindTemplate'];this['set']('_isScrollable',!0x1),this['setTemplate']({'tag':_0x16481b?'div':'ul','attributes':{'class':['ck','ck-reset','ck-list','ck-presence-list__dropdown-list-wrapper',_0x2136d2['if']('_isScrollable','ck-presence-list__dropdown-list-wrapper_scrollable')],'role':_0x2136d2['to']('role'),'aria-label':_0x2136d2['to']('ariaLabel'),'aria-labelledby':_0x2136d2['to']('ariaLabelledBy')},'children':this['items']}),this['listenTo'](_0xd4e5e['window'],'resize',()=>this['checkIfScrollable']()),this['items']['on']('change',()=>this['checkIfScrollable']());}['render'](){super['render'](),this['checkIfScrollable']();}['checkIfScrollable'](){const _0xb00155=this['element'];_0xb00155&&(this['_isScrollable']=Math['max'](_0xb00155['scrollHeight'],_0xb00155['clientHeight'])>0.8*window['innerHeight']);}}class PresenceDropdownListItemView extends ListItemView{['userView'];constructor(_0x432cb7,_0x2d3dab,_0x5a6076){super(_0x432cb7);const _0x832cb6=this['bindTemplate'];this['userView']=new UserView(_0x432cb7,_0x2d3dab);const _0x1f243d={'tag':'li','attributes':{'class':['ck','ck-presence-list__dropdown-list-item'],'tabindex':-0x1,'role':'presentation','aria-label':_0x2d3dab['name']},'children':[this['userView'],{'tag':'span','attributes':{'class':['ck','ck-user__full-name']},'children':[{'text':_0x2d3dab['name']}]},{'tag':'span','attributes':{'class':['ck','ck-presence-list__marker',_0x2d3dab['color']['getBackgroundColorClass']()],'aria-hidden':'true'}}]};_0x5a6076&&(_0x1f243d['tag']='button',_0x1f243d['on']={'click':_0x832cb6['to'](()=>this['fire']('execute'))}),this['setTemplate'](_0x1f243d);}['focus'](){this['element']['focus']();}}class PresenceInlineListItemView extends View{['userView'];['markerView'];constructor(_0x886bf6,_0x26ba2e,_0x1e7ec3){super(_0x886bf6);const _0x2f82cf=this['bindTemplate'];this['set']('isFocusable',!0x1),this['set']('hasTooltip',!0x0),this['set']('tooltipPosition',''),this['userView']=new UserView(_0x886bf6,_0x26ba2e),this['markerView']=new MarkerView(_0x886bf6,_0x26ba2e);const _0x3d07ed=new LabelView(_0x886bf6);_0x3d07ed['template']['tag']='span',_0x3d07ed['text']=_0x26ba2e['name'];const _0x12b92c={'tag':'div','attributes':{'class':['ck','ck-presence-list__list-item'],'role':'listitem','tabindex':_0x2f82cf['to']('isFocusable',_0x26e0e7=>!!_0x26e0e7&&0x0),'aria-labelledby':_0x3d07ed['id'],'data-cke-tooltip-text':this['userView']['name'],'data-cke-tooltip-position':_0x2f82cf['to']('tooltipPosition'),'data-cke-tooltip-disabled':_0x2f82cf['to']('hasTooltip',_0x2112bc=>!_0x2112bc),'data-cke-tooltip-class':'ck-presence-list__list-item__tooltip'},'children':[this['userView'],this['markerView'],_0x3d07ed]};_0x1e7ec3&&(_0x12b92c['tag']='button',_0x12b92c['on']={'click':_0x2f82cf['to'](()=>this['fire']('execute'))}),this['setTemplate'](_0x12b92c);}}class MarkerView extends View{constructor(_0x58bf45,_0x448556){super(_0x58bf45),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-presence-list__marker',_0x448556['color']['getBackgroundColorClass']()],'aria-hidden':'true'}});}}const defaultPresenceListConfig={'collapseAt':0x6,'displayMe':!0x0};class PresenceListUI extends ContextPlugin{['currentDisplayedUsers'];['balloonPanelView'];['view'];['presenceDropdownView'];['_bodyCollection']=null;static get['pluginName'](){return'PresenceListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x396cac){super(_0x396cac),this['context']['config']['define']('presenceList',defaultPresenceListConfig);const _0x24d3c9=_0x396cac['config']['get']('presenceList.collapseAt');if('number'!=typeof _0x24d3c9)throw new CKEditorError('presencelist-collapseat-invalid-format',this);if(_0x24d3c9<0x1)throw new CKEditorError('presencelist-collapseat-invalid-format',this);this['_allConnectedUsers']=this['context']['plugins']['get'](Sessions)['allConnectedUsers'],this['set']('usersCount',0x0),this['currentDisplayedUsers']=new Collection(),this['balloonPanelView']=new BalloonPanelView(),this['balloonPanelView']['class']='ck\x20ck-presence-list__balloon',this['view']=this['_createView'](),this['presenceDropdownView']=void 0x0;}static get['requires'](){return[Sessions];}['init'](){for(const _0x5615f3 of this['_allConnectedUsers'])this['_handleUserAdd'](_0x5615f3);this['listenTo'](this['_allConnectedUsers'],'add',(_0x4b1d31,_0x3dcbef)=>{this['_handleUserAdd'](_0x3dcbef);}),this['listenTo'](this['_allConnectedUsers'],'remove',(_0x3fcd29,_0x1ddd14)=>{this['_handleUserRemove'](_0x1ddd14);});}['_createView'](){const _0x16dc68=this['context'],_0x29a028=new PresenceListView(this['context']['locale'],this['context']['config']['get']('presenceList.collapseAt')),_0x4fc7b6=this['balloonPanelView'];if(!isElement$2(_0x16dc68['config']['get']('presenceList.container')))throw new CKEditorError('presencelist-missing-container',this);return _0x29a028['counterView']['bind']('usersCount')['to'](this),_0x29a028['bind']('isCollapsed')['to'](this,'usersCount',_0x155d7e=>{const {collapseAt:_0x58b65c}=_0x16dc68['config']['get']('presenceList'),_0x3f984b=_0x155d7e>=_0x58b65c;if(_0x3f984b&&!_0x29a028['inlineListView']['items']['find'](_0x9cb756=>_0x9cb756 instanceof PresenceCounterView)){const _0x1e1ded=this['context']['config']['get']('presenceList.collapseAt')-0x1;this['currentDisplayedUsers']['length']==_0x1e1ded&&this['currentDisplayedUsers']['length']>0x1&&this['currentDisplayedUsers']['remove'](this['currentDisplayedUsers']['length']-0x1),_0x29a028['inlineListView']['items']['add'](_0x29a028['counterView']);}return _0x3f984b||this['hideDropdown'](),_0x3f984b;}),_0x29a028['inlineListView']['items']['bindTo'](this['currentDisplayedUsers'])['using'](_0x5a034e=>{const _0x78d558=_0x16dc68['config']['get']('presenceList'),_0x162550=new PresenceInlineListItemView(_0x16dc68['locale'],_0x5a034e,!!_0x78d558['onClick']);return _0x162550['bind']('hasTooltip')['to'](_0x29a028,'isCollapsed',_0x4f9d2c=>!_0x4f9d2c),_0x162550['bind']('isFocusable')['to'](_0x29a028,'isCollapsed',_0x42aa64=>!_0x42aa64),_0x78d558['onClick']&&this['listenTo'](_0x162550,'execute',()=>{this['view']['isCollapsed']||_0x78d558['onClick'](_0x5a034e,_0x162550['element']);}),_0x162550;}),this['listenTo'](_0x29a028['inlineListView'],'presencelist:show',()=>{this['view']['isCollapsed']&&this['showDropdown']();}),this['listenTo'](_0x29a028['inlineListView'],'presencelist:hide',()=>{this['presenceDropdownView']&&this['hideDropdown']();}),_0x29a028['inlineListView']['keystrokes']['set']('Enter',(_0x57d79d,_0x4abc78)=>{this['view']['isCollapsed']&&(this['showDropdown'](),_0x4abc78());}),_0x29a028['render'](),_0x4fc7b6['render'](),clickOutsideHandler({'emitter':_0x29a028,'activator':()=>_0x4fc7b6['isVisible'],'contextElements':[_0x4fc7b6['element'],_0x29a028['inlineListView']['element']],'callback':()=>this['hideDropdown']()}),_0x16dc68['config']['get']('presenceList.container')['appendChild'](_0x29a028['element']),this['_bodyCollection']=new BodyCollection(this['context']['locale']),this['_bodyCollection']['attachToDom'](),this['_bodyCollection']['add'](this['balloonPanelView']),_0x29a028;}['_handleUserAdd'](_0x538434){if(!this['context']['config']['get']('presenceList.displayMe')&&_0x538434['isMe'])return;const _0x55b13e=this['context']['config']['get']('presenceList.collapseAt')-0x1;for(this['usersCount']++;this['currentDisplayedUsers']['length']>=_0x55b13e-(this['view']['isCollapsed']?0x1:0x0)&&this['currentDisplayedUsers']['length']>0x1;)this['currentDisplayedUsers']['remove'](0x1);const _0x285dd0=_0x538434['isMe']?0x0:this['currentDisplayedUsers']['length'];this['currentDisplayedUsers']['add'](_0x538434,_0x285dd0);}['_handleUserRemove'](_0x57e20c){this['usersCount']--;const {collapseAt:_0x422775}=this['context']['config']['get']('presenceList'),_0x21c847=this['usersCount']>=_0x422775;if(this['currentDisplayedUsers']['get'](_0x57e20c['id']))this['currentDisplayedUsers']['remove'](_0x57e20c['id']);else{if(_0x21c847&&this['currentDisplayedUsers']['length']+0x1===_0x422775-0x1)return;}if(this['currentDisplayedUsers']['length']+(_0x21c847?0x1:0x0)<this['usersCount']){for(const _0xe559d3 of Array['from'](this['_allConnectedUsers'])['reverse']())if(!this['currentDisplayedUsers']['get'](_0xe559d3['id'])&&(this['currentDisplayedUsers']['add'](_0xe559d3,Math['min'](this['currentDisplayedUsers']['length']-(_0x21c847?0x1:0x0),0x1)),this['currentDisplayedUsers']['length']+(_0x21c847?0x1:0x0)===_0x422775-0x1))return;}}['showDropdown'](){if(this['presenceDropdownView'])return;const _0x279aad=this['context']['config']['get']('presenceList');this['presenceDropdownView']=new PresenceDropdownListView(this['context']['locale'],!!_0x279aad['onClick']),this['view']['inlineListView']['isExpanded']=!0x0,this['listenTo'](this['presenceDropdownView'],'presencelist:hide',()=>{this['presenceDropdownView']&&this['hideDropdown']();});const {listWrapperView:_0x3d75ee}=this['presenceDropdownView'];_0x3d75ee['items']['bindTo'](this['_allConnectedUsers'])['using'](_0x418e6b=>{if(!_0x279aad['displayMe']&&_0x418e6b['isMe'])return null;const _0x2951fd=new PresenceDropdownListItemView(this['context']['locale'],_0x418e6b,!!_0x279aad['onClick']);return _0x279aad['onClick']&&this['listenTo'](_0x2951fd,'execute',()=>{_0x279aad['onClick'](_0x418e6b,_0x2951fd['element']);}),_0x2951fd;}),this['balloonPanelView']['content']['add'](this['presenceDropdownView']),this['balloonPanelView']['pin']({'target':this['view']['inlineListView']['element']}),_0x3d75ee['focus'](),_0x3d75ee['checkIfScrollable']();const _0x1a56aa=(_0x47834e,_0x302c63)=>{this['hideDropdown'](),this['view']['inlineListView']['focus'](),_0x302c63();};_0x3d75ee['keystrokes']['set']('Esc',_0x1a56aa),_0x3d75ee['keystrokes']['set']('Shift+Tab',_0x1a56aa),_0x3d75ee['keystrokes']['set']('Tab',(_0x3314e9,_0x3d345d)=>{focusNextElement(this['view']['element']),this['hideDropdown'](),_0x3d345d();}),_0x3d75ee['focusTracker']['add'](this['view']['element']),_0x3d75ee['focusTracker']['on']('change:isFocused',(_0x4461f9,_0x55abba,_0x5d1432)=>{_0x5d1432||this['hideDropdown']();});}['hideDropdown'](){this['presenceDropdownView']&&(this['view']['inlineListView']['isExpanded']=!0x1,this['balloonPanelView']['unpin'](),this['balloonPanelView']['content']['remove'](this['presenceDropdownView']),this['presenceDropdownView']['destroy'](),this['presenceDropdownView']=void 0x0);}['destroy'](){super['destroy'](),this['view']&&this['view']['isRendered']&&this['view']['destroy'](),this['_bodyCollection']&&(this['_bodyCollection']['detachFromDom'](),this['_bodyCollection']['destroy'](),this['_bodyCollection']=null);}}function focusNextElement(_0x4d3e0e){const _0x332f2e=['a','button','input','select','textarea','[tabindex]','[contenteditable]']['map'](_0x26a5cf=>_0x26a5cf+':not([disabled]):not([tabindex=\x22-1\x22])')['join'](','),_0x2c9254=[...document['body']['querySelectorAll'](_0x332f2e)]['filter'](_0x2ab293=>_0x2ab293===document['activeElement']||_0x2ab293['offsetWidth']+_0x2ab293['offsetHeight']>0x0)['sort']((_0x587b9b,_0x3fac18)=>(_0x587b9b['tabIndex']||0x0)-(_0x3fac18['tabIndex']||0x0)),_0x4d2438=_0x2c9254['indexOf'](_0x4d3e0e),_0x2924a0=_0x2c9254[(_0x4d2438+0x1)%_0x2c9254['length']];_0x2924a0&&_0x2924a0['focus']();}class PresenceList extends ContextPlugin{static get['requires'](){return[Sessions,PresenceListUI];}static get['pluginName'](){return'PresenceList';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class Revision extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x52b79f){super(),this['id']=_0x52b79f['id']||uid(),this['creator']=_0x52b79f['creator']||null,this['authors']=_0x52b79f['authors']||[],this['diffData']=_0x52b79f['diffData']||null,this['toVersion']=_0x52b79f['toVersion']||0x0,this['fromVersion']=_0x52b79f['fromVersion']||0x0,this['set']('name',_0x52b79f['name']||''),this['set']('createdAt',_0x52b79f['createdAt']||new Date()),this['set']('attributes',_0x52b79f['attributes']||{});}['setName'](_0x328cef){this['_update']({'name':_0x328cef});}['setAttribute'](_0x1c0056,_0x20d9b6){const _0x19ff95=cloneDeep(this['attributes']);set(_0x19ff95,_0x1c0056,_0x20d9b6),this['_update']({'attributes':_0x19ff95});}['removeAttribute'](_0x73899f){const _0x28594f=cloneDeep(this['attributes']);unset(_0x28594f,_0x73899f),this['_update']({'attributes':_0x28594f});}['_update'](_0xba69c1,_0x465020=!0x1){let _0xde2436=!0x1;const _0x3504c9={'id':this['id']},_0x3d1a83=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x39227c of _0x3d1a83){const _0x3ba5b9=_0xba69c1[_0x39227c];void 0x0!==_0x3ba5b9&&_0x3ba5b9!==this[_0x39227c]&&(this[_0x39227c]=_0x3ba5b9,_0x3504c9[_0x39227c]=_0x3ba5b9,_0xde2436=!0x0);}_0xde2436&&(_0x3504c9['authors']&&(_0x3504c9['authorsIds']=_0x3504c9['authors']['map'](_0x507e10=>_0x507e10['id']),delete _0x3504c9['authors']),this['fire']('_update',_0x3504c9,_0x465020));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5b9e39=>_0x5b9e39['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class RevisionsRepository extends Plugin{['_revisions'];static get['requires'](){return[Users];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x6ceda2){super(_0x6ceda2),this['_revisions']=new Collection();}['afterInit'](){checkLicense$5(this);}['createRevision'](_0x2d7e91){const _0x193864=this['editor']['plugins']['get']('Users');return new Revision({'id':_0x2d7e91['id'],'name':_0x2d7e91['name'],'creator':_0x2d7e91['creatorId']?_0x193864['getUser'](_0x2d7e91['creatorId']):null,'diffData':_0x2d7e91['diffData']||_0x2d7e91['data'],'authors':_0x2d7e91['authorsIds']['map'](_0x1aadbb=>_0x193864['getUser'](_0x1aadbb)),'createdAt':new Date(_0x2d7e91['createdAt']),'attributes':_0x2d7e91['attributes'],'fromVersion':_0x2d7e91['fromVersion'],'toVersion':_0x2d7e91['toVersion']});}['addRevision'](_0x4f8240,_0x3e607c=0x0){this['_revisions']['add'](_0x4f8240,_0x3e607c);}['getRevision'](_0x46a91e){return this['_revisions']['get'](_0x46a91e);}['getRevisions'](_0x2fd524={'toJSON':!0x1}){const _0x47aef1=Array['from'](this['_revisions']);return _0x47aef1['reverse'](),_0x2fd524['toJSON']?_0x47aef1['map'](_0x12f065=>_0x12f065['toJSON']()):_0x47aef1;}['getIndex'](_0x438101){return this['_revisions']['getIndex'](_0x438101);}['getEarlierVisibleRevision'](_0x580049){const [,_0x29e254]=this['getRevisionsIterator'](_0x580049,{'direction':'earlier'});return _0x29e254;}['getLaterVisibleRevision'](_0x364ec2){const [,_0x378098]=this['getRevisionsIterator'](_0x364ec2,{'direction':'later'});return _0x378098;}['getRevisionsInDiff'](_0x52d5b7){const _0x27cf49=[];for(const _0x5002e1 of this['getRevisionsIterator'](_0x52d5b7['newRevisionId']))if(_0x27cf49['push'](_0x5002e1),_0x5002e1['id']===_0x52d5b7['oldRevisionId'])break;return _0x27cf49;}*['getRevisionsIterator'](_0x2e7810,{direction:_0x35c6cf='earlier',filter:_0x34cb01=()=>!0x0}={}){const _0x20a31b='earlier'===_0x35c6cf?0x1:-0x1;let _0x3d279d=this['_revisions']['get'](_0x2e7810),_0xb03feb=this['getIndex'](_0x3d279d);for(yield _0x3d279d;_0x3d279d;){if(_0xb03feb+=_0x20a31b,_0x3d279d=this['getRevision'](_0xb03feb),!_0x3d279d)return;_0x34cb01(_0x3d279d)&&(yield _0x3d279d);}}}async function checkLicense$5(_0x5c1c35){const _0x51ff1d=_0x42f402([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x28b0db=0xeb829,_0x442515=window[_0x42f402([0x44,0x61,0x74,0x65])][_0x42f402([0x6e,0x6f,0x77])](),_0x1fd0e5=_0x5c1c35[_0x42f402([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2215db=new window[(_0x42f402([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x370399=>{_0x1fd0e5[_0x42f402([0x6f,0x6e,0x63,0x65])](_0x42f402([0x72,0x65,0x61,0x64,0x79]),_0x370399);}),_0x5a15b4={[_0x42f402([0x6b,0x74,0x79])]:_0x42f402([0x45,0x43]),[_0x42f402([0x75,0x73,0x65])]:_0x42f402([0x73,0x69,0x67]),[_0x42f402([0x63,0x72,0x76])]:_0x42f402([0x50,0x2d,0x32,0x35,0x36]),[_0x42f402([0x78])]:_0x42f402([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x42f402([0x79])]:_0x42f402([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x42f402([0x61,0x6c,0x67])]:_0x42f402([0x45,0x53,0x32,0x35,0x36])},_0x359b70=_0x1fd0e5[_0x42f402([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42f402([0x67,0x65,0x74])](_0x42f402([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x1b556c=await(async function(){let _0x497c33,_0x32a7d1=null,_0x31dbc8=null;try{if(_0x359b70==_0x42f402([0x47,0x50,0x4c]))return _0x42f402([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x497c33=(function(){const _0x2df4bf=_0x359b70[_0x42f402([0x73,0x70,0x6c,0x69,0x74])](_0x42f402([0x2e]));if(0x3!=_0x2df4bf[_0x42f402([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0xf27254=_0x2df4bf[0x1];return _0x505b11(_0xf27254);function _0x505b11(_0x2c7bfc){const _0x3574a2=_0x1fb4c2(_0x2c7bfc);return _0x3574a2&&_0x15a010()?_0x3574a2:null;function _0x15a010(){const _0x172bcc=_0x3574a2[_0x42f402([0x6a,0x74,0x69])],_0x3b5020=window[_0x42f402([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x172bcc[_0x42f402([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x172bcc[_0x42f402([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4aac3={..._0x3574a2,[_0x42f402([0x6a,0x74,0x69])]:_0x172bcc[_0x42f402([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x172bcc[_0x42f402([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4aac3[_0x42f402([0x76,0x63])],_0x376af5(_0x4aac3)==_0x3b5020;}}}()),!_0x497c33)return _0x42f402([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x497c33[_0x42f402([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x31dbc8=function(_0x267e36,_0x4c10f9){return new window[(_0x42f402([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43becd=>{if(_0x33a89f())return _0x43becd(_0x42f402([0x56,0x61,0x6c,0x69,0x64]));_0x4d32e0(),_0x1fd0e5[_0x42f402([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42f402([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x219e24=!0x1;const _0x14a696=uid();function _0x35f406(_0x19d163){return!!_0x19d163&&(typeof _0x19d163===_0x42f402([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19d163===_0x42f402([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19d163[_0x42f402([0x74,0x68,0x65,0x6e])]===_0x42f402([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19d163[_0x42f402([0x63,0x61,0x74,0x63,0x68])]===_0x42f402([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f88df(_0x2aab7c){_0x5758b4(_0x2aab7c)[_0x42f402([0x74,0x68,0x65,0x6e])](_0x3e92c0=>{if(!_0x3e92c0||_0x3e92c0[_0x42f402([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42f402([0x6f,0x6b]))return _0x42f402([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a2914(_0x376af5(_0x14a696+_0x4c10f9))!=_0x3e92c0[_0x42f402([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42f402([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42f402([0x56,0x61,0x6c,0x69,0x64]);})[_0x42f402([0x74,0x68,0x65,0x6e])](_0x5c2410=>(_0x4dd726(),_0x5c2410),()=>{const _0x16858c=_0x31074c();return null==_0x16858c?(_0x4dd726(),_0x42f402([0x56,0x61,0x6c,0x69,0x64])):_0x42f402(_0x442515-_0x16858c>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42f402([0x74,0x68,0x65,0x6e])](_0x43becd)[_0x42f402([0x63,0x61,0x74,0x63,0x68])](()=>{_0x43becd(_0x42f402([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2aa06a=0x36ee80;function _0x4dd726(){const _0x17dca9=_0x42f402([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a2914(_0x376af5(_0x267e36)),_0x568421=_0x42d95a(_0x1a2914(window[_0x42f402([0x4d,0x61,0x74,0x68])][_0x42f402([0x63,0x65,0x69,0x6c])](_0x442515/_0x2aa06a)));window[_0x42f402([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42f402([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17dca9,_0x568421);}function _0x31074c(){const _0x2359eb=_0x42f402([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a2914(_0x376af5(_0x267e36)),_0x28dedd=window[_0x42f402([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42f402([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2359eb);return _0x28dedd?window[_0x42f402([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42d95a(_0x28dedd),0x10)*_0x2aa06a:null;}function _0x5758b4(_0x5d9dfc){return new window[(_0x42f402([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56e5ec,_0x1ca372)=>{_0x5d9dfc[_0x42f402([0x74,0x68,0x65,0x6e])](_0x56e5ec,_0x1ca372),window[_0x42f402([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ca372,0x1d4c0);});}}_0x1fd0e5[_0x42f402([0x6f,0x6e])](_0x42f402([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf4c795,_0x55ff28)=>{if(_0x55ff28[0x0]!=_0x267e36)return _0x43becd(_0x42f402([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x55ff28[0x1]={..._0x55ff28[0x1],[_0x42f402([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14a696};},{[_0x42f402([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42f402([0x68,0x69,0x67,0x68])}),_0x1fd0e5[_0x42f402([0x6f,0x6e])](_0x42f402([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c798a=>{_0x35f406(_0x4c798a[_0x42f402([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x219e24=!0x0,_0x4f88df(_0x4c798a[_0x42f402([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42f402([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42f402([0x6c,0x6f,0x77])}),_0x2215db[_0x42f402([0x74,0x68,0x65,0x6e])](()=>{_0x219e24||_0x43becd(_0x42f402([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x33a89f(){return _0x1fd0e5[_0x42f402([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42f402([0x76,0x69,0x65,0x77])][_0x42f402([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42f402([0x61,0x75,0x74,0x6f]);}function _0x4d32e0(){_0x1fd0e5[_0x42f402([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42f402([0x76,0x69,0x65,0x77])][_0x42f402([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42f402([0x61,0x75,0x74,0x6f]);}}(_0x497c33[_0x42f402([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x497c33[_0x42f402([0x6a,0x74,0x69])]));const _0xda8a8c=await(async function(){let _0x3ce5d0=!0x0;try{const _0x44028b=_0x359b70[_0x42f402([0x73,0x70,0x6c,0x69,0x74])](_0x42f402([0x2e])),[_0x28b06e,_0x57e71c,_0x4a986c]=_0x44028b;return _0x3906dd(_0x28b06e),await _0x476f6a(_0x28b06e,_0x57e71c,_0x4a986c),_0x3ce5d0;}catch{return!0x1;}function _0x3906dd(_0x9999f9){const _0x127726=_0x1fb4c2(_0x9999f9);_0x127726&&_0x127726[_0x42f402([0x61,0x6c,0x67])]==_0x42f402([0x45,0x53,0x32,0x35,0x36])||(_0x3ce5d0=!0x1);}async function _0x476f6a(_0x2d2345,_0x2bba37,_0x39f955){const _0xef08c=window[_0x42f402([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42f402([0x66,0x72,0x6f,0x6d])](_0xa8f5a4(_0x39f955),_0x49e98a=>_0x49e98a[_0x42f402([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x443ef3=new window[(_0x42f402([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42f402([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2d2345+_0x42f402([0x2e])+_0x2bba37),_0x20ad49=window[_0x42f402([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42f402([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x20ad49)return;const _0x98b458=await _0x20ad49[_0x42f402([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42f402([0x6a,0x77,0x6b]),_0x5a15b4,{[_0x42f402([0x6e,0x61,0x6d,0x65])]:_0x42f402([0x45,0x43,0x44,0x53,0x41]),[_0x42f402([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42f402([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42f402([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x20ad49[_0x42f402([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42f402([0x6e,0x61,0x6d,0x65])]:_0x42f402([0x45,0x43,0x44,0x53,0x41]),[_0x42f402([0x68,0x61,0x73,0x68])]:{[_0x42f402([0x6e,0x61,0x6d,0x65])]:_0x42f402([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x98b458,_0xef08c,_0x443ef3)||(_0x3ce5d0=!0x1);}}());return _0xda8a8c?(function(){const _0x47314e=_0x497c33[_0x42f402([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x47314e)return!0x1;if(_0x47314e[_0x42f402([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42f402([0x2a])))return!0x0;if(_0x47314e[_0x42f402([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42f402([0x52,0x48])))return!0x0;if(_0x47314e[_0x42f402([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42f402([0x52,0x52,0x48]))){if(_0x1ee2fb(_0x42f402([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x586f41(_0x42f402([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x42f402([0x73,0x74,0x61,0x74,0x65])]==_0x42f402([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0x1ee2fb(_0x42f402([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]))||_0x1ee2fb(_0x42f402([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72])))return!0x0;}return!0x1;}())?(function(){const _0x261fd8=[_0x42f402([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42f402([0x74,0x72,0x69,0x61,0x6c])][_0x42f402([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x497c33[_0x42f402([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x442515/0x3e8:0x68f03580;return _0x497c33[_0x42f402([0x65,0x78,0x70])]<_0x261fd8;}())?_0x42f402([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x356a63=_0x497c33[_0x42f402([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x356a63||0x0==_0x356a63[_0x42f402([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5def7b}=new URL(window[_0x42f402([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x356a63[_0x42f402([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5def7b))return!0x0;const _0x503765=_0x5def7b[_0x42f402([0x73,0x70,0x6c,0x69,0x74])](_0x42f402([0x2e]));return _0x356a63[_0x42f402([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b9064=>_0x3b9064[_0x42f402([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42f402([0x2a])))[_0x42f402([0x6d,0x61,0x70])](_0x32a5ce=>_0x32a5ce[_0x42f402([0x73,0x70,0x6c,0x69,0x74])](_0x42f402([0x2e])))[_0x42f402([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x164670=>_0x164670[_0x42f402([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x503765[_0x42f402([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42f402([0x6d,0x61,0x70])](_0x5026df=>Array(_0x503765[_0x42f402([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5026df[_0x42f402([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42f402([0x66,0x69,0x6c,0x6c])](_0x5026df[0x0]===_0x42f402([0x2a])?_0x42f402([0x2a]):'')[_0x42f402([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5026df))[_0x42f402([0x73,0x6f,0x6d,0x65])](_0xf6c0e5=>_0x503765[_0x42f402([0x65,0x76,0x65,0x72,0x79])]((_0x2c22c2,_0xd6b2d5)=>_0xf6c0e5[_0xd6b2d5]===_0x2c22c2||_0xf6c0e5[_0xd6b2d5]===_0x42f402([0x2a])));}())?(_0x497c33[_0x42f402([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42f402([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32a7d1=_0x3c0cd5(_0x42f402([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x497c33[_0x42f402([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42f402([0x74,0x72,0x69,0x61,0x6c])&&(_0x32a7d1=_0x3c0cd5(_0x42f402([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x32a7d1&&_0x31dbc8)return new window[(_0x42f402([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa49a25,_0x2813d2)=>{_0x32a7d1[_0x42f402([0x74,0x68,0x65,0x6e])](_0xa49a25,_0x2813d2),_0x31dbc8[_0x42f402([0x74,0x68,0x65,0x6e])](_0x185633=>{_0x185633!=_0x42f402([0x56,0x61,0x6c,0x69,0x64])&&_0xa49a25(_0x185633);},_0x2813d2);});return _0x32a7d1||_0x31dbc8||_0x42f402([0x56,0x61,0x6c,0x69,0x64]);}())):_0x42f402([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42f402([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42f402([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x42f402([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x3c0cd5(_0x30c553){const _0xead687=new window[(_0x42f402([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cee28=>setTimeout(_0x2cee28,0x93ecc)),_0x113407=_0x2215db[_0x42f402([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42f402([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f9d5e=>{const _0x3d7b75=_0x5c1c35[_0x42f402([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x45694c(){_0x3d7b75[_0x42f402([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=0x7&&_0x1f9d5e();}_0x45694c(),_0x3d7b75[_0x42f402([0x6f,0x6e])](_0x42f402([0x61,0x64,0x64]),_0x45694c);})),_0xc4329f=new window[(_0x42f402([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3560ec=>{_0x1ee2fb(_0x42f402([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&function _0x3f7c5d(){for(const _0x3dd675 in window)if(window[_0x42f402([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x42f402([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3dd675))&&window[_0x3dd675]==_0x28b0db)return _0x3560ec();_0x1fd0e5[_0x42f402([0x73,0x74,0x61,0x74,0x65])]!=_0x42f402([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x42f402([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f7c5d,0x1388);}();}),_0x8409a6=[_0xead687,_0x113407,_0xc4329f];return window[_0x42f402([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42f402([0x72,0x61,0x63,0x65])](_0x8409a6)[_0x42f402([0x74,0x68,0x65,0x6e])](()=>_0x30c553);}function _0x597127(){const _0x2eee82=window[_0x42f402([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42f402([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42f402([0x6e,0x6f,0x77])]())[_0x42f402([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42f402([0x2e]),'');let _0x1424e7=_0x42f402([0x73]);for(let _0x1e42da=0x0;_0x1e42da<_0x2eee82[_0x42f402([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e42da+=0x2){let _0x201a50=window[_0x42f402([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2eee82[_0x42f402([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e42da,_0x1e42da+0x2));_0x201a50>=_0x51ff1d[_0x42f402([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x201a50-=_0x51ff1d[_0x42f402([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1424e7+=_0x51ff1d[_0x201a50];}return _0x1424e7;}function _0x1fb4c2(_0x497876){return _0x497876[_0x42f402([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42f402([0x65,0x79]))?JSON[_0x42f402([0x70,0x61,0x72,0x73,0x65])](_0xa8f5a4(_0x497876)):null;}function _0xa8f5a4(_0xa84a5c){return window[_0x42f402([0x61,0x74,0x6f,0x62])](_0xa84a5c[_0x42f402([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42f402([0x2b]))[_0x42f402([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42f402([0x2f])));}function _0x376af5(_0xf64e66){let _0x4ff313=0x1505;function _0x51e4d2(_0x4d2826){for(let _0x15365f=0x0;_0x15365f<_0x4d2826[_0x42f402([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15365f++){const _0x238579=_0x4d2826[_0x42f402([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x15365f);_0x4ff313=(_0x4ff313<<0x5)+_0x4ff313+_0x238579,_0x4ff313&=_0x4ff313;}}return function _0xeaf04(_0x5efb68){Array[_0x42f402([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5efb68)?_0x5efb68[_0x42f402([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xeaf04):_0x5efb68&&typeof _0x5efb68==_0x42f402([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42f402([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5efb68)[_0x42f402([0x73,0x6f,0x72,0x74])]()[_0x42f402([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2014cd,_0x531007])=>{_0x51e4d2(_0x2014cd),_0xeaf04(_0x531007);}):_0x51e4d2(window[_0x42f402([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5efb68));}(_0xf64e66),_0x4ff313>>>0x0;}function _0x1a2914(_0x2606df){return _0x2606df[_0x42f402([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42f402([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42f402([0x30]));}function _0x42d95a(_0x2ffbe8){return _0x2ffbe8[_0x42f402([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42f402([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42f402([0x6a,0x6f,0x69,0x6e])]('');}function _0x1ee2fb(_0x5ab4d2){return _0x1fd0e5[_0x42f402([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42f402([0x68,0x61,0x73])](_0x5ab4d2);}function _0x586f41(_0x3fb505){return _0x1fd0e5[_0x42f402([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42f402([0x67,0x65,0x74])](_0x3fb505);}function _0x2386d3(){}function _0x42f402(_0x37c97c){return _0x37c97c['map'](_0x1db8b0=>String['fromCharCode'](_0x1db8b0))['join']('');}!function(_0x5e32aa){const _0x1e8e9e=_0x597127();_0x1fd0e5[_0x1e8e9e]=_0x42f402([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e32aa,_0x5e32aa[_0x42f402([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x42f402([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x597127()]=_0x28b0db),_0x5e32aa!=_0x42f402([0x56,0x61,0x6c,0x69,0x64])&&(async function(){if(await _0x2215db,_0x1ee2fb(_0x42f402([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3b4b57=_0x5c1c35[_0x42f402([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4fb9f7=_0x5c1c35[_0x42f402([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x3b4b57[_0x42f402([0x69,0x64])]),_0x19d846=_0x586f41(_0x42f402([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x19d846[_0x42f402([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3b4b57['id'],_0x4fb9f7?_0x4fb9f7['id']:null,!0x0),_0x19d846[_0x42f402([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x42f402([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x19d846[_0x42f402([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x19d846[_0x42f402([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2386d3,void(_0x19d846[_0x42f402([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2386d3);}if(_0x1ee2fb(_0x42f402([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x46a042=_0x586f41(_0x42f402([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x46a042[_0x42f402([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x42f402([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x46a042[_0x42f402([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x46a042[_0x42f402([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2386d3,_0x46a042[_0x42f402([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2386d3;}_0x1fd0e5[_0x42f402([0x6d,0x6f,0x64,0x65,0x6c])][_0x42f402([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2386d3,_0x1fd0e5[_0x42f402([0x6d,0x6f,0x64,0x65,0x6c])][_0x42f402([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2386d3,_0x1fd0e5[_0x42f402([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42f402([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x1b556c);}class RevisionHistoryUtils extends Plugin{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[ViewContainerElement,'c'],[ViewAttributeElement,'a'],[ViewEmptyElement,'e'],[ViewRawElement,'r'],[ViewUIElement,'u']]);['_typeCharToViewClass']=new Map([['c',ViewContainerElement],['a',ViewAttributeElement],['e',ViewEmptyElement],['r',ViewRawElement],['u',ViewUIElement]]);async['loadRevisionData'](_0xf38efd,_0x45fed2){if(_0xf38efd['diffData']||!_0x45fed2)return;const _0x361256=this['editor']['config']['get']('collaboration.channelId'),_0x1a125d=await _0x45fed2['getRevision']({'channelId':_0x361256,'revisionId':_0xf38efd['id']});_0xf38efd['diffData']=_0x1a125d['diffData'];}['getRevisionDocumentData'](_0x20c298){const _0x9c67c3={};for(const _0x4c4c21 in _0x20c298['diffData']){if(_0x20c298['diffData'][_0x4c4c21]['attachChange']&&!_0x20c298['diffData'][_0x4c4c21]['attachChange']['isAttached'])continue;const _0x3740ec=this['_removeRevisionMarkers'](JSON['parse'](_0x20c298['diffData'][_0x4c4c21]['insertions'])),_0x1dd025=this['editor']['editing']['view']['document'],_0x2fb455=new ViewDocumentFragment(_0x1dd025,_0x3740ec['map'](_0x5d95b9=>this['_getViewFromDiffObj'](_0x5d95b9,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x9c67c3[_0x4c4c21]=this['editor']['data']['processor']['toData'](_0x2fb455),this['editor']['data']['processor']['useFillerType']('default');}return _0x9c67c3;}['getRevisionRootsAttributes'](_0x552be0){const _0x49776a={};for(const _0x1c82a1 in _0x552be0['diffData'])_0x552be0['diffData'][_0x1c82a1]['attachChange']&&!_0x552be0['diffData'][_0x1c82a1]['attachChange']['isAttached']||(_0x49776a[_0x1c82a1]=_0x552be0['diffData'][_0x1c82a1]['attributesAfter']||{});return _0x49776a;}['_getTypeCharForViewElement'](_0x38a485){return this['_viewClassToTypeChar']['get'](_0x38a485['constructor']);}['_getViewFromDiffObj'](_0x101b88,_0x426e21){const _0x482baf=this['editor']['editing']['view']['document'];if('string'==typeof _0x101b88)return new ViewText(_0x482baf,_0x101b88);{let _0x21e888,_0x5f1e5c;_0x5f1e5c='u'==_0x101b88['type']||'r'==_0x101b88['type']?[]:_0x101b88['children']['map'](_0x417f39=>this['_getViewFromDiffObj'](_0x417f39,_0x426e21));const _0x16d5fe=this['_typeCharToViewClass']['get'](_0x101b88['type'])||ViewElement,_0x4e8fa1=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x21e888=new _0x16d5fe(_0x482baf,_0x101b88['name'],_0x101b88['attributes'],_0x5f1e5c),'u'==_0x101b88['type']&&_0x101b88['children'][0x0]){const _0xe049af=_0x101b88['children'][0x0];if(_0x21e888['render']=function(_0x2eef7f){const _0x5ba185=_0x2eef7f['createElement']('div');return _0x5ba185['innerHTML']=_0xe049af,_0x5ba185['childNodes'][0x0];},_0x426e21){const _0x2995fa=new ViewDocumentFragment(_0x482baf);_0x2995fa['_appendChild'](_0x21e888);const _0x8fee56=Array['from'](_0x4e8fa1['viewChildrenToDom'](_0x2995fa,{'bind':!0x1})),_0x26e960=_0x4e8fa1['domDocument']['createElement']('div');_0x26e960['append'](..._0x8fee56),_0x21e888=Array['from'](_0x4e8fa1['domChildrenToView'](_0x26e960))[0x0];}}else{if('r'==_0x101b88['type']&&_0x101b88['children'][0x0]){const _0x2747be=_0x101b88['children'][0x0];if(_0x21e888['render']=function(_0x41ccdf){_0x41ccdf['innerHTML']=_0x2747be;},_0x426e21){const _0x3a7468=new ViewDocumentFragment(_0x482baf);_0x3a7468['_appendChild'](_0x21e888);const _0x22fd47=Array['from'](_0x4e8fa1['viewChildrenToDom'](_0x3a7468,{'bind':!0x1})),_0x38a0a3=_0x4e8fa1['domDocument']['createElement']('div');_0x38a0a3['append'](..._0x22fd47);const _0x56e7bd=Array['from'](_0x4e8fa1['domChildrenToView'](_0x38a0a3));_0x56e7bd['length']>0x1?_0x21e888['_appendChild'](_0x56e7bd):_0x21e888=_0x56e7bd[0x0];}}}if(_0x101b88['customProperties']){for(const [_0x297442,_0x446339]of _0x101b88['customProperties'])_0x21e888['_setCustomProperty'](_0x297442,_0x446339);}const _0x4790b8=void 0x0===_0x101b88['fillerOffset']?null:_0x101b88['fillerOffset'];return null!==_0x4790b8&&(_0x21e888['getFillerOffset']=()=>_0x4790b8),_0x21e888;}}['_makeModelFromViewString'](_0x180038){const _0x516652=JSON['parse'](_0x180038),_0x4541fa=this['editor']['editing']['view']['document'],_0x5c8508=new ViewDocumentFragment(_0x4541fa,_0x516652['map'](_0x2b441a=>this['_getViewFromDiffObj'](_0x2b441a,!0x0)));return this['editor']['data']['toModel'](_0x5c8508);}['_removeRevisionMarkers'](_0x4f0c01){return(_0x4f0c01=_0x4f0c01['filter'](_0x147466=>!_0x147466['name']||'revision-start'!==_0x147466['name']&&'revision-end'!==_0x147466['name']))['forEach'](_0x59dd54=>{'string'!=typeof _0x59dd54&&(_0x59dd54['children']=this['_removeRevisionMarkers'](_0x59dd54['children']),_0x59dd54['attributes']=_0x59dd54['attributes']['filter'](_0x36fb79=>!_0x36fb79[0x0]['startsWith']('data-revision-')));}),_0x4f0c01;}}function getTranslation$5(_0x28b515,_0x4b7b20,_0x4f725e){const t=_0x28b515['t'];switch(_0x4b7b20){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x4f725e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4f725e);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class RevisionTracker extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Users,RevisionsRepository,RevisionHistoryUtils,PendingActions];}constructor(_0x3512fb){super(_0x3512fb),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new RevisionDataBuilder(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5adcad=uid();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5adcad},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x310ff6=this['repository']['getRevision'](0x0),_0x4060c4=_0x310ff6&&null===_0x310ff6['creator']?_0x310ff6:null;if(this['_continueCurrentRevision']=!!_0x4060c4&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2b7ded=this['_source']['getCurrentRevisionId'](),_0x558a5b=this['repository']['getRevision'](_0x2b7ded);if(_0x558a5b)this['_startingVersion']=_0x558a5b['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x557bf0=this['_source']['history']['_operations']['find'](_0x4c9e7f=>!_0x4c9e7f['_isInit']),_0x817906=_0x557bf0?_0x557bf0['baseVersion']:this['_source']['history']['version'];_0x310ff6?(_0x310ff6['toVersion']<_0x817906&&_0x310ff6['_update']({'toVersion':_0x817906}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4060c4['id'],this['_startingVersion']=_0x4060c4['fromVersion']):(this['_startingVersion']=_0x310ff6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x817906,this['_continueCurrentRevision']=!0x1);}}else _0x4060c4&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4060c4['toVersion'],this['editor']['model']['document']['history']['version']),_0x4060c4['fromVersion']===_0x4060c4['toVersion']?(0x0!==_0x4060c4['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4060c4['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4060c4['id'],this['_startingVersion']=_0x4060c4['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x5a5bf6=>!_0x5a5bf6),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1431fb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb9a5e0;for(const _0x3c34b0 in _0x1431fb){const _0x207fe5=_0x3c34b0,_0x55aa2e=_0x1431fb[_0x207fe5];if('revisionHistoryLicenseKeyValid'==_0x55aa2e||'revisionHistoryLicenseKeyInvalid'==_0x55aa2e||'revisionHistoryLicenseKeyExpired'==_0x55aa2e||'revisionHistoryLicenseKeyDomainLimit'==_0x55aa2e||'revisionHistoryLicenseKeyNotAllowed'==_0x55aa2e||'revisionHistoryLicenseKeyEvaluationLimit'==_0x55aa2e||'revisionHistoryLicenseKeyTrialLimit'==_0x55aa2e||'revisionHistoryLicenseKeyUsageLimit'==_0x55aa2e){delete _0x1431fb[_0x207fe5],_0xb9a5e0=_0x55aa2e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xb9a5e0&&_0x1431fb['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xb9a5e0&&_0x1431fb['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xb9a5e0&&_0x1431fb['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xb9a5e0&&_0x1431fb['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xb9a5e0&&_0x1431fb['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xb9a5e0&&_0x1431fb['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xb9a5e0&&_0x1431fb['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3c3190=this['repository']['getRevision'](0x0),_0x41d907=await this['getRevisionDocumentData'](_0x3c3190),_0x7425d0=await this['getRevisionRootsAttributes'](_0x3c3190);this['_replaceEditorDataWithRevisionData'](_0x41d907,_0x7425d0);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3561a4){this['_source']=_0x3561a4;}async['update'](){const _0x5a9a98=await this['_source']['getLatestVersion']();if(_0x5a9a98>this['currentRevision']['toVersion']){await this['_loadState']();const _0x335a97=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5a9a98});_0x335a97['authors']=_0x335a97['authorsIds']['map'](_0x3cf88c=>this['editor']['plugins']['get']('Users')['getUser'](_0x3cf88c)),this['currentRevision']['_update'](_0x335a97);}}async['saveRevision'](_0x3d1bdb={},_0x12921b=null){const _0x5a9c52=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x12921b>this['currentRevision']['toVersion']&&(_0x12921b=null),null===_0x12921b&&(_0x12921b=await this['_source']['getLatestVersion']());const _0x24086c=this['_getFromVersion'](_0x12921b),_0x3dd5c8=this['buildRevisionData']({'from':_0x24086c,'to':_0x12921b});if(this['currentRevision']['toVersion']<_0x12921b){const _0x38ddac=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x12921b,'to':_0x12921b});_0x38ddac['authors']=[],_0x38ddac['authorsIds']=[],_0x38ddac['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x38ddac,!0x0),delete _0x38ddac['authors'],_0x5a9c52['push'](_0x38ddac);}_0x3d1bdb['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3d1bdb['name']=_0x3d1bdb['name']||null,_0x3d1bdb['id']=_0x3d1bdb['id']||uid(),_0x3d1bdb={..._0x3d1bdb,..._0x3dd5c8};const _0x159fed=this['addRevisionData'](_0x3d1bdb);_0x5a9c52['push'](_0x3d1bdb);const _0x48d0fa=this['repository']['getIndex'](_0x159fed);if(0x0!==_0x48d0fa){const _0x21117a=this['repository']['getRevision'](_0x48d0fa-0x1);if(_0x21117a['fromVersion']!==_0x12921b){const _0x32ec7d=this['_revisionDataBuilder']['getData'](_0x12921b,_0x21117a['toVersion']),_0x1d8e79={'id':_0x21117a['id'],'diffData':_0x32ec7d['diffData'],'authorsIds':_0x32ec7d['authorsIds'],'authors':_0x32ec7d['authorsIds']['map'](_0x109ef9=>this['editor']['plugins']['get']('Users')['getUser'](_0x109ef9)),'fromVersion':_0x12921b};_0x21117a===this['currentRevision']&&(_0x1d8e79['createdAt']=new Date(_0x3d1bdb['createdAt']['getTime']()+0xa)),_0x21117a['_update'](_0x1d8e79,!0x0),delete _0x1d8e79['authors'],_0x5a9c52['push'](_0x1d8e79);}}if(this['adapter']){for(const _0x4bea90 of _0x5a9c52)this['_bufferUpdate'](_0x4bea90['id'],_0x4bea90,!0x0);this['sendBufferedUpdates']();}return _0x159fed;}['addRevisionData'](_0x214c3e){const _0x388e0f=this['repository']['createRevision'](_0x214c3e);return this['adapter']&&_0x388e0f['on']('_update',(_0x31a3b8,_0x38ebc8,_0x516e36)=>{_0x516e36||(this['_bufferUpdate'](_0x38ebc8['id'],_0x38ebc8,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x388e0f,this['_findInsertionIndex'](_0x388e0f)),_0x388e0f;}async['getRevisionDocumentData'](_0x15fd02){return await this['_utils']['loadRevisionData'](_0x15fd02,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x15fd02);}async['getRevisionRootsAttributes'](_0x3805aa){return await this['_utils']['loadRevisionData'](_0x3805aa,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3805aa);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x261483=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xa05406=0x0;_0xa05406<_0x261483['length'];_0xa05406++){const _0x43273d=_0x261483[_0xa05406];let _0x19ea77=!0x1;for(const _0x13579f of Object['keys'](_0x43273d))void 0x0===_0x43273d[_0x13579f]?delete _0x43273d[_0x13579f]:'id'!==_0x13579f&&(_0x19ea77=!0x0);_0x19ea77||(_0x261483[_0xa05406]=null);}if(_0x261483=_0x261483['filter'](_0x52476b=>null!==_0x52476b),!_0x261483['length'])return;for(let _0x4e7bce=0x0;_0x4e7bce<_0x261483['length'];_0x4e7bce++){const _0x201b96=_0x261483[_0x4e7bce];void 0x0!==_0x201b96['fromVersion']&&void 0x0===_0x201b96['toVersion']&&(_0x201b96['toVersion']=this['repository']['getRevision'](_0x201b96['id'])['toVersion']),void 0x0!==_0x201b96['toVersion']&&void 0x0===_0x201b96['fromVersion']&&(_0x201b96['fromVersion']=this['repository']['getRevision'](_0x201b96['id'])['fromVersion']);}const _0x1da7eb=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x261483,_0x1da7eb)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xaeef55=>{if(_0xaeef55){for(const _0x19996b of _0xaeef55)this['setRevisionData']({'id':_0x19996b['id'],'createdAt':_0x19996b['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x427c8a=null,from:_0x41c39f=null,to:_0x21b37b=null}){_0x41c39f=null!==_0x41c39f?_0x41c39f:_0x427c8a['fromVersion'],_0x21b37b=null!==_0x21b37b?_0x21b37b:_0x427c8a['toVersion'];const _0x4f1619=this['_revisionDataBuilder']['getData'](_0x41c39f,_0x21b37b),_0x40e6fc={'diffData':_0x4f1619['diffData'],'authorsIds':_0x4f1619['authorsIds'],'fromVersion':_0x41c39f,'toVersion':_0x21b37b};if(!_0x427c8a||_0x21b37b!==_0x427c8a['toVersion']){const _0x175431=_0x21b37b-0x1,_0x4f5cd6=this['_source']['history']['getOperation'](_0x175431);_0x40e6fc['createdAt']=_0x4f5cd6&&_0x4f5cd6['createdAt']||new Date();}if(this['_loadedStateData']&&_0x41c39f===this['_loadedStateData']['fromVersion']){for(const _0x5eb0fb of this['_loadedStateData']['authors'])_0x40e6fc['authorsIds']['includes'](_0x5eb0fb['id'])||_0x40e6fc['authorsIds']['push'](_0x5eb0fb['id']);}return _0x40e6fc;}['_bufferUpdate'](_0x579191,_0xf76df9,_0x1d1989){if(this['_bufferedUpdates']['has'](_0x579191)){const _0x5ecf18=this['_bufferedUpdates']['get'](_0x579191);_0xf76df9=_0x1d1989?{..._0x5ecf18,..._0xf76df9}:{..._0xf76df9,..._0x5ecf18};}this['_bufferedUpdates']['set'](_0x579191,_0xf76df9);}['setRevisionData'](_0x455ef3){const _0x2132c4=this['repository']['getRevision'](_0x455ef3['id']);if(_0x455ef3['createdAt']&&(_0x455ef3['createdAt']=new Date(_0x455ef3['createdAt'])),_0x455ef3['authorsIds']){const _0x33fb78=this['editor']['plugins']['get']('Users');_0x455ef3['authors']=_0x455ef3['authorsIds']['map'](_0x4ae9dc=>_0x33fb78['getUser'](_0x4ae9dc));}_0x2132c4['_update'](_0x455ef3,!0x0);}['_createInitialRevision'](_0x8f9a56){const _0x112047=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x112047)this['_initialRevisionId']=_0x112047['id'];else{const _0x403516=!this['editor']['model']['document']['roots']['find'](_0x1d6b00=>this['editor']['model']['hasContent'](_0x1d6b00)),_0x2f5a0e=this['editor']['plugins']['get']('Users')['me']['id'],_0x12b530=getTranslation$5(this['editor']['locale'],_0x403516?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x8f9a56,'to':_0x8f9a56,'id':this['_initialRevisionId'],'name':_0x12b530,'creatorId':_0x2f5a0e});}}['_createCurrentRevision'](_0x479082){const _0x53c497=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x53c497),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x479082,'to':_0x479082,'id':_0x53c497,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x3bce90,_0x58df00){let _0x517053=this['editor']['config']['get']('initialData'),_0x59a67a=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x517053){_0x517053={};for(const _0x3dbf8e of this['editor']['model']['document']['getRootNames']())_0x517053[_0x3dbf8e]='';}if('string'==typeof _0x517053&&(_0x517053={'main':_0x517053}),void 0x0===_0x59a67a){_0x59a67a={};for(const _0x1b3cde of this['editor']['model']['document']['getRootNames']())_0x59a67a[_0x1b3cde]={};}let _0xe0f100=!0x1;const _0x69310c=Object['keys'](_0x517053),_0x59790b=Object['keys'](_0x3bce90);for(const _0x2ec962 of _0x69310c){if(_0x517053[_0x2ec962]!==_0x3bce90[_0x2ec962]&&''!==_0x517053[_0x2ec962]['trim']()){_0xe0f100=!0x0;break;}if(!isEqual(_0x59a67a[_0x2ec962],_0x58df00[_0x2ec962])&&Object['keys'](_0x59a67a[_0x2ec962])['length']>0x0){_0xe0f100=!0x0;break;}}_0xe0f100||(_0xe0f100=_0x59790b['some'](_0x4fc6e8=>!this['editor']['model']['document']['getRoot'](_0x4fc6e8))),_0xe0f100&&logWarning('editor-initial-data-replaced-with-revision-data',{'editorData':_0x517053,'editorRootsAttributes':_0x59a67a,'revisionData':_0x3bce90,'revisionRootsAttributes':_0x58df00}),this['editor']['config']['set']('initialData',_0x3bce90),this['editor']['config']['set']('rootsAttributes',_0x58df00);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x319e20=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x319e20['add'](getTranslation$5(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x979d9e){const _0xd60c07=this['repository']['getRevisions']();_0xd60c07['reverse']();let _0x5700d9=0x0;for(;_0x5700d9<_0xd60c07['length'];){const _0x1aff72=_0xd60c07[_0x5700d9];if(_0x1aff72===this['currentRevision']){_0x5700d9++;continue;}if(_0x1aff72['id']===this['_initialRevisionId'])break;const _0x468998=_0x979d9e['toVersion']-_0x1aff72['toVersion']||_0x979d9e['fromVersion']-_0x1aff72['fromVersion'];if(_0x468998>0x0)break;if(_0x468998<0x0)_0x5700d9++;else{if(!_0x979d9e['creator']&&_0x1aff72['creator'])break;if(_0x1aff72['creator']||!_0x979d9e['creator']){if(_0x979d9e['createdAt']>_0x1aff72['createdAt'])break;_0x5700d9++;}else _0x5700d9++;}}return _0x5700d9;}['_getFromVersion'](_0x44ae97){const _0x108819=this['repository']['getRevisions']();_0x108819['reverse'](),_0x108819['shift']();const _0x41e5d9=_0x108819['find'](_0x1a8f6e=>_0x1a8f6e['toVersion']<=_0x44ae97)['toVersion'];return _0x41e5d9<this['_startingVersion']?this['_startingVersion']:_0x41e5d9;}['_makeRevision']({name:_0x22b2bb,from:_0x4aa4df,to:_0x45b88a,creatorId:_0x398ae2,id:_0x320b75}){const _0x36756f=this['buildRevisionData']({'from':_0x4aa4df,'to':_0x45b88a});_0x36756f['name']=_0x22b2bb,_0x36756f['creatorId']=_0x398ae2,_0x36756f['id']=_0x320b75;const _0x332803=this['addRevisionData'](_0x36756f);return this['adapter']&&this['_bufferUpdate'](_0x36756f['id'],_0x36756f,!0x0),_0x332803;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class RevisionDataBuilder{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x6e2654){this['editor']=_0x6e2654,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x472b49){this['source']=_0x472b49;const _0x5e848b=new Map(),_0x2fdf8b=new Map(),_0x22e1a6=this['editor']['model']['document']['roots']['map'](_0x30031b=>_0x30031b['rootName']);for(const _0xb7453b of _0x22e1a6){const _0x3a06f7=this['editor']['model']['document']['getRoot'](_0xb7453b),_0x39facc=_cloneRoot(_0x3a06f7);_0x5e848b['set'](_0xb7453b,_0x39facc),_0x2fdf8b['set'](_0xb7453b,Object['fromEntries'](_0x3a06f7['getAttributes']()));}const _0x5f1793=Array['from'](this['editor']['model']['markers'])['map'](_0x37c3a6=>[_0x37c3a6['name'],_0x37c3a6['getRange']()]),_0x300f07=this['source']['version'];this['_saveMetaData'](_0x300f07,_0x5e848b,_0x5f1793,_0x2fdf8b),this['_startingRevisionId']=this['_revisionId'];const _0x40d32b=new Map(),_0x8cdd14=new Map();for(const _0x59bd6f of _0x22e1a6){const _0x426545=_emptyRoot(_0x59bd6f);_0x40d32b['set'](_0x59bd6f,_0x426545),_0x8cdd14['set'](_0x59bd6f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x40d32b,[],_0x8cdd14);}['getData'](_0x3b96ef,_0x24fe3f){if(this['_lastFrom']===_0x3b96ef&&this['_lastTo']<=_0x24fe3f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x24fe3f,!0x0);else{if(!this['_savedMetaData']['has'](_0x3b96ef)){const _0xf789af=this['_getPreviousFrom'](_0x3b96ef);this['_calculateMetaData'](_0xf789af,_0x3b96ef,!0x1);}this['_calculateMetaData'](_0x3b96ef,_0x24fe3f,!0x0);}return this['_lastFrom']=_0x3b96ef,this['_lastTo']=_0x24fe3f,this['_getState']();}['loadState'](_0x56430c){if(!this['_savedMetaData']['has'](_0x56430c['fromVersion'])){const _0x16c9a9=this['_getPreviousFrom'](_0x56430c['fromVersion']);this['_calculateMetaData'](_0x16c9a9,_0x56430c['fromVersion'],!0x1);}this['_calculateMetaData'](_0x56430c['fromVersion'],_0x56430c['toVersion'],!0x1);const _0x5bd5f6=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x56430c['fromVersion'],this['_lastTo']=_0x56430c['toVersion'];for(const _0xf2b914 in _0x56430c['diffData']){const _0x2ede26=_0x56430c['diffData'][_0xf2b914]['attachChange'],_0x3f33fa=cloneDeep(_0x56430c['diffData'][_0xf2b914]['attributesBefore'])||{},_0x5d552b=_0x5bd5f6['_makeModelFromViewString'](_0x56430c['diffData'][_0xf2b914]['deletions']);_0x5d552b['rootName']=_0xf2b914,_0x5d552b['_isAttached']=!_0x2ede26||!_0x2ede26['isAttached'],_0x5d552b['isAttached']=()=>_0x5d552b['_isAttached'],this['_baseRoots']['set'](_0xf2b914,_0x5d552b),this['_baseRootsAttributes']['set'](_0xf2b914,_0x3f33fa),_0x2ede26&&this['_touchedRoots']['set'](_0xf2b914,_0x2ede26);const _0x114460=this['_makeIdsRoot'](_0x5d552b);this['_baseIdsRoots']['set'](_0xf2b914,_0x114460);for(const [_0x2d2b49,_0x1e47f4]of _0x5d552b['markers']){if(!_0x2d2b49['startsWith']('revision:'))continue;const _0x2ced15=_0x2d2b49['split'](':')[0x2];for(const _0x5c765b of _0x1e47f4['getWalker']({'singleCharacters':!0x0})){const _0x571ea8=this['_getVidAttributeName'](_0x5c765b),_0x11f5c0='elementEnd'==_0x5c765b['type']?_0x5c765b['previousPosition']['path']['slice'](0x0,-0x1):_0x5c765b['previousPosition']['path'],_0x3d7395=_0x114460['getNodeByPath'](_0x11f5c0)['getAttribute'](_0x571ea8);this['_touched']['set'](_0x3d7395,{'userId':_0x2ced15});}_0x5d552b['markers']['delete'](_0x2d2b49);}}this['_startingRevisionId']=this['_revisionId'];const _0x399d4a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x22fe87=>!this['_touched']['has'](_0x22fe87));let _0x9215f8=0x0;const _0x453d7b=new Map();for(const _0x64bc50 in _0x56430c['diffData']){const _0x237dc4=_0x56430c['diffData'][_0x64bc50]['attachChange'],_0x3f3cfa=cloneDeep(_0x56430c['diffData'][_0x64bc50]['attributesAfter'])||{},_0x17108f=_0x5bd5f6['_makeModelFromViewString'](_0x56430c['diffData'][_0x64bc50]['insertions']);_0x17108f['rootName']=_0x64bc50,_0x17108f['_isAttached']=!_0x237dc4||_0x237dc4['isAttached'],_0x17108f['isAttached']=()=>_0x17108f['_isAttached'],this['_diffRoots']['set'](_0x64bc50,_0x17108f),this['_diffRootsAttributes']['set'](_0x64bc50,_0x3f3cfa);const _0x4cbf5c=this['_makeIdsRoot'](_0x17108f,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x64bc50,_0x4cbf5c),_0x453d7b['set'](_0x64bc50,_0x17108f['isAttached']()?_0x3f3cfa:{});for(const [_0x3ed6b1,_0x12171b]of _0x17108f['markers']){if(!_0x3ed6b1['startsWith']('revision:'))continue;const _0x1d0fe3=_0x3ed6b1['split'](':')[0x2];for(const _0x1e63fe of _0x12171b['getWalker']({'singleCharacters':!0x0})){const _0x593e66=this['_getVidAttributeName'](_0x1e63fe),_0xe5a46d=this['_revisionId']++,_0x5eb9ac='elementEnd'==_0x1e63fe['type']?_0x1e63fe['previousPosition']['path']['slice'](0x0,-0x1):_0x1e63fe['previousPosition']['path'];_0x4cbf5c['getNodeByPath'](_0x5eb9ac)['_setAttribute'](_0x593e66,_0xe5a46d),this['_touched']['set'](_0xe5a46d,{'userId':_0x1d0fe3});}_0x17108f['markers']['delete'](_0x3ed6b1);}for(const _0x2e5b5e of this['editor']['model']['createRangeIn'](_0x17108f)['getWalker']({'singleCharacters':!0x0})){const _0x292d9f=this['_getVidAttributeName'](_0x2e5b5e),_0x468467='elementEnd'==_0x2e5b5e['type']?_0x2e5b5e['previousPosition']['path']['slice'](0x0,-0x1):_0x2e5b5e['previousPosition']['path'],_0x3b29a2=_0x4cbf5c['getNodeByPath'](_0x468467);_0x3b29a2['getAttribute'](_0x292d9f)>0x0||_0x3b29a2['_setAttribute'](_0x292d9f,_0x399d4a[_0x9215f8++]);}for(const [_0x34c6ae,_0x3c8896]of _0x17108f['markers'])_0x34c6ae['startsWith']('revision:')||this['_markers']['set'](_0x34c6ae,_0x3c8896);}const {roots:_0x2e9eba}=this['_savedMetaData']['get'](_0x56430c['fromVersion']),{roots:_0x3c30a2}=this['_savedMetaData']['get'](_0x56430c['toVersion']),_0x1b3946=_cloneRoot(_0x2e9eba['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x1b3946),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1b3946,Number['NEGATIVE_INFINITY']));const _0xff7670=_cloneRoot(_0x3c30a2['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0xff7670),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xff7670));const _0x516dd7=Array['from'](this['_diffRoots'])['map'](([_0x4b36f5,_0x2f89c7])=>[_0x4b36f5,_cloneRoot(_0x2f89c7)]);this['_saveMetaData'](this['_lastTo'],_0x516dd7,this['_markers'],_0x453d7b);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x3e0bfc,_0x34d720,_0x787fa3,_0x28532b){const _0xacc39d=new Map(_0x34d720),_0x3dfc90=new Map(cloneDeep(_0x28532b)),_0x4ad6ec=new Map();for(const [_0x49943d,_0x262fce]of _0x787fa3)_0x4ad6ec['set'](_0x49943d,{'start':_0x262fce['start']['clone'](),'end':_0x262fce['end']['clone'](),'rootName':_0x262fce['root']['rootName']});this['_savedMetaData']['set'](_0x3e0bfc,{'roots':_0xacc39d,'markers':_0x4ad6ec,'rootsAttributes':_0x3dfc90});}['_removeMetaData'](_0x2984c1){this['_savedMetaData']['delete'](_0x2984c1);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x1fe955,_0x3c135e=null){let _0x315286=null;_0x1fe955['is']('documentFragment')||(_0x315286=new ModelElement(_0x1fe955['name'],{'vid_start':null===_0x3c135e?this['_revisionId']++:_0x3c135e++}));const _0x4c82cb=[];for(const _0x2acdfb of _0x1fe955['getChildren']())if(_0x2acdfb['is']('element')){_0x4c82cb['push'](this['_makeIdsRoot'](_0x2acdfb,_0x3c135e));const _0x3366fe=_0x4c82cb[_0x4c82cb['length']-0x1];null!==_0x3c135e&&(_0x3c135e=_0x3366fe['is']('element','$text')?_0x3366fe['getAttribute']('vid')+0x1:_0x3366fe['getAttribute']('vid_end')+0x1);}else{for(let _0x1017c6=0x0;_0x1017c6<_0x2acdfb['offsetSize'];_0x1017c6++)_0x4c82cb['push'](new ModelElement('$text',{'vid':null===_0x3c135e?this['_revisionId']++:_0x3c135e++}));}if(_0x1fe955['is']('documentFragment')){const _0x340a92=_emptyRoot(_0x1fe955['rootName']);return _0x340a92['_insertChild'](0x0,_0x4c82cb),_0x340a92;}return _0x315286['_setAttribute']('vid_end',null===_0x3c135e?this['_revisionId']++:_0x3c135e++),_0x315286['_insertChild'](0x0,_0x4c82cb),_0x315286;}['_calculateMetaData'](_0x7d7cd7,_0x31170e,_0x3d4536){this['_reset']();const {roots:_0x31ef75,markers:_0x2782c3,rootsAttributes:_0x3af725}=this['_savedMetaData']['get'](_0x7d7cd7);this['_baseRoots']=new Map(_0x31ef75),this['_baseRootsAttributes']=new Map(cloneDeep(_0x3af725));for(const [_0x48dc55,_0x3ec29b]of this['_baseRoots'])if('$graveyard'!==_0x48dc55&&(this['_diffRoots']['set'](_0x48dc55,_cloneRoot(_0x3ec29b)),this['_diffRootsAttributes']=new Map(cloneDeep(_0x3af725)),_0x3d4536)){const _0x327cf2=this['_revisionId'];this['_idsRoots']['set'](_0x48dc55,this['_makeIdsRoot'](_0x3ec29b)),this['_baseIdsRoots']['set'](_0x48dc55,this['_makeIdsRoot'](_0x3ec29b,_0x327cf2));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',_cloneRoot(this['_baseRoots']['get']('$graveyard'))),_0x3d4536&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xb91920,_0x2d4b31]of _0x2782c3){const _0x2e54d5=this['_baseRoots']['get'](_0x2d4b31['rootName']),_0x5cab78=this['_diffRoots']['get'](_0x2d4b31['rootName']),_0x2db903=new ModelRange(this['_fixPosition'](_0x2d4b31['start'],_0x2e54d5),this['_fixPosition'](_0x2d4b31['end'],_0x2e54d5)),_0x94bcc9=this['_fixRange'](_0x2db903,_0x5cab78);_0x2e54d5['markers']['set'](_0xb91920,_0x2db903),this['_markers']['set'](_0xb91920,_0x94bcc9);}this['_applyOperations'](_0x7d7cd7,_0x31170e,_0x3d4536);}['_applyOperations'](_0x6f1bfb,_0x3e1f1d,_0x19ea87){for(const _0x371ddd of this['source']['getOperations'](_0x6f1bfb,_0x3e1f1d))this['_handleOperation'](_0x371ddd,_0x19ea87);for(const _0x1aca65 of this['_diffRoots']['values']())_0x1aca65['markers']['clear']();for(const [_0x2c01cc,_0x4dcff9]of this['_markers']){this['_diffRoots']['get'](_0x4dcff9['root']['rootName'])['markers']['set'](_0x2c01cc,_0x4dcff9['clone']());}const _0x3d0152=new Map(),_0xf3c341=new Map();for(const [_0x25ace9,_0xd15f68]of this['_diffRoots'])_0x3d0152['set'](_0x25ace9,_cloneRoot(_0xd15f68)),_0xf3c341['set'](_0x25ace9,this['_diffRootsAttributes']['get'](_0x25ace9));this['_saveMetaData'](_0x3e1f1d,_0x3d0152,this['_markers'],_0xf3c341);}['_getPreviousFrom'](_0x516aba){const _0x2fdf9e=Array['from'](this['_savedMetaData']['keys']());_0x2fdf9e['sort']((_0x5ba03a,_0xc3c1f3)=>_0x5ba03a-_0xc3c1f3),_0x2fdf9e['reverse']();for(const _0x51ab1e of _0x2fdf9e)if(_0x51ab1e<_0x516aba)return _0x51ab1e;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x561e02,_0x993dcf){const _0x2de1f3=Array['from'](_0x993dcf['markers'])['map'](([_0x1305c0,_0x74e849])=>[_0x1305c0,this['_fixRange'](_0x74e849,_0x561e02)]);_0x561e02['markers']=new Map(_0x2de1f3);}['_transformMarkers'](_0x32c2ec){for(const _0x4d0f02 of this['_markers']['values']()){const _0x499e62=_0x4d0f02['getTransformedByOperation'](_0x32c2ec),_0x1121b0=ModelRange['_createFromRanges'](_0x499e62);_0x4d0f02['start']=_0x1121b0['start'],_0x4d0f02['end']=_0x1121b0['end'];}}['_handleOperation'](_0xc10cb0,_0x5bfafc){if('addRoot'!=_0xc10cb0['type']&&'detachRoot'!=_0xc10cb0['type']){if('insert'==_0xc10cb0['type']){const _0xdc2ae9=_0xc10cb0['position']['root']['rootName'];this['_diffRoots']['has'](_0xdc2ae9)||(this['_diffRoots']['set'](_0xdc2ae9,_emptyRoot(_0xdc2ae9,!0x0)),this['_diffRootsAttributes']['set'](_0xdc2ae9,{}),_0x5bfafc&&this['_idsRoots']['set'](_0xdc2ae9,_emptyRoot(_0xdc2ae9,!0x0)));}else{if('addRootAttribute'==_0xc10cb0['type']||'removeRootAttribute'==_0xc10cb0['type']||'changeRootAttribute'==_0xc10cb0['type'])return void this['_handleRootAttributeOperation'](_0xc10cb0);'marker'==_0xc10cb0['type']&&this['_handleMarkerOperation'](_0xc10cb0);}if('marker'!==_0xc10cb0['type']){const _0x524c14=this['_cloneOperation'](_0xc10cb0,this['_diffRoots']);_0x524c14['_execute'](),this['_transformMarkers'](_0x524c14);}if(_0x5bfafc)switch(_0xc10cb0['type']){case'insert':this['_handleInsertOperation'](_0xc10cb0);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xc10cb0);break;case'merge':this['_handleMergeOperation'](_0xc10cb0);break;case'split':this['_handleSplitOperation'](_0xc10cb0);}}else this['_handleRootOperation'](_0xc10cb0,_0x5bfafc);}['_cloneOperation'](_0xe5a150,_0x9785db){const _0x4d972d=_0xe5a150['clone']();return _0x4d972d['_authorId']=_0xe5a150['_authorId'],this['_fixOperation'](_0x4d972d,_0x9785db),_0x4d972d;}['_getBaseVids'](_0x2a99e5){return _0x2a99e5['map'](_0x4b61da=>{const _0x12f90b=this['_getVidAttributeName'](_0x4b61da);return Number(_0x4b61da['item']['getAttribute'](_0x12f90b));});}['_generateTape'](_0x414388,_0x172c01){if(_0x414388['is']('element','$text'))_0x172c01['push']({'item':_0x414388,'type':'text'});else{_0x414388['is']('element')&&_0x172c01['push']({'item':_0x414388,'type':'elementStart'});for(const _0x451fd3 of _0x414388['getChildren']())this['_generateTape'](_0x451fd3,_0x172c01);_0x414388['is']('element')&&_0x172c01['push']({'item':_0x414388,'type':'elementEnd'});}return _0x172c01;}['_getState'](){const _0x21aae7=new Map(this['_touched']),_0x1ff670=new Map(_0x21aae7),_0x15bad0=new Map(),_0x46d739={'insertions':{},'deletions':{}},_0x3ccc91={'insertions':{},'deletions':{}},_0xf2d549=new Map(),_0x590c67=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x590c67['delete']('$graveyard');for(const _0x380f5d of _0x590c67){const _0x7cb74b=this['_diffRoots']['get'](_0x380f5d)||_emptyRoot(_0x380f5d,!0x1),_0x1d31e1=this['_baseRoots']['get'](_0x380f5d)||_emptyRoot(_0x380f5d,!0x1);_0x7cb74b['isAttached']()||_0x1d31e1['isAttached']()?(_0x46d739['insertions'][_0x380f5d]=_cloneRoot(_0x7cb74b),_0x46d739['deletions'][_0x380f5d]=_cloneRoot(_0x1d31e1),this['_copyMarkers'](_0x46d739['deletions'][_0x380f5d],_0x1d31e1),this['_copyMarkers'](_0x46d739['insertions'][_0x380f5d],_0x7cb74b),_0x3ccc91['insertions'][_0x380f5d]=this['_generateTape'](this['_idsRoots']['get'](_0x380f5d),[]),_0x3ccc91['deletions'][_0x380f5d]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x380f5d)||_emptyRoot(_0x380f5d,!0x1),[])):_0x590c67['delete'](_0x380f5d);}for(const _0x2c6cd7 of _0x590c67){const _0x86940=_0x3ccc91['insertions'][_0x2c6cd7];for(const _0x390252 of _0x86940){const _0x32a4f6=this['_getVidAttributeName'](_0x390252),_0xc293a5=_0x390252['item']['getAttribute'](_0x32a4f6);_0x1ff670['delete'](_0xc293a5),_0xc293a5>=this['_startingRevisionId']&&_0x15bad0['set'](_0xc293a5,_0x21aae7['get'](_0xc293a5));}}for(const _0x4bea92 of _0x590c67){const _0x1b1562=_0x3ccc91['insertions'][_0x4bea92],_0x23194d=this['_getBaseVids'](_0x3ccc91['deletions'][_0x4bea92]);let _0x41f2ed=0x0;for(const _0x1f84d of _0x1b1562){const _0x356a8b=this['_getVidAttributeName'](_0x1f84d),_0x422002=_0x1f84d['item']['getAttribute'](_0x356a8b);if(!_0x15bad0['has'](_0x422002)&&!_0xf2d549['has'](_0x422002)){if(_0x1ff670['has'](_0x422002))_0x41f2ed++;else{if(_0x422002!=_0x23194d[_0x41f2ed]){const _0x34b2fc=_0x21aae7['get'](_0x422002)||_0x21aae7['get'](_0x23194d[_0x41f2ed]);for(;_0x422002!=_0x23194d[_0x41f2ed];)_0x1ff670['has'](_0x23194d[_0x41f2ed])||(_0xf2d549['set'](_0x23194d[_0x41f2ed],_0x34b2fc),_0x21aae7['set'](_0x23194d[_0x41f2ed],_0x34b2fc)),_0x41f2ed++;}_0x41f2ed++;}}}}for(const _0x180d72 of _0x590c67){const _0xe734c0=_0x3ccc91['insertions'][_0x180d72];for(const _0x2ce8ae of _0xe734c0){const _0x402c04=this['_getVidAttributeName'](_0x2ce8ae),_0x27a2e3=_0x2ce8ae['item']['getAttribute'](_0x402c04);if(_0xf2d549['has'](_0x27a2e3)){const _0x2bf014=_0xf2d549['get'](_0x27a2e3);_0x1ff670['has'](_0x27a2e3)||_0x1ff670['set'](_0x27a2e3,{..._0x2bf014}),_0x15bad0['set'](_0x27a2e3,{..._0x2bf014});}}}for(const _0x650040 of _0x1ff670['keys']())_0x650040>=this['_startingRevisionId']&&_0x1ff670['delete'](_0x650040);const _0x14f889=new Map();for(const _0x49f7f1 of _0x590c67){let _0xe8c791=_0x3ccc91['insertions'][_0x49f7f1];for(const _0x38bc18 of _0xe8c791)if(_0x38bc18['item']['is']('element','tableCell')){const _0x4d6174=this['_getVidAttributeName'](_0x38bc18),_0x40ebf3=_0x38bc18['item']['getAttribute'](_0x4d6174);if(_0x15bad0['has'](_0x40ebf3)){const _0x11a535=_0x38bc18['item']['parent']['parent']['getAttribute']('vid_start'),_0x45f1de=_0x14f889['get'](_0x11a535)||new Set();_0x45f1de['add'](_0x15bad0['get'](_0x40ebf3)['userId']),_0x14f889['set'](_0x11a535,_0x45f1de);}}_0xe8c791=_0x3ccc91['deletions'][_0x49f7f1];for(const _0x5ea42a of _0xe8c791)if(_0x5ea42a['item']['is']('element','tableCell')){const _0xda734e=this['_getVidAttributeName'](_0x5ea42a),_0x3850a4=_0x5ea42a['item']['getAttribute'](_0xda734e);if(_0x1ff670['has'](_0x3850a4)){const _0x2495b9=_0x5ea42a['item']['parent']['parent']['getAttribute']('vid_start'),_0x59efca=_0x14f889['get'](_0x2495b9)||new Set();_0x59efca['add'](_0x1ff670['get'](_0x3850a4)['userId']),_0x14f889['set'](_0x2495b9,_0x59efca);}}for(const _0x4e5846 of _0x14f889['keys']())(_0x15bad0['has'](_0x4e5846)||_0x1ff670['has'](_0x4e5846))&&_0x14f889['delete'](_0x4e5846);}for(const _0x5e6f11 of _0x590c67){const _0x1e8715=_0x3ccc91['insertions'][_0x5e6f11];let _0x38349d=null,_0x666faf=null;for(const _0x258c9e of _0x1e8715){const _0x2e6905=this['_getVidAttributeName'](_0x258c9e),_0x318b7f=_0x258c9e['item']['getAttribute'](_0x2e6905),_0x3ff336=_0x14f889['get'](_0x318b7f);_0x3ff336&&'elementStart'==_0x258c9e['type']&&(_0x38349d=Array['from'](_0x3ff336)[0x0],_0x666faf=_0x258c9e['item']['getAttribute']('vid_end')),_0x38349d&&(_0x1ff670['set'](_0x318b7f,{'userId':_0x38349d}),_0x15bad0['set'](_0x318b7f,{'userId':_0x38349d})),_0x318b7f==_0x666faf&&(_0x38349d=null,_0x666faf=null);}}const _0x15103c={},_0x38dfcc=new Set();for(const _0x1f4610 of _0x590c67){const _0x1dc409=_0x46d739['deletions'][_0x1f4610],_0x521150=_0x46d739['insertions'][_0x1f4610];for(const {userId:_0x58a20e}of this['_touchedMarkers']['values']())null!==_0x58a20e&&_0x38dfcc['add'](_0x58a20e);for(const {userId:_0x4e25ab}of this['_touchedRoots']['values']())null!==_0x4e25ab&&_0x38dfcc['add'](_0x4e25ab);this['_markChanges'](_0x521150,_0x3ccc91['insertions'][_0x1f4610],_0x15bad0,'insertion',_0x38dfcc),this['_markChanges'](_0x1dc409,_0x3ccc91['deletions'][_0x1f4610],_0x1ff670,'deletion',_0x38dfcc),_0x15103c[_0x1f4610]={'insertions':this['_prepareViewToSave'](_0x521150),'deletions':this['_prepareViewToSave'](_0x1dc409),'attachChange':this['_touchedRoots']['get'](_0x1f4610)||null,'attributesBefore':cloneDeep(this['_baseRootsAttributes']['get'](_0x1f4610))||{},'attributesAfter':cloneDeep(this['_diffRootsAttributes']['get'](_0x1f4610))};}return{'diffData':_0x15103c,'authorsIds':Array['from'](_0x38dfcc)};}['_processRootBeforeSave'](_0x55a6b2){for(const [,_0x12007f]of _0x55a6b2['markers']){const _0x168cec=_0x12007f['start']['getAncestors']()['filter'](_0x545ea6=>'tableCell'==_0x545ea6['name']);for(const _0xc938f3 of _0x168cec)0x1==_0xc938f3['childCount']&&_0xc938f3['getChild'](0x0)['is']('element','paragraph')&&_0xc938f3['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1daff6){this['_processRootBeforeSave'](_0x1daff6);const _0x41271d=this['editor']['data']['toView'](_0x1daff6,{}),_0x5ad46d=Array['from'](_0x41271d['getChildren']())['map'](_0x27d872=>this['_getViewJson'](_0x27d872));return JSON['stringify'](_0x5ad46d);}['_getViewJson'](_0x8fc056){if(_0x8fc056['is']('$text'))return _0x8fc056['data'];{const _0x340d0a=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5dcd88=_0x8fc056,_0x3a6b38=this['editor']['data']['htmlProcessor']['domConverter'],_0x530ca2={'type':_0x340d0a['_getTypeCharForViewElement'](_0x5dcd88),'name':_0x5dcd88['name'],'attributes':Array['from'](_0x5dcd88['getAttributes']()),'children':Array['from'](_0x5dcd88['getChildren']())['map'](_0x5827c8=>this['_getViewJson'](_0x5827c8))};if(_0x8fc056['is']('uiElement')&&'$comment'!=_0x8fc056['name']){const _0x267ea8=_0x8fc056['render'](_0x3a6b38['domDocument'],_0x3a6b38);_0x530ca2['children']['push'](_0x267ea8['outerHTML']);}else{if(_0x8fc056['is']('rawElement')){const _0x198cea=_0x3a6b38['domDocument']['createElement'](_0x5dcd88['name']);_0x8fc056['render'](_0x198cea,_0x3a6b38),_0x530ca2['children']['push'](_0x198cea['innerHTML']);}}const _0x5cb3df=Array['from'](_0x5dcd88['getCustomProperties']());_0x5cb3df['length']>0x0&&(_0x530ca2['customProperties']=_0x5cb3df);const _0x5d6c9f=_0x5dcd88['getFillerOffset']();return null!==_0x5d6c9f&&(_0x530ca2['fillerOffset']=_0x5d6c9f),_0x530ca2;}}['_markChanges'](_0x47c8cb,_0x1ec805,_0x35736e,_0x58014d,_0x4670fa){let _0xa809e9=null,_0x2de02f=null,_0x116df5=0x0;const _0x12837f=this['editor']['model'];for(let _0x12b758=0x0;_0x12b758<_0x1ec805['length'];_0x12b758++){const _0x2d4c2e=this['_getVidAttributeName'](_0x1ec805[_0x12b758]),_0x524eea=_0x1ec805[_0x12b758]['item']['getAttribute'](_0x2d4c2e),_0x22a1c0=_0x35736e['get'](_0x524eea),_0x2c489b=_0x12b758==_0x1ec805['length']-0x1;(!_0xa809e9&&_0x22a1c0&&(_0xa809e9=_0x22a1c0,_0x2de02f=_0x1ec805[_0x12b758]),_0xa809e9&&(!_0x22a1c0||_0x22a1c0['userId']!=_0xa809e9['userId']))&&(_0x43f8dd(_0x22a1c0,_getPosBefore(_0x2de02f,_0x47c8cb,_0x12837f),_getPosBefore(_0x1ec805[_0x12b758],_0x47c8cb,_0x12837f)),_0xa809e9=_0x22a1c0||null,_0x2de02f=_0x22a1c0?_0x1ec805[_0x12b758]:null),_0xa809e9&&_0x2c489b&&_0x43f8dd(_0x22a1c0,_getPosBefore(_0x2de02f,_0x47c8cb,_0x12837f),_getPosAfter(_0x1ec805[_0x12b758],_0x47c8cb,_0x12837f));}function _0x43f8dd(_0x463c8b,_0x187ffe,_0x16fbc1){const _0x1c49c6=_0xa809e9['userId'],_0x2a0ef4='revision:'+_0x58014d+':'+_0x1c49c6+':'+_0x116df5++,_0x467ec0=_0x12837f['createRange'](_0x187ffe,_0x16fbc1);_0x47c8cb['markers']['set'](_0x2a0ef4,_0x467ec0),null!==_0x1c49c6&&_0x4670fa['add'](_0x1c49c6);}}['_getVidAttributeName'](_0x343c32){switch(_0x343c32['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x40bd1f,_0x565402){_0x40bd1f['baseVersion']=null;for(const _0x543f44 in _0x40bd1f){const _0x1c4808=_0x40bd1f[_0x543f44];if(_0x1c4808 instanceof ModelPosition){const _0x29de24=_0x565402['get'](_0x1c4808['root']['rootName']);_0x40bd1f[_0x543f44]=this['_fixPosition'](_0x1c4808,_0x29de24);}if(_0x1c4808 instanceof ModelRange){const _0x1eb79b=_0x565402['get'](_0x1c4808['root']['rootName']);_0x40bd1f[_0x543f44]=this['_fixRange'](_0x1c4808,_0x1eb79b);}'root'===_0x543f44&&(_0x40bd1f['root']=_0x565402['get'](_0x40bd1f['root']['rootName']));}}['_fixRange'](_0x517ca8,_0x29166c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x517ca8['start'],_0x29166c),this['_fixPosition'](_0x517ca8['end'],_0x29166c));}['_fixPosition'](_0x14ad4b,_0x404376){return this['editor']['model']['createPositionFromPath'](_0x404376,_0x14ad4b['path'],_0x14ad4b['stickiness']);}['_handleInsertOperation'](_0x560670){const _0x3c1f7b=this['_idsRoots']['get'](_0x560670['position']['root']['rootName']),_0x5e1a82=this['_fixPosition'](_0x560670['position'],_0x3c1f7b),_0x58a008=null===_0x560670['_authorId']?null:_0x560670['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c6b0e=_0x5e1a82['parent'],_0x460489=this['_revisionId'],_0x1fe457=[];for(const _0x2b66af of _0x560670['nodes'])if(_0x2b66af['is']('element'))_0x1fe457['push'](this['_makeIdsRoot'](_0x2b66af));else{for(let _0x288bdb=0x0;_0x288bdb<_0x2b66af['offsetSize'];_0x288bdb++)_0x1fe457['push'](new ModelElement('$text',{'vid':this['_revisionId']++}));}const _0x5e4369=this['_revisionId'];for(let _0x51d33e=_0x460489;_0x51d33e<_0x5e4369;_0x51d33e++)this['_touched']['set'](_0x51d33e,{'userId':_0x58a008});_0x1c6b0e['_insertChild'](_0x5e1a82['offset'],_0x1fe457);}['_handleMoveOperation'](_0x172f0b){(_0x172f0b=this['_cloneOperation'](_0x172f0b,this['_idsRoots']))['_execute']();const _0x497ff1=null===_0x172f0b['_authorId']?null:_0x172f0b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x51d080=_0x172f0b['getMovedRangeStart'](),_0x3757a3=_0x51d080['parent'],_0x52bfe0=_0x51d080['offset'];!function _0x3c23d4(_0x2c595a,_0x4848ec,_0x477aa8,_0x501081){for(let _0x175c2e=_0x477aa8;_0x175c2e<_0x501081;_0x175c2e++){const _0x5a8345=_0x4848ec['getChild'](_0x175c2e);_0x5a8345['is']('element','$text')?_0x2c595a['set'](_0x5a8345['getAttribute']('vid'),{'userId':_0x497ff1}):(_0x2c595a['set'](_0x5a8345['getAttribute']('vid_start'),{'userId':_0x497ff1}),_0x3c23d4(_0x2c595a,_0x5a8345,0x0,_0x5a8345['childCount']),_0x2c595a['set'](_0x5a8345['getAttribute']('vid_end'),{'userId':_0x497ff1}));}}(this['_touched'],_0x3757a3,_0x52bfe0,_0x52bfe0+_0x172f0b['howMany']);}['_handleMergeOperation'](_0x4202ce){const _0x169afb=null===(_0x4202ce=this['_cloneOperation'](_0x4202ce,this['_idsRoots']))['_authorId']?null:_0x4202ce['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa1da05=_0x4202ce['targetPosition']['parent'],_0x364ff4=_0x4202ce['sourcePosition']['parent'],_0x2e382e=_0xa1da05['getAttribute']('vid_end'),_0x49120a=_0x364ff4['getAttribute']('vid_start');_0xa1da05['_setAttribute']('vid_end',_0x364ff4['getAttribute']('vid_end')),_0x364ff4['_setAttribute']('vid_end',_0x2e382e),this['_touched']['set'](_0x49120a,{'userId':_0x169afb}),this['_touched']['set'](_0x2e382e,{'userId':_0x169afb}),_0x4202ce['_execute']();}['_handleSplitOperation'](_0x3c2c66){const _0x345d0b=null===(_0x3c2c66=this['_cloneOperation'](_0x3c2c66,this['_idsRoots']))['_authorId']?null:_0x3c2c66['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f2c63=_0x3c2c66['graveyardPosition'],_0x538182=_0x3c2c66['splitPosition']['parent'];_0x3c2c66['_execute']();const _0x464966=_0x538182['getAttribute']('vid_end'),_0x1b1c87=_0x3c2c66['insertionPosition']['nodeAfter'];if(_0x1f2c63){const _0x25f849=_0x1b1c87['getAttribute']('vid_end'),_0x4f679a=_0x538182['getAttribute']('vid_end');_0x538182['_setAttribute']('vid_end',_0x25f849),_0x1b1c87['_setAttribute']('vid_end',_0x4f679a),this['_touched']['set'](_0x538182['getAttribute']('vid_end'),{'userId':_0x345d0b}),this['_touched']['set'](_0x1b1c87['getAttribute']('vid_start'),{'userId':_0x345d0b});}else{const _0x22d734=this['_revisionId']++,_0x98d64c=this['_revisionId']++;_0x538182['_setAttribute']('vid_end',_0x22d734),_0x1b1c87['_setAttribute']('vid_start',_0x98d64c),_0x1b1c87['_setAttribute']('vid_end',_0x464966),this['_touched']['set'](_0x22d734,{'userId':_0x345d0b}),this['_touched']['set'](_0x98d64c,{'userId':_0x345d0b});}}['_handleMarkerOperation'](_0x463415){if(!_0x463415['affectsData'])return;const _0x284b70=(_0x463415=this['_cloneOperation'](_0x463415,this['_diffRoots']))['oldRange']?_0x463415['oldRange']['root']:null,_0x53c581=_0x463415['newRange']?_0x463415['newRange']['root']:null;_0x284b70&&this['_markers']['delete'](_0x463415['name']),_0x53c581&&this['_markers']['set'](_0x463415['name'],_0x463415['newRange']['clone']());const _0x546617=null===_0x463415['_authorId']?null:_0x463415['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x32bc62=_0x463415['name'];if(!this['_touchedMarkers']['has'](_0x32bc62))return void this['_touchedMarkers']['set'](_0x32bc62,{'range':_0x463415['oldRange'],'userId':_0x546617});const _0x43fec5=this['_touchedMarkers']['get'](_0x32bc62),_0x5af995=_0x43fec5['range'],_0x29b1bc=_0x463415['newRange'];null==_0x5af995&&null==_0x29b1bc||_0x5af995&&_0x29b1bc&&_0x5af995['isEqual'](_0x29b1bc)?this['_touchedMarkers']['delete'](_0x463415['name']):_0x43fec5['userId']=_0x546617;}['_handleRootOperation'](_0x173798,_0x2dc20f){this['_diffRoots']['has'](_0x173798['rootName'])?this['_diffRoots']['get'](_0x173798['rootName'])['_isAttached']=_0x173798['isAdd']:(this['_diffRoots']['set'](_0x173798['rootName'],_emptyRoot(_0x173798['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x173798['rootName'],{}),_0x2dc20f&&this['_idsRoots']['set'](_0x173798['rootName'],_emptyRoot(_0x173798['rootName'],!0x0)));const _0x9c5e21=null===_0x173798['_authorId']?null:_0x173798['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x545f74=this['_touchedRoots']['get'](_0x173798['rootName']);_0x545f74&&_0x545f74['userId']===_0x9c5e21?this['_touchedRoots']['delete'](_0x173798['rootName']):this['_touchedRoots']['set'](_0x173798['rootName'],{'userId':_0x9c5e21,'isAttached':_0x173798['isAdd']});}['_handleRootAttributeOperation'](_0x5121f3){const _0x400226=this['_diffRootsAttributes']['get'](_0x5121f3['root']['rootName']);null===_0x5121f3['newValue']?delete _0x400226[_0x5121f3['key']]:_0x400226[_0x5121f3['key']]=_0x5121f3['newValue'];}}function _cloneRoot(_0x1df9e1){const _0x299944=_emptyRoot(_0x1df9e1['rootName'],_0x1df9e1['isAttached']());for(const _0x2f649e of _0x1df9e1['getChildren']()){const _0x74c03d=_0x2f649e['_clone'](!0x0);_0x299944['_appendChild'](_0x74c03d);}return _0x299944;}function _emptyRoot(_0x39e85a,_0x35a8ad=!0x0){const _0x411e88=new ModelDocumentFragment();return _0x411e88['rootName']=_0x39e85a,_0x411e88['_isAttached']=_0x35a8ad,_0x411e88['isAttached']=()=>_0x411e88['_isAttached'],_0x411e88;}function _getPosBefore(_0x5291b4,_0x32eb93,_0x32508a){const _0x3b851='elementEnd'==_0x5291b4['type']?_0x32508a['createPositionAt'](_0x5291b4['item'],'end'):_0x32508a['createPositionBefore'](_0x5291b4['item']);return _0x32508a['createPositionFromPath'](_0x32eb93,_0x3b851['path'],_0x3b851['stickiness']);}function _getPosAfter(_0x3c5586,_0x39f10a,_0x4d9cac){const _0x2b91d0='elementStart'==_0x3c5586['type']?_0x4d9cac['createPositionAt'](_0x3c5586['item'],0x0):_0x4d9cac['createPositionAfter'](_0x3c5586['item']);return _0x4d9cac['createPositionFromPath'](_0x39f10a,_0x2b91d0['path'],_0x2b91d0['stickiness']);}class RevisionHistorySaveRevisionFormView extends/* #__PURE__ -- @preserve */
CssTransitionDisablerMixin(View){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x23be7a,_0x1ddbb0){super(_0x23be7a),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1ddbb0),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),submitHandler({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1602b3=_0x187db7=>_0x187db7['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1602b3),this['keystrokes']['set']('arrowleft',_0x1602b3),this['keystrokes']['set']('arrowup',_0x1602b3),this['keystrokes']['set']('arrowdown',_0x1602b3);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3e3f33){this['revisionNameInputView']['fieldView']['element']['value']=_0x3e3f33['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x21a86a){const _0x4931a6=new LabeledFieldView(this['locale'],createLabeledInputText),_0x324f0e=_0x4931a6['fieldView'];_0x324f0e['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x44ce49=getTranslation$5(this['locale'],'Name\x20of\x20the\x20revision');return!_0x21a86a&&(_0x44ce49+='\x20('+getTranslation$5(this['locale'],'optional')+')'),(_0x4931a6['label']=_0x44ce49,_0x324f0e['on']('input',()=>{this['revisionNameInputValue']=_0x324f0e['element']['value']['trim']();}),_0x4931a6);}}class RevisionHistoryUI extends Plugin{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[RevisionTracker];}['_saveRevisionFormView'];['init'](){const _0x16dd36=this['editor'],_0x502131=_0x16dd36['plugins']['get']('RevisionTracker');_0x16dd36['ui']['componentFactory']['add']('revisionHistory',_0x53a53e=>{const _0x514c51=createDropdown(_0x53a53e),_0x32c5fb=_0x514c51['panelView']['children'],_0x3bdc6d=new ListView(_0x53a53e),_0x117973=new ListItemView(_0x53a53e),_0xf8ed21=new ButtonView(_0x53a53e),_0x2a9ea9=new ListItemView(_0x53a53e),_0x29ebf9=new ButtonView(_0x53a53e);return _0x514c51['bind']('isEnabled')['to'](_0x502131,'isReady',_0x502131,'isEnabled',_0x16dd36,'isReadOnly',(_0xe8d38a,_0x19cc32,_0x524e98)=>_0xe8d38a&&_0x19cc32&&!_0x524e98),_0x514c51['buttonView']['set']({'icon':IconHistory,'label':getTranslation$5(_0x53a53e,'Revision\x20history'),'tooltip':!0x0}),_0xf8ed21['set']({'label':getTranslation$5(_0x53a53e,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xf8ed21['bind']('isEnabled')['to'](_0x502131,'isReady',_0x502131,'isEnabled',_0x16dd36,'isReadOnly',(_0x474295,_0x254301,_0x5419c9)=>_0x474295&&_0x254301&&!_0x5419c9),_0xf8ed21['on']('execute',()=>this['_showDialog']()),_0x29ebf9['set']({'label':getTranslation$5(_0x53a53e,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x29ebf9['bind']('isEnabled')['to'](_0x502131,'isReady',_0x16dd36,'isReadOnly',(_0x798f8d,_0x232039)=>_0x798f8d&&!_0x232039),_0x29ebf9['on']('execute',()=>{_0x16dd36['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x514c51['isOpen']=!0x1,_0x16dd36['editing']['view']['focus']();}),_0x117973['children']['add'](_0xf8ed21),_0x2a9ea9['children']['add'](_0x29ebf9),_0x3bdc6d['role']='menu',_0x3bdc6d['items']['addMany']([_0x117973,_0x2a9ea9]),_0x32c5fb['add'](_0x3bdc6d),_0x514c51;}),_0x16dd36['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x29b24e=this['editor'],_0x12bc86=_0x29b24e['locale'],_0x34749e=new MenuBarMenuView(_0x12bc86),_0x4bc16d=new MenuBarMenuListView(_0x12bc86);_0x34749e['buttonView']['set']({'icon':IconHistory,'label':getTranslation$5(_0x12bc86,'Revision\x20history')});const _0xf50f18=new MenuBarMenuListItemView(_0x12bc86,_0x34749e),_0x4972dc=new MenuBarMenuListItemButtonView(_0x12bc86);_0x4972dc['set']({'label':getTranslation$5(_0x12bc86,'Save\x20current\x20revision')}),_0x4972dc['delegate']('execute')['to'](_0x34749e),_0x4972dc['on']('execute',()=>{this['_showDialog']();}),_0xf50f18['children']['add'](_0x4972dc),_0x4bc16d['items']['add'](_0xf50f18);const _0x11c05a=new MenuBarMenuListItemView(_0x12bc86,_0x34749e),_0x10c930=new MenuBarMenuListItemButtonView(_0x12bc86);return _0x10c930['set']({'label':getTranslation$5(_0x12bc86,'Open\x20revision\x20history')}),_0x10c930['delegate']('execute')['to'](_0x34749e),_0x10c930['on']('execute',()=>{_0x29b24e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x11c05a['children']['add'](_0x10c930),_0x4bc16d['items']['add'](_0x11c05a),_0x34749e['panelView']['children']['add'](_0x4bc16d),_0x34749e;}['_showDialog'](){const _0x43077e=this['editor'],_0x4bc10b=_0x43077e['locale'],_0x464583=_0x43077e['plugins']['get']('Dialog'),_0xdbc7ee=_0x43077e['plugins']['get']('RevisionTracker');function _0x2e1138(_0x2261d8){_0x43077e['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2261d8['revisionName']?_0x2261d8['revisionNameInputView']['errorText']=getTranslation$5(_0x4bc10b,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x43077e['plugins']['get'](RevisionTracker)['saveRevision']({'name':_0x2261d8['revisionName']}),_0x464583['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2e1138(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x464583['show']({'id':'revisionSave','title':getTranslation$5(_0x4bc10b,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':getTranslation$5(_0x43077e['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x464583['hide']()},{'label':getTranslation$5(_0x43077e['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3dd999){_0x3dd999['bind']('isEnabled')['to'](_0xdbc7ee,'isReady',_0xdbc7ee,'isEnabled',_0x43077e,'isReadOnly',(_0x4aebb6,_0x473a72,_0x3b62ef)=>_0x4aebb6&&_0x473a72&&!_0x3b62ef);},'onExecute':()=>_0x2e1138(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x38a71f=this['editor'],_0x1735c6=_0x38a71f['locale'];this['_saveRevisionFormView']=new RevisionHistorySaveRevisionFormView(_0x1735c6,_0x38a71f['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class ChangeDetailsView extends View{['changeId'];['_model'];constructor(_0xb9295d,_0x350bce){super(_0xb9295d),this['_model']=_0x350bce,this['changeId']=_0x350bce['id'];const _0x553de0=this['bindTemplate'],_0x2b026b=getTranslation$5(_0xb9295d,_0x350bce['data']['isSuggestion']?'Suggested\x20by':'add'==_0x350bce['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x350bce['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x553de0['to']('type',_0x4fc29f=>'ck-revision-change__'+_0x4fc29f)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2b026b}]},{'text':'\x20'+_0x350bce['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class ChangeItem extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1674ce){super(),this['id']=_0x1674ce['id']||uid(),this['author']=_0x1674ce['author'],this['type']=_0x1674ce['type'],this['data']=_0x1674ce['data']||{},this['rootName']=_0x1674ce['rootName'],this['set']('createdAt',_0x1674ce['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class RevisionDiff{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5f2191,_0x26bcc8){this['newRevisionId']=_0x5f2191,this['oldRevisionId']=_0x26bcc8,this['changes']=new Collection();}['_setChanges'](_0x1e0160){for(const _0x4a8f70 of _0x1e0160)this['changes']['add'](_0x4a8f70);}}class RevisionViewer extends Plugin{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Users,ContextualBalloon,RevisionsRepository,RevisionHistoryUtils];}constructor(_0x2a0ce7){super(_0x2a0ce7),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4c45b5,_0x52a7e3,_0x17d1bd)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x118ac0=>{for(const _0x4e2d63 of this['editor']['editing']['view']['document']['roots'])_0x17d1bd?_0x118ac0['removeClass']('ck-editor__editable__overlay',_0x4e2d63):_0x118ac0['addClass']('ck-editor__editable__overlay',_0x4e2d63);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1be7e1=>null!==_0x1be7e1),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x23be2c,_0x42cfb4,_0x1c8b43)=>_0x23be2c&&_0x1c8b43?_0x42cfb4['changes']['getIndex'](_0x1c8b43):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x453b29,_0x1532a8)=>_0x453b29?_0x1532a8['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](ContextualBalloon);}['init'](){const _0x205aab=this['editor'],_0x287a0c=new ShowChangeCommand(_0x205aab,{'direction':'backward'}),_0xce224f=new ShowChangeCommand(_0x205aab,{'direction':'forward'});(_0x205aab['commands']['add']('showPreviousChange',_0x287a0c),_0x205aab['commands']['add']('showNextChange',_0xce224f),_0x205aab['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x205aab)),this['on']('change:numberOfChanges',()=>{_0x287a0c['refresh'](),_0xce224f['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x205aab['enableReadOnlyMode']('revision-viewer'),_0x205aab['plugins']['has']('WidgetToolbarRepository'))&&_0x205aab['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2d4b87){return await this['_utils']['loadRevisionData'](_0x2d4b87,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2d4b87);}async['getRevisionRootsAttributes'](_0x196884){return await this['_utils']['loadRevisionData'](_0x196884,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x196884);}async['compare'](_0x348487,_0x114e34,_0x38d3bd=!0x1){if(!this['isEnabled'])return;const _0x281e08=this['diff'],_0x3a1f48=this['repository'],_0xed52fd='string'==typeof _0x348487?_0x3a1f48['getRevision'](_0x348487):_0x348487,_0x2e7667='string'==typeof _0x114e34?_0x3a1f48['getRevision'](_0x114e34):_0x114e34,_0x31b1da=_0xed52fd['id'],_0x3f1237=_0x2e7667?_0x2e7667['id']:null;if(!_0x38d3bd&&this['diff']&&this['diff']['newRevisionId']===_0x31b1da&&this['diff']['oldRevisionId']===_0x3f1237)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new RevisionDiff(_0x31b1da,_0x3f1237);const _0x23590b=this['_getRevisionsRange'](_0xed52fd,_0x2e7667,!0x0)['map'](_0x206ee5=>this['_utils']['loadRevisionData'](_0x206ee5,this['adapter']));return _0x23590b['push'](new Promise(_0x1f4bb7=>{setTimeout(_0x1f4bb7,0x14);})),Promise['all'](_0x23590b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x37f3db=this['_getDiff'](_0x31b1da,_0x3f1237);for(const _0x325d18 of _0x37f3db['changes'])this['_changeIdToChange']['set'](_0x325d18['id'],_0x325d18);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x975d91=>{for(const _0x3ae5e7 of this['editor']['model']['document']['getRootNames']())_0x975d91['detachRoot'](_0x3ae5e7);for(const _0x4c61ae of Object['keys'](_0x37f3db['model'])){const _0x55ecf3=_0x975d91['addRoot'](_0x4c61ae);for(const _0xb81338 of Object['keys'](_0x37f3db['attributes'][_0x4c61ae]))_0x975d91['setAttribute'](_0xb81338,_0x37f3db['attributes'][_0x4c61ae][_0xb81338],_0x55ecf3);_0x975d91['insert'](_0x37f3db['model'][_0x4c61ae],_0x55ecf3,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x37f3db['changes'])),this['isReady']=!0x0;})['catch'](_0x28a8fd=>{console['error'](_0x28a8fd),this['_cleanUp'](),_0x281e08&&(this['diff']=_0x281e08),this['isReady']=!0x0;});}['addRevisionData'](_0x5dae87,_0x15fef9){const _0x416fe9=this['repository']['createRevision'](_0x5dae87);return _0x416fe9['on']('_update',(_0x51ee9c,_0x4a8779,_0x4e05ea)=>_0x15fef9(_0x4a8779,_0x4e05ea,_0x416fe9)),this['repository']['addRevision'](_0x416fe9),_0x416fe9;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xb266de=>{for(const _0x5e567d of this['editor']['model']['document']['getRootNames']())_0xb266de['detachRoot'](_0x5e567d);});}['_sortAndFilterDiffChanges'](_0x3a3bea){const _0x3f1eae=[],_0x4db380=new Map();for(const _0xe15f45 of this['editor']['model']['document']['getRootNames']()){const _0x23ff9d=this['editor']['editing']['view']['getDomRoot'](_0xe15f45);if(!_0x23ff9d)continue;const _0x5785b3=_0x23ff9d['getClientRects']()['item'](0x0);_0x5785b3&&(_0x3f1eae['push'](_0xe15f45),_0x4db380['set'](_0xe15f45,_0x5785b3));}return _0x3f1eae['sort']((_0x38c886,_0x331755)=>{const _0x392137=_0x4db380['get'](_0x38c886),_0x187066=_0x4db380['get'](_0x331755);return _0x392137['y']-_0x187066['y']||_0x392137['x']-_0x187066['x'];}),(_0x3a3bea=_0x3a3bea['filter'](_0x336a6b=>_0x3f1eae['includes'](_0x336a6b['rootName'])))['sort']((_0x47c8ba,_0xeca5df)=>_0x3f1eae['indexOf'](_0x47c8ba['rootName'])-_0x3f1eae['indexOf'](_0xeca5df['rootName'])),_0x3a3bea;}['_makeTape'](_0xf34d21){const _0x1e88b1=Array['from'](_0xf34d21['markers'])['filter'](([_0x348496,_0x2f400d])=>_0x348496['startsWith']('revision:')&&!_0x2f400d['isCollapsed']),_0x59bfbd=Array['from'](this['editor']['model']['createRangeIn'](_0xf34d21)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1e88b1['length'])for(const _0x7bddb7 of _0x59bfbd){const [_0x1541a6,_0xa52ba6]=_0x1e88b1[0x0],[,_0x205467,_0x51ea86]=_0x1541a6['split'](':');if(_0xa52ba6['end']['isEqual'](_0x7bddb7['nextPosition'])&&_0x1e88b1['shift'](),(_0x7bddb7['previousPosition']['isEqual'](_0xa52ba6['start'])||_0x7bddb7['previousPosition']['isAfter'](_0xa52ba6['start']))&&('insertion'==_0x205467?_0x7bddb7['isAdded']={'userId':_0x51ea86}:'deletion'==_0x205467&&(_0x7bddb7['isRemoved']={'userId':_0x51ea86})),0x0==_0x1e88b1['length'])break;}return _0x59bfbd;}['_refreshStartEndIndex'](_0x5605c4){const _0x22a6e9=new Map();for(let _0x4f13a7=0x0;_0x4f13a7<_0x5605c4['length'];_0x4f13a7++)'text'===_0x5605c4[_0x4f13a7]['type']?(_0x5605c4[_0x4f13a7]['item']['startIndex']=_0x4f13a7,_0x5605c4[_0x4f13a7]['item']['endIndex']=_0x4f13a7):('elementStart'===_0x5605c4[_0x4f13a7]['type']?_0x5605c4[_0x4f13a7]['item']['startIndex']=_0x4f13a7:'elementEnd'===_0x5605c4[_0x4f13a7]['type']&&(_0x5605c4[_0x4f13a7]['item']['endIndex']=_0x4f13a7),_0x22a6e9['set'](_0x5605c4[_0x4f13a7]['id'],_0x4f13a7));for(const _0x741f61 of _0x22a6e9['values']())'elementStart'===_0x5605c4[_0x741f61]['type']?_0x5605c4[_0x741f61]['item']['endIndex']=_0x22a6e9['get'](_0x5605c4[_0x741f61]['pairId']):'elementEnd'===_0x5605c4[_0x741f61]['type']&&(_0x5605c4[_0x741f61]['item']['startIndex']=_0x22a6e9['get'](_0x5605c4[_0x741f61]['pairId']));}['_processTape'](_0x1d6da6){for(let _0x36d4fe=0x0;_0x36d4fe<_0x1d6da6['length'];_0x36d4fe++){if('elementStart'===_0x1d6da6[_0x36d4fe]['type'])_0x1d6da6[_0x36d4fe]['item']['startIndex']=_0x36d4fe;else{if('elementEnd'===_0x1d6da6[_0x36d4fe]['type']){_0x1d6da6[_0x36d4fe]['item']['endIndex']=_0x36d4fe;const _0x55fac7=_0x1d6da6[_0x36d4fe]['item']['startIndex'];_0x1d6da6[_0x55fac7]['pairId']=_0x1d6da6[_0x36d4fe]['id'],_0x1d6da6[_0x36d4fe]['pairId']=_0x1d6da6[_0x55fac7]['id'];}else _0x1d6da6[_0x36d4fe]['item']['startIndex']=_0x36d4fe,_0x1d6da6[_0x36d4fe]['item']['endIndex']=_0x36d4fe,_0x1d6da6[_0x36d4fe]['pairId']=null;}_0x1d6da6[_0x36d4fe]['markersStart']||(_0x1d6da6[_0x36d4fe]['markersStart']=[],_0x1d6da6[_0x36d4fe]['markersEnd']=[]);}}['_markInsertions'](_0x2872ca,_0x452f44){const _0x3c722e=_0x2872ca['filter'](_0x3de20f=>!_0x3de20f['isAdded']);for(let _0x4cc76c=0x0;_0x4cc76c<_0x452f44['length'];_0x4cc76c++)_0x452f44[_0x4cc76c]['isAdded']&&(_0x3c722e[_0x4cc76c]['isAdded']=_0x452f44[_0x4cc76c]['isAdded']);}['_getDiff'](_0x361605,_0x231fda=null){const _0x3deb4b=this['repository']['getRevision'](_0x361605),_0x4ed864=_0x231fda?this['repository']['getRevision'](_0x231fda):null,_0x154898=this['_getRevisionsRange'](_0x3deb4b,_0x4ed864),_0x3f56fb=_0x154898[_0x154898['length']-0x1],_0x560351=new Map(),_0x38ed53={'model':{},'attributes':{},'changes':[]},_0x2d6bfb=new Set(),_0x3c9167=new Map();for(let _0x5b3c2c=_0x154898['length']-0x1;_0x5b3c2c>=0x0;_0x5b3c2c--){const _0x402295=_0x154898[_0x5b3c2c];for(const _0x3f527a of Object['keys'](_0x402295['diffData']))if(_0x402295['diffData'][_0x3f527a]['attachChange']){const _0x58ce08=_0x402295['diffData'][_0x3f527a]['attachChange'];_0x58ce08['isAttached']?(_0x2d6bfb['add'](_0x3f527a),_0x3c9167['has'](_0x3f527a)&&_0x3c9167['get'](_0x3f527a)['userId']==_0x58ce08['userId']?_0x3c9167['delete'](_0x3f527a):_0x3c9167['set'](_0x3f527a,_0x58ce08)):_0x3c9167['has'](_0x3f527a)?(_0x2d6bfb['delete'](_0x3f527a),_0x3c9167['delete'](_0x3f527a)):(_0x2d6bfb['add'](_0x3f527a),_0x3c9167['set'](_0x3f527a,_0x58ce08));}else _0x2d6bfb['add'](_0x3f527a);}for(const _0x1c84be of _0x2d6bfb){const _0x4cfa5f=_0x3c9167['has'](_0x1c84be)&&!_0x3c9167['get'](_0x1c84be)['isAttached'];let _0x37aab9=_0x4cfa5f?_0x154898['length']-0x1:0x0;const _0x54864b=_0x4cfa5f?-0x1:0x1;for(;_0x154898[_0x37aab9];){const _0xc2f1b1=_0x154898[_0x37aab9];if(_0xc2f1b1['diffData'][_0x1c84be]){const _0x1aeec0=_0x4cfa5f?_0xc2f1b1['diffData'][_0x1c84be]['attributesBefore']:_0xc2f1b1['diffData'][_0x1c84be]['attributesAfter'];_0x38ed53['attributes'][_0x1c84be]=_0x1aeec0?cloneDeep(_0x1aeec0):{};break;}_0x37aab9+=_0x54864b;}}for(const _0x39d65d of _0x154898){_0x39d65d['model']={};for(const _0x189d78 of _0x39d65d['authors'])_0x560351['set'](_0x189d78['id'],_0x189d78);for(const _0x1e2a8 of _0x2d6bfb){const _0x405b90=_0x39d65d['diffData'][_0x1e2a8]?_0x39d65d['diffData'][_0x1e2a8]['insertions']:'[]',_0x22f3b6=_0x39d65d['diffData'][_0x1e2a8]?_0x39d65d['diffData'][_0x1e2a8]['deletions']:'[]';_0x39d65d['model'][_0x1e2a8]={'insertions':this['_utils']['_makeModelFromViewString'](_0x405b90),'deletions':this['_utils']['_makeModelFromViewString'](_0x22f3b6)};}}for(const _0x5ab0cb of _0x2d6bfb){let _0x2a9882=null,_0x30d0fc=0x0;const _0x2ab5df=new Map(Array['from'](_0x3deb4b['model'][_0x5ab0cb]['insertions']['markers'])['filter'](([_0x3c399b])=>!_0x3c399b['startsWith']('revision:')));let _0x4d68c2=0x0;for(const _0x1335de of _0x154898){const _0x3f3449=this['_makeTape'](_0x1335de['model'][_0x5ab0cb]['insertions']);_0x1335de==_0x3deb4b?(_0x2a9882=_0x3f3449,_0x30d0fc=_0x2a9882['length'],_0x2a9882['forEach'](_0x47420e=>{_0x47420e['id']=_0x4d68c2++;}),this['_processTape'](_0x2a9882)):this['_markInsertions'](_0x2a9882,_0x3f3449);const _0x5920a2=_0x2a9882['filter'](_0x2e53d8=>!_0x2e53d8['isAdded'])['map'](_0xff3040=>_0xff3040['id']);let _0x2ba6b5=0x0;const _0x387654=this['_makeTape'](_0x1335de['model'][_0x5ab0cb]['deletions']);_0x387654['forEach'](_0x4893be=>{_0x4893be['isRemoved']?_0x4893be['id']=_0x30d0fc++:_0x4893be['id']=_0x5920a2[_0x2ba6b5++];}),this['_processTape'](_0x387654),this['_setDistance'](_0x2a9882,'isAdded'),this['_setDistance'](_0x387654,'isRemoved'),_0x1335de==_0x3deb4b&&this['_markMarkers'](_0x2a9882,_0x2ab5df),_0x2a9882=this['_joinTapes'](_0x2a9882,_0x387654),this['_refreshStartEndIndex'](_0x2a9882),this['_setDistance'](_0x2a9882,'isRemoved');}_0x2a9882=_0x2a9882['filter'](_0xb7e64a=>!(_0xb7e64a['isAdded']&&_0xb7e64a['isRemoved']));const _0xfa543a=new Map(_0x3f56fb['model'][_0x5ab0cb]['deletions']['markers']),_0x383d75=new Set(_0x2ab5df['keys']());for(const _0x5c4c45 of _0xfa543a['keys']())_0x383d75['delete'](_0x5c4c45);this['_markSuggestions'](_0x2a9882,_0x383d75),this['_fixObsoleteTags'](_0x2a9882),_0x2a9882=this['_removeMissingPairs'](_0x2a9882),_0x2a9882=this['_markMismatchedRemovedTags'](_0x2a9882),_0x2a9882=this['_removeUnsupportedChanges'](_0x2a9882);const {root:_0x5f5b94,changes:_0x591491}=this['_makeModelFromTape'](_0x2a9882,_0x560351,_0x5ab0cb);_0x38ed53['model'][_0x5ab0cb]=_0x5f5b94;const _0x3cb654=_0x3c9167['get'](_0x5ab0cb);if(_0x3cb654){const _0xfc8fb1=_0x560351['get'](_0x3cb654['userId']),_0x4d4663=new ChangeItem({'author':_0xfc8fb1,'type':_0x3cb654['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5ab0cb});_0x591491['unshift'](_0x4d4663),_0x38ed53['attributes'][_0x5ab0cb]['revisionHistoryAttachChange']=_0x4d4663['id'];}_0x38ed53['changes']=_0x38ed53['changes']['concat'](_0x591491);}return _0x38ed53;}['_markMarkers'](_0x537b90,_0x35f6a8){for(let _0x3ceb90=0x0;_0x3ceb90<_0x537b90['length'];_0x3ceb90++)for(const [_0x57f16f,_0x4b7a8d]of _0x35f6a8)!_0x4b7a8d['isCollapsed']&&_0x4b7a8d['start']['isEqual'](_0x537b90[_0x3ceb90]['previousPosition'])&&_0x537b90[_0x3ceb90]['markersStart']['push'](_0x57f16f),_0x4b7a8d['end']['isEqual'](_0x537b90[_0x3ceb90]['nextPosition'])&&_0x537b90[_0x3ceb90]['markersEnd']['push'](_0x57f16f);}['_joinTapes'](_0x4aa8f8,_0x1e16eb){let _0x549205=[],_0x393e64=0x0,_0xeb2559=0x0;for(;_0x393e64<_0x4aa8f8['length']||_0xeb2559<_0x1e16eb['length'];){const _0x484f3f=_0x4aa8f8[_0x393e64]||{},_0x3eaeae=_0x1e16eb[_0xeb2559]||{};if(_0x484f3f['id']==_0x3eaeae['id'])_0x393e64++,_0xeb2559++,_0x549205['push'](_0x484f3f);else{if(_0x3eaeae['isRemoved']&&_0x484f3f['isAdded']){const {commonTape:_0x18ecff,iEnd:_0x1cc5d6,jEnd:_0x11c9e5}=this['_threeWayMerge'](_0x4aa8f8,_0x393e64,_0x1e16eb,_0xeb2559);_0x549205=_0x549205['concat'](_0x18ecff),_0x393e64=_0x1cc5d6,_0xeb2559=_0x11c9e5;}else _0x3eaeae['isRemoved']?(_0xeb2559++,_0x549205['push'](_0x3eaeae)):(_0x393e64++,_0x549205['push'](_0x484f3f));}}return _0x549205;}['_markSuggestions'](_0x4ba0a2,_0x361145){const _0x29bc05=[];for(let _0x1615b3=0x0;_0x1615b3<_0x4ba0a2['length'];_0x1615b3++){for(let _0x2a797b=0x0;_0x2a797b<_0x4ba0a2[_0x1615b3]['markersStart']['length'];_0x2a797b++){const _0x4ff5cc=_0x4ba0a2[_0x1615b3]['markersStart'][_0x2a797b];if(!_0x361145['has'](_0x4ff5cc))continue;const {group:_0x390939,type:_0x1bf97e,authorId:_0x5adf3b}=_0x43200c(_0x4ff5cc);'revision-suggestion'!=_0x390939||'insertion'!=_0x1bf97e&&'deletion'!=_0x1bf97e||(_0x29bc05['unshift']({'type':_0x1bf97e,'name':_0x4ff5cc,'userId':_0x5adf3b}),_0x4ba0a2[_0x1615b3]['markersStart']['splice'](_0x2a797b,0x1),_0x2a797b--);}_0x4e34c8(_0x4ba0a2[_0x1615b3]);for(let _0x308c85=0x0;_0x308c85<_0x4ba0a2[_0x1615b3]['markersEnd']['length'];_0x308c85++){const _0x27fa94=_0x4ba0a2[_0x1615b3]['markersEnd'][_0x308c85];if(!_0x361145['has'](_0x27fa94))continue;const {group:_0x2996e3,type:_0x24a28e}=_0x43200c(_0x27fa94);if('revision-suggestion'!=_0x2996e3||'insertion'!=_0x24a28e&&'deletion'!=_0x24a28e)continue;_0x4ba0a2[_0x1615b3]['markersEnd']['splice'](_0x308c85,0x1),_0x308c85--;const _0x52805c=_0x29bc05['findIndex'](_0x43ed49=>_0x43ed49['name']==_0x27fa94);_0x52805c>-0x1&&_0x29bc05['splice'](_0x52805c,0x1);}}function _0x43200c(_0x13cdea){const _0x933ba5=_0x13cdea['split'](':');return{'group':_0x933ba5[0x0],'type':_0x933ba5[0x1],'subType':_0x933ba5['length']>=0x5?_0x933ba5[0x2]:null,'id':_0x933ba5['length']<0x5?_0x933ba5[0x2]:_0x933ba5[0x3],'authorId':_0x933ba5['length']<0x5?_0x933ba5[0x3]:_0x933ba5[0x4],'markerCount':0x6==_0x933ba5['length']?_0x933ba5[0x5]:null};}function _0x4e34c8(_0x2fee7f){for(let _0x22c47f=0x0;_0x22c47f<_0x29bc05['length'];_0x22c47f++){if(_0x2fee7f['isAdded']&&'insertion'==_0x29bc05[_0x22c47f]['type']&&_0x2fee7f['isAdded']['userId']==_0x29bc05[_0x22c47f]['userId'])return _0x2fee7f['isAddSuggestion']=_0x29bc05[_0x22c47f],void delete _0x2fee7f['isAdded'];if(!_0x2fee7f['isAdded']&&!_0x2fee7f['isRemoved']&&'deletion'==_0x29bc05[_0x22c47f]['type'])return void(_0x2fee7f['isRemoveSuggestion']=_0x29bc05[_0x22c47f]);}}}['_setDistance'](_0x8a3237,_0x3189dc){let _0x359235=0x0,_0x5a48a9=!0x1;const _0x4dcba5=new Map();for(const _0x2bcdd1 of _0x8a3237)_0x2bcdd1[_0x3189dc]?_0x5a48a9&&(_0x359235++,_0x5a48a9=!0x1):(_0x359235++,_0x5a48a9=!0x0),_0x4dcba5['set'](_0x2bcdd1['id'],_0x359235);for(let _0x1e6b72=0x0;_0x1e6b72<_0x8a3237['length'];_0x1e6b72++){if('isRemoved'==_0x3189dc&&_0x8a3237[_0x1e6b72]['isAdded']||'isAdded'==_0x3189dc&&_0x8a3237[_0x1e6b72]['isRemoved'])continue;if('text'==_0x8a3237[_0x1e6b72]['type']){_0x8a3237[_0x1e6b72]['distance']=0x0;continue;}const _0x148ef4=_0x4dcba5['get'](_0x8a3237[_0x1e6b72]['pairId']),_0x287e1f=_0x4dcba5['get'](_0x8a3237[_0x1e6b72]['id']);_0x8a3237[_0x1e6b72]['distance']=_0x148ef4-_0x287e1f;}}['_getRevisionsRange'](_0x1d0a9d,_0x4575da,_0x180b4a=!0x1){const _0x11bd5c=[];let _0x4cf0d8=this['repository']['getIndex'](_0x1d0a9d),_0x18854a=this['repository']['getIndex'](_0x4575da);for(-0x1==_0x18854a&&(_0x18854a=this['repository']['_revisions']['length'],_0x180b4a=!0x1);_0x4cf0d8<_0x18854a;)_0x11bd5c['push'](this['repository']['getRevision'](_0x4cf0d8)),_0x4cf0d8++;return _0x180b4a&&_0x11bd5c['push'](this['repository']['getRevision'](_0x4cf0d8)),_0x11bd5c;}['_threeWayMerge'](_0xb58665,_0x5d25d2,_0x1cb4c7,_0x94a688){const _0x280128=this['editor']['model']['schema'];let _0x169858=_0x5d25d2;for(;_0xb58665[_0x169858]&&_0xb58665[_0x169858]['isAdded'];)_0x169858++;let _0xc4fcbf=_0x94a688;for(;_0x1cb4c7[_0xc4fcbf]&&_0x1cb4c7[_0xc4fcbf]['isRemoved'];)_0xc4fcbf++;_0x5b1bc5(_0xb58665,_0x5d25d2,_0x169858),_0x5b1bc5(_0x1cb4c7,_0x94a688,_0xc4fcbf);const _0x1e3612=_0x1cb4c7['slice'](_0x94a688,_0xc4fcbf)['concat'](_0xb58665['slice'](_0x5d25d2,_0x169858));return _0x1e3612['sort']((_0x1eb902,_0x505a2b)=>_0x1eb902['side']!=_0x505a2b['side']?_0x1eb902['side']-_0x505a2b['side']:_0x1eb902['level']!=_0x505a2b['level']?_0x1eb902['level']-_0x505a2b['level']:_0x1eb902['distance']!=_0x505a2b['distance']?_0x505a2b['distance']-_0x1eb902['distance']:!!_0x1eb902['isAdded']!=!!_0x505a2b['isAdded']?-0x1==_0x1eb902['side']||0x0==_0x1eb902['side']?_0x1eb902['isAdded']?-0x1:0x1:_0x1eb902['isAdded']?0x1:-0x1:_0x1eb902['index']-_0x505a2b['index']),{'commonTape':_0x1e3612,'iEnd':_0x169858,'jEnd':_0xc4fcbf};function _0x5b1bc5(_0x420ea7,_0x209854,_0x496a31){let _0x30990b=-0x1,_0x2d7bd7=Number['POSITIVE_INFINITY'],_0xce7741=!0x0;for(let _0x4c152c=_0x209854;_0x4c152c<_0x496a31;_0x4c152c++)if(_0x280128['isInline'](_0x420ea7[_0x4c152c]['item'])||(_0xce7741=!0x1),_0x420ea7[_0x4c152c]['item']['startIndex']<_0x209854&&(_0x30990b=_0x4c152c),_0x420ea7[_0x4c152c]['item']['endIndex']>=_0x496a31){_0x2d7bd7=_0x4c152c;break;}_0xce7741&&(_0x30990b=_0x496a31-0x1);for(let _0x2e60a9=_0x209854;_0x2e60a9<_0x496a31;_0x2e60a9++)_0x420ea7[_0x2e60a9]['side']=_0x2e60a9<=_0x30990b?-0x1:_0x2e60a9<_0x2d7bd7?0x0:0x1,_0x420ea7[_0x2e60a9]['index']=_0x2e60a9;let _0x50496=0x0;for(let _0x5ba181=_0x209854;_0x5ba181<=_0x30990b;_0x5ba181++)0x0==_0x420ea7[_0x5ba181]['distance']?_0x420ea7[_0x5ba181]['level']=_0x50496:(_0x50496++,_0x420ea7[_0x5ba181]['level']=_0x50496,_0x50496++);for(let _0x50aded=_0x209854;_0x50aded<_0x496a31;_0x50aded++)0x0==_0x420ea7[_0x50aded]['side']&&(_0x420ea7[_0x50aded]['level']=_0x50496);_0x50496=0x0;for(let _0x2c13f2=_0x496a31-0x1;_0x2c13f2>=_0x2d7bd7;_0x2c13f2--)0x0==_0x420ea7[_0x2c13f2]['distance']?_0x420ea7[_0x2c13f2]['level']=_0x50496:(_0x50496--,_0x420ea7[_0x2c13f2]['level']=_0x50496,_0x50496--);}}['_fixObsoleteTags'](_0xf6ea06){const _0x5c8f4f=new Map(),_0x52896c=this['editor']['model']['schema'];for(let _0x3b3310=0x1;_0x3b3310<_0xf6ea06['length'];_0x3b3310++){let _0x4bae70,_0x2ecb6d,_0x19da33;const _0x315071=_0xf6ea06[_0x3b3310],_0x2728b1=_0xf6ea06[_0x3b3310-0x1];if('text'==_0x315071['type'])continue;if(_0x315071['type']!=_0x2728b1['type'])continue;if(!_0x52896c['isBlock'](_0x2728b1['item'])||_0x52896c['isLimit'](_0x2728b1['item']))continue;if(!_0x52896c['isBlock'](_0x315071['item'])||_0x52896c['isLimit'](_0x315071['item']))continue;if((_0xf6ea06[_0x3b3310]['isAdded']||_0xf6ea06[_0x3b3310]['isAddSuggestion'])&&_0xf6ea06[_0x3b3310-0x1]['isRemoved'])_0x4bae70=_0xf6ea06[_0x3b3310],_0x2ecb6d=_0xf6ea06[_0x3b3310-0x1],_0x19da33=_0x3b3310-0x1;else{if(!_0xf6ea06[_0x3b3310]['isRemoved']||!_0xf6ea06[_0x3b3310-0x1]['isAdded']&&!_0xf6ea06[_0x3b3310-0x1]['isAddSuggestion'])continue;_0x4bae70=_0xf6ea06[_0x3b3310-0x1],_0x2ecb6d=_0xf6ea06[_0x3b3310],_0x19da33=_0x3b3310;}const _0xe5ef50=_0x4bae70['level']==_0x2ecb6d['level'],_0x2c88c1=Math['abs'](_0x4bae70['level'])<Math['abs'](_0x2ecb6d['level'])&&0x0==_0x2ecb6d['distance'];(_0xe5ef50||_0x2c88c1)&&(_0x5c8f4f['set'](_0x2ecb6d['id'],_0x4bae70['id']),_0xf6ea06['splice'](_0x19da33,0x1),_0x3b3310--,_0x4bae70['isAdded']=!0x1);}for(let _0x23db83=0x0;_0x23db83<_0xf6ea06['length'];_0x23db83++)_0x5c8f4f['has'](_0xf6ea06[_0x23db83]['pairId'])&&(_0xf6ea06[_0x23db83]['pairId']=_0x5c8f4f['get'](_0xf6ea06[_0x23db83]['pairId']));}['_removeMissingPairs'](_0x576377){const _0x351338=new Set(_0x576377['map'](_0x23aad1=>_0x23aad1['id']));for(let _0x4cc14f=0x0;_0x4cc14f<_0x576377['length'];_0x4cc14f++)_0x351338['has'](_0x576377[_0x4cc14f]['pairId'])||0x0==_0x576377[_0x4cc14f]['distance']||(_0x576377[_0x4cc14f]['isIncorrect']=!0x0);return _0x576377['filter'](_0x1019d2=>!_0x1019d2['isIncorrect']);}['_markMismatchedRemovedTags'](_0x7aa702){const _0x3c214b=new Set();for(let _0x3f2762=0x0;_0x3f2762<_0x7aa702['length'];_0x3f2762++){if(_0x3c214b['has'](_0x7aa702[_0x3f2762]['id'])&&_0x7aa702[_0x3f2762]['isRemoved']&&(_0x7aa702[_0x3f2762]['isIncorrect']=!0x0),_0x7aa702[_0x3f2762]['isIncorrect'])continue;if(0x0==_0x7aa702[_0x3f2762]['distance'])continue;if('elementStart'!=_0x7aa702[_0x3f2762]['type'])continue;if(null==_0x7aa702[_0x3f2762]['pairId'])continue;let _0x251f3b=_0x3f2762+0x1,_0x4222a1=0x0;for(;_0x7aa702[_0x251f3b]['id']!=_0x7aa702[_0x3f2762]['pairId'];)'elementStart'==_0x7aa702[_0x251f3b]['type']?_0x4222a1++:'elementEnd'==_0x7aa702[_0x251f3b]['type']&&_0x4222a1--,_0x251f3b++;if(0x0!=_0x4222a1){if(_0x7aa702[_0x3f2762]['isRemoved'])_0x7aa702[_0x3f2762]['isIncorrect']=!0x0;else{for(;_0x251f3b!=_0x3f2762;)_0x7aa702[_0x251f3b]['isRemoved']&&0x0!=_0x7aa702[_0x251f3b]['distance']&&(_0x7aa702[_0x251f3b]['isIncorrect']=!0x0,_0x3c214b['add'](_0x7aa702[_0x251f3b]['pairId'])),_0x251f3b--;}}}return _0x7aa702['filter'](_0xab9d52=>!_0xab9d52['isIncorrect']);}['_removeUnsupportedChanges'](_0x4bbed8){const _0x3faa03=this['editor']['model']['schema'];for(let _0x110977=0x0;_0x110977<_0x4bbed8['length'];_0x110977++){if(!(_0x4bbed8[_0x110977]['isAdded']||_0x4bbed8[_0x110977]['isAddSuggestion']||_0x4bbed8[_0x110977]['isRemoved']||_0x4bbed8[_0x110977]['isRemoveSuggestion']))continue;if(0x0==_0x4bbed8[_0x110977]['distance'])continue;const _0x51780f=_0x4bbed8[_0x110977]['item'];_0x3faa03['isBlock'](_0x51780f)||_0x3faa03['isLimit'](_0x51780f)||(_0x4bbed8[_0x110977]['isAdded']&&delete _0x4bbed8[_0x110977]['isAdded'],_0x4bbed8[_0x110977]['isAddSuggestion']&&delete _0x4bbed8[_0x110977]['isAddSuggestion'],_0x4bbed8[_0x110977]['isRemoveSuggestion']&&delete _0x4bbed8[_0x110977]['isRemoveSuggestion'],_0x4bbed8[_0x110977]['isRemoved']&&(_0x4bbed8[_0x110977]['isIncorrect']=!0x0));}return _0x4bbed8['filter'](_0x245f02=>!_0x245f02['isIncorrect']);}['_makeModelFromTape'](_0x12a809,_0x442814,_0x466830){const _0x929e98=new ModelDocumentFragment(),_0x3cf8a0=[],_0x501d2f=new Map(),_0x180ba2=this['editor']['model'],_0x25baf0=_0x180ba2['schema'],_0x19f6ca=[_0x929e98],_0x1db8e0={},_0x5da41b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2970c0=null;const _0x274315=[0x0];for(let _0x1333f2=0x0;_0x1333f2<_0x12a809['length'];_0x1333f2++)if('elementStart'===_0x12a809[_0x1333f2]['type']){_0x12a809[_0x1333f2]['previousPosition']=_0x180ba2['createPositionFromPath'](_0x929e98,_0x274315);const _0x3686f3=new ModelElement(_0x12a809[_0x1333f2]['item']['name'],_0x12a809[_0x1333f2]['item']['getAttributes']());_0x19f6ca[0x0]['_appendChild'](_0x3686f3),_0x274315['push'](0x0),_0x19f6ca['unshift'](_0x3686f3),_0x12a809[_0x1333f2]['nextPosition']=_0x180ba2['createPositionFromPath'](_0x929e98,_0x274315);}else'elementEnd'===_0x12a809[_0x1333f2]['type']?(_0x19f6ca['shift'](),_0x12a809[_0x1333f2]['previousPosition']=_0x180ba2['createPositionFromPath'](_0x929e98,_0x274315),_0x274315['pop'](),_0x274315[_0x274315['length']-0x1]++,_0x12a809[_0x1333f2]['nextPosition']=_0x180ba2['createPositionFromPath'](_0x929e98,_0x274315)):(_0x12a809[_0x1333f2]['previousPosition']=_0x180ba2['createPositionFromPath'](_0x929e98,_0x274315),_0x2970c0?_0x2970c0['_data']+=_0x12a809[_0x1333f2]['item']['data']:_0x2970c0=new ModelText(_0x12a809[_0x1333f2]['item']['data'],_0x12a809[_0x1333f2]['item']['getAttributes']()),_0x12a809[_0x1333f2+0x1]&&'text'===_0x12a809[_0x1333f2+0x1]['type']&&_0x21ab3c(_0x2970c0,_0x12a809[_0x1333f2+0x1]['item'])||(_0x19f6ca[0x0]['_appendChild'](_0x2970c0),_0x2970c0=null),_0x274315[_0x274315['length']-0x1]+=_0x12a809[_0x1333f2]['item']['offsetSize'],_0x12a809[_0x1333f2]['nextPosition']=_0x180ba2['createPositionFromPath'](_0x929e98,_0x274315));for(let _0x997b0d=0x0;_0x997b0d<_0x12a809['length'];_0x997b0d++){const _0x449558=_0x12a809[_0x997b0d]['previousPosition'],_0x1c09d0=_0x12a809[_0x997b0d]['nextPosition'];for(const _0x2de5c7 of _0x12a809[_0x997b0d]['markersStart'])_0x501d2f['set'](_0x2de5c7,{'start':_0x449558,'end':null});_0x1a1337('isRemoveSuggestion',_0x997b0d,_0x449558,_0x1c09d0),_0x1a1337('isAddSuggestion',_0x997b0d,_0x449558,_0x1c09d0),_0x1a1337('isRemoved',_0x997b0d,_0x449558,_0x1c09d0),_0x1a1337('isAdded',_0x997b0d,_0x449558,_0x1c09d0);for(const _0x10bfc1 of _0x12a809[_0x997b0d]['markersEnd']){const _0x42469e=_0x501d2f['get'](_0x10bfc1);_0x42469e?_0x42469e['end']=_0x1c09d0:_0x501d2f['set'](_0x10bfc1,{'start':_0x1c09d0,'end':_0x1c09d0});}}for(const [_0x161b7d,_0x47b00e]of _0x501d2f){const _0x4ded12=this['editor']['model']['createRange'](_0x47b00e['start'],_0x47b00e['end']);_0x929e98['markers']['set'](_0x161b7d,_0x4ded12);}return _0x3cf8a0['sort']((_0x296c62,_0x26aed0)=>{const _0x159932=_0x929e98['markers']['get']('revision:'+_0x296c62['id']),_0x3ff2cb=_0x929e98['markers']['get']('revision:'+_0x26aed0['id']);return _0x159932['start']['isBefore'](_0x3ff2cb['start'])?-0x1:_0x159932['start']['isAfter'](_0x3ff2cb['start'])?0x1:_0x159932['end']['isBefore'](_0x3ff2cb['end'])?-0x1:_0x159932['end']['isAfter'](_0x3ff2cb['end'])?0x1:'add'===_0x296c62['type']?-0x1:0x1;}),{'root':_0x929e98,'changes':_0x3cf8a0};function _0x1a1337(_0x29e643,_0xd85224,_0x2c1c2c,_0x461ffa){const _0x4f961a=!!_0x12a809[_0xd85224][_0x29e643],_0x510b0f=_0x4f961a?_0x12a809[_0xd85224][_0x29e643]['userId']:null,_0x36ea84=_0xd85224===_0x12a809['length']-0x1,_0x4186d0=_0x5da41b[_0x29e643][0x0],_0x214899=_0x25baf0['isObject'](_0x12a809[_0xd85224]['item']);!_0x1db8e0[_0x29e643]&&_0x4f961a?_0x1db8e0[_0x29e643]={'start':_0x2c1c2c,'tapeItem':_0x12a809[_0xd85224],'userId':_0x510b0f,'type':_0x29e643}:_0x1db8e0[_0x29e643]&&!_0x4f961a?(_0x1db8e0[_0x29e643]['end']=_0x2c1c2c,_0x579bc5(_0x1db8e0[_0x29e643]),_0x1db8e0[_0x29e643]=null):_0x1db8e0[_0x29e643]&&_0x4f961a&&_0x1db8e0[_0x29e643]['userId']!==_0x510b0f&&(_0x1db8e0[_0x29e643]['end']=_0x2c1c2c,_0x4186d0&&_0x4186d0['userId']===_0x1db8e0[_0x29e643]['userId']||_0x579bc5(_0x1db8e0[_0x29e643]),_0x1db8e0[_0x29e643]={'start':_0x2c1c2c,'tapeItem':_0x12a809[_0xd85224],'userId':_0x510b0f,'type':_0x29e643}),_0x1db8e0[_0x29e643]&&_0x214899&&('elementStart'!==_0x12a809[_0xd85224]['type']||_0x4186d0&&_0x4186d0['userId']===_0x510b0f||_0x5da41b[_0x29e643]['unshift']({'userId':_0x510b0f,'object':_0x12a809[_0xd85224]['item'],'change':_0x1db8e0[_0x29e643]}),'elementEnd'===_0x12a809[_0xd85224]['type']&&_0x4186d0&&_0x4186d0['object']===_0x12a809[_0xd85224]['item']&&(_0x5da41b[_0x29e643]['shift'](),_0x1db8e0[_0x29e643]=_0x4186d0['change'])),_0x1db8e0[_0x29e643]&&_0x36ea84&&(_0x1db8e0[_0x29e643]['end']=_0x461ffa,_0x579bc5(_0x1db8e0[_0x29e643]),_0x1db8e0[_0x29e643]=null);}function _0x579bc5({start:_0xc6564,end:_0x3e15fc,tapeItem:_0x5dbfe8,userId:_0x2b5dcc,type:_0x570106}){const _0x22ecd6=_0x5dbfe8['item'],_0x28a990=_0x180ba2['schema']['isBlock'](_0x22ecd6)&&!_0x180ba2['schema']['isLimit'](_0x22ecd6),_0x133a35=_0xc6564['nodeAfter']==_0x3e15fc['parent']&&_0x3e15fc['isAtStart'];if(_0x28a990&&_0x133a35)return;const _0x988af7=_0x180ba2['createRange'](_0xc6564,_0x3e15fc),_0x3bfdd2=_0x442814['get'](_0x2b5dcc),_0x185135=new ChangeItem({'author':_0x3bfdd2,'type':'isAdded'==_0x570106||'isAddSuggestion'==_0x570106?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x570106||'isRemoveSuggestion'==_0x570106},'createdAt':new Date(),'rootName':_0x466830});_0x3cf8a0['push'](_0x185135),_0x929e98['markers']['set']('revision:'+_0x185135['id'],_0x988af7);}function _0x21ab3c(_0x5c62ec,_0x315b8b){const _0x1260bc=_0x5c62ec['getAttributes'](),_0x1ba972=_0x315b8b['getAttributes']();for(const _0x194296 of _0x1260bc){if(_0x194296[0x1]!==_0x315b8b['getAttribute'](_0x194296[0x0]))return!0x1;_0x1ba972['next']();}return _0x1ba972['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x144396=>{const _0x2841ed=_0x144396['markerName']['split'](':')[0x1],_0x2c841e=this['_getChangeFromId'](_0x2841ed);if(!_0x2c841e)return null;const _0x411011='add'==_0x2c841e['type']?'insertion':'deletion',_0x3b7831=['ck-suggestion-marker','ck-suggestion-marker-'+_0x411011];return _0x2c841e['data']['isSuggestion']&&_0x3b7831['push']('ck-suggestion-marker-'+_0x411011+'-new'),this['activeChange']==_0x2c841e&&_0x3b7831['push']('ck-suggestion-marker--active'),{'classes':_0x3b7831,'attributes':{'data-change-id':_0x2841ed}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x30d727=>{_0x30d727['on']('element:pre',(_0x55d482,_0x30066f,_0x1c5820)=>{const _0x3980d9=_0x30066f['viewItem']['getChild'](0x0);if(!_0x3980d9||!_0x3980d9['is']('element','code'))return;if(!_0x1c5820['consumable']['consume'](_0x3980d9,{'attributes':['vid_start','vid_end']}))return;const _0x1dc7e6=_0x30066f['modelRange']['start']['nodeAfter'];_0x1c5820['writer']['setAttribute']('vid_start',_0x3980d9['getAttribute']('vid_start'),_0x1dc7e6),_0x1c5820['writer']['setAttribute']('vid_end',_0x3980d9['getAttribute']('vid_end'),_0x1dc7e6);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2c0c67=>{_0x2c0c67['on']('element',(_0x5090bc,_0x25e88a,_0x5ef7d8)=>{if(!_0x5ef7d8['consumable']['consume'](_0x25e88a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x25e88a['modelRange']['isCollapsed'])return;const _0x4ad8c3=_0x25e88a['modelRange']['start']['nodeAfter'];_0x4ad8c3['hasAttribute']('vid_start')||_0x4ad8c3['hasAttribute']('vid')||(_0x5ef7d8['writer']['setAttribute']('vid_start',_0x25e88a['viewItem']['getAttribute']('vid_start'),_0x4ad8c3),_0x5ef7d8['writer']['setAttribute']('vid_end',_0x25e88a['viewItem']['getAttribute']('vid_end'),_0x4ad8c3));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2b5824=>_0x2b5824['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4a032a,[,_0x31e189])=>{['vid_start','vid_end','vid']['includes'](_0x31e189)&&(_0x4a032a['return']=!0x0,_0x4a032a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4ea07e=>{_0x4ea07e['on']('attribute:vid',(_0x3998cd,_0x56bcd6,_0x3c5c58)=>{if('\x20'!=_0x56bcd6['item']['data']||_0x56bcd6['item']['parent']['maxOffset']>0x1)return;if(!_0x3c5c58['consumable']['consume'](_0x56bcd6['item'],_0x3998cd['name']))return;const _0x4407be=_0x3c5c58['writer'],_0x17d9cc=_0x3c5c58['mapper']['toViewRange'](_0x56bcd6['range']);_0x4407be['wrap'](_0x17d9cc,_0x4407be['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',downcastSplitMergeMarker$2(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1b9501,_0x639d4b,_0x62f413)=>{const _0x17223d=_0x62f413['mapper']['markerNameToElements'](_0x639d4b['markerName']);if(_0x17223d){for(const _0x3c83a4 of _0x17223d)(_0x3c83a4['hasClass']('ck-suggestion-marker-split')||_0x3c83a4['hasClass']('ck-suggestion-marker-merge'))&&(_0x62f413['mapper']['unbindElementFromMarkerName'](_0x3c83a4,_0x639d4b['markerName']),_0x62f413['writer']['remove'](_0x3c83a4));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2f3913,_0x34b935,_0x5a7dcf)=>{const _0xec95d9=_0x34b935['markerName']['split'](':')[0x1],_0x116e97=this['_getChangeFromId'](_0xec95d9);if(!_0x116e97)return null;const _0x1767fe='add'==_0x116e97['type']?'split':'merge';if(_0x5a7dcf['consumable']['test'](_0x34b935['markerRange'],_0x2f3913['name']))for(const _0x37a234 of _0x34b935['markerRange']['getItems']()){if(!_0x37a234['is']('element','softBreak'))continue;const _0xfc5b61=_0x5a7dcf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1767fe}),_0x34715f=_0x5a7dcf['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x37a234));_0x116e97['data']['isSuggestion']&&_0x5a7dcf['writer']['addClass']('ck-suggestion-marker-'+_0x1767fe+'-new',_0xfc5b61),this['activeChange']==_0x116e97&&_0x5a7dcf['writer']['addClass']('ck-suggestion-marker--active',_0xfc5b61),_0x5a7dcf['writer']['insert'](_0x34715f,_0xfc5b61),_0x5a7dcf['mapper']['bindElementToMarker'](_0xfc5b61,_0x34b935['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4a5279=>{for(const _0x49f81e of this['editor']['model']['document']['getRootNames']()){const _0x3c4179=this['editor']['model']['document']['getRoot'](_0x49f81e),_0x2dc204=this['editor']['editing']['view']['document']['getRoot'](_0x49f81e);if(_0x2dc204){const _0x528d94=_0x3c4179['getAttribute']('revisionHistoryAttachChange');if(_0x4a5279['removeAttribute']('data-change-id',_0x2dc204),_0x4a5279['removeClass']('ck-revision-history-root-add',_0x2dc204),_0x4a5279['removeClass']('ck-revision-history-root-remove',_0x2dc204),_0x4a5279['removeClass']('ck-revision-history-root--active',_0x2dc204),_0x528d94){const _0x4cd223=this['_getChangeFromId'](_0x528d94);if(!_0x4cd223)return null;_0x4a5279['setAttribute']('data-change-id',_0x528d94,_0x2dc204),_0x4a5279['addClass']('ck-revision-history-root-'+_0x4cd223['type'],_0x2dc204),this['activeChange']==_0x4cd223&&_0x4a5279['addClass']('ck-revision-history-root--active',_0x2dc204);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3d58b4=>'revision-comment:'+_0x3d58b4,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x246e5a=>'revision-suggestion:'+_0x246e5a,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x490944=>({'name':'suggestion:'+_0x490944,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4c63f5=>{const _0xcf3665=_0x4c63f5['markerName']['split'](':')[0x1];return'insertion'!=_0xcf3665&&'deletion'!=_0xcf3665?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xcf3665]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',downcastSplitMergeMarkerSuggestion(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',downcastSplitMergeMarkerSuggestion(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2674b7,_0x36fb0a,_0xbd8f9)=>{const _0x64b5d9=_0xbd8f9['mapper']['markerNameToElements'](_0x36fb0a['markerName']);if(_0x64b5d9){for(const _0x41ef06 of _0x64b5d9)_0x41ef06['is']('uiElement')&&(_0xbd8f9['mapper']['unbindElementFromMarkerName'](_0x41ef06,_0x36fb0a['markerName']),_0xbd8f9['writer']['remove'](_0x41ef06));}},{'priority':'high'});}['_getChangeFromId'](_0x549fa9){return this['_changeIdToChange']['get'](_0x549fa9);}['_getViewForChange'](_0x2ef227){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new ChangeDetailsView(this['editor']['locale'],_0x2ef227),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x87dbae,_0x27751b,_0x4032e0,_0x8ecc76)=>{_0x8ecc76&&this['_balloon']['remove'](_0x8ecc76),_0x4032e0&&(this['_balloon']['add']({'view':_0x4032e0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x24eab6=this['editor']['editing'],_0x19f42c=this['_getChangeFromId'](_0x4032e0['changeId']);let _0x2311b7;if(_0x19f42c['data']['isOnRoot']){const _0x1e695d=_0x24eab6['view']['getDomRoot'](_0x19f42c['rootName']);_0x2311b7=Array['from'](_0x1e695d['getClientRects']());}else{const _0x5c6a93=this['editor']['model']['markers']['get']('revision:'+_0x4032e0['changeId']);_0x2311b7=Array['from'](_0x24eab6['mapper']['markerNameToElements'](_0x5c6a93['name']))['map'](_0x3764a2=>_0x24eab6['view']['domConverter']['mapViewToDom'](_0x3764a2))['map'](_0x511557=>Array['from'](_0x511557['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2311b7[0x0];return _0x2311b7['find'](_0x70bf95=>_0x70bf95['top']-0x3<=this['_activeViewTarget']['y']&&_0x70bf95['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x70bf95['left']-0x3<=this['_activeViewTarget']['x']&&_0x70bf95['right']+0x3>=this['_activeViewTarget']['x'])||_0x2311b7[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x52ab9f,_0x174063,_0x24763c,_0x4189aa)=>{this['activeView']=_0x24763c?this['_getViewForChange'](_0x24763c):null,this['editor']['model']['change'](()=>{const _0x29e723=this['editor']['editing'];_0x4189aa&&(_0x4189aa['data']['isOnRoot']?_0x29e723['view']['change'](_0x3d5173=>{_0x3d5173['removeClass']('ck-revision-history-root--active',_0x29e723['view']['document']['getRoot'](_0x4189aa['rootName']));}):_0x29e723['reconvertMarker']('revision:'+_0x4189aa['id'])),_0x24763c&&(_0x24763c['data']['isOnRoot']?_0x29e723['view']['change'](_0x194e33=>{_0x194e33['addClass']('ck-revision-history-root--active',_0x29e723['view']['document']['getRoot'](_0x24763c['rootName']));}):_0x29e723['reconvertMarker']('revision:'+_0x24763c['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xc2c0b4,_0x42f252)=>{if(this['activeChange'])return;const _0x6c9d9e=this['_findChangeIdFromDomTarget'](_0x42f252['target']),_0x56b2a0=this['_changeIdToChange']['get'](_0x6c9d9e);_0x56b2a0?(this['_activeViewTarget']={'x':_0x42f252['domEvent']['x'],'y':_0x42f252['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x56b2a0)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1da399,_0x2f4edb)=>{const _0x26847b=this['_findChangeIdFromDomTarget'](_0x2f4edb['target']),_0xf9f0f8=this['_changeIdToChange']['get'](_0x26847b);_0xf9f0f8?(this['_activeViewTarget']={'x':_0x2f4edb['domEvent']['x'],'y':_0x2f4edb['domEvent']['y']},_0xf9f0f8===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xf9f0f8):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5624ca){do{const _0x1be6f3=_0x5624ca['getAttribute']('data-change-id');if(_0x1be6f3)return _0x1be6f3;_0x5624ca=_0x5624ca['parent'];}while(_0x5624ca);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2441e3=>{for(const _0x558b93 of this['editor']['model']['markers'])_0x2441e3['removeMarker'](_0x558b93);});}}function downcastSplitMergeMarker$2(_0x44a109){const _0x31254e=_0x44a109['plugins']['get']('RevisionViewer');return(_0x459db8,_0xb1bbb1,_0x203fe7)=>{const _0x344986=_0xb1bbb1['markerName']['split'](':')[0x1],_0x5dc96c=_0x31254e['_getChangeFromId'](_0x344986);if(!_0x5dc96c)return null;const _0x1a849a='add'==_0x5dc96c['type']?'split':'merge';if(!_0x203fe7['consumable']['test'](_0xb1bbb1['markerRange'],_0x459db8['name']))return;const _0x54c2f9=_0xb1bbb1['markerRange']['getWalker'](),_0x1cdf7e=_0xb1bbb1['markerRange']['start'],_0x4da5ea=_0x44a109['model']['schema'];let _0x562fb6=null,_0x4b2014=null,_0x5f4bb0=!0x1,_0x2991f1=!0x1;for(const _0x2d15d2 of _0x54c2f9){const _0x398680=_0x2d15d2['item'];_0x5f4bb0=_0x5f4bb0||_0x4da5ea['isContent'](_0x398680);const _0x1db214=_0x203fe7['mapper']['toViewElement'](_0x398680);if(_0x1db214&&_0x1db214['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d15d2['type']&&(_0x4da5ea['isBlock'](_0x398680)&&!_0x4da5ea['isLimit'](_0x398680)&&(_0x398680['nextSibling']||_0x1cdf7e['isAtEnd']?_0x562fb6&&_0x562fb6['parent']==_0x398680||(_0x562fb6=_0x398680,_0x1348ab(_0x2d15d2['previousPosition']),_0x2991f1=!0x0):_0x4b2014=_0x4b2014||_0x2d15d2['previousPosition']));}function _0x1348ab(_0x5bfb6e){const _0xb1b59e=_0x203fe7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1a849a}),_0x51963d=_0x203fe7['mapper']['toViewPosition'](_0x5bfb6e);_0x5dc96c['data']['isSuggestion']&&_0x203fe7['writer']['addClass']('ck-suggestion-marker-'+_0x1a849a+'-new',_0xb1b59e),_0x31254e['activeChange']==_0x5dc96c&&_0x203fe7['writer']['addClass']('ck-suggestion-marker--active',_0xb1b59e),_0x203fe7['writer']['insert'](_0x51963d,_0xb1b59e),_0x203fe7['mapper']['bindElementToMarker'](_0xb1b59e,_0xb1bbb1['markerName']);}_0x5f4bb0||_0x2991f1||!_0x4b2014||_0x1348ab(_0x4b2014);};}function downcastSplitMergeMarkerSuggestion(_0x12c004,_0x4d7c8b){return(_0x2bacab,_0x327f86,_0x54990f)=>{if(!_0x54990f['consumable']['test'](_0x327f86['markerRange'],_0x2bacab['name']))return;const _0x73d5ed=_0x327f86['markerRange']['getWalker'](),_0x19dd8e=_0x327f86['markerRange']['start'],_0x5dfe87=_0x12c004['model']['schema'];let _0x393996=null,_0x3f97b5=null,_0x26fecc=!0x1,_0x5136b5=!0x1;for(const _0xff7203 of _0x73d5ed){const _0xd67305=_0xff7203['item'];_0x26fecc=_0x26fecc||_0x5dfe87['isContent'](_0xd67305);const _0xd1add7=_0x54990f['mapper']['toViewElement'](_0xd67305);if(_0xd1add7&&_0xd1add7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xff7203['type']&&(_0x5dfe87['isBlock'](_0xd67305)&&!_0x5dfe87['isLimit'](_0xd67305)&&(_0xd67305['nextSibling']||_0x19dd8e['isAtEnd']?_0x393996&&_0x393996['parent']==_0xd67305||(_0x393996=_0xd67305,_0x26e181(_0xff7203['previousPosition']),_0x5136b5=!0x0):_0x3f97b5=_0x3f97b5||_0xff7203['previousPosition']));}function _0x26e181(_0x11106e){const _0x2ae826=_0x54990f['mapper']['toViewPosition'](_0x11106e),_0x2e494a=_0x54990f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4d7c8b});_0x54990f['writer']['insert'](_0x2ae826,_0x2e494a),_0x54990f['mapper']['bindElementToMarker'](_0x2e494a,_0x327f86['markerName']);}_0x26fecc||_0x5136b5||!_0x3f97b5||_0x26e181(_0x3f97b5);};}class RestoreRevisionCommand extends _0x142ccd{constructor(_0x282542){super(_0x282542);const _0x17cf9f=_0x282542['plugins']['get'](RevisionViewer);this['affectsData']=!0x1,this['listenTo'](_0x17cf9f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x17cf9f,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3ac6ca=this['editor'],_0xa10f03=_0x3ac6ca['plugins']['get'](RevisionViewer),_0x4fc843=_0xa10f03['isReady']?_0xa10f03['diff']['newRevisionId']:null;_0x3ac6ca['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4fc843);}['refresh'](){const {isReady:_0x4a9ac8,isEnabled:_0x46fb4e,repository:_0x1513b6,diff:_0x9319c4}=this['editor']['plugins']['get'](RevisionViewer),_0x14bff8=_0x9319c4&&_0x1513b6['getLaterVisibleRevision'](_0x9319c4['newRevisionId']);this['isEnabled']=_0x4a9ac8&&_0x46fb4e&&Boolean(_0x14bff8);}}class ShowChangeCommand extends _0x142ccd{['_step'];constructor(_0x3421b2,{direction:_0x2a3bab}){super(_0x3421b2);const _0x10aba5=_0x3421b2['plugins']['get'](RevisionViewer);this['affectsData']=!0x1,this['_step']='forward'===_0x2a3bab?0x1:-0x1,this['listenTo'](_0x10aba5,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x10aba5,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x10aba5,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x19e208=this['editor'],_0x7b6a69=_0x19e208['plugins']['get'](RevisionViewer),{isNavigationMode:_0x3b683c,currentChangeNumber:_0x509a3e}=_0x7b6a69;let _0x3786db;if(_0x7b6a69['activeChange']=_0x3b683c?_0x7b6a69['diff']['changes']['get'](_0x509a3e+this['_step']):_0x7b6a69['diff']['changes']['first'],_0x7b6a69['activeChange']['data']['isOnRoot'])_0x3786db=_0x19e208['editing']['view']['getDomRoot'](_0x7b6a69['activeChange']['rootName']);else{const _0x5d2c65=_0x19e208['model']['markers']['get']('revision:'+_0x7b6a69['activeChange']['id']);_0x3786db=getMarkerDomElement(_0x19e208['editing'],_0x5d2c65);}scrollViewportToShowTarget({'target':_0x3786db,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x558b90,currentChangeNumber:_0x441965,numberOfChanges:_0x1826bd,isReady:_0x13847b,isEnabled:_0x28ae08}=this['editor']['plugins']['get'](RevisionViewer);this['isEnabled']=!!(_0x28ae08&&_0x13847b&&_0x1826bd)&&(!_0x558b90||(0x1===this['_step']?_0x441965<_0x1826bd-0x1:_0x441965>0x0));}}class ChangesNavigationView extends View{constructor(_0x3059a0){super(_0x3059a0);const _0x4b854d=this['bindTemplate'],_0x258ff7=new ButtonView(_0x3059a0),_0x20e235=new ButtonView(_0x3059a0);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x428c5b,_0x4b9108)=>_0x428c5b&&_0x4b9108>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4f96ef,_0x347c69,_0x2820f2,_0x2455cb)=>{if(!_0x4f96ef)return getTranslation$5(_0x3059a0,'Loading...');if(!_0x2820f2)return getTranslation$5(_0x3059a0,'No\x20changes');const _0x505ae3=getTranslation$5(_0x3059a0,'NUMBER_OF_CHANGES',_0x2820f2);return _0x2455cb?getTranslation$5(_0x3059a0,'X_OF_Y_CHANGES',[_0x347c69+0x1,_0x2820f2]):_0x505ae3;}),_0x258ff7['set']({'label':getTranslation$5(_0x3059a0,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':IconChevronUp}),_0x20e235['set']({'label':getTranslation$5(_0x3059a0,'Show\x20next\x20change'),'tooltip':!0x0,'icon':IconChevronDown}),_0x258ff7['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x20e235['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x258ff7['on']('execute',()=>this['fire']('execute','backward')),_0x20e235['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x4b854d['if']('_isStatusLabelVisible','ck-hidden',_0x550f8b=>!_0x550f8b)]},'children':[{'text':_0x4b854d['to']('isNavigationMode',_0x103323=>_0x103323?getTranslation$5(_0x3059a0,'EDIT_X_OF_Y_REVISIONS')+':\x20':getTranslation$5(_0x3059a0,'Total')+':\x20')}]},{'text':_0x4b854d['to']('_statusText')}]},new ToolbarSeparatorView(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x258ff7,_0x20e235]}]});}}const OVERLAY_CSS_CLASS='ck-editor__editable__loading-overlay';class RevisionViewerLoadingOverlay extends Plugin{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5833fd=this['editor']['editing']['view'];_0x5833fd['change'](_0x40e696=>{for(const _0x2fb66d of _0x5833fd['document']['roots'])_0x40e696['addClass'](OVERLAY_CSS_CLASS,_0x2fb66d);});}['hide'](){const _0x2497fa=this['editor']['editing']['view'];_0x2497fa['change'](_0x34c681=>{for(const _0x509708 of _0x2497fa['document']['roots'])_0x34c681['removeClass'](OVERLAY_CSS_CLASS,_0x509708);});}}class RevisionViewerUI extends Plugin{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[RevisionViewer,RevisionViewerLoadingOverlay];}['init'](){const _0x386b2b=this['editor'],_0x2c55e4=_0x386b2b['plugins']['get'](RevisionViewer),_0x2c034b=_0x386b2b['plugins']['get'](RevisionViewerLoadingOverlay);_0x386b2b['ui']['componentFactory']['add']('exitToEditing',_0x1191d4=>{const _0xf9d28c=new ButtonView(_0x1191d4);return _0xf9d28c['set']({'label':getTranslation$5(_0x1191d4,'Back\x20to\x20editing'),'icon':IconUndo,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xf9d28c,'execute',()=>{_0x386b2b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xf9d28c;}),_0x386b2b['ui']['componentFactory']['add']('restoreRevision',_0x3d7c4e=>{const _0x23a0ef=new ButtonView(_0x3d7c4e);return _0x23a0ef['set']({'label':getTranslation$5(_0x3d7c4e,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x23a0ef['bind']('isEnabled')['to'](_0x386b2b['commands']['get']('restoreRevision')),this['listenTo'](_0x23a0ef,'execute',()=>_0x386b2b['execute']('restoreRevision')),_0x23a0ef;}),_0x386b2b['ui']['componentFactory']['add']('changesNavigation',_0x269954=>{const _0x4b5d29=new ChangesNavigationView(_0x269954),_0x5d93da=_0x386b2b['commands']['get']('showPreviousChange'),_0x169c1e=_0x386b2b['commands']['get']('showNextChange');return _0x4b5d29['bind']('isBackwardNavigationEnabled')['to'](_0x5d93da,'isEnabled'),_0x4b5d29['bind']('isForwardNavigationEnabled')['to'](_0x169c1e,'isEnabled'),_0x4b5d29['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2c55e4),this['listenTo'](_0x4b5d29,'execute',(_0x51d16e,_0x2c07b7)=>{_0x386b2b['execute']('forward'===_0x2c07b7?'showNextChange':'showPreviousChange');}),_0x4b5d29;}),_0x2c034b['show'](),_0x2c55e4['on']('change:isReady',(_0x5a9bbb,_0x276e09,_0x9d2e6a)=>{_0x9d2e6a?_0x2c034b['hide']():_0x2c034b['show']();});}}class RevisionNameView extends LabeledFieldView{['_resizeObserver']=null;constructor(_0x54f3bd,_0x1b480e){super(_0x54f3bd,_0x1b480e);const _0x61fa67=this['bindTemplate'];this['set']({'label':getTranslation$5(_0x54f3bd,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=getTranslation$5(_0x54f3bd,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x61fa67['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new _0xf5cfe0(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xf75865=this['fieldView']['element'];this['_tooltipString']=_0xf75865['scrollWidth']>_0xf75865['clientWidth']&&_0xf75865['value']||'';}}class RevisionAuthorView extends View{constructor(_0x164da1,_0x5991f7,_0x445cd1){super(_0x164da1);const _0x5c92e2=new IconView();_0x5c92e2['set']({'content':IconUser,'viewBox':'0\x200\x2011\x2010'});const _0x3c1026=['ck','ck-revision-history-sidebar__revision-author'];_0x445cd1&&_0x3c1026['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4d58ce=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':getTranslation$5(_0x164da1,_0x445cd1?'Revision\x20creator':'Revision\x20author')},'children':[_0x5c92e2,_0x5991f7['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3c1026},'children':_0x4d58ce});}}function dateToPrettyFormat(_0x5cb14c,_0x262e68){return _0x262e68['toLocaleDateString'](_0x5cb14c,{'month':'long','day':'numeric'})+',\x20'+_0x262e68['toLocaleTimeString'](_0x5cb14c,{'hour':'numeric','minute':'numeric'});}function createActionsDropdownView(_0x3d16b6,_0x5c4d03){const _0x3dd666=_0x3d16b6['bindTemplate'],_0x3b019c=_0x3d16b6['locale'],_0x450b87=createDropdown(_0x3b019c);_0x450b87['panelPosition']='sw';const _0x20a938=_createDropdownOptions(_0x3d16b6,_0x5c4d03);return _0x3d16b6['bind']('isActionsDropdownOpen')['to'](_0x450b87,'isOpen'),_0x450b87['buttonView']['set']({'label':getTranslation$5(_0x3b019c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':IconThreeVerticalDots}),_0x450b87['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3dd666['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3dd666['to'](_0x111969=>_0x111969['stopPropagation']())}}),_0x450b87['on']('execute',_0x5d1f1e=>{_0x3d16b6['isReady']&&'function'==typeof _0x5d1f1e['source']['_action']&&_0x5d1f1e['source']['_action'](_0x3d16b6);}),addListToDropdown(_0x450b87,_0x20a938,{'role':'menu'}),_0x450b87['listenTo'](_0x3d16b6,'change:isActionsDropdownOpen',(_0xad3025,_0x30bf6a,_0x7fb63)=>{if(_0x7fb63)for(const _0x47a114 of _0x450b87['listView']['items']){const _0x32d0d6=_0x47a114['children']['first'],_0x2b155c=_0x5c4d03['find'](_0x59456d=>_0x59456d['action']===_0x32d0d6['_action'])['isVisible'];_0x47a114['isVisible']=void 0x0===_0x2b155c||_0x2b155c(_0x3d16b6);}}),_0x450b87;}function _createDropdownOptions(_0x1e223f,_0x46997c){const _0x21f043=_getLocalizedOptions(_0x1e223f,_0x46997c),_0x313732=new Collection();for(const _0x167685 of _0x21f043){const _0x1da2d3={'type':'button','model':new UIModel({'label':_0x167685['name'],'class':_0x167685['class'],'withText':!0x0,'role':'menuitem','_action':_0x167685['action']})};_0x1da2d3['model']['bind']('isEnabled')['to'](_0x1e223f,'isActionsDropdownOpen',_0x2fb0b1=>'function'!=typeof _0x167685['isEnabled']||(!_0x2fb0b1||_0x167685['isEnabled'](_0x1e223f))),_0x313732['add'](_0x1da2d3);}return _0x313732;}function _getLocalizedOptions(_0xfb84c2,_0x145c67){const _0x2277e3=_0xfb84c2['locale'],_0x20ade7={'Compare\x20against\x20selected':getTranslation$5(_0x2277e3,'Compare\x20against\x20selected'),'Name\x20this\x20revision':getTranslation$5(_0x2277e3,'Name\x20this\x20revision'),'Restore\x20this\x20revision':getTranslation$5(_0x2277e3,'Restore\x20this\x20revision')};return _0x145c67['map'](_0x5e8a00=>{const _0x54776b=_0x20ade7[_0x5e8a00['name']];return _0x54776b&&_0x54776b!==_0x5e8a00['name']&&(_0x5e8a00['name']=_0x54776b),_0x5e8a00;});}class RevisionView extends/* #__PURE__ -- @preserve */
ConfirmMixin(View){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x595d3f,_0x207964,_0x42cdee,_0x33d8f3){super(_0x595d3f);const _0x169b60=this['bindTemplate'],_0x43340f=getAuthorViews(_0x595d3f,_0x207964);this['id']=_0x207964['id'],this['_revision']=_0x207964,this['_requireRevisionName']=_0x33d8f3,this['bind']('name','createdAt')['to'](_0x207964),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x6db335=>dateToPrettyFormat(_0x595d3f['uiLanguage'],_0x6db335)),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new RevisionNameView(_0x595d3f,createLabeledInputText),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2824d0=>_0x2824d0||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x236e51,_0x24aae3)=>_0x236e51&&_0x24aae3),this['revisionActionsView']=_0x42cdee&&_0x42cdee['length']?createActionsDropdownView(this,_0x42cdee):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x169b60['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x169b60['if']('isEnabled','ck-disabled',_0x2b2828=>!_0x2b2828),_0x169b60['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x169b60['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x169b60['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x169b60['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x43340f}]},this['revisionActionsView']],'on':{'click':_0x169b60['to'](_0x285719=>{_0x285719['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1233c2=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1233c2,'change',()=>{this['_requireRevisionName']&&!_0x1233c2['value']||this['fire']('setName',{'id':this['id'],'name':_0x1233c2['value']}),_0x1233c2['value']||(_0x1233c2['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function getAuthorViews(_0x483b03,_0x58594a){const _0x11e4ed=Array['from'](_0x58594a['authors'])['filter'](_0xe61d4e=>_0xe61d4e!=_0x58594a['creator']);return _0x58594a['creator']&&_0x11e4ed['unshift'](_0x58594a['creator']),_0x11e4ed['map'](_0x5c3445=>new RevisionAuthorView(_0x483b03,_0x5c3445,_0x5c3445==_0x58594a['creator']));}function getDateTimePeriodInfo(_0x532c0f,_0x5a2a96){const _0x437ab8=DateTime['fromJSDate'](_0x532c0f)['setLocale'](_0x5a2a96),_0x406ddf=DateTime['local'](),_0x3a7c21=_0x406ddf['minus']({'days':0x1})['startOf']('day');let _0x389d2a,_0x2fc821;return _0x437ab8['hasSame'](_0x406ddf,'day')?(_0x389d2a=_0x437ab8['startOf']('day')['toJSDate'](),_0x2fc821=_0x437ab8['toRelativeCalendar']()):_0x437ab8['hasSame'](_0x3a7c21,'day')?(_0x389d2a=_0x3a7c21['toJSDate'](),_0x2fc821=_0x437ab8['toRelativeCalendar']()):_0x437ab8['hasSame'](_0x406ddf,'week')?(_0x389d2a=_0x437ab8['startOf']('week')['toJSDate'](),_0x2fc821=_0x437ab8['weekdayLong']||''):_0x437ab8['hasSame'](_0x406ddf,'year')?(_0x389d2a=_0x437ab8['startOf']('month')['toJSDate'](),_0x2fc821=_0x437ab8['monthLong']||''):(_0x389d2a=_0x437ab8['startOf']('year')['toJSDate'](),_0x2fc821=String(_0x437ab8['year'])),{'startDate':_0x389d2a,'localizedPeriodName':_0x2fc821};}class RevisionsSidebarTimePeriodView extends View{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5d992b,_0x13b5d2,_0x3b93fc,_0x33c1f6){super(_0x5d992b);const _0xb4f366=getDateTimePeriodInfo(_0x13b5d2,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x13b5d2,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3b93fc,this['_requireRevisionName']=_0x33c1f6,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0xb4f366}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4b684f){const _0x319e11=new RevisionView(this['locale'],_0x4b684f,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x319e11);}['removeRevision'](_0x2d8070){const _0x20216f=this['revisionViews']['find'](_0x43de29=>_0x43de29['id']===_0x2d8070['id']);this['revisionViews']['remove'](_0x20216f);}}class RevisionsSidebarHeaderView extends View{constructor(_0x10c4de){super(_0x10c4de);const _0x213bac=new IconView();_0x213bac['content']=IconHistory,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x213bac,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[getTranslation$5(_0x10c4de,'Revision\x20history')]}]});}}class RevisionsSidebarView extends View{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x54e360,_0x4d8296,_0x25bf99,_0xb25a6f){super(_0x54e360);const _0x4c2553=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4d8296,this['_revisionActions']=_0x25bf99,this['_requireRevisionName']=_0xb25a6f,this['on']('select',(_0x1a9974,_0x3e1304)=>{this['fire']('revisionSelected',_0x3e1304);}),this['on']('setName',(_0x39375d,_0x113972)=>{this['fire']('revisionSetName',_0x113972);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new RevisionsSidebarHeaderView(_0x54e360),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4c2553['if']('isEnabled','ck-disabled',_0x4e7e10=>!_0x4e7e10)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x46c18c of this['_revisions'])this['_addRevision'](_0x46c18c);this['_revisions']['on']('add',(_0x3c32eb,_0x5595b4)=>{this['_addRevision'](_0x5595b4);}),this['_revisions']['on']('remove',(_0x2ebd3e,_0x31e12e)=>{this['_removeRevision'](_0x31e12e);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x587221=>_0x587221['revisionViews']['map'](_0x2c9c82=>_0x2c9c82))['flat']();}['selectRevision'](_0x429cbe){for(const _0x5f2531 of this['revisionViews'])_0x429cbe&&_0x429cbe['id']===_0x5f2531['id']?_0x5f2531['select']():_0x5f2531['deselect']();}['highlightRevisions'](_0x297827){for(const _0x51503e of this['revisionViews'])_0x297827['some'](({id:_0x51d37d})=>_0x51d37d===_0x51503e['id'])?_0x51503e['highlight']():_0x51503e['unhighlight']();}['_addRevision'](_0x407deb){const _0x10b717=getDateTimePeriodInfo(_0x407deb['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xdc7a52=this['timePeriodViews']['get'](0x0);_0xdc7a52&&_0xdc7a52['startDate']['getTime']()===_0x10b717['getTime']()||(_0xdc7a52=new RevisionsSidebarTimePeriodView(this['locale'],_0x10b717,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xdc7a52)),_0xdc7a52['addRevision'](_0x407deb);}['_removeRevision'](_0x389e49){const _0x529c18=getDateTimePeriodInfo(_0x389e49['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x529c18)['removeRevision'](_0x389e49);}['_getTimePeriodViewByStartDate'](_0x2b0b79){return this['timePeriodViews']['find'](_0x18141e=>_0x18141e['startDate']['getTime']()===_0x2b0b79['getTime']());}}class RevisionsSidebar extends Plugin{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
availableRevisionActions();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[RevisionViewer];}constructor(_0x28f2cc){super(_0x28f2cc),this['_revisionViewer']=_0x28f2cc['plugins']['get'](RevisionViewer),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xf557a9=this['_revisionsRepository']['_revisions'],_0x435ef5=this['_createRevisionActions'](),_0xf3f887=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new RevisionsSidebarView(this['editor']['locale'],_0xf557a9,_0x435ef5,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x3ed088,_0x1a0490)=>{_0x1a0490['revisionViews']['on']('add',(_0x946c93,_0x169a0f)=>{_0x169a0f['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0xf3f887['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1cedd0=this['_revisionsRepository']['getRevision'](0x0);if(_0x1cedd0){const _0x1bfe7f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1cedd0['id']);this['_revisionViewer']['compare'](_0x1cedd0,_0x1bfe7f);}}['_handleRevisionSelected'](_0x16344b,_0x30e9d8){const _0x364706=this['_revisionsRepository']['getRevision'](_0x30e9d8['id']),_0x255344=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x364706['id']);this['_revisionViewer']['compare'](_0x364706,_0x255344);}['_handleRevisionSetName'](_0x3a5280,_0x20ecd0){this['_revisionsRepository']['getRevision'](_0x20ecd0['id'])['setName'](_0x20ecd0['name']);}['_handleDiffChange'](_0x1c8685,_0x31a87c,_0x37737d){const _0x28bd6a=this['_revisionsRepository']['getRevisionsInDiff'](_0x37737d);_0x28bd6a['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x28bd6a),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x28bd6a[0x0]));}['_createRevisionActions'](){const _0x2d49c2=this['editor'],_0x43025e=RevisionsSidebar['availableRevisionActions'],_0x3a1751=_0x2d49c2['config']['get']('revisionHistory.revisionActions')||RevisionsSidebar['defaultRevisionActions'];if(_0x3a1751['length'])return _0x3a1751['map'](_0x28e0ab=>{const _0x4ebbc6='string'==typeof _0x28e0ab?Object['assign']({},_0x43025e[_0x28e0ab]):_0x28e0ab;return _0x4ebbc6['action']=_0x4ebbc6['action']['bind'](this,_0x2d49c2),_0x4ebbc6['isVisible']&&(_0x4ebbc6['isVisible']=_0x4ebbc6['isVisible']['bind'](this,_0x2d49c2)),_0x4ebbc6;});}}function availableRevisionActions(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4037b4},_0x2c5b58)=>{const _0x755e65=_0x4037b4['get'](RevisionViewer),_0x26be57=_0x755e65['repository'];let _0x446903=_0x755e65['diff']['newRevisionId'],_0x32b156=_0x2c5b58['id'];_0x26be57['getIndex'](_0x446903)>_0x26be57['getIndex'](_0x32b156)&&([_0x446903,_0x32b156]=[_0x32b156,_0x446903]),_0x755e65['compare'](_0x446903,_0x32b156);},'isVisible':({plugins:_0x26d8fe},_0x28c42d)=>{const _0x12edfb=_0x26d8fe['get'](RevisionViewer);return!(_0x12edfb['repository']['getRevisionsInDiff'](_0x12edfb['diff'])['length']>0x2)&&!_0x28c42d['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x333e4b,{id:_0x45b773})=>{_0x333e4b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x45b773);},'isVisible':({plugins:_0x3bac68},_0x39f7f8)=>!!_0x3bac68['get'](RevisionViewer)['repository']['getLaterVisibleRevision'](_0x39f7f8['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x545e3b},{id:_0x2f6fbc,revisionNameView:_0x1466f1})=>{const _0x44a947=_0x545e3b['get'](RevisionViewer),_0x4cc137=_0x44a947['repository']['getEarlierVisibleRevision'](_0x2f6fbc);_0x44a947['compare'](_0x2f6fbc,_0x4cc137),_0x1466f1['focus'](),_0x1466f1['fieldView']['select']();}}};}class RevisionViewerEditorUI extends EditorUI{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4c8f98,_0x2487a5){super(_0x4c8f98),this['_view']=_0x2487a5,this['_toolbarConfig']=normalizeToolbarConfig(_0x4c8f98['config']['get']('toolbar')),this['_elementReplacer']=new ElementReplacer();}get['element'](){return this['view']['element'];}['init'](_0x305bce){const _0x51aca3=this['editor'],_0x44db2b=this['view'],_0x4db1bc=_0x51aca3['editing']['view'],_0x50bd32=_0x44db2b['editable'],_0x1d47e8=_0x4db1bc['document']['getRoot']();_0x50bd32['name']=_0x1d47e8['rootName'],_0x44db2b['render']();const _0x49725b=_0x50bd32['element'];this['setEditableElement'](_0x50bd32['name'],_0x49725b),_0x44db2b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4db1bc['attachDomRoot'](_0x49725b),this['_elementReplacer']['replace'](_0x305bce,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x31f2e3=this['view'],_0x5ee106=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5ee106['detachDomRoot'](_0x31f2e3['editable']['name']),_0x31f2e3['destroy']();}['_initToolbar'](){const _0x42bd9d=this['view'];_0x42bd9d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x42bd9d['stickyPanel']['limiterElement']=_0x42bd9d['element'],_0x42bd9d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x168b1e})=>_0x168b1e),_0x42bd9d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x42bd9d['toolbar']);}}class RevisionViewerEditorUIView extends BoxedEditorUIView{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x57a6b6,_0x2335f6,_0x17d9e5={}){super(_0x57a6b6),this['stickyPanel']=new StickyPanelView(_0x57a6b6),this['toolbar']=new ToolbarView(_0x57a6b6,{'shouldGroupWhenFull':_0x17d9e5['shouldToolbarGroupWhenFull']}),this['_editable']=new InlineEditableUIView(_0x57a6b6,_0x2335f6);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class RevisionViewerEditor extends/* #__PURE__ -- @preserve */
ElementApiMixin(Editor){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2f32a7,_0xe9762b){super(_0xe9762b),this['sourceElement']=_0x2f32a7,this['model']['document']['createRoot']();const _0x1e0b6b=new RevisionViewerEditorUIView(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new RevisionViewerEditorUI(this,_0x1e0b6b);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1882b2,_0x23d8df){const _0x1553a0=new this(_0x1882b2,_0x23d8df);return await _0x1553a0['initPlugins'](),await _0x1553a0['ui']['init'](_0x1882b2),await _0x1553a0['data']['init'](_0x1553a0['config']['get']('initialData')||''),_0x1553a0['fire']('ready'),_0x1553a0;}}const blackListedPlugins$1=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class RevisionViewerIntegration extends Plugin{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x200235){function _0x22fbbd(_0x51fd34){return _0x51fd34['map'](_0x1cbdf3=>String['fromCharCode'](_0x1cbdf3))['join']('');}super(_0x200235),this['result']='end',_0x200235[_0x22fbbd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22fbbd([0x76,0x69,0x65,0x77])][_0x22fbbd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22fbbd([0x61,0x75,0x74,0x6f]),_0x200235[_0x22fbbd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x22fbbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22fbbd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x22fbbd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x22fbbd([0x6f,0x6b])});}}class RevisionHistory extends Plugin{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[RevisionTracker,RevisionHistoryUI];}constructor(_0x5de714){if(super(_0x5de714),!this['editor']['config']['get']('revisionHistory'))throw new CKEditorError('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x218090=>this['_showRevisionViewer']({..._0x218090,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x459659=>this['_closeRevisionViewer'](_0x459659)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x110ccd=>this['_restoreRevision'](_0x110ccd)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xf698f3){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xf698f3;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x40fed7){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x40fed7);}['getRevision'](_0x53e320){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x53e320);}['getRevisions'](_0x54a841){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x54a841||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x559752=this['editor'],_0x9db065=sanitizeEditorConfig(_0x559752,blackListedPlugins$1),_0x5fff35=_0x559752['plugins']['get']('RevisionTracker'),_0x4e50f7=_0x559752['plugins']['get']('Users')['users'];return _0x9db065['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x9db065['lazyRoots'],(_0x9db065['plugins']['push'](RevisionViewerIntegration,RevisionViewer,RevisionViewerUI,class extends Plugin{static get['requires'](){return[RevisionViewer,'Users'];}['init'](){const _0xdb381a=this['editor']['plugins']['get']('Users');for(const _0x52300a of _0x4e50f7)_0x52300a['isAnonymous']||_0xdb381a['getUser'](_0x52300a['id'])||_0xdb381a['addUser'](_0x52300a);const _0x1d64a2=_0x5fff35['repository']['getRevisions']();let _0x52b2ec=null;const _0x2578cb=this['editor']['plugins']['get']('RevisionViewer');_0x2578cb['adapter']=_0x5fff35['adapter'],_0x2578cb['bind']('isEnabled')['to'](_0x5fff35),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x559752,'isReadOnly',_0x404236=>!_0x404236);for(const _0x31176a of _0x1d64a2){const _0x439fa2=null===_0x31176a['creator'];if(_0x439fa2&&_0x31176a['toVersion']===_0x31176a['fromVersion'])continue;const _0x37ca86=_0x31176a['toJSON']();_0x2578cb['addRevisionData'](_0x37ca86,(_0x445322,_0x42aff2,_0x26eeb8)=>{if(_0x439fa2){if(_0x52b2ec)_0x52b2ec['_update'](_0x445322,_0x42aff2);else{if(!_0x42aff2){const _0xb2c0c=_0x26eeb8['toJSON']();_0xb2c0c['id']=uid(),_0x5fff35['saveRevision'](_0xb2c0c,_0x26eeb8['toVersion'])['then'](_0x52c470=>{_0x52b2ec=_0x52c470;});}}}else _0x31176a['_update'](_0x445322,_0x42aff2);});}}},RevisionsSidebar),_0x9db065);}['_enhanceShowRevisionViewerCallback'](){const _0x3ce37c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xaa9fb0=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3c9562=this['editor']['plugins']['get']('Autosave');await _0x3c9562['save']();}else await _0xaa9fb0['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x8677c5=this['editor']['plugins']['get']('Dialog');_0x8677c5['isOpen']&&_0x8677c5['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x19cffd=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x50b286 of _0x19cffd)_0x50b286['class']=_0x50b286['class']?_0x50b286['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x408b5a=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x408b5a&&_0x408b5a['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x2d4751=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x2d4751&&_0x2d4751['setAttribute']('tabindex','-1');}}const _0x29ce2f=this['_getRevisionViewerEditorConfig']();return _0x3ce37c(_0x29ce2f)['then'](_0x4b8c9b=>{return(this['_viewerEditor']=_0x4b8c9b,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x4b8c9b);})['catch'](_0x3330cc=>(console['error'](_0x3330cc),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2a2d7a=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x98322=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x40367b of _0x98322)_0x40367b['class']='ck-tab-panel_disabled'===_0x40367b['class']?'':_0x40367b['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x545df2=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x545df2&&_0x545df2['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x1d6726=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x1d6726&&_0x1d6726['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2a2d7a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xade85b=this['editor']['plugins']['get']('Annotations');_0xade85b['refreshVisibility'](),_0xade85b['refreshPositioning']();}});});}['_showRevisionViewer'](_0x77beb2){const _0x363486=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x445d26=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x58e213=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return RevisionViewerEditor['create'](_0x58e213,_0x77beb2)['then'](_0x121e7c=>(_0x445d26['style']['display']='block',_0x363486['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x121e7c));}['_closeRevisionViewer'](_0x1281fa){const _0x4f837a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4f837a['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1281fa['destroy']();}async['_restoreRevision'](_0x46a225){const _0x5c824a=this['editor'],_0xa31ae6=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4b785d=_0x5c824a['plugins']['get']('RevisionTracker'),_0x387fd0=_0x5c824a['plugins']['get']('RevisionHistoryUtils'),_0x5287c1=_0xa31ae6['repository']['getRevision'](_0x46a225);let _0x375499,_0x2117f3,_0x314c9b;try{await _0x387fd0['loadRevisionData'](_0x5287c1,this['adapter']),_0x375499=_0x387fd0['getRevisionDocumentData'](_0x5287c1),_0x2117f3=_0x387fd0['getRevisionRootsAttributes'](_0x5287c1);}catch(_0x275f2f){return void console['error'](_0x275f2f);}_0x5c824a['model']['change'](_0x549804=>{for(const _0x46d825 of Array['from'](_0x5c824a['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x549804['removeMarker'](_0x46d825);}),_0xa31ae6['isReady']=!0x1,_0x5c824a['model']['enqueueChange'](_0x55fead=>{_0x55fead['setSelection'](null),_0x55fead['removeSelectionAttribute'](_0x5c824a['model']['document']['selection']['getAttributeKeys']());const _0x5a8245=Object['keys'](_0x375499);for(const _0x44c144 of _0x5c824a['model']['document']['roots'])'$graveyard'!=_0x44c144['rootName']&&_0x44c144['isAttached']()&&!_0x5a8245['includes'](_0x44c144['rootName'])&&_0x55fead['detachRoot'](_0x44c144);for(const _0x31726f of _0x5a8245){let _0x1c6499=_0x5c824a['model']['document']['getRoot'](_0x31726f);_0x1c6499&&_0x1c6499['isAttached']()||(_0x1c6499=_0x55fead['addRoot'](_0x31726f));const _0x43a241=_0x2117f3[_0x31726f],_0x295481=Object['keys'](_0x43a241),_0x4f4137=_0x375499[_0x31726f];for(const _0x40051a of _0x1c6499['getAttributeKeys']())_0x295481['includes'](_0x40051a)||_0x55fead['removeAttribute'](_0x40051a,_0x1c6499);for(const _0x2ffc61 of _0x295481)_0x55fead['setAttribute'](_0x2ffc61,_0x2117f3[_0x31726f][_0x2ffc61],_0x1c6499);_0x55fead['remove'](_0x55fead['createRangeIn'](_0x1c6499)),_0x55fead['insert'](_0x5c824a['data']['parse'](_0x4f4137,_0x1c6499),_0x1c6499,0x0);}});const _0x18f12e=getTranslation$5(_0x5c824a['locale'],'Restored');if(_0x5287c1['name'])_0x314c9b=-0x1==_0x5287c1['name']['indexOf'](_0x18f12e)?_0x18f12e+':\x20'+_0x5287c1['name']:_0x5287c1['name'];else _0x314c9b=_0x18f12e+':\x20'+(_0x5287c1['createdAt']['toLocaleDateString'](_0x5c824a['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5287c1['createdAt']['toLocaleTimeString'](_0x5c824a['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4b785d['saveRevision']({'name':_0x314c9b}),_0xa31ae6['isReady']=!0x0,_0x5c824a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}function getTranslation$4(_0xcdb03c,_0x13e7b6){const t=_0xcdb03c['t'],_0x5a7c84=_0xcdb03c['t'];switch(_0x13e7b6){case'AI\x20Assistant':return _0x5a7c84('AI\x20Assistant');case'Block\x20quote':return _0x5a7c84('Block\x20quote');case'Bulleted\x20list':return _0x5a7c84('Bulleted\x20list');case'Insert\x20code\x20block':return _0x5a7c84('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x5a7c84('Open\x20file\x20manager');case'Insert\x20image':return _0x5a7c84('Insert\x20image');case'Heading\x201':return _0x5a7c84('Heading\x201');case'Heading\x202':return _0x5a7c84('Heading\x202');case'Heading\x203':return _0x5a7c84('Heading\x203');case'Heading\x204':return _0x5a7c84('Heading\x204');case'Heading\x205':return _0x5a7c84('Heading\x205');case'Heading\x206':return _0x5a7c84('Heading\x206');case'Horizontal\x20line':return _0x5a7c84('Horizontal\x20line');case'Insert\x20HTML':return _0x5a7c84('Insert\x20HTML');case'Increase\x20indent':return _0x5a7c84('Increase\x20indent');case'Insert\x20table':return _0x5a7c84('Insert\x20table');case'Table\x20of\x20contents':return _0x5a7c84('Table\x20of\x20contents');case'Numbered\x20list':return _0x5a7c84('Numbered\x20list');case'Decrease\x20indent':return _0x5a7c84('Decrease\x20indent');case'Paragraph':return _0x5a7c84('Paragraph');case'To-do\x20list':return _0x5a7c84('To-do\x20list');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');default:return _0x13e7b6;}}class SlashCommandConfig extends Plugin{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f26cf){super(_0x2f26cf),this['_allowedCommands']=null;}['afterInit'](){const _0x2cd932=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x40b5c4=getExcludedHeadings(this['editor']['config']['get']('heading.options')),_0x741431=this['getDefaultCommands']()['filter'](_0x2edf68=>!_0x40b5c4['includes'](_0x2edf68['id']));let _0x35b8e1=_0x741431['filter'](_0x467ade=>!_0x2cd932['includes'](_0x467ade['commandName']));const _0x12d5a9=this['editor']['config']['get']('slashCommand.extraCommands');_0x12d5a9&&_0x12d5a9['length']&&(_0x35b8e1=_0x35b8e1['concat'](_0x12d5a9));const _0x4d2c42=this['editor']['config']['get']('template.definitions');_0x4d2c42&&_0x4d2c42['length']&&(_0x35b8e1=_0x35b8e1['concat'](mapTemplates(_0x4d2c42)));const _0x19e881=this['editor']['config']['get']('style.definitions');_0x19e881&&_0x19e881['length']&&(_0x35b8e1=_0x35b8e1['concat'](mapStyles(_0x19e881)));const _0x1ff686=_0x35b8e1['filter'](_0x449f4d=>!_0x449f4d['commandName']||void 0x0!==this['editor']['commands']['get'](_0x449f4d['commandName'])),_0x39571d=[];for(const _0x4dc41c of _0x1ff686)_0x39571d['push']({'id':_0x4dc41c['id'],'commandName':_0x4dc41c['commandName'],'title':'function'==typeof _0x4dc41c['title']?_0x4dc41c['title'](this['editor']):_0x4dc41c['title'],'description':_0x4dc41c['description'],'icon':_0x4dc41c['icon'],'isIconColorInherited':_0x4dc41c['isIconColorInherited'],'aliases':_0x4dc41c['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x4dc41c),'execute':()=>this['_proxyExecute'](_0x4dc41c)});this['_allowedCommands']=_0x39571d['sort'](compareCommands),checkLicense$4(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x578ea8=_0x2bfc90=>getTranslation$4(this['editor']['locale'],_0x2bfc90);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':IconRobotPencil,'title':_0x578ea8('AI\x20Assistant'),'description':_0x578ea8('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x3c3559=>{setTimeout(()=>_0x3c3559['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':IconQuote,'title':_0x578ea8('Block\x20quote'),'description':_0x578ea8('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':IconBulletedList,'title':_0x578ea8('Bulleted\x20list'),'description':_0x578ea8('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':IconCodeBlock,'title':_0x578ea8('Insert\x20code\x20block'),'description':_0x578ea8('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x384899,'title':_0x578ea8('Open\x20file\x20manager'),'description':_0x578ea8('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x384899,'title':_0x578ea8('Insert\x20image'),'description':_0x578ea8('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':IconEmoji,'title':_0x578ea8('Emoji'),'description':_0x578ea8('Insert\x20an\x20emoji'),'execute':_0xec8caa=>{setTimeout(()=>_0xec8caa['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':IconHeading1,'title':_0x578ea8('Heading\x201'),'description':_0x578ea8('Create\x20a\x20heading\x20level\x201'),'execute':_0x30bbdd=>{_0x30bbdd['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':IconHeading2,'title':_0x578ea8('Heading\x202'),'description':_0x578ea8('Create\x20a\x20heading\x20level\x202'),'execute':_0x440b82=>{_0x440b82['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':IconHeading3,'title':_0x578ea8('Heading\x203'),'description':_0x578ea8('Create\x20a\x20heading\x20level\x203'),'execute':_0x64edec=>{_0x64edec['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':IconHeading4,'title':_0x578ea8('Heading\x204'),'description':_0x578ea8('Create\x20a\x20heading\x20level\x204'),'execute':_0x3b7cf7=>{_0x3b7cf7['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':IconHeading5,'title':_0x578ea8('Heading\x205'),'description':_0x578ea8('Create\x20a\x20heading\x20level\x205'),'execute':_0x3a4a4e=>{_0x3a4a4e['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':IconHeading6,'title':_0x578ea8('Heading\x206'),'description':_0x578ea8('Create\x20a\x20heading\x20level\x206'),'execute':_0x1b408e=>{_0x1b408e['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':IconHorizontalLine,'title':_0x578ea8('Horizontal\x20line'),'description':_0x578ea8('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':IconHtml,'title':_0x578ea8('Insert\x20HTML'),'description':_0x578ea8('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':IconIndent,'title':_0x578ea8('Increase\x20indent'),'description':_0x578ea8('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x578ea8('Insert\x20Mermaid\x20diagram'),'description':_0x578ea8('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':IconTable,'title':_0x578ea8('Insert\x20table'),'description':_0x578ea8('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':IconTableOfContents,'title':_0x578ea8('Table\x20of\x20contents'),'description':_0x578ea8('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':IconNumberedList,'title':_0x578ea8('Numbered\x20list'),'description':_0x578ea8('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':IconOutdent,'title':_0x578ea8('Decrease\x20indent'),'description':_0x578ea8('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':IconParagraph,'title':_0x578ea8('Paragraph'),'description':_0x578ea8('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':IconTodoList,'title':_0x578ea8('To-do\x20list'),'description':_0x578ea8('Create\x20a\x20to-do\x20list')}];}['_proxyIsEnabled'](_0x18ea2c){return _0x18ea2c['isEnabled']?_0x18ea2c['isEnabled'](this['editor']):!_0x18ea2c['commandName']||this['editor']['commands']['get'](_0x18ea2c['commandName'])['isEnabled'];}['_proxyExecute'](_0x3d1117){if(_0x3d1117['execute'])_0x3d1117['execute'](this['editor']);else{if(!_0x3d1117['commandName'])throw new CKEditorError('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x3d1117});this['editor']['execute'](_0x3d1117['commandName']);}}}function compareCommands(_0x5a6e88,_0x182bd3){return _0x5a6e88['title']<_0x182bd3['title']?-0x1:_0x5a6e88['title']>_0x182bd3['title']?0x1:0x0;}function convertTitleToId(_0x3e9ab0,_0x501929){return _0x501929+'-'+_0x3e9ab0['toLowerCase']()['split']('\x20')['join']('-');}function mapTemplates(_0x8c63ad){return _0x8c63ad['map'](_0x319bec=>{const {title:_0x19203e,icon:_0x1a31b2,description:_0xbe32fc,data:_0x57e2d1}=_0x319bec,_0x3c7d08={'id':convertTitleToId(_0x19203e,'template'),'commandName':'insertTemplate','execute':_0x1d0cbf=>{_0x1d0cbf['execute']('insertTemplate',_0x57e2d1);},'description':_0xbe32fc,'icon':_0x1a31b2,'title':_0x19203e};return _0x1a31b2&&(_0x3c7d08['isIconColorInherited']=!0x1),_0x3c7d08;});}function mapStyles(_0x59358c){return _0x59358c['map'](_0xf49acd=>{const _0x9007d9={'id':convertTitleToId(_0xf49acd['name'],'style'),'commandName':'style','execute':_0xd87dcf=>{_0xd87dcf['execute']('style',{'styleName':_0xf49acd['name']});},'isEnabled':_0x143657=>{const _0x3fbe44=_0x143657['commands']['get']('style');return _0x3fbe44['isEnabled']&&_0x3fbe44['enabledStyles']['includes'](_0xf49acd['name']);},'title':_0xf49acd['name']};return _0x9007d9;});}function getExcludedHeadings(_0x4fc79f){let _0x5357cf=['heading4','heading5','heading6'];if(_0x4fc79f){const _0x1d61c2=_0x4fc79f['map'](_0x161fc5=>_0x161fc5['model']);_0x5357cf=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x4e3b58=>!_0x1d61c2['includes'](_0x4e3b58));}return _0x5357cf;}async function checkLicense$4(_0x343ae7){const _0x504bcb=_0x40c02a([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x1c14e9=window[_0x40c02a([0x44,0x61,0x74,0x65])][_0x40c02a([0x6e,0x6f,0x77])](),_0x5e9ef5=_0x343ae7[_0x40c02a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4dcd68=new window[(_0x40c02a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x183ead=>{_0x5e9ef5[_0x40c02a([0x6f,0x6e,0x63,0x65])](_0x40c02a([0x72,0x65,0x61,0x64,0x79]),_0x183ead);}),_0x375141={[_0x40c02a([0x6b,0x74,0x79])]:_0x40c02a([0x45,0x43]),[_0x40c02a([0x75,0x73,0x65])]:_0x40c02a([0x73,0x69,0x67]),[_0x40c02a([0x63,0x72,0x76])]:_0x40c02a([0x50,0x2d,0x32,0x35,0x36]),[_0x40c02a([0x78])]:_0x40c02a([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x40c02a([0x79])]:_0x40c02a([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x40c02a([0x61,0x6c,0x67])]:_0x40c02a([0x45,0x53,0x32,0x35,0x36])},_0x21b5ac=_0x5e9ef5[_0x40c02a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40c02a([0x67,0x65,0x74])](_0x40c02a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x4c5c2c=await(async function(){let _0x3f15f3,_0x5f3a05=null,_0x2bd507=null;try{if(_0x21b5ac==_0x40c02a([0x47,0x50,0x4c]))return _0x40c02a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3f15f3=(function(){const _0x4cfc26=_0x21b5ac[_0x40c02a([0x73,0x70,0x6c,0x69,0x74])](_0x40c02a([0x2e]));if(0x3!=_0x4cfc26[_0x40c02a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0xb09166=_0x4cfc26[0x1];return _0x3e6847(_0xb09166);function _0x3e6847(_0x4c6fa9){const _0x464e28=_0x1727a9(_0x4c6fa9);return _0x464e28&&_0xf67266()?_0x464e28:null;function _0xf67266(){const _0x4c0b66=_0x464e28[_0x40c02a([0x6a,0x74,0x69])],_0x41e54d=window[_0x40c02a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c0b66[_0x40c02a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c0b66[_0x40c02a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e9111={..._0x464e28,[_0x40c02a([0x6a,0x74,0x69])]:_0x4c0b66[_0x40c02a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c0b66[_0x40c02a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e9111[_0x40c02a([0x76,0x63])],_0x5092a3(_0x2e9111)==_0x41e54d;}}}()),!_0x3f15f3)return _0x40c02a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x3f15f3[_0x40c02a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2bd507=function(_0x291524,_0xe71a83){return new window[(_0x40c02a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18c113=>{if(_0x47aba3())return _0x18c113(_0x40c02a([0x56,0x61,0x6c,0x69,0x64]));_0x4e6abb(),_0x5e9ef5[_0x40c02a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40c02a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14e9bc=!0x1;const _0x2bc4c4=uid();function _0x38e69d(_0x53fcfb){return!!_0x53fcfb&&(typeof _0x53fcfb===_0x40c02a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x53fcfb===_0x40c02a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x53fcfb[_0x40c02a([0x74,0x68,0x65,0x6e])]===_0x40c02a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x53fcfb[_0x40c02a([0x63,0x61,0x74,0x63,0x68])]===_0x40c02a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x14df94(_0x393768){_0x18595f(_0x393768)[_0x40c02a([0x74,0x68,0x65,0x6e])](_0x2c4124=>{if(!_0x2c4124||_0x2c4124[_0x40c02a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40c02a([0x6f,0x6b]))return _0x40c02a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x31c103(_0x5092a3(_0x2bc4c4+_0xe71a83))!=_0x2c4124[_0x40c02a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40c02a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40c02a([0x56,0x61,0x6c,0x69,0x64]);})[_0x40c02a([0x74,0x68,0x65,0x6e])](_0x499daf=>(_0x11b7f0(),_0x499daf),()=>{const _0x4c99cb=_0x1796a2();return null==_0x4c99cb?(_0x11b7f0(),_0x40c02a([0x56,0x61,0x6c,0x69,0x64])):_0x40c02a(_0x1c14e9-_0x4c99cb>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40c02a([0x74,0x68,0x65,0x6e])](_0x18c113)[_0x40c02a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x18c113(_0x40c02a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39b252=0x36ee80;function _0x11b7f0(){const _0x50a084=_0x40c02a([0x6c,0x6c,0x63,0x74,0x2d])+_0x31c103(_0x5092a3(_0x291524)),_0x3007ed=_0x6e08f(_0x31c103(window[_0x40c02a([0x4d,0x61,0x74,0x68])][_0x40c02a([0x63,0x65,0x69,0x6c])](_0x1c14e9/_0x39b252)));window[_0x40c02a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40c02a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50a084,_0x3007ed);}function _0x1796a2(){const _0x399518=_0x40c02a([0x6c,0x6c,0x63,0x74,0x2d])+_0x31c103(_0x5092a3(_0x291524)),_0x44dbd2=window[_0x40c02a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40c02a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x399518);return _0x44dbd2?window[_0x40c02a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6e08f(_0x44dbd2),0x10)*_0x39b252:null;}function _0x18595f(_0x491c20){return new window[(_0x40c02a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c9ec1,_0x4ef053)=>{_0x491c20[_0x40c02a([0x74,0x68,0x65,0x6e])](_0x1c9ec1,_0x4ef053),window[_0x40c02a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ef053,0x1d4c0);});}}_0x5e9ef5[_0x40c02a([0x6f,0x6e])](_0x40c02a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1acec4,_0x5cdca7)=>{if(_0x5cdca7[0x0]!=_0x291524)return _0x18c113(_0x40c02a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5cdca7[0x1]={..._0x5cdca7[0x1],[_0x40c02a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2bc4c4};},{[_0x40c02a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40c02a([0x68,0x69,0x67,0x68])}),_0x5e9ef5[_0x40c02a([0x6f,0x6e])](_0x40c02a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x461e28=>{_0x38e69d(_0x461e28[_0x40c02a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14e9bc=!0x0,_0x14df94(_0x461e28[_0x40c02a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40c02a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40c02a([0x6c,0x6f,0x77])}),_0x4dcd68[_0x40c02a([0x74,0x68,0x65,0x6e])](()=>{_0x14e9bc||_0x18c113(_0x40c02a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47aba3(){return _0x5e9ef5[_0x40c02a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40c02a([0x76,0x69,0x65,0x77])][_0x40c02a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40c02a([0x61,0x75,0x74,0x6f]);}function _0x4e6abb(){_0x5e9ef5[_0x40c02a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40c02a([0x76,0x69,0x65,0x77])][_0x40c02a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40c02a([0x61,0x75,0x74,0x6f]);}}(_0x3f15f3[_0x40c02a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3f15f3[_0x40c02a([0x6a,0x74,0x69])]));const _0x16cf0b=await(async function(){let _0x297bde=!0x0;try{const _0x51ce0b=_0x21b5ac[_0x40c02a([0x73,0x70,0x6c,0x69,0x74])](_0x40c02a([0x2e])),[_0x2a02e9,_0x470356,_0x3059d4]=_0x51ce0b;return _0x1ae123(_0x2a02e9),await _0x2d62ad(_0x2a02e9,_0x470356,_0x3059d4),_0x297bde;}catch{return!0x1;}function _0x1ae123(_0x2c27ff){const _0x2287d5=_0x1727a9(_0x2c27ff);_0x2287d5&&_0x2287d5[_0x40c02a([0x61,0x6c,0x67])]==_0x40c02a([0x45,0x53,0x32,0x35,0x36])||(_0x297bde=!0x1);}async function _0x2d62ad(_0x4824d5,_0x463b08,_0x19eca0){const _0x37766b=window[_0x40c02a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40c02a([0x66,0x72,0x6f,0x6d])](_0x1e1ea7(_0x19eca0),_0x2ec66e=>_0x2ec66e[_0x40c02a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1ffbc3=new window[(_0x40c02a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40c02a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4824d5+_0x40c02a([0x2e])+_0x463b08),_0x4d473c=window[_0x40c02a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40c02a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d473c)return;const _0x5d3a75=await _0x4d473c[_0x40c02a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40c02a([0x6a,0x77,0x6b]),_0x375141,{[_0x40c02a([0x6e,0x61,0x6d,0x65])]:_0x40c02a([0x45,0x43,0x44,0x53,0x41]),[_0x40c02a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40c02a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40c02a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d473c[_0x40c02a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40c02a([0x6e,0x61,0x6d,0x65])]:_0x40c02a([0x45,0x43,0x44,0x53,0x41]),[_0x40c02a([0x68,0x61,0x73,0x68])]:{[_0x40c02a([0x6e,0x61,0x6d,0x65])]:_0x40c02a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d3a75,_0x37766b,_0x1ffbc3)||(_0x297bde=!0x1);}}());return _0x16cf0b?(function(){const _0x256971=_0x3f15f3[_0x40c02a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x256971)return!0x1;if(_0x256971[_0x40c02a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40c02a([0x2a])))return!0x0;if(_0x256971[_0x40c02a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40c02a([0x53,0x43])))return!0x0;if(_0x256971[_0x40c02a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40c02a([0x50,0x50])))return!0x0;if(_0x256971[_0x40c02a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40c02a([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x40c02a([0x67,0x6c,0x6f,0x62])]&&window[_0x40c02a([0x67,0x6c,0x6f,0x62])][_0x40c02a([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x1f4c0c=[_0x40c02a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40c02a([0x74,0x72,0x69,0x61,0x6c])][_0x40c02a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f15f3[_0x40c02a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1c14e9/0x3e8:0x68f03580;return _0x3f15f3[_0x40c02a([0x65,0x78,0x70])]<_0x1f4c0c;}())?_0x40c02a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x35f2fa=_0x3f15f3[_0x40c02a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35f2fa||0x0==_0x35f2fa[_0x40c02a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3feaf6}=new URL(window[_0x40c02a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x35f2fa[_0x40c02a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3feaf6))return!0x0;const _0x9cd179=_0x3feaf6[_0x40c02a([0x73,0x70,0x6c,0x69,0x74])](_0x40c02a([0x2e]));return _0x35f2fa[_0x40c02a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5571f6=>_0x5571f6[_0x40c02a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40c02a([0x2a])))[_0x40c02a([0x6d,0x61,0x70])](_0x113d6b=>_0x113d6b[_0x40c02a([0x73,0x70,0x6c,0x69,0x74])](_0x40c02a([0x2e])))[_0x40c02a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x481958=>_0x481958[_0x40c02a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x9cd179[_0x40c02a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40c02a([0x6d,0x61,0x70])](_0x5a581d=>Array(_0x9cd179[_0x40c02a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5a581d[_0x40c02a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40c02a([0x66,0x69,0x6c,0x6c])](_0x5a581d[0x0]===_0x40c02a([0x2a])?_0x40c02a([0x2a]):'')[_0x40c02a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5a581d))[_0x40c02a([0x73,0x6f,0x6d,0x65])](_0x1ade4a=>_0x9cd179[_0x40c02a([0x65,0x76,0x65,0x72,0x79])]((_0x4f5993,_0x2bd7a3)=>_0x1ade4a[_0x2bd7a3]===_0x4f5993||_0x1ade4a[_0x2bd7a3]===_0x40c02a([0x2a])));}())?(_0x3f15f3[_0x40c02a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40c02a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5f3a05=_0x4d4093(_0x40c02a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3f15f3[_0x40c02a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40c02a([0x74,0x72,0x69,0x61,0x6c])&&(_0x5f3a05=_0x4d4093(_0x40c02a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x5f3a05&&_0x2bd507)return new window[(_0x40c02a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a51e2,_0xca5164)=>{_0x5f3a05[_0x40c02a([0x74,0x68,0x65,0x6e])](_0x2a51e2,_0xca5164),_0x2bd507[_0x40c02a([0x74,0x68,0x65,0x6e])](_0x1c99a5=>{_0x1c99a5!=_0x40c02a([0x56,0x61,0x6c,0x69,0x64])&&_0x2a51e2(_0x1c99a5);},_0xca5164);});return _0x5f3a05||_0x2bd507||_0x40c02a([0x56,0x61,0x6c,0x69,0x64]);}())):_0x40c02a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40c02a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40c02a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x40c02a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x4d4093(_0x59064c){const _0x5a39ed=[new window[(_0x40c02a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36f1f4=>setTimeout(_0x36f1f4,0x93ecc)),_0x4dcd68[_0x40c02a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40c02a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57ffd4=>{let _0x14838e=0x0;_0x5e9ef5[_0x40c02a([0x6d,0x6f,0x64,0x65,0x6c])][_0x40c02a([0x6f,0x6e])](_0x40c02a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x504ec2,_0xb7b225)=>{_0xb7b225[0x0][_0x40c02a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14838e++,0x1f8==_0x14838e&&(_0x57ffd4(),_0x504ec2[_0x40c02a([0x6f,0x66,0x66])]());});}))];return window[_0x40c02a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40c02a([0x72,0x61,0x63,0x65])](_0x5a39ed)[_0x40c02a([0x74,0x68,0x65,0x6e])](()=>_0x59064c);}function _0x1727a9(_0x25ac1f){return _0x25ac1f[_0x40c02a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40c02a([0x65,0x79]))?JSON[_0x40c02a([0x70,0x61,0x72,0x73,0x65])](_0x1e1ea7(_0x25ac1f)):null;}function _0x1e1ea7(_0x1c2960){return window[_0x40c02a([0x61,0x74,0x6f,0x62])](_0x1c2960[_0x40c02a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40c02a([0x2b]))[_0x40c02a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40c02a([0x2f])));}function _0x5092a3(_0x206cf5){let _0x495a31=0x1505;function _0x3b3ca8(_0x313f3b){for(let _0x41cb61=0x0;_0x41cb61<_0x313f3b[_0x40c02a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41cb61++){const _0x3cf858=_0x313f3b[_0x40c02a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x41cb61);_0x495a31=(_0x495a31<<0x5)+_0x495a31+_0x3cf858,_0x495a31&=_0x495a31;}}return function _0x2934d0(_0x1f54a7){Array[_0x40c02a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f54a7)?_0x1f54a7[_0x40c02a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2934d0):_0x1f54a7&&typeof _0x1f54a7==_0x40c02a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40c02a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f54a7)[_0x40c02a([0x73,0x6f,0x72,0x74])]()[_0x40c02a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e5896,_0x4538fd])=>{_0x3b3ca8(_0x2e5896),_0x2934d0(_0x4538fd);}):_0x3b3ca8(window[_0x40c02a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f54a7));}(_0x206cf5),_0x495a31>>>0x0;}function _0x31c103(_0x1c34f4){return _0x1c34f4[_0x40c02a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40c02a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40c02a([0x30]));}function _0x6e08f(_0x109002){return _0x109002[_0x40c02a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40c02a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40c02a([0x6a,0x6f,0x69,0x6e])]('');}function _0x50d556(){}function _0x40c02a(_0x5c37d9){return _0x5c37d9['map'](_0x3adb9d=>String['fromCharCode'](_0x3adb9d))['join']('');}!function(_0x319e9f){const _0x169a5a=(function(){const _0x56b333=window[_0x40c02a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40c02a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40c02a([0x6e,0x6f,0x77])]())[_0x40c02a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40c02a([0x2e]),'');let _0x127819=_0x40c02a([0x76]);for(let _0x3e5ec3=0x0;_0x3e5ec3<_0x56b333[_0x40c02a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e5ec3+=0x2){let _0x11af29=window[_0x40c02a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56b333[_0x40c02a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e5ec3,_0x3e5ec3+0x2));_0x11af29>=_0x504bcb[_0x40c02a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11af29-=_0x504bcb[_0x40c02a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x127819+=_0x504bcb[_0x11af29];}return _0x127819;}());_0x5e9ef5[_0x169a5a]=_0x40c02a([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x319e9f,_0x319e9f!=_0x40c02a([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x4dcd68,_0x5e9ef5[_0x40c02a([0x6d,0x6f,0x64,0x65,0x6c])][_0x40c02a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50d556,_0x5e9ef5[_0x40c02a([0x6d,0x6f,0x64,0x65,0x6c])][_0x40c02a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50d556,_0x5e9ef5[_0x40c02a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40c02a([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x4c5c2c);}class SlashCommandEditing extends Plugin{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0xad2a77){const _0x16550a=_0xad2a77&&_0xad2a77['toLowerCase']();let _0x1bb81c=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x1bb81c=_0x1bb81c['filter'](_0x9e3ba5=>_0x9e3ba5['isEnabled']()),_0x16550a){const _0x42c475=[],_0x2cc731=[],_0x254d47=[],_0x42127b=[];for(const _0x585ca6 of _0x1bb81c)_0x585ca6['id']['toLowerCase']()['includes'](_0x16550a)?_0x42c475['push'](_0x585ca6):_0x585ca6['title']['toLowerCase']()['includes'](_0x16550a)?_0x2cc731['push'](_0x585ca6):_0x585ca6['aliases']&&_0x585ca6['aliases']['some'](_0x1933da=>_0x1933da['toLowerCase']()['includes'](_0x16550a))?_0x254d47['push'](_0x585ca6):_0x585ca6['description']&&_0x585ca6['description']['toLowerCase']()['includes'](_0x16550a)&&_0x42127b['push'](_0x585ca6);_0x1bb81c=_0x42c475['concat'](_0x2cc731,_0x254d47,_0x42127b);}return _0x1bb81c;}}class SlashCommandButtonView extends ButtonView{constructor(_0x3a94d2,_0x4d1efc){super(_0x3a94d2),this['textPartView']=this['_createTextPartView'](_0x3a94d2,_0x4d1efc),void 0x0!==_0x4d1efc['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x4d1efc['isIconColorInherited']),this['set']({'icon':_0x4d1efc['icon']||IconPlay,'withText':!0x0,'label':_0x4d1efc['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x2f4b45,_0x507b8c){const _0x5966c3=new View(_0x2f4b45);return _0x5966c3['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x507b8c['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x507b8c['description']}]}]:[this['labelView']]}),_0x5966c3;}}class SlashCommandUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a5b63){super(_0x2a5b63),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x35c792=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xfefe34;for(const _0x3161ec in _0x35c792){const _0x3671c5=_0x3161ec,_0x45e1c1=_0x35c792[_0x3671c5];if('slashCommandLicenseKeyValid'==_0x45e1c1||'slashCommandLicenseKeyInvalid'==_0x45e1c1||'slashCommandLicenseKeyExpired'==_0x45e1c1||'slashCommandLicenseKeyDomainLimit'==_0x45e1c1||'slashCommandLicenseKeyNotAllowed'==_0x45e1c1||'slashCommandLicenseKeyEvaluationLimit'==_0x45e1c1||'slashCommandLicenseKeyTrialLimit'==_0x45e1c1||'slashCommandLicenseKeyUsageLimit'==_0x45e1c1){delete _0x35c792[_0x3671c5],_0xfefe34=_0x45e1c1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0xfefe34&&_0x35c792['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0xfefe34&&_0x35c792['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0xfefe34&&_0x35c792['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0xfefe34&&_0x35c792['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0xfefe34&&_0x35c792['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyTrialLimit'==_0xfefe34&&_0x35c792['_showLicenseError']('trialLimit'),'slashCommandLicenseKeyUsageLimit'==_0xfefe34&&_0x35c792['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x15dcfb=this['editor'],_0x2a9c39=this['editor']['plugins']['get']('SlashCommandEditing'),_0x6b0d97=_0x15dcfb['config']['get']('mention.feeds');_0x6b0d97['push']({'marker':'/','feed':_0x33444e=>_0x2a9c39['getMatchingCommands'](_0x33444e),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x15dcfb['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x15dcfb['config']['set']('mention.feeds',_0x6b0d97);}['_overrideMentionExecuteListener'](){const _0x1eccb3=this['editor'];_0x1eccb3['commands']['get']('mention')['on']('execute',(_0x54c3f8,_0x476c0e)=>{const _0x3ac2d0=_0x476c0e[0x0],_0x302c0d=_0x1eccb3['model'];'/'===_0x3ac2d0['marker']&&_0x302c0d['change'](_0x41f5d6=>{_0x41f5d6['remove'](_0x3ac2d0['range']),_0x3ac2d0['mention']['execute'](),_0x54c3f8['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x56a02b){const _0xdd15bf=this['editor']['locale'],_0x3dc8db=new SlashCommandButtonView(_0xdd15bf,_0x56a02b);return _0x3dc8db['render'](),_0x3dc8db['element'];}}class SlashCommand extends Plugin{static get['requires'](){return['Mention',SlashCommandEditing,SlashCommandUI];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}function getTranslation$3(_0x94cb57,_0x58acb2){const t=_0x94cb57['t'];switch(_0x58acb2){case'Edit\x20source\x20modal\x20label':return t({'string':'Edit\x20source','id':'Edit\x20source\x20modal\x20label'});case'Source':return t('Source');case'Source\x20Editing\x20Enhanced':return t('Source\x20Editing\x20Enhanced');case'Copy\x20line\x20down':return t('Copy\x20line\x20down');case'Copy\x20line\x20up':return t('Copy\x20line\x20up');case'Delete\x20line':return t('Delete\x20line');case'Indent\x20less':return t('Indent\x20less');case'Indent\x20more':return t('Indent\x20more');case'Fold\x20all':return t('Fold\x20all');case'Fold\x20code\x20(current\x20level)':return t('Fold\x20code\x20(current\x20level)');case'Move\x20line\x20down':return t('Move\x20line\x20down');case'Move\x20line\x20up':return t('Move\x20line\x20up');case'Redo\x20(keystroke)':return t({'id':'Redo\x20(keystroke)','string':'Redo'});case'Select\x20line':return t('Select\x20line');case'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode':return t('Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode');case'Toggle\x20block\x20comment':return t('Toggle\x20block\x20comment');case'Toggle\x20comment':return t('Toggle\x20comment');case'Undo\x20(keystroke)':return t({'id':'Undo\x20(keystroke)','string':'Undo'});case'Unfold\x20all':return t('Unfold\x20all');case'Unfold\x20code\x20(current\x20level)':return t('Unfold\x20code\x20(current\x20level)');case'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.':return t('Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.');case'Cancel':return t('Cancel');case'Save':return t('Save');default:return _0x58acb2;}}function getActiveRootName(_0x3fb527){const _0xbe2ce3=_0x3fb527['editing']['view']['document']['roots'],_0x2e16a3=_0xbe2ce3['length'];if(0x0===_0x2e16a3)throw new CKEditorError('source-editing-enhanced-editor-no-root',_0x3fb527);if(0x1===_0x2e16a3)return _0xbe2ce3['first']['rootName'];return Array['from'](_0x3fb527['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function formatSource(_0x22157e){return isHtml(_0x22157e)?formatHtml(_0x22157e):_0x22157e;}function unformatSource(_0xec1620){return isHtml(_0xec1620['replace'](/^[\n\s]*/g,''))?_0xec1620['replace'](/\s+/g,''):_0xec1620;}function isHtml(_0x3dee05){return _0x3dee05['startsWith']('<');}let rangeFrom=[],rangeTo=[];function isExtendingChar(_0x10fc53){if(_0x10fc53<0x300)return!0x1;for(let _0x4b58e2=0x0,_0x424638=rangeFrom['length'];;){let _0x38d1e9=_0x4b58e2+_0x424638>>0x1;if(_0x10fc53<rangeFrom[_0x38d1e9])_0x424638=_0x38d1e9;else{if(!(_0x10fc53>=rangeTo[_0x38d1e9]))return!0x0;_0x4b58e2=_0x38d1e9+0x1;}if(_0x4b58e2==_0x424638)return!0x1;}}function isRegionalIndicator(_0x150168){return _0x150168>=0x1f1e6&&_0x150168<=0x1f1ff;}((()=>{let _0x44a02d='lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o'['split'](',')['map'](_0x2619bd=>_0x2619bd?parseInt(_0x2619bd,0x24):0x1);for(let _0x214e30=0x0,_0x36c836=0x0;_0x214e30<_0x44a02d['length'];_0x214e30++)(_0x214e30%0x2?rangeTo:rangeFrom)['push'](_0x36c836+=_0x44a02d[_0x214e30]);})());const ZWJ=0x200d;function findClusterBreak$1(_0x584c30,_0x38e37c,_0x2c59ae=!0x0,_0x55d849=!0x0){return(_0x2c59ae?nextClusterBreak:prevClusterBreak)(_0x584c30,_0x38e37c,_0x55d849);}function nextClusterBreak(_0x3db390,_0x99e8cc,_0x43266a){if(_0x99e8cc==_0x3db390['length'])return _0x99e8cc;_0x99e8cc&&surrogateLow$1(_0x3db390['charCodeAt'](_0x99e8cc))&&surrogateHigh$1(_0x3db390['charCodeAt'](_0x99e8cc-0x1))&&_0x99e8cc--;let _0x10ae0a=codePointAt$1(_0x3db390,_0x99e8cc);for(_0x99e8cc+=codePointSize$1(_0x10ae0a);_0x99e8cc<_0x3db390['length'];){let _0x1ad065=codePointAt$1(_0x3db390,_0x99e8cc);if(_0x10ae0a==ZWJ||_0x1ad065==ZWJ||_0x43266a&&isExtendingChar(_0x1ad065))_0x99e8cc+=codePointSize$1(_0x1ad065),_0x10ae0a=_0x1ad065;else{if(!isRegionalIndicator(_0x1ad065))break;{let _0x523123=0x0,_0x10f79c=_0x99e8cc-0x2;for(;_0x10f79c>=0x0&&isRegionalIndicator(codePointAt$1(_0x3db390,_0x10f79c));)_0x523123++,_0x10f79c-=0x2;if(_0x523123%0x2==0x0)break;_0x99e8cc+=0x2;}}}return _0x99e8cc;}function prevClusterBreak(_0x15f3b8,_0x360d8b,_0xe04031){for(;_0x360d8b>0x0;){let _0x3c384e=nextClusterBreak(_0x15f3b8,_0x360d8b-0x2,_0xe04031);if(_0x3c384e<_0x360d8b)return _0x3c384e;_0x360d8b--;}return 0x0;}function codePointAt$1(_0xb6e008,_0x3ddda3){let _0x1146c9=_0xb6e008['charCodeAt'](_0x3ddda3);if(!surrogateHigh$1(_0x1146c9)||_0x3ddda3+0x1==_0xb6e008['length'])return _0x1146c9;let _0x1905de=_0xb6e008['charCodeAt'](_0x3ddda3+0x1);return surrogateLow$1(_0x1905de)?_0x1905de-0xdc00+(_0x1146c9-0xd800<<0xa)+0x10000:_0x1146c9;}function surrogateLow$1(_0x3714f6){return _0x3714f6>=0xdc00&&_0x3714f6<0xe000;}function surrogateHigh$1(_0x3ec23f){return _0x3ec23f>=0xd800&&_0x3ec23f<0xdc00;}function codePointSize$1(_0x538a7a){return _0x538a7a<0x10000?0x1:0x2;}class Text{['lineAt'](_0x2df6e1){if(_0x2df6e1<0x0||_0x2df6e1>this['length'])throw new RangeError('Invalid\x20position\x20'+_0x2df6e1+'\x20in\x20document\x20of\x20length\x20'+this['length']);return this['lineInner'](_0x2df6e1,!0x1,0x1,0x0);}['line'](_0x2c124b){if(_0x2c124b<0x1||_0x2c124b>this['lines'])throw new RangeError('Invalid\x20line\x20number\x20'+_0x2c124b+'\x20in\x20'+this['lines']+'-line\x20document');return this['lineInner'](_0x2c124b,!0x0,0x1,0x0);}['replace'](_0x5606eb,_0x101370,_0x2434d6){[_0x5606eb,_0x101370]=clip(this,_0x5606eb,_0x101370);let _0x1fd5a4=[];return this['decompose'](0x0,_0x5606eb,_0x1fd5a4,0x2),_0x2434d6['length']&&_0x2434d6['decompose'](0x0,_0x2434d6['length'],_0x1fd5a4,0x3),this['decompose'](_0x101370,this['length'],_0x1fd5a4,0x1),TextNode['from'](_0x1fd5a4,this['length']-(_0x101370-_0x5606eb)+_0x2434d6['length']);}['append'](_0x447b71){return this['replace'](this['length'],this['length'],_0x447b71);}['slice'](_0x20ff77,_0xd86b99=this['length']){[_0x20ff77,_0xd86b99]=clip(this,_0x20ff77,_0xd86b99);let _0x2ad23f=[];return this['decompose'](_0x20ff77,_0xd86b99,_0x2ad23f,0x0),TextNode['from'](_0x2ad23f,_0xd86b99-_0x20ff77);}['eq'](_0x5e5b8c){if(_0x5e5b8c==this)return!0x0;if(_0x5e5b8c['length']!=this['length']||_0x5e5b8c['lines']!=this['lines'])return!0x1;let _0x106a65=this['scanIdentical'](_0x5e5b8c,0x1),_0x38f8b3=this['length']-this['scanIdentical'](_0x5e5b8c,-0x1),_0x2a9225=new RawTextCursor(this),_0x4c41cf=new RawTextCursor(_0x5e5b8c);for(let _0x418634=_0x106a65,_0x1ae319=_0x106a65;;){if(_0x2a9225['next'](_0x418634),_0x4c41cf['next'](_0x418634),_0x418634=0x0,_0x2a9225['lineBreak']!=_0x4c41cf['lineBreak']||_0x2a9225['done']!=_0x4c41cf['done']||_0x2a9225['value']!=_0x4c41cf['value'])return!0x1;if(_0x1ae319+=_0x2a9225['value']['length'],_0x2a9225['done']||_0x1ae319>=_0x38f8b3)return!0x0;}}['iter'](_0x2fcb82=0x1){return new RawTextCursor(this,_0x2fcb82);}['iterRange'](_0x1eb74c,_0x39a179=this['length']){return new PartialTextCursor(this,_0x1eb74c,_0x39a179);}['iterLines'](_0x404f19,_0x28a649){let _0x2b9205;if(null==_0x404f19)_0x2b9205=this['iter']();else{null==_0x28a649&&(_0x28a649=this['lines']+0x1);let _0x1c1332=this['line'](_0x404f19)['from'];_0x2b9205=this['iterRange'](_0x1c1332,Math['max'](_0x1c1332,_0x28a649==this['lines']+0x1?this['length']:_0x28a649<=0x1?0x0:this['line'](_0x28a649-0x1)['to']));}return new LineCursor(_0x2b9205);}['toString'](){return this['sliceString'](0x0);}['toJSON'](){let _0x5da642=[];return this['flatten'](_0x5da642),_0x5da642;}constructor(){}static['of'](_0x25cf22){if(0x0==_0x25cf22['length'])throw new RangeError('A\x20document\x20must\x20have\x20at\x20least\x20one\x20line');return 0x1!=_0x25cf22['length']||_0x25cf22[0x0]?_0x25cf22['length']<=0x20?new TextLeaf(_0x25cf22):TextNode['from'](TextLeaf['split'](_0x25cf22,[])):Text['empty'];}}class TextLeaf extends Text{constructor(_0x5072e0,_0xf1c885=textLength(_0x5072e0)){super(),this['text']=_0x5072e0,this['length']=_0xf1c885;}get['lines'](){return this['text']['length'];}get['children'](){return null;}['lineInner'](_0x5ce1f7,_0xee699c,_0x5b2c0f,_0x5fae3f){for(let _0x52b7a9=0x0;;_0x52b7a9++){let _0x1d73a6=this['text'][_0x52b7a9],_0x3a81ae=_0x5fae3f+_0x1d73a6['length'];if((_0xee699c?_0x5b2c0f:_0x3a81ae)>=_0x5ce1f7)return new Line$1(_0x5fae3f,_0x3a81ae,_0x5b2c0f,_0x1d73a6);_0x5fae3f=_0x3a81ae+0x1,_0x5b2c0f++;}}['decompose'](_0x27acc3,_0x474cb0,_0x4e20d9,_0x102d1c){let _0x27ab2d=_0x27acc3<=0x0&&_0x474cb0>=this['length']?this:new TextLeaf(sliceText(this['text'],_0x27acc3,_0x474cb0),Math['min'](_0x474cb0,this['length'])-Math['max'](0x0,_0x27acc3));if(0x1&_0x102d1c){let _0x364cbc=_0x4e20d9['pop'](),_0x2ef683=appendText(_0x27ab2d['text'],_0x364cbc['text']['slice'](),0x0,_0x27ab2d['length']);if(_0x2ef683['length']<=0x20)_0x4e20d9['push'](new TextLeaf(_0x2ef683,_0x364cbc['length']+_0x27ab2d['length']));else{let _0x4a05a1=_0x2ef683['length']>>0x1;_0x4e20d9['push'](new TextLeaf(_0x2ef683['slice'](0x0,_0x4a05a1)),new TextLeaf(_0x2ef683['slice'](_0x4a05a1)));}}else _0x4e20d9['push'](_0x27ab2d);}['replace'](_0x2e3d19,_0x5c81d0,_0x4008bb){if(!(_0x4008bb instanceof TextLeaf))return super['replace'](_0x2e3d19,_0x5c81d0,_0x4008bb);[_0x2e3d19,_0x5c81d0]=clip(this,_0x2e3d19,_0x5c81d0);let _0x155126=appendText(this['text'],appendText(_0x4008bb['text'],sliceText(this['text'],0x0,_0x2e3d19)),_0x5c81d0),_0x50f8d5=this['length']+_0x4008bb['length']-(_0x5c81d0-_0x2e3d19);return _0x155126['length']<=0x20?new TextLeaf(_0x155126,_0x50f8d5):TextNode['from'](TextLeaf['split'](_0x155126,[]),_0x50f8d5);}['sliceString'](_0x5f1ca3,_0x4e68d8=this['length'],_0x497330='\x0a'){[_0x5f1ca3,_0x4e68d8]=clip(this,_0x5f1ca3,_0x4e68d8);let _0x8e83f9='';for(let _0x4cf324=0x0,_0x3de6e3=0x0;_0x4cf324<=_0x4e68d8&&_0x3de6e3<this['text']['length'];_0x3de6e3++){let _0x3dd943=this['text'][_0x3de6e3],_0x1528d5=_0x4cf324+_0x3dd943['length'];_0x4cf324>_0x5f1ca3&&_0x3de6e3&&(_0x8e83f9+=_0x497330),_0x5f1ca3<_0x1528d5&&_0x4e68d8>_0x4cf324&&(_0x8e83f9+=_0x3dd943['slice'](Math['max'](0x0,_0x5f1ca3-_0x4cf324),_0x4e68d8-_0x4cf324)),_0x4cf324=_0x1528d5+0x1;}return _0x8e83f9;}['flatten'](_0x545231){for(let _0x51e6e8 of this['text'])_0x545231['push'](_0x51e6e8);}['scanIdentical'](){return 0x0;}static['split'](_0x5d62a9,_0x4fa220){let _0x457869=[],_0x287336=-0x1;for(let _0x5c8bb0 of _0x5d62a9)_0x457869['push'](_0x5c8bb0),_0x287336+=_0x5c8bb0['length']+0x1,0x20==_0x457869['length']&&(_0x4fa220['push'](new TextLeaf(_0x457869,_0x287336)),_0x457869=[],_0x287336=-0x1);return _0x287336>-0x1&&_0x4fa220['push'](new TextLeaf(_0x457869,_0x287336)),_0x4fa220;}}class TextNode extends Text{constructor(_0x3d989f,_0x2a09c2){super(),this['children']=_0x3d989f,this['length']=_0x2a09c2,this['lines']=0x0;for(let _0xac7232 of _0x3d989f)this['lines']+=_0xac7232['lines'];}['lineInner'](_0x2c9d6a,_0x3f24a7,_0x37642c,_0x5c4bab){for(let _0x5aebd2=0x0;;_0x5aebd2++){let _0x199f81=this['children'][_0x5aebd2],_0x49d800=_0x5c4bab+_0x199f81['length'],_0x119dc8=_0x37642c+_0x199f81['lines']-0x1;if((_0x3f24a7?_0x119dc8:_0x49d800)>=_0x2c9d6a)return _0x199f81['lineInner'](_0x2c9d6a,_0x3f24a7,_0x37642c,_0x5c4bab);_0x5c4bab=_0x49d800+0x1,_0x37642c=_0x119dc8+0x1;}}['decompose'](_0x26598a,_0x3563a8,_0x2b97f6,_0x1294d0){for(let _0xf2fe20=0x0,_0x560914=0x0;_0x560914<=_0x3563a8&&_0xf2fe20<this['children']['length'];_0xf2fe20++){let _0x268525=this['children'][_0xf2fe20],_0x34eca8=_0x560914+_0x268525['length'];if(_0x26598a<=_0x34eca8&&_0x3563a8>=_0x560914){let _0x6370a2=_0x1294d0&((_0x560914<=_0x26598a?0x1:0x0)|(_0x34eca8>=_0x3563a8?0x2:0x0));_0x560914>=_0x26598a&&_0x34eca8<=_0x3563a8&&!_0x6370a2?_0x2b97f6['push'](_0x268525):_0x268525['decompose'](_0x26598a-_0x560914,_0x3563a8-_0x560914,_0x2b97f6,_0x6370a2);}_0x560914=_0x34eca8+0x1;}}['replace'](_0x22eca0,_0x38bf1f,_0x51697c){if([_0x22eca0,_0x38bf1f]=clip(this,_0x22eca0,_0x38bf1f),_0x51697c['lines']<this['lines'])for(let _0x5c88c3=0x0,_0x4e7b1a=0x0;_0x5c88c3<this['children']['length'];_0x5c88c3++){let _0x40bb6c=this['children'][_0x5c88c3],_0x19cee3=_0x4e7b1a+_0x40bb6c['length'];if(_0x22eca0>=_0x4e7b1a&&_0x38bf1f<=_0x19cee3){let _0x2d185e=_0x40bb6c['replace'](_0x22eca0-_0x4e7b1a,_0x38bf1f-_0x4e7b1a,_0x51697c),_0x3a41e2=this['lines']-_0x40bb6c['lines']+_0x2d185e['lines'];if(_0x2d185e['lines']<_0x3a41e2>>0x4&&_0x2d185e['lines']>_0x3a41e2>>0x6){let _0x49ee5a=this['children']['slice']();return _0x49ee5a[_0x5c88c3]=_0x2d185e,new TextNode(_0x49ee5a,this['length']-(_0x38bf1f-_0x22eca0)+_0x51697c['length']);}return super['replace'](_0x4e7b1a,_0x19cee3,_0x2d185e);}_0x4e7b1a=_0x19cee3+0x1;}return super['replace'](_0x22eca0,_0x38bf1f,_0x51697c);}['sliceString'](_0x224203,_0x41972e=this['length'],_0xbe03bd='\x0a'){[_0x224203,_0x41972e]=clip(this,_0x224203,_0x41972e);let _0x5ddbc1='';for(let _0x1da483=0x0,_0x2382dd=0x0;_0x1da483<this['children']['length']&&_0x2382dd<=_0x41972e;_0x1da483++){let _0x159a51=this['children'][_0x1da483],_0x56cf88=_0x2382dd+_0x159a51['length'];_0x2382dd>_0x224203&&_0x1da483&&(_0x5ddbc1+=_0xbe03bd),_0x224203<_0x56cf88&&_0x41972e>_0x2382dd&&(_0x5ddbc1+=_0x159a51['sliceString'](_0x224203-_0x2382dd,_0x41972e-_0x2382dd,_0xbe03bd)),_0x2382dd=_0x56cf88+0x1;}return _0x5ddbc1;}['flatten'](_0x16c9e9){for(let _0x143ed9 of this['children'])_0x143ed9['flatten'](_0x16c9e9);}['scanIdentical'](_0x5caab2,_0x5034ab){if(!(_0x5caab2 instanceof TextNode))return 0x0;let _0x5c117b=0x0,[_0x8999a6,_0x301e5b,_0x3056a8,_0x14cc5a]=_0x5034ab>0x0?[0x0,0x0,this['children']['length'],_0x5caab2['children']['length']]:[this['children']['length']-0x1,_0x5caab2['children']['length']-0x1,-0x1,-0x1];for(;;_0x8999a6+=_0x5034ab,_0x301e5b+=_0x5034ab){if(_0x8999a6==_0x3056a8||_0x301e5b==_0x14cc5a)return _0x5c117b;let _0x2bc3f7=this['children'][_0x8999a6],_0x27c2bf=_0x5caab2['children'][_0x301e5b];if(_0x2bc3f7!=_0x27c2bf)return _0x5c117b+_0x2bc3f7['scanIdentical'](_0x27c2bf,_0x5034ab);_0x5c117b+=_0x2bc3f7['length']+0x1;}}static['from'](_0xa24f87,_0x2a2446=_0xa24f87['reduce']((_0x110d3d,_0x48d588)=>_0x110d3d+_0x48d588['length']+0x1,-0x1)){let _0x81bf8d=0x0;for(let _0x16d501 of _0xa24f87)_0x81bf8d+=_0x16d501['lines'];if(_0x81bf8d<0x20){let _0x417284=[];for(let _0x46cefb of _0xa24f87)_0x46cefb['flatten'](_0x417284);return new TextLeaf(_0x417284,_0x2a2446);}let _0x1d1c9b=Math['max'](0x20,_0x81bf8d>>0x5),_0x10af53=_0x1d1c9b<<0x1,_0x7a13b4=_0x1d1c9b>>0x1,_0x344ac1=[],_0x4ebf64=0x0,_0x466593=-0x1,_0x57c5b0=[];function _0x4c4386(_0x225752){let _0x28c922;if(_0x225752['lines']>_0x10af53&&_0x225752 instanceof TextNode){for(let _0x42109d of _0x225752['children'])_0x4c4386(_0x42109d);}else _0x225752['lines']>_0x7a13b4&&(_0x4ebf64>_0x7a13b4||!_0x4ebf64)?(_0x6b18c9(),_0x344ac1['push'](_0x225752)):_0x225752 instanceof TextLeaf&&_0x4ebf64&&(_0x28c922=_0x57c5b0[_0x57c5b0['length']-0x1])instanceof TextLeaf&&_0x225752['lines']+_0x28c922['lines']<=0x20?(_0x4ebf64+=_0x225752['lines'],_0x466593+=_0x225752['length']+0x1,_0x57c5b0[_0x57c5b0['length']-0x1]=new TextLeaf(_0x28c922['text']['concat'](_0x225752['text']),_0x28c922['length']+0x1+_0x225752['length'])):(_0x4ebf64+_0x225752['lines']>_0x1d1c9b&&_0x6b18c9(),_0x4ebf64+=_0x225752['lines'],_0x466593+=_0x225752['length']+0x1,_0x57c5b0['push'](_0x225752));}function _0x6b18c9(){0x0!=_0x4ebf64&&(_0x344ac1['push'](0x1==_0x57c5b0['length']?_0x57c5b0[0x0]:TextNode['from'](_0x57c5b0,_0x466593)),_0x466593=-0x1,_0x4ebf64=_0x57c5b0['length']=0x0);}for(let _0x34d2a8 of _0xa24f87)_0x4c4386(_0x34d2a8);return _0x6b18c9(),0x1==_0x344ac1['length']?_0x344ac1[0x0]:new TextNode(_0x344ac1,_0x2a2446);}}function textLength(_0x4a0fd3){let _0xe8023e=-0x1;for(let _0x3951cd of _0x4a0fd3)_0xe8023e+=_0x3951cd['length']+0x1;return _0xe8023e;}function appendText(_0x492f61,_0xdde914,_0x520d8c=0x0,_0x67cbef=0x3b9aca00){for(let _0x559d74=0x0,_0x385aae=0x0,_0x48e077=!0x0;_0x385aae<_0x492f61['length']&&_0x559d74<=_0x67cbef;_0x385aae++){let _0x42432e=_0x492f61[_0x385aae],_0x23b3af=_0x559d74+_0x42432e['length'];_0x23b3af>=_0x520d8c&&(_0x23b3af>_0x67cbef&&(_0x42432e=_0x42432e['slice'](0x0,_0x67cbef-_0x559d74)),_0x559d74<_0x520d8c&&(_0x42432e=_0x42432e['slice'](_0x520d8c-_0x559d74)),_0x48e077?(_0xdde914[_0xdde914['length']-0x1]+=_0x42432e,_0x48e077=!0x1):_0xdde914['push'](_0x42432e)),_0x559d74=_0x23b3af+0x1;}return _0xdde914;}function sliceText(_0x591e5a,_0x51da5b,_0x331246){return appendText(_0x591e5a,[''],_0x51da5b,_0x331246);}Text['empty']=new TextLeaf([''],0x0);class RawTextCursor{constructor(_0x24a4a6,_0x45e5e6=0x1){this['dir']=_0x45e5e6,this['done']=!0x1,this['lineBreak']=!0x1,this['value']='',this['nodes']=[_0x24a4a6],this['offsets']=[_0x45e5e6>0x0?0x1:(_0x24a4a6 instanceof TextLeaf?_0x24a4a6['text']['length']:_0x24a4a6['children']['length'])<<0x1];}['nextInner'](_0x591ab2,_0x2842c7){for(this['done']=this['lineBreak']=!0x1;;){let _0x4f950e=this['nodes']['length']-0x1,_0x4782f2=this['nodes'][_0x4f950e],_0x3a90f6=this['offsets'][_0x4f950e],_0xa35c30=_0x3a90f6>>0x1,_0x555232=_0x4782f2 instanceof TextLeaf?_0x4782f2['text']['length']:_0x4782f2['children']['length'];if(_0xa35c30==(_0x2842c7>0x0?_0x555232:0x0)){if(0x0==_0x4f950e)return this['done']=!0x0,this['value']='',this;_0x2842c7>0x0&&this['offsets'][_0x4f950e-0x1]++,this['nodes']['pop'](),this['offsets']['pop']();}else{if((0x1&_0x3a90f6)==(_0x2842c7>0x0?0x0:0x1)){if(this['offsets'][_0x4f950e]+=_0x2842c7,0x0==_0x591ab2)return this['lineBreak']=!0x0,this['value']='\x0a',this;_0x591ab2--;}else{if(_0x4782f2 instanceof TextLeaf){let _0x1e8068=_0x4782f2['text'][_0xa35c30+(_0x2842c7<0x0?-0x1:0x0)];if(this['offsets'][_0x4f950e]+=_0x2842c7,_0x1e8068['length']>Math['max'](0x0,_0x591ab2))return this['value']=0x0==_0x591ab2?_0x1e8068:_0x2842c7>0x0?_0x1e8068['slice'](_0x591ab2):_0x1e8068['slice'](0x0,_0x1e8068['length']-_0x591ab2),this;_0x591ab2-=_0x1e8068['length'];}else{let _0x35cf4a=_0x4782f2['children'][_0xa35c30+(_0x2842c7<0x0?-0x1:0x0)];_0x591ab2>_0x35cf4a['length']?(_0x591ab2-=_0x35cf4a['length'],this['offsets'][_0x4f950e]+=_0x2842c7):(_0x2842c7<0x0&&this['offsets'][_0x4f950e]--,this['nodes']['push'](_0x35cf4a),this['offsets']['push'](_0x2842c7>0x0?0x1:(_0x35cf4a instanceof TextLeaf?_0x35cf4a['text']['length']:_0x35cf4a['children']['length'])<<0x1));}}}}}['next'](_0x4ac3d0=0x0){return _0x4ac3d0<0x0&&(this['nextInner'](-_0x4ac3d0,-this['dir']),_0x4ac3d0=this['value']['length']),this['nextInner'](_0x4ac3d0,this['dir']);}}class PartialTextCursor{constructor(_0xaa7eb6,_0x390234,_0x48700e){this['value']='',this['done']=!0x1,this['cursor']=new RawTextCursor(_0xaa7eb6,_0x390234>_0x48700e?-0x1:0x1),this['pos']=_0x390234>_0x48700e?_0xaa7eb6['length']:0x0,this['from']=Math['min'](_0x390234,_0x48700e),this['to']=Math['max'](_0x390234,_0x48700e);}['nextInner'](_0x3b6cbf,_0x370380){if(_0x370380<0x0?this['pos']<=this['from']:this['pos']>=this['to'])return this['value']='',this['done']=!0x0,this;_0x3b6cbf+=Math['max'](0x0,_0x370380<0x0?this['pos']-this['to']:this['from']-this['pos']);let _0x8888c5=_0x370380<0x0?this['pos']-this['from']:this['to']-this['pos'];_0x3b6cbf>_0x8888c5&&(_0x3b6cbf=_0x8888c5),_0x8888c5-=_0x3b6cbf;let {value:_0x239df4}=this['cursor']['next'](_0x3b6cbf);return this['pos']+=(_0x239df4['length']+_0x3b6cbf)*_0x370380,this['value']=_0x239df4['length']<=_0x8888c5?_0x239df4:_0x370380<0x0?_0x239df4['slice'](_0x239df4['length']-_0x8888c5):_0x239df4['slice'](0x0,_0x8888c5),this['done']=!this['value'],this;}['next'](_0x20e011=0x0){return _0x20e011<0x0?_0x20e011=Math['max'](_0x20e011,this['from']-this['pos']):_0x20e011>0x0&&(_0x20e011=Math['min'](_0x20e011,this['to']-this['pos'])),this['nextInner'](_0x20e011,this['cursor']['dir']);}get['lineBreak'](){return this['cursor']['lineBreak']&&''!=this['value'];}}class LineCursor{constructor(_0x2465f0){this['inner']=_0x2465f0,this['afterBreak']=!0x0,this['value']='',this['done']=!0x1;}['next'](_0x3ce9c9=0x0){let {done:_0x56ad8b,lineBreak:_0x4089cd,value:_0x5d446a}=this['inner']['next'](_0x3ce9c9);return _0x56ad8b&&this['afterBreak']?(this['value']='',this['afterBreak']=!0x1):_0x56ad8b?(this['done']=!0x0,this['value']=''):_0x4089cd?this['afterBreak']?this['value']='':(this['afterBreak']=!0x0,this['next']()):(this['value']=_0x5d446a,this['afterBreak']=!0x1),this;}get['lineBreak'](){return!0x1;}}'undefined'!=typeof Symbol&&(Text['prototype'][Symbol['iterator']]=function(){return this['iter']();},RawTextCursor['prototype'][Symbol['iterator']]=PartialTextCursor['prototype'][Symbol['iterator']]=LineCursor['prototype'][Symbol['iterator']]=function(){return this;});let Line$1=class{constructor(_0x14b625,_0x133aa4,_0x2c8154,_0xae8f52){this['from']=_0x14b625,this['to']=_0x133aa4,this['number']=_0x2c8154,this['text']=_0xae8f52;}get['length'](){return this['to']-this['from'];}};function clip(_0x46e9ae,_0x584a4f,_0x279936){return[_0x584a4f=Math['max'](0x0,Math['min'](_0x46e9ae['length'],_0x584a4f)),Math['max'](_0x584a4f,Math['min'](_0x46e9ae['length'],_0x279936))];}function findClusterBreak(_0x26edfd,_0x2e64a1,_0x3231e3=!0x0,_0x15144c=!0x0){return findClusterBreak$1(_0x26edfd,_0x2e64a1,_0x3231e3,_0x15144c);}function surrogateLow(_0x15215f){return _0x15215f>=0xdc00&&_0x15215f<0xe000;}function surrogateHigh(_0x27baae){return _0x27baae>=0xd800&&_0x27baae<0xdc00;}function codePointAt(_0x27e53e,_0x5885c9){let _0x51b7d1=_0x27e53e['charCodeAt'](_0x5885c9);if(!surrogateHigh(_0x51b7d1)||_0x5885c9+0x1==_0x27e53e['length'])return _0x51b7d1;let _0x37c19a=_0x27e53e['charCodeAt'](_0x5885c9+0x1);return surrogateLow(_0x37c19a)?_0x37c19a-0xdc00+(_0x51b7d1-0xd800<<0xa)+0x10000:_0x51b7d1;}function fromCodePoint(_0x3f6f43){return _0x3f6f43<=0xffff?String['fromCharCode'](_0x3f6f43):(_0x3f6f43-=0x10000,String['fromCharCode'](0xd800+(_0x3f6f43>>0xa),0xdc00+(0x3ff&_0x3f6f43)));}function codePointSize(_0x1ec8df){return _0x1ec8df<0x10000?0x1:0x2;}const DefaultSplit=/\r\n?|\n/;var MapMode=function(_0x4301e1){return _0x4301e1[_0x4301e1['Simple']=0x0]='Simple',_0x4301e1[_0x4301e1['TrackDel']=0x1]='TrackDel',_0x4301e1[_0x4301e1['TrackBefore']=0x2]='TrackBefore',_0x4301e1[_0x4301e1['TrackAfter']=0x3]='TrackAfter',_0x4301e1;}(MapMode||(MapMode={}));class ChangeDesc{constructor(_0x31173b){this['sections']=_0x31173b;}get['length'](){let _0x37f144=0x0;for(let _0x24bec=0x0;_0x24bec<this['sections']['length'];_0x24bec+=0x2)_0x37f144+=this['sections'][_0x24bec];return _0x37f144;}get['newLength'](){let _0x4cde91=0x0;for(let _0x359546=0x0;_0x359546<this['sections']['length'];_0x359546+=0x2){let _0x134f06=this['sections'][_0x359546+0x1];_0x4cde91+=_0x134f06<0x0?this['sections'][_0x359546]:_0x134f06;}return _0x4cde91;}get['empty'](){return 0x0==this['sections']['length']||0x2==this['sections']['length']&&this['sections'][0x1]<0x0;}['iterGaps'](_0x402228){for(let _0x1cc403=0x0,_0x5d71ff=0x0,_0xbcdc4d=0x0;_0x1cc403<this['sections']['length'];){let _0x289330=this['sections'][_0x1cc403++],_0x4c1513=this['sections'][_0x1cc403++];_0x4c1513<0x0?(_0x402228(_0x5d71ff,_0xbcdc4d,_0x289330),_0xbcdc4d+=_0x289330):_0xbcdc4d+=_0x4c1513,_0x5d71ff+=_0x289330;}}['iterChangedRanges'](_0x28a958,_0x2caee1=!0x1){iterChanges(this,_0x28a958,_0x2caee1);}get['invertedDesc'](){let _0x1833f9=[];for(let _0x810ae5=0x0;_0x810ae5<this['sections']['length'];){let _0x335513=this['sections'][_0x810ae5++],_0x5c9236=this['sections'][_0x810ae5++];_0x5c9236<0x0?_0x1833f9['push'](_0x335513,_0x5c9236):_0x1833f9['push'](_0x5c9236,_0x335513);}return new ChangeDesc(_0x1833f9);}['composeDesc'](_0x246a25){return this['empty']?_0x246a25:_0x246a25['empty']?this:composeSets(this,_0x246a25);}['mapDesc'](_0x467422,_0x50ce92=!0x1){return _0x467422['empty']?this:mapSet(this,_0x467422,_0x50ce92);}['mapPos'](_0x4814d4,_0x35ec93=-0x1,_0x59cc19=MapMode['Simple']){let _0x2fc735=0x0,_0x4c1711=0x0;for(let _0x179281=0x0;_0x179281<this['sections']['length'];){let _0x23ce93=this['sections'][_0x179281++],_0x30e383=this['sections'][_0x179281++],_0x4b7f49=_0x2fc735+_0x23ce93;if(_0x30e383<0x0){if(_0x4b7f49>_0x4814d4)return _0x4c1711+(_0x4814d4-_0x2fc735);_0x4c1711+=_0x23ce93;}else{if(_0x59cc19!=MapMode['Simple']&&_0x4b7f49>=_0x4814d4&&(_0x59cc19==MapMode['TrackDel']&&_0x2fc735<_0x4814d4&&_0x4b7f49>_0x4814d4||_0x59cc19==MapMode['TrackBefore']&&_0x2fc735<_0x4814d4||_0x59cc19==MapMode['TrackAfter']&&_0x4b7f49>_0x4814d4))return null;if(_0x4b7f49>_0x4814d4||_0x4b7f49==_0x4814d4&&_0x35ec93<0x0&&!_0x23ce93)return _0x4814d4==_0x2fc735||_0x35ec93<0x0?_0x4c1711:_0x4c1711+_0x30e383;_0x4c1711+=_0x30e383;}_0x2fc735=_0x4b7f49;}if(_0x4814d4>_0x2fc735)throw new RangeError('Position\x20'+_0x4814d4+'\x20is\x20out\x20of\x20range\x20for\x20changeset\x20of\x20length\x20'+_0x2fc735);return _0x4c1711;}['touchesRange'](_0x271abc,_0x5b3bb4=_0x271abc){for(let _0x32608f=0x0,_0x38137b=0x0;_0x32608f<this['sections']['length']&&_0x38137b<=_0x5b3bb4;){let _0x1caa04=_0x38137b+this['sections'][_0x32608f++];if(this['sections'][_0x32608f++]>=0x0&&_0x38137b<=_0x5b3bb4&&_0x1caa04>=_0x271abc)return!(_0x38137b<_0x271abc&&_0x1caa04>_0x5b3bb4)||'cover';_0x38137b=_0x1caa04;}return!0x1;}['toString'](){let _0xb52a36='';for(let _0x714811=0x0;_0x714811<this['sections']['length'];){let _0x4edda8=this['sections'][_0x714811++],_0x57f37b=this['sections'][_0x714811++];_0xb52a36+=(_0xb52a36?'\x20':'')+_0x4edda8+(_0x57f37b>=0x0?':'+_0x57f37b:'');}return _0xb52a36;}['toJSON'](){return this['sections'];}static['fromJSON'](_0x2fcb7f){if(!Array['isArray'](_0x2fcb7f)||_0x2fcb7f['length']%0x2||_0x2fcb7f['some'](_0x29d1a1=>'number'!=typeof _0x29d1a1))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeDesc');return new ChangeDesc(_0x2fcb7f);}static['create'](_0x2bd437){return new ChangeDesc(_0x2bd437);}}class ChangeSet extends ChangeDesc{constructor(_0x30e6e9,_0x3fb7d8){super(_0x30e6e9),this['inserted']=_0x3fb7d8;}['apply'](_0x2814f7){if(this['length']!=_0x2814f7['length'])throw new RangeError('Applying\x20change\x20set\x20to\x20a\x20document\x20with\x20the\x20wrong\x20length');return iterChanges(this,(_0x51c995,_0x41b25b,_0x409931,_0xf72cfa,_0x5dc9e5)=>_0x2814f7=_0x2814f7['replace'](_0x409931,_0x409931+(_0x41b25b-_0x51c995),_0x5dc9e5),!0x1),_0x2814f7;}['mapDesc'](_0x11a5e4,_0x4f08b8=!0x1){return mapSet(this,_0x11a5e4,_0x4f08b8,!0x0);}['invert'](_0x12fb1b){let _0x225175=this['sections']['slice'](),_0x46e991=[];for(let _0x1c1b26=0x0,_0x2894f1=0x0;_0x1c1b26<_0x225175['length'];_0x1c1b26+=0x2){let _0x5610a7=_0x225175[_0x1c1b26],_0x5265f3=_0x225175[_0x1c1b26+0x1];if(_0x5265f3>=0x0){_0x225175[_0x1c1b26]=_0x5265f3,_0x225175[_0x1c1b26+0x1]=_0x5610a7;let _0x4b7c4b=_0x1c1b26>>0x1;for(;_0x46e991['length']<_0x4b7c4b;)_0x46e991['push'](Text['empty']);_0x46e991['push'](_0x5610a7?_0x12fb1b['slice'](_0x2894f1,_0x2894f1+_0x5610a7):Text['empty']);}_0x2894f1+=_0x5610a7;}return new ChangeSet(_0x225175,_0x46e991);}['compose'](_0xb7aed6){return this['empty']?_0xb7aed6:_0xb7aed6['empty']?this:composeSets(this,_0xb7aed6,!0x0);}['map'](_0x521f0e,_0x39e521=!0x1){return _0x521f0e['empty']?this:mapSet(this,_0x521f0e,_0x39e521,!0x0);}['iterChanges'](_0x346444,_0x469ab6=!0x1){iterChanges(this,_0x346444,_0x469ab6);}get['desc'](){return ChangeDesc['create'](this['sections']);}['filter'](_0x5575c1){let _0x551b8b=[],_0x561a53=[],_0x31f58f=[],_0x1fd51f=new SectionIter(this);t:for(let _0x5e1c0b=0x0,_0x5adbb1=0x0;;){let _0x2d52dd=_0x5e1c0b==_0x5575c1['length']?0x3b9aca00:_0x5575c1[_0x5e1c0b++];for(;_0x5adbb1<_0x2d52dd||_0x5adbb1==_0x2d52dd&&0x0==_0x1fd51f['len'];){if(_0x1fd51f['done'])break t;let _0x708c23=Math['min'](_0x1fd51f['len'],_0x2d52dd-_0x5adbb1);addSection(_0x31f58f,_0x708c23,-0x1);let _0x1026ab=-0x1==_0x1fd51f['ins']?-0x1:0x0==_0x1fd51f['off']?_0x1fd51f['ins']:0x0;addSection(_0x551b8b,_0x708c23,_0x1026ab),_0x1026ab>0x0&&addInsert(_0x561a53,_0x551b8b,_0x1fd51f['text']),_0x1fd51f['forward'](_0x708c23),_0x5adbb1+=_0x708c23;}let _0x5deb61=_0x5575c1[_0x5e1c0b++];for(;_0x5adbb1<_0x5deb61;){if(_0x1fd51f['done'])break t;let _0x25b8ce=Math['min'](_0x1fd51f['len'],_0x5deb61-_0x5adbb1);addSection(_0x551b8b,_0x25b8ce,-0x1),addSection(_0x31f58f,_0x25b8ce,-0x1==_0x1fd51f['ins']?-0x1:0x0==_0x1fd51f['off']?_0x1fd51f['ins']:0x0),_0x1fd51f['forward'](_0x25b8ce),_0x5adbb1+=_0x25b8ce;}}return{'changes':new ChangeSet(_0x551b8b,_0x561a53),'filtered':ChangeDesc['create'](_0x31f58f)};}['toJSON'](){let _0x37c7eb=[];for(let _0x27e52a=0x0;_0x27e52a<this['sections']['length'];_0x27e52a+=0x2){let _0x3602f6=this['sections'][_0x27e52a],_0x25ebcf=this['sections'][_0x27e52a+0x1];_0x25ebcf<0x0?_0x37c7eb['push'](_0x3602f6):0x0==_0x25ebcf?_0x37c7eb['push']([_0x3602f6]):_0x37c7eb['push']([_0x3602f6]['concat'](this['inserted'][_0x27e52a>>0x1]['toJSON']()));}return _0x37c7eb;}static['of'](_0xc7f555,_0x142434,_0x173367){let _0x4eb835=[],_0x47bd3b=[],_0x52d278=0x0,_0x1467b3=null;function _0xf8c535(_0x22b03a=!0x1){if(!_0x22b03a&&!_0x4eb835['length'])return;_0x52d278<_0x142434&&addSection(_0x4eb835,_0x142434-_0x52d278,-0x1);let _0x487bc2=new ChangeSet(_0x4eb835,_0x47bd3b);_0x1467b3=_0x1467b3?_0x1467b3['compose'](_0x487bc2['map'](_0x1467b3)):_0x487bc2,_0x4eb835=[],_0x47bd3b=[],_0x52d278=0x0;}return function _0x4fc02a(_0x526028){if(Array['isArray'](_0x526028)){for(let _0x12b5a9 of _0x526028)_0x4fc02a(_0x12b5a9);}else{if(_0x526028 instanceof ChangeSet){if(_0x526028['length']!=_0x142434)throw new RangeError('Mismatched\x20change\x20set\x20length\x20(got\x20'+_0x526028['length']+',\x20expected\x20'+_0x142434+')');_0xf8c535(),_0x1467b3=_0x1467b3?_0x1467b3['compose'](_0x526028['map'](_0x1467b3)):_0x526028;}else{let {from:_0x297286,to:_0x2115a8=_0x297286,insert:_0x1027c4}=_0x526028;if(_0x297286>_0x2115a8||_0x297286<0x0||_0x2115a8>_0x142434)throw new RangeError('Invalid\x20change\x20range\x20'+_0x297286+'\x20to\x20'+_0x2115a8+'\x20(in\x20doc\x20of\x20length\x20'+_0x142434+')');let _0x5918f8=_0x1027c4?'string'==typeof _0x1027c4?Text['of'](_0x1027c4['split'](_0x173367||DefaultSplit)):_0x1027c4:Text['empty'],_0x349525=_0x5918f8['length'];if(_0x297286==_0x2115a8&&0x0==_0x349525)return;_0x297286<_0x52d278&&_0xf8c535(),_0x297286>_0x52d278&&addSection(_0x4eb835,_0x297286-_0x52d278,-0x1),addSection(_0x4eb835,_0x2115a8-_0x297286,_0x349525),addInsert(_0x47bd3b,_0x4eb835,_0x5918f8),_0x52d278=_0x2115a8;}}}(_0xc7f555),_0xf8c535(!_0x1467b3),_0x1467b3;}static['empty'](_0x346aba){return new ChangeSet(_0x346aba?[_0x346aba,-0x1]:[],[]);}static['fromJSON'](_0x95a2e8){if(!Array['isArray'](_0x95a2e8))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeSet');let _0x242589=[],_0x40f380=[];for(let _0x57b6ba=0x0;_0x57b6ba<_0x95a2e8['length'];_0x57b6ba++){let _0x538c57=_0x95a2e8[_0x57b6ba];if('number'==typeof _0x538c57)_0x242589['push'](_0x538c57,-0x1);else{if(!Array['isArray'](_0x538c57)||'number'!=typeof _0x538c57[0x0]||_0x538c57['some']((_0x69edb8,_0x49b45c)=>_0x49b45c&&'string'!=typeof _0x69edb8))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeSet');if(0x1==_0x538c57['length'])_0x242589['push'](_0x538c57[0x0],0x0);else{for(;_0x40f380['length']<_0x57b6ba;)_0x40f380['push'](Text['empty']);_0x40f380[_0x57b6ba]=Text['of'](_0x538c57['slice'](0x1)),_0x242589['push'](_0x538c57[0x0],_0x40f380[_0x57b6ba]['length']);}}}return new ChangeSet(_0x242589,_0x40f380);}static['createSet'](_0x4d2a24,_0x4d71c5){return new ChangeSet(_0x4d2a24,_0x4d71c5);}}function addSection(_0x53121e,_0x577947,_0xcf8969,_0x4ba493=!0x1){if(0x0==_0x577947&&_0xcf8969<=0x0)return;let _0x419f67=_0x53121e['length']-0x2;_0x419f67>=0x0&&_0xcf8969<=0x0&&_0xcf8969==_0x53121e[_0x419f67+0x1]?_0x53121e[_0x419f67]+=_0x577947:_0x419f67>=0x0&&0x0==_0x577947&&0x0==_0x53121e[_0x419f67]?_0x53121e[_0x419f67+0x1]+=_0xcf8969:_0x4ba493?(_0x53121e[_0x419f67]+=_0x577947,_0x53121e[_0x419f67+0x1]+=_0xcf8969):_0x53121e['push'](_0x577947,_0xcf8969);}function addInsert(_0x17a8a2,_0x2476a2,_0x2a055c){if(0x0==_0x2a055c['length'])return;let _0x2d1b15=_0x2476a2['length']-0x2>>0x1;if(_0x2d1b15<_0x17a8a2['length'])_0x17a8a2[_0x17a8a2['length']-0x1]=_0x17a8a2[_0x17a8a2['length']-0x1]['append'](_0x2a055c);else{for(;_0x17a8a2['length']<_0x2d1b15;)_0x17a8a2['push'](Text['empty']);_0x17a8a2['push'](_0x2a055c);}}function iterChanges(_0x5448c3,_0x2f7f88,_0x546c4b){let _0x4d49ef=_0x5448c3['inserted'];for(let _0x53a42a=0x0,_0x5cf696=0x0,_0x2b2afe=0x0;_0x2b2afe<_0x5448c3['sections']['length'];){let _0x510d59=_0x5448c3['sections'][_0x2b2afe++],_0x18adc9=_0x5448c3['sections'][_0x2b2afe++];if(_0x18adc9<0x0)_0x53a42a+=_0x510d59,_0x5cf696+=_0x510d59;else{let _0x2d6489=_0x53a42a,_0x2b35cc=_0x5cf696,_0x9d99b2=Text['empty'];for(;_0x2d6489+=_0x510d59,_0x2b35cc+=_0x18adc9,_0x18adc9&&_0x4d49ef&&(_0x9d99b2=_0x9d99b2['append'](_0x4d49ef[_0x2b2afe-0x2>>0x1])),!(_0x546c4b||_0x2b2afe==_0x5448c3['sections']['length']||_0x5448c3['sections'][_0x2b2afe+0x1]<0x0);)_0x510d59=_0x5448c3['sections'][_0x2b2afe++],_0x18adc9=_0x5448c3['sections'][_0x2b2afe++];_0x2f7f88(_0x53a42a,_0x2d6489,_0x5cf696,_0x2b35cc,_0x9d99b2),_0x53a42a=_0x2d6489,_0x5cf696=_0x2b35cc;}}}function mapSet(_0xdfef01,_0x56ff60,_0x3d7404,_0x44272a=!0x1){let _0x4ac363=[],_0x12e52c=_0x44272a?[]:null,_0x3fea24=new SectionIter(_0xdfef01),_0x458d94=new SectionIter(_0x56ff60);for(let _0x2c9ffc=-0x1;;){if(_0x3fea24['done']&&_0x458d94['len']||_0x458d94['done']&&_0x3fea24['len'])throw new Error('Mismatched\x20change\x20set\x20lengths');if(-0x1==_0x3fea24['ins']&&-0x1==_0x458d94['ins']){let _0x1bcaf0=Math['min'](_0x3fea24['len'],_0x458d94['len']);addSection(_0x4ac363,_0x1bcaf0,-0x1),_0x3fea24['forward'](_0x1bcaf0),_0x458d94['forward'](_0x1bcaf0);}else{if(_0x458d94['ins']>=0x0&&(_0x3fea24['ins']<0x0||_0x2c9ffc==_0x3fea24['i']||0x0==_0x3fea24['off']&&(_0x458d94['len']<_0x3fea24['len']||_0x458d94['len']==_0x3fea24['len']&&!_0x3d7404))){let _0x26d34d=_0x458d94['len'];for(addSection(_0x4ac363,_0x458d94['ins'],-0x1);_0x26d34d;){let _0x5b017c=Math['min'](_0x3fea24['len'],_0x26d34d);_0x3fea24['ins']>=0x0&&_0x2c9ffc<_0x3fea24['i']&&_0x3fea24['len']<=_0x5b017c&&(addSection(_0x4ac363,0x0,_0x3fea24['ins']),_0x12e52c&&addInsert(_0x12e52c,_0x4ac363,_0x3fea24['text']),_0x2c9ffc=_0x3fea24['i']),_0x3fea24['forward'](_0x5b017c),_0x26d34d-=_0x5b017c;}_0x458d94['next']();}else{if(!(_0x3fea24['ins']>=0x0)){if(_0x3fea24['done']&&_0x458d94['done'])return _0x12e52c?ChangeSet['createSet'](_0x4ac363,_0x12e52c):ChangeDesc['create'](_0x4ac363);throw new Error('Mismatched\x20change\x20set\x20lengths');}{let _0x1a9fb1=0x0,_0x4a40a3=_0x3fea24['len'];for(;_0x4a40a3;)if(-0x1==_0x458d94['ins']){let _0x7bf3c4=Math['min'](_0x4a40a3,_0x458d94['len']);_0x1a9fb1+=_0x7bf3c4,_0x4a40a3-=_0x7bf3c4,_0x458d94['forward'](_0x7bf3c4);}else{if(!(0x0==_0x458d94['ins']&&_0x458d94['len']<_0x4a40a3))break;_0x4a40a3-=_0x458d94['len'],_0x458d94['next']();}addSection(_0x4ac363,_0x1a9fb1,_0x2c9ffc<_0x3fea24['i']?_0x3fea24['ins']:0x0),_0x12e52c&&_0x2c9ffc<_0x3fea24['i']&&addInsert(_0x12e52c,_0x4ac363,_0x3fea24['text']),_0x2c9ffc=_0x3fea24['i'],_0x3fea24['forward'](_0x3fea24['len']-_0x4a40a3);}}}}}function composeSets(_0x2f1982,_0x4e9fe,_0x500d4d=!0x1){let _0x46e8d5=[],_0x43988f=_0x500d4d?[]:null,_0x4253ea=new SectionIter(_0x2f1982),_0x18fd96=new SectionIter(_0x4e9fe);for(let _0x2afe56=!0x1;;){if(_0x4253ea['done']&&_0x18fd96['done'])return _0x43988f?ChangeSet['createSet'](_0x46e8d5,_0x43988f):ChangeDesc['create'](_0x46e8d5);if(0x0==_0x4253ea['ins'])addSection(_0x46e8d5,_0x4253ea['len'],0x0,_0x2afe56),_0x4253ea['next']();else{if(0x0!=_0x18fd96['len']||_0x18fd96['done']){if(_0x4253ea['done']||_0x18fd96['done'])throw new Error('Mismatched\x20change\x20set\x20lengths');{let _0x31d03e=Math['min'](_0x4253ea['len2'],_0x18fd96['len']),_0x408560=_0x46e8d5['length'];if(-0x1==_0x4253ea['ins']){let _0x2875d6=-0x1==_0x18fd96['ins']?-0x1:_0x18fd96['off']?0x0:_0x18fd96['ins'];addSection(_0x46e8d5,_0x31d03e,_0x2875d6,_0x2afe56),_0x43988f&&_0x2875d6&&addInsert(_0x43988f,_0x46e8d5,_0x18fd96['text']);}else-0x1==_0x18fd96['ins']?(addSection(_0x46e8d5,_0x4253ea['off']?0x0:_0x4253ea['len'],_0x31d03e,_0x2afe56),_0x43988f&&addInsert(_0x43988f,_0x46e8d5,_0x4253ea['textBit'](_0x31d03e))):(addSection(_0x46e8d5,_0x4253ea['off']?0x0:_0x4253ea['len'],_0x18fd96['off']?0x0:_0x18fd96['ins'],_0x2afe56),_0x43988f&&!_0x18fd96['off']&&addInsert(_0x43988f,_0x46e8d5,_0x18fd96['text']));_0x2afe56=(_0x4253ea['ins']>_0x31d03e||_0x18fd96['ins']>=0x0&&_0x18fd96['len']>_0x31d03e)&&(_0x2afe56||_0x46e8d5['length']>_0x408560),_0x4253ea['forward2'](_0x31d03e),_0x18fd96['forward'](_0x31d03e);}}else addSection(_0x46e8d5,0x0,_0x18fd96['ins'],_0x2afe56),_0x43988f&&addInsert(_0x43988f,_0x46e8d5,_0x18fd96['text']),_0x18fd96['next']();}}}class SectionIter{constructor(_0x36a051){this['set']=_0x36a051,this['i']=0x0,this['next']();}['next'](){let {sections:_0x25fcee}=this['set'];this['i']<_0x25fcee['length']?(this['len']=_0x25fcee[this['i']++],this['ins']=_0x25fcee[this['i']++]):(this['len']=0x0,this['ins']=-0x2),this['off']=0x0;}get['done'](){return-0x2==this['ins'];}get['len2'](){return this['ins']<0x0?this['len']:this['ins'];}get['text'](){let {inserted:_0x2065b0}=this['set'],_0x3b410b=this['i']-0x2>>0x1;return _0x3b410b>=_0x2065b0['length']?Text['empty']:_0x2065b0[_0x3b410b];}['textBit'](_0x2824f2){let {inserted:_0x257a64}=this['set'],_0x13f8a0=this['i']-0x2>>0x1;return _0x13f8a0>=_0x257a64['length']&&!_0x2824f2?Text['empty']:_0x257a64[_0x13f8a0]['slice'](this['off'],null==_0x2824f2?void 0x0:this['off']+_0x2824f2);}['forward'](_0x5d1dca){_0x5d1dca==this['len']?this['next']():(this['len']-=_0x5d1dca,this['off']+=_0x5d1dca);}['forward2'](_0x12041e){-0x1==this['ins']?this['forward'](_0x12041e):_0x12041e==this['ins']?this['next']():(this['ins']-=_0x12041e,this['off']+=_0x12041e);}}class SelectionRange{constructor(_0x55307a,_0x1f4b2e,_0x3f13d7){this['from']=_0x55307a,this['to']=_0x1f4b2e,this['flags']=_0x3f13d7;}get['anchor'](){return 0x20&this['flags']?this['to']:this['from'];}get['head'](){return 0x20&this['flags']?this['from']:this['to'];}get['empty'](){return this['from']==this['to'];}get['assoc'](){return 0x8&this['flags']?-0x1:0x10&this['flags']?0x1:0x0;}get['bidiLevel'](){let _0x3361de=0x7&this['flags'];return 0x7==_0x3361de?null:_0x3361de;}get['goalColumn'](){let _0xb0cfee=this['flags']>>0x6;return 0xffffff==_0xb0cfee?void 0x0:_0xb0cfee;}['map'](_0x454876,_0x232823=-0x1){let _0x35a1de,_0x2c8c74;return this['empty']?_0x35a1de=_0x2c8c74=_0x454876['mapPos'](this['from'],_0x232823):(_0x35a1de=_0x454876['mapPos'](this['from'],0x1),_0x2c8c74=_0x454876['mapPos'](this['to'],-0x1)),_0x35a1de==this['from']&&_0x2c8c74==this['to']?this:new SelectionRange(_0x35a1de,_0x2c8c74,this['flags']);}['extend'](_0x2bbcc5,_0x523952=_0x2bbcc5){if(_0x2bbcc5<=this['anchor']&&_0x523952>=this['anchor'])return EditorSelection['range'](_0x2bbcc5,_0x523952);let _0x4e6d0f=Math['abs'](_0x2bbcc5-this['anchor'])>Math['abs'](_0x523952-this['anchor'])?_0x2bbcc5:_0x523952;return EditorSelection['range'](this['anchor'],_0x4e6d0f);}['eq'](_0x1c55c1,_0x3a59b5=!0x1){return!(this['anchor']!=_0x1c55c1['anchor']||this['head']!=_0x1c55c1['head']||_0x3a59b5&&this['empty']&&this['assoc']!=_0x1c55c1['assoc']);}['toJSON'](){return{'anchor':this['anchor'],'head':this['head']};}static['fromJSON'](_0x139921){if(!_0x139921||'number'!=typeof _0x139921['anchor']||'number'!=typeof _0x139921['head'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20SelectionRange');return EditorSelection['range'](_0x139921['anchor'],_0x139921['head']);}static['create'](_0x5ce63a,_0x3c9756,_0x16921b){return new SelectionRange(_0x5ce63a,_0x3c9756,_0x16921b);}}class EditorSelection{constructor(_0x7a8c23,_0x1db35c){this['ranges']=_0x7a8c23,this['mainIndex']=_0x1db35c;}['map'](_0x253266,_0x151421=-0x1){return _0x253266['empty']?this:EditorSelection['create'](this['ranges']['map'](_0x294600=>_0x294600['map'](_0x253266,_0x151421)),this['mainIndex']);}['eq'](_0x47a320,_0x3b4097=!0x1){if(this['ranges']['length']!=_0x47a320['ranges']['length']||this['mainIndex']!=_0x47a320['mainIndex'])return!0x1;for(let _0x204a7e=0x0;_0x204a7e<this['ranges']['length'];_0x204a7e++)if(!this['ranges'][_0x204a7e]['eq'](_0x47a320['ranges'][_0x204a7e],_0x3b4097))return!0x1;return!0x0;}get['main'](){return this['ranges'][this['mainIndex']];}['asSingle'](){return 0x1==this['ranges']['length']?this:new EditorSelection([this['main']],0x0);}['addRange'](_0x509e13,_0x242adb=!0x0){return EditorSelection['create']([_0x509e13]['concat'](this['ranges']),_0x242adb?0x0:this['mainIndex']+0x1);}['replaceRange'](_0x3f849d,_0x2ae32a=this['mainIndex']){let _0x22d22d=this['ranges']['slice']();return _0x22d22d[_0x2ae32a]=_0x3f849d,EditorSelection['create'](_0x22d22d,this['mainIndex']);}['toJSON'](){return{'ranges':this['ranges']['map'](_0xc7aee0=>_0xc7aee0['toJSON']()),'main':this['mainIndex']};}static['fromJSON'](_0x2e6aba){if(!_0x2e6aba||!Array['isArray'](_0x2e6aba['ranges'])||'number'!=typeof _0x2e6aba['main']||_0x2e6aba['main']>=_0x2e6aba['ranges']['length'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20EditorSelection');return new EditorSelection(_0x2e6aba['ranges']['map'](_0x543a3c=>SelectionRange['fromJSON'](_0x543a3c)),_0x2e6aba['main']);}static['single'](_0x7e754c,_0x5198b7=_0x7e754c){return new EditorSelection([EditorSelection['range'](_0x7e754c,_0x5198b7)],0x0);}static['create'](_0x9de2a4,_0x4240b3=0x0){if(0x0==_0x9de2a4['length'])throw new RangeError('A\x20selection\x20needs\x20at\x20least\x20one\x20range');for(let _0x2396ab=0x0,_0x2514ec=0x0;_0x2514ec<_0x9de2a4['length'];_0x2514ec++){let _0x4f667a=_0x9de2a4[_0x2514ec];if(_0x4f667a['empty']?_0x4f667a['from']<=_0x2396ab:_0x4f667a['from']<_0x2396ab)return EditorSelection['normalized'](_0x9de2a4['slice'](),_0x4240b3);_0x2396ab=_0x4f667a['to'];}return new EditorSelection(_0x9de2a4,_0x4240b3);}static['cursor'](_0x1be07b,_0x51bd6a=0x0,_0x4aec9c,_0x514b13){return SelectionRange['create'](_0x1be07b,_0x1be07b,(0x0==_0x51bd6a?0x0:_0x51bd6a<0x0?0x8:0x10)|(null==_0x4aec9c?0x7:Math['min'](0x6,_0x4aec9c))|(null!=_0x514b13?_0x514b13:0xffffff)<<0x6);}static['range'](_0x2a39e8,_0x991f77,_0x30c419,_0x4a6b12){let _0x2526e0=(null!=_0x30c419?_0x30c419:0xffffff)<<0x6|(null==_0x4a6b12?0x7:Math['min'](0x6,_0x4a6b12));return _0x991f77<_0x2a39e8?SelectionRange['create'](_0x991f77,_0x2a39e8,0x30|_0x2526e0):SelectionRange['create'](_0x2a39e8,_0x991f77,(_0x991f77>_0x2a39e8?0x8:0x0)|_0x2526e0);}static['normalized'](_0x563314,_0x414ca3=0x0){let _0x2f09a3=_0x563314[_0x414ca3];_0x563314['sort']((_0xa51293,_0x4b6365)=>_0xa51293['from']-_0x4b6365['from']),_0x414ca3=_0x563314['indexOf'](_0x2f09a3);for(let _0xbf8c10=0x1;_0xbf8c10<_0x563314['length'];_0xbf8c10++){let _0x453d70=_0x563314[_0xbf8c10],_0x48c161=_0x563314[_0xbf8c10-0x1];if(_0x453d70['empty']?_0x453d70['from']<=_0x48c161['to']:_0x453d70['from']<_0x48c161['to']){let _0x2f84b4=_0x48c161['from'],_0x14daa6=Math['max'](_0x453d70['to'],_0x48c161['to']);_0xbf8c10<=_0x414ca3&&_0x414ca3--,_0x563314['splice'](--_0xbf8c10,0x2,_0x453d70['anchor']>_0x453d70['head']?EditorSelection['range'](_0x14daa6,_0x2f84b4):EditorSelection['range'](_0x2f84b4,_0x14daa6));}}return new EditorSelection(_0x563314,_0x414ca3);}}function checkSelection(_0x398bd7,_0xb442fc){for(let _0x2268b6 of _0x398bd7['ranges'])if(_0x2268b6['to']>_0xb442fc)throw new RangeError('Selection\x20points\x20outside\x20of\x20document');}let nextID=0x0;class Facet{constructor(_0x342531,_0xffd332,_0x56dedc,_0x43dd20,_0x5112cb){this['combine']=_0x342531,this['compareInput']=_0xffd332,this['compare']=_0x56dedc,this['isStatic']=_0x43dd20,this['id']=nextID++,this['default']=_0x342531([]),this['extensions']='function'==typeof _0x5112cb?_0x5112cb(this):_0x5112cb;}get['reader'](){return this;}static['define'](_0x217d4c={}){return new Facet(_0x217d4c['combine']||(_0x372f1d=>_0x372f1d),_0x217d4c['compareInput']||((_0x26099e,_0xfc1ed2)=>_0x26099e===_0xfc1ed2),_0x217d4c['compare']||(_0x217d4c['combine']?(_0x1dc4f0,_0x2b671e)=>_0x1dc4f0===_0x2b671e:sameArray$1),!!_0x217d4c['static'],_0x217d4c['enables']);}['of'](_0x506e2b){return new FacetProvider([],this,0x0,_0x506e2b);}['compute'](_0x53df56,_0x4ec54e){if(this['isStatic'])throw new Error('Can\x27t\x20compute\x20a\x20static\x20facet');return new FacetProvider(_0x53df56,this,0x1,_0x4ec54e);}['computeN'](_0x28d145,_0x1075d0){if(this['isStatic'])throw new Error('Can\x27t\x20compute\x20a\x20static\x20facet');return new FacetProvider(_0x28d145,this,0x2,_0x1075d0);}['from'](_0x58050f,_0x3b201c){return _0x3b201c||(_0x3b201c=_0x4f4948=>_0x4f4948),this['compute']([_0x58050f],_0x5d507e=>_0x3b201c(_0x5d507e['field'](_0x58050f)));}}function sameArray$1(_0x3733c1,_0x501173){return _0x3733c1==_0x501173||_0x3733c1['length']==_0x501173['length']&&_0x3733c1['every']((_0x5868e4,_0x4ae41f)=>_0x5868e4===_0x501173[_0x4ae41f]);}class FacetProvider{constructor(_0x2e1117,_0x2aa411,_0x52a8c0,_0x24dacb){this['dependencies']=_0x2e1117,this['facet']=_0x2aa411,this['type']=_0x52a8c0,this['value']=_0x24dacb,this['id']=nextID++;}['dynamicSlot'](_0x331e30){var _0x4334fd;let _0x1824ee=this['value'],_0x2b2832=this['facet']['compareInput'],_0x931f30=this['id'],_0x508930=_0x331e30[_0x931f30]>>0x1,_0x2ca754=0x2==this['type'],_0x1e4aa1=!0x1,_0x27149a=!0x1,_0x223cd7=[];for(let _0x14f826 of this['dependencies'])'doc'==_0x14f826?_0x1e4aa1=!0x0:'selection'==_0x14f826?_0x27149a=!0x0:0x1&(null!==(_0x4334fd=_0x331e30[_0x14f826['id']])&&void 0x0!==_0x4334fd?_0x4334fd:0x1)||_0x223cd7['push'](_0x331e30[_0x14f826['id']]);return{'create':_0x4d6b3a=>(_0x4d6b3a['values'][_0x508930]=_0x1824ee(_0x4d6b3a),0x1),'update'(_0x1ded64,_0x1c3520){if(_0x1e4aa1&&_0x1c3520['docChanged']||_0x27149a&&(_0x1c3520['docChanged']||_0x1c3520['selection'])||ensureAll(_0x1ded64,_0x223cd7)){let _0x1441b3=_0x1824ee(_0x1ded64);if(_0x2ca754?!compareArray(_0x1441b3,_0x1ded64['values'][_0x508930],_0x2b2832):!_0x2b2832(_0x1441b3,_0x1ded64['values'][_0x508930]))return _0x1ded64['values'][_0x508930]=_0x1441b3,0x1;}return 0x0;},'reconfigure':(_0x554ed0,_0x3c555f)=>{let _0x1b3e2d,_0x58257f=_0x3c555f['config']['address'][_0x931f30];if(null!=_0x58257f){let _0x504801=getAddr(_0x3c555f,_0x58257f);if(this['dependencies']['every'](_0x1a8284=>_0x1a8284 instanceof Facet?_0x3c555f['facet'](_0x1a8284)===_0x554ed0['facet'](_0x1a8284):!(_0x1a8284 instanceof StateField)||_0x3c555f['field'](_0x1a8284,!0x1)==_0x554ed0['field'](_0x1a8284,!0x1))||(_0x2ca754?compareArray(_0x1b3e2d=_0x1824ee(_0x554ed0),_0x504801,_0x2b2832):_0x2b2832(_0x1b3e2d=_0x1824ee(_0x554ed0),_0x504801)))return _0x554ed0['values'][_0x508930]=_0x504801,0x0;}else _0x1b3e2d=_0x1824ee(_0x554ed0);return _0x554ed0['values'][_0x508930]=_0x1b3e2d,0x1;}};}}function compareArray(_0x5484f2,_0x246f9a,_0x23cbe1){if(_0x5484f2['length']!=_0x246f9a['length'])return!0x1;for(let _0x22f30d=0x0;_0x22f30d<_0x5484f2['length'];_0x22f30d++)if(!_0x23cbe1(_0x5484f2[_0x22f30d],_0x246f9a[_0x22f30d]))return!0x1;return!0x0;}function ensureAll(_0x4ad282,_0x1d9341){let _0x3637dc=!0x1;for(let _0x1fb4a9 of _0x1d9341)0x1&ensureAddr(_0x4ad282,_0x1fb4a9)&&(_0x3637dc=!0x0);return _0x3637dc;}function dynamicFacetSlot(_0x419d72,_0x31bb1d,_0xa336f5){let _0x51d9be=_0xa336f5['map'](_0x1c2cd0=>_0x419d72[_0x1c2cd0['id']]),_0x17acfd=_0xa336f5['map'](_0x4329b0=>_0x4329b0['type']),_0x2811b4=_0x51d9be['filter'](_0x36ae07=>!(0x1&_0x36ae07)),_0x4ab907=_0x419d72[_0x31bb1d['id']]>>0x1;function _0x40e4de(_0x2dded6){let _0x24af1c=[];for(let _0x3046e8=0x0;_0x3046e8<_0x51d9be['length'];_0x3046e8++){let _0x206477=getAddr(_0x2dded6,_0x51d9be[_0x3046e8]);if(0x2==_0x17acfd[_0x3046e8]){for(let _0x5064ab of _0x206477)_0x24af1c['push'](_0x5064ab);}else _0x24af1c['push'](_0x206477);}return _0x31bb1d['combine'](_0x24af1c);}return{'create'(_0x3d8b1e){for(let _0x55cb4f of _0x51d9be)ensureAddr(_0x3d8b1e,_0x55cb4f);return _0x3d8b1e['values'][_0x4ab907]=_0x40e4de(_0x3d8b1e),0x1;},'update'(_0x461749,_0x4f2537){if(!ensureAll(_0x461749,_0x2811b4))return 0x0;let _0x5040da=_0x40e4de(_0x461749);return _0x31bb1d['compare'](_0x5040da,_0x461749['values'][_0x4ab907])?0x0:(_0x461749['values'][_0x4ab907]=_0x5040da,0x1);},'reconfigure'(_0x5d6b1d,_0x11121c){let _0x48dd8a=ensureAll(_0x5d6b1d,_0x51d9be),_0x48116c=_0x11121c['config']['facets'][_0x31bb1d['id']],_0x21c447=_0x11121c['facet'](_0x31bb1d);if(_0x48116c&&!_0x48dd8a&&sameArray$1(_0xa336f5,_0x48116c))return _0x5d6b1d['values'][_0x4ab907]=_0x21c447,0x0;let _0x20525c=_0x40e4de(_0x5d6b1d);return _0x31bb1d['compare'](_0x20525c,_0x21c447)?(_0x5d6b1d['values'][_0x4ab907]=_0x21c447,0x0):(_0x5d6b1d['values'][_0x4ab907]=_0x20525c,0x1);}};}const initField=Facet['define']({'static':!0x0});class StateField{constructor(_0x15e0c7,_0xb2a32f,_0x370daf,_0x46f747,_0x1eb56e){this['id']=_0x15e0c7,this['createF']=_0xb2a32f,this['updateF']=_0x370daf,this['compareF']=_0x46f747,this['spec']=_0x1eb56e,this['provides']=void 0x0;}static['define'](_0x56571a){let _0xb3d992=new StateField(nextID++,_0x56571a['create'],_0x56571a['update'],_0x56571a['compare']||((_0xccec41,_0x4f497a)=>_0xccec41===_0x4f497a),_0x56571a);return _0x56571a['provide']&&(_0xb3d992['provides']=_0x56571a['provide'](_0xb3d992)),_0xb3d992;}['create'](_0x91319d){let _0x198a60=_0x91319d['facet'](initField)['find'](_0x355d9d=>_0x355d9d['field']==this);return((null==_0x198a60?void 0x0:_0x198a60['create'])||this['createF'])(_0x91319d);}['slot'](_0x3ec247){let _0x3a5a35=_0x3ec247[this['id']]>>0x1;return{'create':_0x522c8b=>(_0x522c8b['values'][_0x3a5a35]=this['create'](_0x522c8b),0x1),'update':(_0x414899,_0x4efa5a)=>{let _0x47a693=_0x414899['values'][_0x3a5a35],_0x2a61cf=this['updateF'](_0x47a693,_0x4efa5a);return this['compareF'](_0x47a693,_0x2a61cf)?0x0:(_0x414899['values'][_0x3a5a35]=_0x2a61cf,0x1);},'reconfigure':(_0x21ad9b,_0x1d7fba)=>{let _0x240b89,_0x431042=_0x21ad9b['facet'](initField),_0x225891=_0x1d7fba['facet'](initField);return(_0x240b89=_0x431042['find'](_0x287bbe=>_0x287bbe['field']==this))&&_0x240b89!=_0x225891['find'](_0x31ccdc=>_0x31ccdc['field']==this)?(_0x21ad9b['values'][_0x3a5a35]=_0x240b89['create'](_0x21ad9b),0x1):null!=_0x1d7fba['config']['address'][this['id']]?(_0x21ad9b['values'][_0x3a5a35]=_0x1d7fba['field'](this),0x0):(_0x21ad9b['values'][_0x3a5a35]=this['create'](_0x21ad9b),0x1);}};}['init'](_0x3fd85e){return[this,initField['of']({'field':this,'create':_0x3fd85e})];}get['extension'](){return this;}}const Prec_={'lowest':0x4,'low':0x3,'default':0x2,'high':0x1,'highest':0x0};function prec(_0x519ab5){return _0x2c69be=>new PrecExtension(_0x2c69be,_0x519ab5);}const Prec={'highest':prec(Prec_['highest']),'high':prec(Prec_['high']),'default':prec(Prec_['default']),'low':prec(Prec_['low']),'lowest':prec(Prec_['lowest'])};class PrecExtension{constructor(_0x2f6de1,_0x12ee41){this['inner']=_0x2f6de1,this['prec']=_0x12ee41;}}class Compartment{['of'](_0x2e79ab){return new CompartmentInstance(this,_0x2e79ab);}['reconfigure'](_0x540ba5){return Compartment['reconfigure']['of']({'compartment':this,'extension':_0x540ba5});}['get'](_0x42765c){return _0x42765c['config']['compartments']['get'](this);}}class CompartmentInstance{constructor(_0x16f0fa,_0x2d24ab){this['compartment']=_0x16f0fa,this['inner']=_0x2d24ab;}}class Configuration{constructor(_0x19a09c,_0x325b2e,_0x3a7ce2,_0x2bb386,_0x1ec408,_0x20a1d1){for(this['base']=_0x19a09c,this['compartments']=_0x325b2e,this['dynamicSlots']=_0x3a7ce2,this['address']=_0x2bb386,this['staticValues']=_0x1ec408,this['facets']=_0x20a1d1,this['statusTemplate']=[];this['statusTemplate']['length']<_0x3a7ce2['length'];)this['statusTemplate']['push'](0x0);}['staticFacet'](_0x2429be){let _0x4e2258=this['address'][_0x2429be['id']];return null==_0x4e2258?_0x2429be['default']:this['staticValues'][_0x4e2258>>0x1];}static['resolve'](_0x2b76a2,_0x14d8b7,_0x5b7739){let _0x14f83d=[],_0x319ce8=Object['create'](null),_0x201a7b=new Map();for(let _0x22dba2 of flatten(_0x2b76a2,_0x14d8b7,_0x201a7b))_0x22dba2 instanceof StateField?_0x14f83d['push'](_0x22dba2):(_0x319ce8[_0x22dba2['facet']['id']]||(_0x319ce8[_0x22dba2['facet']['id']]=[]))['push'](_0x22dba2);let _0x468f26=Object['create'](null),_0x488255=[],_0x9b2fb7=[];for(let _0x38b825 of _0x14f83d)_0x468f26[_0x38b825['id']]=_0x9b2fb7['length']<<0x1,_0x9b2fb7['push'](_0x42576b=>_0x38b825['slot'](_0x42576b));let _0xa61d2c=null==_0x5b7739?void 0x0:_0x5b7739['config']['facets'];for(let _0xc30c in _0x319ce8){let _0x368616=_0x319ce8[_0xc30c],_0xdc6ff2=_0x368616[0x0]['facet'],_0x378696=_0xa61d2c&&_0xa61d2c[_0xc30c]||[];if(_0x368616['every'](_0x256201=>0x0==_0x256201['type'])){if(_0x468f26[_0xdc6ff2['id']]=_0x488255['length']<<0x1|0x1,sameArray$1(_0x378696,_0x368616))_0x488255['push'](_0x5b7739['facet'](_0xdc6ff2));else{let _0x1f7ac2=_0xdc6ff2['combine'](_0x368616['map'](_0x57889b=>_0x57889b['value']));_0x488255['push'](_0x5b7739&&_0xdc6ff2['compare'](_0x1f7ac2,_0x5b7739['facet'](_0xdc6ff2))?_0x5b7739['facet'](_0xdc6ff2):_0x1f7ac2);}}else{for(let _0x1db268 of _0x368616)0x0==_0x1db268['type']?(_0x468f26[_0x1db268['id']]=_0x488255['length']<<0x1|0x1,_0x488255['push'](_0x1db268['value'])):(_0x468f26[_0x1db268['id']]=_0x9b2fb7['length']<<0x1,_0x9b2fb7['push'](_0x27edeb=>_0x1db268['dynamicSlot'](_0x27edeb)));_0x468f26[_0xdc6ff2['id']]=_0x9b2fb7['length']<<0x1,_0x9b2fb7['push'](_0x4d8058=>dynamicFacetSlot(_0x4d8058,_0xdc6ff2,_0x368616));}}let _0x5f2df=_0x9b2fb7['map'](_0x1e4c5a=>_0x1e4c5a(_0x468f26));return new Configuration(_0x2b76a2,_0x201a7b,_0x5f2df,_0x468f26,_0x488255,_0x319ce8);}}function flatten(_0x371cfb,_0x2f9a46,_0x372ed1){let _0x50315d=[[],[],[],[],[]],_0x42ce78=new Map();return function _0x494545(_0x5b0451,_0x24b23e){let _0x43af62=_0x42ce78['get'](_0x5b0451);if(null!=_0x43af62){if(_0x43af62<=_0x24b23e)return;let _0x5b9249=_0x50315d[_0x43af62]['indexOf'](_0x5b0451);_0x5b9249>-0x1&&_0x50315d[_0x43af62]['splice'](_0x5b9249,0x1),_0x5b0451 instanceof CompartmentInstance&&_0x372ed1['delete'](_0x5b0451['compartment']);}if(_0x42ce78['set'](_0x5b0451,_0x24b23e),Array['isArray'](_0x5b0451)){for(let _0x9ed439 of _0x5b0451)_0x494545(_0x9ed439,_0x24b23e);}else{if(_0x5b0451 instanceof CompartmentInstance){if(_0x372ed1['has'](_0x5b0451['compartment']))throw new RangeError('Duplicate\x20use\x20of\x20compartment\x20in\x20extensions');let _0x1aa8bf=_0x2f9a46['get'](_0x5b0451['compartment'])||_0x5b0451['inner'];_0x372ed1['set'](_0x5b0451['compartment'],_0x1aa8bf),_0x494545(_0x1aa8bf,_0x24b23e);}else{if(_0x5b0451 instanceof PrecExtension)_0x494545(_0x5b0451['inner'],_0x5b0451['prec']);else{if(_0x5b0451 instanceof StateField)_0x50315d[_0x24b23e]['push'](_0x5b0451),_0x5b0451['provides']&&_0x494545(_0x5b0451['provides'],_0x24b23e);else{if(_0x5b0451 instanceof FacetProvider)_0x50315d[_0x24b23e]['push'](_0x5b0451),_0x5b0451['facet']['extensions']&&_0x494545(_0x5b0451['facet']['extensions'],Prec_['default']);else{let _0x181c34=_0x5b0451['extension'];if(!_0x181c34)throw new Error('Unrecognized\x20extension\x20value\x20in\x20extension\x20set\x20('+_0x5b0451+').\x20This\x20sometimes\x20happens\x20because\x20multiple\x20instances\x20of\x20@codemirror/state\x20are\x20loaded,\x20breaking\x20instanceof\x20checks.');_0x494545(_0x181c34,_0x24b23e);}}}}}}(_0x371cfb,Prec_['default']),_0x50315d['reduce']((_0x10d648,_0x4a0f52)=>_0x10d648['concat'](_0x4a0f52));}function ensureAddr(_0x4e6e63,_0x531408){if(0x1&_0x531408)return 0x2;let _0x459eec=_0x531408>>0x1,_0x5d91b0=_0x4e6e63['status'][_0x459eec];if(0x4==_0x5d91b0)throw new Error('Cyclic\x20dependency\x20between\x20fields\x20and/or\x20facets');if(0x2&_0x5d91b0)return _0x5d91b0;_0x4e6e63['status'][_0x459eec]=0x4;let _0x33f8a3=_0x4e6e63['computeSlot'](_0x4e6e63,_0x4e6e63['config']['dynamicSlots'][_0x459eec]);return _0x4e6e63['status'][_0x459eec]=0x2|_0x33f8a3;}function getAddr(_0x1422b6,_0x42d96e){return 0x1&_0x42d96e?_0x1422b6['config']['staticValues'][_0x42d96e>>0x1]:_0x1422b6['values'][_0x42d96e>>0x1];}const languageData=Facet['define'](),allowMultipleSelections=Facet['define']({'combine':_0x47512e=>_0x47512e['some'](_0x352fb3=>_0x352fb3),'static':!0x0}),lineSeparator=Facet['define']({'combine':_0x3c7602=>_0x3c7602['length']?_0x3c7602[0x0]:void 0x0,'static':!0x0}),changeFilter=Facet['define'](),transactionFilter=Facet['define'](),transactionExtender=Facet['define'](),readOnly=Facet['define']({'combine':_0x359d88=>!!_0x359d88['length']&&_0x359d88[0x0]});class Annotation{constructor(_0x4177b4,_0x28a6b0){this['type']=_0x4177b4,this['value']=_0x28a6b0;}static['define'](){return new AnnotationType();}}class AnnotationType{['of'](_0x15b483){return new Annotation(this,_0x15b483);}}class StateEffectType{constructor(_0x40bc0f){this['map']=_0x40bc0f;}['of'](_0x2c1d05){return new StateEffect(this,_0x2c1d05);}}class StateEffect{constructor(_0x21376c,_0x1fa3d8){this['type']=_0x21376c,this['value']=_0x1fa3d8;}['map'](_0x24e653){let _0x3d439b=this['type']['map'](this['value'],_0x24e653);return void 0x0===_0x3d439b?void 0x0:_0x3d439b==this['value']?this:new StateEffect(this['type'],_0x3d439b);}['is'](_0x1c77a4){return this['type']==_0x1c77a4;}static['define'](_0x5294e4={}){return new StateEffectType(_0x5294e4['map']||(_0x397e6d=>_0x397e6d));}static['mapEffects'](_0xcce9a3,_0x3b3626){if(!_0xcce9a3['length'])return _0xcce9a3;let _0x55475e=[];for(let _0x265d63 of _0xcce9a3){let _0x1fea3e=_0x265d63['map'](_0x3b3626);_0x1fea3e&&_0x55475e['push'](_0x1fea3e);}return _0x55475e;}}StateEffect['reconfigure']=StateEffect['define'](),StateEffect['appendConfig']=StateEffect['define']();class Transaction{constructor(_0x1dc2f5,_0x1be790,_0x815aa0,_0x285e5a,_0xa49fe5,_0x2a92cc){this['startState']=_0x1dc2f5,this['changes']=_0x1be790,this['selection']=_0x815aa0,this['effects']=_0x285e5a,this['annotations']=_0xa49fe5,this['scrollIntoView']=_0x2a92cc,this['_doc']=null,this['_state']=null,_0x815aa0&&checkSelection(_0x815aa0,_0x1be790['newLength']),_0xa49fe5['some'](_0x47185a=>_0x47185a['type']==Transaction['time'])||(this['annotations']=_0xa49fe5['concat'](Transaction['time']['of'](Date['now']())));}static['create'](_0x1e34c4,_0x1c42bf,_0x4e16c0,_0x1f23f5,_0x3ac18f,_0x484ea4){return new Transaction(_0x1e34c4,_0x1c42bf,_0x4e16c0,_0x1f23f5,_0x3ac18f,_0x484ea4);}get['newDoc'](){return this['_doc']||(this['_doc']=this['changes']['apply'](this['startState']['doc']));}get['newSelection'](){return this['selection']||this['startState']['selection']['map'](this['changes']);}get['state'](){return this['_state']||this['startState']['applyTransaction'](this),this['_state'];}['annotation'](_0xf47c32){for(let _0x2ee8b2 of this['annotations'])if(_0x2ee8b2['type']==_0xf47c32)return _0x2ee8b2['value'];}get['docChanged'](){return!this['changes']['empty'];}get['reconfigured'](){return this['startState']['config']!=this['state']['config'];}['isUserEvent'](_0x9d1652){let _0x22b100=this['annotation'](Transaction['userEvent']);return!(!_0x22b100||!(_0x22b100==_0x9d1652||_0x22b100['length']>_0x9d1652['length']&&_0x22b100['slice'](0x0,_0x9d1652['length'])==_0x9d1652&&'.'==_0x22b100[_0x9d1652['length']]));}}function joinRanges(_0x3f292b,_0x88a857){let _0x56d57d=[];for(let _0x5c9b0b=0x0,_0x121486=0x0;;){let _0xbb6e2e,_0x4a63e2;if(_0x5c9b0b<_0x3f292b['length']&&(_0x121486==_0x88a857['length']||_0x88a857[_0x121486]>=_0x3f292b[_0x5c9b0b]))_0xbb6e2e=_0x3f292b[_0x5c9b0b++],_0x4a63e2=_0x3f292b[_0x5c9b0b++];else{if(!(_0x121486<_0x88a857['length']))return _0x56d57d;_0xbb6e2e=_0x88a857[_0x121486++],_0x4a63e2=_0x88a857[_0x121486++];}!_0x56d57d['length']||_0x56d57d[_0x56d57d['length']-0x1]<_0xbb6e2e?_0x56d57d['push'](_0xbb6e2e,_0x4a63e2):_0x56d57d[_0x56d57d['length']-0x1]<_0x4a63e2&&(_0x56d57d[_0x56d57d['length']-0x1]=_0x4a63e2);}}function mergeTransaction(_0x38dba7,_0x148f12,_0x4a848f){var _0x467b8d;let _0x31a5db,_0x3949df,_0x5f18ca;return _0x4a848f?(_0x31a5db=_0x148f12['changes'],_0x3949df=ChangeSet['empty'](_0x148f12['changes']['length']),_0x5f18ca=_0x38dba7['changes']['compose'](_0x148f12['changes'])):(_0x31a5db=_0x148f12['changes']['map'](_0x38dba7['changes']),_0x3949df=_0x38dba7['changes']['mapDesc'](_0x148f12['changes'],!0x0),_0x5f18ca=_0x38dba7['changes']['compose'](_0x31a5db)),{'changes':_0x5f18ca,'selection':_0x148f12['selection']?_0x148f12['selection']['map'](_0x3949df):null===(_0x467b8d=_0x38dba7['selection'])||void 0x0===_0x467b8d?void 0x0:_0x467b8d['map'](_0x31a5db),'effects':StateEffect['mapEffects'](_0x38dba7['effects'],_0x31a5db)['concat'](StateEffect['mapEffects'](_0x148f12['effects'],_0x3949df)),'annotations':_0x38dba7['annotations']['length']?_0x38dba7['annotations']['concat'](_0x148f12['annotations']):_0x148f12['annotations'],'scrollIntoView':_0x38dba7['scrollIntoView']||_0x148f12['scrollIntoView']};}function resolveTransactionInner(_0x4eac06,_0x59368b,_0x234d77){let _0x909f3e=_0x59368b['selection'],_0x134681=asArray$2(_0x59368b['annotations']);return _0x59368b['userEvent']&&(_0x134681=_0x134681['concat'](Transaction['userEvent']['of'](_0x59368b['userEvent']))),{'changes':_0x59368b['changes']instanceof ChangeSet?_0x59368b['changes']:ChangeSet['of'](_0x59368b['changes']||[],_0x234d77,_0x4eac06['facet'](lineSeparator)),'selection':_0x909f3e&&(_0x909f3e instanceof EditorSelection?_0x909f3e:EditorSelection['single'](_0x909f3e['anchor'],_0x909f3e['head'])),'effects':asArray$2(_0x59368b['effects']),'annotations':_0x134681,'scrollIntoView':!!_0x59368b['scrollIntoView']};}function resolveTransaction(_0xe3b316,_0x5cce07,_0x13b82d){let _0xbd701=resolveTransactionInner(_0xe3b316,_0x5cce07['length']?_0x5cce07[0x0]:{},_0xe3b316['doc']['length']);_0x5cce07['length']&&!0x1===_0x5cce07[0x0]['filter']&&(_0x13b82d=!0x1);for(let _0x425918=0x1;_0x425918<_0x5cce07['length'];_0x425918++){!0x1===_0x5cce07[_0x425918]['filter']&&(_0x13b82d=!0x1);let _0x3bd5a3=!!_0x5cce07[_0x425918]['sequential'];_0xbd701=mergeTransaction(_0xbd701,resolveTransactionInner(_0xe3b316,_0x5cce07[_0x425918],_0x3bd5a3?_0xbd701['changes']['newLength']:_0xe3b316['doc']['length']),_0x3bd5a3);}let _0x399339=Transaction['create'](_0xe3b316,_0xbd701['changes'],_0xbd701['selection'],_0xbd701['effects'],_0xbd701['annotations'],_0xbd701['scrollIntoView']);return extendTransaction(_0x13b82d?filterTransaction(_0x399339):_0x399339);}function filterTransaction(_0xd8646e){let _0x61bba0=_0xd8646e['startState'],_0x4e4d29=!0x0;for(let _0x1560ea of _0x61bba0['facet'](changeFilter)){let _0x34dd23=_0x1560ea(_0xd8646e);if(!0x1===_0x34dd23){_0x4e4d29=!0x1;break;}Array['isArray'](_0x34dd23)&&(_0x4e4d29=!0x0===_0x4e4d29?_0x34dd23:joinRanges(_0x4e4d29,_0x34dd23));}if(!0x0!==_0x4e4d29){let _0x4c3202,_0x456103;if(!0x1===_0x4e4d29)_0x456103=_0xd8646e['changes']['invertedDesc'],_0x4c3202=ChangeSet['empty'](_0x61bba0['doc']['length']);else{let _0xfda58=_0xd8646e['changes']['filter'](_0x4e4d29);_0x4c3202=_0xfda58['changes'],_0x456103=_0xfda58['filtered']['mapDesc'](_0xfda58['changes'])['invertedDesc'];}_0xd8646e=Transaction['create'](_0x61bba0,_0x4c3202,_0xd8646e['selection']&&_0xd8646e['selection']['map'](_0x456103),StateEffect['mapEffects'](_0xd8646e['effects'],_0x456103),_0xd8646e['annotations'],_0xd8646e['scrollIntoView']);}let _0x2f38e9=_0x61bba0['facet'](transactionFilter);for(let _0x4914dc=_0x2f38e9['length']-0x1;_0x4914dc>=0x0;_0x4914dc--){let _0x18243a=_0x2f38e9[_0x4914dc](_0xd8646e);_0xd8646e=_0x18243a instanceof Transaction?_0x18243a:Array['isArray'](_0x18243a)&&0x1==_0x18243a['length']&&_0x18243a[0x0]instanceof Transaction?_0x18243a[0x0]:resolveTransaction(_0x61bba0,asArray$2(_0x18243a),!0x1);}return _0xd8646e;}function extendTransaction(_0x162d61){let _0x2e5cbe=_0x162d61['startState'],_0x2a2488=_0x2e5cbe['facet'](transactionExtender),_0xe9b1ac=_0x162d61;for(let _0x16e5e2=_0x2a2488['length']-0x1;_0x16e5e2>=0x0;_0x16e5e2--){let _0x56229e=_0x2a2488[_0x16e5e2](_0x162d61);_0x56229e&&Object['keys'](_0x56229e)['length']&&(_0xe9b1ac=mergeTransaction(_0xe9b1ac,resolveTransactionInner(_0x2e5cbe,_0x56229e,_0x162d61['changes']['newLength']),!0x0));}return _0xe9b1ac==_0x162d61?_0x162d61:Transaction['create'](_0x2e5cbe,_0x162d61['changes'],_0x162d61['selection'],_0xe9b1ac['effects'],_0xe9b1ac['annotations'],_0xe9b1ac['scrollIntoView']);}Transaction['time']=Annotation['define'](),Transaction['userEvent']=Annotation['define'](),Transaction['addToHistory']=Annotation['define'](),Transaction['remote']=Annotation['define']();const none$3=[];function asArray$2(_0x798803){return null==_0x798803?none$3:Array['isArray'](_0x798803)?_0x798803:[_0x798803];}var CharCategory=function(_0x110a3d){return _0x110a3d[_0x110a3d['Word']=0x0]='Word',_0x110a3d[_0x110a3d['Space']=0x1]='Space',_0x110a3d[_0x110a3d['Other']=0x2]='Other',_0x110a3d;}(CharCategory||(CharCategory={}));const nonASCIISingleCaseWordChar=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let wordChar;try{wordChar=new RegExp('[\x5cp{Alphabetic}\x5cp{Number}_]','u');}catch(_0x57f9d9){}function hasWordChar(_0x2292b3){if(wordChar)return wordChar['test'](_0x2292b3);for(let _0x440dd4=0x0;_0x440dd4<_0x2292b3['length'];_0x440dd4++){let _0x3f6545=_0x2292b3[_0x440dd4];if(/\w/['test'](_0x3f6545)||_0x3f6545>'\u0080'&&(_0x3f6545['toUpperCase']()!=_0x3f6545['toLowerCase']()||nonASCIISingleCaseWordChar['test'](_0x3f6545)))return!0x0;}return!0x1;}function makeCategorizer(_0x2b874b){return _0x41c1a8=>{if(!/\S/['test'](_0x41c1a8))return CharCategory['Space'];if(hasWordChar(_0x41c1a8))return CharCategory['Word'];for(let _0x51f7bd=0x0;_0x51f7bd<_0x2b874b['length'];_0x51f7bd++)if(_0x41c1a8['indexOf'](_0x2b874b[_0x51f7bd])>-0x1)return CharCategory['Word'];return CharCategory['Other'];};}class EditorState{constructor(_0x2745ff,_0x40b56c,_0x49d9a8,_0x1352a5,_0x8f0698,_0x188714){this['config']=_0x2745ff,this['doc']=_0x40b56c,this['selection']=_0x49d9a8,this['values']=_0x1352a5,this['status']=_0x2745ff['statusTemplate']['slice'](),this['computeSlot']=_0x8f0698,_0x188714&&(_0x188714['_state']=this);for(let _0x169198=0x0;_0x169198<this['config']['dynamicSlots']['length'];_0x169198++)ensureAddr(this,_0x169198<<0x1);this['computeSlot']=null;}['field'](_0x38e39f,_0x3a9955=!0x0){let _0x3fd6fb=this['config']['address'][_0x38e39f['id']];if(null!=_0x3fd6fb)return ensureAddr(this,_0x3fd6fb),getAddr(this,_0x3fd6fb);if(_0x3a9955)throw new RangeError('Field\x20is\x20not\x20present\x20in\x20this\x20state');}['update'](..._0x4fe53c){return resolveTransaction(this,_0x4fe53c,!0x0);}['applyTransaction'](_0x4b6a97){let _0xebb5f4,_0xfb93b7=this['config'],{base:_0x3f689f,compartments:_0x5a8cb2}=_0xfb93b7;for(let _0x5cdd01 of _0x4b6a97['effects'])_0x5cdd01['is'](Compartment['reconfigure'])?(_0xfb93b7&&(_0x5a8cb2=new Map(),_0xfb93b7['compartments']['forEach']((_0x55c832,_0x178f81)=>_0x5a8cb2['set'](_0x178f81,_0x55c832)),_0xfb93b7=null),_0x5a8cb2['set'](_0x5cdd01['value']['compartment'],_0x5cdd01['value']['extension'])):_0x5cdd01['is'](StateEffect['reconfigure'])?(_0xfb93b7=null,_0x3f689f=_0x5cdd01['value']):_0x5cdd01['is'](StateEffect['appendConfig'])&&(_0xfb93b7=null,_0x3f689f=asArray$2(_0x3f689f)['concat'](_0x5cdd01['value']));if(_0xfb93b7)_0xebb5f4=_0x4b6a97['startState']['values']['slice']();else _0xfb93b7=Configuration['resolve'](_0x3f689f,_0x5a8cb2,this),_0xebb5f4=new EditorState(_0xfb93b7,this['doc'],this['selection'],_0xfb93b7['dynamicSlots']['map'](()=>null),(_0x6b0bed,_0x56dda5)=>_0x56dda5['reconfigure'](_0x6b0bed,this),null)['values'];let _0xa32ad2=_0x4b6a97['startState']['facet'](allowMultipleSelections)?_0x4b6a97['newSelection']:_0x4b6a97['newSelection']['asSingle']();new EditorState(_0xfb93b7,_0x4b6a97['newDoc'],_0xa32ad2,_0xebb5f4,(_0x3049f7,_0x8362c8)=>_0x8362c8['update'](_0x3049f7,_0x4b6a97),_0x4b6a97);}['replaceSelection'](_0x11c829){return'string'==typeof _0x11c829&&(_0x11c829=this['toText'](_0x11c829)),this['changeByRange'](_0x2d3d9d=>({'changes':{'from':_0x2d3d9d['from'],'to':_0x2d3d9d['to'],'insert':_0x11c829},'range':EditorSelection['cursor'](_0x2d3d9d['from']+_0x11c829['length'])}));}['changeByRange'](_0x3575a7){let _0x1988dd=this['selection'],_0x678c32=_0x3575a7(_0x1988dd['ranges'][0x0]),_0x138bf1=this['changes'](_0x678c32['changes']),_0x5366a0=[_0x678c32['range']],_0x4ba415=asArray$2(_0x678c32['effects']);for(let _0x2b9402=0x1;_0x2b9402<_0x1988dd['ranges']['length'];_0x2b9402++){let _0x402a9b=_0x3575a7(_0x1988dd['ranges'][_0x2b9402]),_0x104692=this['changes'](_0x402a9b['changes']),_0x5949f4=_0x104692['map'](_0x138bf1);for(let _0x3aeb63=0x0;_0x3aeb63<_0x2b9402;_0x3aeb63++)_0x5366a0[_0x3aeb63]=_0x5366a0[_0x3aeb63]['map'](_0x5949f4);let _0x4c88ea=_0x138bf1['mapDesc'](_0x104692,!0x0);_0x5366a0['push'](_0x402a9b['range']['map'](_0x4c88ea)),_0x138bf1=_0x138bf1['compose'](_0x5949f4),_0x4ba415=StateEffect['mapEffects'](_0x4ba415,_0x5949f4)['concat'](StateEffect['mapEffects'](asArray$2(_0x402a9b['effects']),_0x4c88ea));}return{'changes':_0x138bf1,'selection':EditorSelection['create'](_0x5366a0,_0x1988dd['mainIndex']),'effects':_0x4ba415};}['changes'](_0x5cf3db=[]){return _0x5cf3db instanceof ChangeSet?_0x5cf3db:ChangeSet['of'](_0x5cf3db,this['doc']['length'],this['facet'](EditorState['lineSeparator']));}['toText'](_0x32b4c5){return Text['of'](_0x32b4c5['split'](this['facet'](EditorState['lineSeparator'])||DefaultSplit));}['sliceDoc'](_0x43d319=0x0,_0x2c4830=this['doc']['length']){return this['doc']['sliceString'](_0x43d319,_0x2c4830,this['lineBreak']);}['facet'](_0x399543){let _0x398335=this['config']['address'][_0x399543['id']];return null==_0x398335?_0x399543['default']:(ensureAddr(this,_0x398335),getAddr(this,_0x398335));}['toJSON'](_0xdc7dcc){let _0x2d94f5={'doc':this['sliceDoc'](),'selection':this['selection']['toJSON']()};if(_0xdc7dcc)for(let _0x4e6722 in _0xdc7dcc){let _0x5c3957=_0xdc7dcc[_0x4e6722];_0x5c3957 instanceof StateField&&null!=this['config']['address'][_0x5c3957['id']]&&(_0x2d94f5[_0x4e6722]=_0x5c3957['spec']['toJSON'](this['field'](_0xdc7dcc[_0x4e6722]),this));}return _0x2d94f5;}static['fromJSON'](_0x11fce2,_0xe5ae66={},_0x43af08){if(!_0x11fce2||'string'!=typeof _0x11fce2['doc'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20EditorState');let _0x335bcc=[];if(_0x43af08){for(let _0x5adc7e in _0x43af08)if(Object['prototype']['hasOwnProperty']['call'](_0x11fce2,_0x5adc7e)){let _0x1736ea=_0x43af08[_0x5adc7e],_0x2886e4=_0x11fce2[_0x5adc7e];_0x335bcc['push'](_0x1736ea['init'](_0x2a65a3=>_0x1736ea['spec']['fromJSON'](_0x2886e4,_0x2a65a3)));}}return EditorState['create']({'doc':_0x11fce2['doc'],'selection':EditorSelection['fromJSON'](_0x11fce2['selection']),'extensions':_0xe5ae66['extensions']?_0x335bcc['concat']([_0xe5ae66['extensions']]):_0x335bcc});}static['create'](_0x245b79={}){let _0x7c5f58=Configuration['resolve'](_0x245b79['extensions']||[],new Map()),_0x52bb04=_0x245b79['doc']instanceof Text?_0x245b79['doc']:Text['of']((_0x245b79['doc']||'')['split'](_0x7c5f58['staticFacet'](EditorState['lineSeparator'])||DefaultSplit)),_0x472188=_0x245b79['selection']?_0x245b79['selection']instanceof EditorSelection?_0x245b79['selection']:EditorSelection['single'](_0x245b79['selection']['anchor'],_0x245b79['selection']['head']):EditorSelection['single'](0x0);return checkSelection(_0x472188,_0x52bb04['length']),_0x7c5f58['staticFacet'](allowMultipleSelections)||(_0x472188=_0x472188['asSingle']()),new EditorState(_0x7c5f58,_0x52bb04,_0x472188,_0x7c5f58['dynamicSlots']['map'](()=>null),(_0x26f735,_0x1deac6)=>_0x1deac6['create'](_0x26f735),null);}get['tabSize'](){return this['facet'](EditorState['tabSize']);}get['lineBreak'](){return this['facet'](EditorState['lineSeparator'])||'\x0a';}get['readOnly'](){return this['facet'](readOnly);}['phrase'](_0x234d44,..._0xed4a36){for(let _0xdefd15 of this['facet'](EditorState['phrases']))if(Object['prototype']['hasOwnProperty']['call'](_0xdefd15,_0x234d44)){_0x234d44=_0xdefd15[_0x234d44];break;}return _0xed4a36['length']&&(_0x234d44=_0x234d44['replace'](/\$(\$|\d*)/g,(_0x52f80f,_0x3f8ded)=>{if('$'==_0x3f8ded)return'$';let _0x569a95=+(_0x3f8ded||0x1);return!_0x569a95||_0x569a95>_0xed4a36['length']?_0x52f80f:_0xed4a36[_0x569a95-0x1];})),_0x234d44;}['languageDataAt'](_0x432d21,_0x5b22bf,_0x160c79=-0x1){let _0x3557f6=[];for(let _0x35070d of this['facet'](languageData))for(let _0x56e5a3 of _0x35070d(this,_0x5b22bf,_0x160c79))Object['prototype']['hasOwnProperty']['call'](_0x56e5a3,_0x432d21)&&_0x3557f6['push'](_0x56e5a3[_0x432d21]);return _0x3557f6;}['charCategorizer'](_0x1c2b61){return makeCategorizer(this['languageDataAt']('wordChars',_0x1c2b61)['join'](''));}['wordAt'](_0x35963f){let {text:_0x3fc9e4,from:_0x174ac2,length:_0x2c505b}=this['doc']['lineAt'](_0x35963f),_0x23b2ee=this['charCategorizer'](_0x35963f),_0x9fd0aa=_0x35963f-_0x174ac2,_0x47c161=_0x35963f-_0x174ac2;for(;_0x9fd0aa>0x0;){let _0x420186=findClusterBreak(_0x3fc9e4,_0x9fd0aa,!0x1);if(_0x23b2ee(_0x3fc9e4['slice'](_0x420186,_0x9fd0aa))!=CharCategory['Word'])break;_0x9fd0aa=_0x420186;}for(;_0x47c161<_0x2c505b;){let _0xcbfcca=findClusterBreak(_0x3fc9e4,_0x47c161);if(_0x23b2ee(_0x3fc9e4['slice'](_0x47c161,_0xcbfcca))!=CharCategory['Word'])break;_0x47c161=_0xcbfcca;}return _0x9fd0aa==_0x47c161?null:EditorSelection['range'](_0x9fd0aa+_0x174ac2,_0x47c161+_0x174ac2);}}function combineConfig(_0x339dd6,_0x13e59d,_0x8bf7ab={}){let _0xc3d96b={};for(let _0x2b6ab8 of _0x339dd6)for(let _0x14db64 of Object['keys'](_0x2b6ab8)){let _0x475602=_0x2b6ab8[_0x14db64],_0x3262d0=_0xc3d96b[_0x14db64];if(void 0x0===_0x3262d0)_0xc3d96b[_0x14db64]=_0x475602;else{if(_0x3262d0===_0x475602||void 0x0===_0x475602);else{if(!Object['hasOwnProperty']['call'](_0x8bf7ab,_0x14db64))throw new Error('Config\x20merge\x20conflict\x20for\x20field\x20'+_0x14db64);_0xc3d96b[_0x14db64]=_0x8bf7ab[_0x14db64](_0x3262d0,_0x475602);}}}for(let _0x25a82c in _0x13e59d)void 0x0===_0xc3d96b[_0x25a82c]&&(_0xc3d96b[_0x25a82c]=_0x13e59d[_0x25a82c]);return _0xc3d96b;}EditorState['allowMultipleSelections']=allowMultipleSelections,EditorState['tabSize']=Facet['define']({'combine':_0x21f9e3=>_0x21f9e3['length']?_0x21f9e3[0x0]:0x4}),EditorState['lineSeparator']=lineSeparator,EditorState['readOnly']=readOnly,EditorState['phrases']=Facet['define']({'compare'(_0x96d724,_0xdc1f55){let _0x34d682=Object['keys'](_0x96d724),_0x32f4ab=Object['keys'](_0xdc1f55);return _0x34d682['length']==_0x32f4ab['length']&&_0x34d682['every'](_0x35d18c=>_0x96d724[_0x35d18c]==_0xdc1f55[_0x35d18c]);}}),EditorState['languageData']=languageData,EditorState['changeFilter']=changeFilter,EditorState['transactionFilter']=transactionFilter,EditorState['transactionExtender']=transactionExtender,Compartment['reconfigure']=StateEffect['define']();class RangeValue{['eq'](_0x35a60b){return this==_0x35a60b;}['range'](_0x23fca6,_0x1f54d2=_0x23fca6){return Range$1['create'](_0x23fca6,_0x1f54d2,this);}}RangeValue['prototype']['startSide']=RangeValue['prototype']['endSide']=0x0,RangeValue['prototype']['point']=!0x1,RangeValue['prototype']['mapMode']=MapMode['TrackDel'];let Range$1=class e{constructor(_0x51c91a,_0xb545d8,_0x1e146c){this['from']=_0x51c91a,this['to']=_0xb545d8,this['value']=_0x1e146c;}static['create'](_0x45fae2,_0x4cddbf,_0x229a84){return new e(_0x45fae2,_0x4cddbf,_0x229a84);}};function cmpRange(_0x2281a9,_0x37a31c){return _0x2281a9['from']-_0x37a31c['from']||_0x2281a9['value']['startSide']-_0x37a31c['value']['startSide'];}class Chunk{constructor(_0x59636f,_0x5dfc58,_0x2f345d,_0x531ff0){this['from']=_0x59636f,this['to']=_0x5dfc58,this['value']=_0x2f345d,this['maxPoint']=_0x531ff0;}get['length'](){return this['to'][this['to']['length']-0x1];}['findIndex'](_0x246bc5,_0x50400e,_0x43b6e0,_0x79fae9=0x0){let _0x33cc84=_0x43b6e0?this['to']:this['from'];for(let _0xb7d802=_0x79fae9,_0x235c3d=_0x33cc84['length'];;){if(_0xb7d802==_0x235c3d)return _0xb7d802;let _0x1f86dd=_0xb7d802+_0x235c3d>>0x1,_0x7bd3b8=_0x33cc84[_0x1f86dd]-_0x246bc5||(_0x43b6e0?this['value'][_0x1f86dd]['endSide']:this['value'][_0x1f86dd]['startSide'])-_0x50400e;if(_0x1f86dd==_0xb7d802)return _0x7bd3b8>=0x0?_0xb7d802:_0x235c3d;_0x7bd3b8>=0x0?_0x235c3d=_0x1f86dd:_0xb7d802=_0x1f86dd+0x1;}}['between'](_0x28c425,_0x323469,_0x3f5cf5,_0x3dca3b){for(let _0x459086=this['findIndex'](_0x323469,-0x3b9aca00,!0x0),_0x59e1b1=this['findIndex'](_0x3f5cf5,0x3b9aca00,!0x1,_0x459086);_0x459086<_0x59e1b1;_0x459086++)if(!0x1===_0x3dca3b(this['from'][_0x459086]+_0x28c425,this['to'][_0x459086]+_0x28c425,this['value'][_0x459086]))return!0x1;}['map'](_0x1b22b8,_0x32c57c){let _0x3cf351=[],_0x483198=[],_0xda5ec5=[],_0x167266=-0x1,_0x1a2ee9=-0x1;for(let _0x2a48e1=0x0;_0x2a48e1<this['value']['length'];_0x2a48e1++){let _0x3c5c82,_0xe6c8a3,_0x3a4839=this['value'][_0x2a48e1],_0x2747b1=this['from'][_0x2a48e1]+_0x1b22b8,_0xf7771e=this['to'][_0x2a48e1]+_0x1b22b8;if(_0x2747b1==_0xf7771e){let _0x2431de=_0x32c57c['mapPos'](_0x2747b1,_0x3a4839['startSide'],_0x3a4839['mapMode']);if(null==_0x2431de)continue;if(_0x3c5c82=_0xe6c8a3=_0x2431de,_0x3a4839['startSide']!=_0x3a4839['endSide']&&(_0xe6c8a3=_0x32c57c['mapPos'](_0x2747b1,_0x3a4839['endSide']),_0xe6c8a3<_0x3c5c82))continue;}else{if(_0x3c5c82=_0x32c57c['mapPos'](_0x2747b1,_0x3a4839['startSide']),_0xe6c8a3=_0x32c57c['mapPos'](_0xf7771e,_0x3a4839['endSide']),_0x3c5c82>_0xe6c8a3||_0x3c5c82==_0xe6c8a3&&_0x3a4839['startSide']>0x0&&_0x3a4839['endSide']<=0x0)continue;}(_0xe6c8a3-_0x3c5c82||_0x3a4839['endSide']-_0x3a4839['startSide'])<0x0||(_0x167266<0x0&&(_0x167266=_0x3c5c82),_0x3a4839['point']&&(_0x1a2ee9=Math['max'](_0x1a2ee9,_0xe6c8a3-_0x3c5c82)),_0x3cf351['push'](_0x3a4839),_0x483198['push'](_0x3c5c82-_0x167266),_0xda5ec5['push'](_0xe6c8a3-_0x167266));}return{'mapped':_0x3cf351['length']?new Chunk(_0x483198,_0xda5ec5,_0x3cf351,_0x1a2ee9):null,'pos':_0x167266};}}class RangeSet{constructor(_0x58df94,_0x517bf9,_0x2824eb,_0x4ea674){this['chunkPos']=_0x58df94,this['chunk']=_0x517bf9,this['nextLayer']=_0x2824eb,this['maxPoint']=_0x4ea674;}static['create'](_0x550c44,_0x508a27,_0x65b28b,_0x53835b){return new RangeSet(_0x550c44,_0x508a27,_0x65b28b,_0x53835b);}get['length'](){let _0x1dfc79=this['chunk']['length']-0x1;return _0x1dfc79<0x0?0x0:Math['max'](this['chunkEnd'](_0x1dfc79),this['nextLayer']['length']);}get['size'](){if(this['isEmpty'])return 0x0;let _0x5ed618=this['nextLayer']['size'];for(let _0x485a3e of this['chunk'])_0x5ed618+=_0x485a3e['value']['length'];return _0x5ed618;}['chunkEnd'](_0x538b62){return this['chunkPos'][_0x538b62]+this['chunk'][_0x538b62]['length'];}['update'](_0x326e03){let {add:_0xe87a23=[],sort:_0x38eb17=!0x1,filterFrom:_0x39a406=0x0,filterTo:_0x40f34b=this['length']}=_0x326e03,_0x4e3ec3=_0x326e03['filter'];if(0x0==_0xe87a23['length']&&!_0x4e3ec3)return this;if(_0x38eb17&&(_0xe87a23=_0xe87a23['slice']()['sort'](cmpRange)),this['isEmpty'])return _0xe87a23['length']?RangeSet['of'](_0xe87a23):this;let _0x43148b=new LayerCursor(this,null,-0x1)['goto'](0x0),_0x286ff6=0x0,_0x27f622=[],_0x12ef61=new RangeSetBuilder();for(;_0x43148b['value']||_0x286ff6<_0xe87a23['length'];)if(_0x286ff6<_0xe87a23['length']&&(_0x43148b['from']-_0xe87a23[_0x286ff6]['from']||_0x43148b['startSide']-_0xe87a23[_0x286ff6]['value']['startSide'])>=0x0){let _0x569c92=_0xe87a23[_0x286ff6++];_0x12ef61['addInner'](_0x569c92['from'],_0x569c92['to'],_0x569c92['value'])||_0x27f622['push'](_0x569c92);}else 0x1==_0x43148b['rangeIndex']&&_0x43148b['chunkIndex']<this['chunk']['length']&&(_0x286ff6==_0xe87a23['length']||this['chunkEnd'](_0x43148b['chunkIndex'])<_0xe87a23[_0x286ff6]['from'])&&(!_0x4e3ec3||_0x39a406>this['chunkEnd'](_0x43148b['chunkIndex'])||_0x40f34b<this['chunkPos'][_0x43148b['chunkIndex']])&&_0x12ef61['addChunk'](this['chunkPos'][_0x43148b['chunkIndex']],this['chunk'][_0x43148b['chunkIndex']])?_0x43148b['nextChunk']():((!_0x4e3ec3||_0x39a406>_0x43148b['to']||_0x40f34b<_0x43148b['from']||_0x4e3ec3(_0x43148b['from'],_0x43148b['to'],_0x43148b['value']))&&(_0x12ef61['addInner'](_0x43148b['from'],_0x43148b['to'],_0x43148b['value'])||_0x27f622['push'](Range$1['create'](_0x43148b['from'],_0x43148b['to'],_0x43148b['value']))),_0x43148b['next']());return _0x12ef61['finishInner'](this['nextLayer']['isEmpty']&&!_0x27f622['length']?RangeSet['empty']:this['nextLayer']['update']({'add':_0x27f622,'filter':_0x4e3ec3,'filterFrom':_0x39a406,'filterTo':_0x40f34b}));}['map'](_0x3eda35){if(_0x3eda35['empty']||this['isEmpty'])return this;let _0x1ddfbe=[],_0x842361=[],_0x3c5be1=-0x1;for(let _0x40a1f0=0x0;_0x40a1f0<this['chunk']['length'];_0x40a1f0++){let _0x334c1a=this['chunkPos'][_0x40a1f0],_0x5b380e=this['chunk'][_0x40a1f0],_0x6c6621=_0x3eda35['touchesRange'](_0x334c1a,_0x334c1a+_0x5b380e['length']);if(!0x1===_0x6c6621)_0x3c5be1=Math['max'](_0x3c5be1,_0x5b380e['maxPoint']),_0x1ddfbe['push'](_0x5b380e),_0x842361['push'](_0x3eda35['mapPos'](_0x334c1a));else{if(!0x0===_0x6c6621){let {mapped:_0x1587b9,pos:_0x59f7be}=_0x5b380e['map'](_0x334c1a,_0x3eda35);_0x1587b9&&(_0x3c5be1=Math['max'](_0x3c5be1,_0x1587b9['maxPoint']),_0x1ddfbe['push'](_0x1587b9),_0x842361['push'](_0x59f7be));}}}let _0x12470a=this['nextLayer']['map'](_0x3eda35);return 0x0==_0x1ddfbe['length']?_0x12470a:new RangeSet(_0x842361,_0x1ddfbe,_0x12470a||RangeSet['empty'],_0x3c5be1);}['between'](_0x423d66,_0x2b2f06,_0x1c8c53){if(!this['isEmpty']){for(let _0x2f3c34=0x0;_0x2f3c34<this['chunk']['length'];_0x2f3c34++){let _0x29b021=this['chunkPos'][_0x2f3c34],_0x569a60=this['chunk'][_0x2f3c34];if(_0x2b2f06>=_0x29b021&&_0x423d66<=_0x29b021+_0x569a60['length']&&!0x1===_0x569a60['between'](_0x29b021,_0x423d66-_0x29b021,_0x2b2f06-_0x29b021,_0x1c8c53))return;}this['nextLayer']['between'](_0x423d66,_0x2b2f06,_0x1c8c53);}}['iter'](_0x400c4c=0x0){return HeapCursor['from']([this])['goto'](_0x400c4c);}get['isEmpty'](){return this['nextLayer']==this;}static['iter'](_0x3ce7ab,_0x2c551a=0x0){return HeapCursor['from'](_0x3ce7ab)['goto'](_0x2c551a);}static['compare'](_0x1d44c2,_0x2ce71f,_0x3acf1c,_0x16877d,_0x3672a6=-0x1){let _0x54eb6e=_0x1d44c2['filter'](_0x40089c=>_0x40089c['maxPoint']>0x0||!_0x40089c['isEmpty']&&_0x40089c['maxPoint']>=_0x3672a6),_0x5ba9df=_0x2ce71f['filter'](_0x4b954a=>_0x4b954a['maxPoint']>0x0||!_0x4b954a['isEmpty']&&_0x4b954a['maxPoint']>=_0x3672a6),_0x534ba3=findSharedChunks(_0x54eb6e,_0x5ba9df,_0x3acf1c),_0x565ca0=new SpanCursor(_0x54eb6e,_0x534ba3,_0x3672a6),_0xebc8e2=new SpanCursor(_0x5ba9df,_0x534ba3,_0x3672a6);_0x3acf1c['iterGaps']((_0x300b31,_0x468871,_0x168add)=>compare(_0x565ca0,_0x300b31,_0xebc8e2,_0x468871,_0x168add,_0x16877d)),_0x3acf1c['empty']&&0x0==_0x3acf1c['length']&&compare(_0x565ca0,0x0,_0xebc8e2,0x0,0x0,_0x16877d);}static['eq'](_0x49e37e,_0x562d79,_0x1029b5=0x0,_0x543812){null==_0x543812&&(_0x543812=0x3b9ac9ff);let _0x1e15fd=_0x49e37e['filter'](_0x3354d1=>!_0x3354d1['isEmpty']&&_0x562d79['indexOf'](_0x3354d1)<0x0),_0x392b28=_0x562d79['filter'](_0x6bb03e=>!_0x6bb03e['isEmpty']&&_0x49e37e['indexOf'](_0x6bb03e)<0x0);if(_0x1e15fd['length']!=_0x392b28['length'])return!0x1;if(!_0x1e15fd['length'])return!0x0;let _0xfec271=findSharedChunks(_0x1e15fd,_0x392b28),_0x7e63ed=new SpanCursor(_0x1e15fd,_0xfec271,0x0)['goto'](_0x1029b5),_0x3f19eb=new SpanCursor(_0x392b28,_0xfec271,0x0)['goto'](_0x1029b5);for(;;){if(_0x7e63ed['to']!=_0x3f19eb['to']||!sameValues(_0x7e63ed['active'],_0x3f19eb['active'])||_0x7e63ed['point']&&(!_0x3f19eb['point']||!_0x7e63ed['point']['eq'](_0x3f19eb['point'])))return!0x1;if(_0x7e63ed['to']>_0x543812)return!0x0;_0x7e63ed['next'](),_0x3f19eb['next']();}}static['spans'](_0x47eb14,_0x118bbf,_0x5e0fab,_0x84238a,_0x5a77ea=-0x1){let _0x412e8f=new SpanCursor(_0x47eb14,null,_0x5a77ea)['goto'](_0x118bbf),_0x32519d=_0x118bbf,_0x19d2b2=_0x412e8f['openStart'];for(;;){let _0xa7a7f5=Math['min'](_0x412e8f['to'],_0x5e0fab);if(_0x412e8f['point']){let _0x3fcff0=_0x412e8f['activeForPoint'](_0x412e8f['to']),_0x1159b2=_0x412e8f['pointFrom']<_0x118bbf?_0x3fcff0['length']+0x1:_0x412e8f['point']['startSide']<0x0?_0x3fcff0['length']:Math['min'](_0x3fcff0['length'],_0x19d2b2);_0x84238a['point'](_0x32519d,_0xa7a7f5,_0x412e8f['point'],_0x3fcff0,_0x1159b2,_0x412e8f['pointRank']),_0x19d2b2=Math['min'](_0x412e8f['openEnd'](_0xa7a7f5),_0x3fcff0['length']);}else _0xa7a7f5>_0x32519d&&(_0x84238a['span'](_0x32519d,_0xa7a7f5,_0x412e8f['active'],_0x19d2b2),_0x19d2b2=_0x412e8f['openEnd'](_0xa7a7f5));if(_0x412e8f['to']>_0x5e0fab)return _0x19d2b2+(_0x412e8f['point']&&_0x412e8f['to']>_0x5e0fab?0x1:0x0);_0x32519d=_0x412e8f['to'],_0x412e8f['next']();}}static['of'](_0x204faf,_0x4596d1=!0x1){let _0x4d712d=new RangeSetBuilder();for(let _0xf96a52 of _0x204faf instanceof Range$1?[_0x204faf]:_0x4596d1?lazySort(_0x204faf):_0x204faf)_0x4d712d['add'](_0xf96a52['from'],_0xf96a52['to'],_0xf96a52['value']);return _0x4d712d['finish']();}static['join'](_0x172dc7){if(!_0x172dc7['length'])return RangeSet['empty'];let _0x49f637=_0x172dc7[_0x172dc7['length']-0x1];for(let _0x36b532=_0x172dc7['length']-0x2;_0x36b532>=0x0;_0x36b532--)for(let _0x3d6de1=_0x172dc7[_0x36b532];_0x3d6de1!=RangeSet['empty'];_0x3d6de1=_0x3d6de1['nextLayer'])_0x49f637=new RangeSet(_0x3d6de1['chunkPos'],_0x3d6de1['chunk'],_0x49f637,Math['max'](_0x3d6de1['maxPoint'],_0x49f637['maxPoint']));return _0x49f637;}}function lazySort(_0x534a56){if(_0x534a56['length']>0x1)for(let _0x60e739=_0x534a56[0x0],_0x38016d=0x1;_0x38016d<_0x534a56['length'];_0x38016d++){let _0x25a554=_0x534a56[_0x38016d];if(cmpRange(_0x60e739,_0x25a554)>0x0)return _0x534a56['slice']()['sort'](cmpRange);_0x60e739=_0x25a554;}return _0x534a56;}RangeSet['empty']=new RangeSet([],[],null,-0x1),RangeSet['empty']['nextLayer']=RangeSet['empty'];class RangeSetBuilder{['finishChunk'](_0xaf86df){this['chunks']['push'](new Chunk(this['from'],this['to'],this['value'],this['maxPoint'])),this['chunkPos']['push'](this['chunkStart']),this['chunkStart']=-0x1,this['setMaxPoint']=Math['max'](this['setMaxPoint'],this['maxPoint']),this['maxPoint']=-0x1,_0xaf86df&&(this['from']=[],this['to']=[],this['value']=[]);}constructor(){this['chunks']=[],this['chunkPos']=[],this['chunkStart']=-0x1,this['last']=null,this['lastFrom']=-0x3b9aca00,this['lastTo']=-0x3b9aca00,this['from']=[],this['to']=[],this['value']=[],this['maxPoint']=-0x1,this['setMaxPoint']=-0x1,this['nextLayer']=null;}['add'](_0x9b9f16,_0x38e42a,_0x3f65c8){this['addInner'](_0x9b9f16,_0x38e42a,_0x3f65c8)||(this['nextLayer']||(this['nextLayer']=new RangeSetBuilder()))['add'](_0x9b9f16,_0x38e42a,_0x3f65c8);}['addInner'](_0x16bca6,_0x3dd3d6,_0x1ed8b2){let _0x70afb1=_0x16bca6-this['lastTo']||_0x1ed8b2['startSide']-this['last']['endSide'];if(_0x70afb1<=0x0&&(_0x16bca6-this['lastFrom']||_0x1ed8b2['startSide']-this['last']['startSide'])<0x0)throw new Error('Ranges\x20must\x20be\x20added\x20sorted\x20by\x20`from`\x20position\x20and\x20`startSide`');return!(_0x70afb1<0x0)&&(0xfa==this['from']['length']&&this['finishChunk'](!0x0),this['chunkStart']<0x0&&(this['chunkStart']=_0x16bca6),this['from']['push'](_0x16bca6-this['chunkStart']),this['to']['push'](_0x3dd3d6-this['chunkStart']),this['last']=_0x1ed8b2,this['lastFrom']=_0x16bca6,this['lastTo']=_0x3dd3d6,this['value']['push'](_0x1ed8b2),_0x1ed8b2['point']&&(this['maxPoint']=Math['max'](this['maxPoint'],_0x3dd3d6-_0x16bca6)),!0x0);}['addChunk'](_0x5150d2,_0x45fce7){if((_0x5150d2-this['lastTo']||_0x45fce7['value'][0x0]['startSide']-this['last']['endSide'])<0x0)return!0x1;this['from']['length']&&this['finishChunk'](!0x0),this['setMaxPoint']=Math['max'](this['setMaxPoint'],_0x45fce7['maxPoint']),this['chunks']['push'](_0x45fce7),this['chunkPos']['push'](_0x5150d2);let _0x481fd5=_0x45fce7['value']['length']-0x1;return this['last']=_0x45fce7['value'][_0x481fd5],this['lastFrom']=_0x45fce7['from'][_0x481fd5]+_0x5150d2,this['lastTo']=_0x45fce7['to'][_0x481fd5]+_0x5150d2,!0x0;}['finish'](){return this['finishInner'](RangeSet['empty']);}['finishInner'](_0x243ac4){if(this['from']['length']&&this['finishChunk'](!0x1),0x0==this['chunks']['length'])return _0x243ac4;let _0x3fd190=RangeSet['create'](this['chunkPos'],this['chunks'],this['nextLayer']?this['nextLayer']['finishInner'](_0x243ac4):_0x243ac4,this['setMaxPoint']);return this['from']=null,_0x3fd190;}}function findSharedChunks(_0x12850c,_0x894fa3,_0x2e4210){let _0x4fdded=new Map();for(let _0x2e0b21 of _0x12850c)for(let _0x91f6e6=0x0;_0x91f6e6<_0x2e0b21['chunk']['length'];_0x91f6e6++)_0x2e0b21['chunk'][_0x91f6e6]['maxPoint']<=0x0&&_0x4fdded['set'](_0x2e0b21['chunk'][_0x91f6e6],_0x2e0b21['chunkPos'][_0x91f6e6]);let _0x597c93=new Set();for(let _0x4dd4f9 of _0x894fa3)for(let _0x2f02e3=0x0;_0x2f02e3<_0x4dd4f9['chunk']['length'];_0x2f02e3++){let _0xc8b727=_0x4fdded['get'](_0x4dd4f9['chunk'][_0x2f02e3]);null==_0xc8b727||(_0x2e4210?_0x2e4210['mapPos'](_0xc8b727):_0xc8b727)!=_0x4dd4f9['chunkPos'][_0x2f02e3]||(null==_0x2e4210?void 0x0:_0x2e4210['touchesRange'](_0xc8b727,_0xc8b727+_0x4dd4f9['chunk'][_0x2f02e3]['length']))||_0x597c93['add'](_0x4dd4f9['chunk'][_0x2f02e3]);}return _0x597c93;}class LayerCursor{constructor(_0x56b696,_0x15a2c8,_0x328561,_0x326a14=0x0){this['layer']=_0x56b696,this['skip']=_0x15a2c8,this['minPoint']=_0x328561,this['rank']=_0x326a14;}get['startSide'](){return this['value']?this['value']['startSide']:0x0;}get['endSide'](){return this['value']?this['value']['endSide']:0x0;}['goto'](_0x2b28b1,_0x29cea3=-0x3b9aca00){return this['chunkIndex']=this['rangeIndex']=0x0,this['gotoInner'](_0x2b28b1,_0x29cea3,!0x1),this;}['gotoInner'](_0x21d319,_0x4c5364,_0x4217f6){for(;this['chunkIndex']<this['layer']['chunk']['length'];){let _0x4cba8b=this['layer']['chunk'][this['chunkIndex']];if(!(this['skip']&&this['skip']['has'](_0x4cba8b)||this['layer']['chunkEnd'](this['chunkIndex'])<_0x21d319||_0x4cba8b['maxPoint']<this['minPoint']))break;this['chunkIndex']++,_0x4217f6=!0x1;}if(this['chunkIndex']<this['layer']['chunk']['length']){let _0x318c5d=this['layer']['chunk'][this['chunkIndex']]['findIndex'](_0x21d319-this['layer']['chunkPos'][this['chunkIndex']],_0x4c5364,!0x0);(!_0x4217f6||this['rangeIndex']<_0x318c5d)&&this['setRangeIndex'](_0x318c5d);}this['next']();}['forward'](_0x38ced1,_0xf78ea4){(this['to']-_0x38ced1||this['endSide']-_0xf78ea4)<0x0&&this['gotoInner'](_0x38ced1,_0xf78ea4,!0x0);}['next'](){for(;;){if(this['chunkIndex']==this['layer']['chunk']['length']){this['from']=this['to']=0x3b9aca00,this['value']=null;break;}{let _0x7264bc=this['layer']['chunkPos'][this['chunkIndex']],_0xa0aa26=this['layer']['chunk'][this['chunkIndex']],_0x5f331=_0x7264bc+_0xa0aa26['from'][this['rangeIndex']];if(this['from']=_0x5f331,this['to']=_0x7264bc+_0xa0aa26['to'][this['rangeIndex']],this['value']=_0xa0aa26['value'][this['rangeIndex']],this['setRangeIndex'](this['rangeIndex']+0x1),this['minPoint']<0x0||this['value']['point']&&this['to']-this['from']>=this['minPoint'])break;}}}['setRangeIndex'](_0x550cfd){if(_0x550cfd==this['layer']['chunk'][this['chunkIndex']]['value']['length']){if(this['chunkIndex']++,this['skip']){for(;this['chunkIndex']<this['layer']['chunk']['length']&&this['skip']['has'](this['layer']['chunk'][this['chunkIndex']]);)this['chunkIndex']++;}this['rangeIndex']=0x0;}else this['rangeIndex']=_0x550cfd;}['nextChunk'](){this['chunkIndex']++,this['rangeIndex']=0x0,this['next']();}['compare'](_0x28ac2c){return this['from']-_0x28ac2c['from']||this['startSide']-_0x28ac2c['startSide']||this['rank']-_0x28ac2c['rank']||this['to']-_0x28ac2c['to']||this['endSide']-_0x28ac2c['endSide'];}}class HeapCursor{constructor(_0x2a233b){this['heap']=_0x2a233b;}static['from'](_0x16a8bf,_0x3886b9=null,_0x375ac4=-0x1){let _0x2d0c50=[];for(let _0x30d5fd=0x0;_0x30d5fd<_0x16a8bf['length'];_0x30d5fd++)for(let _0x5c0013=_0x16a8bf[_0x30d5fd];!_0x5c0013['isEmpty'];_0x5c0013=_0x5c0013['nextLayer'])_0x5c0013['maxPoint']>=_0x375ac4&&_0x2d0c50['push'](new LayerCursor(_0x5c0013,_0x3886b9,_0x375ac4,_0x30d5fd));return 0x1==_0x2d0c50['length']?_0x2d0c50[0x0]:new HeapCursor(_0x2d0c50);}get['startSide'](){return this['value']?this['value']['startSide']:0x0;}['goto'](_0x2ed2bb,_0x51b27c=-0x3b9aca00){for(let _0x22c49d of this['heap'])_0x22c49d['goto'](_0x2ed2bb,_0x51b27c);for(let _0x565fe3=this['heap']['length']>>0x1;_0x565fe3>=0x0;_0x565fe3--)heapBubble(this['heap'],_0x565fe3);return this['next'](),this;}['forward'](_0x2e81bd,_0x3ced79){for(let _0x48443c of this['heap'])_0x48443c['forward'](_0x2e81bd,_0x3ced79);for(let _0x583f80=this['heap']['length']>>0x1;_0x583f80>=0x0;_0x583f80--)heapBubble(this['heap'],_0x583f80);(this['to']-_0x2e81bd||this['value']['endSide']-_0x3ced79)<0x0&&this['next']();}['next'](){if(0x0==this['heap']['length'])this['from']=this['to']=0x3b9aca00,this['value']=null,this['rank']=-0x1;else{let _0x4eb346=this['heap'][0x0];this['from']=_0x4eb346['from'],this['to']=_0x4eb346['to'],this['value']=_0x4eb346['value'],this['rank']=_0x4eb346['rank'],_0x4eb346['value']&&_0x4eb346['next'](),heapBubble(this['heap'],0x0);}}}function heapBubble(_0x512229,_0x1d0fe2){for(let _0x20a4a2=_0x512229[_0x1d0fe2];;){let _0x2181e2=0x1+(_0x1d0fe2<<0x1);if(_0x2181e2>=_0x512229['length'])break;let _0x4c4591=_0x512229[_0x2181e2];if(_0x2181e2+0x1<_0x512229['length']&&_0x4c4591['compare'](_0x512229[_0x2181e2+0x1])>=0x0&&(_0x4c4591=_0x512229[_0x2181e2+0x1],_0x2181e2++),_0x20a4a2['compare'](_0x4c4591)<0x0)break;_0x512229[_0x2181e2]=_0x20a4a2,_0x512229[_0x1d0fe2]=_0x4c4591,_0x1d0fe2=_0x2181e2;}}class SpanCursor{constructor(_0x285c0b,_0x362688,_0x41952a){this['minPoint']=_0x41952a,this['active']=[],this['activeTo']=[],this['activeRank']=[],this['minActive']=-0x1,this['point']=null,this['pointFrom']=0x0,this['pointRank']=0x0,this['to']=-0x3b9aca00,this['endSide']=0x0,this['openStart']=-0x1,this['cursor']=HeapCursor['from'](_0x285c0b,_0x362688,_0x41952a);}['goto'](_0x28f90b,_0x2f1015=-0x3b9aca00){return this['cursor']['goto'](_0x28f90b,_0x2f1015),this['active']['length']=this['activeTo']['length']=this['activeRank']['length']=0x0,this['minActive']=-0x1,this['to']=_0x28f90b,this['endSide']=_0x2f1015,this['openStart']=-0x1,this['next'](),this;}['forward'](_0x2f794f,_0x46f3cc){for(;this['minActive']>-0x1&&(this['activeTo'][this['minActive']]-_0x2f794f||this['active'][this['minActive']]['endSide']-_0x46f3cc)<0x0;)this['removeActive'](this['minActive']);this['cursor']['forward'](_0x2f794f,_0x46f3cc);}['removeActive'](_0x4d198b){remove(this['active'],_0x4d198b),remove(this['activeTo'],_0x4d198b),remove(this['activeRank'],_0x4d198b),this['minActive']=findMinIndex(this['active'],this['activeTo']);}['addActive'](_0x139ee0){let _0x54a383=0x0,{value:_0x5effd8,to:_0x43eb80,rank:_0x4487b3}=this['cursor'];for(;_0x54a383<this['activeRank']['length']&&(_0x4487b3-this['activeRank'][_0x54a383]||_0x43eb80-this['activeTo'][_0x54a383])>0x0;)_0x54a383++;insert(this['active'],_0x54a383,_0x5effd8),insert(this['activeTo'],_0x54a383,_0x43eb80),insert(this['activeRank'],_0x54a383,_0x4487b3),_0x139ee0&&insert(_0x139ee0,_0x54a383,this['cursor']['from']),this['minActive']=findMinIndex(this['active'],this['activeTo']);}['next'](){let _0x21f710=this['to'],_0x77c28f=this['point'];this['point']=null;let _0x231726=this['openStart']<0x0?[]:null;for(;;){let _0x4e104d=this['minActive'];if(_0x4e104d>-0x1&&(this['activeTo'][_0x4e104d]-this['cursor']['from']||this['active'][_0x4e104d]['endSide']-this['cursor']['startSide'])<0x0){if(this['activeTo'][_0x4e104d]>_0x21f710){this['to']=this['activeTo'][_0x4e104d],this['endSide']=this['active'][_0x4e104d]['endSide'];break;}this['removeActive'](_0x4e104d),_0x231726&&remove(_0x231726,_0x4e104d);}else{if(!this['cursor']['value']){this['to']=this['endSide']=0x3b9aca00;break;}if(this['cursor']['from']>_0x21f710){this['to']=this['cursor']['from'],this['endSide']=this['cursor']['startSide'];break;}{let _0x216fee=this['cursor']['value'];if(_0x216fee['point']){if(!(_0x77c28f&&this['cursor']['to']==this['to']&&this['cursor']['from']<this['cursor']['to'])){this['point']=_0x216fee,this['pointFrom']=this['cursor']['from'],this['pointRank']=this['cursor']['rank'],this['to']=this['cursor']['to'],this['endSide']=_0x216fee['endSide'],this['cursor']['next'](),this['forward'](this['to'],this['endSide']);break;}this['cursor']['next']();}else this['addActive'](_0x231726),this['cursor']['next']();}}}if(_0x231726){this['openStart']=0x0;for(let _0x303fc1=_0x231726['length']-0x1;_0x303fc1>=0x0&&_0x231726[_0x303fc1]<_0x21f710;_0x303fc1--)this['openStart']++;}}['activeForPoint'](_0x50b8ac){if(!this['active']['length'])return this['active'];let _0x32a27=[];for(let _0x42f76c=this['active']['length']-0x1;_0x42f76c>=0x0&&!(this['activeRank'][_0x42f76c]<this['pointRank']);_0x42f76c--)(this['activeTo'][_0x42f76c]>_0x50b8ac||this['activeTo'][_0x42f76c]==_0x50b8ac&&this['active'][_0x42f76c]['endSide']>=this['point']['endSide'])&&_0x32a27['push'](this['active'][_0x42f76c]);return _0x32a27['reverse']();}['openEnd'](_0x3baadd){let _0x40a77e=0x0;for(let _0x151527=this['activeTo']['length']-0x1;_0x151527>=0x0&&this['activeTo'][_0x151527]>_0x3baadd;_0x151527--)_0x40a77e++;return _0x40a77e;}}function compare(_0x51b539,_0x487521,_0x5111ae,_0x479bd7,_0x1a77e4,_0x758102){_0x51b539['goto'](_0x487521),_0x5111ae['goto'](_0x479bd7);let _0x3f478e=_0x479bd7+_0x1a77e4,_0x26834d=_0x479bd7,_0x2462d3=_0x479bd7-_0x487521;for(;;){let _0x3b64d9=_0x51b539['to']+_0x2462d3-_0x5111ae['to'],_0x497a2d=_0x3b64d9||_0x51b539['endSide']-_0x5111ae['endSide'],_0x249354=_0x497a2d<0x0?_0x51b539['to']+_0x2462d3:_0x5111ae['to'],_0x96d653=Math['min'](_0x249354,_0x3f478e);if(_0x51b539['point']||_0x5111ae['point']?_0x51b539['point']&&_0x5111ae['point']&&(_0x51b539['point']==_0x5111ae['point']||_0x51b539['point']['eq'](_0x5111ae['point']))&&sameValues(_0x51b539['activeForPoint'](_0x51b539['to']),_0x5111ae['activeForPoint'](_0x5111ae['to']))||_0x758102['comparePoint'](_0x26834d,_0x96d653,_0x51b539['point'],_0x5111ae['point']):_0x96d653>_0x26834d&&!sameValues(_0x51b539['active'],_0x5111ae['active'])&&_0x758102['compareRange'](_0x26834d,_0x96d653,_0x51b539['active'],_0x5111ae['active']),_0x249354>_0x3f478e)break;(_0x3b64d9||_0x51b539['openEnd']!=_0x5111ae['openEnd'])&&_0x758102['boundChange']&&_0x758102['boundChange'](_0x249354),_0x26834d=_0x249354,_0x497a2d<=0x0&&_0x51b539['next'](),_0x497a2d>=0x0&&_0x5111ae['next']();}}function sameValues(_0x480f02,_0x3a49e1){if(_0x480f02['length']!=_0x3a49e1['length'])return!0x1;for(let _0x364f75=0x0;_0x364f75<_0x480f02['length'];_0x364f75++)if(_0x480f02[_0x364f75]!=_0x3a49e1[_0x364f75]&&!_0x480f02[_0x364f75]['eq'](_0x3a49e1[_0x364f75]))return!0x1;return!0x0;}function remove(_0x1387fd,_0x5ea07c){for(let _0x5189ed=_0x5ea07c,_0x1ba1b5=_0x1387fd['length']-0x1;_0x5189ed<_0x1ba1b5;_0x5189ed++)_0x1387fd[_0x5189ed]=_0x1387fd[_0x5189ed+0x1];_0x1387fd['pop']();}function insert(_0xe48480,_0x406d7b,_0x5a37f1){for(let _0x354620=_0xe48480['length']-0x1;_0x354620>=_0x406d7b;_0x354620--)_0xe48480[_0x354620+0x1]=_0xe48480[_0x354620];_0xe48480[_0x406d7b]=_0x5a37f1;}function findMinIndex(_0x1cb88c,_0x363ecb){let _0x360dae=-0x1,_0x54f2d0=0x3b9aca00;for(let _0x5a9a1a=0x0;_0x5a9a1a<_0x363ecb['length'];_0x5a9a1a++)(_0x363ecb[_0x5a9a1a]-_0x54f2d0||_0x1cb88c[_0x5a9a1a]['endSide']-_0x1cb88c[_0x360dae]['endSide'])<0x0&&(_0x360dae=_0x5a9a1a,_0x54f2d0=_0x363ecb[_0x5a9a1a]);return _0x360dae;}function countColumn(_0x1962b4,_0x137817,_0x24a012=_0x1962b4['length']){let _0x4044ce=0x0;for(let _0x54ae5c=0x0;_0x54ae5c<_0x24a012&&_0x54ae5c<_0x1962b4['length'];)0x9==_0x1962b4['charCodeAt'](_0x54ae5c)?(_0x4044ce+=_0x137817-_0x4044ce%_0x137817,_0x54ae5c++):(_0x4044ce++,_0x54ae5c=findClusterBreak(_0x1962b4,_0x54ae5c));return _0x4044ce;}function findColumn(_0x2beda5,_0x5be175,_0x5b1a53,_0x13304d){for(let _0x494b3c=0x0,_0x508d75=0x0;;){if(_0x508d75>=_0x5be175)return _0x494b3c;if(_0x494b3c==_0x2beda5['length'])break;_0x508d75+=0x9==_0x2beda5['charCodeAt'](_0x494b3c)?_0x5b1a53-_0x508d75%_0x5b1a53:0x1,_0x494b3c=findClusterBreak(_0x2beda5,_0x494b3c);}return!0x0===_0x13304d?-0x1:_0x2beda5['length'];}const C='ͼ',COUNT='undefined'==typeof Symbol?'__'+C:Symbol['for'](C),SET='undefined'==typeof Symbol?'__styleSet'+Math['floor'](0x5f5e100*Math['random']()):Symbol('styleSet'),top='undefined'!=typeof globalThis?globalThis:'undefined'!=typeof window?window:{};class StyleModule{constructor(_0x56cb2f,_0x40995d){this['rules']=[];let {finish:_0x4b1040}=_0x40995d||{};function _0x52beae(_0xa5523d){return/^@/['test'](_0xa5523d)?[_0xa5523d]:_0xa5523d['split'](/,\s*/);}function _0x2c36c6(_0x262a53,_0x42e857,_0x1dc10d,_0x25bb6f){let _0x350cd5=[],_0x3a4c82=/^@(\w+)\b/['exec'](_0x262a53[0x0]),_0x52d07c=_0x3a4c82&&'keyframes'==_0x3a4c82[0x1];if(_0x3a4c82&&null==_0x42e857)return _0x1dc10d['push'](_0x262a53[0x0]+';');for(let _0x1309e2 in _0x42e857){let _0x453d05=_0x42e857[_0x1309e2];if(/&/['test'](_0x1309e2))_0x2c36c6(_0x1309e2['split'](/,\s*/)['map'](_0x3e37a3=>_0x262a53['map'](_0x218cf4=>_0x3e37a3['replace'](/&/,_0x218cf4)))['reduce']((_0x4cb244,_0x14896d)=>_0x4cb244['concat'](_0x14896d)),_0x453d05,_0x1dc10d);else{if(_0x453d05&&'object'==typeof _0x453d05){if(!_0x3a4c82)throw new RangeError('The\x20value\x20of\x20a\x20property\x20('+_0x1309e2+')\x20should\x20be\x20a\x20primitive\x20value.');_0x2c36c6(_0x52beae(_0x1309e2),_0x453d05,_0x350cd5,_0x52d07c);}else null!=_0x453d05&&_0x350cd5['push'](_0x1309e2['replace'](/_.*/,'')['replace'](/[A-Z]/g,_0xbe6a4d=>'-'+_0xbe6a4d['toLowerCase']())+':\x20'+_0x453d05+';');}}(_0x350cd5['length']||_0x52d07c)&&_0x1dc10d['push']((!_0x4b1040||_0x3a4c82||_0x25bb6f?_0x262a53:_0x262a53['map'](_0x4b1040))['join'](',\x20')+'\x20{'+_0x350cd5['join']('\x20')+'}');}for(let _0x507c3e in _0x56cb2f)_0x2c36c6(_0x52beae(_0x507c3e),_0x56cb2f[_0x507c3e],this['rules']);}['getRules'](){return this['rules']['join']('\x0a');}static['newName'](){let _0x1d1c4e=top[COUNT]||0x1;return top[COUNT]=_0x1d1c4e+0x1,C+_0x1d1c4e['toString'](0x24);}static['mount'](_0x1925be,_0x32ce9f,_0x3549bd){let _0x1bd26e=_0x1925be[SET],_0x2e5225=_0x3549bd&&_0x3549bd['nonce'];_0x1bd26e?_0x2e5225&&_0x1bd26e['setNonce'](_0x2e5225):_0x1bd26e=new StyleSet(_0x1925be,_0x2e5225),_0x1bd26e['mount'](Array['isArray'](_0x32ce9f)?_0x32ce9f:[_0x32ce9f],_0x1925be);}}let adoptedSet=new Map();class StyleSet{constructor(_0x375191,_0x2bb9e4){let _0x19834f=_0x375191['ownerDocument']||_0x375191,_0x313181=_0x19834f['defaultView'];if(!_0x375191['head']&&_0x375191['adoptedStyleSheets']&&_0x313181['CSSStyleSheet']){let _0x980925=adoptedSet['get'](_0x19834f);if(_0x980925)return _0x375191[SET]=_0x980925;this['sheet']=new _0x313181['CSSStyleSheet'](),adoptedSet['set'](_0x19834f,this);}else this['styleTag']=_0x19834f['createElement']('style'),_0x2bb9e4&&this['styleTag']['setAttribute']('nonce',_0x2bb9e4);this['modules']=[],_0x375191[SET]=this;}['mount'](_0x5dfd77,_0x575d24){let _0x56cd60=this['sheet'],_0x120ff6=0x0,_0x141d0b=0x0;for(let _0x4be48c=0x0;_0x4be48c<_0x5dfd77['length'];_0x4be48c++){let _0x346858=_0x5dfd77[_0x4be48c],_0x52c9ec=this['modules']['indexOf'](_0x346858);if(_0x52c9ec<_0x141d0b&&_0x52c9ec>-0x1&&(this['modules']['splice'](_0x52c9ec,0x1),_0x141d0b--,_0x52c9ec=-0x1),-0x1==_0x52c9ec){if(this['modules']['splice'](_0x141d0b++,0x0,_0x346858),_0x56cd60){for(let _0x386660=0x0;_0x386660<_0x346858['rules']['length'];_0x386660++)_0x56cd60['insertRule'](_0x346858['rules'][_0x386660],_0x120ff6++);}}else{for(;_0x141d0b<_0x52c9ec;)_0x120ff6+=this['modules'][_0x141d0b++]['rules']['length'];_0x120ff6+=_0x346858['rules']['length'],_0x141d0b++;}}if(_0x56cd60)_0x575d24['adoptedStyleSheets']['indexOf'](this['sheet'])<0x0&&(_0x575d24['adoptedStyleSheets']=[this['sheet'],..._0x575d24['adoptedStyleSheets']]);else{let _0x35a4df='';for(let _0x16dd23=0x0;_0x16dd23<this['modules']['length'];_0x16dd23++)_0x35a4df+=this['modules'][_0x16dd23]['getRules']()+'\x0a';this['styleTag']['textContent']=_0x35a4df;let _0x27426c=_0x575d24['head']||_0x575d24;this['styleTag']['parentNode']!=_0x27426c&&_0x27426c['insertBefore'](this['styleTag'],_0x27426c['firstChild']);}}['setNonce'](_0x172f67){this['styleTag']&&this['styleTag']['getAttribute']('nonce')!=_0x172f67&&this['styleTag']['setAttribute']('nonce',_0x172f67);}}for(var base$2={0x8:'Backspace',0x9:'Tab',0xa:'Enter',0xc:'NumLock',0xd:'Enter',0x10:'Shift',0x11:'Control',0x12:'Alt',0x14:'CapsLock',0x1b:'Escape',0x20:'\x20',0x21:'PageUp',0x22:'PageDown',0x23:'End',0x24:'Home',0x25:'ArrowLeft',0x26:'ArrowUp',0x27:'ArrowRight',0x28:'ArrowDown',0x2c:'PrintScreen',0x2d:'Insert',0x2e:'Delete',0x3b:';',0x3d:'=',0x5b:'Meta',0x5c:'Meta',0x6a:'*',0x6b:'+',0x6c:',',0x6d:'-',0x6e:'.',0x6f:'/',0x90:'NumLock',0x91:'ScrollLock',0xa0:'Shift',0xa1:'Shift',0xa2:'Control',0xa3:'Control',0xa4:'Alt',0xa5:'Alt',0xad:'-',0xba:';',0xbb:'=',0xbc:',',0xbd:'-',0xbe:'.',0xbf:'/',0xc0:'`',0xdb:'[',0xdc:'\x5c',0xdd:']',0xde:'\x27'},shift={0x30:')',0x31:'!',0x32:'@',0x33:'#',0x34:'$',0x35:'%',0x36:'^',0x37:'&',0x38:'*',0x39:'(',0x3b:':',0x3d:'+',0xad:'_',0xba:':',0xbb:'+',0xbc:'<',0xbd:'_',0xbe:'>',0xbf:'?',0xc0:'~',0xdb:'{',0xdc:'|',0xdd:'}',0xde:'\x22'},mac='undefined'!=typeof navigator&&/Mac/['test'](navigator['platform']),ie$1='undefined'!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/['exec'](navigator['userAgent']),i$1=0x0;i$1<0xa;i$1++)base$2[0x30+i$1]=base$2[0x60+i$1]=String(i$1);for(var i$1=0x1;i$1<=0x18;i$1++)base$2[i$1+0x6f]='F'+i$1;for(var i$1=0x41;i$1<=0x5a;i$1++)base$2[i$1]=String['fromCharCode'](i$1+0x20),shift[i$1]=String['fromCharCode'](i$1);for(var code in base$2)shift['hasOwnProperty'](code)||(shift[code]=base$2[code]);function keyName(_0x106397){var _0xc02833=!(mac&&_0x106397['metaKey']&&_0x106397['shiftKey']&&!_0x106397['ctrlKey']&&!_0x106397['altKey']||ie$1&&_0x106397['shiftKey']&&_0x106397['key']&&0x1==_0x106397['key']['length']||'Unidentified'==_0x106397['key'])&&_0x106397['key']||(_0x106397['shiftKey']?shift:base$2)[_0x106397['keyCode']]||_0x106397['key']||'Unidentified';return'Esc'==_0xc02833&&(_0xc02833='Escape'),'Del'==_0xc02833&&(_0xc02833='Delete'),'Left'==_0xc02833&&(_0xc02833='ArrowLeft'),'Up'==_0xc02833&&(_0xc02833='ArrowUp'),'Right'==_0xc02833&&(_0xc02833='ArrowRight'),'Down'==_0xc02833&&(_0xc02833='ArrowDown'),_0xc02833;}function getSelection(_0x1bf973){let _0x39c540;return _0x39c540=0xb==_0x1bf973['nodeType']?_0x1bf973['getSelection']?_0x1bf973:_0x1bf973['ownerDocument']:_0x1bf973,_0x39c540['getSelection']();}function contains(_0x56a28f,_0x54d6d1){return!!_0x54d6d1&&(_0x56a28f==_0x54d6d1||_0x56a28f['contains'](0x1!=_0x54d6d1['nodeType']?_0x54d6d1['parentNode']:_0x54d6d1));}function hasSelection(_0x19ce38,_0x2ba302){if(!_0x2ba302['anchorNode'])return!0x1;try{return contains(_0x19ce38,_0x2ba302['anchorNode']);}catch(_0x22d981){return!0x1;}}function clientRectsFor(_0x4c5317){return 0x3==_0x4c5317['nodeType']?textRange(_0x4c5317,0x0,_0x4c5317['nodeValue']['length'])['getClientRects']():0x1==_0x4c5317['nodeType']?_0x4c5317['getClientRects']():[];}function isEquivalentPosition(_0x2b638a,_0x5b583e,_0x3e140f,_0x4350df){return!!_0x3e140f&&(scanFor(_0x2b638a,_0x5b583e,_0x3e140f,_0x4350df,-0x1)||scanFor(_0x2b638a,_0x5b583e,_0x3e140f,_0x4350df,0x1));}function domIndex(_0x18278e){for(var _0x1652bb=0x0;;_0x1652bb++)if(!(_0x18278e=_0x18278e['previousSibling']))return _0x1652bb;}function isBlockElement(_0x149760){return 0x1==_0x149760['nodeType']&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/['test'](_0x149760['nodeName']);}function scanFor(_0x31f609,_0x399e12,_0x15abea,_0x7968d9,_0x4702c2){for(;;){if(_0x31f609==_0x15abea&&_0x399e12==_0x7968d9)return!0x0;if(_0x399e12==(_0x4702c2<0x0?0x0:maxOffset(_0x31f609))){if('DIV'==_0x31f609['nodeName'])return!0x1;let _0x5ae7ba=_0x31f609['parentNode'];if(!_0x5ae7ba||0x1!=_0x5ae7ba['nodeType'])return!0x1;_0x399e12=domIndex(_0x31f609)+(_0x4702c2<0x0?0x0:0x1),_0x31f609=_0x5ae7ba;}else{if(0x1!=_0x31f609['nodeType'])return!0x1;if(0x1==(_0x31f609=_0x31f609['childNodes'][_0x399e12+(_0x4702c2<0x0?-0x1:0x0)])['nodeType']&&'false'==_0x31f609['contentEditable'])return!0x1;_0x399e12=_0x4702c2<0x0?maxOffset(_0x31f609):0x0;}}}function maxOffset(_0xc5cd1c){return 0x3==_0xc5cd1c['nodeType']?_0xc5cd1c['nodeValue']['length']:_0xc5cd1c['childNodes']['length'];}function flattenRect(_0x363e20,_0x38aba0){let _0x26e74a=_0x38aba0?_0x363e20['left']:_0x363e20['right'];return{'left':_0x26e74a,'right':_0x26e74a,'top':_0x363e20['top'],'bottom':_0x363e20['bottom']};}function windowRect(_0x2ac3ed){let _0x49b7c8=_0x2ac3ed['visualViewport'];return _0x49b7c8?{'left':0x0,'right':_0x49b7c8['width'],'top':0x0,'bottom':_0x49b7c8['height']}:{'left':0x0,'right':_0x2ac3ed['innerWidth'],'top':0x0,'bottom':_0x2ac3ed['innerHeight']};}function getScale(_0x3c31ea,_0xc90cc5){let _0x3331ce=_0xc90cc5['width']/_0x3c31ea['offsetWidth'],_0x4951ea=_0xc90cc5['height']/_0x3c31ea['offsetHeight'];return(_0x3331ce>0.995&&_0x3331ce<1.005||!isFinite(_0x3331ce)||Math['abs'](_0xc90cc5['width']-_0x3c31ea['offsetWidth'])<0x1)&&(_0x3331ce=0x1),(_0x4951ea>0.995&&_0x4951ea<1.005||!isFinite(_0x4951ea)||Math['abs'](_0xc90cc5['height']-_0x3c31ea['offsetHeight'])<0x1)&&(_0x4951ea=0x1),{'scaleX':_0x3331ce,'scaleY':_0x4951ea};}function scrollRectIntoView(_0x47193b,_0x51882a,_0x4cfc60,_0x3f9dd2,_0x3ff300,_0x5248cb,_0x51c23b,_0x3f761d){let _0x4341a6=_0x47193b['ownerDocument'],_0x1a2172=_0x4341a6['defaultView']||window;for(let _0x509b1c=_0x47193b,_0x79df38=!0x1;_0x509b1c&&!_0x79df38;)if(0x1==_0x509b1c['nodeType']){let _0x148235,_0x4d7ab7=_0x509b1c==_0x4341a6['body'],_0xee8cbf=0x1,_0x4b60f1=0x1;if(_0x4d7ab7)_0x148235=windowRect(_0x1a2172);else{if(/^(fixed|sticky)$/['test'](getComputedStyle(_0x509b1c)['position'])&&(_0x79df38=!0x0),_0x509b1c['scrollHeight']<=_0x509b1c['clientHeight']&&_0x509b1c['scrollWidth']<=_0x509b1c['clientWidth']){_0x509b1c=_0x509b1c['assignedSlot']||_0x509b1c['parentNode'];continue;}let _0x1448cf=_0x509b1c['getBoundingClientRect']();({scaleX:_0xee8cbf,scaleY:_0x4b60f1}=getScale(_0x509b1c,_0x1448cf),_0x148235={'left':_0x1448cf['left'],'right':_0x1448cf['left']+_0x509b1c['clientWidth']*_0xee8cbf,'top':_0x1448cf['top'],'bottom':_0x1448cf['top']+_0x509b1c['clientHeight']*_0x4b60f1});}let _0x4cbee1=0x0,_0x460310=0x0;if('nearest'==_0x3ff300)_0x51882a['top']<_0x148235['top']?(_0x460310=_0x51882a['top']-(_0x148235['top']+_0x51c23b),_0x4cfc60>0x0&&_0x51882a['bottom']>_0x148235['bottom']+_0x460310&&(_0x460310=_0x51882a['bottom']-_0x148235['bottom']+_0x51c23b)):_0x51882a['bottom']>_0x148235['bottom']&&(_0x460310=_0x51882a['bottom']-_0x148235['bottom']+_0x51c23b,_0x4cfc60<0x0&&_0x51882a['top']-_0x460310<_0x148235['top']&&(_0x460310=_0x51882a['top']-(_0x148235['top']+_0x51c23b)));else{let _0x4fd69a=_0x51882a['bottom']-_0x51882a['top'],_0x540a6a=_0x148235['bottom']-_0x148235['top'];_0x460310=('center'==_0x3ff300&&_0x4fd69a<=_0x540a6a?_0x51882a['top']+_0x4fd69a/0x2-_0x540a6a/0x2:'start'==_0x3ff300||'center'==_0x3ff300&&_0x4cfc60<0x0?_0x51882a['top']-_0x51c23b:_0x51882a['bottom']-_0x540a6a+_0x51c23b)-_0x148235['top'];}if('nearest'==_0x3f9dd2)_0x51882a['left']<_0x148235['left']?(_0x4cbee1=_0x51882a['left']-(_0x148235['left']+_0x5248cb),_0x4cfc60>0x0&&_0x51882a['right']>_0x148235['right']+_0x4cbee1&&(_0x4cbee1=_0x51882a['right']-_0x148235['right']+_0x5248cb)):_0x51882a['right']>_0x148235['right']&&(_0x4cbee1=_0x51882a['right']-_0x148235['right']+_0x5248cb,_0x4cfc60<0x0&&_0x51882a['left']<_0x148235['left']+_0x4cbee1&&(_0x4cbee1=_0x51882a['left']-(_0x148235['left']+_0x5248cb)));else _0x4cbee1=('center'==_0x3f9dd2?_0x51882a['left']+(_0x51882a['right']-_0x51882a['left'])/0x2-(_0x148235['right']-_0x148235['left'])/0x2:'start'==_0x3f9dd2==_0x3f761d?_0x51882a['left']-_0x5248cb:_0x51882a['right']-(_0x148235['right']-_0x148235['left'])+_0x5248cb)-_0x148235['left'];if(_0x4cbee1||_0x460310){if(_0x4d7ab7)_0x1a2172['scrollBy'](_0x4cbee1,_0x460310);else{let _0xf35ac2=0x0,_0x3020e0=0x0;if(_0x460310){let _0x7a0b44=_0x509b1c['scrollTop'];_0x509b1c['scrollTop']+=_0x460310/_0x4b60f1,_0x3020e0=(_0x509b1c['scrollTop']-_0x7a0b44)*_0x4b60f1;}if(_0x4cbee1){let _0x4db6cb=_0x509b1c['scrollLeft'];_0x509b1c['scrollLeft']+=_0x4cbee1/_0xee8cbf,_0xf35ac2=(_0x509b1c['scrollLeft']-_0x4db6cb)*_0xee8cbf;}_0x51882a={'left':_0x51882a['left']-_0xf35ac2,'top':_0x51882a['top']-_0x3020e0,'right':_0x51882a['right']-_0xf35ac2,'bottom':_0x51882a['bottom']-_0x3020e0},_0xf35ac2&&Math['abs'](_0xf35ac2-_0x4cbee1)<0x1&&(_0x3f9dd2='nearest'),_0x3020e0&&Math['abs'](_0x3020e0-_0x460310)<0x1&&(_0x3ff300='nearest');}}if(_0x4d7ab7)break;(_0x51882a['top']<_0x148235['top']||_0x51882a['bottom']>_0x148235['bottom']||_0x51882a['left']<_0x148235['left']||_0x51882a['right']>_0x148235['right'])&&(_0x51882a={'left':Math['max'](_0x51882a['left'],_0x148235['left']),'right':Math['min'](_0x51882a['right'],_0x148235['right']),'top':Math['max'](_0x51882a['top'],_0x148235['top']),'bottom':Math['min'](_0x51882a['bottom'],_0x148235['bottom'])}),_0x509b1c=_0x509b1c['assignedSlot']||_0x509b1c['parentNode'];}else{if(0xb!=_0x509b1c['nodeType'])break;_0x509b1c=_0x509b1c['host'];}}function scrollableParents(_0x28f4a3){let _0x5055d0,_0x43f663,_0x53018c=_0x28f4a3['ownerDocument'];for(let _0xac7a1b=_0x28f4a3['parentNode'];_0xac7a1b&&!(_0xac7a1b==_0x53018c['body']||_0x5055d0&&_0x43f663);)if(0x1==_0xac7a1b['nodeType'])!_0x43f663&&_0xac7a1b['scrollHeight']>_0xac7a1b['clientHeight']&&(_0x43f663=_0xac7a1b),!_0x5055d0&&_0xac7a1b['scrollWidth']>_0xac7a1b['clientWidth']&&(_0x5055d0=_0xac7a1b),_0xac7a1b=_0xac7a1b['assignedSlot']||_0xac7a1b['parentNode'];else{if(0xb!=_0xac7a1b['nodeType'])break;_0xac7a1b=_0xac7a1b['host'];}return{'x':_0x5055d0,'y':_0x43f663};}class DOMSelectionState{constructor(){this['anchorNode']=null,this['anchorOffset']=0x0,this['focusNode']=null,this['focusOffset']=0x0;}['eq'](_0x514488){return this['anchorNode']==_0x514488['anchorNode']&&this['anchorOffset']==_0x514488['anchorOffset']&&this['focusNode']==_0x514488['focusNode']&&this['focusOffset']==_0x514488['focusOffset'];}['setRange'](_0x2127e2){let {anchorNode:_0x2b1c77,focusNode:_0x4ddce4}=_0x2127e2;this['set'](_0x2b1c77,Math['min'](_0x2127e2['anchorOffset'],_0x2b1c77?maxOffset(_0x2b1c77):0x0),_0x4ddce4,Math['min'](_0x2127e2['focusOffset'],_0x4ddce4?maxOffset(_0x4ddce4):0x0));}['set'](_0x519eda,_0x23bffc,_0x1556dc,_0x59058f){this['anchorNode']=_0x519eda,this['anchorOffset']=_0x23bffc,this['focusNode']=_0x1556dc,this['focusOffset']=_0x59058f;}}let preventScrollSupported=null,scratchRange;function focusPreventScroll(_0x2acfc9){if(_0x2acfc9['setActive'])return _0x2acfc9['setActive']();if(preventScrollSupported)return _0x2acfc9['focus'](preventScrollSupported);let _0x354180=[];for(let _0x53f679=_0x2acfc9;_0x53f679&&(_0x354180['push'](_0x53f679,_0x53f679['scrollTop'],_0x53f679['scrollLeft']),_0x53f679!=_0x53f679['ownerDocument']);_0x53f679=_0x53f679['parentNode']);if(_0x2acfc9['focus'](null==preventScrollSupported?{get 'preventScroll'(){return preventScrollSupported={'preventScroll':!0x0},!0x0;}}:void 0x0),!preventScrollSupported){preventScrollSupported=!0x1;for(let _0x3dc189=0x0;_0x3dc189<_0x354180['length'];){let _0xa0f3ef=_0x354180[_0x3dc189++],_0x37dde6=_0x354180[_0x3dc189++],_0x6851c4=_0x354180[_0x3dc189++];_0xa0f3ef['scrollTop']!=_0x37dde6&&(_0xa0f3ef['scrollTop']=_0x37dde6),_0xa0f3ef['scrollLeft']!=_0x6851c4&&(_0xa0f3ef['scrollLeft']=_0x6851c4);}}}function textRange(_0x3cae2d,_0x4c864b,_0x4aeef4=_0x4c864b){let _0x16272d=scratchRange||(scratchRange=document['createRange']());return _0x16272d['setEnd'](_0x3cae2d,_0x4aeef4),_0x16272d['setStart'](_0x3cae2d,_0x4c864b),_0x16272d;}function dispatchKey(_0x550a68,_0x2bada6,_0x447f02,_0x5bf606){let _0x399097={'key':_0x2bada6,'code':_0x2bada6,'keyCode':_0x447f02,'which':_0x447f02,'cancelable':!0x0};_0x5bf606&&({altKey:_0x399097['altKey'],ctrlKey:_0x399097['ctrlKey'],shiftKey:_0x399097['shiftKey'],metaKey:_0x399097['metaKey']}=_0x5bf606);let _0x371bc4=new KeyboardEvent('keydown',_0x399097);_0x371bc4['synthetic']=!0x0,_0x550a68['dispatchEvent'](_0x371bc4);let _0x243162=new KeyboardEvent('keyup',_0x399097);return _0x243162['synthetic']=!0x0,_0x550a68['dispatchEvent'](_0x243162),_0x371bc4['defaultPrevented']||_0x243162['defaultPrevented'];}function getRoot(_0x8cbccb){for(;_0x8cbccb;){if(_0x8cbccb&&(0x9==_0x8cbccb['nodeType']||0xb==_0x8cbccb['nodeType']&&_0x8cbccb['host']))return _0x8cbccb;_0x8cbccb=_0x8cbccb['assignedSlot']||_0x8cbccb['parentNode'];}return null;}function clearAttributes(_0x1c5476){for(;_0x1c5476['attributes']['length'];)_0x1c5476['removeAttributeNode'](_0x1c5476['attributes'][0x0]);}function atElementStart(_0x381a40,_0xd8da8a){let _0x1caed8=_0xd8da8a['focusNode'],_0x5b8ecc=_0xd8da8a['focusOffset'];if(!_0x1caed8||_0xd8da8a['anchorNode']!=_0x1caed8||_0xd8da8a['anchorOffset']!=_0x5b8ecc)return!0x1;for(_0x5b8ecc=Math['min'](_0x5b8ecc,maxOffset(_0x1caed8));;)if(_0x5b8ecc){if(0x1!=_0x1caed8['nodeType'])return!0x1;let _0x5efdba=_0x1caed8['childNodes'][_0x5b8ecc-0x1];'false'==_0x5efdba['contentEditable']?_0x5b8ecc--:(_0x1caed8=_0x5efdba,_0x5b8ecc=maxOffset(_0x1caed8));}else{if(_0x1caed8==_0x381a40)return!0x0;_0x5b8ecc=domIndex(_0x1caed8),_0x1caed8=_0x1caed8['parentNode'];}}function isScrolledToBottom(_0x162c2d){return _0x162c2d['scrollTop']>Math['max'](0x1,_0x162c2d['scrollHeight']-_0x162c2d['clientHeight']-0x4);}function textNodeBefore(_0x4ec65f,_0xc350a3){for(let _0x1c4824=_0x4ec65f,_0x42fcff=_0xc350a3;;){if(0x3==_0x1c4824['nodeType']&&_0x42fcff>0x0)return{'node':_0x1c4824,'offset':_0x42fcff};if(0x1==_0x1c4824['nodeType']&&_0x42fcff>0x0){if('false'==_0x1c4824['contentEditable'])return null;_0x1c4824=_0x1c4824['childNodes'][_0x42fcff-0x1],_0x42fcff=maxOffset(_0x1c4824);}else{if(!_0x1c4824['parentNode']||isBlockElement(_0x1c4824))return null;_0x42fcff=domIndex(_0x1c4824),_0x1c4824=_0x1c4824['parentNode'];}}}function textNodeAfter(_0x1095b6,_0x152386){for(let _0x10a26e=_0x1095b6,_0x4c1841=_0x152386;;){if(0x3==_0x10a26e['nodeType']&&_0x4c1841<_0x10a26e['nodeValue']['length'])return{'node':_0x10a26e,'offset':_0x4c1841};if(0x1==_0x10a26e['nodeType']&&_0x4c1841<_0x10a26e['childNodes']['length']){if('false'==_0x10a26e['contentEditable'])return null;_0x10a26e=_0x10a26e['childNodes'][_0x4c1841],_0x4c1841=0x0;}else{if(!_0x10a26e['parentNode']||isBlockElement(_0x10a26e))return null;_0x4c1841=domIndex(_0x10a26e)+0x1,_0x10a26e=_0x10a26e['parentNode'];}}}class DOMPos{constructor(_0x5c46b3,_0x2c2095,_0x1cceea=!0x0){this['node']=_0x5c46b3,this['offset']=_0x2c2095,this['precise']=_0x1cceea;}static['before'](_0x25d808,_0x3dfffe){return new DOMPos(_0x25d808['parentNode'],domIndex(_0x25d808),_0x3dfffe);}static['after'](_0x1ec499,_0x521b09){return new DOMPos(_0x1ec499['parentNode'],domIndex(_0x1ec499)+0x1,_0x521b09);}}const noChildren=[];class ContentView{constructor(){this['parent']=null,this['dom']=null,this['flags']=0x2;}get['overrideDOMText'](){return null;}get['posAtStart'](){return this['parent']?this['parent']['posBefore'](this):0x0;}get['posAtEnd'](){return this['posAtStart']+this['length'];}['posBefore'](_0x4db65c){let _0x29f10e=this['posAtStart'];for(let _0x5d5725 of this['children']){if(_0x5d5725==_0x4db65c)return _0x29f10e;_0x29f10e+=_0x5d5725['length']+_0x5d5725['breakAfter'];}throw new RangeError('Invalid\x20child\x20in\x20posBefore');}['posAfter'](_0x2f76b5){return this['posBefore'](_0x2f76b5)+_0x2f76b5['length'];}['sync'](_0x418caa,_0x499214){if(0x2&this['flags']){let _0x2e6c2f,_0x1790d8=this['dom'],_0x98daef=null;for(let _0x58923f of this['children']){if(0x7&_0x58923f['flags']){if(!_0x58923f['dom']&&(_0x2e6c2f=_0x98daef?_0x98daef['nextSibling']:_0x1790d8['firstChild'])){let _0x54f0c1=ContentView['get'](_0x2e6c2f);(!_0x54f0c1||!_0x54f0c1['parent']&&_0x54f0c1['canReuseDOM'](_0x58923f))&&_0x58923f['reuseDOM'](_0x2e6c2f);}_0x58923f['sync'](_0x418caa,_0x499214),_0x58923f['flags']&=-0x8;}if(_0x2e6c2f=_0x98daef?_0x98daef['nextSibling']:_0x1790d8['firstChild'],_0x499214&&!_0x499214['written']&&_0x499214['node']==_0x1790d8&&_0x2e6c2f!=_0x58923f['dom']&&(_0x499214['written']=!0x0),_0x58923f['dom']['parentNode']==_0x1790d8){for(;_0x2e6c2f&&_0x2e6c2f!=_0x58923f['dom'];)_0x2e6c2f=rm$1(_0x2e6c2f);}else _0x1790d8['insertBefore'](_0x58923f['dom'],_0x2e6c2f);_0x98daef=_0x58923f['dom'];}for(_0x2e6c2f=_0x98daef?_0x98daef['nextSibling']:_0x1790d8['firstChild'],_0x2e6c2f&&_0x499214&&_0x499214['node']==_0x1790d8&&(_0x499214['written']=!0x0);_0x2e6c2f;)_0x2e6c2f=rm$1(_0x2e6c2f);}else{if(0x1&this['flags']){for(let _0x50ecd2 of this['children'])0x7&_0x50ecd2['flags']&&(_0x50ecd2['sync'](_0x418caa,_0x499214),_0x50ecd2['flags']&=-0x8);}}}['reuseDOM'](_0x41eeea){}['localPosFromDOM'](_0xd03e52,_0x5ae4bf){let _0x1a7082;if(_0xd03e52==this['dom'])_0x1a7082=this['dom']['childNodes'][_0x5ae4bf];else{let _0x24c1cd=0x0==maxOffset(_0xd03e52)?0x0:0x0==_0x5ae4bf?-0x1:0x1;for(;;){let _0x4b1d87=_0xd03e52['parentNode'];if(_0x4b1d87==this['dom'])break;0x0==_0x24c1cd&&_0x4b1d87['firstChild']!=_0x4b1d87['lastChild']&&(_0x24c1cd=_0xd03e52==_0x4b1d87['firstChild']?-0x1:0x1),_0xd03e52=_0x4b1d87;}_0x1a7082=_0x24c1cd<0x0?_0xd03e52:_0xd03e52['nextSibling'];}if(_0x1a7082==this['dom']['firstChild'])return 0x0;for(;_0x1a7082&&!ContentView['get'](_0x1a7082);)_0x1a7082=_0x1a7082['nextSibling'];if(!_0x1a7082)return this['length'];for(let _0x1f2034=0x0,_0x37ab6b=0x0;;_0x1f2034++){let _0x1e4acd=this['children'][_0x1f2034];if(_0x1e4acd['dom']==_0x1a7082)return _0x37ab6b;_0x37ab6b+=_0x1e4acd['length']+_0x1e4acd['breakAfter'];}}['domBoundsAround'](_0x1e0f2f,_0x29e105,_0x5cf4b2=0x0){let _0x2eb7f6=-0x1,_0x1ae784=-0x1,_0x34d466=-0x1,_0x23369e=-0x1;for(let _0xf5bdc0=0x0,_0xc9ee4b=_0x5cf4b2,_0x33a783=_0x5cf4b2;_0xf5bdc0<this['children']['length'];_0xf5bdc0++){let _0x2c3c23=this['children'][_0xf5bdc0],_0x3cd75e=_0xc9ee4b+_0x2c3c23['length'];if(_0xc9ee4b<_0x1e0f2f&&_0x3cd75e>_0x29e105)return _0x2c3c23['domBoundsAround'](_0x1e0f2f,_0x29e105,_0xc9ee4b);if(_0x3cd75e>=_0x1e0f2f&&-0x1==_0x2eb7f6&&(_0x2eb7f6=_0xf5bdc0,_0x1ae784=_0xc9ee4b),_0xc9ee4b>_0x29e105&&_0x2c3c23['dom']['parentNode']==this['dom']){_0x34d466=_0xf5bdc0,_0x23369e=_0x33a783;break;}_0x33a783=_0x3cd75e,_0xc9ee4b=_0x3cd75e+_0x2c3c23['breakAfter'];}return{'from':_0x1ae784,'to':_0x23369e<0x0?_0x5cf4b2+this['length']:_0x23369e,'startDOM':(_0x2eb7f6?this['children'][_0x2eb7f6-0x1]['dom']['nextSibling']:null)||this['dom']['firstChild'],'endDOM':_0x34d466<this['children']['length']&&_0x34d466>=0x0?this['children'][_0x34d466]['dom']:null};}['markDirty'](_0x328d1e=!0x1){this['flags']|=0x2,this['markParentsDirty'](_0x328d1e);}['markParentsDirty'](_0x1ac106){for(let _0x22e2da=this['parent'];_0x22e2da;_0x22e2da=_0x22e2da['parent']){if(_0x1ac106&&(_0x22e2da['flags']|=0x2),0x1&_0x22e2da['flags'])return;_0x22e2da['flags']|=0x1,_0x1ac106=!0x1;}}['setParent'](_0x89bfe0){this['parent']!=_0x89bfe0&&(this['parent']=_0x89bfe0,0x7&this['flags']&&this['markParentsDirty'](!0x0));}['setDOM'](_0x30401d){this['dom']!=_0x30401d&&(this['dom']&&(this['dom']['cmView']=null),this['dom']=_0x30401d,_0x30401d['cmView']=this);}get['rootView'](){for(let _0x1d47d4=this;;){let _0x48ea4f=_0x1d47d4['parent'];if(!_0x48ea4f)return _0x1d47d4;_0x1d47d4=_0x48ea4f;}}['replaceChildren'](_0x236868,_0x19f5be,_0x321b94=noChildren){this['markDirty']();for(let _0xf43953=_0x236868;_0xf43953<_0x19f5be;_0xf43953++){let _0x143cc9=this['children'][_0xf43953];_0x143cc9['parent']==this&&_0x321b94['indexOf'](_0x143cc9)<0x0&&_0x143cc9['destroy']();}_0x321b94['length']<0xfa?this['children']['splice'](_0x236868,_0x19f5be-_0x236868,..._0x321b94):this['children']=[]['concat'](this['children']['slice'](0x0,_0x236868),_0x321b94,this['children']['slice'](_0x19f5be));for(let _0x15c938=0x0;_0x15c938<_0x321b94['length'];_0x15c938++)_0x321b94[_0x15c938]['setParent'](this);}['ignoreMutation'](_0x264107){return!0x1;}['ignoreEvent'](_0x5c9bd7){return!0x1;}['childCursor'](_0x135780=this['length']){return new ChildCursor(this['children'],_0x135780,this['children']['length']);}['childPos'](_0xb4dfba,_0x3a2c3a=0x1){return this['childCursor']()['findPos'](_0xb4dfba,_0x3a2c3a);}['toString'](){let _0x154513=this['constructor']['name']['replace']('View','');return _0x154513+(this['children']['length']?'('+this['children']['join']()+')':this['length']?'['+('Text'==_0x154513?this['text']:this['length'])+']':'')+(this['breakAfter']?'#':'');}static['get'](_0xb56844){return _0xb56844['cmView'];}get['isEditable'](){return!0x0;}get['isWidget'](){return!0x1;}get['isHidden'](){return!0x1;}['merge'](_0x1252fe,_0x55cd10,_0x4bd278,_0x51b723,_0x8135f4,_0x2b4862){return!0x1;}['become'](_0x39bde6){return!0x1;}['canReuseDOM'](_0x2089c5){return _0x2089c5['constructor']==this['constructor']&&!(0x8&(this['flags']|_0x2089c5['flags']));}['getSide'](){return 0x0;}['destroy'](){for(let _0x5619fb of this['children'])_0x5619fb['parent']==this&&_0x5619fb['destroy']();this['parent']=null;}}function rm$1(_0x27ba0e){let _0x212292=_0x27ba0e['nextSibling'];return _0x27ba0e['parentNode']['removeChild'](_0x27ba0e),_0x212292;}ContentView['prototype']['breakAfter']=0x0;class ChildCursor{constructor(_0x4f00ce,_0x1fa4f9,_0x11611c){this['children']=_0x4f00ce,this['pos']=_0x1fa4f9,this['i']=_0x11611c,this['off']=0x0;}['findPos'](_0x40082f,_0x40c9fb=0x1){for(;;){if(_0x40082f>this['pos']||_0x40082f==this['pos']&&(_0x40c9fb>0x0||0x0==this['i']||this['children'][this['i']-0x1]['breakAfter']))return this['off']=_0x40082f-this['pos'],this;let _0x143f6b=this['children'][--this['i']];this['pos']-=_0x143f6b['length']+_0x143f6b['breakAfter'];}}}function replaceRange(_0x47388f,_0x41484c,_0x5ee19c,_0x454ce,_0x502ff3,_0x5e20e4,_0x199a83,_0x9bfbf5,_0x551da6){let {children:_0x1cf731}=_0x47388f,_0x452312=_0x1cf731['length']?_0x1cf731[_0x41484c]:null,_0x21a7e6=_0x5e20e4['length']?_0x5e20e4[_0x5e20e4['length']-0x1]:null,_0x57b58d=_0x21a7e6?_0x21a7e6['breakAfter']:_0x199a83;if(!(_0x41484c==_0x454ce&&_0x452312&&!_0x199a83&&!_0x57b58d&&_0x5e20e4['length']<0x2&&_0x452312['merge'](_0x5ee19c,_0x502ff3,_0x5e20e4['length']?_0x21a7e6:null,0x0==_0x5ee19c,_0x9bfbf5,_0x551da6))){if(_0x454ce<_0x1cf731['length']){let _0x348238=_0x1cf731[_0x454ce];_0x348238&&(_0x502ff3<_0x348238['length']||_0x348238['breakAfter']&&(null==_0x21a7e6?void 0x0:_0x21a7e6['breakAfter']))?(_0x41484c==_0x454ce&&(_0x348238=_0x348238['split'](_0x502ff3),_0x502ff3=0x0),!_0x57b58d&&_0x21a7e6&&_0x348238['merge'](0x0,_0x502ff3,_0x21a7e6,!0x0,0x0,_0x551da6)?_0x5e20e4[_0x5e20e4['length']-0x1]=_0x348238:((_0x502ff3||_0x348238['children']['length']&&!_0x348238['children'][0x0]['length'])&&_0x348238['merge'](0x0,_0x502ff3,null,!0x1,0x0,_0x551da6),_0x5e20e4['push'](_0x348238))):(null==_0x348238?void 0x0:_0x348238['breakAfter'])&&(_0x21a7e6?_0x21a7e6['breakAfter']=0x1:_0x199a83=0x1),_0x454ce++;}for(_0x452312&&(_0x452312['breakAfter']=_0x199a83,_0x5ee19c>0x0&&(!_0x199a83&&_0x5e20e4['length']&&_0x452312['merge'](_0x5ee19c,_0x452312['length'],_0x5e20e4[0x0],!0x1,_0x9bfbf5,0x0)?_0x452312['breakAfter']=_0x5e20e4['shift']()['breakAfter']:(_0x5ee19c<_0x452312['length']||_0x452312['children']['length']&&0x0==_0x452312['children'][_0x452312['children']['length']-0x1]['length'])&&_0x452312['merge'](_0x5ee19c,_0x452312['length'],null,!0x1,_0x9bfbf5,0x0),_0x41484c++));_0x41484c<_0x454ce&&_0x5e20e4['length'];)if(_0x1cf731[_0x454ce-0x1]['become'](_0x5e20e4[_0x5e20e4['length']-0x1]))_0x454ce--,_0x5e20e4['pop'](),_0x551da6=_0x5e20e4['length']?0x0:_0x9bfbf5;else{if(!_0x1cf731[_0x41484c]['become'](_0x5e20e4[0x0]))break;_0x41484c++,_0x5e20e4['shift'](),_0x9bfbf5=_0x5e20e4['length']?0x0:_0x551da6;}!_0x5e20e4['length']&&_0x41484c&&_0x454ce<_0x1cf731['length']&&!_0x1cf731[_0x41484c-0x1]['breakAfter']&&_0x1cf731[_0x454ce]['merge'](0x0,0x0,_0x1cf731[_0x41484c-0x1],!0x1,_0x9bfbf5,_0x551da6)&&_0x41484c--,(_0x41484c<_0x454ce||_0x5e20e4['length'])&&_0x47388f['replaceChildren'](_0x41484c,_0x454ce,_0x5e20e4);}}function mergeChildrenInto(_0x59d530,_0x23871e,_0x30f993,_0x33a112,_0x5a5177,_0x29dacc){let _0x3edb63=_0x59d530['childCursor'](),{i:_0x27d4f1,off:_0x579952}=_0x3edb63['findPos'](_0x30f993,0x1),{i:_0x56589f,off:_0x4237fa}=_0x3edb63['findPos'](_0x23871e,-0x1),_0x421b2e=_0x23871e-_0x30f993;for(let _0x215837 of _0x33a112)_0x421b2e+=_0x215837['length'];_0x59d530['length']+=_0x421b2e,replaceRange(_0x59d530,_0x56589f,_0x4237fa,_0x27d4f1,_0x579952,_0x33a112,0x0,_0x5a5177,_0x29dacc);}let nav='undefined'!=typeof navigator?navigator:{'userAgent':'','vendor':'','platform':''},doc='undefined'!=typeof document?document:{'documentElement':{'style':{}}};const ie_edge=/Edge\/(\d+)/['exec'](nav['userAgent']),ie_upto10=/MSIE \d/['test'](nav['userAgent']),ie_11up=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/['exec'](nav['userAgent']),ie=!!(ie_upto10||ie_11up||ie_edge),gecko=!ie&&/gecko\/(\d+)/i['test'](nav['userAgent']),chrome=!ie&&/Chrome\/(\d+)/['exec'](nav['userAgent']),webkit='webkitFontSmoothing'in doc['documentElement']['style'],safari=!ie&&/Apple Computer/['test'](nav['vendor']),ios=safari&&(/Mobile\/\w+/['test'](nav['userAgent'])||nav['maxTouchPoints']>0x2);var browser={'mac':ios||/Mac/['test'](nav['platform']),'windows':/Win/['test'](nav['platform']),'linux':/Linux|X11/['test'](nav['platform']),'ie':ie,'ie_version':ie_upto10?doc['documentMode']||0x6:ie_11up?+ie_11up[0x1]:ie_edge?+ie_edge[0x1]:0x0,'gecko':gecko,'gecko_version':gecko?+(/Firefox\/(\d+)/['exec'](nav['userAgent'])||[0x0,0x0])[0x1]:0x0,'chrome':!!chrome,'chrome_version':chrome?+chrome[0x1]:0x0,'ios':ios,'android':/Android\b/['test'](nav['userAgent']),'safari':safari,'webkit_version':webkit?+(/\bAppleWebKit\/(\d+)/['exec'](nav['userAgent'])||[0x0,0x0])[0x1]:0x0,'tabSize':null!=doc['documentElement']['style']['tabSize']?'tab-size':'-moz-tab-size'};const MaxJoinLen=0x100;class TextView extends ContentView{constructor(_0x13bc2d){super(),this['text']=_0x13bc2d;}get['length'](){return this['text']['length'];}['createDOM'](_0x133b97){this['setDOM'](_0x133b97||document['createTextNode'](this['text']));}['sync'](_0x22cbe,_0x42317f){this['dom']||this['createDOM'](),this['dom']['nodeValue']!=this['text']&&(_0x42317f&&_0x42317f['node']==this['dom']&&(_0x42317f['written']=!0x0),this['dom']['nodeValue']=this['text']);}['reuseDOM'](_0x3cc007){0x3==_0x3cc007['nodeType']&&this['createDOM'](_0x3cc007);}['merge'](_0x275e16,_0x344a37,_0x131dac){return!(0x8&this['flags']||_0x131dac&&(!(_0x131dac instanceof TextView)||this['length']-(_0x344a37-_0x275e16)+_0x131dac['length']>MaxJoinLen||0x8&_0x131dac['flags']))&&(this['text']=this['text']['slice'](0x0,_0x275e16)+(_0x131dac?_0x131dac['text']:'')+this['text']['slice'](_0x344a37),this['markDirty'](),!0x0);}['split'](_0x188455){let _0x2e3534=new TextView(this['text']['slice'](_0x188455));return this['text']=this['text']['slice'](0x0,_0x188455),this['markDirty'](),_0x2e3534['flags']|=0x8&this['flags'],_0x2e3534;}['localPosFromDOM'](_0x51eb9b,_0x91971f){return _0x51eb9b==this['dom']?_0x91971f:_0x91971f?this['text']['length']:0x0;}['domAtPos'](_0x588154){return new DOMPos(this['dom'],_0x588154);}['domBoundsAround'](_0x16663e,_0x1d054d,_0x241f01){return{'from':_0x241f01,'to':_0x241f01+this['length'],'startDOM':this['dom'],'endDOM':this['dom']['nextSibling']};}['coordsAt'](_0x2d36d6,_0x48961c){return textCoords(this['dom'],_0x2d36d6,_0x48961c);}}class MarkView extends ContentView{constructor(_0x2f6279,_0x475660=[],_0x65db16=0x0){super(),this['mark']=_0x2f6279,this['children']=_0x475660,this['length']=_0x65db16;for(let _0x33344b of _0x475660)_0x33344b['setParent'](this);}['setAttrs'](_0x137f9e){if(clearAttributes(_0x137f9e),this['mark']['class']&&(_0x137f9e['className']=this['mark']['class']),this['mark']['attrs']){for(let _0x421585 in this['mark']['attrs'])_0x137f9e['setAttribute'](_0x421585,this['mark']['attrs'][_0x421585]);}return _0x137f9e;}['canReuseDOM'](_0x2cb91d){return super['canReuseDOM'](_0x2cb91d)&&!(0x8&(this['flags']|_0x2cb91d['flags']));}['reuseDOM'](_0x2ee82e){_0x2ee82e['nodeName']==this['mark']['tagName']['toUpperCase']()&&(this['setDOM'](_0x2ee82e),this['flags']|=0x6);}['sync'](_0x23ac1f,_0x1a6ad9){this['dom']?0x4&this['flags']&&this['setAttrs'](this['dom']):this['setDOM'](this['setAttrs'](document['createElement'](this['mark']['tagName']))),super['sync'](_0x23ac1f,_0x1a6ad9);}['merge'](_0x22536c,_0x3f0dd8,_0x55b261,_0x3d7d07,_0x52744b,_0x9c0d08){return(!_0x55b261||!(!(_0x55b261 instanceof MarkView&&_0x55b261['mark']['eq'](this['mark']))||_0x22536c&&_0x52744b<=0x0||_0x3f0dd8<this['length']&&_0x9c0d08<=0x0))&&(mergeChildrenInto(this,_0x22536c,_0x3f0dd8,_0x55b261?_0x55b261['children']['slice']():[],_0x52744b-0x1,_0x9c0d08-0x1),this['markDirty'](),!0x0);}['split'](_0x29e17b){let _0x2d2a76=[],_0x38a4e8=0x0,_0x20e5e3=-0x1,_0x1dce2e=0x0;for(let _0x55bbc5 of this['children']){let _0x518cc5=_0x38a4e8+_0x55bbc5['length'];_0x518cc5>_0x29e17b&&_0x2d2a76['push'](_0x38a4e8<_0x29e17b?_0x55bbc5['split'](_0x29e17b-_0x38a4e8):_0x55bbc5),_0x20e5e3<0x0&&_0x38a4e8>=_0x29e17b&&(_0x20e5e3=_0x1dce2e),_0x38a4e8=_0x518cc5,_0x1dce2e++;}let _0xbad0c=this['length']-_0x29e17b;return this['length']=_0x29e17b,_0x20e5e3>-0x1&&(this['children']['length']=_0x20e5e3,this['markDirty']()),new MarkView(this['mark'],_0x2d2a76,_0xbad0c);}['domAtPos'](_0x536268){return inlineDOMAtPos(this,_0x536268);}['coordsAt'](_0x640748,_0x4b42bc){return coordsInChildren(this,_0x640748,_0x4b42bc);}}function textCoords(_0x3e0b90,_0x4a1aff,_0x577d7b){let _0x24b233=_0x3e0b90['nodeValue']['length'];_0x4a1aff>_0x24b233&&(_0x4a1aff=_0x24b233);let _0x4555d8=_0x4a1aff,_0x335169=_0x4a1aff,_0x495f5c=0x0;0x0==_0x4a1aff&&_0x577d7b<0x0||_0x4a1aff==_0x24b233&&_0x577d7b>=0x0?browser['chrome']||browser['gecko']||(_0x4a1aff?(_0x4555d8--,_0x495f5c=0x1):_0x335169<_0x24b233&&(_0x335169++,_0x495f5c=-0x1)):_0x577d7b<0x0?_0x4555d8--:_0x335169<_0x24b233&&_0x335169++;let _0xdf7ec7=textRange(_0x3e0b90,_0x4555d8,_0x335169)['getClientRects']();if(!_0xdf7ec7['length'])return null;let _0x1e4022=_0xdf7ec7[(_0x495f5c?_0x495f5c<0x0:_0x577d7b>=0x0)?0x0:_0xdf7ec7['length']-0x1];return browser['safari']&&!_0x495f5c&&0x0==_0x1e4022['width']&&(_0x1e4022=Array['prototype']['find']['call'](_0xdf7ec7,_0x5bd611=>_0x5bd611['width'])||_0x1e4022),_0x495f5c?flattenRect(_0x1e4022,_0x495f5c<0x0):_0x1e4022||null;}class WidgetView extends ContentView{static['create'](_0xddeedb,_0xe9fb48,_0x10a410){return new WidgetView(_0xddeedb,_0xe9fb48,_0x10a410);}constructor(_0xd3b59,_0x42b7d9,_0x2b9168){super(),this['widget']=_0xd3b59,this['length']=_0x42b7d9,this['side']=_0x2b9168,this['prevWidget']=null;}['split'](_0x5b01b5){let _0x492f66=WidgetView['create'](this['widget'],this['length']-_0x5b01b5,this['side']);return this['length']-=_0x5b01b5,_0x492f66;}['sync'](_0x521d94){this['dom']&&this['widget']['updateDOM'](this['dom'],_0x521d94)||(this['dom']&&this['prevWidget']&&this['prevWidget']['destroy'](this['dom']),this['prevWidget']=null,this['setDOM'](this['widget']['toDOM'](_0x521d94)),this['widget']['editable']||(this['dom']['contentEditable']='false'));}['getSide'](){return this['side'];}['merge'](_0x288ff5,_0x392bd7,_0x17c503,_0x14b2e0,_0x660b1f,_0x4fdd35){return!(_0x17c503&&(!(_0x17c503 instanceof WidgetView&&this['widget']['compare'](_0x17c503['widget']))||_0x288ff5>0x0&&_0x660b1f<=0x0||_0x392bd7<this['length']&&_0x4fdd35<=0x0))&&(this['length']=_0x288ff5+(_0x17c503?_0x17c503['length']:0x0)+(this['length']-_0x392bd7),!0x0);}['become'](_0x457a3f){return _0x457a3f instanceof WidgetView&&_0x457a3f['side']==this['side']&&this['widget']['constructor']==_0x457a3f['widget']['constructor']&&(this['widget']['compare'](_0x457a3f['widget'])||this['markDirty'](!0x0),this['dom']&&!this['prevWidget']&&(this['prevWidget']=this['widget']),this['widget']=_0x457a3f['widget'],this['length']=_0x457a3f['length'],!0x0);}['ignoreMutation'](){return!0x0;}['ignoreEvent'](_0x5227de){return this['widget']['ignoreEvent'](_0x5227de);}get['overrideDOMText'](){if(0x0==this['length'])return Text['empty'];let _0x3fc911=this;for(;_0x3fc911['parent'];)_0x3fc911=_0x3fc911['parent'];let {view:_0x5ca774}=_0x3fc911,_0x20390f=_0x5ca774&&_0x5ca774['state']['doc'],_0xc09f4b=this['posAtStart'];return _0x20390f?_0x20390f['slice'](_0xc09f4b,_0xc09f4b+this['length']):Text['empty'];}['domAtPos'](_0x57fc6d){return(this['length']?0x0==_0x57fc6d:this['side']>0x0)?DOMPos['before'](this['dom']):DOMPos['after'](this['dom'],_0x57fc6d==this['length']);}['domBoundsAround'](){return null;}['coordsAt'](_0x37ac1d,_0x52cf15){let _0x518e00=this['widget']['coordsAt'](this['dom'],_0x37ac1d,_0x52cf15);if(_0x518e00)return _0x518e00;let _0x6b7269=this['dom']['getClientRects'](),_0x80ce23=null;if(!_0x6b7269['length'])return null;let _0x2d3ccc=this['side']?this['side']<0x0:_0x37ac1d>0x0;for(let _0x194e00=_0x2d3ccc?_0x6b7269['length']-0x1:0x0;_0x80ce23=_0x6b7269[_0x194e00],!(_0x37ac1d>0x0?0x0==_0x194e00:_0x194e00==_0x6b7269['length']-0x1||_0x80ce23['top']<_0x80ce23['bottom']);_0x194e00+=_0x2d3ccc?-0x1:0x1);return flattenRect(_0x80ce23,!_0x2d3ccc);}get['isEditable'](){return!0x1;}get['isWidget'](){return!0x0;}get['isHidden'](){return this['widget']['isHidden'];}['destroy'](){super['destroy'](),this['dom']&&this['widget']['destroy'](this['dom']);}}class WidgetBufferView extends ContentView{constructor(_0x142cf7){super(),this['side']=_0x142cf7;}get['length'](){return 0x0;}['merge'](){return!0x1;}['become'](_0x2b0fb0){return _0x2b0fb0 instanceof WidgetBufferView&&_0x2b0fb0['side']==this['side'];}['split'](){return new WidgetBufferView(this['side']);}['sync'](){if(!this['dom']){let _0x5f7fad=document['createElement']('img');_0x5f7fad['className']='cm-widgetBuffer',_0x5f7fad['setAttribute']('aria-hidden','true'),this['setDOM'](_0x5f7fad);}}['getSide'](){return this['side'];}['domAtPos'](_0x5a38c9){return this['side']>0x0?DOMPos['before'](this['dom']):DOMPos['after'](this['dom']);}['localPosFromDOM'](){return 0x0;}['domBoundsAround'](){return null;}['coordsAt'](_0x23c6f6){return this['dom']['getBoundingClientRect']();}get['overrideDOMText'](){return Text['empty'];}get['isHidden'](){return!0x0;}}function inlineDOMAtPos(_0x2bbce0,_0x1bc1ba){let _0x56c360=_0x2bbce0['dom'],{children:_0x4159fe}=_0x2bbce0,_0x3befae=0x0;for(let _0x4c00cf=0x0;_0x3befae<_0x4159fe['length'];_0x3befae++){let _0x34516d=_0x4159fe[_0x3befae],_0x272219=_0x4c00cf+_0x34516d['length'];if(!(_0x272219==_0x4c00cf&&_0x34516d['getSide']()<=0x0)){if(_0x1bc1ba>_0x4c00cf&&_0x1bc1ba<_0x272219&&_0x34516d['dom']['parentNode']==_0x56c360)return _0x34516d['domAtPos'](_0x1bc1ba-_0x4c00cf);if(_0x1bc1ba<=_0x4c00cf)break;_0x4c00cf=_0x272219;}}for(let _0x36eeb4=_0x3befae;_0x36eeb4>0x0;_0x36eeb4--){let _0x3f56fd=_0x4159fe[_0x36eeb4-0x1];if(_0x3f56fd['dom']['parentNode']==_0x56c360)return _0x3f56fd['domAtPos'](_0x3f56fd['length']);}for(let _0x5c1a65=_0x3befae;_0x5c1a65<_0x4159fe['length'];_0x5c1a65++){let _0x5f0be3=_0x4159fe[_0x5c1a65];if(_0x5f0be3['dom']['parentNode']==_0x56c360)return _0x5f0be3['domAtPos'](0x0);}return new DOMPos(_0x56c360,0x0);}function joinInlineInto(_0x380359,_0x15083c,_0x5bbc1d){let _0x47e87e,{children:_0xe567bd}=_0x380359;_0x5bbc1d>0x0&&_0x15083c instanceof MarkView&&_0xe567bd['length']&&(_0x47e87e=_0xe567bd[_0xe567bd['length']-0x1])instanceof MarkView&&_0x47e87e['mark']['eq'](_0x15083c['mark'])?joinInlineInto(_0x47e87e,_0x15083c['children'][0x0],_0x5bbc1d-0x1):(_0xe567bd['push'](_0x15083c),_0x15083c['setParent'](_0x380359)),_0x380359['length']+=_0x15083c['length'];}function coordsInChildren(_0x3d94fa,_0x54bdf8,_0x45ecbc){let _0x6e0ea=null,_0x33485d=-0x1,_0x2aed57=null,_0x285a27=-0x1;!function _0x12396b(_0x4b179c,_0x1f8b85){for(let _0x4f4d71=0x0,_0x4216ee=0x0;_0x4f4d71<_0x4b179c['children']['length']&&_0x4216ee<=_0x1f8b85;_0x4f4d71++){let _0x10ab86=_0x4b179c['children'][_0x4f4d71],_0x3f2511=_0x4216ee+_0x10ab86['length'];_0x3f2511>=_0x1f8b85&&(_0x10ab86['children']['length']?_0x12396b(_0x10ab86,_0x1f8b85-_0x4216ee):(!_0x2aed57||_0x2aed57['isHidden']&&(_0x45ecbc>0x0||onSameLine(_0x2aed57,_0x10ab86)))&&(_0x3f2511>_0x1f8b85||_0x4216ee==_0x3f2511&&_0x10ab86['getSide']()>0x0)?(_0x2aed57=_0x10ab86,_0x285a27=_0x1f8b85-_0x4216ee):(_0x4216ee<_0x1f8b85||_0x4216ee==_0x3f2511&&_0x10ab86['getSide']()<0x0&&!_0x10ab86['isHidden'])&&(_0x6e0ea=_0x10ab86,_0x33485d=_0x1f8b85-_0x4216ee)),_0x4216ee=_0x3f2511;}}(_0x3d94fa,_0x54bdf8);let _0x2357da=(_0x45ecbc<0x0?_0x6e0ea:_0x2aed57)||_0x6e0ea||_0x2aed57;return _0x2357da?_0x2357da['coordsAt'](Math['max'](0x0,_0x2357da==_0x6e0ea?_0x33485d:_0x285a27),_0x45ecbc):fallbackRect(_0x3d94fa);}function fallbackRect(_0xffeb89){let _0x3492e0=_0xffeb89['dom']['lastChild'];if(!_0x3492e0)return _0xffeb89['dom']['getBoundingClientRect']();let _0x4b9a77=clientRectsFor(_0x3492e0);return _0x4b9a77[_0x4b9a77['length']-0x1]||null;}function onSameLine(_0x426975,_0x564c66){let _0x3678b4=_0x426975['coordsAt'](0x0,0x1),_0x5904e0=_0x564c66['coordsAt'](0x0,0x1);return _0x3678b4&&_0x5904e0&&_0x5904e0['top']<_0x3678b4['bottom'];}function combineAttrs(_0x3ae00d,_0xafd781){for(let _0x51bdec in _0x3ae00d)'class'==_0x51bdec&&_0xafd781['class']?_0xafd781['class']+='\x20'+_0x3ae00d['class']:'style'==_0x51bdec&&_0xafd781['style']?_0xafd781['style']+=';'+_0x3ae00d['style']:_0xafd781[_0x51bdec]=_0x3ae00d[_0x51bdec];return _0xafd781;}TextView['prototype']['children']=WidgetView['prototype']['children']=WidgetBufferView['prototype']['children']=noChildren;const noAttrs$1=Object['create'](null);function attrsEq(_0x8925c3,_0x1451b6,_0x424a62){if(_0x8925c3==_0x1451b6)return!0x0;_0x8925c3||(_0x8925c3=noAttrs$1),_0x1451b6||(_0x1451b6=noAttrs$1);let _0x3807c4=Object['keys'](_0x8925c3),_0x5470b0=Object['keys'](_0x1451b6);if(_0x3807c4['length']-(_0x424a62&&_0x3807c4['indexOf'](_0x424a62)>-0x1?0x1:0x0)!=_0x5470b0['length']-(_0x424a62&&_0x5470b0['indexOf'](_0x424a62)>-0x1?0x1:0x0))return!0x1;for(let _0x486417 of _0x3807c4)if(_0x486417!=_0x424a62&&(-0x1==_0x5470b0['indexOf'](_0x486417)||_0x8925c3[_0x486417]!==_0x1451b6[_0x486417]))return!0x1;return!0x0;}function updateAttrs(_0x453d23,_0x11e3fc,_0x3029a9){let _0x1f5576=!0x1;if(_0x11e3fc){for(let _0x26b125 in _0x11e3fc)_0x3029a9&&_0x26b125 in _0x3029a9||(_0x1f5576=!0x0,'style'==_0x26b125?_0x453d23['style']['cssText']='':_0x453d23['removeAttribute'](_0x26b125));}if(_0x3029a9){for(let _0x5d8328 in _0x3029a9)_0x11e3fc&&_0x11e3fc[_0x5d8328]==_0x3029a9[_0x5d8328]||(_0x1f5576=!0x0,'style'==_0x5d8328?_0x453d23['style']['cssText']=_0x3029a9[_0x5d8328]:_0x453d23['setAttribute'](_0x5d8328,_0x3029a9[_0x5d8328]));}return _0x1f5576;}function getAttrs$1(_0x9239ea){let _0x552b45=Object['create'](null);for(let _0xb72a2a=0x0;_0xb72a2a<_0x9239ea['attributes']['length'];_0xb72a2a++){let _0x19a48c=_0x9239ea['attributes'][_0xb72a2a];_0x552b45[_0x19a48c['name']]=_0x19a48c['value'];}return _0x552b45;}class WidgetType{['eq'](_0x23c736){return!0x1;}['updateDOM'](_0x423843,_0xe000db){return!0x1;}['compare'](_0x5c56ce){return this==_0x5c56ce||this['constructor']==_0x5c56ce['constructor']&&this['eq'](_0x5c56ce);}get['estimatedHeight'](){return-0x1;}get['lineBreaks'](){return 0x0;}['ignoreEvent'](_0x1d5109){return!0x0;}['coordsAt'](_0x2fd314,_0x251b85,_0x49dec3){return null;}get['isHidden'](){return!0x1;}get['editable'](){return!0x1;}['destroy'](_0x114408){}}var BlockType=function(_0x4b49ce){return _0x4b49ce[_0x4b49ce['Text']=0x0]='Text',_0x4b49ce[_0x4b49ce['WidgetBefore']=0x1]='WidgetBefore',_0x4b49ce[_0x4b49ce['WidgetAfter']=0x2]='WidgetAfter',_0x4b49ce[_0x4b49ce['WidgetRange']=0x3]='WidgetRange',_0x4b49ce;}(BlockType||(BlockType={}));class Decoration extends RangeValue{constructor(_0x119301,_0x166308,_0x2ed259,_0x158b81){super(),this['startSide']=_0x119301,this['endSide']=_0x166308,this['widget']=_0x2ed259,this['spec']=_0x158b81;}get['heightRelevant'](){return!0x1;}static['mark'](_0x3dbf){return new MarkDecoration(_0x3dbf);}static['widget'](_0x54ad9f){let _0x447fcd=Math['max'](-0x2710,Math['min'](0x2710,_0x54ad9f['side']||0x0)),_0x2de5e8=!!_0x54ad9f['block'];return _0x447fcd+=_0x2de5e8&&!_0x54ad9f['inlineOrder']?_0x447fcd>0x0?0x11e1a300:-0x17d78400:_0x447fcd>0x0?0x5f5e100:-0x5f5e100,new PointDecoration(_0x54ad9f,_0x447fcd,_0x447fcd,_0x2de5e8,_0x54ad9f['widget']||null,!0x1);}static['replace'](_0x5bf77f){let _0x5049f8,_0x2d5446,_0x2d207f=!!_0x5bf77f['block'];if(_0x5bf77f['isBlockGap'])_0x5049f8=-0x1dcd6500,_0x2d5446=0x17d78400;else{let {start:_0x1c7fe4,end:_0x20ea10}=getInclusive(_0x5bf77f,_0x2d207f);_0x5049f8=(_0x1c7fe4?_0x2d207f?-0x11e1a300:-0x1:0x1dcd6500)-0x1,_0x2d5446=0x1+(_0x20ea10?_0x2d207f?0xbebc200:0x1:-0x23c34600);}return new PointDecoration(_0x5bf77f,_0x5049f8,_0x2d5446,_0x2d207f,_0x5bf77f['widget']||null,!0x0);}static['line'](_0x59ac07){return new LineDecoration(_0x59ac07);}static['set'](_0x3a70c8,_0x74480e=!0x1){return RangeSet['of'](_0x3a70c8,_0x74480e);}['hasHeight'](){return!!this['widget']&&this['widget']['estimatedHeight']>-0x1;}}Decoration['none']=RangeSet['empty'];class MarkDecoration extends Decoration{constructor(_0x54a6ce){let {start:_0x4979cf,end:_0x4c5ada}=getInclusive(_0x54a6ce);super(_0x4979cf?-0x1:0x1dcd6500,_0x4c5ada?0x1:-0x23c34600,null,_0x54a6ce),this['tagName']=_0x54a6ce['tagName']||'span',this['class']=_0x54a6ce['class']||'',this['attrs']=_0x54a6ce['attributes']||null;}['eq'](_0x567634){var _0x5244f9,_0x32baf7;return this==_0x567634||_0x567634 instanceof MarkDecoration&&this['tagName']==_0x567634['tagName']&&(this['class']||(null===(_0x5244f9=this['attrs'])||void 0x0===_0x5244f9?void 0x0:_0x5244f9['class']))==(_0x567634['class']||(null===(_0x32baf7=_0x567634['attrs'])||void 0x0===_0x32baf7?void 0x0:_0x32baf7['class']))&&attrsEq(this['attrs'],_0x567634['attrs'],'class');}['range'](_0xc5f48b,_0x27c0c0=_0xc5f48b){if(_0xc5f48b>=_0x27c0c0)throw new RangeError('Mark\x20decorations\x20may\x20not\x20be\x20empty');return super['range'](_0xc5f48b,_0x27c0c0);}}MarkDecoration['prototype']['point']=!0x1;class LineDecoration extends Decoration{constructor(_0x4a13f2){super(-0xbebc200,-0xbebc200,null,_0x4a13f2);}['eq'](_0x58ff52){return _0x58ff52 instanceof LineDecoration&&this['spec']['class']==_0x58ff52['spec']['class']&&attrsEq(this['spec']['attributes'],_0x58ff52['spec']['attributes']);}['range'](_0x17b52e,_0x2af635=_0x17b52e){if(_0x2af635!=_0x17b52e)throw new RangeError('Line\x20decoration\x20ranges\x20must\x20be\x20zero-length');return super['range'](_0x17b52e,_0x2af635);}}LineDecoration['prototype']['mapMode']=MapMode['TrackBefore'],LineDecoration['prototype']['point']=!0x0;class PointDecoration extends Decoration{constructor(_0x14be77,_0x1d71bb,_0x49d6c5,_0x146a30,_0x493634,_0x148a91){super(_0x1d71bb,_0x49d6c5,_0x493634,_0x14be77),this['block']=_0x146a30,this['isReplace']=_0x148a91,this['mapMode']=_0x146a30?_0x1d71bb<=0x0?MapMode['TrackBefore']:MapMode['TrackAfter']:MapMode['TrackDel'];}get['type'](){return this['startSide']!=this['endSide']?BlockType['WidgetRange']:this['startSide']<=0x0?BlockType['WidgetBefore']:BlockType['WidgetAfter'];}get['heightRelevant'](){return this['block']||!!this['widget']&&(this['widget']['estimatedHeight']>=0x5||this['widget']['lineBreaks']>0x0);}['eq'](_0x569b7b){return _0x569b7b instanceof PointDecoration&&widgetsEq(this['widget'],_0x569b7b['widget'])&&this['block']==_0x569b7b['block']&&this['startSide']==_0x569b7b['startSide']&&this['endSide']==_0x569b7b['endSide'];}['range'](_0x285bbf,_0x5b5be0=_0x285bbf){if(this['isReplace']&&(_0x285bbf>_0x5b5be0||_0x285bbf==_0x5b5be0&&this['startSide']>0x0&&this['endSide']<=0x0))throw new RangeError('Invalid\x20range\x20for\x20replacement\x20decoration');if(!this['isReplace']&&_0x5b5be0!=_0x285bbf)throw new RangeError('Widget\x20decorations\x20can\x20only\x20have\x20zero-length\x20ranges');return super['range'](_0x285bbf,_0x5b5be0);}}function getInclusive(_0x387fd5,_0x1a32fc=!0x1){let {inclusiveStart:_0x6c2a23,inclusiveEnd:_0x5a342e}=_0x387fd5;return null==_0x6c2a23&&(_0x6c2a23=_0x387fd5['inclusive']),null==_0x5a342e&&(_0x5a342e=_0x387fd5['inclusive']),{'start':null!=_0x6c2a23?_0x6c2a23:_0x1a32fc,'end':null!=_0x5a342e?_0x5a342e:_0x1a32fc};}function widgetsEq(_0x3e87d3,_0xc32790){return _0x3e87d3==_0xc32790||!!(_0x3e87d3&&_0xc32790&&_0x3e87d3['compare'](_0xc32790));}function addRange(_0x33e654,_0x5482bb,_0xfadce6,_0x3dff2f=0x0){let _0x28a3ca=_0xfadce6['length']-0x1;_0x28a3ca>=0x0&&_0xfadce6[_0x28a3ca]+_0x3dff2f>=_0x33e654?_0xfadce6[_0x28a3ca]=Math['max'](_0xfadce6[_0x28a3ca],_0x5482bb):_0xfadce6['push'](_0x33e654,_0x5482bb);}PointDecoration['prototype']['point']=!0x0;class LineView extends ContentView{constructor(){super(...arguments),this['children']=[],this['length']=0x0,this['prevAttrs']=void 0x0,this['attrs']=null,this['breakAfter']=0x0;}['merge'](_0x445c4a,_0x1a53eb,_0x21e331,_0x4c7ced,_0x280860,_0x185278){if(_0x21e331){if(!(_0x21e331 instanceof LineView))return!0x1;this['dom']||_0x21e331['transferDOM'](this);}return _0x4c7ced&&this['setDeco'](_0x21e331?_0x21e331['attrs']:null),mergeChildrenInto(this,_0x445c4a,_0x1a53eb,_0x21e331?_0x21e331['children']['slice']():[],_0x280860,_0x185278),!0x0;}['split'](_0x377925){let _0x230cb0=new LineView();if(_0x230cb0['breakAfter']=this['breakAfter'],0x0==this['length'])return _0x230cb0;let {i:_0x5829f6,off:_0x273acb}=this['childPos'](_0x377925);_0x273acb&&(_0x230cb0['append'](this['children'][_0x5829f6]['split'](_0x273acb),0x0),this['children'][_0x5829f6]['merge'](_0x273acb,this['children'][_0x5829f6]['length'],null,!0x1,0x0,0x0),_0x5829f6++);for(let _0x25604b=_0x5829f6;_0x25604b<this['children']['length'];_0x25604b++)_0x230cb0['append'](this['children'][_0x25604b],0x0);for(;_0x5829f6>0x0&&0x0==this['children'][_0x5829f6-0x1]['length'];)this['children'][--_0x5829f6]['destroy']();return this['children']['length']=_0x5829f6,this['markDirty'](),this['length']=_0x377925,_0x230cb0;}['transferDOM'](_0x500386){this['dom']&&(this['markDirty'](),_0x500386['setDOM'](this['dom']),_0x500386['prevAttrs']=void 0x0===this['prevAttrs']?this['attrs']:this['prevAttrs'],this['prevAttrs']=void 0x0,this['dom']=null);}['setDeco'](_0x32e287){attrsEq(this['attrs'],_0x32e287)||(this['dom']&&(this['prevAttrs']=this['attrs'],this['markDirty']()),this['attrs']=_0x32e287);}['append'](_0x36cbd4,_0x3a957c){joinInlineInto(this,_0x36cbd4,_0x3a957c);}['addLineDeco'](_0x47de41){let _0x1f9f63=_0x47de41['spec']['attributes'],_0x41da0e=_0x47de41['spec']['class'];_0x1f9f63&&(this['attrs']=combineAttrs(_0x1f9f63,this['attrs']||{})),_0x41da0e&&(this['attrs']=combineAttrs({'class':_0x41da0e},this['attrs']||{}));}['domAtPos'](_0x32907b){return inlineDOMAtPos(this,_0x32907b);}['reuseDOM'](_0x5ef4fc){'DIV'==_0x5ef4fc['nodeName']&&(this['setDOM'](_0x5ef4fc),this['flags']|=0x6);}['sync'](_0x5ef0c8,_0x375b36){var _0x36ac62;this['dom']?0x4&this['flags']&&(clearAttributes(this['dom']),this['dom']['className']='cm-line',this['prevAttrs']=this['attrs']?null:void 0x0):(this['setDOM'](document['createElement']('div')),this['dom']['className']='cm-line',this['prevAttrs']=this['attrs']?null:void 0x0),void 0x0!==this['prevAttrs']&&(updateAttrs(this['dom'],this['prevAttrs'],this['attrs']),this['dom']['classList']['add']('cm-line'),this['prevAttrs']=void 0x0),super['sync'](_0x5ef0c8,_0x375b36);let _0x1caf5a=this['dom']['lastChild'];for(;_0x1caf5a&&ContentView['get'](_0x1caf5a)instanceof MarkView;)_0x1caf5a=_0x1caf5a['lastChild'];if(!(_0x1caf5a&&this['length']&&('BR'==_0x1caf5a['nodeName']||0x0!=(null===(_0x36ac62=ContentView['get'](_0x1caf5a))||void 0x0===_0x36ac62?void 0x0:_0x36ac62['isEditable'])||browser['ios']&&this['children']['some'](_0x41a603=>_0x41a603 instanceof TextView)))){let _0x6d55a4=document['createElement']('BR');_0x6d55a4['cmIgnore']=!0x0,this['dom']['appendChild'](_0x6d55a4);}}['measureTextSize'](){if(0x0==this['children']['length']||this['length']>0x14)return null;let _0x566a42,_0x3509a2=0x0;for(let _0x4d7c29 of this['children']){if(!(_0x4d7c29 instanceof TextView)||/[^ -~]/['test'](_0x4d7c29['text']))return null;let _0x5eda04=clientRectsFor(_0x4d7c29['dom']);if(0x1!=_0x5eda04['length'])return null;_0x3509a2+=_0x5eda04[0x0]['width'],_0x566a42=_0x5eda04[0x0]['height'];}return _0x3509a2?{'lineHeight':this['dom']['getBoundingClientRect']()['height'],'charWidth':_0x3509a2/this['length'],'textHeight':_0x566a42}:null;}['coordsAt'](_0x505f7e,_0x25c6eb){let _0x1f0cd4=coordsInChildren(this,_0x505f7e,_0x25c6eb);if(!this['children']['length']&&_0x1f0cd4&&this['parent']){let {heightOracle:_0x2e8f09}=this['parent']['view']['viewState'],_0x9b6969=_0x1f0cd4['bottom']-_0x1f0cd4['top'];if(Math['abs'](_0x9b6969-_0x2e8f09['lineHeight'])<0x2&&_0x2e8f09['textHeight']<_0x9b6969){let _0x25f008=(_0x9b6969-_0x2e8f09['textHeight'])/0x2;return{'top':_0x1f0cd4['top']+_0x25f008,'bottom':_0x1f0cd4['bottom']-_0x25f008,'left':_0x1f0cd4['left'],'right':_0x1f0cd4['left']};}}return _0x1f0cd4;}['become'](_0x169682){return _0x169682 instanceof LineView&&0x0==this['children']['length']&&0x0==_0x169682['children']['length']&&attrsEq(this['attrs'],_0x169682['attrs'])&&this['breakAfter']==_0x169682['breakAfter'];}['covers'](){return!0x0;}static['find'](_0x311dcd,_0x33e91b){for(let _0x127142=0x0,_0xd9752c=0x0;_0x127142<_0x311dcd['children']['length'];_0x127142++){let _0x142018=_0x311dcd['children'][_0x127142],_0x590317=_0xd9752c+_0x142018['length'];if(_0x590317>=_0x33e91b){if(_0x142018 instanceof LineView)return _0x142018;if(_0x590317>_0x33e91b)break;}_0xd9752c=_0x590317+_0x142018['breakAfter'];}return null;}}class BlockWidgetView extends ContentView{constructor(_0x1b7be1,_0x347000,_0x3a2cb2){super(),this['widget']=_0x1b7be1,this['length']=_0x347000,this['deco']=_0x3a2cb2,this['breakAfter']=0x0,this['prevWidget']=null;}['merge'](_0xfed7b7,_0x35fea4,_0x25c8a4,_0x13dbb1,_0x3828fa,_0x4029e4){return!(_0x25c8a4&&(!(_0x25c8a4 instanceof BlockWidgetView&&this['widget']['compare'](_0x25c8a4['widget']))||_0xfed7b7>0x0&&_0x3828fa<=0x0||_0x35fea4<this['length']&&_0x4029e4<=0x0))&&(this['length']=_0xfed7b7+(_0x25c8a4?_0x25c8a4['length']:0x0)+(this['length']-_0x35fea4),!0x0);}['domAtPos'](_0x55c7af){return 0x0==_0x55c7af?DOMPos['before'](this['dom']):DOMPos['after'](this['dom'],_0x55c7af==this['length']);}['split'](_0x20c3e7){let _0x2b97a6=this['length']-_0x20c3e7;this['length']=_0x20c3e7;let _0x1119ff=new BlockWidgetView(this['widget'],_0x2b97a6,this['deco']);return _0x1119ff['breakAfter']=this['breakAfter'],_0x1119ff;}get['children'](){return noChildren;}['sync'](_0x58e625){this['dom']&&this['widget']['updateDOM'](this['dom'],_0x58e625)||(this['dom']&&this['prevWidget']&&this['prevWidget']['destroy'](this['dom']),this['prevWidget']=null,this['setDOM'](this['widget']['toDOM'](_0x58e625)),this['widget']['editable']||(this['dom']['contentEditable']='false'));}get['overrideDOMText'](){return this['parent']?this['parent']['view']['state']['doc']['slice'](this['posAtStart'],this['posAtEnd']):Text['empty'];}['domBoundsAround'](){return null;}['become'](_0x497307){return _0x497307 instanceof BlockWidgetView&&_0x497307['widget']['constructor']==this['widget']['constructor']&&(_0x497307['widget']['compare'](this['widget'])||this['markDirty'](!0x0),this['dom']&&!this['prevWidget']&&(this['prevWidget']=this['widget']),this['widget']=_0x497307['widget'],this['length']=_0x497307['length'],this['deco']=_0x497307['deco'],this['breakAfter']=_0x497307['breakAfter'],!0x0);}['ignoreMutation'](){return!0x0;}['ignoreEvent'](_0x437b73){return this['widget']['ignoreEvent'](_0x437b73);}get['isEditable'](){return!0x1;}get['isWidget'](){return!0x0;}['coordsAt'](_0x1ce211,_0x8674f3){let _0x4c9dc4=this['widget']['coordsAt'](this['dom'],_0x1ce211,_0x8674f3);return _0x4c9dc4||(this['widget']instanceof BlockGapWidget?null:flattenRect(this['dom']['getBoundingClientRect'](),this['length']?0x0==_0x1ce211:_0x8674f3<=0x0));}['destroy'](){super['destroy'](),this['dom']&&this['widget']['destroy'](this['dom']);}['covers'](_0x44915c){let {startSide:_0x39b822,endSide:_0x3f5a86}=this['deco'];return _0x39b822!=_0x3f5a86&&(_0x44915c<0x0?_0x39b822<0x0:_0x3f5a86>0x0);}}class BlockGapWidget extends WidgetType{constructor(_0xbb8ee){super(),this['height']=_0xbb8ee;}['toDOM'](){let _0x42ce22=document['createElement']('div');return _0x42ce22['className']='cm-gap',this['updateDOM'](_0x42ce22),_0x42ce22;}['eq'](_0x371e56){return _0x371e56['height']==this['height'];}['updateDOM'](_0x28400a){return _0x28400a['style']['height']=this['height']+'px',!0x0;}get['editable'](){return!0x0;}get['estimatedHeight'](){return this['height'];}['ignoreEvent'](){return!0x1;}}class ContentBuilder{constructor(_0x3feaa8,_0x5926e8,_0x481455,_0x568187){this['doc']=_0x3feaa8,this['pos']=_0x5926e8,this['end']=_0x481455,this['disallowBlockEffectsFor']=_0x568187,this['content']=[],this['curLine']=null,this['breakAtStart']=0x0,this['pendingBuffer']=0x0,this['bufferMarks']=[],this['atCursorPos']=!0x0,this['openStart']=-0x1,this['openEnd']=-0x1,this['text']='',this['textOff']=0x0,this['cursor']=_0x3feaa8['iter'](),this['skip']=_0x5926e8;}['posCovered'](){if(0x0==this['content']['length'])return!this['breakAtStart']&&this['doc']['lineAt'](this['pos'])['from']!=this['pos'];let _0x1e27d6=this['content'][this['content']['length']-0x1];return!(_0x1e27d6['breakAfter']||_0x1e27d6 instanceof BlockWidgetView&&_0x1e27d6['deco']['endSide']<0x0);}['getLine'](){return this['curLine']||(this['content']['push'](this['curLine']=new LineView()),this['atCursorPos']=!0x0),this['curLine'];}['flushBuffer'](_0x5b1454=this['bufferMarks']){this['pendingBuffer']&&(this['curLine']['append'](wrapMarks(new WidgetBufferView(-0x1),_0x5b1454),_0x5b1454['length']),this['pendingBuffer']=0x0);}['addBlockWidget'](_0x300df7){this['flushBuffer'](),this['curLine']=null,this['content']['push'](_0x300df7);}['finish'](_0x2e6e17){this['pendingBuffer']&&_0x2e6e17<=this['bufferMarks']['length']?this['flushBuffer']():this['pendingBuffer']=0x0,this['posCovered']()||_0x2e6e17&&this['content']['length']&&this['content'][this['content']['length']-0x1]instanceof BlockWidgetView||this['getLine']();}['buildText'](_0x50002f,_0x274348,_0x3f2d24){for(;_0x50002f>0x0;){if(this['textOff']==this['text']['length']){let {value:_0x5979f7,lineBreak:_0x1746a8,done:_0x114963}=this['cursor']['next'](this['skip']);if(this['skip']=0x0,_0x114963)throw new Error('Ran\x20out\x20of\x20text\x20content\x20when\x20drawing\x20inline\x20views');if(_0x1746a8){this['posCovered']()||this['getLine'](),this['content']['length']?this['content'][this['content']['length']-0x1]['breakAfter']=0x1:this['breakAtStart']=0x1,this['flushBuffer'](),this['curLine']=null,this['atCursorPos']=!0x0,_0x50002f--;continue;}this['text']=_0x5979f7,this['textOff']=0x0;}let _0x447f22=Math['min'](this['text']['length']-this['textOff'],_0x50002f,0x200);this['flushBuffer'](_0x274348['slice'](_0x274348['length']-_0x3f2d24)),this['getLine']()['append'](wrapMarks(new TextView(this['text']['slice'](this['textOff'],this['textOff']+_0x447f22)),_0x274348),_0x3f2d24),this['atCursorPos']=!0x0,this['textOff']+=_0x447f22,_0x50002f-=_0x447f22,_0x3f2d24=0x0;}}['span'](_0x489866,_0x2728d9,_0x583bce,_0x5b3fa9){this['buildText'](_0x2728d9-_0x489866,_0x583bce,_0x5b3fa9),this['pos']=_0x2728d9,this['openStart']<0x0&&(this['openStart']=_0x5b3fa9);}['point'](_0xcfd838,_0x24437e,_0x9874b1,_0x414804,_0x3d5e37,_0x12c7c6){if(this['disallowBlockEffectsFor'][_0x12c7c6]&&_0x9874b1 instanceof PointDecoration){if(_0x9874b1['block'])throw new RangeError('Block\x20decorations\x20may\x20not\x20be\x20specified\x20via\x20plugins');if(_0x24437e>this['doc']['lineAt'](this['pos'])['to'])throw new RangeError('Decorations\x20that\x20replace\x20line\x20breaks\x20may\x20not\x20be\x20specified\x20via\x20plugins');}let _0x55cdb5=_0x24437e-_0xcfd838;if(_0x9874b1 instanceof PointDecoration){if(_0x9874b1['block'])_0x9874b1['startSide']>0x0&&!this['posCovered']()&&this['getLine'](),this['addBlockWidget'](new BlockWidgetView(_0x9874b1['widget']||NullWidget['block'],_0x55cdb5,_0x9874b1));else{let _0x5713d1=WidgetView['create'](_0x9874b1['widget']||NullWidget['inline'],_0x55cdb5,_0x55cdb5?0x0:_0x9874b1['startSide']),_0x582897=this['atCursorPos']&&!_0x5713d1['isEditable']&&_0x3d5e37<=_0x414804['length']&&(_0xcfd838<_0x24437e||_0x9874b1['startSide']>0x0),_0xe0fd90=!_0x5713d1['isEditable']&&(_0xcfd838<_0x24437e||_0x3d5e37>_0x414804['length']||_0x9874b1['startSide']<=0x0),_0x48afc6=this['getLine']();0x2!=this['pendingBuffer']||_0x582897||_0x5713d1['isEditable']||(this['pendingBuffer']=0x0),this['flushBuffer'](_0x414804),_0x582897&&(_0x48afc6['append'](wrapMarks(new WidgetBufferView(0x1),_0x414804),_0x3d5e37),_0x3d5e37=_0x414804['length']+Math['max'](0x0,_0x3d5e37-_0x414804['length'])),_0x48afc6['append'](wrapMarks(_0x5713d1,_0x414804),_0x3d5e37),this['atCursorPos']=_0xe0fd90,this['pendingBuffer']=_0xe0fd90?_0xcfd838<_0x24437e||_0x3d5e37>_0x414804['length']?0x1:0x2:0x0,this['pendingBuffer']&&(this['bufferMarks']=_0x414804['slice']());}}else this['doc']['lineAt'](this['pos'])['from']==this['pos']&&this['getLine']()['addLineDeco'](_0x9874b1);_0x55cdb5&&(this['textOff']+_0x55cdb5<=this['text']['length']?this['textOff']+=_0x55cdb5:(this['skip']+=_0x55cdb5-(this['text']['length']-this['textOff']),this['text']='',this['textOff']=0x0),this['pos']=_0x24437e),this['openStart']<0x0&&(this['openStart']=_0x3d5e37);}static['build'](_0x3f41ca,_0x299e15,_0x35f742,_0x2768ae,_0x331664){let _0x191ae4=new ContentBuilder(_0x3f41ca,_0x299e15,_0x35f742,_0x331664);return _0x191ae4['openEnd']=RangeSet['spans'](_0x2768ae,_0x299e15,_0x35f742,_0x191ae4),_0x191ae4['openStart']<0x0&&(_0x191ae4['openStart']=_0x191ae4['openEnd']),_0x191ae4['finish'](_0x191ae4['openEnd']),_0x191ae4;}}function wrapMarks(_0x184796,_0x3869a8){for(let _0x2bbbeb of _0x3869a8)_0x184796=new MarkView(_0x2bbbeb,[_0x184796],_0x184796['length']);return _0x184796;}class NullWidget extends WidgetType{constructor(_0x18bae2){super(),this['tag']=_0x18bae2;}['eq'](_0x498ee4){return _0x498ee4['tag']==this['tag'];}['toDOM'](){return document['createElement'](this['tag']);}['updateDOM'](_0x5b40f4){return _0x5b40f4['nodeName']['toLowerCase']()==this['tag'];}get['isHidden'](){return!0x0;}}NullWidget['inline']=new NullWidget('span'),NullWidget['block']=new NullWidget('div');var Direction=function(_0x21d758){return _0x21d758[_0x21d758['LTR']=0x0]='LTR',_0x21d758[_0x21d758['RTL']=0x1]='RTL',_0x21d758;}(Direction||(Direction={}));const LTR=Direction['LTR'],RTL=Direction['RTL'];function dec(_0x1e2c24){let _0x3189c5=[];for(let _0x4071be=0x0;_0x4071be<_0x1e2c24['length'];_0x4071be++)_0x3189c5['push'](0x1<<+_0x1e2c24[_0x4071be]);return _0x3189c5;}const LowTypes=dec('88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008'),ArabicTypes=dec('4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333'),Brackets=Object['create'](null),BracketStack=[];for(let e of['()','[]','{}']){let i=e['charCodeAt'](0x0),n=e['charCodeAt'](0x1);Brackets[i]=n,Brackets[n]=-i;}function charType(_0x16296e){return _0x16296e<=0xf7?LowTypes[_0x16296e]:0x590<=_0x16296e&&_0x16296e<=0x5f4?0x2:0x600<=_0x16296e&&_0x16296e<=0x6f9?ArabicTypes[_0x16296e-0x600]:0x6ee<=_0x16296e&&_0x16296e<=0x8ac?0x4:0x2000<=_0x16296e&&_0x16296e<=0x200c?0x100:0xfb50<=_0x16296e&&_0x16296e<=0xfdff?0x4:0x1;}const BidiRE=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class BidiSpan{get['dir'](){return this['level']%0x2?RTL:LTR;}constructor(_0x479f64,_0x38caed,_0x887f5a){this['from']=_0x479f64,this['to']=_0x38caed,this['level']=_0x887f5a;}['side'](_0xdd5964,_0xfa725b){return this['dir']==_0xfa725b==_0xdd5964?this['to']:this['from'];}['forward'](_0x5854ad,_0x978057){return _0x5854ad==(this['dir']==_0x978057);}static['find'](_0x4ae223,_0x464dac,_0x514efe,_0x4720d2){let _0x20c11e=-0x1;for(let _0x2d31ee=0x0;_0x2d31ee<_0x4ae223['length'];_0x2d31ee++){let _0x181233=_0x4ae223[_0x2d31ee];if(_0x181233['from']<=_0x464dac&&_0x181233['to']>=_0x464dac){if(_0x181233['level']==_0x514efe)return _0x2d31ee;(_0x20c11e<0x0||(0x0!=_0x4720d2?_0x4720d2<0x0?_0x181233['from']<_0x464dac:_0x181233['to']>_0x464dac:_0x4ae223[_0x20c11e]['level']>_0x181233['level']))&&(_0x20c11e=_0x2d31ee);}}if(_0x20c11e<0x0)throw new RangeError('Index\x20out\x20of\x20range');return _0x20c11e;}}function isolatesEq(_0x24ce5b,_0x54d87c){if(_0x24ce5b['length']!=_0x54d87c['length'])return!0x1;for(let _0x418c51=0x0;_0x418c51<_0x24ce5b['length'];_0x418c51++){let _0xa4203=_0x24ce5b[_0x418c51],_0x2b5584=_0x54d87c[_0x418c51];if(_0xa4203['from']!=_0x2b5584['from']||_0xa4203['to']!=_0x2b5584['to']||_0xa4203['direction']!=_0x2b5584['direction']||!isolatesEq(_0xa4203['inner'],_0x2b5584['inner']))return!0x1;}return!0x0;}const types=[];function computeCharTypes(_0x3f7bac,_0x1677c1,_0x242321,_0x566fbc,_0x597d11){for(let _0x42f8bd=0x0;_0x42f8bd<=_0x566fbc['length'];_0x42f8bd++){let _0x49afba=_0x42f8bd?_0x566fbc[_0x42f8bd-0x1]['to']:_0x1677c1,_0x47edcd=_0x42f8bd<_0x566fbc['length']?_0x566fbc[_0x42f8bd]['from']:_0x242321,_0x2d9a04=_0x42f8bd?0x100:_0x597d11;for(let _0x396e11=_0x49afba,_0x5f213d=_0x2d9a04,_0x4f395a=_0x2d9a04;_0x396e11<_0x47edcd;_0x396e11++){let _0x24352a=charType(_0x3f7bac['charCodeAt'](_0x396e11));0x200==_0x24352a?_0x24352a=_0x5f213d:0x8==_0x24352a&&0x4==_0x4f395a&&(_0x24352a=0x10),types[_0x396e11]=0x4==_0x24352a?0x2:_0x24352a,0x7&_0x24352a&&(_0x4f395a=_0x24352a),_0x5f213d=_0x24352a;}for(let _0x3e2397=_0x49afba,_0xa1fea1=_0x2d9a04,_0xd9dd6c=_0x2d9a04;_0x3e2397<_0x47edcd;_0x3e2397++){let _0xa11ce7=types[_0x3e2397];if(0x80==_0xa11ce7)_0x3e2397<_0x47edcd-0x1&&_0xa1fea1==types[_0x3e2397+0x1]&&0x18&_0xa1fea1?_0xa11ce7=types[_0x3e2397]=_0xa1fea1:types[_0x3e2397]=0x100;else{if(0x40==_0xa11ce7){let _0x3c6219=_0x3e2397+0x1;for(;_0x3c6219<_0x47edcd&&0x40==types[_0x3c6219];)_0x3c6219++;let _0xccbd27=_0x3e2397&&0x8==_0xa1fea1||_0x3c6219<_0x242321&&0x8==types[_0x3c6219]?0x1==_0xd9dd6c?0x1:0x8:0x100;for(let _0x14163f=_0x3e2397;_0x14163f<_0x3c6219;_0x14163f++)types[_0x14163f]=_0xccbd27;_0x3e2397=_0x3c6219-0x1;}else 0x8==_0xa11ce7&&0x1==_0xd9dd6c&&(types[_0x3e2397]=0x1);}_0xa1fea1=_0xa11ce7,0x7&_0xa11ce7&&(_0xd9dd6c=_0xa11ce7);}}}function processBracketPairs(_0x235ad1,_0xf369ce,_0x4b632f,_0x39f168,_0x2739ad){let _0x315958=0x1==_0x2739ad?0x2:0x1;for(let _0x195395=0x0,_0xa7d2c=0x0,_0x13d52b=0x0;_0x195395<=_0x39f168['length'];_0x195395++){let _0x3eff2d=_0x195395?_0x39f168[_0x195395-0x1]['to']:_0xf369ce,_0xb61d7=_0x195395<_0x39f168['length']?_0x39f168[_0x195395]['from']:_0x4b632f;for(let _0x18842f,_0x26172d,_0x2d9a79,_0x112f80=_0x3eff2d;_0x112f80<_0xb61d7;_0x112f80++)if(_0x26172d=Brackets[_0x18842f=_0x235ad1['charCodeAt'](_0x112f80)]){if(_0x26172d<0x0){for(let _0x5f8113=_0xa7d2c-0x3;_0x5f8113>=0x0;_0x5f8113-=0x3)if(BracketStack[_0x5f8113+0x1]==-_0x26172d){let _0x418997=BracketStack[_0x5f8113+0x2],_0x3d3b15=0x2&_0x418997?_0x2739ad:0x4&_0x418997?0x1&_0x418997?_0x315958:_0x2739ad:0x0;_0x3d3b15&&(types[_0x112f80]=types[BracketStack[_0x5f8113]]=_0x3d3b15),_0xa7d2c=_0x5f8113;break;}}else{if(0xbd==BracketStack['length'])break;BracketStack[_0xa7d2c++]=_0x112f80,BracketStack[_0xa7d2c++]=_0x18842f,BracketStack[_0xa7d2c++]=_0x13d52b;}}else{if(0x2==(_0x2d9a79=types[_0x112f80])||0x1==_0x2d9a79){let _0x4ce460=_0x2d9a79==_0x2739ad;_0x13d52b=_0x4ce460?0x0:0x1;for(let _0x3052c0=_0xa7d2c-0x3;_0x3052c0>=0x0;_0x3052c0-=0x3){let _0x211376=BracketStack[_0x3052c0+0x2];if(0x2&_0x211376)break;if(_0x4ce460)BracketStack[_0x3052c0+0x2]|=0x2;else{if(0x4&_0x211376)break;BracketStack[_0x3052c0+0x2]|=0x4;}}}}}}function processNeutrals(_0x3cb231,_0x207d4b,_0x5c14aa,_0x33a3da){for(let _0x2438be=0x0,_0x56f08b=_0x33a3da;_0x2438be<=_0x5c14aa['length'];_0x2438be++){let _0x548810=_0x2438be?_0x5c14aa[_0x2438be-0x1]['to']:_0x3cb231,_0x1316df=_0x2438be<_0x5c14aa['length']?_0x5c14aa[_0x2438be]['from']:_0x207d4b;for(let _0x5cebf8=_0x548810;_0x5cebf8<_0x1316df;){let _0x219843=types[_0x5cebf8];if(0x100==_0x219843){let _0x3c3189=_0x5cebf8+0x1;for(;;)if(_0x3c3189==_0x1316df){if(_0x2438be==_0x5c14aa['length'])break;_0x3c3189=_0x5c14aa[_0x2438be++]['to'],_0x1316df=_0x2438be<_0x5c14aa['length']?_0x5c14aa[_0x2438be]['from']:_0x207d4b;}else{if(0x100!=types[_0x3c3189])break;_0x3c3189++;}let _0x48231d=0x1==_0x56f08b,_0x30975d=_0x48231d==(0x1==(_0x3c3189<_0x207d4b?types[_0x3c3189]:_0x33a3da))?_0x48231d?0x1:0x2:_0x33a3da;for(let _0x4bd2f0=_0x3c3189,_0x4e326d=_0x2438be,_0x19920e=_0x4e326d?_0x5c14aa[_0x4e326d-0x1]['to']:_0x3cb231;_0x4bd2f0>_0x5cebf8;)_0x4bd2f0==_0x19920e&&(_0x4bd2f0=_0x5c14aa[--_0x4e326d]['from'],_0x19920e=_0x4e326d?_0x5c14aa[_0x4e326d-0x1]['to']:_0x3cb231),types[--_0x4bd2f0]=_0x30975d;_0x5cebf8=_0x3c3189;}else _0x56f08b=_0x219843,_0x5cebf8++;}}}function emitSpans(_0x342edd,_0x1fae40,_0x209a07,_0x331ba3,_0x2ee382,_0x47f0c7,_0x3e34fa){let _0x3102ee=_0x331ba3%0x2?0x2:0x1;if(_0x331ba3%0x2==_0x2ee382%0x2)for(let _0x246c0d=_0x1fae40,_0x52dab2=0x0;_0x246c0d<_0x209a07;){let _0x3be76d=!0x0,_0x5ce8f1=!0x1;if(_0x52dab2==_0x47f0c7['length']||_0x246c0d<_0x47f0c7[_0x52dab2]['from']){let _0x349341=types[_0x246c0d];_0x349341!=_0x3102ee&&(_0x3be76d=!0x1,_0x5ce8f1=0x10==_0x349341);}let _0x20d581=_0x3be76d||0x1!=_0x3102ee?null:[],_0x18752f=_0x3be76d?_0x331ba3:_0x331ba3+0x1,_0x39953b=_0x246c0d;t:for(;;)if(_0x52dab2<_0x47f0c7['length']&&_0x39953b==_0x47f0c7[_0x52dab2]['from']){if(_0x5ce8f1)break t;let _0x166476=_0x47f0c7[_0x52dab2];if(!_0x3be76d)for(let _0x5d02b6=_0x166476['to'],_0x377d7d=_0x52dab2+0x1;;){if(_0x5d02b6==_0x209a07)break t;if(!(_0x377d7d<_0x47f0c7['length']&&_0x47f0c7[_0x377d7d]['from']==_0x5d02b6)){if(types[_0x5d02b6]==_0x3102ee)break t;break;}_0x5d02b6=_0x47f0c7[_0x377d7d++]['to'];}if(_0x52dab2++,_0x20d581)_0x20d581['push'](_0x166476);else _0x166476['from']>_0x246c0d&&_0x3e34fa['push'](new BidiSpan(_0x246c0d,_0x166476['from'],_0x18752f)),computeSectionOrder(_0x342edd,_0x166476['direction']==LTR!=!(_0x18752f%0x2)?_0x331ba3+0x1:_0x331ba3,_0x2ee382,_0x166476['inner'],_0x166476['from'],_0x166476['to'],_0x3e34fa),_0x246c0d=_0x166476['to'];_0x39953b=_0x166476['to'];}else{if(_0x39953b==_0x209a07||(_0x3be76d?types[_0x39953b]!=_0x3102ee:types[_0x39953b]==_0x3102ee))break;_0x39953b++;}_0x20d581?emitSpans(_0x342edd,_0x246c0d,_0x39953b,_0x331ba3+0x1,_0x2ee382,_0x20d581,_0x3e34fa):_0x246c0d<_0x39953b&&_0x3e34fa['push'](new BidiSpan(_0x246c0d,_0x39953b,_0x18752f)),_0x246c0d=_0x39953b;}else for(let _0x3dec79=_0x209a07,_0x11a5ce=_0x47f0c7['length'];_0x3dec79>_0x1fae40;){let _0x2849cf=!0x0,_0x488b65=!0x1;if(!_0x11a5ce||_0x3dec79>_0x47f0c7[_0x11a5ce-0x1]['to']){let _0x1924ef=types[_0x3dec79-0x1];_0x1924ef!=_0x3102ee&&(_0x2849cf=!0x1,_0x488b65=0x10==_0x1924ef);}let _0x3f4598=_0x2849cf||0x1!=_0x3102ee?null:[],_0x13e01f=_0x2849cf?_0x331ba3:_0x331ba3+0x1,_0x3e5b8f=_0x3dec79;t:for(;;)if(_0x11a5ce&&_0x3e5b8f==_0x47f0c7[_0x11a5ce-0x1]['to']){if(_0x488b65)break t;let _0x4c7a19=_0x47f0c7[--_0x11a5ce];if(!_0x2849cf)for(let _0x12b814=_0x4c7a19['from'],_0x53acd1=_0x11a5ce;;){if(_0x12b814==_0x1fae40)break t;if(!_0x53acd1||_0x47f0c7[_0x53acd1-0x1]['to']!=_0x12b814){if(types[_0x12b814-0x1]==_0x3102ee)break t;break;}_0x12b814=_0x47f0c7[--_0x53acd1]['from'];}if(_0x3f4598)_0x3f4598['push'](_0x4c7a19);else _0x4c7a19['to']<_0x3dec79&&_0x3e34fa['push'](new BidiSpan(_0x4c7a19['to'],_0x3dec79,_0x13e01f)),computeSectionOrder(_0x342edd,_0x4c7a19['direction']==LTR!=!(_0x13e01f%0x2)?_0x331ba3+0x1:_0x331ba3,_0x2ee382,_0x4c7a19['inner'],_0x4c7a19['from'],_0x4c7a19['to'],_0x3e34fa),_0x3dec79=_0x4c7a19['from'];_0x3e5b8f=_0x4c7a19['from'];}else{if(_0x3e5b8f==_0x1fae40||(_0x2849cf?types[_0x3e5b8f-0x1]!=_0x3102ee:types[_0x3e5b8f-0x1]==_0x3102ee))break;_0x3e5b8f--;}_0x3f4598?emitSpans(_0x342edd,_0x3e5b8f,_0x3dec79,_0x331ba3+0x1,_0x2ee382,_0x3f4598,_0x3e34fa):_0x3e5b8f<_0x3dec79&&_0x3e34fa['push'](new BidiSpan(_0x3e5b8f,_0x3dec79,_0x13e01f)),_0x3dec79=_0x3e5b8f;}}function computeSectionOrder(_0x47fa59,_0x4abe0e,_0x4acfa5,_0x3fef31,_0x14cbe3,_0x349ad2,_0x4e259b){let _0x173281=_0x4abe0e%0x2?0x2:0x1;computeCharTypes(_0x47fa59,_0x14cbe3,_0x349ad2,_0x3fef31,_0x173281),processBracketPairs(_0x47fa59,_0x14cbe3,_0x349ad2,_0x3fef31,_0x173281),processNeutrals(_0x14cbe3,_0x349ad2,_0x3fef31,_0x173281),emitSpans(_0x47fa59,_0x14cbe3,_0x349ad2,_0x4abe0e,_0x4acfa5,_0x3fef31,_0x4e259b);}function computeOrder(_0x28e7bd,_0x4e705f,_0x2e488a){if(!_0x28e7bd)return[new BidiSpan(0x0,0x0,_0x4e705f==RTL?0x1:0x0)];if(_0x4e705f==LTR&&!_0x2e488a['length']&&!BidiRE['test'](_0x28e7bd))return trivialOrder(_0x28e7bd['length']);if(_0x2e488a['length']){for(;_0x28e7bd['length']>types['length'];)types[types['length']]=0x100;}let _0x1fdf86=[],_0x559dac=_0x4e705f==LTR?0x0:0x1;return computeSectionOrder(_0x28e7bd,_0x559dac,_0x559dac,_0x2e488a,0x0,_0x28e7bd['length'],_0x1fdf86),_0x1fdf86;}function trivialOrder(_0x23368e){return[new BidiSpan(0x0,_0x23368e,0x0)];}let movedOver='';function moveVisually(_0x3fd226,_0x987834,_0x2bf0d1,_0x1e7ff6,_0x3f8da8){var _0x106d8c;let _0x1fc495=_0x1e7ff6['head']-_0x3fd226['from'],_0x2f3afe=BidiSpan['find'](_0x987834,_0x1fc495,null!==(_0x106d8c=_0x1e7ff6['bidiLevel'])&&void 0x0!==_0x106d8c?_0x106d8c:-0x1,_0x1e7ff6['assoc']),_0xd27512=_0x987834[_0x2f3afe],_0x38b046=_0xd27512['side'](_0x3f8da8,_0x2bf0d1);if(_0x1fc495==_0x38b046){let _0x4d7f25=_0x2f3afe+=_0x3f8da8?0x1:-0x1;if(_0x4d7f25<0x0||_0x4d7f25>=_0x987834['length'])return null;_0xd27512=_0x987834[_0x2f3afe=_0x4d7f25],_0x1fc495=_0xd27512['side'](!_0x3f8da8,_0x2bf0d1),_0x38b046=_0xd27512['side'](_0x3f8da8,_0x2bf0d1);}let _0x342b3a=findClusterBreak(_0x3fd226['text'],_0x1fc495,_0xd27512['forward'](_0x3f8da8,_0x2bf0d1));(_0x342b3a<_0xd27512['from']||_0x342b3a>_0xd27512['to'])&&(_0x342b3a=_0x38b046),movedOver=_0x3fd226['text']['slice'](Math['min'](_0x1fc495,_0x342b3a),Math['max'](_0x1fc495,_0x342b3a));let _0x491642=_0x2f3afe==(_0x3f8da8?_0x987834['length']-0x1:0x0)?null:_0x987834[_0x2f3afe+(_0x3f8da8?0x1:-0x1)];return _0x491642&&_0x342b3a==_0x38b046&&_0x491642['level']+(_0x3f8da8?0x0:0x1)<_0xd27512['level']?EditorSelection['cursor'](_0x491642['side'](!_0x3f8da8,_0x2bf0d1)+_0x3fd226['from'],_0x491642['forward'](_0x3f8da8,_0x2bf0d1)?0x1:-0x1,_0x491642['level']):EditorSelection['cursor'](_0x342b3a+_0x3fd226['from'],_0xd27512['forward'](_0x3f8da8,_0x2bf0d1)?-0x1:0x1,_0xd27512['level']);}function autoDirection(_0x18afbb,_0x4eb848,_0x2f64a3){for(let _0x21b76d=_0x4eb848;_0x21b76d<_0x2f64a3;_0x21b76d++){let _0xa8615f=charType(_0x18afbb['charCodeAt'](_0x21b76d));if(0x1==_0xa8615f)return LTR;if(0x2==_0xa8615f||0x4==_0xa8615f)return RTL;}return LTR;}const clickAddsSelectionRange=Facet['define'](),dragMovesSelection$1=Facet['define'](),mouseSelectionStyle=Facet['define'](),exceptionSink=Facet['define'](),updateListener=Facet['define'](),inputHandler$1=Facet['define'](),focusChangeEffect=Facet['define'](),clipboardInputFilter=Facet['define'](),clipboardOutputFilter=Facet['define'](),perLineTextDirection=Facet['define']({'combine':_0x18ad70=>_0x18ad70['some'](_0x147b67=>_0x147b67)}),nativeSelectionHidden=Facet['define']({'combine':_0x1ea605=>_0x1ea605['some'](_0x4c308b=>_0x4c308b)}),scrollHandler=Facet['define']();class ScrollTarget{constructor(_0xa351,_0x4ca4a0='nearest',_0x46c087='nearest',_0x2f79bb=0x5,_0x30b3d4=0x5,_0x11999b=!0x1){this['range']=_0xa351,this['y']=_0x4ca4a0,this['x']=_0x46c087,this['yMargin']=_0x2f79bb,this['xMargin']=_0x30b3d4,this['isSnapshot']=_0x11999b;}['map'](_0x502fbe){return _0x502fbe['empty']?this:new ScrollTarget(this['range']['map'](_0x502fbe),this['y'],this['x'],this['yMargin'],this['xMargin'],this['isSnapshot']);}['clip'](_0x196eb2){return this['range']['to']<=_0x196eb2['doc']['length']?this:new ScrollTarget(EditorSelection['cursor'](_0x196eb2['doc']['length']),this['y'],this['x'],this['yMargin'],this['xMargin'],this['isSnapshot']);}}const scrollIntoView$1=StateEffect['define']({'map':(t,_0x2de04f)=>t['map'](_0x2de04f)}),setEditContextFormatting=StateEffect['define']();function logException(_0xbe01ba,_0x4b1495,_0x582205){let _0x34b23b=_0xbe01ba['facet'](exceptionSink);_0x34b23b['length']?_0x34b23b[0x0](_0x4b1495):window['onerror']&&window['onerror'](String(_0x4b1495),_0x582205,void 0x0,void 0x0,_0x4b1495)||(_0x582205?console['error'](_0x582205+':',_0x4b1495):console['error'](_0x4b1495));}const editable=Facet['define']({'combine':_0x5b6091=>!_0x5b6091['length']||_0x5b6091[0x0]});let nextPluginID=0x0;const viewPlugin=Facet['define']({'combine':_0xcf1f9=>_0xcf1f9['filter']((_0x31352d,_0x200dcd)=>{for(let _0x4acff8=0x0;_0x4acff8<_0x200dcd;_0x4acff8++)if(_0xcf1f9[_0x4acff8]['plugin']==_0x31352d['plugin'])return!0x1;return!0x0;})});class ViewPlugin{constructor(_0x5633e3,_0x522b20,_0x124c90,_0x110145,_0x123196){this['id']=_0x5633e3,this['create']=_0x522b20,this['domEventHandlers']=_0x124c90,this['domEventObservers']=_0x110145,this['baseExtensions']=_0x123196(this),this['extension']=this['baseExtensions']['concat'](viewPlugin['of']({'plugin':this,'arg':void 0x0}));}['of'](_0x2dd157){return this['baseExtensions']['concat'](viewPlugin['of']({'plugin':this,'arg':_0x2dd157}));}static['define'](_0x475212,_0x13924f){const {eventHandlers:_0x3c4512,eventObservers:_0x1fa919,provide:_0x39ee60,decorations:_0x21ba06}=_0x13924f||{};return new ViewPlugin(nextPluginID++,_0x475212,_0x3c4512,_0x1fa919,_0x426b43=>{let _0x38dbd3=[];return _0x21ba06&&_0x38dbd3['push'](decorations['of'](_0x5d53dd=>{let _0x524701=_0x5d53dd['plugin'](_0x426b43);return _0x524701?_0x21ba06(_0x524701):Decoration['none'];})),_0x39ee60&&_0x38dbd3['push'](_0x39ee60(_0x426b43)),_0x38dbd3;});}static['fromClass'](_0x47eccc,_0x3f21f7){return ViewPlugin['define']((_0x382432,_0x26154c)=>new _0x47eccc(_0x382432,_0x26154c),_0x3f21f7);}}class PluginInstance{constructor(_0x25f68b){this['spec']=_0x25f68b,this['mustUpdate']=null,this['value']=null;}get['plugin'](){return this['spec']&&this['spec']['plugin'];}['update'](_0x3e0932){if(this['value']){if(this['mustUpdate']){let _0xfe8873=this['mustUpdate'];if(this['mustUpdate']=null,this['value']['update'])try{this['value']['update'](_0xfe8873);}catch(_0x415916){if(logException(_0xfe8873['state'],_0x415916,'CodeMirror\x20plugin\x20crashed'),this['value']['destroy'])try{this['value']['destroy']();}catch(_0x25970b){}this['deactivate']();}}}else{if(this['spec'])try{this['value']=this['spec']['plugin']['create'](_0x3e0932,this['spec']['arg']);}catch(_0x4b19c8){logException(_0x3e0932['state'],_0x4b19c8,'CodeMirror\x20plugin\x20crashed'),this['deactivate']();}}return this;}['destroy'](_0x3f4ced){var _0x3202a6;if(null===(_0x3202a6=this['value'])||void 0x0===_0x3202a6?void 0x0:_0x3202a6['destroy'])try{this['value']['destroy']();}catch(_0x45b7e0){logException(_0x3f4ced['state'],_0x45b7e0,'CodeMirror\x20plugin\x20crashed');}}['deactivate'](){this['spec']=this['value']=null;}}const editorAttributes=Facet['define'](),contentAttributes=Facet['define'](),decorations=Facet['define'](),outerDecorations=Facet['define'](),atomicRanges=Facet['define'](),bidiIsolatedRanges=Facet['define']();function getIsolatedRanges(_0x54daac,_0x27a3b8){let _0x5c339d=_0x54daac['state']['facet'](bidiIsolatedRanges);if(!_0x5c339d['length'])return _0x5c339d;let _0x3d0f3d=_0x5c339d['map'](_0x3c2a30=>_0x3c2a30 instanceof Function?_0x3c2a30(_0x54daac):_0x3c2a30),_0x41b4ed=[];return RangeSet['spans'](_0x3d0f3d,_0x27a3b8['from'],_0x27a3b8['to'],{'point'(){},'span'(_0x3f8f21,_0x2f59f5,_0x14b650,_0x488000){let _0xf1f23e=_0x3f8f21-_0x27a3b8['from'],_0x1a5ec2=_0x2f59f5-_0x27a3b8['from'],_0x27718b=_0x41b4ed;for(let _0x576a72=_0x14b650['length']-0x1;_0x576a72>=0x0;_0x576a72--,_0x488000--){let _0x2be262,_0x1c1983=_0x14b650[_0x576a72]['spec']['bidiIsolate'];if(null==_0x1c1983&&(_0x1c1983=autoDirection(_0x27a3b8['text'],_0xf1f23e,_0x1a5ec2)),_0x488000>0x0&&_0x27718b['length']&&(_0x2be262=_0x27718b[_0x27718b['length']-0x1])['to']==_0xf1f23e&&_0x2be262['direction']==_0x1c1983)_0x2be262['to']=_0x1a5ec2,_0x27718b=_0x2be262['inner'];else{let _0x90f446={'from':_0xf1f23e,'to':_0x1a5ec2,'direction':_0x1c1983,'inner':[]};_0x27718b['push'](_0x90f446),_0x27718b=_0x90f446['inner'];}}}}),_0x41b4ed;}const scrollMargins=Facet['define']();function getScrollMargins(_0x25bca9){let _0x17debf=0x0,_0x4b5492=0x0,_0x450b93=0x0,_0xbce7eb=0x0;for(let _0x3a17c5 of _0x25bca9['state']['facet'](scrollMargins)){let _0x358abd=_0x3a17c5(_0x25bca9);_0x358abd&&(null!=_0x358abd['left']&&(_0x17debf=Math['max'](_0x17debf,_0x358abd['left'])),null!=_0x358abd['right']&&(_0x4b5492=Math['max'](_0x4b5492,_0x358abd['right'])),null!=_0x358abd['top']&&(_0x450b93=Math['max'](_0x450b93,_0x358abd['top'])),null!=_0x358abd['bottom']&&(_0xbce7eb=Math['max'](_0xbce7eb,_0x358abd['bottom'])));}return{'left':_0x17debf,'right':_0x4b5492,'top':_0x450b93,'bottom':_0xbce7eb};}const styleModule=Facet['define']();class ChangedRange{constructor(_0x5d7d32,_0x4894ee,_0x308b80,_0x1ac78f){this['fromA']=_0x5d7d32,this['toA']=_0x4894ee,this['fromB']=_0x308b80,this['toB']=_0x1ac78f;}['join'](_0x144dab){return new ChangedRange(Math['min'](this['fromA'],_0x144dab['fromA']),Math['max'](this['toA'],_0x144dab['toA']),Math['min'](this['fromB'],_0x144dab['fromB']),Math['max'](this['toB'],_0x144dab['toB']));}['addToSet'](_0x29b486){let _0x4d6360=_0x29b486['length'],_0x4b9c30=this;for(;_0x4d6360>0x0;_0x4d6360--){let _0x15f9ea=_0x29b486[_0x4d6360-0x1];if(!(_0x15f9ea['fromA']>_0x4b9c30['toA'])){if(_0x15f9ea['toA']<_0x4b9c30['fromA'])break;_0x4b9c30=_0x4b9c30['join'](_0x15f9ea),_0x29b486['splice'](_0x4d6360-0x1,0x1);}}return _0x29b486['splice'](_0x4d6360,0x0,_0x4b9c30),_0x29b486;}static['extendWithRanges'](_0x34f9f0,_0xc1236e){if(0x0==_0xc1236e['length'])return _0x34f9f0;let _0x41bee3=[];for(let _0x36e439=0x0,_0x1b321d=0x0,_0x2ce997=0x0,_0x1ee45a=0x0;;_0x36e439++){let _0x33c7e9=_0x36e439==_0x34f9f0['length']?null:_0x34f9f0[_0x36e439],_0x4b1704=_0x2ce997-_0x1ee45a,_0x4a3101=_0x33c7e9?_0x33c7e9['fromB']:0x3b9aca00;for(;_0x1b321d<_0xc1236e['length']&&_0xc1236e[_0x1b321d]<_0x4a3101;){let _0x3cc70c=_0xc1236e[_0x1b321d],_0x1ba466=_0xc1236e[_0x1b321d+0x1],_0x338684=Math['max'](_0x1ee45a,_0x3cc70c),_0x5a3138=Math['min'](_0x4a3101,_0x1ba466);if(_0x338684<=_0x5a3138&&new ChangedRange(_0x338684+_0x4b1704,_0x5a3138+_0x4b1704,_0x338684,_0x5a3138)['addToSet'](_0x41bee3),_0x1ba466>_0x4a3101)break;_0x1b321d+=0x2;}if(!_0x33c7e9)return _0x41bee3;new ChangedRange(_0x33c7e9['fromA'],_0x33c7e9['toA'],_0x33c7e9['fromB'],_0x33c7e9['toB'])['addToSet'](_0x41bee3),_0x2ce997=_0x33c7e9['toA'],_0x1ee45a=_0x33c7e9['toB'];}}}class ViewUpdate{constructor(_0x42cfbc,_0x5df73e,_0x1e4a62){this['view']=_0x42cfbc,this['state']=_0x5df73e,this['transactions']=_0x1e4a62,this['flags']=0x0,this['startState']=_0x42cfbc['state'],this['changes']=ChangeSet['empty'](this['startState']['doc']['length']);for(let _0x39778c of _0x1e4a62)this['changes']=this['changes']['compose'](_0x39778c['changes']);let _0x5e3d50=[];this['changes']['iterChangedRanges']((_0x2614aa,_0x5e1e2e,_0x4dc7b0,_0x2e4b69)=>_0x5e3d50['push'](new ChangedRange(_0x2614aa,_0x5e1e2e,_0x4dc7b0,_0x2e4b69))),this['changedRanges']=_0x5e3d50;}static['create'](_0x329057,_0x4e86a6,_0x3ffee5){return new ViewUpdate(_0x329057,_0x4e86a6,_0x3ffee5);}get['viewportChanged'](){return(0x4&this['flags'])>0x0;}get['viewportMoved'](){return(0x8&this['flags'])>0x0;}get['heightChanged'](){return(0x2&this['flags'])>0x0;}get['geometryChanged'](){return this['docChanged']||(0x12&this['flags'])>0x0;}get['focusChanged'](){return(0x1&this['flags'])>0x0;}get['docChanged'](){return!this['changes']['empty'];}get['selectionSet'](){return this['transactions']['some'](_0x1bafa0=>_0x1bafa0['selection']);}get['empty'](){return 0x0==this['flags']&&0x0==this['transactions']['length'];}}class DocView extends ContentView{get['length'](){return this['view']['state']['doc']['length'];}constructor(_0x20b65d){super(),this['view']=_0x20b65d,this['decorations']=[],this['dynamicDecorationMap']=[!0x1],this['domChanged']=null,this['hasComposition']=null,this['markedForComposition']=new Set(),this['editContextFormatting']=Decoration['none'],this['lastCompositionAfterCursor']=!0x1,this['minWidth']=0x0,this['minWidthFrom']=0x0,this['minWidthTo']=0x0,this['impreciseAnchor']=null,this['impreciseHead']=null,this['forceSelection']=!0x1,this['lastUpdate']=Date['now'](),this['setDOM'](_0x20b65d['contentDOM']),this['children']=[new LineView()],this['children'][0x0]['setParent'](this),this['updateDeco'](),this['updateInner']([new ChangedRange(0x0,0x0,0x0,_0x20b65d['state']['doc']['length'])],0x0,null);}['update'](_0x5a1a84){var _0x2293b5;let _0x4c00a2=_0x5a1a84['changedRanges'];this['minWidth']>0x0&&_0x4c00a2['length']&&(_0x4c00a2['every'](({fromA:_0x5ba398,toA:_0x360950})=>_0x360950<this['minWidthFrom']||_0x5ba398>this['minWidthTo'])?(this['minWidthFrom']=_0x5a1a84['changes']['mapPos'](this['minWidthFrom'],0x1),this['minWidthTo']=_0x5a1a84['changes']['mapPos'](this['minWidthTo'],0x1)):this['minWidth']=this['minWidthFrom']=this['minWidthTo']=0x0),this['updateEditContextFormatting'](_0x5a1a84);let _0x274b64=-0x1;this['view']['inputState']['composing']>=0x0&&!this['view']['observer']['editContext']&&((null===(_0x2293b5=this['domChanged'])||void 0x0===_0x2293b5?void 0x0:_0x2293b5['newSel'])?_0x274b64=this['domChanged']['newSel']['head']:touchesComposition(_0x5a1a84['changes'],this['hasComposition'])||_0x5a1a84['selectionSet']||(_0x274b64=_0x5a1a84['state']['selection']['main']['head']));let _0x381f4a=_0x274b64>-0x1?findCompositionRange(this['view'],_0x5a1a84['changes'],_0x274b64):null;if(this['domChanged']=null,this['hasComposition']){this['markedForComposition']['clear']();let {from:_0x350292,to:_0x1f3108}=this['hasComposition'];_0x4c00a2=new ChangedRange(_0x350292,_0x1f3108,_0x5a1a84['changes']['mapPos'](_0x350292,-0x1),_0x5a1a84['changes']['mapPos'](_0x1f3108,0x1))['addToSet'](_0x4c00a2['slice']());}this['hasComposition']=_0x381f4a?{'from':_0x381f4a['range']['fromB'],'to':_0x381f4a['range']['toB']}:null,(browser['ie']||browser['chrome'])&&!_0x381f4a&&_0x5a1a84&&_0x5a1a84['state']['doc']['lines']!=_0x5a1a84['startState']['doc']['lines']&&(this['forceSelection']=!0x0);let _0xf5bf35=findChangedDeco(this['decorations'],this['updateDeco'](),_0x5a1a84['changes']);return _0x4c00a2=ChangedRange['extendWithRanges'](_0x4c00a2,_0xf5bf35),!!(0x7&this['flags']||0x0!=_0x4c00a2['length'])&&(this['updateInner'](_0x4c00a2,_0x5a1a84['startState']['doc']['length'],_0x381f4a),_0x5a1a84['transactions']['length']&&(this['lastUpdate']=Date['now']()),!0x0);}['updateInner'](_0xc9b0a,_0x99bb6f,_0x4aaa10){this['view']['viewState']['mustMeasureContent']=!0x0,this['updateChildren'](_0xc9b0a,_0x99bb6f,_0x4aaa10);let {observer:_0x310659}=this['view'];_0x310659['ignore'](()=>{this['dom']['style']['height']=this['view']['viewState']['contentHeight']/this['view']['scaleY']+'px',this['dom']['style']['flexBasis']=this['minWidth']?this['minWidth']+'px':'';let _0x1e9c5a=browser['chrome']||browser['ios']?{'node':_0x310659['selectionRange']['focusNode'],'written':!0x1}:void 0x0;this['sync'](this['view'],_0x1e9c5a),this['flags']&=-0x8,_0x1e9c5a&&(_0x1e9c5a['written']||_0x310659['selectionRange']['focusNode']!=_0x1e9c5a['node'])&&(this['forceSelection']=!0x0),this['dom']['style']['height']='';}),this['markedForComposition']['forEach'](_0x562f58=>_0x562f58['flags']&=-0x9);let _0x2b7cdb=[];if(this['view']['viewport']['from']||this['view']['viewport']['to']<this['view']['state']['doc']['length']){for(let _0x5b1bef of this['children'])_0x5b1bef instanceof BlockWidgetView&&_0x5b1bef['widget']instanceof BlockGapWidget&&_0x2b7cdb['push'](_0x5b1bef['dom']);}_0x310659['updateGaps'](_0x2b7cdb);}['updateChildren'](_0x327aea,_0x4bebec,_0x571612){let _0x9a0dfe=_0x571612?_0x571612['range']['addToSet'](_0x327aea['slice']()):_0x327aea,_0x50c4e4=this['childCursor'](_0x4bebec);for(let _0x58f3fe=_0x9a0dfe['length']-0x1;;_0x58f3fe--){let _0x47e036=_0x58f3fe>=0x0?_0x9a0dfe[_0x58f3fe]:null;if(!_0x47e036)break;let _0x5d16a9,_0x24b441,_0x61446b,_0x268ec7,{fromA:_0x201307,toA:_0x3371a3,fromB:_0x2ebf26,toB:_0x479afe}=_0x47e036;if(_0x571612&&_0x571612['range']['fromB']<_0x479afe&&_0x571612['range']['toB']>_0x2ebf26){let _0x3bc02e=ContentBuilder['build'](this['view']['state']['doc'],_0x2ebf26,_0x571612['range']['fromB'],this['decorations'],this['dynamicDecorationMap']),_0x402c80=ContentBuilder['build'](this['view']['state']['doc'],_0x571612['range']['toB'],_0x479afe,this['decorations'],this['dynamicDecorationMap']);_0x24b441=_0x3bc02e['breakAtStart'],_0x61446b=_0x3bc02e['openStart'],_0x268ec7=_0x402c80['openEnd'];let _0x3c376a=this['compositionView'](_0x571612);_0x402c80['breakAtStart']?_0x3c376a['breakAfter']=0x1:_0x402c80['content']['length']&&_0x3c376a['merge'](_0x3c376a['length'],_0x3c376a['length'],_0x402c80['content'][0x0],!0x1,_0x402c80['openStart'],0x0)&&(_0x3c376a['breakAfter']=_0x402c80['content'][0x0]['breakAfter'],_0x402c80['content']['shift']()),_0x3bc02e['content']['length']&&_0x3c376a['merge'](0x0,0x0,_0x3bc02e['content'][_0x3bc02e['content']['length']-0x1],!0x0,0x0,_0x3bc02e['openEnd'])&&_0x3bc02e['content']['pop'](),_0x5d16a9=_0x3bc02e['content']['concat'](_0x3c376a)['concat'](_0x402c80['content']);}else({content:_0x5d16a9,breakAtStart:_0x24b441,openStart:_0x61446b,openEnd:_0x268ec7}=ContentBuilder['build'](this['view']['state']['doc'],_0x2ebf26,_0x479afe,this['decorations'],this['dynamicDecorationMap']));let {i:_0x5c5a98,off:_0x47d2ee}=_0x50c4e4['findPos'](_0x3371a3,0x1),{i:_0x3fbb75,off:_0x536ebc}=_0x50c4e4['findPos'](_0x201307,-0x1);replaceRange(this,_0x3fbb75,_0x536ebc,_0x5c5a98,_0x47d2ee,_0x5d16a9,_0x24b441,_0x61446b,_0x268ec7);}_0x571612&&this['fixCompositionDOM'](_0x571612);}['updateEditContextFormatting'](_0x52a5ca){this['editContextFormatting']=this['editContextFormatting']['map'](_0x52a5ca['changes']);for(let _0xcd090f of _0x52a5ca['transactions'])for(let _0x4c9b7f of _0xcd090f['effects'])_0x4c9b7f['is'](setEditContextFormatting)&&(this['editContextFormatting']=_0x4c9b7f['value']);}['compositionView'](_0x69007b){let _0xf9eabf=new TextView(_0x69007b['text']['nodeValue']);_0xf9eabf['flags']|=0x8;for(let {deco:_0x5478f8}of _0x69007b['marks'])_0xf9eabf=new MarkView(_0x5478f8,[_0xf9eabf],_0xf9eabf['length']);let _0x3849cc=new LineView();return _0x3849cc['append'](_0xf9eabf,0x0),_0x3849cc;}['fixCompositionDOM'](_0x36c72){let _0x487cd6=(_0x2ff366,_0x5d4871)=>{_0x5d4871['flags']|=0x8|(_0x5d4871['children']['some'](_0x2a48a7=>0x7&_0x2a48a7['flags'])?0x1:0x0),this['markedForComposition']['add'](_0x5d4871);let _0x5a378e=ContentView['get'](_0x2ff366);_0x5a378e&&_0x5a378e!=_0x5d4871&&(_0x5a378e['dom']=null),_0x5d4871['setDOM'](_0x2ff366);},_0x2652fe=this['childPos'](_0x36c72['range']['fromB'],0x1),_0x30312e=this['children'][_0x2652fe['i']];_0x487cd6(_0x36c72['line'],_0x30312e);for(let _0x2539f8=_0x36c72['marks']['length']-0x1;_0x2539f8>=-0x1;_0x2539f8--)_0x2652fe=_0x30312e['childPos'](_0x2652fe['off'],0x1),_0x30312e=_0x30312e['children'][_0x2652fe['i']],_0x487cd6(_0x2539f8>=0x0?_0x36c72['marks'][_0x2539f8]['node']:_0x36c72['text'],_0x30312e);}['updateSelection'](_0xa5564b=!0x1,_0x1ae6f1=!0x1){!_0xa5564b&&this['view']['observer']['selectionRange']['focusNode']||this['view']['observer']['readSelectionRange']();let _0x196d12=this['view']['root']['activeElement'],_0x20ad0a=_0x196d12==this['dom'],_0x297808=!_0x20ad0a&&!(this['view']['state']['facet'](editable)||this['dom']['tabIndex']>-0x1)&&hasSelection(this['dom'],this['view']['observer']['selectionRange'])&&!(_0x196d12&&this['dom']['contains'](_0x196d12));if(!(_0x20ad0a||_0x1ae6f1||_0x297808))return;let _0x380f98=this['forceSelection'];this['forceSelection']=!0x1;let _0x1990e0=this['view']['state']['selection']['main'],_0x4c7177=this['moveToLine'](this['domAtPos'](_0x1990e0['anchor'])),_0x2f53ca=_0x1990e0['empty']?_0x4c7177:this['moveToLine'](this['domAtPos'](_0x1990e0['head']));if(browser['gecko']&&_0x1990e0['empty']&&!this['hasComposition']&&betweenUneditable(_0x4c7177)){let _0x292e16=document['createTextNode']('');this['view']['observer']['ignore'](()=>_0x4c7177['node']['insertBefore'](_0x292e16,_0x4c7177['node']['childNodes'][_0x4c7177['offset']]||null)),_0x4c7177=_0x2f53ca=new DOMPos(_0x292e16,0x0),_0x380f98=!0x0;}let _0x1ce343=this['view']['observer']['selectionRange'];!_0x380f98&&_0x1ce343['focusNode']&&(isEquivalentPosition(_0x4c7177['node'],_0x4c7177['offset'],_0x1ce343['anchorNode'],_0x1ce343['anchorOffset'])&&isEquivalentPosition(_0x2f53ca['node'],_0x2f53ca['offset'],_0x1ce343['focusNode'],_0x1ce343['focusOffset'])||this['suppressWidgetCursorChange'](_0x1ce343,_0x1990e0))||(this['view']['observer']['ignore'](()=>{browser['android']&&browser['chrome']&&this['dom']['contains'](_0x1ce343['focusNode'])&&inUneditable(_0x1ce343['focusNode'],this['dom'])&&(this['dom']['blur'](),this['dom']['focus']({'preventScroll':!0x0}));let _0x28441f=getSelection(this['view']['root']);if(_0x28441f){if(_0x1990e0['empty']){if(browser['gecko']){let _0x54f597=nextToUneditable(_0x4c7177['node'],_0x4c7177['offset']);if(_0x54f597&&0x3!=_0x54f597){let _0xd7ab4c=(0x1==_0x54f597?textNodeBefore:textNodeAfter)(_0x4c7177['node'],_0x4c7177['offset']);_0xd7ab4c&&(_0x4c7177=new DOMPos(_0xd7ab4c['node'],_0xd7ab4c['offset']));}}_0x28441f['collapse'](_0x4c7177['node'],_0x4c7177['offset']),null!=_0x1990e0['bidiLevel']&&void 0x0!==_0x28441f['caretBidiLevel']&&(_0x28441f['caretBidiLevel']=_0x1990e0['bidiLevel']);}else{if(_0x28441f['extend']){_0x28441f['collapse'](_0x4c7177['node'],_0x4c7177['offset']);try{_0x28441f['extend'](_0x2f53ca['node'],_0x2f53ca['offset']);}catch(_0x5d8a39){}}else{let _0x8f9d02=document['createRange']();_0x1990e0['anchor']>_0x1990e0['head']&&([_0x4c7177,_0x2f53ca]=[_0x2f53ca,_0x4c7177]),_0x8f9d02['setEnd'](_0x2f53ca['node'],_0x2f53ca['offset']),_0x8f9d02['setStart'](_0x4c7177['node'],_0x4c7177['offset']),_0x28441f['removeAllRanges'](),_0x28441f['addRange'](_0x8f9d02);}}}else;_0x297808&&this['view']['root']['activeElement']==this['dom']&&(this['dom']['blur'](),_0x196d12&&_0x196d12['focus']());}),this['view']['observer']['setSelectionRange'](_0x4c7177,_0x2f53ca)),this['impreciseAnchor']=_0x4c7177['precise']?null:new DOMPos(_0x1ce343['anchorNode'],_0x1ce343['anchorOffset']),this['impreciseHead']=_0x2f53ca['precise']?null:new DOMPos(_0x1ce343['focusNode'],_0x1ce343['focusOffset']);}['suppressWidgetCursorChange'](_0x40baf5,_0x543f55){return this['hasComposition']&&_0x543f55['empty']&&isEquivalentPosition(_0x40baf5['focusNode'],_0x40baf5['focusOffset'],_0x40baf5['anchorNode'],_0x40baf5['anchorOffset'])&&this['posFromDOM'](_0x40baf5['focusNode'],_0x40baf5['focusOffset'])==_0x543f55['head'];}['enforceCursorAssoc'](){if(this['hasComposition'])return;let {view:_0x45979e}=this,_0x10c006=_0x45979e['state']['selection']['main'],_0x38163c=getSelection(_0x45979e['root']),{anchorNode:_0x349a81,anchorOffset:_0x4fe60d}=_0x45979e['observer']['selectionRange'];if(!(_0x38163c&&_0x10c006['empty']&&_0x10c006['assoc']&&_0x38163c['modify']))return;let _0x24b028=LineView['find'](this,_0x10c006['head']);if(!_0x24b028)return;let _0x56ccff=_0x24b028['posAtStart'];if(_0x10c006['head']==_0x56ccff||_0x10c006['head']==_0x56ccff+_0x24b028['length'])return;let _0x190e99=this['coordsAt'](_0x10c006['head'],-0x1),_0x19e9fc=this['coordsAt'](_0x10c006['head'],0x1);if(!_0x190e99||!_0x19e9fc||_0x190e99['bottom']>_0x19e9fc['top'])return;let _0x58d78b=this['domAtPos'](_0x10c006['head']+_0x10c006['assoc']);_0x38163c['collapse'](_0x58d78b['node'],_0x58d78b['offset']),_0x38163c['modify']('move',_0x10c006['assoc']<0x0?'forward':'backward','lineboundary'),_0x45979e['observer']['readSelectionRange']();let _0x551913=_0x45979e['observer']['selectionRange'];_0x45979e['docView']['posFromDOM'](_0x551913['anchorNode'],_0x551913['anchorOffset'])!=_0x10c006['from']&&_0x38163c['collapse'](_0x349a81,_0x4fe60d);}['moveToLine'](_0x29b0ed){let _0x496810,_0x1d7201=this['dom'];if(_0x29b0ed['node']!=_0x1d7201)return _0x29b0ed;for(let _0x5b1213=_0x29b0ed['offset'];!_0x496810&&_0x5b1213<_0x1d7201['childNodes']['length'];_0x5b1213++){let _0x136d97=ContentView['get'](_0x1d7201['childNodes'][_0x5b1213]);_0x136d97 instanceof LineView&&(_0x496810=_0x136d97['domAtPos'](0x0));}for(let _0x54404b=_0x29b0ed['offset']-0x1;!_0x496810&&_0x54404b>=0x0;_0x54404b--){let _0x485885=ContentView['get'](_0x1d7201['childNodes'][_0x54404b]);_0x485885 instanceof LineView&&(_0x496810=_0x485885['domAtPos'](_0x485885['length']));}return _0x496810?new DOMPos(_0x496810['node'],_0x496810['offset'],!0x0):_0x29b0ed;}['nearest'](_0x3bed0e){for(let _0x167da2=_0x3bed0e;_0x167da2;){let _0x2599cd=ContentView['get'](_0x167da2);if(_0x2599cd&&_0x2599cd['rootView']==this)return _0x2599cd;_0x167da2=_0x167da2['parentNode'];}return null;}['posFromDOM'](_0x83de62,_0x689c3){let _0x47137a=this['nearest'](_0x83de62);if(!_0x47137a)throw new RangeError('Trying\x20to\x20find\x20position\x20for\x20a\x20DOM\x20position\x20outside\x20of\x20the\x20document');return _0x47137a['localPosFromDOM'](_0x83de62,_0x689c3)+_0x47137a['posAtStart'];}['domAtPos'](_0x5755db){let {i:_0xdc720e,off:_0x4a017c}=this['childCursor']()['findPos'](_0x5755db,-0x1);for(;_0xdc720e<this['children']['length']-0x1;){let _0x543b02=this['children'][_0xdc720e];if(_0x4a017c<_0x543b02['length']||_0x543b02 instanceof LineView)break;_0xdc720e++,_0x4a017c=0x0;}return this['children'][_0xdc720e]['domAtPos'](_0x4a017c);}['coordsAt'](_0x32740c,_0x5b4349){let _0xa8191b=null,_0x41251f=0x0;for(let _0x4f8828=this['length'],_0x164dd9=this['children']['length']-0x1;_0x164dd9>=0x0;_0x164dd9--){let _0x2dd79a=this['children'][_0x164dd9],_0x3018ad=_0x4f8828-_0x2dd79a['breakAfter'],_0x141b4d=_0x3018ad-_0x2dd79a['length'];if(_0x3018ad<_0x32740c)break;if(_0x141b4d<=_0x32740c&&(_0x141b4d<_0x32740c||_0x2dd79a['covers'](-0x1))&&(_0x3018ad>_0x32740c||_0x2dd79a['covers'](0x1))&&(!_0xa8191b||_0x2dd79a instanceof LineView&&!(_0xa8191b instanceof LineView&&_0x5b4349>=0x0)))_0xa8191b=_0x2dd79a,_0x41251f=_0x141b4d;else{if(_0xa8191b&&_0x141b4d==_0x32740c&&_0x3018ad==_0x32740c&&_0x2dd79a instanceof BlockWidgetView&&Math['abs'](_0x5b4349)<0x2){if(_0x2dd79a['deco']['startSide']<0x0)break;_0x164dd9&&(_0xa8191b=null);}}_0x4f8828=_0x141b4d;}return _0xa8191b?_0xa8191b['coordsAt'](_0x32740c-_0x41251f,_0x5b4349):null;}['coordsForChar'](_0x10e2b8){let {i:_0x155863,off:_0x10adf0}=this['childPos'](_0x10e2b8,0x1),_0x44465d=this['children'][_0x155863];if(!(_0x44465d instanceof LineView))return null;for(;_0x44465d['children']['length'];){let {i:_0x67a75f,off:_0x4eebb4}=_0x44465d['childPos'](_0x10adf0,0x1);for(;;_0x67a75f++){if(_0x67a75f==_0x44465d['children']['length'])return null;if((_0x44465d=_0x44465d['children'][_0x67a75f])['length'])break;}_0x10adf0=_0x4eebb4;}if(!(_0x44465d instanceof TextView))return null;let _0x336728=findClusterBreak(_0x44465d['text'],_0x10adf0);if(_0x336728==_0x10adf0)return null;let _0x241afc=textRange(_0x44465d['dom'],_0x10adf0,_0x336728)['getClientRects']();for(let _0xea80bc=0x0;_0xea80bc<_0x241afc['length'];_0xea80bc++){let _0x2787ab=_0x241afc[_0xea80bc];if(_0xea80bc==_0x241afc['length']-0x1||_0x2787ab['top']<_0x2787ab['bottom']&&_0x2787ab['left']<_0x2787ab['right'])return _0x2787ab;}return null;}['measureVisibleLineHeights'](_0x5abd46){let _0x4f33b3=[],{from:_0x1c1de2,to:_0x4a180d}=_0x5abd46,_0x40ed00=this['view']['contentDOM']['clientWidth'],_0x5b779f=_0x40ed00>Math['max'](this['view']['scrollDOM']['clientWidth'],this['minWidth'])+0x1,_0x283b90=-0x1,_0x169dd0=this['view']['textDirection']==Direction['LTR'];for(let _0x36d3e5=0x0,_0x32f93b=0x0;_0x32f93b<this['children']['length'];_0x32f93b++){let _0x4a52ef=this['children'][_0x32f93b],_0x1b62f5=_0x36d3e5+_0x4a52ef['length'];if(_0x1b62f5>_0x4a180d)break;if(_0x36d3e5>=_0x1c1de2){let _0x73f5c0=_0x4a52ef['dom']['getBoundingClientRect']();if(_0x4f33b3['push'](_0x73f5c0['height']),_0x5b779f){let _0x16b86c=_0x4a52ef['dom']['lastChild'],_0x2d9b9d=_0x16b86c?clientRectsFor(_0x16b86c):[];if(_0x2d9b9d['length']){let _0x7e174=_0x2d9b9d[_0x2d9b9d['length']-0x1],_0x21db01=_0x169dd0?_0x7e174['right']-_0x73f5c0['left']:_0x73f5c0['right']-_0x7e174['left'];_0x21db01>_0x283b90&&(_0x283b90=_0x21db01,this['minWidth']=_0x40ed00,this['minWidthFrom']=_0x36d3e5,this['minWidthTo']=_0x1b62f5);}}}_0x36d3e5=_0x1b62f5+_0x4a52ef['breakAfter'];}return _0x4f33b3;}['textDirectionAt'](_0x1757cf){let {i:_0x4d17e2}=this['childPos'](_0x1757cf,0x1);return'rtl'==getComputedStyle(this['children'][_0x4d17e2]['dom'])['direction']?Direction['RTL']:Direction['LTR'];}['measureTextSize'](){for(let _0x2311aa of this['children'])if(_0x2311aa instanceof LineView){let _0x43f4ab=_0x2311aa['measureTextSize']();if(_0x43f4ab)return _0x43f4ab;}let _0x2e886b,_0x4108a2,_0x4b1912,_0x1e67a2=document['createElement']('div');return _0x1e67a2['className']='cm-line',_0x1e67a2['style']['width']='99999px',_0x1e67a2['style']['position']='absolute',_0x1e67a2['textContent']='abc\x20def\x20ghi\x20jkl\x20mno\x20pqr\x20stu',this['view']['observer']['ignore'](()=>{this['dom']['appendChild'](_0x1e67a2);let _0x5c316=clientRectsFor(_0x1e67a2['firstChild'])[0x0];_0x2e886b=_0x1e67a2['getBoundingClientRect']()['height'],_0x4108a2=_0x5c316?_0x5c316['width']/0x1b:0x7,_0x4b1912=_0x5c316?_0x5c316['height']:_0x2e886b,_0x1e67a2['remove']();}),{'lineHeight':_0x2e886b,'charWidth':_0x4108a2,'textHeight':_0x4b1912};}['childCursor'](_0x1e1847=this['length']){let _0x237133=this['children']['length'];return _0x237133&&(_0x1e1847-=this['children'][--_0x237133]['length']),new ChildCursor(this['children'],_0x1e1847,_0x237133);}['computeBlockGapDeco'](){let _0x10e119=[],_0x2723f1=this['view']['viewState'];for(let _0x43d901=0x0,_0x4acd32=0x0;;_0x4acd32++){let _0x4ae044=_0x4acd32==_0x2723f1['viewports']['length']?null:_0x2723f1['viewports'][_0x4acd32],_0x17c514=_0x4ae044?_0x4ae044['from']-0x1:this['length'];if(_0x17c514>_0x43d901){let _0x8e4701=(_0x2723f1['lineBlockAt'](_0x17c514)['bottom']-_0x2723f1['lineBlockAt'](_0x43d901)['top'])/this['view']['scaleY'];_0x10e119['push'](Decoration['replace']({'widget':new BlockGapWidget(_0x8e4701),'block':!0x0,'inclusive':!0x0,'isBlockGap':!0x0})['range'](_0x43d901,_0x17c514));}if(!_0x4ae044)break;_0x43d901=_0x4ae044['to']+0x1;}return Decoration['set'](_0x10e119);}['updateDeco'](){let _0x48a9a8=0x1,_0x593587=this['view']['state']['facet'](decorations)['map'](_0x17bec5=>(this['dynamicDecorationMap'][_0x48a9a8++]='function'==typeof _0x17bec5)?_0x17bec5(this['view']):_0x17bec5),_0x475252=!0x1,_0x5b184e=this['view']['state']['facet'](outerDecorations)['map']((_0x176541,_0x532da6)=>{let _0x217f23='function'==typeof _0x176541;return _0x217f23&&(_0x475252=!0x0),_0x217f23?_0x176541(this['view']):_0x176541;});for(_0x5b184e['length']&&(this['dynamicDecorationMap'][_0x48a9a8++]=_0x475252,_0x593587['push'](RangeSet['join'](_0x5b184e))),this['decorations']=[this['editContextFormatting'],..._0x593587,this['computeBlockGapDeco'](),this['view']['viewState']['lineGapDeco']];_0x48a9a8<this['decorations']['length'];)this['dynamicDecorationMap'][_0x48a9a8++]=!0x1;return this['decorations'];}['scrollIntoView'](_0x43abcc){if(_0x43abcc['isSnapshot']){let _0x57f5d3=this['view']['viewState']['lineBlockAt'](_0x43abcc['range']['head']);return this['view']['scrollDOM']['scrollTop']=_0x57f5d3['top']-_0x43abcc['yMargin'],void(this['view']['scrollDOM']['scrollLeft']=_0x43abcc['xMargin']);}for(let _0x5acbaf of this['view']['state']['facet'](scrollHandler))try{if(_0x5acbaf(this['view'],_0x43abcc['range'],_0x43abcc))return!0x0;}catch(_0x262216){logException(this['view']['state'],_0x262216,'scroll\x20handler');}let _0x49060f,{range:_0x53d4bd}=_0x43abcc,_0x305b7f=this['coordsAt'](_0x53d4bd['head'],_0x53d4bd['empty']?_0x53d4bd['assoc']:_0x53d4bd['head']>_0x53d4bd['anchor']?-0x1:0x1);if(!_0x305b7f)return;!_0x53d4bd['empty']&&(_0x49060f=this['coordsAt'](_0x53d4bd['anchor'],_0x53d4bd['anchor']>_0x53d4bd['head']?-0x1:0x1))&&(_0x305b7f={'left':Math['min'](_0x305b7f['left'],_0x49060f['left']),'top':Math['min'](_0x305b7f['top'],_0x49060f['top']),'right':Math['max'](_0x305b7f['right'],_0x49060f['right']),'bottom':Math['max'](_0x305b7f['bottom'],_0x49060f['bottom'])});let _0x1e01fb=getScrollMargins(this['view']),_0xf3ee05={'left':_0x305b7f['left']-_0x1e01fb['left'],'top':_0x305b7f['top']-_0x1e01fb['top'],'right':_0x305b7f['right']+_0x1e01fb['right'],'bottom':_0x305b7f['bottom']+_0x1e01fb['bottom']},{offsetWidth:_0xed994f,offsetHeight:_0x517415}=this['view']['scrollDOM'];scrollRectIntoView(this['view']['scrollDOM'],_0xf3ee05,_0x53d4bd['head']<_0x53d4bd['anchor']?-0x1:0x1,_0x43abcc['x'],_0x43abcc['y'],Math['max'](Math['min'](_0x43abcc['xMargin'],_0xed994f),-_0xed994f),Math['max'](Math['min'](_0x43abcc['yMargin'],_0x517415),-_0x517415),this['view']['textDirection']==Direction['LTR']);}}function betweenUneditable(_0x3d8819){return 0x1==_0x3d8819['node']['nodeType']&&_0x3d8819['node']['firstChild']&&(0x0==_0x3d8819['offset']||'false'==_0x3d8819['node']['childNodes'][_0x3d8819['offset']-0x1]['contentEditable'])&&(_0x3d8819['offset']==_0x3d8819['node']['childNodes']['length']||'false'==_0x3d8819['node']['childNodes'][_0x3d8819['offset']]['contentEditable']);}function findCompositionNode(_0x55a150,_0x5e4f06){let _0x5dec38=_0x55a150['observer']['selectionRange'];if(!_0x5dec38['focusNode'])return null;let _0x460101=textNodeBefore(_0x5dec38['focusNode'],_0x5dec38['focusOffset']),_0x21abf3=textNodeAfter(_0x5dec38['focusNode'],_0x5dec38['focusOffset']),_0x42198b=_0x460101||_0x21abf3;if(_0x21abf3&&_0x460101&&_0x21abf3['node']!=_0x460101['node']){let _0x49a8c1=ContentView['get'](_0x21abf3['node']);if(!_0x49a8c1||_0x49a8c1 instanceof TextView&&_0x49a8c1['text']!=_0x21abf3['node']['nodeValue'])_0x42198b=_0x21abf3;else{if(_0x55a150['docView']['lastCompositionAfterCursor']){let _0x1ac558=ContentView['get'](_0x460101['node']);!_0x1ac558||_0x1ac558 instanceof TextView&&_0x1ac558['text']!=_0x460101['node']['nodeValue']||(_0x42198b=_0x21abf3);}}}if(_0x55a150['docView']['lastCompositionAfterCursor']=_0x42198b!=_0x460101,!_0x42198b)return null;let _0xecf411=_0x5e4f06-_0x42198b['offset'];return{'from':_0xecf411,'to':_0xecf411+_0x42198b['node']['nodeValue']['length'],'node':_0x42198b['node']};}function findCompositionRange(_0x27c156,_0x36f13f,_0xb79999){let _0x3734f8=findCompositionNode(_0x27c156,_0xb79999);if(!_0x3734f8)return null;let {node:_0x400425,from:_0x505661,to:_0x5f515b}=_0x3734f8,_0x1243fe=_0x400425['nodeValue'];if(/[\n\r]/['test'](_0x1243fe))return null;if(_0x27c156['state']['doc']['sliceString'](_0x3734f8['from'],_0x3734f8['to'])!=_0x1243fe)return null;let _0x27d9b5=_0x36f13f['invertedDesc'],_0x22d31d=new ChangedRange(_0x27d9b5['mapPos'](_0x505661),_0x27d9b5['mapPos'](_0x5f515b),_0x505661,_0x5f515b),_0x1a6e8f=[];for(let _0x4df528=_0x400425['parentNode'];;_0x4df528=_0x4df528['parentNode']){let _0x158169=ContentView['get'](_0x4df528);if(_0x158169 instanceof MarkView)_0x1a6e8f['push']({'node':_0x4df528,'deco':_0x158169['mark']});else{if(_0x158169 instanceof LineView||'DIV'==_0x4df528['nodeName']&&_0x4df528['parentNode']==_0x27c156['contentDOM'])return{'range':_0x22d31d,'text':_0x400425,'marks':_0x1a6e8f,'line':_0x4df528};if(_0x4df528==_0x27c156['contentDOM'])return null;_0x1a6e8f['push']({'node':_0x4df528,'deco':new MarkDecoration({'inclusive':!0x0,'attributes':getAttrs$1(_0x4df528),'tagName':_0x4df528['tagName']['toLowerCase']()})});}}}function nextToUneditable(_0x2a5867,_0x5f255d){return 0x1!=_0x2a5867['nodeType']?0x0:(_0x5f255d&&'false'==_0x2a5867['childNodes'][_0x5f255d-0x1]['contentEditable']?0x1:0x0)|(_0x5f255d<_0x2a5867['childNodes']['length']&&'false'==_0x2a5867['childNodes'][_0x5f255d]['contentEditable']?0x2:0x0);}let DecorationComparator$1=class{constructor(){this['changes']=[];}['compareRange'](_0x10976e,_0x1a22c5){addRange(_0x10976e,_0x1a22c5,this['changes']);}['comparePoint'](_0xa1270,_0x4c25a3){addRange(_0xa1270,_0x4c25a3,this['changes']);}['boundChange'](_0x32a178){addRange(_0x32a178,_0x32a178,this['changes']);}};function findChangedDeco(_0xfae737,_0x5c2156,_0x1a96a6){let _0x2fc54c=new DecorationComparator$1();return RangeSet['compare'](_0xfae737,_0x5c2156,_0x1a96a6,_0x2fc54c),_0x2fc54c['changes'];}function inUneditable(_0x1f98f0,_0x4e3f64){for(let _0x403d25=_0x1f98f0;_0x403d25&&_0x403d25!=_0x4e3f64;_0x403d25=_0x403d25['assignedSlot']||_0x403d25['parentNode'])if(0x1==_0x403d25['nodeType']&&'false'==_0x403d25['contentEditable'])return!0x0;return!0x1;}function touchesComposition(_0x46959b,_0x10c386){let _0x15b09d=!0x1;return _0x10c386&&_0x46959b['iterChangedRanges']((_0x1846e4,_0x1b455b)=>{_0x1846e4<_0x10c386['to']&&_0x1b455b>_0x10c386['from']&&(_0x15b09d=!0x0);}),_0x15b09d;}function groupAt(_0x4706bd,_0x405d53,_0x2f9f31=0x1){let _0x574ec6=_0x4706bd['charCategorizer'](_0x405d53),_0x2c9b4c=_0x4706bd['doc']['lineAt'](_0x405d53),_0x2b06f8=_0x405d53-_0x2c9b4c['from'];if(0x0==_0x2c9b4c['length'])return EditorSelection['cursor'](_0x405d53);0x0==_0x2b06f8?_0x2f9f31=0x1:_0x2b06f8==_0x2c9b4c['length']&&(_0x2f9f31=-0x1);let _0x112e28=_0x2b06f8,_0x1b3a3d=_0x2b06f8;_0x2f9f31<0x0?_0x112e28=findClusterBreak(_0x2c9b4c['text'],_0x2b06f8,!0x1):_0x1b3a3d=findClusterBreak(_0x2c9b4c['text'],_0x2b06f8);let _0x4c30ab=_0x574ec6(_0x2c9b4c['text']['slice'](_0x112e28,_0x1b3a3d));for(;_0x112e28>0x0;){let _0x3d68bc=findClusterBreak(_0x2c9b4c['text'],_0x112e28,!0x1);if(_0x574ec6(_0x2c9b4c['text']['slice'](_0x3d68bc,_0x112e28))!=_0x4c30ab)break;_0x112e28=_0x3d68bc;}for(;_0x1b3a3d<_0x2c9b4c['length'];){let _0x15f8a0=findClusterBreak(_0x2c9b4c['text'],_0x1b3a3d);if(_0x574ec6(_0x2c9b4c['text']['slice'](_0x1b3a3d,_0x15f8a0))!=_0x4c30ab)break;_0x1b3a3d=_0x15f8a0;}return EditorSelection['range'](_0x112e28+_0x2c9b4c['from'],_0x1b3a3d+_0x2c9b4c['from']);}function getdx(_0x387fb5,_0x1c7c56){return _0x1c7c56['left']>_0x387fb5?_0x1c7c56['left']-_0x387fb5:Math['max'](0x0,_0x387fb5-_0x1c7c56['right']);}function getdy(_0x5d124f,_0x3412ba){return _0x3412ba['top']>_0x5d124f?_0x3412ba['top']-_0x5d124f:Math['max'](0x0,_0x5d124f-_0x3412ba['bottom']);}function yOverlap(_0x2aa020,_0x1bc82e){return _0x2aa020['top']<_0x1bc82e['bottom']-0x1&&_0x2aa020['bottom']>_0x1bc82e['top']+0x1;}function upTop(_0xec877,_0x2869a8){return _0x2869a8<_0xec877['top']?{'top':_0x2869a8,'left':_0xec877['left'],'right':_0xec877['right'],'bottom':_0xec877['bottom']}:_0xec877;}function upBot(_0x437780,_0x1ff3a2){return _0x1ff3a2>_0x437780['bottom']?{'top':_0x437780['top'],'left':_0x437780['left'],'right':_0x437780['right'],'bottom':_0x1ff3a2}:_0x437780;}function domPosAtCoords(_0x423866,_0x4bea3f,_0x353f17){let _0x44e505,_0x4a80ba,_0x161ef4,_0xfb0fb5,_0x5c6d4f,_0x1fa864,_0x2ed434,_0x46ad5a,_0x4196ee=!0x1;for(let _0x29566c=_0x423866['firstChild'];_0x29566c;_0x29566c=_0x29566c['nextSibling']){let _0x40bea4=clientRectsFor(_0x29566c);for(let _0x5127b1=0x0;_0x5127b1<_0x40bea4['length'];_0x5127b1++){let _0x2d389d=_0x40bea4[_0x5127b1];_0x4a80ba&&yOverlap(_0x4a80ba,_0x2d389d)&&(_0x2d389d=upTop(upBot(_0x2d389d,_0x4a80ba['bottom']),_0x4a80ba['top']));let _0x1ac1c2=getdx(_0x4bea3f,_0x2d389d),_0x13e41a=getdy(_0x353f17,_0x2d389d);if(0x0==_0x1ac1c2&&0x0==_0x13e41a)return 0x3==_0x29566c['nodeType']?domPosInText(_0x29566c,_0x4bea3f,_0x353f17):domPosAtCoords(_0x29566c,_0x4bea3f,_0x353f17);(!_0x44e505||_0xfb0fb5>_0x13e41a||_0xfb0fb5==_0x13e41a&&_0x161ef4>_0x1ac1c2)&&(_0x44e505=_0x29566c,_0x4a80ba=_0x2d389d,_0x161ef4=_0x1ac1c2,_0xfb0fb5=_0x13e41a,_0x4196ee=!_0x1ac1c2||(_0x4bea3f<_0x2d389d['left']?_0x5127b1>0x0:_0x5127b1<_0x40bea4['length']-0x1)),0x0==_0x1ac1c2?_0x353f17>_0x2d389d['bottom']&&(!_0x2ed434||_0x2ed434['bottom']<_0x2d389d['bottom'])?(_0x5c6d4f=_0x29566c,_0x2ed434=_0x2d389d):_0x353f17<_0x2d389d['top']&&(!_0x46ad5a||_0x46ad5a['top']>_0x2d389d['top'])&&(_0x1fa864=_0x29566c,_0x46ad5a=_0x2d389d):_0x2ed434&&yOverlap(_0x2ed434,_0x2d389d)?_0x2ed434=upBot(_0x2ed434,_0x2d389d['bottom']):_0x46ad5a&&yOverlap(_0x46ad5a,_0x2d389d)&&(_0x46ad5a=upTop(_0x46ad5a,_0x2d389d['top']));}}if(_0x2ed434&&_0x2ed434['bottom']>=_0x353f17?(_0x44e505=_0x5c6d4f,_0x4a80ba=_0x2ed434):_0x46ad5a&&_0x46ad5a['top']<=_0x353f17&&(_0x44e505=_0x1fa864,_0x4a80ba=_0x46ad5a),!_0x44e505)return{'node':_0x423866,'offset':0x0};let _0x357425=Math['max'](_0x4a80ba['left'],Math['min'](_0x4a80ba['right'],_0x4bea3f));return 0x3==_0x44e505['nodeType']?domPosInText(_0x44e505,_0x357425,_0x353f17):_0x4196ee&&'false'!=_0x44e505['contentEditable']?domPosAtCoords(_0x44e505,_0x357425,_0x353f17):{'node':_0x423866,'offset':Array['prototype']['indexOf']['call'](_0x423866['childNodes'],_0x44e505)+(_0x4bea3f>=(_0x4a80ba['left']+_0x4a80ba['right'])/0x2?0x1:0x0)};}function domPosInText(_0x5b3c0f,_0x23a3e0,_0x5307a3){let _0xd6eb62=_0x5b3c0f['nodeValue']['length'],_0x7e7c07=-0x1,_0x4e5dc9=0x3b9aca00,_0x3af7b3=0x0;for(let _0x1624bf=0x0;_0x1624bf<_0xd6eb62;_0x1624bf++){let _0x1b2656=textRange(_0x5b3c0f,_0x1624bf,_0x1624bf+0x1)['getClientRects']();for(let _0x257d7d=0x0;_0x257d7d<_0x1b2656['length'];_0x257d7d++){let _0x3df7b0=_0x1b2656[_0x257d7d];if(_0x3df7b0['top']==_0x3df7b0['bottom'])continue;_0x3af7b3||(_0x3af7b3=_0x23a3e0-_0x3df7b0['left']);let _0x1298b8=(_0x3df7b0['top']>_0x5307a3?_0x3df7b0['top']-_0x5307a3:_0x5307a3-_0x3df7b0['bottom'])-0x1;if(_0x3df7b0['left']-0x1<=_0x23a3e0&&_0x3df7b0['right']+0x1>=_0x23a3e0&&_0x1298b8<_0x4e5dc9){let _0x1f1118=_0x23a3e0>=(_0x3df7b0['left']+_0x3df7b0['right'])/0x2,_0x451ab1=_0x1f1118;(browser['chrome']||browser['gecko'])&&(textRange(_0x5b3c0f,_0x1624bf)['getBoundingClientRect']()['left']==_0x3df7b0['right']&&(_0x451ab1=!_0x1f1118));if(_0x1298b8<=0x0)return{'node':_0x5b3c0f,'offset':_0x1624bf+(_0x451ab1?0x1:0x0)};_0x7e7c07=_0x1624bf+(_0x451ab1?0x1:0x0),_0x4e5dc9=_0x1298b8;}}}return{'node':_0x5b3c0f,'offset':_0x7e7c07>-0x1?_0x7e7c07:_0x3af7b3>0x0?_0x5b3c0f['nodeValue']['length']:0x0};}function posAtCoords(_0x124ab5,_0x42b754,_0x445e3c,_0x7aefed=-0x1){var _0x936656,_0x5d1ad7;let _0xc6b429,_0x2d7f15=_0x124ab5['contentDOM']['getBoundingClientRect'](),_0x5631c7=_0x2d7f15['top']+_0x124ab5['viewState']['paddingTop'],{docHeight:_0x5466cc}=_0x124ab5['viewState'],{x:_0x51f532,y:_0x30a7f6}=_0x42b754,_0x2e384b=_0x30a7f6-_0x5631c7;if(_0x2e384b<0x0)return 0x0;if(_0x2e384b>_0x5466cc)return _0x124ab5['state']['doc']['length'];for(let _0x36cfbf=_0x124ab5['viewState']['heightOracle']['textHeight']/0x2,_0x13bbd6=!0x1;_0xc6b429=_0x124ab5['elementAtHeight'](_0x2e384b),_0xc6b429['type']!=BlockType['Text'];)for(;_0x2e384b=_0x7aefed>0x0?_0xc6b429['bottom']+_0x36cfbf:_0xc6b429['top']-_0x36cfbf,!(_0x2e384b>=0x0&&_0x2e384b<=_0x5466cc);){if(_0x13bbd6)return _0x445e3c?null:0x0;_0x13bbd6=!0x0,_0x7aefed=-_0x7aefed;}_0x30a7f6=_0x5631c7+_0x2e384b;let _0x36c25d=_0xc6b429['from'];if(_0x36c25d<_0x124ab5['viewport']['from'])return 0x0==_0x124ab5['viewport']['from']?0x0:_0x445e3c?null:posAtCoordsImprecise(_0x124ab5,_0x2d7f15,_0xc6b429,_0x51f532,_0x30a7f6);if(_0x36c25d>_0x124ab5['viewport']['to'])return _0x124ab5['viewport']['to']==_0x124ab5['state']['doc']['length']?_0x124ab5['state']['doc']['length']:_0x445e3c?null:posAtCoordsImprecise(_0x124ab5,_0x2d7f15,_0xc6b429,_0x51f532,_0x30a7f6);let _0x325e14=_0x124ab5['dom']['ownerDocument'],_0x42bd43=_0x124ab5['root']['elementFromPoint']?_0x124ab5['root']:_0x325e14,_0xa74f80=_0x42bd43['elementFromPoint'](_0x51f532,_0x30a7f6);_0xa74f80&&!_0x124ab5['contentDOM']['contains'](_0xa74f80)&&(_0xa74f80=null),_0xa74f80||(_0x51f532=Math['max'](_0x2d7f15['left']+0x1,Math['min'](_0x2d7f15['right']-0x1,_0x51f532)),_0xa74f80=_0x42bd43['elementFromPoint'](_0x51f532,_0x30a7f6),_0xa74f80&&!_0x124ab5['contentDOM']['contains'](_0xa74f80)&&(_0xa74f80=null));let _0x4de2a4,_0x167d84=-0x1;if(_0xa74f80&&0x0!=(null===(_0x936656=_0x124ab5['docView']['nearest'](_0xa74f80))||void 0x0===_0x936656?void 0x0:_0x936656['isEditable'])){if(_0x325e14['caretPositionFromPoint']){let _0x5a027a=_0x325e14['caretPositionFromPoint'](_0x51f532,_0x30a7f6);_0x5a027a&&({offsetNode:_0x4de2a4,offset:_0x167d84}=_0x5a027a);}else{if(_0x325e14['caretRangeFromPoint']){let _0x19b6e5=_0x325e14['caretRangeFromPoint'](_0x51f532,_0x30a7f6);_0x19b6e5&&({startContainer:_0x4de2a4,startOffset:_0x167d84}=_0x19b6e5,(!_0x124ab5['contentDOM']['contains'](_0x4de2a4)||browser['safari']&&isSuspiciousSafariCaretResult(_0x4de2a4,_0x167d84,_0x51f532)||browser['chrome']&&isSuspiciousChromeCaretResult(_0x4de2a4,_0x167d84,_0x51f532))&&(_0x4de2a4=void 0x0));}}_0x4de2a4&&(_0x167d84=Math['min'](maxOffset(_0x4de2a4),_0x167d84));}if(!_0x4de2a4||!_0x124ab5['docView']['dom']['contains'](_0x4de2a4)){let _0x201cd6=LineView['find'](_0x124ab5['docView'],_0x36c25d);if(!_0x201cd6)return _0x2e384b>_0xc6b429['top']+_0xc6b429['height']/0x2?_0xc6b429['to']:_0xc6b429['from'];({node:_0x4de2a4,offset:_0x167d84}=domPosAtCoords(_0x201cd6['dom'],_0x51f532,_0x30a7f6));}let _0x3bbc2a=_0x124ab5['docView']['nearest'](_0x4de2a4);if(!_0x3bbc2a)return null;if(_0x3bbc2a['isWidget']&&0x1==(null===(_0x5d1ad7=_0x3bbc2a['dom'])||void 0x0===_0x5d1ad7?void 0x0:_0x5d1ad7['nodeType'])){let _0x4ba5b2=_0x3bbc2a['dom']['getBoundingClientRect']();return _0x42b754['y']<_0x4ba5b2['top']||_0x42b754['y']<=_0x4ba5b2['bottom']&&_0x42b754['x']<=(_0x4ba5b2['left']+_0x4ba5b2['right'])/0x2?_0x3bbc2a['posAtStart']:_0x3bbc2a['posAtEnd'];}return _0x3bbc2a['localPosFromDOM'](_0x4de2a4,_0x167d84)+_0x3bbc2a['posAtStart'];}function posAtCoordsImprecise(_0x5a879b,_0xfe3358,_0x222431,_0x2f1dfe,_0x873ee1){let _0x175352=Math['round']((_0x2f1dfe-_0xfe3358['left'])*_0x5a879b['defaultCharacterWidth']);if(_0x5a879b['lineWrapping']&&_0x222431['height']>1.5*_0x5a879b['defaultLineHeight']){let _0x23a071=_0x5a879b['viewState']['heightOracle']['textHeight'];_0x175352+=Math['floor']((_0x873ee1-_0x222431['top']-0.5*(_0x5a879b['defaultLineHeight']-_0x23a071))/_0x23a071)*_0x5a879b['viewState']['heightOracle']['lineLength'];}let _0x561e62=_0x5a879b['state']['sliceDoc'](_0x222431['from'],_0x222431['to']);return _0x222431['from']+findColumn(_0x561e62,_0x175352,_0x5a879b['state']['tabSize']);}function isSuspiciousSafariCaretResult(_0x1de951,_0x185d72,_0x8b5cb1){let _0x2e92b7,_0x3b3b89=_0x1de951;if(0x3!=_0x1de951['nodeType']||_0x185d72!=(_0x2e92b7=_0x1de951['nodeValue']['length']))return!0x1;for(;;){let _0x3005f6=_0x3b3b89['nextSibling'];if(_0x3005f6){if('BR'==_0x3005f6['nodeName'])break;return!0x1;}{let _0x21bd7f=_0x3b3b89['parentNode'];if(!_0x21bd7f||'DIV'==_0x21bd7f['nodeName'])break;_0x3b3b89=_0x21bd7f;}}return textRange(_0x1de951,_0x2e92b7-0x1,_0x2e92b7)['getBoundingClientRect']()['right']>_0x8b5cb1;}function isSuspiciousChromeCaretResult(_0xee8fb5,_0xfd50fd,_0x572837){if(0x0!=_0xfd50fd)return!0x1;for(let _0x1a7c82=_0xee8fb5;;){let _0x4b01d4=_0x1a7c82['parentNode'];if(!_0x4b01d4||0x1!=_0x4b01d4['nodeType']||_0x4b01d4['firstChild']!=_0x1a7c82)return!0x1;if(_0x4b01d4['classList']['contains']('cm-line'))break;_0x1a7c82=_0x4b01d4;}return _0x572837-(0x1==_0xee8fb5['nodeType']?_0xee8fb5['getBoundingClientRect']():textRange(_0xee8fb5,0x0,Math['max'](_0xee8fb5['nodeValue']['length'],0x1))['getBoundingClientRect']())['left']>0x5;}function blockAt(_0x130ae7,_0x1091c9,_0x5914fb){let _0x5459ae=_0x130ae7['lineBlockAt'](_0x1091c9);if(Array['isArray'](_0x5459ae['type'])){let _0x1187ed;for(let _0x40a693 of _0x5459ae['type']){if(_0x40a693['from']>_0x1091c9)break;if(!(_0x40a693['to']<_0x1091c9)){if(_0x40a693['from']<_0x1091c9&&_0x40a693['to']>_0x1091c9)return _0x40a693;_0x1187ed&&(_0x40a693['type']!=BlockType['Text']||_0x1187ed['type']==_0x40a693['type']&&!(_0x5914fb<0x0?_0x40a693['from']<_0x1091c9:_0x40a693['to']>_0x1091c9))||(_0x1187ed=_0x40a693);}}return _0x1187ed||_0x5459ae;}return _0x5459ae;}function moveToLineBoundary(_0x528c17,_0x4ef5e7,_0x14d062,_0x317cb0){let _0x5f01d8=blockAt(_0x528c17,_0x4ef5e7['head'],_0x4ef5e7['assoc']||-0x1),_0x4023e2=_0x317cb0&&_0x5f01d8['type']==BlockType['Text']&&(_0x528c17['lineWrapping']||_0x5f01d8['widgetLineBreaks'])?_0x528c17['coordsAtPos'](_0x4ef5e7['assoc']<0x0&&_0x4ef5e7['head']>_0x5f01d8['from']?_0x4ef5e7['head']-0x1:_0x4ef5e7['head']):null;if(_0x4023e2){let _0x3587f6=_0x528c17['dom']['getBoundingClientRect'](),_0x206c1d=_0x528c17['textDirectionAt'](_0x5f01d8['from']),_0x17249d=_0x528c17['posAtCoords']({'x':_0x14d062==(_0x206c1d==Direction['LTR'])?_0x3587f6['right']-0x1:_0x3587f6['left']+0x1,'y':(_0x4023e2['top']+_0x4023e2['bottom'])/0x2});if(null!=_0x17249d)return EditorSelection['cursor'](_0x17249d,_0x14d062?-0x1:0x1);}return EditorSelection['cursor'](_0x14d062?_0x5f01d8['to']:_0x5f01d8['from'],_0x14d062?-0x1:0x1);}function moveByChar(_0x17141b,_0x1532d5,_0xd9370e,_0x2f30f8){let _0x556793=_0x17141b['state']['doc']['lineAt'](_0x1532d5['head']),_0x3645a1=_0x17141b['bidiSpans'](_0x556793),_0x31ccea=_0x17141b['textDirectionAt'](_0x556793['from']);for(let _0x27132c=_0x1532d5,_0x350edf=null;;){let _0x5e5e1f=moveVisually(_0x556793,_0x3645a1,_0x31ccea,_0x27132c,_0xd9370e),_0x35624d=movedOver;if(!_0x5e5e1f){if(_0x556793['number']==(_0xd9370e?_0x17141b['state']['doc']['lines']:0x1))return _0x27132c;_0x35624d='\x0a',_0x556793=_0x17141b['state']['doc']['line'](_0x556793['number']+(_0xd9370e?0x1:-0x1)),_0x3645a1=_0x17141b['bidiSpans'](_0x556793),_0x5e5e1f=_0x17141b['visualLineSide'](_0x556793,!_0xd9370e);}if(_0x350edf){if(!_0x350edf(_0x35624d))return _0x27132c;}else{if(!_0x2f30f8)return _0x5e5e1f;_0x350edf=_0x2f30f8(_0x35624d);}_0x27132c=_0x5e5e1f;}}function byGroup(_0x48b0f2,_0x25cd76,_0x5c5733){let _0x1b8259=_0x48b0f2['state']['charCategorizer'](_0x25cd76),_0x660203=_0x1b8259(_0x5c5733);return _0x3f71da=>{let _0x1f5481=_0x1b8259(_0x3f71da);return _0x660203==CharCategory['Space']&&(_0x660203=_0x1f5481),_0x660203==_0x1f5481;};}function moveVertically(_0x29b2a7,_0x5b38ba,_0x18ab1e,_0x57889d){let _0x52cea6=_0x5b38ba['head'],_0x3bfe2f=_0x18ab1e?0x1:-0x1;if(_0x52cea6==(_0x18ab1e?_0x29b2a7['state']['doc']['length']:0x0))return EditorSelection['cursor'](_0x52cea6,_0x5b38ba['assoc']);let _0x174e23,_0x2f7346=_0x5b38ba['goalColumn'],_0x235344=_0x29b2a7['contentDOM']['getBoundingClientRect'](),_0x4b353d=_0x29b2a7['coordsAtPos'](_0x52cea6,_0x5b38ba['assoc']||-0x1),_0x5cbf7d=_0x29b2a7['documentTop'];if(_0x4b353d)null==_0x2f7346&&(_0x2f7346=_0x4b353d['left']-_0x235344['left']),_0x174e23=_0x3bfe2f<0x0?_0x4b353d['top']:_0x4b353d['bottom'];else{let _0x1966e5=_0x29b2a7['viewState']['lineBlockAt'](_0x52cea6);null==_0x2f7346&&(_0x2f7346=Math['min'](_0x235344['right']-_0x235344['left'],_0x29b2a7['defaultCharacterWidth']*(_0x52cea6-_0x1966e5['from']))),_0x174e23=(_0x3bfe2f<0x0?_0x1966e5['top']:_0x1966e5['bottom'])+_0x5cbf7d;}let _0xeec186=_0x235344['left']+_0x2f7346,_0x5744bf=null!=_0x57889d?_0x57889d:_0x29b2a7['viewState']['heightOracle']['textHeight']>>0x1;for(let _0x510b22=0x0;;_0x510b22+=0xa){let _0x1d9573=_0x174e23+(_0x5744bf+_0x510b22)*_0x3bfe2f,_0x452cac=posAtCoords(_0x29b2a7,{'x':_0xeec186,'y':_0x1d9573},!0x1,_0x3bfe2f);if(_0x1d9573<_0x235344['top']||_0x1d9573>_0x235344['bottom']||(_0x3bfe2f<0x0?_0x452cac<_0x52cea6:_0x452cac>_0x52cea6)){let _0x2c6132=_0x29b2a7['docView']['coordsForChar'](_0x452cac),_0x1d7b43=!_0x2c6132||_0x1d9573<_0x2c6132['top']?-0x1:0x1;return EditorSelection['cursor'](_0x452cac,_0x1d7b43,void 0x0,_0x2f7346);}}}function skipAtomicRanges(_0x5897d2,_0x11ddd5,_0x5ce8fe){for(;;){let _0x534173=0x0;for(let _0x419a64 of _0x5897d2)_0x419a64['between'](_0x11ddd5-0x1,_0x11ddd5+0x1,(_0x168a72,_0x292789,_0x327bfd)=>{if(_0x11ddd5>_0x168a72&&_0x11ddd5<_0x292789){let _0x631535=_0x534173||_0x5ce8fe||(_0x11ddd5-_0x168a72<_0x292789-_0x11ddd5?-0x1:0x1);_0x11ddd5=_0x631535<0x0?_0x168a72:_0x292789,_0x534173=_0x631535;}});if(!_0x534173)return _0x11ddd5;}}function skipAtomsForSelection(_0x591e56,_0xec43f7){let _0x402f03=null;for(let _0x588ed2=0x0;_0x588ed2<_0xec43f7['ranges']['length'];_0x588ed2++){let _0x15d860=_0xec43f7['ranges'][_0x588ed2],_0x4e219a=null;if(_0x15d860['empty']){let _0x294e67=skipAtomicRanges(_0x591e56,_0x15d860['from'],0x0);_0x294e67!=_0x15d860['from']&&(_0x4e219a=EditorSelection['cursor'](_0x294e67,-0x1));}else{let _0x335372=skipAtomicRanges(_0x591e56,_0x15d860['from'],-0x1),_0x7d605d=skipAtomicRanges(_0x591e56,_0x15d860['to'],0x1);_0x335372==_0x15d860['from']&&_0x7d605d==_0x15d860['to']||(_0x4e219a=EditorSelection['range'](_0x15d860['from']==_0x15d860['anchor']?_0x335372:_0x7d605d,_0x15d860['from']==_0x15d860['head']?_0x335372:_0x7d605d));}_0x4e219a&&(_0x402f03||(_0x402f03=_0xec43f7['ranges']['slice']()),_0x402f03[_0x588ed2]=_0x4e219a);}return _0x402f03?EditorSelection['create'](_0x402f03,_0xec43f7['mainIndex']):_0xec43f7;}function skipAtoms(_0x2a86f7,_0x204ab0,_0x4b444a){let _0x268c39=skipAtomicRanges(_0x2a86f7['state']['facet'](atomicRanges)['map'](_0x22c60a=>_0x22c60a(_0x2a86f7)),_0x4b444a['from'],_0x204ab0['head']>_0x4b444a['from']?-0x1:0x1);return _0x268c39==_0x4b444a['from']?_0x4b444a:EditorSelection['cursor'](_0x268c39,_0x268c39<_0x4b444a['from']?0x1:-0x1);}const LineBreakPlaceholder='';class DOMReader{constructor(_0x2dcba5,_0x13bbfc){this['points']=_0x2dcba5,this['text']='',this['lineSeparator']=_0x13bbfc['facet'](EditorState['lineSeparator']);}['append'](_0x34fd72){this['text']+=_0x34fd72;}['lineBreak'](){this['text']+=LineBreakPlaceholder;}['readRange'](_0x793cc6,_0x1bfd3b){if(!_0x793cc6)return this;let _0x3b9075=_0x793cc6['parentNode'];for(let _0x34b179=_0x793cc6;;){this['findPointBefore'](_0x3b9075,_0x34b179);let _0x1a6e45=this['text']['length'];this['readNode'](_0x34b179);let _0x4a0a15=_0x34b179['nextSibling'];if(_0x4a0a15==_0x1bfd3b)break;let _0x1291c0=ContentView['get'](_0x34b179),_0x2b4eab=ContentView['get'](_0x4a0a15);(_0x1291c0&&_0x2b4eab?_0x1291c0['breakAfter']:(_0x1291c0?_0x1291c0['breakAfter']:isBlockElement(_0x34b179))||isBlockElement(_0x4a0a15)&&('BR'!=_0x34b179['nodeName']||_0x34b179['cmIgnore'])&&this['text']['length']>_0x1a6e45)&&this['lineBreak'](),_0x34b179=_0x4a0a15;}return this['findPointBefore'](_0x3b9075,_0x1bfd3b),this;}['readTextNode'](_0x2dbfa7){let _0x5c1243=_0x2dbfa7['nodeValue'];for(let _0x340f68 of this['points'])_0x340f68['node']==_0x2dbfa7&&(_0x340f68['pos']=this['text']['length']+Math['min'](_0x340f68['offset'],_0x5c1243['length']));for(let _0x163768=0x0,_0x1d3a48=this['lineSeparator']?null:/\r\n?|\n/g;;){let _0x27810b,_0xc0d365=-0x1,_0x53f45b=0x1;if(this['lineSeparator']?(_0xc0d365=_0x5c1243['indexOf'](this['lineSeparator'],_0x163768),_0x53f45b=this['lineSeparator']['length']):(_0x27810b=_0x1d3a48['exec'](_0x5c1243))&&(_0xc0d365=_0x27810b['index'],_0x53f45b=_0x27810b[0x0]['length']),this['append'](_0x5c1243['slice'](_0x163768,_0xc0d365<0x0?_0x5c1243['length']:_0xc0d365)),_0xc0d365<0x0)break;if(this['lineBreak'](),_0x53f45b>0x1){for(let _0x84ab78 of this['points'])_0x84ab78['node']==_0x2dbfa7&&_0x84ab78['pos']>this['text']['length']&&(_0x84ab78['pos']-=_0x53f45b-0x1);}_0x163768=_0xc0d365+_0x53f45b;}}['readNode'](_0x4049a7){if(_0x4049a7['cmIgnore'])return;let _0x3f7ae3=ContentView['get'](_0x4049a7),_0x2de47d=_0x3f7ae3&&_0x3f7ae3['overrideDOMText'];if(null!=_0x2de47d){this['findPointInside'](_0x4049a7,_0x2de47d['length']);for(let _0x176373=_0x2de47d['iter']();!_0x176373['next']()['done'];)_0x176373['lineBreak']?this['lineBreak']():this['append'](_0x176373['value']);}else 0x3==_0x4049a7['nodeType']?this['readTextNode'](_0x4049a7):'BR'==_0x4049a7['nodeName']?_0x4049a7['nextSibling']&&this['lineBreak']():0x1==_0x4049a7['nodeType']&&this['readRange'](_0x4049a7['firstChild'],null);}['findPointBefore'](_0x5bdbd3,_0x2616b6){for(let _0x209ff1 of this['points'])_0x209ff1['node']==_0x5bdbd3&&_0x5bdbd3['childNodes'][_0x209ff1['offset']]==_0x2616b6&&(_0x209ff1['pos']=this['text']['length']);}['findPointInside'](_0x419555,_0x49b6d0){for(let _0x5c5916 of this['points'])(0x3==_0x419555['nodeType']?_0x5c5916['node']==_0x419555:_0x419555['contains'](_0x5c5916['node']))&&(_0x5c5916['pos']=this['text']['length']+(isAtEnd(_0x419555,_0x5c5916['node'],_0x5c5916['offset'])?_0x49b6d0:0x0));}}function isAtEnd(_0x59fdcb,_0x34fc59,_0x15e066){for(;;){if(!_0x34fc59||_0x15e066<maxOffset(_0x34fc59))return!0x1;if(_0x34fc59==_0x59fdcb)return!0x0;_0x15e066=domIndex(_0x34fc59)+0x1,_0x34fc59=_0x34fc59['parentNode'];}}class DOMPoint{constructor(_0x4b02d3,_0x7f0135){this['node']=_0x4b02d3,this['offset']=_0x7f0135,this['pos']=-0x1;}}class DOMChange{constructor(_0x1654de,_0x55e0a3,_0x3b1d4a,_0xd839c4){this['typeOver']=_0xd839c4,this['bounds']=null,this['text']='',this['domChanged']=_0x55e0a3>-0x1;let {impreciseHead:_0x1c2bc5,impreciseAnchor:_0x2e8198}=_0x1654de['docView'];if(_0x1654de['state']['readOnly']&&_0x55e0a3>-0x1)this['newSel']=null;else{if(_0x55e0a3>-0x1&&(this['bounds']=_0x1654de['docView']['domBoundsAround'](_0x55e0a3,_0x3b1d4a,0x0))){let _0x8f9410=_0x1c2bc5||_0x2e8198?[]:selectionPoints(_0x1654de),_0x57afdd=new DOMReader(_0x8f9410,_0x1654de['state']);_0x57afdd['readRange'](this['bounds']['startDOM'],this['bounds']['endDOM']),this['text']=_0x57afdd['text'],this['newSel']=selectionFromPoints(_0x8f9410,this['bounds']['from']);}else{let _0x4e9380=_0x1654de['observer']['selectionRange'],_0x18af9e=_0x1c2bc5&&_0x1c2bc5['node']==_0x4e9380['focusNode']&&_0x1c2bc5['offset']==_0x4e9380['focusOffset']||!contains(_0x1654de['contentDOM'],_0x4e9380['focusNode'])?_0x1654de['state']['selection']['main']['head']:_0x1654de['docView']['posFromDOM'](_0x4e9380['focusNode'],_0x4e9380['focusOffset']),_0x18335b=_0x2e8198&&_0x2e8198['node']==_0x4e9380['anchorNode']&&_0x2e8198['offset']==_0x4e9380['anchorOffset']||!contains(_0x1654de['contentDOM'],_0x4e9380['anchorNode'])?_0x1654de['state']['selection']['main']['anchor']:_0x1654de['docView']['posFromDOM'](_0x4e9380['anchorNode'],_0x4e9380['anchorOffset']),_0x5edf11=_0x1654de['viewport'];if((browser['ios']||browser['chrome'])&&_0x1654de['state']['selection']['main']['empty']&&_0x18af9e!=_0x18335b&&(_0x5edf11['from']>0x0||_0x5edf11['to']<_0x1654de['state']['doc']['length'])){let _0x3a912=Math['min'](_0x18af9e,_0x18335b),_0x5bef6b=Math['max'](_0x18af9e,_0x18335b),_0x4ea413=_0x5edf11['from']-_0x3a912,_0x24d865=_0x5edf11['to']-_0x5bef6b;0x0!=_0x4ea413&&0x1!=_0x4ea413&&0x0!=_0x3a912||0x0!=_0x24d865&&-0x1!=_0x24d865&&_0x5bef6b!=_0x1654de['state']['doc']['length']||(_0x18af9e=0x0,_0x18335b=_0x1654de['state']['doc']['length']);}this['newSel']=EditorSelection['single'](_0x18335b,_0x18af9e);}}}}function applyDOMChange(_0x5ef26a,_0x4ccafd){let _0x295124,{newSel:_0x5d1130}=_0x4ccafd,_0x3cba6d=_0x5ef26a['state']['selection']['main'],_0x3b72a3=_0x5ef26a['inputState']['lastKeyTime']>Date['now']()-0x64?_0x5ef26a['inputState']['lastKeyCode']:-0x1;if(_0x4ccafd['bounds']){let {from:_0xb0d012,to:_0xb4f1ca}=_0x4ccafd['bounds'],_0x30ae11=_0x3cba6d['from'],_0x5b39a5=null;(0x8===_0x3b72a3||browser['android']&&_0x4ccafd['text']['length']<_0xb4f1ca-_0xb0d012)&&(_0x30ae11=_0x3cba6d['to'],_0x5b39a5='end');let _0x3a5347=findDiff(_0x5ef26a['state']['doc']['sliceString'](_0xb0d012,_0xb4f1ca,LineBreakPlaceholder),_0x4ccafd['text'],_0x30ae11-_0xb0d012,_0x5b39a5);_0x3a5347&&(browser['chrome']&&0xd==_0x3b72a3&&_0x3a5347['toB']==_0x3a5347['from']+0x2&&_0x4ccafd['text']['slice'](_0x3a5347['from'],_0x3a5347['toB'])==LineBreakPlaceholder+LineBreakPlaceholder&&_0x3a5347['toB']--,_0x295124={'from':_0xb0d012+_0x3a5347['from'],'to':_0xb0d012+_0x3a5347['toA'],'insert':Text['of'](_0x4ccafd['text']['slice'](_0x3a5347['from'],_0x3a5347['toB'])['split'](LineBreakPlaceholder))});}else _0x5d1130&&(!_0x5ef26a['hasFocus']&&_0x5ef26a['state']['facet'](editable)||_0x5d1130['main']['eq'](_0x3cba6d))&&(_0x5d1130=null);if(!_0x295124&&!_0x5d1130)return!0x1;if(!_0x295124&&_0x4ccafd['typeOver']&&!_0x3cba6d['empty']&&_0x5d1130&&_0x5d1130['main']['empty']?_0x295124={'from':_0x3cba6d['from'],'to':_0x3cba6d['to'],'insert':_0x5ef26a['state']['doc']['slice'](_0x3cba6d['from'],_0x3cba6d['to'])}:(browser['mac']||browser['android'])&&_0x295124&&_0x295124['from']==_0x295124['to']&&_0x295124['from']==_0x3cba6d['head']-0x1&&/^\. ?$/['test'](_0x295124['insert']['toString']())&&'off'==_0x5ef26a['contentDOM']['getAttribute']('autocorrect')?(_0x5d1130&&0x2==_0x295124['insert']['length']&&(_0x5d1130=EditorSelection['single'](_0x5d1130['main']['anchor']-0x1,_0x5d1130['main']['head']-0x1)),_0x295124={'from':_0x295124['from'],'to':_0x295124['to'],'insert':Text['of']([_0x295124['insert']['toString']()['replace']('.','\x20')])}):_0x295124&&_0x295124['from']>=_0x3cba6d['from']&&_0x295124['to']<=_0x3cba6d['to']&&(_0x295124['from']!=_0x3cba6d['from']||_0x295124['to']!=_0x3cba6d['to'])&&_0x3cba6d['to']-_0x3cba6d['from']-(_0x295124['to']-_0x295124['from'])<=0x4?_0x295124={'from':_0x3cba6d['from'],'to':_0x3cba6d['to'],'insert':_0x5ef26a['state']['doc']['slice'](_0x3cba6d['from'],_0x295124['from'])['append'](_0x295124['insert'])['append'](_0x5ef26a['state']['doc']['slice'](_0x295124['to'],_0x3cba6d['to']))}:browser['chrome']&&_0x295124&&_0x295124['from']==_0x295124['to']&&_0x295124['from']==_0x3cba6d['head']&&'\x0a\x20'==_0x295124['insert']['toString']()&&_0x5ef26a['lineWrapping']&&(_0x5d1130&&(_0x5d1130=EditorSelection['single'](_0x5d1130['main']['anchor']-0x1,_0x5d1130['main']['head']-0x1)),_0x295124={'from':_0x3cba6d['from'],'to':_0x3cba6d['to'],'insert':Text['of'](['\x20'])}),_0x295124)return applyDOMChangeInner(_0x5ef26a,_0x295124,_0x5d1130,_0x3b72a3);if(_0x5d1130&&!_0x5d1130['main']['eq'](_0x3cba6d)){let _0x86057a=!0x1,_0xd75ac6='select';return _0x5ef26a['inputState']['lastSelectionTime']>Date['now']()-0x32&&('select'==_0x5ef26a['inputState']['lastSelectionOrigin']&&(_0x86057a=!0x0),_0xd75ac6=_0x5ef26a['inputState']['lastSelectionOrigin'],'select.pointer'==_0xd75ac6&&(_0x5d1130=skipAtomsForSelection(_0x5ef26a['state']['facet'](atomicRanges)['map'](_0x3b9644=>_0x3b9644(_0x5ef26a)),_0x5d1130))),_0x5ef26a['dispatch']({'selection':_0x5d1130,'scrollIntoView':_0x86057a,'userEvent':_0xd75ac6}),!0x0;}return!0x1;}function applyDOMChangeInner(_0xaf9056,_0x27bdca,_0x5ba75c,_0x2c2144=-0x1){if(browser['ios']&&_0xaf9056['inputState']['flushIOSKey'](_0x27bdca))return!0x0;let _0x538fc4=_0xaf9056['state']['selection']['main'];if(browser['android']&&(_0x27bdca['to']==_0x538fc4['to']&&(_0x27bdca['from']==_0x538fc4['from']||_0x27bdca['from']==_0x538fc4['from']-0x1&&'\x20'==_0xaf9056['state']['sliceDoc'](_0x27bdca['from'],_0x538fc4['from']))&&0x1==_0x27bdca['insert']['length']&&0x2==_0x27bdca['insert']['lines']&&dispatchKey(_0xaf9056['contentDOM'],'Enter',0xd)||(_0x27bdca['from']==_0x538fc4['from']-0x1&&_0x27bdca['to']==_0x538fc4['to']&&0x0==_0x27bdca['insert']['length']||0x8==_0x2c2144&&_0x27bdca['insert']['length']<_0x27bdca['to']-_0x27bdca['from']&&_0x27bdca['to']>_0x538fc4['head'])&&dispatchKey(_0xaf9056['contentDOM'],'Backspace',0x8)||_0x27bdca['from']==_0x538fc4['from']&&_0x27bdca['to']==_0x538fc4['to']+0x1&&0x0==_0x27bdca['insert']['length']&&dispatchKey(_0xaf9056['contentDOM'],'Delete',0x2e)))return!0x0;let _0x485c25,_0x300d64=_0x27bdca['insert']['toString']();_0xaf9056['inputState']['composing']>=0x0&&_0xaf9056['inputState']['composing']++;let _0x195a7c=()=>_0x485c25||(_0x485c25=applyDefaultInsert(_0xaf9056,_0x27bdca,_0x5ba75c));return _0xaf9056['state']['facet'](inputHandler$1)['some'](_0x58b258=>_0x58b258(_0xaf9056,_0x27bdca['from'],_0x27bdca['to'],_0x300d64,_0x195a7c))||_0xaf9056['dispatch'](_0x195a7c()),!0x0;}function applyDefaultInsert(_0x564519,_0x3c2305,_0x251293){let _0x5c3b5c,_0x495107=_0x564519['state'],_0x281cdb=_0x495107['selection']['main'];if(_0x3c2305['from']>=_0x281cdb['from']&&_0x3c2305['to']<=_0x281cdb['to']&&_0x3c2305['to']-_0x3c2305['from']>=(_0x281cdb['to']-_0x281cdb['from'])/0x3&&(!_0x251293||_0x251293['main']['empty']&&_0x251293['main']['from']==_0x3c2305['from']+_0x3c2305['insert']['length'])&&_0x564519['inputState']['composing']<0x0){let _0x5bf1d2=_0x281cdb['from']<_0x3c2305['from']?_0x495107['sliceDoc'](_0x281cdb['from'],_0x3c2305['from']):'',_0x3b5b9e=_0x281cdb['to']>_0x3c2305['to']?_0x495107['sliceDoc'](_0x3c2305['to'],_0x281cdb['to']):'';_0x5c3b5c=_0x495107['replaceSelection'](_0x564519['state']['toText'](_0x5bf1d2+_0x3c2305['insert']['sliceString'](0x0,void 0x0,_0x564519['state']['lineBreak'])+_0x3b5b9e));}else{let _0x1bc0b9=_0x495107['changes'](_0x3c2305),_0x8696bd=_0x251293&&_0x251293['main']['to']<=_0x1bc0b9['newLength']?_0x251293['main']:void 0x0;if(_0x495107['selection']['ranges']['length']>0x1&&_0x564519['inputState']['composing']>=0x0&&_0x3c2305['to']<=_0x281cdb['to']&&_0x3c2305['to']>=_0x281cdb['to']-0xa){let _0x2f73ea,_0x3d6a08=_0x564519['state']['sliceDoc'](_0x3c2305['from'],_0x3c2305['to']),_0x23085e=_0x251293&&findCompositionNode(_0x564519,_0x251293['main']['head']);if(_0x23085e){let _0x253a76=_0x3c2305['insert']['length']-(_0x3c2305['to']-_0x3c2305['from']);_0x2f73ea={'from':_0x23085e['from'],'to':_0x23085e['to']-_0x253a76};}else _0x2f73ea=_0x564519['state']['doc']['lineAt'](_0x281cdb['head']);let _0x10ad1e=_0x281cdb['to']-_0x3c2305['to'],_0x3caf2b=_0x281cdb['to']-_0x281cdb['from'];_0x5c3b5c=_0x495107['changeByRange'](_0x2e133d=>{if(_0x2e133d['from']==_0x281cdb['from']&&_0x2e133d['to']==_0x281cdb['to'])return{'changes':_0x1bc0b9,'range':_0x8696bd||_0x2e133d['map'](_0x1bc0b9)};let _0x43a37f=_0x2e133d['to']-_0x10ad1e,_0x4f6ba0=_0x43a37f-_0x3d6a08['length'];if(_0x2e133d['to']-_0x2e133d['from']!=_0x3caf2b||_0x564519['state']['sliceDoc'](_0x4f6ba0,_0x43a37f)!=_0x3d6a08||_0x2e133d['to']>=_0x2f73ea['from']&&_0x2e133d['from']<=_0x2f73ea['to'])return{'range':_0x2e133d};let _0x5c46dd=_0x495107['changes']({'from':_0x4f6ba0,'to':_0x43a37f,'insert':_0x3c2305['insert']}),_0x7805d7=_0x2e133d['to']-_0x281cdb['to'];return{'changes':_0x5c46dd,'range':_0x8696bd?EditorSelection['range'](Math['max'](0x0,_0x8696bd['anchor']+_0x7805d7),Math['max'](0x0,_0x8696bd['head']+_0x7805d7)):_0x2e133d['map'](_0x5c46dd)};});}else _0x5c3b5c={'changes':_0x1bc0b9,'selection':_0x8696bd&&_0x495107['selection']['replaceRange'](_0x8696bd)};}let _0x5192d3='input.type';return(_0x564519['composing']||_0x564519['inputState']['compositionPendingChange']&&_0x564519['inputState']['compositionEndedAt']>Date['now']()-0x32)&&(_0x564519['inputState']['compositionPendingChange']=!0x1,_0x5192d3+='.compose',_0x564519['inputState']['compositionFirstChange']&&(_0x5192d3+='.start',_0x564519['inputState']['compositionFirstChange']=!0x1)),_0x495107['update'](_0x5c3b5c,{'userEvent':_0x5192d3,'scrollIntoView':!0x0});}function findDiff(_0x18e188,_0x1a941f,_0x9c1541,_0x5e4485){let _0x48e364=Math['min'](_0x18e188['length'],_0x1a941f['length']),_0x2cd831=0x0;for(;_0x2cd831<_0x48e364&&_0x18e188['charCodeAt'](_0x2cd831)==_0x1a941f['charCodeAt'](_0x2cd831);)_0x2cd831++;if(_0x2cd831==_0x48e364&&_0x18e188['length']==_0x1a941f['length'])return null;let _0x4f4f6a=_0x18e188['length'],_0x218dc7=_0x1a941f['length'];for(;_0x4f4f6a>0x0&&_0x218dc7>0x0&&_0x18e188['charCodeAt'](_0x4f4f6a-0x1)==_0x1a941f['charCodeAt'](_0x218dc7-0x1);)_0x4f4f6a--,_0x218dc7--;'end'==_0x5e4485&&(_0x9c1541-=_0x4f4f6a+Math['max'](0x0,_0x2cd831-Math['min'](_0x4f4f6a,_0x218dc7))-_0x2cd831);if(_0x4f4f6a<_0x2cd831&&_0x18e188['length']<_0x1a941f['length'])_0x2cd831-=_0x9c1541<=_0x2cd831&&_0x9c1541>=_0x4f4f6a?_0x2cd831-_0x9c1541:0x0,_0x218dc7=_0x2cd831+(_0x218dc7-_0x4f4f6a),_0x4f4f6a=_0x2cd831;else _0x218dc7<_0x2cd831&&(_0x2cd831-=_0x9c1541<=_0x2cd831&&_0x9c1541>=_0x218dc7?_0x2cd831-_0x9c1541:0x0,_0x4f4f6a=_0x2cd831+(_0x4f4f6a-_0x218dc7),_0x218dc7=_0x2cd831);return{'from':_0x2cd831,'toA':_0x4f4f6a,'toB':_0x218dc7};}function selectionPoints(_0x15a54e){let _0x1af7b9=[];if(_0x15a54e['root']['activeElement']!=_0x15a54e['contentDOM'])return _0x1af7b9;let {anchorNode:_0x396e62,anchorOffset:_0x51bfc3,focusNode:_0x4cf1a9,focusOffset:_0x202859}=_0x15a54e['observer']['selectionRange'];return _0x396e62&&(_0x1af7b9['push'](new DOMPoint(_0x396e62,_0x51bfc3)),_0x4cf1a9==_0x396e62&&_0x202859==_0x51bfc3||_0x1af7b9['push'](new DOMPoint(_0x4cf1a9,_0x202859))),_0x1af7b9;}function selectionFromPoints(_0x132f28,_0x69aee8){if(0x0==_0x132f28['length'])return null;let _0x30fb11=_0x132f28[0x0]['pos'],_0x4c39d6=0x2==_0x132f28['length']?_0x132f28[0x1]['pos']:_0x30fb11;return _0x30fb11>-0x1&&_0x4c39d6>-0x1?EditorSelection['single'](_0x30fb11+_0x69aee8,_0x4c39d6+_0x69aee8):null;}class InputState{['setSelectionOrigin'](_0x453095){this['lastSelectionOrigin']=_0x453095,this['lastSelectionTime']=Date['now']();}constructor(_0x432c72){this['view']=_0x432c72,this['lastKeyCode']=0x0,this['lastKeyTime']=0x0,this['lastTouchTime']=0x0,this['lastFocusTime']=0x0,this['lastScrollTop']=0x0,this['lastScrollLeft']=0x0,this['pendingIOSKey']=void 0x0,this['tabFocusMode']=-0x1,this['lastSelectionOrigin']=null,this['lastSelectionTime']=0x0,this['lastContextMenu']=0x0,this['scrollHandlers']=[],this['handlers']=Object['create'](null),this['composing']=-0x1,this['compositionFirstChange']=null,this['compositionEndedAt']=0x0,this['compositionPendingKey']=!0x1,this['compositionPendingChange']=!0x1,this['mouseSelection']=null,this['draggedContent']=null,this['handleEvent']=this['handleEvent']['bind'](this),this['notifiedFocused']=_0x432c72['hasFocus'],browser['safari']&&_0x432c72['contentDOM']['addEventListener']('input',()=>null),browser['gecko']&&firefoxCopyCutHack(_0x432c72['contentDOM']['ownerDocument']);}['handleEvent'](_0x5554f4){eventBelongsToEditor(this['view'],_0x5554f4)&&!this['ignoreDuringComposition'](_0x5554f4)&&('keydown'==_0x5554f4['type']&&this['keydown'](_0x5554f4)||(0x0!=this['view']['updateState']?Promise['resolve']()['then'](()=>this['runHandlers'](_0x5554f4['type'],_0x5554f4)):this['runHandlers'](_0x5554f4['type'],_0x5554f4)));}['runHandlers'](_0x340e4c,_0xb53b1c){let _0x4fbecc=this['handlers'][_0x340e4c];if(_0x4fbecc){for(let _0x3bedaa of _0x4fbecc['observers'])_0x3bedaa(this['view'],_0xb53b1c);for(let _0x3e7fb6 of _0x4fbecc['handlers']){if(_0xb53b1c['defaultPrevented'])break;if(_0x3e7fb6(this['view'],_0xb53b1c)){_0xb53b1c['preventDefault']();break;}}}}['ensureHandlers'](_0x81323b){let _0x924ba1=computeHandlers(_0x81323b),_0x439c93=this['handlers'],_0x109b95=this['view']['contentDOM'];for(let _0x12a569 in _0x924ba1)if('scroll'!=_0x12a569){let _0x29e55f=!_0x924ba1[_0x12a569]['handlers']['length'],_0x3ec7a6=_0x439c93[_0x12a569];_0x3ec7a6&&_0x29e55f!=!_0x3ec7a6['handlers']['length']&&(_0x109b95['removeEventListener'](_0x12a569,this['handleEvent']),_0x3ec7a6=null),_0x3ec7a6||_0x109b95['addEventListener'](_0x12a569,this['handleEvent'],{'passive':_0x29e55f});}for(let _0x270647 in _0x439c93)'scroll'==_0x270647||_0x924ba1[_0x270647]||_0x109b95['removeEventListener'](_0x270647,this['handleEvent']);this['handlers']=_0x924ba1;}['keydown'](_0x2b67f0){if(this['lastKeyCode']=_0x2b67f0['keyCode'],this['lastKeyTime']=Date['now'](),0x9==_0x2b67f0['keyCode']&&this['tabFocusMode']>-0x1&&(!this['tabFocusMode']||Date['now']()<=this['tabFocusMode']))return!0x0;if(this['tabFocusMode']>0x0&&0x1b!=_0x2b67f0['keyCode']&&modifierCodes['indexOf'](_0x2b67f0['keyCode'])<0x0&&(this['tabFocusMode']=-0x1),browser['android']&&browser['chrome']&&!_0x2b67f0['synthetic']&&(0xd==_0x2b67f0['keyCode']||0x8==_0x2b67f0['keyCode']))return this['view']['observer']['delayAndroidKey'](_0x2b67f0['key'],_0x2b67f0['keyCode']),!0x0;let _0x3a92a2;return!browser['ios']||_0x2b67f0['synthetic']||_0x2b67f0['altKey']||_0x2b67f0['metaKey']||!((_0x3a92a2=PendingKeys['find'](_0x571fce=>_0x571fce['keyCode']==_0x2b67f0['keyCode']))&&!_0x2b67f0['ctrlKey']||EmacsyPendingKeys['indexOf'](_0x2b67f0['key'])>-0x1&&_0x2b67f0['ctrlKey']&&!_0x2b67f0['shiftKey'])?(0xe5!=_0x2b67f0['keyCode']&&this['view']['observer']['forceFlush'](),!0x1):(this['pendingIOSKey']=_0x3a92a2||_0x2b67f0,setTimeout(()=>this['flushIOSKey'](),0xfa),!0x0);}['flushIOSKey'](_0x5979d3){let _0x5b81b7=this['pendingIOSKey'];return!!_0x5b81b7&&(!('Enter'==_0x5b81b7['key']&&_0x5979d3&&_0x5979d3['from']<_0x5979d3['to']&&/^\S+$/['test'](_0x5979d3['insert']['toString']()))&&(this['pendingIOSKey']=void 0x0,dispatchKey(this['view']['contentDOM'],_0x5b81b7['key'],_0x5b81b7['keyCode'],_0x5b81b7 instanceof KeyboardEvent?_0x5b81b7:void 0x0)));}['ignoreDuringComposition'](_0x4080f1){return!!/^key/['test'](_0x4080f1['type'])&&(this['composing']>0x0||!!(browser['safari']&&!browser['ios']&&this['compositionPendingKey']&&Date['now']()-this['compositionEndedAt']<0x64)&&(this['compositionPendingKey']=!0x1,!0x0));}['startMouseSelection'](_0x56efaa){this['mouseSelection']&&this['mouseSelection']['destroy'](),this['mouseSelection']=_0x56efaa;}['update'](_0x17c365){this['view']['observer']['update'](_0x17c365),this['mouseSelection']&&this['mouseSelection']['update'](_0x17c365),this['draggedContent']&&_0x17c365['docChanged']&&(this['draggedContent']=this['draggedContent']['map'](_0x17c365['changes'])),_0x17c365['transactions']['length']&&(this['lastKeyCode']=this['lastSelectionTime']=0x0);}['destroy'](){this['mouseSelection']&&this['mouseSelection']['destroy']();}}function bindHandler(_0x56e7a9,_0x46ad30){return(_0x31f79f,_0x58d575)=>{try{return _0x46ad30['call'](_0x56e7a9,_0x58d575,_0x31f79f);}catch(_0x527ee9){logException(_0x31f79f['state'],_0x527ee9);}};}function computeHandlers(_0x210065){let _0x56566f=Object['create'](null);function _0x5e869f(_0x343a98){return _0x56566f[_0x343a98]||(_0x56566f[_0x343a98]={'observers':[],'handlers':[]});}for(let _0x14552d of _0x210065){let _0x56fab1=_0x14552d['spec'],_0xc85f94=_0x56fab1&&_0x56fab1['plugin']['domEventHandlers'],_0x25b81f=_0x56fab1&&_0x56fab1['plugin']['domEventObservers'];if(_0xc85f94)for(let _0x57757e in _0xc85f94){let _0x49060b=_0xc85f94[_0x57757e];_0x49060b&&_0x5e869f(_0x57757e)['handlers']['push'](bindHandler(_0x14552d['value'],_0x49060b));}if(_0x25b81f)for(let _0x3a7b33 in _0x25b81f){let _0x2f0b90=_0x25b81f[_0x3a7b33];_0x2f0b90&&_0x5e869f(_0x3a7b33)['observers']['push'](bindHandler(_0x14552d['value'],_0x2f0b90));}}for(let _0x36a5b9 in handlers)_0x5e869f(_0x36a5b9)['handlers']['push'](handlers[_0x36a5b9]);for(let _0x33331e in observers)_0x5e869f(_0x33331e)['observers']['push'](observers[_0x33331e]);return _0x56566f;}const PendingKeys=[{'key':'Backspace','keyCode':0x8,'inputType':'deleteContentBackward'},{'key':'Enter','keyCode':0xd,'inputType':'insertParagraph'},{'key':'Enter','keyCode':0xd,'inputType':'insertLineBreak'},{'key':'Delete','keyCode':0x2e,'inputType':'deleteContentForward'}],EmacsyPendingKeys='dthko',modifierCodes=[0x10,0x11,0x12,0x14,0x5b,0x5c,0xe0,0xe1],dragScrollMargin=0x6;function dragScrollSpeed(_0x620ef3){return 0.7*Math['max'](0x0,_0x620ef3)+0x8;}function dist(_0x2cb76a,_0xcef9a2){return Math['max'](Math['abs'](_0x2cb76a['clientX']-_0xcef9a2['clientX']),Math['abs'](_0x2cb76a['clientY']-_0xcef9a2['clientY']));}class MouseSelection{constructor(_0x5dfa51,_0x33532c,_0x344478,_0x4b20ea){this['view']=_0x5dfa51,this['startEvent']=_0x33532c,this['style']=_0x344478,this['mustSelect']=_0x4b20ea,this['scrollSpeed']={'x':0x0,'y':0x0},this['scrolling']=-0x1,this['lastEvent']=_0x33532c,this['scrollParents']=scrollableParents(_0x5dfa51['contentDOM']),this['atoms']=_0x5dfa51['state']['facet'](atomicRanges)['map'](_0x34e0b5=>_0x34e0b5(_0x5dfa51));let _0xa30adc=_0x5dfa51['contentDOM']['ownerDocument'];_0xa30adc['addEventListener']('mousemove',this['move']=this['move']['bind'](this)),_0xa30adc['addEventListener']('mouseup',this['up']=this['up']['bind'](this)),this['extend']=_0x33532c['shiftKey'],this['multiple']=_0x5dfa51['state']['facet'](EditorState['allowMultipleSelections'])&&addsSelectionRange(_0x5dfa51,_0x33532c),this['dragging']=!(!isInPrimarySelection(_0x5dfa51,_0x33532c)||0x1!=getClickType(_0x33532c))&&null;}['start'](_0x4ea848){!0x1===this['dragging']&&this['select'](_0x4ea848);}['move'](_0x5b9e2e){if(0x0==_0x5b9e2e['buttons'])return this['destroy']();if(this['dragging']||null==this['dragging']&&dist(this['startEvent'],_0x5b9e2e)<0xa)return;this['select'](this['lastEvent']=_0x5b9e2e);let _0x4ac606=0x0,_0x5a2009=0x0,_0x30dd8f=0x0,_0x5a08c9=0x0,_0x53a67a=this['view']['win']['innerWidth'],_0x5dd9ef=this['view']['win']['innerHeight'];this['scrollParents']['x']&&({left:_0x30dd8f,right:_0x53a67a}=this['scrollParents']['x']['getBoundingClientRect']()),this['scrollParents']['y']&&({top:_0x5a08c9,bottom:_0x5dd9ef}=this['scrollParents']['y']['getBoundingClientRect']());let _0x17c7ff=getScrollMargins(this['view']);_0x5b9e2e['clientX']-_0x17c7ff['left']<=_0x30dd8f+dragScrollMargin?_0x4ac606=-dragScrollSpeed(_0x30dd8f-_0x5b9e2e['clientX']):_0x5b9e2e['clientX']+_0x17c7ff['right']>=_0x53a67a-dragScrollMargin&&(_0x4ac606=dragScrollSpeed(_0x5b9e2e['clientX']-_0x53a67a)),_0x5b9e2e['clientY']-_0x17c7ff['top']<=_0x5a08c9+dragScrollMargin?_0x5a2009=-dragScrollSpeed(_0x5a08c9-_0x5b9e2e['clientY']):_0x5b9e2e['clientY']+_0x17c7ff['bottom']>=_0x5dd9ef-dragScrollMargin&&(_0x5a2009=dragScrollSpeed(_0x5b9e2e['clientY']-_0x5dd9ef)),this['setScrollSpeed'](_0x4ac606,_0x5a2009);}['up'](_0x10980d){null==this['dragging']&&this['select'](this['lastEvent']),this['dragging']||_0x10980d['preventDefault'](),this['destroy']();}['destroy'](){this['setScrollSpeed'](0x0,0x0);let _0x3446d0=this['view']['contentDOM']['ownerDocument'];_0x3446d0['removeEventListener']('mousemove',this['move']),_0x3446d0['removeEventListener']('mouseup',this['up']),this['view']['inputState']['mouseSelection']=this['view']['inputState']['draggedContent']=null;}['setScrollSpeed'](_0x1b282f,_0x54f2c6){this['scrollSpeed']={'x':_0x1b282f,'y':_0x54f2c6},_0x1b282f||_0x54f2c6?this['scrolling']<0x0&&(this['scrolling']=setInterval(()=>this['scroll'](),0x32)):this['scrolling']>-0x1&&(clearInterval(this['scrolling']),this['scrolling']=-0x1);}['scroll'](){let {x:_0x1971c2,y:_0x14fa91}=this['scrollSpeed'];_0x1971c2&&this['scrollParents']['x']&&(this['scrollParents']['x']['scrollLeft']+=_0x1971c2,_0x1971c2=0x0),_0x14fa91&&this['scrollParents']['y']&&(this['scrollParents']['y']['scrollTop']+=_0x14fa91,_0x14fa91=0x0),(_0x1971c2||_0x14fa91)&&this['view']['win']['scrollBy'](_0x1971c2,_0x14fa91),!0x1===this['dragging']&&this['select'](this['lastEvent']);}['select'](_0x123070){let {view:_0x1ce762}=this,_0x4cb20=skipAtomsForSelection(this['atoms'],this['style']['get'](_0x123070,this['extend'],this['multiple']));!this['mustSelect']&&_0x4cb20['eq'](_0x1ce762['state']['selection'],!0x1===this['dragging'])||this['view']['dispatch']({'selection':_0x4cb20,'userEvent':'select.pointer'}),this['mustSelect']=!0x1;}['update'](_0x3f8a21){_0x3f8a21['transactions']['some'](_0x1ead42=>_0x1ead42['isUserEvent']('input.type'))?this['destroy']():this['style']['update'](_0x3f8a21)&&setTimeout(()=>this['select'](this['lastEvent']),0x14);}}function addsSelectionRange(_0x110d17,_0x5b4240){let _0x5420e2=_0x110d17['state']['facet'](clickAddsSelectionRange);return _0x5420e2['length']?_0x5420e2[0x0](_0x5b4240):browser['mac']?_0x5b4240['metaKey']:_0x5b4240['ctrlKey'];}function dragMovesSelection(_0x3e309c,_0x1479fb){let _0x2b5903=_0x3e309c['state']['facet'](dragMovesSelection$1);return _0x2b5903['length']?_0x2b5903[0x0](_0x1479fb):browser['mac']?!_0x1479fb['altKey']:!_0x1479fb['ctrlKey'];}function isInPrimarySelection(_0x1724c6,_0x17b5cd){let {main:_0x1b957d}=_0x1724c6['state']['selection'];if(_0x1b957d['empty'])return!0x1;let _0x3c18ee=getSelection(_0x1724c6['root']);if(!_0x3c18ee||0x0==_0x3c18ee['rangeCount'])return!0x0;let _0xfe8b2d=_0x3c18ee['getRangeAt'](0x0)['getClientRects']();for(let _0xf86d87=0x0;_0xf86d87<_0xfe8b2d['length'];_0xf86d87++){let _0x7a9def=_0xfe8b2d[_0xf86d87];if(_0x7a9def['left']<=_0x17b5cd['clientX']&&_0x7a9def['right']>=_0x17b5cd['clientX']&&_0x7a9def['top']<=_0x17b5cd['clientY']&&_0x7a9def['bottom']>=_0x17b5cd['clientY'])return!0x0;}return!0x1;}function eventBelongsToEditor(_0x1fc9eb,_0x5b0ef7){if(!_0x5b0ef7['bubbles'])return!0x0;if(_0x5b0ef7['defaultPrevented'])return!0x1;for(let _0x4e0a80,_0x2a6342=_0x5b0ef7['target'];_0x2a6342!=_0x1fc9eb['contentDOM'];_0x2a6342=_0x2a6342['parentNode'])if(!_0x2a6342||0xb==_0x2a6342['nodeType']||(_0x4e0a80=ContentView['get'](_0x2a6342))&&_0x4e0a80['ignoreEvent'](_0x5b0ef7))return!0x1;return!0x0;}const handlers=Object['create'](null),observers=Object['create'](null),brokenClipboardAPI=browser['ie']&&browser['ie_version']<0xf||browser['ios']&&browser['webkit_version']<0x25c;function capturePaste(_0x4cfc1a){let _0x2e9dff=_0x4cfc1a['dom']['parentNode'];if(!_0x2e9dff)return;let _0x44e2df=_0x2e9dff['appendChild'](document['createElement']('textarea'));_0x44e2df['style']['cssText']='position:\x20fixed;\x20left:\x20-10000px;\x20top:\x2010px',_0x44e2df['focus'](),setTimeout(()=>{_0x4cfc1a['focus'](),_0x44e2df['remove'](),doPaste(_0x4cfc1a,_0x44e2df['value']);},0x32);}function textFilter(_0x4b6f28,_0x357758,_0x5060e6){for(let _0x13cc2f of _0x4b6f28['facet'](_0x357758))_0x5060e6=_0x13cc2f(_0x5060e6,_0x4b6f28);return _0x5060e6;}function doPaste(_0x3f6ad6,_0x183398){_0x183398=textFilter(_0x3f6ad6['state'],clipboardInputFilter,_0x183398);let _0x51c961,{state:_0x350315}=_0x3f6ad6,_0x1f6971=0x1,_0x1d7cf4=_0x350315['toText'](_0x183398),_0xf41e12=_0x1d7cf4['lines']==_0x350315['selection']['ranges']['length'],_0x39ed8b=null!=lastLinewiseCopy&&_0x350315['selection']['ranges']['every'](_0x1bc266=>_0x1bc266['empty'])&&lastLinewiseCopy==_0x1d7cf4['toString']();if(_0x39ed8b){let _0x3f737f=-0x1;_0x51c961=_0x350315['changeByRange'](_0x5c4f5c=>{let _0xafdebb=_0x350315['doc']['lineAt'](_0x5c4f5c['from']);if(_0xafdebb['from']==_0x3f737f)return{'range':_0x5c4f5c};_0x3f737f=_0xafdebb['from'];let _0x2fe812=_0x350315['toText']((_0xf41e12?_0x1d7cf4['line'](_0x1f6971++)['text']:_0x183398)+_0x350315['lineBreak']);return{'changes':{'from':_0xafdebb['from'],'insert':_0x2fe812},'range':EditorSelection['cursor'](_0x5c4f5c['from']+_0x2fe812['length'])};});}else _0x51c961=_0xf41e12?_0x350315['changeByRange'](_0x22c3b1=>{let _0x6c46d9=_0x1d7cf4['line'](_0x1f6971++);return{'changes':{'from':_0x22c3b1['from'],'to':_0x22c3b1['to'],'insert':_0x6c46d9['text']},'range':EditorSelection['cursor'](_0x22c3b1['from']+_0x6c46d9['length'])};}):_0x350315['replaceSelection'](_0x1d7cf4);_0x3f6ad6['dispatch'](_0x51c961,{'userEvent':'input.paste','scrollIntoView':!0x0});}function rangeForClick(_0x3bf92f,_0x199282,_0x11b721,_0x94be36){if(0x1==_0x94be36)return EditorSelection['cursor'](_0x199282,_0x11b721);if(0x2==_0x94be36)return groupAt(_0x3bf92f['state'],_0x199282,_0x11b721);{let _0x3c1d2e=LineView['find'](_0x3bf92f['docView'],_0x199282),_0x557ec8=_0x3bf92f['state']['doc']['lineAt'](_0x3c1d2e?_0x3c1d2e['posAtEnd']:_0x199282),_0x2211c1=_0x3c1d2e?_0x3c1d2e['posAtStart']:_0x557ec8['from'],_0x1ea726=_0x3c1d2e?_0x3c1d2e['posAtEnd']:_0x557ec8['to'];return _0x1ea726<_0x3bf92f['state']['doc']['length']&&_0x1ea726==_0x557ec8['to']&&_0x1ea726++,EditorSelection['range'](_0x2211c1,_0x1ea726);}}observers['scroll']=_0x2a858f=>{_0x2a858f['inputState']['lastScrollTop']=_0x2a858f['scrollDOM']['scrollTop'],_0x2a858f['inputState']['lastScrollLeft']=_0x2a858f['scrollDOM']['scrollLeft'];},handlers['keydown']=(_0x4385e9,_0x59bd68)=>(_0x4385e9['inputState']['setSelectionOrigin']('select'),0x1b==_0x59bd68['keyCode']&&0x0!=_0x4385e9['inputState']['tabFocusMode']&&(_0x4385e9['inputState']['tabFocusMode']=Date['now']()+0x7d0),!0x1),observers['touchstart']=(_0xe04907,_0x148314)=>{_0xe04907['inputState']['lastTouchTime']=Date['now'](),_0xe04907['inputState']['setSelectionOrigin']('select.pointer');},observers['touchmove']=_0x4024b1=>{_0x4024b1['inputState']['setSelectionOrigin']('select.pointer');},handlers['mousedown']=(_0x556d1b,_0x4b0ec2)=>{if(_0x556d1b['observer']['flush'](),_0x556d1b['inputState']['lastTouchTime']>Date['now']()-0x7d0)return!0x1;let _0x4bc551=null;for(let _0x1e8a9f of _0x556d1b['state']['facet'](mouseSelectionStyle))if(_0x4bc551=_0x1e8a9f(_0x556d1b,_0x4b0ec2),_0x4bc551)break;if(_0x4bc551||0x0!=_0x4b0ec2['button']||(_0x4bc551=basicMouseSelection(_0x556d1b,_0x4b0ec2)),_0x4bc551){let _0x1d4053=!_0x556d1b['hasFocus'];_0x556d1b['inputState']['startMouseSelection'](new MouseSelection(_0x556d1b,_0x4b0ec2,_0x4bc551,_0x1d4053)),_0x1d4053&&_0x556d1b['observer']['ignore'](()=>{focusPreventScroll(_0x556d1b['contentDOM']);let _0x397e37=_0x556d1b['root']['activeElement'];_0x397e37&&!_0x397e37['contains'](_0x556d1b['contentDOM'])&&_0x397e37['blur']();});let _0x89ea0d=_0x556d1b['inputState']['mouseSelection'];if(_0x89ea0d)return _0x89ea0d['start'](_0x4b0ec2),!0x1===_0x89ea0d['dragging'];}else _0x556d1b['inputState']['setSelectionOrigin']('select.pointer');return!0x1;};let inside=(_0x4845cf,_0x2d8cd9,_0x5f5049)=>_0x2d8cd9>=_0x5f5049['top']&&_0x2d8cd9<=_0x5f5049['bottom']&&_0x4845cf>=_0x5f5049['left']&&_0x4845cf<=_0x5f5049['right'];function findPositionSide(_0x3345fd,_0x14fc17,_0x52cc82,_0x2b86cf){let _0x24ad7c=LineView['find'](_0x3345fd['docView'],_0x14fc17);if(!_0x24ad7c)return 0x1;let _0x259766=_0x14fc17-_0x24ad7c['posAtStart'];if(0x0==_0x259766)return 0x1;if(_0x259766==_0x24ad7c['length'])return-0x1;let _0x55f9a3=_0x24ad7c['coordsAt'](_0x259766,-0x1);if(_0x55f9a3&&inside(_0x52cc82,_0x2b86cf,_0x55f9a3))return-0x1;let _0x3626b8=_0x24ad7c['coordsAt'](_0x259766,0x1);return _0x3626b8&&inside(_0x52cc82,_0x2b86cf,_0x3626b8)?0x1:_0x55f9a3&&_0x55f9a3['bottom']>=_0x2b86cf?-0x1:0x1;}function queryPos(_0x4b3d83,_0x4147d0){let _0x1cc083=_0x4b3d83['posAtCoords']({'x':_0x4147d0['clientX'],'y':_0x4147d0['clientY']},!0x1);return{'pos':_0x1cc083,'bias':findPositionSide(_0x4b3d83,_0x1cc083,_0x4147d0['clientX'],_0x4147d0['clientY'])};}const BadMouseDetail=browser['ie']&&browser['ie_version']<=0xb;let lastMouseDown=null,lastMouseDownCount=0x0,lastMouseDownTime=0x0;function getClickType(_0x384ec1){if(!BadMouseDetail)return _0x384ec1['detail'];let _0x301205=lastMouseDown,_0x46752b=lastMouseDownTime;return lastMouseDown=_0x384ec1,lastMouseDownTime=Date['now'](),lastMouseDownCount=!_0x301205||_0x46752b>Date['now']()-0x190&&Math['abs'](_0x301205['clientX']-_0x384ec1['clientX'])<0x2&&Math['abs'](_0x301205['clientY']-_0x384ec1['clientY'])<0x2?(lastMouseDownCount+0x1)%0x3:0x1;}function basicMouseSelection(_0x512a9a,_0xbaeb6f){let _0x596653=queryPos(_0x512a9a,_0xbaeb6f),_0x145cea=getClickType(_0xbaeb6f),_0x6f80e9=_0x512a9a['state']['selection'];return{'update'(_0x2fb2a0){_0x2fb2a0['docChanged']&&(_0x596653['pos']=_0x2fb2a0['changes']['mapPos'](_0x596653['pos']),_0x6f80e9=_0x6f80e9['map'](_0x2fb2a0['changes']));},'get'(_0x2ae75b,_0x4bce60,_0x38dd8c){let _0x22b428,_0x1ac8f1=queryPos(_0x512a9a,_0x2ae75b),_0x17415d=rangeForClick(_0x512a9a,_0x1ac8f1['pos'],_0x1ac8f1['bias'],_0x145cea);if(_0x596653['pos']!=_0x1ac8f1['pos']&&!_0x4bce60){let _0x2c71c=rangeForClick(_0x512a9a,_0x596653['pos'],_0x596653['bias'],_0x145cea),_0x44a7fe=Math['min'](_0x2c71c['from'],_0x17415d['from']),_0x31b323=Math['max'](_0x2c71c['to'],_0x17415d['to']);_0x17415d=_0x44a7fe<_0x17415d['from']?EditorSelection['range'](_0x44a7fe,_0x31b323):EditorSelection['range'](_0x31b323,_0x44a7fe);}return _0x4bce60?_0x6f80e9['replaceRange'](_0x6f80e9['main']['extend'](_0x17415d['from'],_0x17415d['to'])):_0x38dd8c&&0x1==_0x145cea&&_0x6f80e9['ranges']['length']>0x1&&(_0x22b428=removeRangeAround(_0x6f80e9,_0x1ac8f1['pos']))?_0x22b428:_0x38dd8c?_0x6f80e9['addRange'](_0x17415d):EditorSelection['create']([_0x17415d]);}};}function removeRangeAround(_0x380687,_0x58ba15){for(let _0xc560a7=0x0;_0xc560a7<_0x380687['ranges']['length'];_0xc560a7++){let {from:_0x30911f,to:_0x5a2383}=_0x380687['ranges'][_0xc560a7];if(_0x30911f<=_0x58ba15&&_0x5a2383>=_0x58ba15)return EditorSelection['create'](_0x380687['ranges']['slice'](0x0,_0xc560a7)['concat'](_0x380687['ranges']['slice'](_0xc560a7+0x1)),_0x380687['mainIndex']==_0xc560a7?0x0:_0x380687['mainIndex']-(_0x380687['mainIndex']>_0xc560a7?0x1:0x0));}return null;}function dropText(_0x52e099,_0x2737d8,_0x441184,_0x2c135d){if(!(_0x441184=textFilter(_0x52e099['state'],clipboardInputFilter,_0x441184)))return;let _0x5f05f2=_0x52e099['posAtCoords']({'x':_0x2737d8['clientX'],'y':_0x2737d8['clientY']},!0x1),{draggedContent:_0x47c226}=_0x52e099['inputState'],_0xc5b191=_0x2c135d&&_0x47c226&&dragMovesSelection(_0x52e099,_0x2737d8)?{'from':_0x47c226['from'],'to':_0x47c226['to']}:null,_0x5c00f0={'from':_0x5f05f2,'insert':_0x441184},_0x4bbfd9=_0x52e099['state']['changes'](_0xc5b191?[_0xc5b191,_0x5c00f0]:_0x5c00f0);_0x52e099['focus'](),_0x52e099['dispatch']({'changes':_0x4bbfd9,'selection':{'anchor':_0x4bbfd9['mapPos'](_0x5f05f2,-0x1),'head':_0x4bbfd9['mapPos'](_0x5f05f2,0x1)},'userEvent':_0xc5b191?'move.drop':'input.drop'}),_0x52e099['inputState']['draggedContent']=null;}function captureCopy(_0x5bbf3b,_0x1d5314){let _0x545085=_0x5bbf3b['dom']['parentNode'];if(!_0x545085)return;let _0xd06b57=_0x545085['appendChild'](document['createElement']('textarea'));_0xd06b57['style']['cssText']='position:\x20fixed;\x20left:\x20-10000px;\x20top:\x2010px',_0xd06b57['value']=_0x1d5314,_0xd06b57['focus'](),_0xd06b57['selectionEnd']=_0x1d5314['length'],_0xd06b57['selectionStart']=0x0,setTimeout(()=>{_0xd06b57['remove'](),_0x5bbf3b['focus']();},0x32);}function copiedRange(_0x4d294d){let _0x3cb6f8=[],_0x4f8906=[],_0x36aebd=!0x1;for(let _0x4f6526 of _0x4d294d['selection']['ranges'])_0x4f6526['empty']||(_0x3cb6f8['push'](_0x4d294d['sliceDoc'](_0x4f6526['from'],_0x4f6526['to'])),_0x4f8906['push'](_0x4f6526));if(!_0x3cb6f8['length']){let _0x5e9266=-0x1;for(let {from:_0x3f8db4}of _0x4d294d['selection']['ranges']){let _0x45b0bb=_0x4d294d['doc']['lineAt'](_0x3f8db4);_0x45b0bb['number']>_0x5e9266&&(_0x3cb6f8['push'](_0x45b0bb['text']),_0x4f8906['push']({'from':_0x45b0bb['from'],'to':Math['min'](_0x4d294d['doc']['length'],_0x45b0bb['to']+0x1)})),_0x5e9266=_0x45b0bb['number'];}_0x36aebd=!0x0;}return{'text':textFilter(_0x4d294d,clipboardOutputFilter,_0x3cb6f8['join'](_0x4d294d['lineBreak'])),'ranges':_0x4f8906,'linewise':_0x36aebd};}handlers['dragstart']=(_0x93fff0,_0x2fb10b)=>{let {selection:{main:_0xa76bd6}}=_0x93fff0['state'];if(_0x2fb10b['target']['draggable']){let _0x41decc=_0x93fff0['docView']['nearest'](_0x2fb10b['target']);if(_0x41decc&&_0x41decc['isWidget']){let _0x575bed=_0x41decc['posAtStart'],_0x92be5b=_0x575bed+_0x41decc['length'];(_0x575bed>=_0xa76bd6['to']||_0x92be5b<=_0xa76bd6['from'])&&(_0xa76bd6=EditorSelection['range'](_0x575bed,_0x92be5b));}}let {inputState:_0x31eb8a}=_0x93fff0;return _0x31eb8a['mouseSelection']&&(_0x31eb8a['mouseSelection']['dragging']=!0x0),_0x31eb8a['draggedContent']=_0xa76bd6,_0x2fb10b['dataTransfer']&&(_0x2fb10b['dataTransfer']['setData']('Text',textFilter(_0x93fff0['state'],clipboardOutputFilter,_0x93fff0['state']['sliceDoc'](_0xa76bd6['from'],_0xa76bd6['to']))),_0x2fb10b['dataTransfer']['effectAllowed']='copyMove'),!0x1;},handlers['dragend']=_0x4a0467=>(_0x4a0467['inputState']['draggedContent']=null,!0x1),handlers['drop']=(_0x140221,_0xdcb571)=>{if(!_0xdcb571['dataTransfer'])return!0x1;if(_0x140221['state']['readOnly'])return!0x0;let _0x5d0016=_0xdcb571['dataTransfer']['files'];if(_0x5d0016&&_0x5d0016['length']){let _0x6e6a62=Array(_0x5d0016['length']),_0x24ea52=0x0,_0x5123f4=()=>{++_0x24ea52==_0x5d0016['length']&&dropText(_0x140221,_0xdcb571,_0x6e6a62['filter'](_0x55d355=>null!=_0x55d355)['join'](_0x140221['state']['lineBreak']),!0x1);};for(let _0x488cd8=0x0;_0x488cd8<_0x5d0016['length'];_0x488cd8++){let _0x27530a=new FileReader();_0x27530a['onerror']=_0x5123f4,_0x27530a['onload']=()=>{/[\x00-\x08\x0e-\x1f]{2}/['test'](_0x27530a['result'])||(_0x6e6a62[_0x488cd8]=_0x27530a['result']),_0x5123f4();},_0x27530a['readAsText'](_0x5d0016[_0x488cd8]);}return!0x0;}{let _0x457f29=_0xdcb571['dataTransfer']['getData']('Text');if(_0x457f29)return dropText(_0x140221,_0xdcb571,_0x457f29,!0x0),!0x0;}return!0x1;},handlers['paste']=(_0x4e2955,_0x2375a3)=>{if(_0x4e2955['state']['readOnly'])return!0x0;_0x4e2955['observer']['flush']();let _0x478d04=brokenClipboardAPI?null:_0x2375a3['clipboardData'];return _0x478d04?(doPaste(_0x4e2955,_0x478d04['getData']('text/plain')||_0x478d04['getData']('text/uri-list')),!0x0):(capturePaste(_0x4e2955),!0x1);};let lastLinewiseCopy=null;handlers['copy']=handlers['cut']=(_0x493a76,_0x119c6d)=>{let {text:_0x2ac72d,ranges:_0x22ac89,linewise:_0x34659d}=copiedRange(_0x493a76['state']);if(!_0x2ac72d&&!_0x34659d)return!0x1;lastLinewiseCopy=_0x34659d?_0x2ac72d:null,'cut'!=_0x119c6d['type']||_0x493a76['state']['readOnly']||_0x493a76['dispatch']({'changes':_0x22ac89,'scrollIntoView':!0x0,'userEvent':'delete.cut'});let _0x22f954=brokenClipboardAPI?null:_0x119c6d['clipboardData'];return _0x22f954?(_0x22f954['clearData'](),_0x22f954['setData']('text/plain',_0x2ac72d),!0x0):(captureCopy(_0x493a76,_0x2ac72d),!0x1);};const isFocusChange=Annotation['define']();function focusChangeTransaction(_0x38d185,_0xd54465){let _0x43f3f0=[];for(let _0x41b9ae of _0x38d185['facet'](focusChangeEffect)){let _0x5b123f=_0x41b9ae(_0x38d185,_0xd54465);_0x5b123f&&_0x43f3f0['push'](_0x5b123f);}return _0x43f3f0['length']?_0x38d185['update']({'effects':_0x43f3f0,'annotations':isFocusChange['of'](!0x0)}):null;}function updateForFocusChange(_0x19ae53){setTimeout(()=>{let _0x2c2fec=_0x19ae53['hasFocus'];if(_0x2c2fec!=_0x19ae53['inputState']['notifiedFocused']){let _0xd0804b=focusChangeTransaction(_0x19ae53['state'],_0x2c2fec);_0xd0804b?_0x19ae53['dispatch'](_0xd0804b):_0x19ae53['update']([]);}},0xa);}observers['focus']=_0x25edae=>{_0x25edae['inputState']['lastFocusTime']=Date['now'](),_0x25edae['scrollDOM']['scrollTop']||!_0x25edae['inputState']['lastScrollTop']&&!_0x25edae['inputState']['lastScrollLeft']||(_0x25edae['scrollDOM']['scrollTop']=_0x25edae['inputState']['lastScrollTop'],_0x25edae['scrollDOM']['scrollLeft']=_0x25edae['inputState']['lastScrollLeft']),updateForFocusChange(_0x25edae);},observers['blur']=_0x524cbb=>{_0x524cbb['observer']['clearSelectionRange'](),updateForFocusChange(_0x524cbb);},observers['compositionstart']=observers['compositionupdate']=_0x226052=>{_0x226052['observer']['editContext']||(null==_0x226052['inputState']['compositionFirstChange']&&(_0x226052['inputState']['compositionFirstChange']=!0x0),_0x226052['inputState']['composing']<0x0&&(_0x226052['inputState']['composing']=0x0));},observers['compositionend']=_0x32c2c7=>{_0x32c2c7['observer']['editContext']||(_0x32c2c7['inputState']['composing']=-0x1,_0x32c2c7['inputState']['compositionEndedAt']=Date['now'](),_0x32c2c7['inputState']['compositionPendingKey']=!0x0,_0x32c2c7['inputState']['compositionPendingChange']=_0x32c2c7['observer']['pendingRecords']()['length']>0x0,_0x32c2c7['inputState']['compositionFirstChange']=null,browser['chrome']&&browser['android']?_0x32c2c7['observer']['flushSoon']():_0x32c2c7['inputState']['compositionPendingChange']?Promise['resolve']()['then'](()=>_0x32c2c7['observer']['flush']()):setTimeout(()=>{_0x32c2c7['inputState']['composing']<0x0&&_0x32c2c7['docView']['hasComposition']&&_0x32c2c7['update']([]);},0x32));},observers['contextmenu']=_0x26b66a=>{_0x26b66a['inputState']['lastContextMenu']=Date['now']();},handlers['beforeinput']=(_0x5e3051,_0x3a24e4)=>{var _0x2ac4d9,_0x3f4a94;if('insertReplacementText'==_0x3a24e4['inputType']&&_0x5e3051['observer']['editContext']){let _0x4a981b=null===(_0x2ac4d9=_0x3a24e4['dataTransfer'])||void 0x0===_0x2ac4d9?void 0x0:_0x2ac4d9['getData']('text/plain'),_0x4d4500=_0x3a24e4['getTargetRanges']();if(_0x4a981b&&_0x4d4500['length']){let _0x12435b=_0x4d4500[0x0],_0x45e446=_0x5e3051['posAtDOM'](_0x12435b['startContainer'],_0x12435b['startOffset']),_0x5b33e5=_0x5e3051['posAtDOM'](_0x12435b['endContainer'],_0x12435b['endOffset']);return applyDOMChangeInner(_0x5e3051,{'from':_0x45e446,'to':_0x5b33e5,'insert':_0x5e3051['state']['toText'](_0x4a981b)},null),!0x0;}}let _0x11e05e;if(browser['chrome']&&browser['android']&&(_0x11e05e=PendingKeys['find'](_0x40cdb4=>_0x40cdb4['inputType']==_0x3a24e4['inputType']))&&(_0x5e3051['observer']['delayAndroidKey'](_0x11e05e['key'],_0x11e05e['keyCode']),'Backspace'==_0x11e05e['key']||'Delete'==_0x11e05e['key'])){let _0x2c634f=(null===(_0x3f4a94=window['visualViewport'])||void 0x0===_0x3f4a94?void 0x0:_0x3f4a94['height'])||0x0;setTimeout(()=>{var _0x5df433;((null===(_0x5df433=window['visualViewport'])||void 0x0===_0x5df433?void 0x0:_0x5df433['height'])||0x0)>_0x2c634f+0xa&&_0x5e3051['hasFocus']&&(_0x5e3051['contentDOM']['blur'](),_0x5e3051['focus']());},0x64);}return browser['ios']&&'deleteContentForward'==_0x3a24e4['inputType']&&_0x5e3051['observer']['flushSoon'](),browser['safari']&&'insertText'==_0x3a24e4['inputType']&&_0x5e3051['inputState']['composing']>=0x0&&setTimeout(()=>observers['compositionend'](_0x5e3051,_0x3a24e4),0x14),!0x1;};const appliedFirefoxHack=new Set();function firefoxCopyCutHack(_0x3ca2cb){appliedFirefoxHack['has'](_0x3ca2cb)||(appliedFirefoxHack['add'](_0x3ca2cb),_0x3ca2cb['addEventListener']('copy',()=>{}),_0x3ca2cb['addEventListener']('cut',()=>{}));}const wrappingWhiteSpace=['pre-wrap','normal','pre-line','break-spaces'];let heightChangeFlag=!0x1;function clearHeightChangeFlag(){heightChangeFlag=!0x1;}class HeightOracle{constructor(_0x77e9a5){this['lineWrapping']=_0x77e9a5,this['doc']=Text['empty'],this['heightSamples']={},this['lineHeight']=0xe,this['charWidth']=0x7,this['textHeight']=0xe,this['lineLength']=0x1e;}['heightForGap'](_0x3f18f1,_0x372125){let _0x3f83d9=this['doc']['lineAt'](_0x372125)['number']-this['doc']['lineAt'](_0x3f18f1)['number']+0x1;return this['lineWrapping']&&(_0x3f83d9+=Math['max'](0x0,Math['ceil']((_0x372125-_0x3f18f1-_0x3f83d9*this['lineLength']*0.5)/this['lineLength']))),this['lineHeight']*_0x3f83d9;}['heightForLine'](_0x507f88){if(!this['lineWrapping'])return this['lineHeight'];return(0x1+Math['max'](0x0,Math['ceil']((_0x507f88-this['lineLength'])/Math['max'](0x1,this['lineLength']-0x5))))*this['lineHeight'];}['setDoc'](_0x3fff91){return this['doc']=_0x3fff91,this;}['mustRefreshForWrapping'](_0x1e7d82){return wrappingWhiteSpace['indexOf'](_0x1e7d82)>-0x1!=this['lineWrapping'];}['mustRefreshForHeights'](_0x35084a){let _0x11eba1=!0x1;for(let _0x27155e=0x0;_0x27155e<_0x35084a['length'];_0x27155e++){let _0x44fa11=_0x35084a[_0x27155e];_0x44fa11<0x0?_0x27155e++:this['heightSamples'][Math['floor'](0xa*_0x44fa11)]||(_0x11eba1=!0x0,this['heightSamples'][Math['floor'](0xa*_0x44fa11)]=!0x0);}return _0x11eba1;}['refresh'](_0x3e1de2,_0x11fc4e,_0x4cda50,_0x482151,_0x2b3ba7,_0x3445d3){let _0x6ef02f=wrappingWhiteSpace['indexOf'](_0x3e1de2)>-0x1,_0x2b1737=Math['round'](_0x11fc4e)!=Math['round'](this['lineHeight'])||this['lineWrapping']!=_0x6ef02f;if(this['lineWrapping']=_0x6ef02f,this['lineHeight']=_0x11fc4e,this['charWidth']=_0x4cda50,this['textHeight']=_0x482151,this['lineLength']=_0x2b3ba7,_0x2b1737){this['heightSamples']={};for(let _0x20b3d4=0x0;_0x20b3d4<_0x3445d3['length'];_0x20b3d4++){let _0x2f7559=_0x3445d3[_0x20b3d4];_0x2f7559<0x0?_0x20b3d4++:this['heightSamples'][Math['floor'](0xa*_0x2f7559)]=!0x0;}}return _0x2b1737;}}class MeasuredHeights{constructor(_0x1cf300,_0x2792c7){this['from']=_0x1cf300,this['heights']=_0x2792c7,this['index']=0x0;}get['more'](){return this['index']<this['heights']['length'];}}class BlockInfo{constructor(_0x44394d,_0x38f801,_0x20cb56,_0x42471d,_0x10c6e1){this['from']=_0x44394d,this['length']=_0x38f801,this['top']=_0x20cb56,this['height']=_0x42471d,this['_content']=_0x10c6e1;}get['type'](){return'number'==typeof this['_content']?BlockType['Text']:Array['isArray'](this['_content'])?this['_content']:this['_content']['type'];}get['to'](){return this['from']+this['length'];}get['bottom'](){return this['top']+this['height'];}get['widget'](){return this['_content']instanceof PointDecoration?this['_content']['widget']:null;}get['widgetLineBreaks'](){return'number'==typeof this['_content']?this['_content']:0x0;}['join'](_0x8dc023){let _0x2bb18c=(Array['isArray'](this['_content'])?this['_content']:[this])['concat'](Array['isArray'](_0x8dc023['_content'])?_0x8dc023['_content']:[_0x8dc023]);return new BlockInfo(this['from'],this['length']+_0x8dc023['length'],this['top'],this['height']+_0x8dc023['height'],_0x2bb18c);}}var QueryType=function(_0x1fe1e7){return _0x1fe1e7[_0x1fe1e7['ByPos']=0x0]='ByPos',_0x1fe1e7[_0x1fe1e7['ByHeight']=0x1]='ByHeight',_0x1fe1e7[_0x1fe1e7['ByPosNoHeight']=0x2]='ByPosNoHeight',_0x1fe1e7;}(QueryType||(QueryType={}));const Epsilon=0.001;class HeightMap{constructor(_0x222596,_0x40fee1,_0x26a83b=0x2){this['length']=_0x222596,this['height']=_0x40fee1,this['flags']=_0x26a83b;}get['outdated'](){return(0x2&this['flags'])>0x0;}set['outdated'](_0x5340a8){this['flags']=(_0x5340a8?0x2:0x0)|-0x3&this['flags'];}['setHeight'](_0x54e0f0){this['height']!=_0x54e0f0&&(Math['abs'](this['height']-_0x54e0f0)>Epsilon&&(heightChangeFlag=!0x0),this['height']=_0x54e0f0);}['replace'](_0x1998d1,_0x78fb74,_0x4e4133){return HeightMap['of'](_0x4e4133);}['decomposeLeft'](_0x19b74c,_0x48c44b){_0x48c44b['push'](this);}['decomposeRight'](_0x28d97f,_0x198d77){_0x198d77['push'](this);}['applyChanges'](_0x44e050,_0x4179a9,_0x1d54e5,_0x55a69a){let _0x5ab1bd=this,_0x1e5885=_0x1d54e5['doc'];for(let _0x5532d2=_0x55a69a['length']-0x1;_0x5532d2>=0x0;_0x5532d2--){let {fromA:_0x4e591b,toA:_0x4e59cf,fromB:_0x43243f,toB:_0x41b640}=_0x55a69a[_0x5532d2],_0x3bdcbf=_0x5ab1bd['lineAt'](_0x4e591b,QueryType['ByPosNoHeight'],_0x1d54e5['setDoc'](_0x4179a9),0x0,0x0),_0x8d8c89=_0x3bdcbf['to']>=_0x4e59cf?_0x3bdcbf:_0x5ab1bd['lineAt'](_0x4e59cf,QueryType['ByPosNoHeight'],_0x1d54e5,0x0,0x0);for(_0x41b640+=_0x8d8c89['to']-_0x4e59cf,_0x4e59cf=_0x8d8c89['to'];_0x5532d2>0x0&&_0x3bdcbf['from']<=_0x55a69a[_0x5532d2-0x1]['toA'];)_0x4e591b=_0x55a69a[_0x5532d2-0x1]['fromA'],_0x43243f=_0x55a69a[_0x5532d2-0x1]['fromB'],_0x5532d2--,_0x4e591b<_0x3bdcbf['from']&&(_0x3bdcbf=_0x5ab1bd['lineAt'](_0x4e591b,QueryType['ByPosNoHeight'],_0x1d54e5,0x0,0x0));_0x43243f+=_0x3bdcbf['from']-_0x4e591b,_0x4e591b=_0x3bdcbf['from'];let _0x4bfc52=NodeBuilder['build'](_0x1d54e5['setDoc'](_0x1e5885),_0x44e050,_0x43243f,_0x41b640);_0x5ab1bd=replace(_0x5ab1bd,_0x5ab1bd['replace'](_0x4e591b,_0x4e59cf,_0x4bfc52));}return _0x5ab1bd['updateHeight'](_0x1d54e5,0x0);}static['empty'](){return new HeightMapText(0x0,0x0);}static['of'](_0x358a98){if(0x1==_0x358a98['length'])return _0x358a98[0x0];let _0x4c6a09=0x0,_0x45ab54=_0x358a98['length'],_0x9bea5b=0x0,_0x7236a1=0x0;for(;;)if(_0x4c6a09==_0x45ab54){if(_0x9bea5b>0x2*_0x7236a1){let _0x476c7f=_0x358a98[_0x4c6a09-0x1];_0x476c7f['break']?_0x358a98['splice'](--_0x4c6a09,0x1,_0x476c7f['left'],null,_0x476c7f['right']):_0x358a98['splice'](--_0x4c6a09,0x1,_0x476c7f['left'],_0x476c7f['right']),_0x45ab54+=0x1+_0x476c7f['break'],_0x9bea5b-=_0x476c7f['size'];}else{if(!(_0x7236a1>0x2*_0x9bea5b))break;{let _0x2ff100=_0x358a98[_0x45ab54];_0x2ff100['break']?_0x358a98['splice'](_0x45ab54,0x1,_0x2ff100['left'],null,_0x2ff100['right']):_0x358a98['splice'](_0x45ab54,0x1,_0x2ff100['left'],_0x2ff100['right']),_0x45ab54+=0x2+_0x2ff100['break'],_0x7236a1-=_0x2ff100['size'];}}}else{if(_0x9bea5b<_0x7236a1){let _0x2a2ad6=_0x358a98[_0x4c6a09++];_0x2a2ad6&&(_0x9bea5b+=_0x2a2ad6['size']);}else{let _0x58f57e=_0x358a98[--_0x45ab54];_0x58f57e&&(_0x7236a1+=_0x58f57e['size']);}}let _0x38b457=0x0;return null==_0x358a98[_0x4c6a09-0x1]?(_0x38b457=0x1,_0x4c6a09--):null==_0x358a98[_0x4c6a09]&&(_0x38b457=0x1,_0x45ab54++),new HeightMapBranch(HeightMap['of'](_0x358a98['slice'](0x0,_0x4c6a09)),_0x38b457,HeightMap['of'](_0x358a98['slice'](_0x45ab54)));}}function replace(_0x33cfed,_0x11af53){return _0x33cfed==_0x11af53?_0x33cfed:(_0x33cfed['constructor']!=_0x11af53['constructor']&&(heightChangeFlag=!0x0),_0x11af53);}HeightMap['prototype']['size']=0x1;class HeightMapBlock extends HeightMap{constructor(_0x681399,_0x18e795,_0x4cd5e7){super(_0x681399,_0x18e795),this['deco']=_0x4cd5e7;}['blockAt'](_0x216e93,_0x138629,_0x507585,_0x4c6e4f){return new BlockInfo(_0x4c6e4f,this['length'],_0x507585,this['height'],this['deco']||0x0);}['lineAt'](_0x325d0a,_0x137615,_0x2829b1,_0x445a08,_0x3bec9f){return this['blockAt'](0x0,_0x2829b1,_0x445a08,_0x3bec9f);}['forEachLine'](_0x3f8652,_0x3b8fc5,_0x98d909,_0x3932b2,_0x3c3d99,_0x5e4212){_0x3f8652<=_0x3c3d99+this['length']&&_0x3b8fc5>=_0x3c3d99&&_0x5e4212(this['blockAt'](0x0,_0x98d909,_0x3932b2,_0x3c3d99));}['updateHeight'](_0x334a84,_0x4b9eb6=0x0,_0x364ff1=!0x1,_0x483d7d){return _0x483d7d&&_0x483d7d['from']<=_0x4b9eb6&&_0x483d7d['more']&&this['setHeight'](_0x483d7d['heights'][_0x483d7d['index']++]),this['outdated']=!0x1,this;}['toString'](){return'block('+this['length']+')';}}class HeightMapText extends HeightMapBlock{constructor(_0x574d85,_0x5147db){super(_0x574d85,_0x5147db,null),this['collapsed']=0x0,this['widgetHeight']=0x0,this['breaks']=0x0;}['blockAt'](_0x466e5c,_0x2dc12e,_0x3da321,_0x1ffe72){return new BlockInfo(_0x1ffe72,this['length'],_0x3da321,this['height'],this['breaks']);}['replace'](_0x4b42ad,_0x37b99c,_0x378d12){let _0x385c79=_0x378d12[0x0];return 0x1==_0x378d12['length']&&(_0x385c79 instanceof HeightMapText||_0x385c79 instanceof HeightMapGap&&0x4&_0x385c79['flags'])&&Math['abs'](this['length']-_0x385c79['length'])<0xa?(_0x385c79 instanceof HeightMapGap?_0x385c79=new HeightMapText(_0x385c79['length'],this['height']):_0x385c79['height']=this['height'],this['outdated']||(_0x385c79['outdated']=!0x1),_0x385c79):HeightMap['of'](_0x378d12);}['updateHeight'](_0x5739e8,_0x34ef68=0x0,_0x2c0f34=!0x1,_0x3b4282){return _0x3b4282&&_0x3b4282['from']<=_0x34ef68&&_0x3b4282['more']?this['setHeight'](_0x3b4282['heights'][_0x3b4282['index']++]):(_0x2c0f34||this['outdated'])&&this['setHeight'](Math['max'](this['widgetHeight'],_0x5739e8['heightForLine'](this['length']-this['collapsed']))+this['breaks']*_0x5739e8['lineHeight']),this['outdated']=!0x1,this;}['toString'](){return'line('+this['length']+(this['collapsed']?-this['collapsed']:'')+(this['widgetHeight']?':'+this['widgetHeight']:'')+')';}}class HeightMapGap extends HeightMap{constructor(_0x3b36e8){super(_0x3b36e8,0x0);}['heightMetrics'](_0x5bc843,_0x4bfe6d){let _0x230e21,_0x24f191=_0x5bc843['doc']['lineAt'](_0x4bfe6d)['number'],_0x44692e=_0x5bc843['doc']['lineAt'](_0x4bfe6d+this['length'])['number'],_0x2b9b6d=_0x44692e-_0x24f191+0x1,_0x44941d=0x0;if(_0x5bc843['lineWrapping']){let _0x1c5124=Math['min'](this['height'],_0x5bc843['lineHeight']*_0x2b9b6d);_0x230e21=_0x1c5124/_0x2b9b6d,this['length']>_0x2b9b6d+0x1&&(_0x44941d=(this['height']-_0x1c5124)/(this['length']-_0x2b9b6d-0x1));}else _0x230e21=this['height']/_0x2b9b6d;return{'firstLine':_0x24f191,'lastLine':_0x44692e,'perLine':_0x230e21,'perChar':_0x44941d};}['blockAt'](_0x3c8b38,_0x496680,_0x26c953,_0x22db14){let {firstLine:_0x1d1dca,lastLine:_0x45a83b,perLine:_0x470327,perChar:_0xc8d083}=this['heightMetrics'](_0x496680,_0x22db14);if(_0x496680['lineWrapping']){let _0x44e65f=_0x22db14+(_0x3c8b38<_0x496680['lineHeight']?0x0:Math['round'](Math['max'](0x0,Math['min'](0x1,(_0x3c8b38-_0x26c953)/this['height']))*this['length'])),_0x32c72a=_0x496680['doc']['lineAt'](_0x44e65f),_0x73fd00=_0x470327+_0x32c72a['length']*_0xc8d083,_0x170703=Math['max'](_0x26c953,_0x3c8b38-_0x73fd00/0x2);return new BlockInfo(_0x32c72a['from'],_0x32c72a['length'],_0x170703,_0x73fd00,0x0);}{let _0x4f7439=Math['max'](0x0,Math['min'](_0x45a83b-_0x1d1dca,Math['floor']((_0x3c8b38-_0x26c953)/_0x470327))),{from:_0x3a0bc3,length:_0x4c6878}=_0x496680['doc']['line'](_0x1d1dca+_0x4f7439);return new BlockInfo(_0x3a0bc3,_0x4c6878,_0x26c953+_0x470327*_0x4f7439,_0x470327,0x0);}}['lineAt'](_0x466fcc,_0x1f40ef,_0xeb9f0e,_0x4a33f7,_0x4c7702){if(_0x1f40ef==QueryType['ByHeight'])return this['blockAt'](_0x466fcc,_0xeb9f0e,_0x4a33f7,_0x4c7702);if(_0x1f40ef==QueryType['ByPosNoHeight']){let {from:_0x3e1183,to:_0x58c4cc}=_0xeb9f0e['doc']['lineAt'](_0x466fcc);return new BlockInfo(_0x3e1183,_0x58c4cc-_0x3e1183,0x0,0x0,0x0);}let {firstLine:_0x4c362a,perLine:_0x367988,perChar:_0x12abc2}=this['heightMetrics'](_0xeb9f0e,_0x4c7702),_0x2165ad=_0xeb9f0e['doc']['lineAt'](_0x466fcc),_0x424ab6=_0x367988+_0x2165ad['length']*_0x12abc2,_0x4340ff=_0x2165ad['number']-_0x4c362a,_0xbcbbfb=_0x4a33f7+_0x367988*_0x4340ff+_0x12abc2*(_0x2165ad['from']-_0x4c7702-_0x4340ff);return new BlockInfo(_0x2165ad['from'],_0x2165ad['length'],Math['max'](_0x4a33f7,Math['min'](_0xbcbbfb,_0x4a33f7+this['height']-_0x424ab6)),_0x424ab6,0x0);}['forEachLine'](_0x43a99c,_0x5a48ac,_0xe40f18,_0x2bc562,_0x4f0365,_0x390583){_0x43a99c=Math['max'](_0x43a99c,_0x4f0365),_0x5a48ac=Math['min'](_0x5a48ac,_0x4f0365+this['length']);let {firstLine:_0x4b5b41,perLine:_0xd9c620,perChar:_0x296b39}=this['heightMetrics'](_0xe40f18,_0x4f0365);for(let _0x4ec432=_0x43a99c,_0x21ed85=_0x2bc562;_0x4ec432<=_0x5a48ac;){let _0x3820d6=_0xe40f18['doc']['lineAt'](_0x4ec432);if(_0x4ec432==_0x43a99c){let _0x589e8c=_0x3820d6['number']-_0x4b5b41;_0x21ed85+=_0xd9c620*_0x589e8c+_0x296b39*(_0x43a99c-_0x4f0365-_0x589e8c);}let _0xdf1a29=_0xd9c620+_0x296b39*_0x3820d6['length'];_0x390583(new BlockInfo(_0x3820d6['from'],_0x3820d6['length'],_0x21ed85,_0xdf1a29,0x0)),_0x21ed85+=_0xdf1a29,_0x4ec432=_0x3820d6['to']+0x1;}}['replace'](_0x30bd57,_0xbdc609,_0x26cc16){let _0x2ede0d=this['length']-_0xbdc609;if(_0x2ede0d>0x0){let _0x4e6839=_0x26cc16[_0x26cc16['length']-0x1];_0x4e6839 instanceof HeightMapGap?_0x26cc16[_0x26cc16['length']-0x1]=new HeightMapGap(_0x4e6839['length']+_0x2ede0d):_0x26cc16['push'](null,new HeightMapGap(_0x2ede0d-0x1));}if(_0x30bd57>0x0){let _0x498f43=_0x26cc16[0x0];_0x498f43 instanceof HeightMapGap?_0x26cc16[0x0]=new HeightMapGap(_0x30bd57+_0x498f43['length']):_0x26cc16['unshift'](new HeightMapGap(_0x30bd57-0x1),null);}return HeightMap['of'](_0x26cc16);}['decomposeLeft'](_0x26bf51,_0x15f475){_0x15f475['push'](new HeightMapGap(_0x26bf51-0x1),null);}['decomposeRight'](_0x2fafe5,_0x428f4e){_0x428f4e['push'](null,new HeightMapGap(this['length']-_0x2fafe5-0x1));}['updateHeight'](_0x4f44bf,_0xc3140e=0x0,_0xe8839f=!0x1,_0x2f8f6e){let _0x1c1c36=_0xc3140e+this['length'];if(_0x2f8f6e&&_0x2f8f6e['from']<=_0xc3140e+this['length']&&_0x2f8f6e['more']){let _0x20a685=[],_0x2d7e90=Math['max'](_0xc3140e,_0x2f8f6e['from']),_0x2813c8=-0x1;for(_0x2f8f6e['from']>_0xc3140e&&_0x20a685['push'](new HeightMapGap(_0x2f8f6e['from']-_0xc3140e-0x1)['updateHeight'](_0x4f44bf,_0xc3140e));_0x2d7e90<=_0x1c1c36&&_0x2f8f6e['more'];){let _0x4ac10b=_0x4f44bf['doc']['lineAt'](_0x2d7e90)['length'];_0x20a685['length']&&_0x20a685['push'](null);let _0x586002=_0x2f8f6e['heights'][_0x2f8f6e['index']++];-0x1==_0x2813c8?_0x2813c8=_0x586002:Math['abs'](_0x586002-_0x2813c8)>=Epsilon&&(_0x2813c8=-0x2);let _0x16fc0d=new HeightMapText(_0x4ac10b,_0x586002);_0x16fc0d['outdated']=!0x1,_0x20a685['push'](_0x16fc0d),_0x2d7e90+=_0x4ac10b+0x1;}_0x2d7e90<=_0x1c1c36&&_0x20a685['push'](null,new HeightMapGap(_0x1c1c36-_0x2d7e90)['updateHeight'](_0x4f44bf,_0x2d7e90));let _0x3c3a1a=HeightMap['of'](_0x20a685);return(_0x2813c8<0x0||Math['abs'](_0x3c3a1a['height']-this['height'])>=Epsilon||Math['abs'](_0x2813c8-this['heightMetrics'](_0x4f44bf,_0xc3140e)['perLine'])>=Epsilon)&&(heightChangeFlag=!0x0),replace(this,_0x3c3a1a);}return(_0xe8839f||this['outdated'])&&(this['setHeight'](_0x4f44bf['heightForGap'](_0xc3140e,_0xc3140e+this['length'])),this['outdated']=!0x1),this;}['toString'](){return'gap('+this['length']+')';}}class HeightMapBranch extends HeightMap{constructor(_0x5c823c,_0x8d2ae1,_0xbf9b58){super(_0x5c823c['length']+_0x8d2ae1+_0xbf9b58['length'],_0x5c823c['height']+_0xbf9b58['height'],_0x8d2ae1|(_0x5c823c['outdated']||_0xbf9b58['outdated']?0x2:0x0)),this['left']=_0x5c823c,this['right']=_0xbf9b58,this['size']=_0x5c823c['size']+_0xbf9b58['size'];}get['break'](){return 0x1&this['flags'];}['blockAt'](_0x2e691a,_0x1db259,_0x2bc937,_0x32a54e){let _0x4c44eb=_0x2bc937+this['left']['height'];return _0x2e691a<_0x4c44eb?this['left']['blockAt'](_0x2e691a,_0x1db259,_0x2bc937,_0x32a54e):this['right']['blockAt'](_0x2e691a,_0x1db259,_0x4c44eb,_0x32a54e+this['left']['length']+this['break']);}['lineAt'](_0x41ce53,_0x1ba08,_0x3cc9f6,_0x2611e0,_0x90c4b3){let _0x6a8d1b=_0x2611e0+this['left']['height'],_0x584041=_0x90c4b3+this['left']['length']+this['break'],_0x5d4386=_0x1ba08==QueryType['ByHeight']?_0x41ce53<_0x6a8d1b:_0x41ce53<_0x584041,_0x2ba001=_0x5d4386?this['left']['lineAt'](_0x41ce53,_0x1ba08,_0x3cc9f6,_0x2611e0,_0x90c4b3):this['right']['lineAt'](_0x41ce53,_0x1ba08,_0x3cc9f6,_0x6a8d1b,_0x584041);if(this['break']||(_0x5d4386?_0x2ba001['to']<_0x584041:_0x2ba001['from']>_0x584041))return _0x2ba001;let _0x41fac9=_0x1ba08==QueryType['ByPosNoHeight']?QueryType['ByPosNoHeight']:QueryType['ByPos'];return _0x5d4386?_0x2ba001['join'](this['right']['lineAt'](_0x584041,_0x41fac9,_0x3cc9f6,_0x6a8d1b,_0x584041)):this['left']['lineAt'](_0x584041,_0x41fac9,_0x3cc9f6,_0x2611e0,_0x90c4b3)['join'](_0x2ba001);}['forEachLine'](_0x1e77cd,_0x3823a6,_0x379877,_0x41b386,_0x30c4e5,_0x43efa6){let _0x4fb947=_0x41b386+this['left']['height'],_0x36eb22=_0x30c4e5+this['left']['length']+this['break'];if(this['break'])_0x1e77cd<_0x36eb22&&this['left']['forEachLine'](_0x1e77cd,_0x3823a6,_0x379877,_0x41b386,_0x30c4e5,_0x43efa6),_0x3823a6>=_0x36eb22&&this['right']['forEachLine'](_0x1e77cd,_0x3823a6,_0x379877,_0x4fb947,_0x36eb22,_0x43efa6);else{let _0x3f7424=this['lineAt'](_0x36eb22,QueryType['ByPos'],_0x379877,_0x41b386,_0x30c4e5);_0x1e77cd<_0x3f7424['from']&&this['left']['forEachLine'](_0x1e77cd,_0x3f7424['from']-0x1,_0x379877,_0x41b386,_0x30c4e5,_0x43efa6),_0x3f7424['to']>=_0x1e77cd&&_0x3f7424['from']<=_0x3823a6&&_0x43efa6(_0x3f7424),_0x3823a6>_0x3f7424['to']&&this['right']['forEachLine'](_0x3f7424['to']+0x1,_0x3823a6,_0x379877,_0x4fb947,_0x36eb22,_0x43efa6);}}['replace'](_0x2661fd,_0x5b6263,_0x2dc727){let _0x286d12=this['left']['length']+this['break'];if(_0x5b6263<_0x286d12)return this['balanced'](this['left']['replace'](_0x2661fd,_0x5b6263,_0x2dc727),this['right']);if(_0x2661fd>this['left']['length'])return this['balanced'](this['left'],this['right']['replace'](_0x2661fd-_0x286d12,_0x5b6263-_0x286d12,_0x2dc727));let _0x4cee0e=[];_0x2661fd>0x0&&this['decomposeLeft'](_0x2661fd,_0x4cee0e);let _0x58c670=_0x4cee0e['length'];for(let _0x5ca65f of _0x2dc727)_0x4cee0e['push'](_0x5ca65f);if(_0x2661fd>0x0&&mergeGaps(_0x4cee0e,_0x58c670-0x1),_0x5b6263<this['length']){let _0x186697=_0x4cee0e['length'];this['decomposeRight'](_0x5b6263,_0x4cee0e),mergeGaps(_0x4cee0e,_0x186697);}return HeightMap['of'](_0x4cee0e);}['decomposeLeft'](_0x1e250f,_0x46e36e){let _0x5da1b4=this['left']['length'];if(_0x1e250f<=_0x5da1b4)return this['left']['decomposeLeft'](_0x1e250f,_0x46e36e);_0x46e36e['push'](this['left']),this['break']&&(_0x5da1b4++,_0x1e250f>=_0x5da1b4&&_0x46e36e['push'](null)),_0x1e250f>_0x5da1b4&&this['right']['decomposeLeft'](_0x1e250f-_0x5da1b4,_0x46e36e);}['decomposeRight'](_0x514421,_0x1b3cdc){let _0x4055e7=this['left']['length'],_0xf3e405=_0x4055e7+this['break'];if(_0x514421>=_0xf3e405)return this['right']['decomposeRight'](_0x514421-_0xf3e405,_0x1b3cdc);_0x514421<_0x4055e7&&this['left']['decomposeRight'](_0x514421,_0x1b3cdc),this['break']&&_0x514421<_0xf3e405&&_0x1b3cdc['push'](null),_0x1b3cdc['push'](this['right']);}['balanced'](_0x4ec4ff,_0x540821){return _0x4ec4ff['size']>0x2*_0x540821['size']||_0x540821['size']>0x2*_0x4ec4ff['size']?HeightMap['of'](this['break']?[_0x4ec4ff,null,_0x540821]:[_0x4ec4ff,_0x540821]):(this['left']=replace(this['left'],_0x4ec4ff),this['right']=replace(this['right'],_0x540821),this['setHeight'](_0x4ec4ff['height']+_0x540821['height']),this['outdated']=_0x4ec4ff['outdated']||_0x540821['outdated'],this['size']=_0x4ec4ff['size']+_0x540821['size'],this['length']=_0x4ec4ff['length']+this['break']+_0x540821['length'],this);}['updateHeight'](_0x541bec,_0x243374=0x0,_0x73741b=!0x1,_0x22b9a5){let {left:_0x42e690,right:_0x11ede7}=this,_0x510664=_0x243374+_0x42e690['length']+this['break'],_0x54783b=null;return _0x22b9a5&&_0x22b9a5['from']<=_0x243374+_0x42e690['length']&&_0x22b9a5['more']?_0x54783b=_0x42e690=_0x42e690['updateHeight'](_0x541bec,_0x243374,_0x73741b,_0x22b9a5):_0x42e690['updateHeight'](_0x541bec,_0x243374,_0x73741b),_0x22b9a5&&_0x22b9a5['from']<=_0x510664+_0x11ede7['length']&&_0x22b9a5['more']?_0x54783b=_0x11ede7=_0x11ede7['updateHeight'](_0x541bec,_0x510664,_0x73741b,_0x22b9a5):_0x11ede7['updateHeight'](_0x541bec,_0x510664,_0x73741b),_0x54783b?this['balanced'](_0x42e690,_0x11ede7):(this['height']=this['left']['height']+this['right']['height'],this['outdated']=!0x1,this);}['toString'](){return this['left']+(this['break']?'\x20':'-')+this['right'];}}function mergeGaps(_0x2ebab6,_0x2440cb){let _0x3df7b7,_0x2b0e3b;null==_0x2ebab6[_0x2440cb]&&(_0x3df7b7=_0x2ebab6[_0x2440cb-0x1])instanceof HeightMapGap&&(_0x2b0e3b=_0x2ebab6[_0x2440cb+0x1])instanceof HeightMapGap&&_0x2ebab6['splice'](_0x2440cb-0x1,0x3,new HeightMapGap(_0x3df7b7['length']+0x1+_0x2b0e3b['length']));}const relevantWidgetHeight=0x5;class NodeBuilder{constructor(_0x61c64,_0x38d50b){this['pos']=_0x61c64,this['oracle']=_0x38d50b,this['nodes']=[],this['lineStart']=-0x1,this['lineEnd']=-0x1,this['covering']=null,this['writtenTo']=_0x61c64;}get['isCovered'](){return this['covering']&&this['nodes'][this['nodes']['length']-0x1]==this['covering'];}['span'](_0x40c632,_0x4df15c){if(this['lineStart']>-0x1){let _0x5cc0e7=Math['min'](_0x4df15c,this['lineEnd']),_0x2ea525=this['nodes'][this['nodes']['length']-0x1];_0x2ea525 instanceof HeightMapText?_0x2ea525['length']+=_0x5cc0e7-this['pos']:(_0x5cc0e7>this['pos']||!this['isCovered'])&&this['nodes']['push'](new HeightMapText(_0x5cc0e7-this['pos'],-0x1)),this['writtenTo']=_0x5cc0e7,_0x4df15c>_0x5cc0e7&&(this['nodes']['push'](null),this['writtenTo']++,this['lineStart']=-0x1);}this['pos']=_0x4df15c;}['point'](_0xfbe7f9,_0x22cdbb,_0x276731){if(_0xfbe7f9<_0x22cdbb||_0x276731['heightRelevant']){let _0x2aba79=_0x276731['widget']?_0x276731['widget']['estimatedHeight']:0x0,_0x34294a=_0x276731['widget']?_0x276731['widget']['lineBreaks']:0x0;_0x2aba79<0x0&&(_0x2aba79=this['oracle']['lineHeight']);let _0x4e9c8b=_0x22cdbb-_0xfbe7f9;_0x276731['block']?this['addBlock'](new HeightMapBlock(_0x4e9c8b,_0x2aba79,_0x276731)):(_0x4e9c8b||_0x34294a||_0x2aba79>=relevantWidgetHeight)&&this['addLineDeco'](_0x2aba79,_0x34294a,_0x4e9c8b);}else _0x22cdbb>_0xfbe7f9&&this['span'](_0xfbe7f9,_0x22cdbb);this['lineEnd']>-0x1&&this['lineEnd']<this['pos']&&(this['lineEnd']=this['oracle']['doc']['lineAt'](this['pos'])['to']);}['enterLine'](){if(this['lineStart']>-0x1)return;let {from:_0x288f17,to:_0x13b040}=this['oracle']['doc']['lineAt'](this['pos']);this['lineStart']=_0x288f17,this['lineEnd']=_0x13b040,this['writtenTo']<_0x288f17&&((this['writtenTo']<_0x288f17-0x1||null==this['nodes'][this['nodes']['length']-0x1])&&this['nodes']['push'](this['blankContent'](this['writtenTo'],_0x288f17-0x1)),this['nodes']['push'](null)),this['pos']>_0x288f17&&this['nodes']['push'](new HeightMapText(this['pos']-_0x288f17,-0x1)),this['writtenTo']=this['pos'];}['blankContent'](_0x4ea6b8,_0x42cd7f){let _0x3a4cc0=new HeightMapGap(_0x42cd7f-_0x4ea6b8);return this['oracle']['doc']['lineAt'](_0x4ea6b8)['to']==_0x42cd7f&&(_0x3a4cc0['flags']|=0x4),_0x3a4cc0;}['ensureLine'](){this['enterLine']();let _0x2d13c8=this['nodes']['length']?this['nodes'][this['nodes']['length']-0x1]:null;if(_0x2d13c8 instanceof HeightMapText)return _0x2d13c8;let _0x8943ef=new HeightMapText(0x0,-0x1);return this['nodes']['push'](_0x8943ef),_0x8943ef;}['addBlock'](_0x2d8a9c){this['enterLine']();let _0x1a7e48=_0x2d8a9c['deco'];_0x1a7e48&&_0x1a7e48['startSide']>0x0&&!this['isCovered']&&this['ensureLine'](),this['nodes']['push'](_0x2d8a9c),this['writtenTo']=this['pos']=this['pos']+_0x2d8a9c['length'],_0x1a7e48&&_0x1a7e48['endSide']>0x0&&(this['covering']=_0x2d8a9c);}['addLineDeco'](_0x288c45,_0x45dff1,_0x5e3b17){let _0x4005fc=this['ensureLine']();_0x4005fc['length']+=_0x5e3b17,_0x4005fc['collapsed']+=_0x5e3b17,_0x4005fc['widgetHeight']=Math['max'](_0x4005fc['widgetHeight'],_0x288c45),_0x4005fc['breaks']+=_0x45dff1,this['writtenTo']=this['pos']=this['pos']+_0x5e3b17;}['finish'](_0x54186d){let _0x485118=0x0==this['nodes']['length']?null:this['nodes'][this['nodes']['length']-0x1];!(this['lineStart']>-0x1)||_0x485118 instanceof HeightMapText||this['isCovered']?(this['writtenTo']<this['pos']||null==_0x485118)&&this['nodes']['push'](this['blankContent'](this['writtenTo'],this['pos'])):this['nodes']['push'](new HeightMapText(0x0,-0x1));let _0x10bed7=_0x54186d;for(let _0x22312e of this['nodes'])_0x22312e instanceof HeightMapText&&_0x22312e['updateHeight'](this['oracle'],_0x10bed7),_0x10bed7+=_0x22312e?_0x22312e['length']:0x1;return this['nodes'];}static['build'](_0x2bc3df,_0x7383d7,_0x2f47e7,_0x108d42){let _0x3a9649=new NodeBuilder(_0x2f47e7,_0x2bc3df);return RangeSet['spans'](_0x7383d7,_0x2f47e7,_0x108d42,_0x3a9649,0x0),_0x3a9649['finish'](_0x2f47e7);}}function heightRelevantDecoChanges(_0x579c69,_0x1607ac,_0x520c45){let _0x3cd5c4=new DecorationComparator();return RangeSet['compare'](_0x579c69,_0x1607ac,_0x520c45,_0x3cd5c4,0x0),_0x3cd5c4['changes'];}class DecorationComparator{constructor(){this['changes']=[];}['compareRange'](){}['comparePoint'](_0x2d7228,_0x1bf881,_0x19a776,_0x62a54b){(_0x2d7228<_0x1bf881||_0x19a776&&_0x19a776['heightRelevant']||_0x62a54b&&_0x62a54b['heightRelevant'])&&addRange(_0x2d7228,_0x1bf881,this['changes'],0x5);}}function visiblePixelRange(_0x4bb567,_0x30da96){let _0x2d9343=_0x4bb567['getBoundingClientRect'](),_0x5d1138=_0x4bb567['ownerDocument'],_0x2ce1da=_0x5d1138['defaultView']||window,_0x3f512c=Math['max'](0x0,_0x2d9343['left']),_0x16fb68=Math['min'](_0x2ce1da['innerWidth'],_0x2d9343['right']),_0x314b6d=Math['max'](0x0,_0x2d9343['top']),_0x15e0fe=Math['min'](_0x2ce1da['innerHeight'],_0x2d9343['bottom']);for(let _0x1cc9c6=_0x4bb567['parentNode'];_0x1cc9c6&&_0x1cc9c6!=_0x5d1138['body'];)if(0x1==_0x1cc9c6['nodeType']){let _0x122369=_0x1cc9c6,_0x2b98e3=window['getComputedStyle'](_0x122369);if((_0x122369['scrollHeight']>_0x122369['clientHeight']||_0x122369['scrollWidth']>_0x122369['clientWidth'])&&'visible'!=_0x2b98e3['overflow']){let _0x4074e8=_0x122369['getBoundingClientRect']();_0x3f512c=Math['max'](_0x3f512c,_0x4074e8['left']),_0x16fb68=Math['min'](_0x16fb68,_0x4074e8['right']),_0x314b6d=Math['max'](_0x314b6d,_0x4074e8['top']),_0x15e0fe=Math['min'](_0x1cc9c6==_0x4bb567['parentNode']?_0x2ce1da['innerHeight']:_0x15e0fe,_0x4074e8['bottom']);}_0x1cc9c6='absolute'==_0x2b98e3['position']||'fixed'==_0x2b98e3['position']?_0x122369['offsetParent']:_0x122369['parentNode'];}else{if(0xb!=_0x1cc9c6['nodeType'])break;_0x1cc9c6=_0x1cc9c6['host'];}return{'left':_0x3f512c-_0x2d9343['left'],'right':Math['max'](_0x3f512c,_0x16fb68)-_0x2d9343['left'],'top':_0x314b6d-(_0x2d9343['top']+_0x30da96),'bottom':Math['max'](_0x314b6d,_0x15e0fe)-(_0x2d9343['top']+_0x30da96)};}function inWindow(_0x554d6a){let _0x8fb1f0=_0x554d6a['getBoundingClientRect'](),_0x5c8326=_0x554d6a['ownerDocument']['defaultView']||window;return _0x8fb1f0['left']<_0x5c8326['innerWidth']&&_0x8fb1f0['right']>0x0&&_0x8fb1f0['top']<_0x5c8326['innerHeight']&&_0x8fb1f0['bottom']>0x0;}function fullPixelRange(_0x31d467,_0x2dc99c){let _0x535722=_0x31d467['getBoundingClientRect']();return{'left':0x0,'right':_0x535722['right']-_0x535722['left'],'top':_0x2dc99c,'bottom':_0x535722['bottom']-(_0x535722['top']+_0x2dc99c)};}class LineGap{constructor(_0x3a73f6,_0x216b0e,_0x4f0bb0,_0x1e3baf){this['from']=_0x3a73f6,this['to']=_0x216b0e,this['size']=_0x4f0bb0,this['displaySize']=_0x1e3baf;}static['same'](_0x1e5cfc,_0x515e5c){if(_0x1e5cfc['length']!=_0x515e5c['length'])return!0x1;for(let _0x2725f9=0x0;_0x2725f9<_0x1e5cfc['length'];_0x2725f9++){let _0x53008e=_0x1e5cfc[_0x2725f9],_0x29a6af=_0x515e5c[_0x2725f9];if(_0x53008e['from']!=_0x29a6af['from']||_0x53008e['to']!=_0x29a6af['to']||_0x53008e['size']!=_0x29a6af['size'])return!0x1;}return!0x0;}['draw'](_0xcc4178,_0x59448b){return Decoration['replace']({'widget':new LineGapWidget(this['displaySize']*(_0x59448b?_0xcc4178['scaleY']:_0xcc4178['scaleX']),_0x59448b)})['range'](this['from'],this['to']);}}class LineGapWidget extends WidgetType{constructor(_0xbc1b8a,_0x1cef20){super(),this['size']=_0xbc1b8a,this['vertical']=_0x1cef20;}['eq'](_0x16c3a5){return _0x16c3a5['size']==this['size']&&_0x16c3a5['vertical']==this['vertical'];}['toDOM'](){let _0x36cd55=document['createElement']('div');return this['vertical']?_0x36cd55['style']['height']=this['size']+'px':(_0x36cd55['style']['width']=this['size']+'px',_0x36cd55['style']['height']='2px',_0x36cd55['style']['display']='inline-block'),_0x36cd55;}get['estimatedHeight'](){return this['vertical']?this['size']:-0x1;}}class ViewState{constructor(_0x3cf6b4){this['state']=_0x3cf6b4,this['pixelViewport']={'left':0x0,'right':window['innerWidth'],'top':0x0,'bottom':0x0},this['inView']=!0x0,this['paddingTop']=0x0,this['paddingBottom']=0x0,this['contentDOMWidth']=0x0,this['contentDOMHeight']=0x0,this['editorHeight']=0x0,this['editorWidth']=0x0,this['scrollTop']=0x0,this['scrolledToBottom']=!0x1,this['scaleX']=0x1,this['scaleY']=0x1,this['scrollAnchorPos']=0x0,this['scrollAnchorHeight']=-0x1,this['scaler']=IdScaler,this['scrollTarget']=null,this['printing']=!0x1,this['mustMeasureContent']=!0x0,this['defaultTextDirection']=Direction['LTR'],this['visibleRanges']=[],this['mustEnforceCursorAssoc']=!0x1;let _0x128c1a=_0x3cf6b4['facet'](contentAttributes)['some'](_0x405b18=>'function'!=typeof _0x405b18&&'cm-lineWrapping'==_0x405b18['class']);this['heightOracle']=new HeightOracle(_0x128c1a),this['stateDeco']=_0x3cf6b4['facet'](decorations)['filter'](_0x275e85=>'function'!=typeof _0x275e85),this['heightMap']=HeightMap['empty']()['applyChanges'](this['stateDeco'],Text['empty'],this['heightOracle']['setDoc'](_0x3cf6b4['doc']),[new ChangedRange(0x0,0x0,0x0,_0x3cf6b4['doc']['length'])]);for(let _0x4695f2=0x0;_0x4695f2<0x2&&(this['viewport']=this['getViewport'](0x0,null),this['updateForViewport']());_0x4695f2++);this['updateViewportLines'](),this['lineGaps']=this['ensureLineGaps']([]),this['lineGapDeco']=Decoration['set'](this['lineGaps']['map'](_0x5548d6=>_0x5548d6['draw'](this,!0x1))),this['computeVisibleRanges']();}['updateForViewport'](){let _0x2178e2=[this['viewport']],{main:_0x50b792}=this['state']['selection'];for(let _0x1f872e=0x0;_0x1f872e<=0x1;_0x1f872e++){let _0x4da3a5=_0x1f872e?_0x50b792['head']:_0x50b792['anchor'];if(!_0x2178e2['some'](({from:_0x4a38c9,to:_0x38c481})=>_0x4da3a5>=_0x4a38c9&&_0x4da3a5<=_0x38c481)){let {from:_0x3f300b,to:_0x511566}=this['lineBlockAt'](_0x4da3a5);_0x2178e2['push'](new Viewport(_0x3f300b,_0x511566));}}return this['viewports']=_0x2178e2['sort']((_0x2f4d6b,_0x1f6d54)=>_0x2f4d6b['from']-_0x1f6d54['from']),this['updateScaler']();}['updateScaler'](){let _0x19b592=this['scaler'];return this['scaler']=this['heightMap']['height']<=0x6acfc0?IdScaler:new BigScaler(this['heightOracle'],this['heightMap'],this['viewports']),_0x19b592['eq'](this['scaler'])?0x0:0x2;}['updateViewportLines'](){this['viewportLines']=[],this['heightMap']['forEachLine'](this['viewport']['from'],this['viewport']['to'],this['heightOracle']['setDoc'](this['state']['doc']),0x0,0x0,_0x313a53=>{this['viewportLines']['push'](scaleBlock(_0x313a53,this['scaler']));});}['update'](_0x336aea,_0x19fa17=null){this['state']=_0x336aea['state'];let _0xb3362e=this['stateDeco'];this['stateDeco']=this['state']['facet'](decorations)['filter'](_0x5f6eca=>'function'!=typeof _0x5f6eca);let _0x2e6b82=_0x336aea['changedRanges'],_0x33e08b=ChangedRange['extendWithRanges'](_0x2e6b82,heightRelevantDecoChanges(_0xb3362e,this['stateDeco'],_0x336aea?_0x336aea['changes']:ChangeSet['empty'](this['state']['doc']['length']))),_0x2d8c67=this['heightMap']['height'],_0x255ee3=this['scrolledToBottom']?null:this['scrollAnchorAt'](this['scrollTop']);clearHeightChangeFlag(),this['heightMap']=this['heightMap']['applyChanges'](this['stateDeco'],_0x336aea['startState']['doc'],this['heightOracle']['setDoc'](this['state']['doc']),_0x33e08b),(this['heightMap']['height']!=_0x2d8c67||heightChangeFlag)&&(_0x336aea['flags']|=0x2),_0x255ee3?(this['scrollAnchorPos']=_0x336aea['changes']['mapPos'](_0x255ee3['from'],-0x1),this['scrollAnchorHeight']=_0x255ee3['top']):(this['scrollAnchorPos']=-0x1,this['scrollAnchorHeight']=_0x2d8c67);let _0x17b445=_0x33e08b['length']?this['mapViewport'](this['viewport'],_0x336aea['changes']):this['viewport'];(_0x19fa17&&(_0x19fa17['range']['head']<_0x17b445['from']||_0x19fa17['range']['head']>_0x17b445['to'])||!this['viewportIsAppropriate'](_0x17b445))&&(_0x17b445=this['getViewport'](0x0,_0x19fa17));let _0x52fa0c=_0x17b445['from']!=this['viewport']['from']||_0x17b445['to']!=this['viewport']['to'];this['viewport']=_0x17b445,_0x336aea['flags']|=this['updateForViewport'](),(_0x52fa0c||!_0x336aea['changes']['empty']||0x2&_0x336aea['flags'])&&this['updateViewportLines'](),(this['lineGaps']['length']||this['viewport']['to']-this['viewport']['from']>0xfa0)&&this['updateLineGaps'](this['ensureLineGaps'](this['mapLineGaps'](this['lineGaps'],_0x336aea['changes']))),_0x336aea['flags']|=this['computeVisibleRanges'](_0x336aea['changes']),_0x19fa17&&(this['scrollTarget']=_0x19fa17),!this['mustEnforceCursorAssoc']&&_0x336aea['selectionSet']&&_0x336aea['view']['lineWrapping']&&_0x336aea['state']['selection']['main']['empty']&&_0x336aea['state']['selection']['main']['assoc']&&!_0x336aea['state']['facet'](nativeSelectionHidden)&&(this['mustEnforceCursorAssoc']=!0x0);}['measure'](_0x5b2cda){let _0x1af4da=_0x5b2cda['contentDOM'],_0x4ad4e9=window['getComputedStyle'](_0x1af4da),_0x547004=this['heightOracle'],_0x45b8f6=_0x4ad4e9['whiteSpace'];this['defaultTextDirection']='rtl'==_0x4ad4e9['direction']?Direction['RTL']:Direction['LTR'];let _0x502240=this['heightOracle']['mustRefreshForWrapping'](_0x45b8f6),_0x557046=_0x1af4da['getBoundingClientRect'](),_0x3a0c79=_0x502240||this['mustMeasureContent']||this['contentDOMHeight']!=_0x557046['height'];this['contentDOMHeight']=_0x557046['height'],this['mustMeasureContent']=!0x1;let _0x37b9ed=0x0,_0x268f4c=0x0;if(_0x557046['width']&&_0x557046['height']){let {scaleX:_0x2158b2,scaleY:_0x86897c}=getScale(_0x1af4da,_0x557046);(_0x2158b2>0.005&&Math['abs'](this['scaleX']-_0x2158b2)>0.005||_0x86897c>0.005&&Math['abs'](this['scaleY']-_0x86897c)>0.005)&&(this['scaleX']=_0x2158b2,this['scaleY']=_0x86897c,_0x37b9ed|=0x10,_0x502240=_0x3a0c79=!0x0);}let _0x5e621d=(parseInt(_0x4ad4e9['paddingTop'])||0x0)*this['scaleY'],_0x16750d=(parseInt(_0x4ad4e9['paddingBottom'])||0x0)*this['scaleY'];this['paddingTop']==_0x5e621d&&this['paddingBottom']==_0x16750d||(this['paddingTop']=_0x5e621d,this['paddingBottom']=_0x16750d,_0x37b9ed|=0x12),this['editorWidth']!=_0x5b2cda['scrollDOM']['clientWidth']&&(_0x547004['lineWrapping']&&(_0x3a0c79=!0x0),this['editorWidth']=_0x5b2cda['scrollDOM']['clientWidth'],_0x37b9ed|=0x10);let _0x2e39b4=_0x5b2cda['scrollDOM']['scrollTop']*this['scaleY'];this['scrollTop']!=_0x2e39b4&&(this['scrollAnchorHeight']=-0x1,this['scrollTop']=_0x2e39b4),this['scrolledToBottom']=isScrolledToBottom(_0x5b2cda['scrollDOM']);let _0x44a8a7=(this['printing']?fullPixelRange:visiblePixelRange)(_0x1af4da,this['paddingTop']),_0x25a70c=_0x44a8a7['top']-this['pixelViewport']['top'],_0x1715e3=_0x44a8a7['bottom']-this['pixelViewport']['bottom'];this['pixelViewport']=_0x44a8a7;let _0x5be3c0=this['pixelViewport']['bottom']>this['pixelViewport']['top']&&this['pixelViewport']['right']>this['pixelViewport']['left'];if(_0x5be3c0!=this['inView']&&(this['inView']=_0x5be3c0,_0x5be3c0&&(_0x3a0c79=!0x0)),!this['inView']&&!this['scrollTarget']&&!inWindow(_0x5b2cda['dom']))return 0x0;let _0x42d8c5=_0x557046['width'];if(this['contentDOMWidth']==_0x42d8c5&&this['editorHeight']==_0x5b2cda['scrollDOM']['clientHeight']||(this['contentDOMWidth']=_0x557046['width'],this['editorHeight']=_0x5b2cda['scrollDOM']['clientHeight'],_0x37b9ed|=0x10),_0x3a0c79){let _0x3ab357=_0x5b2cda['docView']['measureVisibleLineHeights'](this['viewport']);if(_0x547004['mustRefreshForHeights'](_0x3ab357)&&(_0x502240=!0x0),_0x502240||_0x547004['lineWrapping']&&Math['abs'](_0x42d8c5-this['contentDOMWidth'])>_0x547004['charWidth']){let {lineHeight:_0x4f007d,charWidth:_0x1746f5,textHeight:_0xc1c5c9}=_0x5b2cda['docView']['measureTextSize']();_0x502240=_0x4f007d>0x0&&_0x547004['refresh'](_0x45b8f6,_0x4f007d,_0x1746f5,_0xc1c5c9,Math['max'](0x5,_0x42d8c5/_0x1746f5),_0x3ab357),_0x502240&&(_0x5b2cda['docView']['minWidth']=0x0,_0x37b9ed|=0x10);}_0x25a70c>0x0&&_0x1715e3>0x0?_0x268f4c=Math['max'](_0x25a70c,_0x1715e3):_0x25a70c<0x0&&_0x1715e3<0x0&&(_0x268f4c=Math['min'](_0x25a70c,_0x1715e3)),clearHeightChangeFlag();for(let _0x137949 of this['viewports']){let _0x13827f=_0x137949['from']==this['viewport']['from']?_0x3ab357:_0x5b2cda['docView']['measureVisibleLineHeights'](_0x137949);this['heightMap']=(_0x502240?HeightMap['empty']()['applyChanges'](this['stateDeco'],Text['empty'],this['heightOracle'],[new ChangedRange(0x0,0x0,0x0,_0x5b2cda['state']['doc']['length'])]):this['heightMap'])['updateHeight'](_0x547004,0x0,_0x502240,new MeasuredHeights(_0x137949['from'],_0x13827f));}heightChangeFlag&&(_0x37b9ed|=0x2);}let _0x5a12f5=!this['viewportIsAppropriate'](this['viewport'],_0x268f4c)||this['scrollTarget']&&(this['scrollTarget']['range']['head']<this['viewport']['from']||this['scrollTarget']['range']['head']>this['viewport']['to']);return _0x5a12f5&&(0x2&_0x37b9ed&&(_0x37b9ed|=this['updateScaler']()),this['viewport']=this['getViewport'](_0x268f4c,this['scrollTarget']),_0x37b9ed|=this['updateForViewport']()),(0x2&_0x37b9ed||_0x5a12f5)&&this['updateViewportLines'](),(this['lineGaps']['length']||this['viewport']['to']-this['viewport']['from']>0xfa0)&&this['updateLineGaps'](this['ensureLineGaps'](_0x502240?[]:this['lineGaps'],_0x5b2cda)),_0x37b9ed|=this['computeVisibleRanges'](),this['mustEnforceCursorAssoc']&&(this['mustEnforceCursorAssoc']=!0x1,_0x5b2cda['docView']['enforceCursorAssoc']()),_0x37b9ed;}get['visibleTop'](){return this['scaler']['fromDOM'](this['pixelViewport']['top']);}get['visibleBottom'](){return this['scaler']['fromDOM'](this['pixelViewport']['bottom']);}['getViewport'](_0x71bbac,_0x23a056){let _0x171bb8=0.5-Math['max'](-0.5,Math['min'](0.5,_0x71bbac/0x3e8/0x2)),_0x3ecc0d=this['heightMap'],_0x3cf8cc=this['heightOracle'],{visibleTop:_0x39277c,visibleBottom:_0x3d4e21}=this,_0xf56cca=new Viewport(_0x3ecc0d['lineAt'](_0x39277c-0x3e8*_0x171bb8,QueryType['ByHeight'],_0x3cf8cc,0x0,0x0)['from'],_0x3ecc0d['lineAt'](_0x3d4e21+0x3e8*(0x1-_0x171bb8),QueryType['ByHeight'],_0x3cf8cc,0x0,0x0)['to']);if(_0x23a056){let {head:_0x236d45}=_0x23a056['range'];if(_0x236d45<_0xf56cca['from']||_0x236d45>_0xf56cca['to']){let _0x258c73,_0x8f8924=Math['min'](this['editorHeight'],this['pixelViewport']['bottom']-this['pixelViewport']['top']),_0x1233bd=_0x3ecc0d['lineAt'](_0x236d45,QueryType['ByPos'],_0x3cf8cc,0x0,0x0);_0x258c73='center'==_0x23a056['y']?(_0x1233bd['top']+_0x1233bd['bottom'])/0x2-_0x8f8924/0x2:'start'==_0x23a056['y']||'nearest'==_0x23a056['y']&&_0x236d45<_0xf56cca['from']?_0x1233bd['top']:_0x1233bd['bottom']-_0x8f8924,_0xf56cca=new Viewport(_0x3ecc0d['lineAt'](_0x258c73-0x1f4,QueryType['ByHeight'],_0x3cf8cc,0x0,0x0)['from'],_0x3ecc0d['lineAt'](_0x258c73+_0x8f8924+0x1f4,QueryType['ByHeight'],_0x3cf8cc,0x0,0x0)['to']);}}return _0xf56cca;}['mapViewport'](_0x94fe,_0x5d5b73){let _0x3b9e86=_0x5d5b73['mapPos'](_0x94fe['from'],-0x1),_0x19606e=_0x5d5b73['mapPos'](_0x94fe['to'],0x1);return new Viewport(this['heightMap']['lineAt'](_0x3b9e86,QueryType['ByPos'],this['heightOracle'],0x0,0x0)['from'],this['heightMap']['lineAt'](_0x19606e,QueryType['ByPos'],this['heightOracle'],0x0,0x0)['to']);}['viewportIsAppropriate']({from:_0x373d00,to:_0x2e17f1},_0x3ea98a=0x0){if(!this['inView'])return!0x0;let {top:_0x42685e}=this['heightMap']['lineAt'](_0x373d00,QueryType['ByPos'],this['heightOracle'],0x0,0x0),{bottom:_0x2f76d7}=this['heightMap']['lineAt'](_0x2e17f1,QueryType['ByPos'],this['heightOracle'],0x0,0x0),{visibleTop:_0x4fcc79,visibleBottom:_0x4c7306}=this;return(0x0==_0x373d00||_0x42685e<=_0x4fcc79-Math['max'](0xa,Math['min'](-_0x3ea98a,0xfa)))&&(_0x2e17f1==this['state']['doc']['length']||_0x2f76d7>=_0x4c7306+Math['max'](0xa,Math['min'](_0x3ea98a,0xfa)))&&_0x42685e>_0x4fcc79-0x7d0&&_0x2f76d7<_0x4c7306+0x7d0;}['mapLineGaps'](_0xaf5bd,_0x5371b1){if(!_0xaf5bd['length']||_0x5371b1['empty'])return _0xaf5bd;let _0x52342d=[];for(let _0x159409 of _0xaf5bd)_0x5371b1['touchesRange'](_0x159409['from'],_0x159409['to'])||_0x52342d['push'](new LineGap(_0x5371b1['mapPos'](_0x159409['from']),_0x5371b1['mapPos'](_0x159409['to']),_0x159409['size'],_0x159409['displaySize']));return _0x52342d;}['ensureLineGaps'](_0x4be7db,_0x962087){let _0x37a095=this['heightOracle']['lineWrapping'],_0x2c229b=_0x37a095?0x2710:0x7d0,_0x5f684d=_0x2c229b>>0x1,_0xfb6270=_0x2c229b<<0x1;if(this['defaultTextDirection']!=Direction['LTR']&&!_0x37a095)return[];let _0x16677f=[],_0x941650=(_0x23e156,_0x490e00,_0x3206a3,_0x1f37a9)=>{if(_0x490e00-_0x23e156<_0x5f684d)return;let _0xcde492=this['state']['selection']['main'],_0x430260=[_0xcde492['from']];_0xcde492['empty']||_0x430260['push'](_0xcde492['to']);for(let _0x545caf of _0x430260)if(_0x545caf>_0x23e156&&_0x545caf<_0x490e00)return _0x941650(_0x23e156,_0x545caf-0xa,_0x3206a3,_0x1f37a9),void _0x941650(_0x545caf+0xa,_0x490e00,_0x3206a3,_0x1f37a9);let _0x9f4ae9=find(_0x4be7db,_0x2d9607=>_0x2d9607['from']>=_0x3206a3['from']&&_0x2d9607['to']<=_0x3206a3['to']&&Math['abs'](_0x2d9607['from']-_0x23e156)<_0x5f684d&&Math['abs'](_0x2d9607['to']-_0x490e00)<_0x5f684d&&!_0x430260['some'](_0x2849e8=>_0x2d9607['from']<_0x2849e8&&_0x2d9607['to']>_0x2849e8));if(!_0x9f4ae9){if(_0x490e00<_0x3206a3['to']&&_0x962087&&_0x37a095&&_0x962087['visibleRanges']['some'](_0x3c0bbc=>_0x3c0bbc['from']<=_0x490e00&&_0x3c0bbc['to']>=_0x490e00)){let _0x5f543a=_0x962087['moveToLineBoundary'](EditorSelection['cursor'](_0x490e00),!0x1,!0x0)['head'];_0x5f543a>_0x23e156&&(_0x490e00=_0x5f543a);}let _0x758cf3=this['gapSize'](_0x3206a3,_0x23e156,_0x490e00,_0x1f37a9);_0x9f4ae9=new LineGap(_0x23e156,_0x490e00,_0x758cf3,_0x37a095||_0x758cf3<0x1e8480?_0x758cf3:0x1e8480);}_0x16677f['push'](_0x9f4ae9);},_0x3f15d7=_0x2152d9=>{if(_0x2152d9['length']<_0xfb6270||_0x2152d9['type']!=BlockType['Text'])return;let _0x34073d=lineStructure(_0x2152d9['from'],_0x2152d9['to'],this['stateDeco']);if(_0x34073d['total']<_0xfb6270)return;let _0x2a6551,_0x486d06,_0x44c415=this['scrollTarget']?this['scrollTarget']['range']['head']:null;if(_0x37a095){let _0x10def1,_0x157167,_0x209d71=_0x2c229b/this['heightOracle']['lineLength']*this['heightOracle']['lineHeight'];if(null!=_0x44c415){let _0x6a4e11=findFraction(_0x34073d,_0x44c415),_0x452276=((this['visibleBottom']-this['visibleTop'])/0x2+_0x209d71)/_0x2152d9['height'];_0x10def1=_0x6a4e11-_0x452276,_0x157167=_0x6a4e11+_0x452276;}else _0x10def1=(this['visibleTop']-_0x2152d9['top']-_0x209d71)/_0x2152d9['height'],_0x157167=(this['visibleBottom']-_0x2152d9['top']+_0x209d71)/_0x2152d9['height'];_0x2a6551=findPosition(_0x34073d,_0x10def1),_0x486d06=findPosition(_0x34073d,_0x157167);}else{let _0x5414ba=_0x34073d['total']*this['heightOracle']['charWidth'],_0x24280d=_0x2c229b*this['heightOracle']['charWidth'],_0x556162=0x0;if(_0x5414ba>0x1e8480){for(let _0x1de296 of _0x4be7db)_0x1de296['from']>=_0x2152d9['from']&&_0x1de296['from']<_0x2152d9['to']&&_0x1de296['size']!=_0x1de296['displaySize']&&_0x1de296['from']*this['heightOracle']['charWidth']+_0x556162<this['pixelViewport']['left']&&(_0x556162=_0x1de296['size']-_0x1de296['displaySize']);}let _0x3d82bf,_0x55b382,_0x79cfb=this['pixelViewport']['left']+_0x556162,_0x3728bf=this['pixelViewport']['right']+_0x556162;if(null!=_0x44c415){let _0x505882=findFraction(_0x34073d,_0x44c415),_0x1051d5=((_0x3728bf-_0x79cfb)/0x2+_0x24280d)/_0x5414ba;_0x3d82bf=_0x505882-_0x1051d5,_0x55b382=_0x505882+_0x1051d5;}else _0x3d82bf=(_0x79cfb-_0x24280d)/_0x5414ba,_0x55b382=(_0x3728bf+_0x24280d)/_0x5414ba;_0x2a6551=findPosition(_0x34073d,_0x3d82bf),_0x486d06=findPosition(_0x34073d,_0x55b382);}_0x2a6551>_0x2152d9['from']&&_0x941650(_0x2152d9['from'],_0x2a6551,_0x2152d9,_0x34073d),_0x486d06<_0x2152d9['to']&&_0x941650(_0x486d06,_0x2152d9['to'],_0x2152d9,_0x34073d);};for(let _0x30f3c7 of this['viewportLines'])Array['isArray'](_0x30f3c7['type'])?_0x30f3c7['type']['forEach'](_0x3f15d7):_0x3f15d7(_0x30f3c7);return _0x16677f;}['gapSize'](_0x4395bc,_0x48742f,_0x3cb691,_0x225690){let _0x40d34d=findFraction(_0x225690,_0x3cb691)-findFraction(_0x225690,_0x48742f);return this['heightOracle']['lineWrapping']?_0x4395bc['height']*_0x40d34d:_0x225690['total']*this['heightOracle']['charWidth']*_0x40d34d;}['updateLineGaps'](_0x55ab11){LineGap['same'](_0x55ab11,this['lineGaps'])||(this['lineGaps']=_0x55ab11,this['lineGapDeco']=Decoration['set'](_0x55ab11['map'](_0x4dcb4c=>_0x4dcb4c['draw'](this,this['heightOracle']['lineWrapping']))));}['computeVisibleRanges'](_0x1e94d4){let _0x2b78ce=this['stateDeco'];this['lineGaps']['length']&&(_0x2b78ce=_0x2b78ce['concat'](this['lineGapDeco']));let _0x7f9b3c=[];RangeSet['spans'](_0x2b78ce,this['viewport']['from'],this['viewport']['to'],{'span'(_0x295f82,_0x39111b){_0x7f9b3c['push']({'from':_0x295f82,'to':_0x39111b});},'point'(){}},0x14);let _0x54608a=0x0;if(_0x7f9b3c['length']!=this['visibleRanges']['length'])_0x54608a=0xc;else for(let _0x400f84=0x0;_0x400f84<_0x7f9b3c['length']&&!(0x8&_0x54608a);_0x400f84++){let _0x405dd2=this['visibleRanges'][_0x400f84],_0x5a1eec=_0x7f9b3c[_0x400f84];_0x405dd2['from']==_0x5a1eec['from']&&_0x405dd2['to']==_0x5a1eec['to']||(_0x54608a|=0x4,_0x1e94d4&&_0x1e94d4['mapPos'](_0x405dd2['from'],-0x1)==_0x5a1eec['from']&&_0x1e94d4['mapPos'](_0x405dd2['to'],0x1)==_0x5a1eec['to']||(_0x54608a|=0x8));}return this['visibleRanges']=_0x7f9b3c,_0x54608a;}['lineBlockAt'](_0x293627){return _0x293627>=this['viewport']['from']&&_0x293627<=this['viewport']['to']&&this['viewportLines']['find'](_0xe5f6e9=>_0xe5f6e9['from']<=_0x293627&&_0xe5f6e9['to']>=_0x293627)||scaleBlock(this['heightMap']['lineAt'](_0x293627,QueryType['ByPos'],this['heightOracle'],0x0,0x0),this['scaler']);}['lineBlockAtHeight'](_0x4993fd){return _0x4993fd>=this['viewportLines'][0x0]['top']&&_0x4993fd<=this['viewportLines'][this['viewportLines']['length']-0x1]['bottom']&&this['viewportLines']['find'](_0x1c5792=>_0x1c5792['top']<=_0x4993fd&&_0x1c5792['bottom']>=_0x4993fd)||scaleBlock(this['heightMap']['lineAt'](this['scaler']['fromDOM'](_0x4993fd),QueryType['ByHeight'],this['heightOracle'],0x0,0x0),this['scaler']);}['scrollAnchorAt'](_0x50c84b){let _0x96d568=this['lineBlockAtHeight'](_0x50c84b+0x8);return _0x96d568['from']>=this['viewport']['from']||this['viewportLines'][0x0]['top']-_0x50c84b>0xc8?_0x96d568:this['viewportLines'][0x0];}['elementAtHeight'](_0x53ac51){return scaleBlock(this['heightMap']['blockAt'](this['scaler']['fromDOM'](_0x53ac51),this['heightOracle'],0x0,0x0),this['scaler']);}get['docHeight'](){return this['scaler']['toDOM'](this['heightMap']['height']);}get['contentHeight'](){return this['docHeight']+this['paddingTop']+this['paddingBottom'];}}class Viewport{constructor(_0x4135d2,_0x3c42ac){this['from']=_0x4135d2,this['to']=_0x3c42ac;}}function lineStructure(_0x4aacd1,_0x27723b,_0x531628){let _0x47b5c5=[],_0x424217=_0x4aacd1,_0x13f9c4=0x0;return RangeSet['spans'](_0x531628,_0x4aacd1,_0x27723b,{'span'(){},'point'(_0xf72405,_0x1a32a0){_0xf72405>_0x424217&&(_0x47b5c5['push']({'from':_0x424217,'to':_0xf72405}),_0x13f9c4+=_0xf72405-_0x424217),_0x424217=_0x1a32a0;}},0x14),_0x424217<_0x27723b&&(_0x47b5c5['push']({'from':_0x424217,'to':_0x27723b}),_0x13f9c4+=_0x27723b-_0x424217),{'total':_0x13f9c4,'ranges':_0x47b5c5};}function findPosition({total:_0x29c63c,ranges:_0x374d80},_0x358647){if(_0x358647<=0x0)return _0x374d80[0x0]['from'];if(_0x358647>=0x1)return _0x374d80[_0x374d80['length']-0x1]['to'];let _0x30c3bf=Math['floor'](_0x29c63c*_0x358647);for(let _0xc24a08=0x0;;_0xc24a08++){let {from:_0x155e2b,to:_0x2362c3}=_0x374d80[_0xc24a08],_0x296058=_0x2362c3-_0x155e2b;if(_0x30c3bf<=_0x296058)return _0x155e2b+_0x30c3bf;_0x30c3bf-=_0x296058;}}function findFraction(_0x4202d8,_0x25abc1){let _0x3b4c65=0x0;for(let {from:_0x52bc77,to:_0x1c26c2}of _0x4202d8['ranges']){if(_0x25abc1<=_0x1c26c2){_0x3b4c65+=_0x25abc1-_0x52bc77;break;}_0x3b4c65+=_0x1c26c2-_0x52bc77;}return _0x3b4c65/_0x4202d8['total'];}function find(_0x25ec72,_0x5ea5f9){for(let _0x1b807e of _0x25ec72)if(_0x5ea5f9(_0x1b807e))return _0x1b807e;}const IdScaler={'toDOM':_0x11b7e6=>_0x11b7e6,'fromDOM':_0x631041=>_0x631041,'scale':0x1,'eq'(_0x1c0553){return _0x1c0553==this;}};class BigScaler{constructor(_0x355ca7,_0x330b44,_0x49e8d1){let _0x174bfa=0x0,_0x4bd5d8=0x0,_0x1428be=0x0;this['viewports']=_0x49e8d1['map'](({from:_0x173076,to:_0x8e26ab})=>{let _0x4af1b7=_0x330b44['lineAt'](_0x173076,QueryType['ByPos'],_0x355ca7,0x0,0x0)['top'],_0x4a9740=_0x330b44['lineAt'](_0x8e26ab,QueryType['ByPos'],_0x355ca7,0x0,0x0)['bottom'];return _0x174bfa+=_0x4a9740-_0x4af1b7,{'from':_0x173076,'to':_0x8e26ab,'top':_0x4af1b7,'bottom':_0x4a9740,'domTop':0x0,'domBottom':0x0};}),this['scale']=(0x6acfc0-_0x174bfa)/(_0x330b44['height']-_0x174bfa);for(let _0x16286b of this['viewports'])_0x16286b['domTop']=_0x1428be+(_0x16286b['top']-_0x4bd5d8)*this['scale'],_0x1428be=_0x16286b['domBottom']=_0x16286b['domTop']+(_0x16286b['bottom']-_0x16286b['top']),_0x4bd5d8=_0x16286b['bottom'];}['toDOM'](_0x5c4acf){for(let _0x2e096a=0x0,_0x3c10b5=0x0,_0x2dd4a4=0x0;;_0x2e096a++){let _0x36b064=_0x2e096a<this['viewports']['length']?this['viewports'][_0x2e096a]:null;if(!_0x36b064||_0x5c4acf<_0x36b064['top'])return _0x2dd4a4+(_0x5c4acf-_0x3c10b5)*this['scale'];if(_0x5c4acf<=_0x36b064['bottom'])return _0x36b064['domTop']+(_0x5c4acf-_0x36b064['top']);_0x3c10b5=_0x36b064['bottom'],_0x2dd4a4=_0x36b064['domBottom'];}}['fromDOM'](_0x1f24c6){for(let _0x55417a=0x0,_0x346f9f=0x0,_0x5a9626=0x0;;_0x55417a++){let _0x23b747=_0x55417a<this['viewports']['length']?this['viewports'][_0x55417a]:null;if(!_0x23b747||_0x1f24c6<_0x23b747['domTop'])return _0x346f9f+(_0x1f24c6-_0x5a9626)/this['scale'];if(_0x1f24c6<=_0x23b747['domBottom'])return _0x23b747['top']+(_0x1f24c6-_0x23b747['domTop']);_0x346f9f=_0x23b747['bottom'],_0x5a9626=_0x23b747['domBottom'];}}['eq'](_0x4d0ee8){return _0x4d0ee8 instanceof BigScaler&&(this['scale']==_0x4d0ee8['scale']&&this['viewports']['length']==_0x4d0ee8['viewports']['length']&&this['viewports']['every']((_0xc943ea,_0x488bb0)=>_0xc943ea['from']==_0x4d0ee8['viewports'][_0x488bb0]['from']&&_0xc943ea['to']==_0x4d0ee8['viewports'][_0x488bb0]['to']));}}function scaleBlock(_0x448cb7,_0x3e6516){if(0x1==_0x3e6516['scale'])return _0x448cb7;let _0x41503c=_0x3e6516['toDOM'](_0x448cb7['top']),_0x2985eb=_0x3e6516['toDOM'](_0x448cb7['bottom']);return new BlockInfo(_0x448cb7['from'],_0x448cb7['length'],_0x41503c,_0x2985eb-_0x41503c,Array['isArray'](_0x448cb7['_content'])?_0x448cb7['_content']['map'](_0x315a9d=>scaleBlock(_0x315a9d,_0x3e6516)):_0x448cb7['_content']);}const theme=Facet['define']({'combine':_0x555c90=>_0x555c90['join']('\x20')}),darkTheme=Facet['define']({'combine':_0x34d75b=>_0x34d75b['indexOf'](!0x0)>-0x1}),baseThemeID=StyleModule['newName'](),baseLightID=StyleModule['newName'](),baseDarkID=StyleModule['newName'](),lightDarkIDs={'&light':'.'+baseLightID,'&dark':'.'+baseDarkID};function buildTheme(_0x8632c7,_0x2154fe,_0x157da1){return new StyleModule(_0x2154fe,{'finish':_0x197deb=>/&/['test'](_0x197deb)?_0x197deb['replace'](/&\w*/,_0x458cc7=>{if('&'==_0x458cc7)return _0x8632c7;if(!_0x157da1||!_0x157da1[_0x458cc7])throw new RangeError('Unsupported\x20selector:\x20'+_0x458cc7);return _0x157da1[_0x458cc7];}):_0x8632c7+'\x20'+_0x197deb});}const baseTheme$1$1=buildTheme('.'+baseThemeID,{'&':{'position':'relative\x20!important','boxSizing':'border-box','&.cm-focused':{'outline':'1px\x20dotted\x20#212121'},'display':'flex\x20!important','flexDirection':'column'},'.cm-scroller':{'display':'flex\x20!important','alignItems':'flex-start\x20!important','fontFamily':'monospace','lineHeight':1.4,'height':'100%','overflowX':'auto','position':'relative','zIndex':0x0,'overflowAnchor':'none'},'.cm-content':{'margin':0x0,'flexGrow':0x2,'flexShrink':0x0,'display':'block','whiteSpace':'pre','wordWrap':'normal','boxSizing':'border-box','minHeight':'100%','padding':'4px\x200','outline':'none','&[contenteditable=true]':{'WebkitUserModify':'read-write-plaintext-only'}},'.cm-lineWrapping':{'whiteSpace_fallback':'pre-wrap','whiteSpace':'break-spaces','wordBreak':'break-word','overflowWrap':'anywhere','flexShrink':0x1},'&light\x20.cm-content':{'caretColor':'black'},'&dark\x20.cm-content':{'caretColor':'white'},'.cm-line':{'display':'block','padding':'0\x202px\x200\x206px'},'.cm-layer':{'position':'absolute','left':0x0,'top':0x0,'contain':'size\x20style','&\x20>\x20*':{'position':'absolute'}},'&light\x20.cm-selectionBackground':{'background':'#d9d9d9'},'&dark\x20.cm-selectionBackground':{'background':'#222'},'&light.cm-focused\x20>\x20.cm-scroller\x20>\x20.cm-selectionLayer\x20.cm-selectionBackground':{'background':'#d7d4f0'},'&dark.cm-focused\x20>\x20.cm-scroller\x20>\x20.cm-selectionLayer\x20.cm-selectionBackground':{'background':'#233'},'.cm-cursorLayer':{'pointerEvents':'none'},'&.cm-focused\x20>\x20.cm-scroller\x20>\x20.cm-cursorLayer':{'animation':'steps(1)\x20cm-blink\x201.2s\x20infinite'},'@keyframes\x20cm-blink':{'0%':{},'50%':{'opacity':0x0},'100%':{}},'@keyframes\x20cm-blink2':{'0%':{},'50%':{'opacity':0x0},'100%':{}},'.cm-cursor,\x20.cm-dropCursor':{'borderLeft':'1.2px\x20solid\x20black','marginLeft':'-0.6px','pointerEvents':'none'},'.cm-cursor':{'display':'none'},'&dark\x20.cm-cursor':{'borderLeftColor':'#ddd'},'.cm-dropCursor':{'position':'absolute'},'&.cm-focused\x20>\x20.cm-scroller\x20>\x20.cm-cursorLayer\x20.cm-cursor':{'display':'block'},'.cm-iso':{'unicodeBidi':'isolate'},'.cm-announced':{'position':'fixed','top':'-10000px'},'@media\x20print':{'.cm-announced':{'display':'none'}},'&light\x20.cm-activeLine':{'backgroundColor':'#cceeff44'},'&dark\x20.cm-activeLine':{'backgroundColor':'#99eeff33'},'&light\x20.cm-specialChar':{'color':'red'},'&dark\x20.cm-specialChar':{'color':'#f78'},'.cm-gutters':{'flexShrink':0x0,'display':'flex','height':'100%','boxSizing':'border-box','zIndex':0xc8},'.cm-gutters-before':{'insetInlineStart':0x0},'.cm-gutters-after':{'insetInlineEnd':0x0},'&light\x20.cm-gutters':{'backgroundColor':'#f5f5f5','color':'#6c6c6c','border':'0px\x20solid\x20#ddd','&.cm-gutters-before':{'borderRightWidth':'1px'},'&.cm-gutters-after':{'borderLeftWidth':'1px'}},'&dark\x20.cm-gutters':{'backgroundColor':'#333338','color':'#ccc'},'.cm-gutter':{'display':'flex\x20!important','flexDirection':'column','flexShrink':0x0,'boxSizing':'border-box','minHeight':'100%','overflow':'hidden'},'.cm-gutterElement':{'boxSizing':'border-box'},'.cm-lineNumbers\x20.cm-gutterElement':{'padding':'0\x203px\x200\x205px','minWidth':'20px','textAlign':'right','whiteSpace':'nowrap'},'&light\x20.cm-activeLineGutter':{'backgroundColor':'#e2f2ff'},'&dark\x20.cm-activeLineGutter':{'backgroundColor':'#222227'},'.cm-panels':{'boxSizing':'border-box','position':'sticky','left':0x0,'right':0x0,'zIndex':0x12c},'&light\x20.cm-panels':{'backgroundColor':'#f5f5f5','color':'black'},'&light\x20.cm-panels-top':{'borderBottom':'1px\x20solid\x20#ddd'},'&light\x20.cm-panels-bottom':{'borderTop':'1px\x20solid\x20#ddd'},'&dark\x20.cm-panels':{'backgroundColor':'#333338','color':'white'},'.cm-dialog':{'padding':'2px\x2019px\x204px\x206px','position':'relative','&\x20label':{'fontSize':'80%'}},'.cm-dialog-close':{'position':'absolute','top':'3px','right':'4px','backgroundColor':'inherit','border':'none','font':'inherit','fontSize':'14px','padding':'0'},'.cm-tab':{'display':'inline-block','overflow':'hidden','verticalAlign':'bottom'},'.cm-widgetBuffer':{'verticalAlign':'text-top','height':'1em','width':0x0,'display':'inline'},'.cm-placeholder':{'color':'#888','display':'inline-block','verticalAlign':'top','userSelect':'none'},'.cm-highlightSpace':{'backgroundImage':'radial-gradient(circle\x20at\x2050%\x2055%,\x20#aaa\x2020%,\x20transparent\x205%)','backgroundPosition':'center'},'.cm-highlightTab':{'backgroundImage':'url(\x27data:image/svg+xml,<svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20width=\x22200\x22\x20height=\x2220\x22><path\x20stroke=\x22%23888\x22\x20stroke-width=\x221\x22\x20fill=\x22none\x22\x20d=\x22M1\x2010H196L190\x205M190\x2015L196\x2010M197\x204L197\x2016\x22/></svg>\x27)','backgroundSize':'auto\x20100%','backgroundPosition':'right\x2090%','backgroundRepeat':'no-repeat'},'.cm-trailingSpace':{'backgroundColor':'#ff332255'},'.cm-button':{'verticalAlign':'middle','color':'inherit','fontSize':'70%','padding':'.2em\x201em','borderRadius':'1px'},'&light\x20.cm-button':{'backgroundImage':'linear-gradient(#eff1f5,\x20#d9d9df)','border':'1px\x20solid\x20#888','&:active':{'backgroundImage':'linear-gradient(#b4b4b4,\x20#d0d3d6)'}},'&dark\x20.cm-button':{'backgroundImage':'linear-gradient(#393939,\x20#111)','border':'1px\x20solid\x20#888','&:active':{'backgroundImage':'linear-gradient(#111,\x20#333)'}},'.cm-textfield':{'verticalAlign':'middle','color':'inherit','fontSize':'70%','border':'1px\x20solid\x20silver','padding':'.2em\x20.5em'},'&light\x20.cm-textfield':{'backgroundColor':'white'},'&dark\x20.cm-textfield':{'border':'1px\x20solid\x20#555','backgroundColor':'inherit'}},lightDarkIDs),observeOptions={'childList':!0x0,'characterData':!0x0,'subtree':!0x0,'attributes':!0x0,'characterDataOldValue':!0x0},useCharData=browser['ie']&&browser['ie_version']<=0xb;class DOMObserver{constructor(_0x509213){this['view']=_0x509213,this['active']=!0x1,this['editContext']=null,this['selectionRange']=new DOMSelectionState(),this['selectionChanged']=!0x1,this['delayedFlush']=-0x1,this['resizeTimeout']=-0x1,this['queue']=[],this['delayedAndroidKey']=null,this['flushingAndroidKey']=-0x1,this['lastChange']=0x0,this['scrollTargets']=[],this['intersection']=null,this['resizeScroll']=null,this['intersecting']=!0x1,this['gapIntersection']=null,this['gaps']=[],this['printQuery']=null,this['parentCheck']=-0x1,this['dom']=_0x509213['contentDOM'],this['observer']=new MutationObserver(_0x3e4337=>{for(let _0x232846 of _0x3e4337)this['queue']['push'](_0x232846);(browser['ie']&&browser['ie_version']<=0xb||browser['ios']&&_0x509213['composing'])&&_0x3e4337['some'](_0x11e9d8=>'childList'==_0x11e9d8['type']&&_0x11e9d8['removedNodes']['length']||'characterData'==_0x11e9d8['type']&&_0x11e9d8['oldValue']['length']>_0x11e9d8['target']['nodeValue']['length'])?this['flushSoon']():this['flush']();}),!window['EditContext']||!browser['android']||!0x1===_0x509213['constructor']['EDIT_CONTEXT']||browser['chrome']&&browser['chrome_version']<0x7e||(this['editContext']=new EditContextManager(_0x509213),_0x509213['state']['facet'](editable)&&(_0x509213['contentDOM']['editContext']=this['editContext']['editContext'])),useCharData&&(this['onCharData']=_0x3cb11e=>{this['queue']['push']({'target':_0x3cb11e['target'],'type':'characterData','oldValue':_0x3cb11e['prevValue']}),this['flushSoon']();}),this['onSelectionChange']=this['onSelectionChange']['bind'](this),this['onResize']=this['onResize']['bind'](this),this['onPrint']=this['onPrint']['bind'](this),this['onScroll']=this['onScroll']['bind'](this),window['matchMedia']&&(this['printQuery']=window['matchMedia']('print')),'function'==typeof ResizeObserver&&(this['resizeScroll']=new ResizeObserver(()=>{var _0x4dac5f;(null===(_0x4dac5f=this['view']['docView'])||void 0x0===_0x4dac5f?void 0x0:_0x4dac5f['lastUpdate'])<Date['now']()-0x4b&&this['onResize']();}),this['resizeScroll']['observe'](_0x509213['scrollDOM'])),this['addWindowListeners'](this['win']=_0x509213['win']),this['start'](),'function'==typeof IntersectionObserver&&(this['intersection']=new IntersectionObserver(_0x474d63=>{this['parentCheck']<0x0&&(this['parentCheck']=setTimeout(this['listenForScroll']['bind'](this),0x3e8)),_0x474d63['length']>0x0&&_0x474d63[_0x474d63['length']-0x1]['intersectionRatio']>0x0!=this['intersecting']&&(this['intersecting']=!this['intersecting'],this['intersecting']!=this['view']['inView']&&this['onScrollChanged'](document['createEvent']('Event')));},{'threshold':[0x0,0.001]}),this['intersection']['observe'](this['dom']),this['gapIntersection']=new IntersectionObserver(_0x3c46d6=>{_0x3c46d6['length']>0x0&&_0x3c46d6[_0x3c46d6['length']-0x1]['intersectionRatio']>0x0&&this['onScrollChanged'](document['createEvent']('Event'));},{})),this['listenForScroll'](),this['readSelectionRange']();}['onScrollChanged'](_0x467ce6){this['view']['inputState']['runHandlers']('scroll',_0x467ce6),this['intersecting']&&this['view']['measure']();}['onScroll'](_0x65e6ba){this['intersecting']&&this['flush'](!0x1),this['editContext']&&this['view']['requestMeasure'](this['editContext']['measureReq']),this['onScrollChanged'](_0x65e6ba);}['onResize'](){this['resizeTimeout']<0x0&&(this['resizeTimeout']=setTimeout(()=>{this['resizeTimeout']=-0x1,this['view']['requestMeasure']();},0x32));}['onPrint'](_0x15d04a){('change'!=_0x15d04a['type']&&_0x15d04a['type']||_0x15d04a['matches'])&&(this['view']['viewState']['printing']=!0x0,this['view']['measure'](),setTimeout(()=>{this['view']['viewState']['printing']=!0x1,this['view']['requestMeasure']();},0x1f4));}['updateGaps'](_0xe8c908){if(this['gapIntersection']&&(_0xe8c908['length']!=this['gaps']['length']||this['gaps']['some']((_0x26bf1b,_0x167393)=>_0x26bf1b!=_0xe8c908[_0x167393]))){this['gapIntersection']['disconnect']();for(let _0x4abea8 of _0xe8c908)this['gapIntersection']['observe'](_0x4abea8);this['gaps']=_0xe8c908;}}['onSelectionChange'](_0x481853){let _0x15f57a=this['selectionChanged'];if(!this['readSelectionRange']()||this['delayedAndroidKey'])return;let {view:_0x43b663}=this,_0x18c5ff=this['selectionRange'];if(_0x43b663['state']['facet'](editable)?_0x43b663['root']['activeElement']!=this['dom']:!hasSelection(this['dom'],_0x18c5ff))return;let _0x4370fe=_0x18c5ff['anchorNode']&&_0x43b663['docView']['nearest'](_0x18c5ff['anchorNode']);_0x4370fe&&_0x4370fe['ignoreEvent'](_0x481853)?_0x15f57a||(this['selectionChanged']=!0x1):(browser['ie']&&browser['ie_version']<=0xb||browser['android']&&browser['chrome'])&&!_0x43b663['state']['selection']['main']['empty']&&_0x18c5ff['focusNode']&&isEquivalentPosition(_0x18c5ff['focusNode'],_0x18c5ff['focusOffset'],_0x18c5ff['anchorNode'],_0x18c5ff['anchorOffset'])?this['flushSoon']():this['flush'](!0x1);}['readSelectionRange'](){let {view:_0x987907}=this,_0x176bb0=getSelection(_0x987907['root']);if(!_0x176bb0)return!0x1;let _0x42ff22=browser['safari']&&0xb==_0x987907['root']['nodeType']&&_0x987907['root']['activeElement']==this['dom']&&safariSelectionRangeHack(this['view'],_0x176bb0)||_0x176bb0;if(!_0x42ff22||this['selectionRange']['eq'](_0x42ff22))return!0x1;let _0x593f74=hasSelection(this['dom'],_0x42ff22);return _0x593f74&&!this['selectionChanged']&&_0x987907['inputState']['lastFocusTime']>Date['now']()-0xc8&&_0x987907['inputState']['lastTouchTime']<Date['now']()-0x12c&&atElementStart(this['dom'],_0x42ff22)?(this['view']['inputState']['lastFocusTime']=0x0,_0x987907['docView']['updateSelection'](),!0x1):(this['selectionRange']['setRange'](_0x42ff22),_0x593f74&&(this['selectionChanged']=!0x0),!0x0);}['setSelectionRange'](_0x1ed6bb,_0x336201){this['selectionRange']['set'](_0x1ed6bb['node'],_0x1ed6bb['offset'],_0x336201['node'],_0x336201['offset']),this['selectionChanged']=!0x1;}['clearSelectionRange'](){this['selectionRange']['set'](null,0x0,null,0x0);}['listenForScroll'](){this['parentCheck']=-0x1;let _0x3e4c0c=0x0,_0xb905b7=null;for(let _0x29594e=this['dom'];_0x29594e;)if(0x1==_0x29594e['nodeType'])!_0xb905b7&&_0x3e4c0c<this['scrollTargets']['length']&&this['scrollTargets'][_0x3e4c0c]==_0x29594e?_0x3e4c0c++:_0xb905b7||(_0xb905b7=this['scrollTargets']['slice'](0x0,_0x3e4c0c)),_0xb905b7&&_0xb905b7['push'](_0x29594e),_0x29594e=_0x29594e['assignedSlot']||_0x29594e['parentNode'];else{if(0xb!=_0x29594e['nodeType'])break;_0x29594e=_0x29594e['host'];}if(_0x3e4c0c<this['scrollTargets']['length']&&!_0xb905b7&&(_0xb905b7=this['scrollTargets']['slice'](0x0,_0x3e4c0c)),_0xb905b7){for(let _0x10a9cb of this['scrollTargets'])_0x10a9cb['removeEventListener']('scroll',this['onScroll']);for(let _0x1e3379 of this['scrollTargets']=_0xb905b7)_0x1e3379['addEventListener']('scroll',this['onScroll']);}}['ignore'](_0x41c2fe){if(!this['active'])return _0x41c2fe();try{return this['stop'](),_0x41c2fe();}finally{this['start'](),this['clear']();}}['start'](){this['active']||(this['observer']['observe'](this['dom'],observeOptions),useCharData&&this['dom']['addEventListener']('DOMCharacterDataModified',this['onCharData']),this['active']=!0x0);}['stop'](){this['active']&&(this['active']=!0x1,this['observer']['disconnect'](),useCharData&&this['dom']['removeEventListener']('DOMCharacterDataModified',this['onCharData']));}['clear'](){this['processRecords'](),this['queue']['length']=0x0,this['selectionChanged']=!0x1;}['delayAndroidKey'](_0x31aa2a,_0x59cb53){var _0x336558;if(!this['delayedAndroidKey']){let _0x145699=()=>{let _0x39fe6d=this['delayedAndroidKey'];_0x39fe6d&&(this['clearDelayedAndroidKey'](),this['view']['inputState']['lastKeyCode']=_0x39fe6d['keyCode'],this['view']['inputState']['lastKeyTime']=Date['now'](),!this['flush']()&&_0x39fe6d['force']&&dispatchKey(this['dom'],_0x39fe6d['key'],_0x39fe6d['keyCode']));};this['flushingAndroidKey']=this['view']['win']['requestAnimationFrame'](_0x145699);}this['delayedAndroidKey']&&'Enter'!=_0x31aa2a||(this['delayedAndroidKey']={'key':_0x31aa2a,'keyCode':_0x59cb53,'force':this['lastChange']<Date['now']()-0x32||!!(null===(_0x336558=this['delayedAndroidKey'])||void 0x0===_0x336558?void 0x0:_0x336558['force'])});}['clearDelayedAndroidKey'](){this['win']['cancelAnimationFrame'](this['flushingAndroidKey']),this['delayedAndroidKey']=null,this['flushingAndroidKey']=-0x1;}['flushSoon'](){this['delayedFlush']<0x0&&(this['delayedFlush']=this['view']['win']['requestAnimationFrame'](()=>{this['delayedFlush']=-0x1,this['flush']();}));}['forceFlush'](){this['delayedFlush']>=0x0&&(this['view']['win']['cancelAnimationFrame'](this['delayedFlush']),this['delayedFlush']=-0x1),this['flush']();}['pendingRecords'](){for(let _0x32c8b2 of this['observer']['takeRecords']())this['queue']['push'](_0x32c8b2);return this['queue'];}['processRecords'](){let _0x4cd90c=this['pendingRecords']();_0x4cd90c['length']&&(this['queue']=[]);let _0x2680ea=-0x1,_0x36c734=-0x1,_0x466a82=!0x1;for(let _0x90f5a3 of _0x4cd90c){let _0xf40834=this['readMutation'](_0x90f5a3);_0xf40834&&(_0xf40834['typeOver']&&(_0x466a82=!0x0),-0x1==_0x2680ea?{from:_0x2680ea,to:_0x36c734}=_0xf40834:(_0x2680ea=Math['min'](_0xf40834['from'],_0x2680ea),_0x36c734=Math['max'](_0xf40834['to'],_0x36c734)));}return{'from':_0x2680ea,'to':_0x36c734,'typeOver':_0x466a82};}['readChange'](){let {from:_0x5d3a57,to:_0x372047,typeOver:_0x4a4506}=this['processRecords'](),_0x2758d4=this['selectionChanged']&&hasSelection(this['dom'],this['selectionRange']);if(_0x5d3a57<0x0&&!_0x2758d4)return null;_0x5d3a57>-0x1&&(this['lastChange']=Date['now']()),this['view']['inputState']['lastFocusTime']=0x0,this['selectionChanged']=!0x1;let _0x1a4339=new DOMChange(this['view'],_0x5d3a57,_0x372047,_0x4a4506);return this['view']['docView']['domChanged']={'newSel':_0x1a4339['newSel']?_0x1a4339['newSel']['main']:null},_0x1a4339;}['flush'](_0x529ff7=!0x0){if(this['delayedFlush']>=0x0||this['delayedAndroidKey'])return!0x1;_0x529ff7&&this['readSelectionRange']();let _0x4aed0c=this['readChange']();if(!_0x4aed0c)return this['view']['requestMeasure'](),!0x1;let _0x2de495=this['view']['state'],_0x20e49d=applyDOMChange(this['view'],_0x4aed0c);return this['view']['state']==_0x2de495&&(_0x4aed0c['domChanged']||_0x4aed0c['newSel']&&!_0x4aed0c['newSel']['main']['eq'](this['view']['state']['selection']['main']))&&this['view']['update']([]),_0x20e49d;}['readMutation'](_0x588279){let _0x2dc55c=this['view']['docView']['nearest'](_0x588279['target']);if(!_0x2dc55c||_0x2dc55c['ignoreMutation'](_0x588279))return null;if(_0x2dc55c['markDirty']('attributes'==_0x588279['type']),'attributes'==_0x588279['type']&&(_0x2dc55c['flags']|=0x4),'childList'==_0x588279['type']){let _0x2d48e1=findChild(_0x2dc55c,_0x588279['previousSibling']||_0x588279['target']['previousSibling'],-0x1),_0x33bbc6=findChild(_0x2dc55c,_0x588279['nextSibling']||_0x588279['target']['nextSibling'],0x1);return{'from':_0x2d48e1?_0x2dc55c['posAfter'](_0x2d48e1):_0x2dc55c['posAtStart'],'to':_0x33bbc6?_0x2dc55c['posBefore'](_0x33bbc6):_0x2dc55c['posAtEnd'],'typeOver':!0x1};}return'characterData'==_0x588279['type']?{'from':_0x2dc55c['posAtStart'],'to':_0x2dc55c['posAtEnd'],'typeOver':_0x588279['target']['nodeValue']==_0x588279['oldValue']}:null;}['setWindow'](_0x1dfb26){_0x1dfb26!=this['win']&&(this['removeWindowListeners'](this['win']),this['win']=_0x1dfb26,this['addWindowListeners'](this['win']));}['addWindowListeners'](_0x494bb3){_0x494bb3['addEventListener']('resize',this['onResize']),this['printQuery']?this['printQuery']['addEventListener']?this['printQuery']['addEventListener']('change',this['onPrint']):this['printQuery']['addListener'](this['onPrint']):_0x494bb3['addEventListener']('beforeprint',this['onPrint']),_0x494bb3['addEventListener']('scroll',this['onScroll']),_0x494bb3['document']['addEventListener']('selectionchange',this['onSelectionChange']);}['removeWindowListeners'](_0x55d08f){_0x55d08f['removeEventListener']('scroll',this['onScroll']),_0x55d08f['removeEventListener']('resize',this['onResize']),this['printQuery']?this['printQuery']['removeEventListener']?this['printQuery']['removeEventListener']('change',this['onPrint']):this['printQuery']['removeListener'](this['onPrint']):_0x55d08f['removeEventListener']('beforeprint',this['onPrint']),_0x55d08f['document']['removeEventListener']('selectionchange',this['onSelectionChange']);}['update'](_0x5e0443){this['editContext']&&(this['editContext']['update'](_0x5e0443),_0x5e0443['startState']['facet'](editable)!=_0x5e0443['state']['facet'](editable)&&(_0x5e0443['view']['contentDOM']['editContext']=_0x5e0443['state']['facet'](editable)?this['editContext']['editContext']:null));}['destroy'](){var _0x4c5e27,_0x599b3a,_0x25a492;this['stop'](),null===(_0x4c5e27=this['intersection'])||void 0x0===_0x4c5e27||_0x4c5e27['disconnect'](),null===(_0x599b3a=this['gapIntersection'])||void 0x0===_0x599b3a||_0x599b3a['disconnect'](),null===(_0x25a492=this['resizeScroll'])||void 0x0===_0x25a492||_0x25a492['disconnect']();for(let _0x374dd0 of this['scrollTargets'])_0x374dd0['removeEventListener']('scroll',this['onScroll']);this['removeWindowListeners'](this['win']),clearTimeout(this['parentCheck']),clearTimeout(this['resizeTimeout']),this['win']['cancelAnimationFrame'](this['delayedFlush']),this['win']['cancelAnimationFrame'](this['flushingAndroidKey']),this['editContext']&&(this['view']['contentDOM']['editContext']=null,this['editContext']['destroy']());}}function findChild(_0x333e51,_0x6ec75b,_0x25ad42){for(;_0x6ec75b;){let _0x1c415e=ContentView['get'](_0x6ec75b);if(_0x1c415e&&_0x1c415e['parent']==_0x333e51)return _0x1c415e;let _0x579119=_0x6ec75b['parentNode'];_0x6ec75b=_0x579119!=_0x333e51['dom']?_0x579119:_0x25ad42>0x0?_0x6ec75b['nextSibling']:_0x6ec75b['previousSibling'];}return null;}function buildSelectionRangeFromRange(_0x16a15a,_0x2fc816){let _0x2c485c=_0x2fc816['startContainer'],_0x570d11=_0x2fc816['startOffset'],_0x2dacf7=_0x2fc816['endContainer'],_0x48ba68=_0x2fc816['endOffset'],_0x572400=_0x16a15a['docView']['domAtPos'](_0x16a15a['state']['selection']['main']['anchor']);return isEquivalentPosition(_0x572400['node'],_0x572400['offset'],_0x2dacf7,_0x48ba68)&&([_0x2c485c,_0x570d11,_0x2dacf7,_0x48ba68]=[_0x2dacf7,_0x48ba68,_0x2c485c,_0x570d11]),{'anchorNode':_0x2c485c,'anchorOffset':_0x570d11,'focusNode':_0x2dacf7,'focusOffset':_0x48ba68};}function safariSelectionRangeHack(_0x37d6ea,_0x197b55){if(_0x197b55['getComposedRanges']){let _0x332ac2=_0x197b55['getComposedRanges'](_0x37d6ea['root'])[0x0];if(_0x332ac2)return buildSelectionRangeFromRange(_0x37d6ea,_0x332ac2);}let _0x206d39=null;function _0x465bae(_0x444ea1){_0x444ea1['preventDefault'](),_0x444ea1['stopImmediatePropagation'](),_0x206d39=_0x444ea1['getTargetRanges']()[0x0];}return _0x37d6ea['contentDOM']['addEventListener']('beforeinput',_0x465bae,!0x0),_0x37d6ea['dom']['ownerDocument']['execCommand']('indent'),_0x37d6ea['contentDOM']['removeEventListener']('beforeinput',_0x465bae,!0x0),_0x206d39?buildSelectionRangeFromRange(_0x37d6ea,_0x206d39):null;}class EditContextManager{constructor(_0x3552fa){this['from']=0x0,this['to']=0x0,this['pendingContextChange']=null,this['handlers']=Object['create'](null),this['composing']=null,this['resetRange'](_0x3552fa['state']);let _0x2e4b39=this['editContext']=new window['EditContext']({'text':_0x3552fa['state']['doc']['sliceString'](this['from'],this['to']),'selectionStart':this['toContextPos'](Math['max'](this['from'],Math['min'](this['to'],_0x3552fa['state']['selection']['main']['anchor']))),'selectionEnd':this['toContextPos'](_0x3552fa['state']['selection']['main']['head'])});this['handlers']['textupdate']=_0x33ffd7=>{let _0x2c497e=_0x3552fa['state']['selection']['main'],{anchor:_0x275d8c,head:_0x54aa0e}=_0x2c497e,_0x15ede0=this['toEditorPos'](_0x33ffd7['updateRangeStart']),_0x1ffcca=this['toEditorPos'](_0x33ffd7['updateRangeEnd']);_0x3552fa['inputState']['composing']>=0x0&&!this['composing']&&(this['composing']={'contextBase':_0x33ffd7['updateRangeStart'],'editorBase':_0x15ede0,'drifted':!0x1});let _0x7de7f2={'from':_0x15ede0,'to':_0x1ffcca,'insert':Text['of'](_0x33ffd7['text']['split']('\x0a'))};if(_0x7de7f2['from']==this['from']&&_0x275d8c<this['from']?_0x7de7f2['from']=_0x275d8c:_0x7de7f2['to']==this['to']&&_0x275d8c>this['to']&&(_0x7de7f2['to']=_0x275d8c),_0x7de7f2['from']==_0x7de7f2['to']&&!_0x7de7f2['insert']['length']){let _0x23f258=EditorSelection['single'](this['toEditorPos'](_0x33ffd7['selectionStart']),this['toEditorPos'](_0x33ffd7['selectionEnd']));return void(_0x23f258['main']['eq'](_0x2c497e)||_0x3552fa['dispatch']({'selection':_0x23f258,'userEvent':'select'}));}if((browser['mac']||browser['android'])&&_0x7de7f2['from']==_0x54aa0e-0x1&&/^\. ?$/['test'](_0x33ffd7['text'])&&'off'==_0x3552fa['contentDOM']['getAttribute']('autocorrect')&&(_0x7de7f2={'from':_0x15ede0,'to':_0x1ffcca,'insert':Text['of']([_0x33ffd7['text']['replace']('.','\x20')])}),this['pendingContextChange']=_0x7de7f2,!_0x3552fa['state']['readOnly']){let _0x6b91d2=this['to']-this['from']+(_0x7de7f2['to']-_0x7de7f2['from']+_0x7de7f2['insert']['length']);applyDOMChangeInner(_0x3552fa,_0x7de7f2,EditorSelection['single'](this['toEditorPos'](_0x33ffd7['selectionStart'],_0x6b91d2),this['toEditorPos'](_0x33ffd7['selectionEnd'],_0x6b91d2)));}this['pendingContextChange']&&(this['revertPending'](_0x3552fa['state']),this['setSelection'](_0x3552fa['state']));},this['handlers']['characterboundsupdate']=_0x3498ec=>{let _0xe241eb=[],_0x3b89da=null;for(let _0x1e777f=this['toEditorPos'](_0x3498ec['rangeStart']),_0x2c55f6=this['toEditorPos'](_0x3498ec['rangeEnd']);_0x1e777f<_0x2c55f6;_0x1e777f++){let _0x1a1adf=_0x3552fa['coordsForChar'](_0x1e777f);_0x3b89da=_0x1a1adf&&new DOMRect(_0x1a1adf['left'],_0x1a1adf['top'],_0x1a1adf['right']-_0x1a1adf['left'],_0x1a1adf['bottom']-_0x1a1adf['top'])||_0x3b89da||new DOMRect(),_0xe241eb['push'](_0x3b89da);}_0x2e4b39['updateCharacterBounds'](_0x3498ec['rangeStart'],_0xe241eb);},this['handlers']['textformatupdate']=_0xc530b4=>{let _0x566380=[];for(let _0x51e790 of _0xc530b4['getTextFormats']()){let _0x2c8394=_0x51e790['underlineStyle'],_0x99485c=_0x51e790['underlineThickness'];if('None'!=_0x2c8394&&'None'!=_0x99485c){let _0x1c5a16=this['toEditorPos'](_0x51e790['rangeStart']),_0x2586a3=this['toEditorPos'](_0x51e790['rangeEnd']);if(_0x1c5a16<_0x2586a3){let _0x45274a='text-decoration:\x20underline\x20'+('Dashed'==_0x2c8394?'dashed\x20':'Squiggle'==_0x2c8394?'wavy\x20':'')+('Thin'==_0x99485c?0x1:0x2)+'px';_0x566380['push'](Decoration['mark']({'attributes':{'style':_0x45274a}})['range'](_0x1c5a16,_0x2586a3));}}}_0x3552fa['dispatch']({'effects':setEditContextFormatting['of'](Decoration['set'](_0x566380))});},this['handlers']['compositionstart']=()=>{_0x3552fa['inputState']['composing']<0x0&&(_0x3552fa['inputState']['composing']=0x0,_0x3552fa['inputState']['compositionFirstChange']=!0x0);},this['handlers']['compositionend']=()=>{if(_0x3552fa['inputState']['composing']=-0x1,_0x3552fa['inputState']['compositionFirstChange']=null,this['composing']){let {drifted:_0x220606}=this['composing'];this['composing']=null,_0x220606&&this['reset'](_0x3552fa['state']);}};for(let _0x54957c in this['handlers'])_0x2e4b39['addEventListener'](_0x54957c,this['handlers'][_0x54957c]);this['measureReq']={'read':_0x2eaddf=>{this['editContext']['updateControlBounds'](_0x2eaddf['contentDOM']['getBoundingClientRect']());let _0x35a5f0=getSelection(_0x2eaddf['root']);_0x35a5f0&&_0x35a5f0['rangeCount']&&this['editContext']['updateSelectionBounds'](_0x35a5f0['getRangeAt'](0x0)['getBoundingClientRect']());}};}['applyEdits'](_0x598a6c){let _0x5ec681=0x0,_0x3fff2f=!0x1,_0x14c151=this['pendingContextChange'];return _0x598a6c['changes']['iterChanges']((_0xd90d24,_0x1fbdfc,_0x18e638,_0x91dcbc,_0x182646)=>{if(_0x3fff2f)return;let _0xe7d44b=_0x182646['length']-(_0x1fbdfc-_0xd90d24);if(_0x14c151&&_0x1fbdfc>=_0x14c151['to']){if(_0x14c151['from']==_0xd90d24&&_0x14c151['to']==_0x1fbdfc&&_0x14c151['insert']['eq'](_0x182646))return _0x14c151=this['pendingContextChange']=null,_0x5ec681+=_0xe7d44b,void(this['to']+=_0xe7d44b);_0x14c151=null,this['revertPending'](_0x598a6c['state']);}if(_0xd90d24+=_0x5ec681,(_0x1fbdfc+=_0x5ec681)<=this['from'])this['from']+=_0xe7d44b,this['to']+=_0xe7d44b;else{if(_0xd90d24<this['to']){if(_0xd90d24<this['from']||_0x1fbdfc>this['to']||this['to']-this['from']+_0x182646['length']>0x7530)return void(_0x3fff2f=!0x0);this['editContext']['updateText'](this['toContextPos'](_0xd90d24),this['toContextPos'](_0x1fbdfc),_0x182646['toString']()),this['to']+=_0xe7d44b;}}_0x5ec681+=_0xe7d44b;}),_0x14c151&&!_0x3fff2f&&this['revertPending'](_0x598a6c['state']),!_0x3fff2f;}['update'](_0x38fa9b){let _0x250714=this['pendingContextChange'],_0x114dd0=_0x38fa9b['startState']['selection']['main'];this['composing']&&(this['composing']['drifted']||!_0x38fa9b['changes']['touchesRange'](_0x114dd0['from'],_0x114dd0['to'])&&_0x38fa9b['transactions']['some'](_0x41b36e=>!_0x41b36e['isUserEvent']('input.type')&&_0x41b36e['changes']['touchesRange'](this['from'],this['to'])))?(this['composing']['drifted']=!0x0,this['composing']['editorBase']=_0x38fa9b['changes']['mapPos'](this['composing']['editorBase'])):this['applyEdits'](_0x38fa9b)&&this['rangeIsValid'](_0x38fa9b['state'])?(_0x38fa9b['docChanged']||_0x38fa9b['selectionSet']||_0x250714)&&this['setSelection'](_0x38fa9b['state']):(this['pendingContextChange']=null,this['reset'](_0x38fa9b['state'])),(_0x38fa9b['geometryChanged']||_0x38fa9b['docChanged']||_0x38fa9b['selectionSet'])&&_0x38fa9b['view']['requestMeasure'](this['measureReq']);}['resetRange'](_0x1671e3){let {head:_0x38fc1a}=_0x1671e3['selection']['main'];this['from']=Math['max'](0x0,_0x38fc1a-0x2710),this['to']=Math['min'](_0x1671e3['doc']['length'],_0x38fc1a+0x2710);}['reset'](_0x3c99a6){this['resetRange'](_0x3c99a6),this['editContext']['updateText'](0x0,this['editContext']['text']['length'],_0x3c99a6['doc']['sliceString'](this['from'],this['to'])),this['setSelection'](_0x3c99a6);}['revertPending'](_0x58893f){let _0x3874f3=this['pendingContextChange'];this['pendingContextChange']=null,this['editContext']['updateText'](this['toContextPos'](_0x3874f3['from']),this['toContextPos'](_0x3874f3['from']+_0x3874f3['insert']['length']),_0x58893f['doc']['sliceString'](_0x3874f3['from'],_0x3874f3['to']));}['setSelection'](_0x211006){let {main:_0x57f611}=_0x211006['selection'],_0x5bb6a6=this['toContextPos'](Math['max'](this['from'],Math['min'](this['to'],_0x57f611['anchor']))),_0x4c3a0a=this['toContextPos'](_0x57f611['head']);this['editContext']['selectionStart']==_0x5bb6a6&&this['editContext']['selectionEnd']==_0x4c3a0a||this['editContext']['updateSelection'](_0x5bb6a6,_0x4c3a0a);}['rangeIsValid'](_0x4f6ed7){let {head:_0x2e79d5}=_0x4f6ed7['selection']['main'];return!(this['from']>0x0&&_0x2e79d5-this['from']<0x1f4||this['to']<_0x4f6ed7['doc']['length']&&this['to']-_0x2e79d5<0x1f4||this['to']-this['from']>0x7530);}['toEditorPos'](_0x1eb953,_0x5b6a04=this['to']-this['from']){_0x1eb953=Math['min'](_0x1eb953,_0x5b6a04);let _0x4fc601=this['composing'];return _0x4fc601&&_0x4fc601['drifted']?_0x4fc601['editorBase']+(_0x1eb953-_0x4fc601['contextBase']):_0x1eb953+this['from'];}['toContextPos'](_0x49c8a2){let _0x1e9d3d=this['composing'];return _0x1e9d3d&&_0x1e9d3d['drifted']?_0x1e9d3d['contextBase']+(_0x49c8a2-_0x1e9d3d['editorBase']):_0x49c8a2-this['from'];}['destroy'](){for(let _0x1bfbd4 in this['handlers'])this['editContext']['removeEventListener'](_0x1bfbd4,this['handlers'][_0x1bfbd4]);}}class EditorView{get['state'](){return this['viewState']['state'];}get['viewport'](){return this['viewState']['viewport'];}get['visibleRanges'](){return this['viewState']['visibleRanges'];}get['inView'](){return this['viewState']['inView'];}get['composing'](){return!!this['inputState']&&this['inputState']['composing']>0x0;}get['compositionStarted'](){return!!this['inputState']&&this['inputState']['composing']>=0x0;}get['root'](){return this['_root'];}get['win'](){return this['dom']['ownerDocument']['defaultView']||window;}constructor(_0x5ce284={}){var _0x17befa;this['plugins']=[],this['pluginMap']=new Map(),this['editorAttrs']={},this['contentAttrs']={},this['bidiCache']=[],this['destroyed']=!0x1,this['updateState']=0x2,this['measureScheduled']=-0x1,this['measureRequests']=[],this['contentDOM']=document['createElement']('div'),this['scrollDOM']=document['createElement']('div'),this['scrollDOM']['tabIndex']=-0x1,this['scrollDOM']['className']='cm-scroller',this['scrollDOM']['appendChild'](this['contentDOM']),this['announceDOM']=document['createElement']('div'),this['announceDOM']['className']='cm-announced',this['announceDOM']['setAttribute']('aria-live','polite'),this['dom']=document['createElement']('div'),this['dom']['appendChild'](this['announceDOM']),this['dom']['appendChild'](this['scrollDOM']),_0x5ce284['parent']&&_0x5ce284['parent']['appendChild'](this['dom']);let {dispatch:_0x303e8a}=_0x5ce284;this['dispatchTransactions']=_0x5ce284['dispatchTransactions']||_0x303e8a&&(_0x1b8706=>_0x1b8706['forEach'](_0x36a66d=>_0x303e8a(_0x36a66d,this)))||(_0x3b1fa6=>this['update'](_0x3b1fa6)),this['dispatch']=this['dispatch']['bind'](this),this['_root']=_0x5ce284['root']||getRoot(_0x5ce284['parent'])||document,this['viewState']=new ViewState(_0x5ce284['state']||EditorState['create'](_0x5ce284)),_0x5ce284['scrollTo']&&_0x5ce284['scrollTo']['is'](scrollIntoView$1)&&(this['viewState']['scrollTarget']=_0x5ce284['scrollTo']['value']['clip'](this['viewState']['state'])),this['plugins']=this['state']['facet'](viewPlugin)['map'](_0x148ed0=>new PluginInstance(_0x148ed0));for(let _0x37ad70 of this['plugins'])_0x37ad70['update'](this);this['observer']=new DOMObserver(this),this['inputState']=new InputState(this),this['inputState']['ensureHandlers'](this['plugins']),this['docView']=new DocView(this),this['mountStyles'](),this['updateAttrs'](),this['updateState']=0x0,this['requestMeasure'](),(null===(_0x17befa=document['fonts'])||void 0x0===_0x17befa?void 0x0:_0x17befa['ready'])&&document['fonts']['ready']['then'](()=>this['requestMeasure']());}['dispatch'](..._0xfdb56f){let _0x45ac25=0x1==_0xfdb56f['length']&&_0xfdb56f[0x0]instanceof Transaction?_0xfdb56f:0x1==_0xfdb56f['length']&&Array['isArray'](_0xfdb56f[0x0])?_0xfdb56f[0x0]:[this['state']['update'](..._0xfdb56f)];this['dispatchTransactions'](_0x45ac25,this);}['update'](_0x56176f){if(0x0!=this['updateState'])throw new Error('Calls\x20to\x20EditorView.update\x20are\x20not\x20allowed\x20while\x20an\x20update\x20is\x20in\x20progress');let _0x240ed0,_0x58b800=!0x1,_0x8e8a4=!0x1,_0x530552=this['state'];for(let _0xf30690 of _0x56176f){if(_0xf30690['startState']!=_0x530552)throw new RangeError('Trying\x20to\x20update\x20state\x20with\x20a\x20transaction\x20that\x20doesn\x27t\x20start\x20from\x20the\x20previous\x20state.');_0x530552=_0xf30690['state'];}if(this['destroyed'])return void(this['viewState']['state']=_0x530552);let _0x3cc7f2=this['hasFocus'],_0x2903aa=0x0,_0x5e54c5=null;_0x56176f['some'](_0x29f67d=>_0x29f67d['annotation'](isFocusChange))?(this['inputState']['notifiedFocused']=_0x3cc7f2,_0x2903aa=0x1):_0x3cc7f2!=this['inputState']['notifiedFocused']&&(this['inputState']['notifiedFocused']=_0x3cc7f2,_0x5e54c5=focusChangeTransaction(_0x530552,_0x3cc7f2),_0x5e54c5||(_0x2903aa=0x1));let _0x480199=this['observer']['delayedAndroidKey'],_0x303fe2=null;if(_0x480199?(this['observer']['clearDelayedAndroidKey'](),_0x303fe2=this['observer']['readChange'](),(_0x303fe2&&!this['state']['doc']['eq'](_0x530552['doc'])||!this['state']['selection']['eq'](_0x530552['selection']))&&(_0x303fe2=null)):this['observer']['clear'](),_0x530552['facet'](EditorState['phrases'])!=this['state']['facet'](EditorState['phrases']))return this['setState'](_0x530552);_0x240ed0=ViewUpdate['create'](this,_0x530552,_0x56176f),_0x240ed0['flags']|=_0x2903aa;let _0x2905be=this['viewState']['scrollTarget'];try{this['updateState']=0x2;for(let _0x16fbcc of _0x56176f){if(_0x2905be&&(_0x2905be=_0x2905be['map'](_0x16fbcc['changes'])),_0x16fbcc['scrollIntoView']){let {main:_0x4ce220}=_0x16fbcc['state']['selection'];_0x2905be=new ScrollTarget(_0x4ce220['empty']?_0x4ce220:EditorSelection['cursor'](_0x4ce220['head'],_0x4ce220['head']>_0x4ce220['anchor']?-0x1:0x1));}for(let _0x1fbdc1 of _0x16fbcc['effects'])_0x1fbdc1['is'](scrollIntoView$1)&&(_0x2905be=_0x1fbdc1['value']['clip'](this['state']));}this['viewState']['update'](_0x240ed0,_0x2905be),this['bidiCache']=CachedOrder['update'](this['bidiCache'],_0x240ed0['changes']),_0x240ed0['empty']||(this['updatePlugins'](_0x240ed0),this['inputState']['update'](_0x240ed0)),_0x58b800=this['docView']['update'](_0x240ed0),this['state']['facet'](styleModule)!=this['styleModules']&&this['mountStyles'](),_0x8e8a4=this['updateAttrs'](),this['showAnnouncements'](_0x56176f),this['docView']['updateSelection'](_0x58b800,_0x56176f['some'](_0xa7fe0f=>_0xa7fe0f['isUserEvent']('select.pointer')));}finally{this['updateState']=0x0;}if(_0x240ed0['startState']['facet'](theme)!=_0x240ed0['state']['facet'](theme)&&(this['viewState']['mustMeasureContent']=!0x0),(_0x58b800||_0x8e8a4||_0x2905be||this['viewState']['mustEnforceCursorAssoc']||this['viewState']['mustMeasureContent'])&&this['requestMeasure'](),_0x58b800&&this['docViewUpdate'](),!_0x240ed0['empty']){for(let _0x13dccd of this['state']['facet'](updateListener))try{_0x13dccd(_0x240ed0);}catch(_0x2b9616){logException(this['state'],_0x2b9616,'update\x20listener');}}(_0x5e54c5||_0x303fe2)&&Promise['resolve']()['then'](()=>{_0x5e54c5&&this['state']==_0x5e54c5['startState']&&this['dispatch'](_0x5e54c5),_0x303fe2&&!applyDOMChange(this,_0x303fe2)&&_0x480199['force']&&dispatchKey(this['contentDOM'],_0x480199['key'],_0x480199['keyCode']);});}['setState'](_0x38dc2d){if(0x0!=this['updateState'])throw new Error('Calls\x20to\x20EditorView.setState\x20are\x20not\x20allowed\x20while\x20an\x20update\x20is\x20in\x20progress');if(this['destroyed'])return void(this['viewState']['state']=_0x38dc2d);this['updateState']=0x2;let _0x5534e8=this['hasFocus'];try{for(let _0x41bc6a of this['plugins'])_0x41bc6a['destroy'](this);this['viewState']=new ViewState(_0x38dc2d),this['plugins']=_0x38dc2d['facet'](viewPlugin)['map'](_0x5502ea=>new PluginInstance(_0x5502ea)),this['pluginMap']['clear']();for(let _0x55e07b of this['plugins'])_0x55e07b['update'](this);this['docView']['destroy'](),this['docView']=new DocView(this),this['inputState']['ensureHandlers'](this['plugins']),this['mountStyles'](),this['updateAttrs'](),this['bidiCache']=[];}finally{this['updateState']=0x0;}_0x5534e8&&this['focus'](),this['requestMeasure']();}['updatePlugins'](_0x4ba48a){let _0x1f93c6=_0x4ba48a['startState']['facet'](viewPlugin),_0x124337=_0x4ba48a['state']['facet'](viewPlugin);if(_0x1f93c6!=_0x124337){let _0x2d4b02=[];for(let _0x576128 of _0x124337){let _0x1f5416=_0x1f93c6['indexOf'](_0x576128);if(_0x1f5416<0x0)_0x2d4b02['push'](new PluginInstance(_0x576128));else{let _0x29612f=this['plugins'][_0x1f5416];_0x29612f['mustUpdate']=_0x4ba48a,_0x2d4b02['push'](_0x29612f);}}for(let _0x2826c0 of this['plugins'])_0x2826c0['mustUpdate']!=_0x4ba48a&&_0x2826c0['destroy'](this);this['plugins']=_0x2d4b02,this['pluginMap']['clear']();}else{for(let _0x506aa6 of this['plugins'])_0x506aa6['mustUpdate']=_0x4ba48a;}for(let _0x1ce947=0x0;_0x1ce947<this['plugins']['length'];_0x1ce947++)this['plugins'][_0x1ce947]['update'](this);_0x1f93c6!=_0x124337&&this['inputState']['ensureHandlers'](this['plugins']);}['docViewUpdate'](){for(let _0x4b8abb of this['plugins']){let _0x450352=_0x4b8abb['value'];if(_0x450352&&_0x450352['docViewUpdate'])try{_0x450352['docViewUpdate'](this);}catch(_0x501ae0){logException(this['state'],_0x501ae0,'doc\x20view\x20update\x20listener');}}}['measure'](_0x534004=!0x0){if(this['destroyed'])return;if(this['measureScheduled']>-0x1&&this['win']['cancelAnimationFrame'](this['measureScheduled']),this['observer']['delayedAndroidKey'])return this['measureScheduled']=-0x1,void this['requestMeasure']();this['measureScheduled']=0x0,_0x534004&&this['observer']['forceFlush']();let _0x240383=null,_0x2b73ac=this['scrollDOM'],_0x346ef3=_0x2b73ac['scrollTop']*this['scaleY'],{scrollAnchorPos:_0x4f562d,scrollAnchorHeight:_0x474573}=this['viewState'];Math['abs'](_0x346ef3-this['viewState']['scrollTop'])>0x1&&(_0x474573=-0x1),this['viewState']['scrollAnchorHeight']=-0x1;try{for(let _0x48cd77=0x0;;_0x48cd77++){if(_0x474573<0x0){if(isScrolledToBottom(_0x2b73ac))_0x4f562d=-0x1,_0x474573=this['viewState']['heightMap']['height'];else{let _0x513be0=this['viewState']['scrollAnchorAt'](_0x346ef3);_0x4f562d=_0x513be0['from'],_0x474573=_0x513be0['top'];}}this['updateState']=0x1;let _0x2035d6=this['viewState']['measure'](this);if(!_0x2035d6&&!this['measureRequests']['length']&&null==this['viewState']['scrollTarget'])break;if(_0x48cd77>0x5){console['warn'](this['measureRequests']['length']?'Measure\x20loop\x20restarted\x20more\x20than\x205\x20times':'Viewport\x20failed\x20to\x20stabilize');break;}let _0x4c5ae1=[];0x4&_0x2035d6||([this['measureRequests'],_0x4c5ae1]=[_0x4c5ae1,this['measureRequests']]);let _0x1c656c=_0x4c5ae1['map'](_0x5ad90b=>{try{return _0x5ad90b['read'](this);}catch(_0x584555){return logException(this['state'],_0x584555),BadMeasure;}}),_0x2bfe41=ViewUpdate['create'](this,this['state'],[]),_0x5a2a63=!0x1;_0x2bfe41['flags']|=_0x2035d6,_0x240383?_0x240383['flags']|=_0x2035d6:_0x240383=_0x2bfe41,this['updateState']=0x2,_0x2bfe41['empty']||(this['updatePlugins'](_0x2bfe41),this['inputState']['update'](_0x2bfe41),this['updateAttrs'](),_0x5a2a63=this['docView']['update'](_0x2bfe41),_0x5a2a63&&this['docViewUpdate']());for(let _0x257d74=0x0;_0x257d74<_0x4c5ae1['length'];_0x257d74++)if(_0x1c656c[_0x257d74]!=BadMeasure)try{let _0x114224=_0x4c5ae1[_0x257d74];_0x114224['write']&&_0x114224['write'](_0x1c656c[_0x257d74],this);}catch(_0x3e7688){logException(this['state'],_0x3e7688);}if(_0x5a2a63&&this['docView']['updateSelection'](!0x0),!_0x2bfe41['viewportChanged']&&0x0==this['measureRequests']['length']){if(this['viewState']['editorHeight']){if(this['viewState']['scrollTarget']){this['docView']['scrollIntoView'](this['viewState']['scrollTarget']),this['viewState']['scrollTarget']=null,_0x474573=-0x1;continue;}{let _0x1f6bfe=(_0x4f562d<0x0?this['viewState']['heightMap']['height']:this['viewState']['lineBlockAt'](_0x4f562d)['top'])-_0x474573;if(_0x1f6bfe>0x1||_0x1f6bfe<-0x1){_0x346ef3+=_0x1f6bfe,_0x2b73ac['scrollTop']=_0x346ef3/this['scaleY'],_0x474573=-0x1;continue;}}}break;}}}finally{this['updateState']=0x0,this['measureScheduled']=-0x1;}if(_0x240383&&!_0x240383['empty']){for(let _0x296eeb of this['state']['facet'](updateListener))_0x296eeb(_0x240383);}}get['themeClasses'](){return baseThemeID+'\x20'+(this['state']['facet'](darkTheme)?baseDarkID:baseLightID)+'\x20'+this['state']['facet'](theme);}['updateAttrs'](){let _0x180b80=attrsFromFacet(this,editorAttributes,{'class':'cm-editor'+(this['hasFocus']?'\x20cm-focused\x20':'\x20')+this['themeClasses']}),_0x14766f={'spellcheck':'false','autocorrect':'off','autocapitalize':'off','writingsuggestions':'false','translate':'no','contenteditable':this['state']['facet'](editable)?'true':'false','class':'cm-content','style':browser['tabSize']+':\x20'+this['state']['tabSize'],'role':'textbox','aria-multiline':'true'};this['state']['readOnly']&&(_0x14766f['aria-readonly']='true'),attrsFromFacet(this,contentAttributes,_0x14766f);let _0x3a6eb0=this['observer']['ignore'](()=>{let _0x4a35c5=updateAttrs(this['contentDOM'],this['contentAttrs'],_0x14766f),_0x5705d7=updateAttrs(this['dom'],this['editorAttrs'],_0x180b80);return _0x4a35c5||_0x5705d7;});return this['editorAttrs']=_0x180b80,this['contentAttrs']=_0x14766f,_0x3a6eb0;}['showAnnouncements'](_0x2bf57d){let _0x385e23=!0x0;for(let _0x178351 of _0x2bf57d)for(let _0x5b51ad of _0x178351['effects'])_0x5b51ad['is'](EditorView['announce'])&&(_0x385e23&&(this['announceDOM']['textContent']=''),_0x385e23=!0x1,this['announceDOM']['appendChild'](document['createElement']('div'))['textContent']=_0x5b51ad['value']);}['mountStyles'](){this['styleModules']=this['state']['facet'](styleModule);let _0x8e2f42=this['state']['facet'](EditorView['cspNonce']);StyleModule['mount'](this['root'],this['styleModules']['concat'](baseTheme$1$1)['reverse'](),_0x8e2f42?{'nonce':_0x8e2f42}:void 0x0);}['readMeasured'](){if(0x2==this['updateState'])throw new Error('Reading\x20the\x20editor\x20layout\x20isn\x27t\x20allowed\x20during\x20an\x20update');0x0==this['updateState']&&this['measureScheduled']>-0x1&&this['measure'](!0x1);}['requestMeasure'](_0x38bf6c){if(this['measureScheduled']<0x0&&(this['measureScheduled']=this['win']['requestAnimationFrame'](()=>this['measure']())),_0x38bf6c){if(this['measureRequests']['indexOf'](_0x38bf6c)>-0x1)return;if(null!=_0x38bf6c['key']){for(let _0x4825ad=0x0;_0x4825ad<this['measureRequests']['length'];_0x4825ad++)if(this['measureRequests'][_0x4825ad]['key']===_0x38bf6c['key'])return void(this['measureRequests'][_0x4825ad]=_0x38bf6c);}this['measureRequests']['push'](_0x38bf6c);}}['plugin'](_0x97a63b){let _0x569cbd=this['pluginMap']['get'](_0x97a63b);return(void 0x0===_0x569cbd||_0x569cbd&&_0x569cbd['plugin']!=_0x97a63b)&&this['pluginMap']['set'](_0x97a63b,_0x569cbd=this['plugins']['find'](_0x299f1a=>_0x299f1a['plugin']==_0x97a63b)||null),_0x569cbd&&_0x569cbd['update'](this)['value'];}get['documentTop'](){return this['contentDOM']['getBoundingClientRect']()['top']+this['viewState']['paddingTop'];}get['documentPadding'](){return{'top':this['viewState']['paddingTop'],'bottom':this['viewState']['paddingBottom']};}get['scaleX'](){return this['viewState']['scaleX'];}get['scaleY'](){return this['viewState']['scaleY'];}['elementAtHeight'](_0x55a5cf){return this['readMeasured'](),this['viewState']['elementAtHeight'](_0x55a5cf);}['lineBlockAtHeight'](_0x494b45){return this['readMeasured'](),this['viewState']['lineBlockAtHeight'](_0x494b45);}get['viewportLineBlocks'](){return this['viewState']['viewportLines'];}['lineBlockAt'](_0x3cc456){return this['viewState']['lineBlockAt'](_0x3cc456);}get['contentHeight'](){return this['viewState']['contentHeight'];}['moveByChar'](_0x448d7b,_0x2ff599,_0x514758){return skipAtoms(this,_0x448d7b,moveByChar(this,_0x448d7b,_0x2ff599,_0x514758));}['moveByGroup'](_0x5562f5,_0x3d30c5){return skipAtoms(this,_0x5562f5,moveByChar(this,_0x5562f5,_0x3d30c5,_0x3988f0=>byGroup(this,_0x5562f5['head'],_0x3988f0)));}['visualLineSide'](_0x1651ea,_0x531421){let _0x33cf74=this['bidiSpans'](_0x1651ea),_0x4b1da2=this['textDirectionAt'](_0x1651ea['from']),_0x5e300b=_0x33cf74[_0x531421?_0x33cf74['length']-0x1:0x0];return EditorSelection['cursor'](_0x5e300b['side'](_0x531421,_0x4b1da2)+_0x1651ea['from'],_0x5e300b['forward'](!_0x531421,_0x4b1da2)?0x1:-0x1);}['moveToLineBoundary'](_0x3cc6e4,_0xbf914a,_0x202b15=!0x0){return moveToLineBoundary(this,_0x3cc6e4,_0xbf914a,_0x202b15);}['moveVertically'](_0x34c83,_0x5368a3,_0x95afd4){return skipAtoms(this,_0x34c83,moveVertically(this,_0x34c83,_0x5368a3,_0x95afd4));}['domAtPos'](_0xca385e){return this['docView']['domAtPos'](_0xca385e);}['posAtDOM'](_0x41bbfb,_0x1c7b6f=0x0){return this['docView']['posFromDOM'](_0x41bbfb,_0x1c7b6f);}['posAtCoords'](_0xefa3dc,_0x2957ce=!0x0){return this['readMeasured'](),posAtCoords(this,_0xefa3dc,_0x2957ce);}['coordsAtPos'](_0x54829f,_0x531b92=0x1){this['readMeasured']();let _0xeb5463=this['docView']['coordsAt'](_0x54829f,_0x531b92);if(!_0xeb5463||_0xeb5463['left']==_0xeb5463['right'])return _0xeb5463;let _0x3d5116=this['state']['doc']['lineAt'](_0x54829f),_0x405d92=this['bidiSpans'](_0x3d5116);return flattenRect(_0xeb5463,_0x405d92[BidiSpan['find'](_0x405d92,_0x54829f-_0x3d5116['from'],-0x1,_0x531b92)]['dir']==Direction['LTR']==_0x531b92>0x0);}['coordsForChar'](_0x19a412){return this['readMeasured'](),this['docView']['coordsForChar'](_0x19a412);}get['defaultCharacterWidth'](){return this['viewState']['heightOracle']['charWidth'];}get['defaultLineHeight'](){return this['viewState']['heightOracle']['lineHeight'];}get['textDirection'](){return this['viewState']['defaultTextDirection'];}['textDirectionAt'](_0x29d1b5){return!this['state']['facet'](perLineTextDirection)||_0x29d1b5<this['viewport']['from']||_0x29d1b5>this['viewport']['to']?this['textDirection']:(this['readMeasured'](),this['docView']['textDirectionAt'](_0x29d1b5));}get['lineWrapping'](){return this['viewState']['heightOracle']['lineWrapping'];}['bidiSpans'](_0x110414){if(_0x110414['length']>MaxBidiLine)return trivialOrder(_0x110414['length']);let _0x11cff1,_0x18015f=this['textDirectionAt'](_0x110414['from']);for(let _0x5824bb of this['bidiCache'])if(_0x5824bb['from']==_0x110414['from']&&_0x5824bb['dir']==_0x18015f&&(_0x5824bb['fresh']||isolatesEq(_0x5824bb['isolates'],_0x11cff1=getIsolatedRanges(this,_0x110414))))return _0x5824bb['order'];_0x11cff1||(_0x11cff1=getIsolatedRanges(this,_0x110414));let _0xa8d02=computeOrder(_0x110414['text'],_0x18015f,_0x11cff1);return this['bidiCache']['push'](new CachedOrder(_0x110414['from'],_0x110414['to'],_0x18015f,_0x11cff1,!0x0,_0xa8d02)),_0xa8d02;}get['hasFocus'](){var _0x478605;return(this['dom']['ownerDocument']['hasFocus']()||browser['safari']&&(null===(_0x478605=this['inputState'])||void 0x0===_0x478605?void 0x0:_0x478605['lastContextMenu'])>Date['now']()-0x7530)&&this['root']['activeElement']==this['contentDOM'];}['focus'](){this['observer']['ignore'](()=>{focusPreventScroll(this['contentDOM']),this['docView']['updateSelection']();});}['setRoot'](_0x2c60ac){this['_root']!=_0x2c60ac&&(this['_root']=_0x2c60ac,this['observer']['setWindow']((0x9==_0x2c60ac['nodeType']?_0x2c60ac:_0x2c60ac['ownerDocument'])['defaultView']||window),this['mountStyles']());}['destroy'](){this['root']['activeElement']==this['contentDOM']&&this['contentDOM']['blur']();for(let _0x3213fc of this['plugins'])_0x3213fc['destroy'](this);this['plugins']=[],this['inputState']['destroy'](),this['docView']['destroy'](),this['dom']['remove'](),this['observer']['destroy'](),this['measureScheduled']>-0x1&&this['win']['cancelAnimationFrame'](this['measureScheduled']),this['destroyed']=!0x0;}static['scrollIntoView'](_0x4abd89,_0x31d5b8={}){return scrollIntoView$1['of'](new ScrollTarget('number'==typeof _0x4abd89?EditorSelection['cursor'](_0x4abd89):_0x4abd89,_0x31d5b8['y'],_0x31d5b8['x'],_0x31d5b8['yMargin'],_0x31d5b8['xMargin']));}['scrollSnapshot'](){let {scrollTop:_0x4b9afe,scrollLeft:_0x5588b2}=this['scrollDOM'],_0x2dc745=this['viewState']['scrollAnchorAt'](_0x4b9afe);return scrollIntoView$1['of'](new ScrollTarget(EditorSelection['cursor'](_0x2dc745['from']),'start','start',_0x2dc745['top']-_0x4b9afe,_0x5588b2,!0x0));}['setTabFocusMode'](_0x99ee8){null==_0x99ee8?this['inputState']['tabFocusMode']=this['inputState']['tabFocusMode']<0x0?0x0:-0x1:'boolean'==typeof _0x99ee8?this['inputState']['tabFocusMode']=_0x99ee8?0x0:-0x1:0x0!=this['inputState']['tabFocusMode']&&(this['inputState']['tabFocusMode']=Date['now']()+_0x99ee8);}static['domEventHandlers'](_0x45422d){return ViewPlugin['define'](()=>({}),{'eventHandlers':_0x45422d});}static['domEventObservers'](_0xed6110){return ViewPlugin['define'](()=>({}),{'eventObservers':_0xed6110});}static['theme'](_0x35daf4,_0x1ea86c){let _0x206989=StyleModule['newName'](),_0x8e9db=[theme['of'](_0x206989),styleModule['of'](buildTheme('.'+_0x206989,_0x35daf4))];return _0x1ea86c&&_0x1ea86c['dark']&&_0x8e9db['push'](darkTheme['of'](!0x0)),_0x8e9db;}static['baseTheme'](_0x1a3b3d){return Prec['lowest'](styleModule['of'](buildTheme('.'+baseThemeID,_0x1a3b3d,lightDarkIDs)));}static['findFromDOM'](_0xc3699b){var _0x455674;let _0x2c6094=_0xc3699b['querySelector']('.cm-content'),_0x2f9fe3=_0x2c6094&&ContentView['get'](_0x2c6094)||ContentView['get'](_0xc3699b);return(null===(_0x455674=null==_0x2f9fe3?void 0x0:_0x2f9fe3['rootView'])||void 0x0===_0x455674?void 0x0:_0x455674['view'])||null;}}EditorView['styleModule']=styleModule,EditorView['inputHandler']=inputHandler$1,EditorView['clipboardInputFilter']=clipboardInputFilter,EditorView['clipboardOutputFilter']=clipboardOutputFilter,EditorView['scrollHandler']=scrollHandler,EditorView['focusChangeEffect']=focusChangeEffect,EditorView['perLineTextDirection']=perLineTextDirection,EditorView['exceptionSink']=exceptionSink,EditorView['updateListener']=updateListener,EditorView['editable']=editable,EditorView['mouseSelectionStyle']=mouseSelectionStyle,EditorView['dragMovesSelection']=dragMovesSelection$1,EditorView['clickAddsSelectionRange']=clickAddsSelectionRange,EditorView['decorations']=decorations,EditorView['outerDecorations']=outerDecorations,EditorView['atomicRanges']=atomicRanges,EditorView['bidiIsolatedRanges']=bidiIsolatedRanges,EditorView['scrollMargins']=scrollMargins,EditorView['darkTheme']=darkTheme,EditorView['cspNonce']=Facet['define']({'combine':_0x56169c=>_0x56169c['length']?_0x56169c[0x0]:''}),EditorView['contentAttributes']=contentAttributes,EditorView['editorAttributes']=editorAttributes,EditorView['lineWrapping']=EditorView['contentAttributes']['of']({'class':'cm-lineWrapping'}),EditorView['announce']=StateEffect['define']();const MaxBidiLine=0x1000,BadMeasure={};class CachedOrder{constructor(_0x544728,_0x1567ac,_0x432be2,_0xf7887b,_0x19e564,_0x4ea75f){this['from']=_0x544728,this['to']=_0x1567ac,this['dir']=_0x432be2,this['isolates']=_0xf7887b,this['fresh']=_0x19e564,this['order']=_0x4ea75f;}static['update'](_0x557dea,_0x263eba){if(_0x263eba['empty']&&!_0x557dea['some'](_0x49963f=>_0x49963f['fresh']))return _0x557dea;let _0xfb4ee0=[],_0x2450fc=_0x557dea['length']?_0x557dea[_0x557dea['length']-0x1]['dir']:Direction['LTR'];for(let _0x32ef88=Math['max'](0x0,_0x557dea['length']-0xa);_0x32ef88<_0x557dea['length'];_0x32ef88++){let _0x27a63a=_0x557dea[_0x32ef88];_0x27a63a['dir']!=_0x2450fc||_0x263eba['touchesRange'](_0x27a63a['from'],_0x27a63a['to'])||_0xfb4ee0['push'](new CachedOrder(_0x263eba['mapPos'](_0x27a63a['from'],0x1),_0x263eba['mapPos'](_0x27a63a['to'],-0x1),_0x27a63a['dir'],_0x27a63a['isolates'],!0x1,_0x27a63a['order']));}return _0xfb4ee0;}}function attrsFromFacet(_0x36947d,_0x49faa1,_0x321b92){for(let _0x3479c9=_0x36947d['state']['facet'](_0x49faa1),_0x9163e6=_0x3479c9['length']-0x1;_0x9163e6>=0x0;_0x9163e6--){let _0x28c532=_0x3479c9[_0x9163e6],_0x492170='function'==typeof _0x28c532?_0x28c532(_0x36947d):_0x28c532;_0x492170&&combineAttrs(_0x492170,_0x321b92);}return _0x321b92;}const currentPlatform=browser['mac']?'mac':browser['windows']?'win':browser['linux']?'linux':'key';function normalizeKeyName(_0xc17549,_0x38e588){const _0x46a3ea=_0xc17549['split'](/-(?!$)/);let _0xda892,_0x35b257,_0x199f06,_0x25ee54,_0x2a4725=_0x46a3ea[_0x46a3ea['length']-0x1];'Space'==_0x2a4725&&(_0x2a4725='\x20');for(let _0x47ad94=0x0;_0x47ad94<_0x46a3ea['length']-0x1;++_0x47ad94){const _0x36990e=_0x46a3ea[_0x47ad94];if(/^(cmd|meta|m)$/i['test'](_0x36990e))_0x25ee54=!0x0;else{if(/^a(lt)?$/i['test'](_0x36990e))_0xda892=!0x0;else{if(/^(c|ctrl|control)$/i['test'](_0x36990e))_0x35b257=!0x0;else{if(/^s(hift)?$/i['test'](_0x36990e))_0x199f06=!0x0;else{if(!/^mod$/i['test'](_0x36990e))throw new Error('Unrecognized\x20modifier\x20name:\x20'+_0x36990e);'mac'==_0x38e588?_0x25ee54=!0x0:_0x35b257=!0x0;}}}}}return _0xda892&&(_0x2a4725='Alt-'+_0x2a4725),_0x35b257&&(_0x2a4725='Ctrl-'+_0x2a4725),_0x25ee54&&(_0x2a4725='Meta-'+_0x2a4725),_0x199f06&&(_0x2a4725='Shift-'+_0x2a4725),_0x2a4725;}function modifiers(_0x5c8357,_0x563da5,_0x452f04){return _0x563da5['altKey']&&(_0x5c8357='Alt-'+_0x5c8357),_0x563da5['ctrlKey']&&(_0x5c8357='Ctrl-'+_0x5c8357),_0x563da5['metaKey']&&(_0x5c8357='Meta-'+_0x5c8357),!0x1!==_0x452f04&&_0x563da5['shiftKey']&&(_0x5c8357='Shift-'+_0x5c8357),_0x5c8357;}const handleKeyEvents=Prec['default'](EditorView['domEventHandlers']({'keydown':(_0x1b96bc,_0x478f0d)=>runHandlers(getKeymap(_0x478f0d['state']),_0x1b96bc,_0x478f0d,'editor')})),keymap=Facet['define']({'enables':handleKeyEvents}),Keymaps=new WeakMap();function getKeymap(_0x25e3b4){let _0x1c67f1=_0x25e3b4['facet'](keymap),_0xd544d4=Keymaps['get'](_0x1c67f1);return _0xd544d4||Keymaps['set'](_0x1c67f1,_0xd544d4=buildKeymap(_0x1c67f1['reduce']((_0x4018f6,_0x47dbb7)=>_0x4018f6['concat'](_0x47dbb7),[]))),_0xd544d4;}let storedPrefix=null;const PrefixTimeout=0xfa0;function buildKeymap(_0x5cc5f8,_0x5047db=currentPlatform){let _0x297de6=Object['create'](null),_0x34f75c=Object['create'](null),_0xcc4e94=(_0x1d10b9,_0x3dae05)=>{let _0x24addd=_0x34f75c[_0x1d10b9];if(null==_0x24addd)_0x34f75c[_0x1d10b9]=_0x3dae05;else{if(_0x24addd!=_0x3dae05)throw new Error('Key\x20binding\x20'+_0x1d10b9+'\x20is\x20used\x20both\x20as\x20a\x20regular\x20binding\x20and\x20as\x20a\x20multi-stroke\x20prefix');}},_0x182e90=(_0xbbdf7d,_0x301565,_0x45e9ae,_0x245f26,_0x308c08)=>{var _0x382007,_0x4d2123;let _0x4345d3=_0x297de6[_0xbbdf7d]||(_0x297de6[_0xbbdf7d]=Object['create'](null)),_0x4998d8=_0x301565['split'](/ (?!$)/)['map'](_0x3d13a5=>normalizeKeyName(_0x3d13a5,_0x5047db));for(let _0x25ec0c=0x1;_0x25ec0c<_0x4998d8['length'];_0x25ec0c++){let _0x32bfc6=_0x4998d8['slice'](0x0,_0x25ec0c)['join']('\x20');_0xcc4e94(_0x32bfc6,!0x0),_0x4345d3[_0x32bfc6]||(_0x4345d3[_0x32bfc6]={'preventDefault':!0x0,'stopPropagation':!0x1,'run':[_0x3cf624=>{let _0x1c3d53=storedPrefix={'view':_0x3cf624,'prefix':_0x32bfc6,'scope':_0xbbdf7d};return setTimeout(()=>{storedPrefix==_0x1c3d53&&(storedPrefix=null);},PrefixTimeout),!0x0;}]});}let _0x392bb1=_0x4998d8['join']('\x20');_0xcc4e94(_0x392bb1,!0x1);let _0x76bb11=_0x4345d3[_0x392bb1]||(_0x4345d3[_0x392bb1]={'preventDefault':!0x1,'stopPropagation':!0x1,'run':(null===(_0x4d2123=null===(_0x382007=_0x4345d3['_any'])||void 0x0===_0x382007?void 0x0:_0x382007['run'])||void 0x0===_0x4d2123?void 0x0:_0x4d2123['slice']())||[]});_0x45e9ae&&_0x76bb11['run']['push'](_0x45e9ae),_0x245f26&&(_0x76bb11['preventDefault']=!0x0),_0x308c08&&(_0x76bb11['stopPropagation']=!0x0);};for(let _0x428e85 of _0x5cc5f8){let _0x7db61c=_0x428e85['scope']?_0x428e85['scope']['split']('\x20'):['editor'];if(_0x428e85['any'])for(let _0x4cfa82 of _0x7db61c){let _0x47a3ba=_0x297de6[_0x4cfa82]||(_0x297de6[_0x4cfa82]=Object['create'](null));_0x47a3ba['_any']||(_0x47a3ba['_any']={'preventDefault':!0x1,'stopPropagation':!0x1,'run':[]});let {any:_0x294273}=_0x428e85;for(let _0x9c74c6 in _0x47a3ba)_0x47a3ba[_0x9c74c6]['run']['push'](_0x4840d1=>_0x294273(_0x4840d1,currentKeyEvent));}let _0x539bca=_0x428e85[_0x5047db]||_0x428e85['key'];if(_0x539bca){for(let _0x520bde of _0x7db61c)_0x182e90(_0x520bde,_0x539bca,_0x428e85['run'],_0x428e85['preventDefault'],_0x428e85['stopPropagation']),_0x428e85['shift']&&_0x182e90(_0x520bde,'Shift-'+_0x539bca,_0x428e85['shift'],_0x428e85['preventDefault'],_0x428e85['stopPropagation']);}}return _0x297de6;}let currentKeyEvent=null;function runHandlers(_0x11a342,_0x5a4429,_0x3133c9,_0x3e4df5){currentKeyEvent=_0x5a4429;let _0x193114=keyName(_0x5a4429),_0x3e8434=codePointSize(codePointAt(_0x193114,0x0))==_0x193114['length']&&'\x20'!=_0x193114,_0x3aa140='',_0x2ee4c1=!0x1,_0x21a2fb=!0x1,_0x275eab=!0x1;storedPrefix&&storedPrefix['view']==_0x3133c9&&storedPrefix['scope']==_0x3e4df5&&(_0x3aa140=storedPrefix['prefix']+'\x20',modifierCodes['indexOf'](_0x5a4429['keyCode'])<0x0&&(_0x21a2fb=!0x0,storedPrefix=null));let _0x4e39c1,_0xed8ca,_0x2540e1=new Set(),_0x56e390=_0xc0da4c=>{if(_0xc0da4c){for(let _0x584aa0 of _0xc0da4c['run'])if(!_0x2540e1['has'](_0x584aa0)&&(_0x2540e1['add'](_0x584aa0),_0x584aa0(_0x3133c9)))return _0xc0da4c['stopPropagation']&&(_0x275eab=!0x0),!0x0;_0xc0da4c['preventDefault']&&(_0xc0da4c['stopPropagation']&&(_0x275eab=!0x0),_0x21a2fb=!0x0);}return!0x1;},_0x44e8db=_0x11a342[_0x3e4df5];return _0x44e8db&&(_0x56e390(_0x44e8db[_0x3aa140+modifiers(_0x193114,_0x5a4429,!_0x3e8434)])?_0x2ee4c1=!0x0:!_0x3e8434||!(_0x5a4429['altKey']||_0x5a4429['metaKey']||_0x5a4429['ctrlKey'])||browser['windows']&&_0x5a4429['ctrlKey']&&_0x5a4429['altKey']||browser['mac']&&_0x5a4429['altKey']&&!_0x5a4429['ctrlKey']&&!_0x5a4429['metaKey']||!(_0x4e39c1=base$2[_0x5a4429['keyCode']])||_0x4e39c1==_0x193114?_0x3e8434&&_0x5a4429['shiftKey']&&_0x56e390(_0x44e8db[_0x3aa140+modifiers(_0x193114,_0x5a4429,!0x0)])&&(_0x2ee4c1=!0x0):(_0x56e390(_0x44e8db[_0x3aa140+modifiers(_0x4e39c1,_0x5a4429,!0x0)])||_0x5a4429['shiftKey']&&(_0xed8ca=shift[_0x5a4429['keyCode']])!=_0x193114&&_0xed8ca!=_0x4e39c1&&_0x56e390(_0x44e8db[_0x3aa140+modifiers(_0xed8ca,_0x5a4429,!0x1)]))&&(_0x2ee4c1=!0x0),!_0x2ee4c1&&_0x56e390(_0x44e8db['_any'])&&(_0x2ee4c1=!0x0)),_0x21a2fb&&(_0x2ee4c1=!0x0),_0x2ee4c1&&_0x275eab&&_0x5a4429['stopPropagation'](),currentKeyEvent=null,_0x2ee4c1;}class RectangleMarker{constructor(_0x1b4b9d,_0x34d43e,_0x57220b,_0x3054fb,_0x2c934f){this['className']=_0x1b4b9d,this['left']=_0x34d43e,this['top']=_0x57220b,this['width']=_0x3054fb,this['height']=_0x2c934f;}['draw'](){let _0x3b0475=document['createElement']('div');return _0x3b0475['className']=this['className'],this['adjust'](_0x3b0475),_0x3b0475;}['update'](_0x1177f3,_0x1b4ce9){return _0x1b4ce9['className']==this['className']&&(this['adjust'](_0x1177f3),!0x0);}['adjust'](_0x5261fd){_0x5261fd['style']['left']=this['left']+'px',_0x5261fd['style']['top']=this['top']+'px',null!=this['width']&&(_0x5261fd['style']['width']=this['width']+'px'),_0x5261fd['style']['height']=this['height']+'px';}['eq'](_0x4e1936){return this['left']==_0x4e1936['left']&&this['top']==_0x4e1936['top']&&this['width']==_0x4e1936['width']&&this['height']==_0x4e1936['height']&&this['className']==_0x4e1936['className'];}static['forRange'](_0x337913,_0x91d75b,_0x234a71){if(_0x234a71['empty']){let _0x1aa035=_0x337913['coordsAtPos'](_0x234a71['head'],_0x234a71['assoc']||0x1);if(!_0x1aa035)return[];let _0x1d43ce=getBase(_0x337913);return[new RectangleMarker(_0x91d75b,_0x1aa035['left']-_0x1d43ce['left'],_0x1aa035['top']-_0x1d43ce['top'],null,_0x1aa035['bottom']-_0x1aa035['top'])];}return rectanglesForRange(_0x337913,_0x91d75b,_0x234a71);}}function getBase(_0x2d367f){let _0x537a3e=_0x2d367f['scrollDOM']['getBoundingClientRect']();return{'left':(_0x2d367f['textDirection']==Direction['LTR']?_0x537a3e['left']:_0x537a3e['right']-_0x2d367f['scrollDOM']['clientWidth']*_0x2d367f['scaleX'])-_0x2d367f['scrollDOM']['scrollLeft']*_0x2d367f['scaleX'],'top':_0x537a3e['top']-_0x2d367f['scrollDOM']['scrollTop']*_0x2d367f['scaleY']};}function wrappedLine(_0x11e4d1,_0x5a3ad0,_0x4854ca,_0x168c79){let _0x355d47=_0x11e4d1['coordsAtPos'](_0x5a3ad0,0x2*_0x4854ca);if(!_0x355d47)return _0x168c79;let _0x91847a=_0x11e4d1['dom']['getBoundingClientRect'](),_0x49b921=(_0x355d47['top']+_0x355d47['bottom'])/0x2,_0x322f34=_0x11e4d1['posAtCoords']({'x':_0x91847a['left']+0x1,'y':_0x49b921}),_0x2dc748=_0x11e4d1['posAtCoords']({'x':_0x91847a['right']-0x1,'y':_0x49b921});return null==_0x322f34||null==_0x2dc748?_0x168c79:{'from':Math['max'](_0x168c79['from'],Math['min'](_0x322f34,_0x2dc748)),'to':Math['min'](_0x168c79['to'],Math['max'](_0x322f34,_0x2dc748))};}function rectanglesForRange(_0x36155a,_0x4eb8aa,_0x152eef){if(_0x152eef['to']<=_0x36155a['viewport']['from']||_0x152eef['from']>=_0x36155a['viewport']['to'])return[];let _0x40184a=Math['max'](_0x152eef['from'],_0x36155a['viewport']['from']),_0x5955c6=Math['min'](_0x152eef['to'],_0x36155a['viewport']['to']),_0x3c799a=_0x36155a['textDirection']==Direction['LTR'],_0x193209=_0x36155a['contentDOM'],_0x873275=_0x193209['getBoundingClientRect'](),_0x110ada=getBase(_0x36155a),_0x1c4ccd=_0x193209['querySelector']('.cm-line'),_0x1a5d17=_0x1c4ccd&&window['getComputedStyle'](_0x1c4ccd),_0x138150=_0x873275['left']+(_0x1a5d17?parseInt(_0x1a5d17['paddingLeft'])+Math['min'](0x0,parseInt(_0x1a5d17['textIndent'])):0x0),_0x211b14=_0x873275['right']-(_0x1a5d17?parseInt(_0x1a5d17['paddingRight']):0x0),_0x4143ba=blockAt(_0x36155a,_0x40184a,0x1),_0x45270d=blockAt(_0x36155a,_0x5955c6,-0x1),_0x2640fe=_0x4143ba['type']==BlockType['Text']?_0x4143ba:null,_0x10bbbb=_0x45270d['type']==BlockType['Text']?_0x45270d:null;if(_0x2640fe&&(_0x36155a['lineWrapping']||_0x4143ba['widgetLineBreaks'])&&(_0x2640fe=wrappedLine(_0x36155a,_0x40184a,0x1,_0x2640fe)),_0x10bbbb&&(_0x36155a['lineWrapping']||_0x45270d['widgetLineBreaks'])&&(_0x10bbbb=wrappedLine(_0x36155a,_0x5955c6,-0x1,_0x10bbbb)),_0x2640fe&&_0x10bbbb&&_0x2640fe['from']==_0x10bbbb['from']&&_0x2640fe['to']==_0x10bbbb['to'])return _0x55d797(_0x4c79b8(_0x152eef['from'],_0x152eef['to'],_0x2640fe));{let _0x382d5b=_0x2640fe?_0x4c79b8(_0x152eef['from'],null,_0x2640fe):_0x3a2780(_0x4143ba,!0x1),_0x2269bb=_0x10bbbb?_0x4c79b8(null,_0x152eef['to'],_0x10bbbb):_0x3a2780(_0x45270d,!0x0),_0xbf674a=[];return(_0x2640fe||_0x4143ba)['to']<(_0x10bbbb||_0x45270d)['from']-(_0x2640fe&&_0x10bbbb?0x1:0x0)||_0x4143ba['widgetLineBreaks']>0x1&&_0x382d5b['bottom']+_0x36155a['defaultLineHeight']/0x2<_0x2269bb['top']?_0xbf674a['push'](_0xb0ec4b(_0x138150,_0x382d5b['bottom'],_0x211b14,_0x2269bb['top'])):_0x382d5b['bottom']<_0x2269bb['top']&&_0x36155a['elementAtHeight']((_0x382d5b['bottom']+_0x2269bb['top'])/0x2)['type']==BlockType['Text']&&(_0x382d5b['bottom']=_0x2269bb['top']=(_0x382d5b['bottom']+_0x2269bb['top'])/0x2),_0x55d797(_0x382d5b)['concat'](_0xbf674a)['concat'](_0x55d797(_0x2269bb));}function _0xb0ec4b(_0x233210,_0x2704fc,_0x500198,_0xcd5324){return new RectangleMarker(_0x4eb8aa,_0x233210-_0x110ada['left'],_0x2704fc-_0x110ada['top'],_0x500198-_0x233210,_0xcd5324-_0x2704fc);}function _0x55d797({top:_0x168405,bottom:_0x13fff9,horizontal:_0x4f5d52}){let _0x28e033=[];for(let _0x26e419=0x0;_0x26e419<_0x4f5d52['length'];_0x26e419+=0x2)_0x28e033['push'](_0xb0ec4b(_0x4f5d52[_0x26e419],_0x168405,_0x4f5d52[_0x26e419+0x1],_0x13fff9));return _0x28e033;}function _0x4c79b8(_0xf58e84,_0x2e5054,_0x58357a){let _0x6570ad=0x3b9aca00,_0x4097b4=-0x3b9aca00,_0x451763=[];function _0x50a692(_0x150d4d,_0x3c6bdb,_0x5eea3c,_0x32a680,_0x63b074){let _0xfdbd7f=_0x36155a['coordsAtPos'](_0x150d4d,_0x150d4d==_0x58357a['to']?-0x2:0x2),_0x5dc063=_0x36155a['coordsAtPos'](_0x5eea3c,_0x5eea3c==_0x58357a['from']?0x2:-0x2);_0xfdbd7f&&_0x5dc063&&(_0x6570ad=Math['min'](_0xfdbd7f['top'],_0x5dc063['top'],_0x6570ad),_0x4097b4=Math['max'](_0xfdbd7f['bottom'],_0x5dc063['bottom'],_0x4097b4),_0x63b074==Direction['LTR']?_0x451763['push'](_0x3c799a&&_0x3c6bdb?_0x138150:_0xfdbd7f['left'],_0x3c799a&&_0x32a680?_0x211b14:_0x5dc063['right']):_0x451763['push'](!_0x3c799a&&_0x32a680?_0x138150:_0x5dc063['left'],!_0x3c799a&&_0x3c6bdb?_0x211b14:_0xfdbd7f['right']));}let _0x521a59=null!=_0xf58e84?_0xf58e84:_0x58357a['from'],_0xa9c856=null!=_0x2e5054?_0x2e5054:_0x58357a['to'];for(let _0x1d31f7 of _0x36155a['visibleRanges'])if(_0x1d31f7['to']>_0x521a59&&_0x1d31f7['from']<_0xa9c856)for(let _0x4bb11f=Math['max'](_0x1d31f7['from'],_0x521a59),_0x583554=Math['min'](_0x1d31f7['to'],_0xa9c856);;){let _0x24c794=_0x36155a['state']['doc']['lineAt'](_0x4bb11f);for(let _0x5cd7c1 of _0x36155a['bidiSpans'](_0x24c794)){let _0x47f895=_0x5cd7c1['from']+_0x24c794['from'],_0x2ef751=_0x5cd7c1['to']+_0x24c794['from'];if(_0x47f895>=_0x583554)break;_0x2ef751>_0x4bb11f&&_0x50a692(Math['max'](_0x47f895,_0x4bb11f),null==_0xf58e84&&_0x47f895<=_0x521a59,Math['min'](_0x2ef751,_0x583554),null==_0x2e5054&&_0x2ef751>=_0xa9c856,_0x5cd7c1['dir']);}if(_0x4bb11f=_0x24c794['to']+0x1,_0x4bb11f>=_0x583554)break;}return 0x0==_0x451763['length']&&_0x50a692(_0x521a59,null==_0xf58e84,_0xa9c856,null==_0x2e5054,_0x36155a['textDirection']),{'top':_0x6570ad,'bottom':_0x4097b4,'horizontal':_0x451763};}function _0x3a2780(_0x4659e7,_0xa112f1){let _0x3cbccf=_0x873275['top']+(_0xa112f1?_0x4659e7['top']:_0x4659e7['bottom']);return{'top':_0x3cbccf,'bottom':_0x3cbccf,'horizontal':[]};}}function sameMarker(_0x5c5493,_0x4ec308){return _0x5c5493['constructor']==_0x4ec308['constructor']&&_0x5c5493['eq'](_0x4ec308);}class LayerView{constructor(_0x7f44b7,_0x24ed17){this['view']=_0x7f44b7,this['layer']=_0x24ed17,this['drawn']=[],this['scaleX']=0x1,this['scaleY']=0x1,this['measureReq']={'read':this['measure']['bind'](this),'write':this['draw']['bind'](this)},this['dom']=_0x7f44b7['scrollDOM']['appendChild'](document['createElement']('div')),this['dom']['classList']['add']('cm-layer'),_0x24ed17['above']&&this['dom']['classList']['add']('cm-layer-above'),_0x24ed17['class']&&this['dom']['classList']['add'](_0x24ed17['class']),this['scale'](),this['dom']['setAttribute']('aria-hidden','true'),this['setOrder'](_0x7f44b7['state']),_0x7f44b7['requestMeasure'](this['measureReq']),_0x24ed17['mount']&&_0x24ed17['mount'](this['dom'],_0x7f44b7);}['update'](_0x2c2c3e){_0x2c2c3e['startState']['facet'](layerOrder)!=_0x2c2c3e['state']['facet'](layerOrder)&&this['setOrder'](_0x2c2c3e['state']),(this['layer']['update'](_0x2c2c3e,this['dom'])||_0x2c2c3e['geometryChanged'])&&(this['scale'](),_0x2c2c3e['view']['requestMeasure'](this['measureReq']));}['docViewUpdate'](_0x151594){!0x1!==this['layer']['updateOnDocViewUpdate']&&_0x151594['requestMeasure'](this['measureReq']);}['setOrder'](_0xb424b8){let _0x2f46f0=0x0,_0x1fb89b=_0xb424b8['facet'](layerOrder);for(;_0x2f46f0<_0x1fb89b['length']&&_0x1fb89b[_0x2f46f0]!=this['layer'];)_0x2f46f0++;this['dom']['style']['zIndex']=String((this['layer']['above']?0x96:-0x1)-_0x2f46f0);}['measure'](){return this['layer']['markers'](this['view']);}['scale'](){let {scaleX:_0x395790,scaleY:_0x4a31d6}=this['view'];_0x395790==this['scaleX']&&_0x4a31d6==this['scaleY']||(this['scaleX']=_0x395790,this['scaleY']=_0x4a31d6,this['dom']['style']['transform']='scale('+0x1/_0x395790+',\x20'+0x1/_0x4a31d6+')');}['draw'](_0x1cf30d){if(_0x1cf30d['length']!=this['drawn']['length']||_0x1cf30d['some']((_0x591e1f,_0x4bed10)=>!sameMarker(_0x591e1f,this['drawn'][_0x4bed10]))){let _0x3cf75f=this['dom']['firstChild'],_0x2bba38=0x0;for(let _0x2eda27 of _0x1cf30d)_0x2eda27['update']&&_0x3cf75f&&_0x2eda27['constructor']&&this['drawn'][_0x2bba38]['constructor']&&_0x2eda27['update'](_0x3cf75f,this['drawn'][_0x2bba38])?(_0x3cf75f=_0x3cf75f['nextSibling'],_0x2bba38++):this['dom']['insertBefore'](_0x2eda27['draw'](),_0x3cf75f);for(;_0x3cf75f;){let _0x2fe19=_0x3cf75f['nextSibling'];_0x3cf75f['remove'](),_0x3cf75f=_0x2fe19;}this['drawn']=_0x1cf30d;}}['destroy'](){this['layer']['destroy']&&this['layer']['destroy'](this['dom'],this['view']),this['dom']['remove']();}}const layerOrder=Facet['define']();function layer(_0x56d125){return[ViewPlugin['define'](_0x7ffe5f=>new LayerView(_0x7ffe5f,_0x56d125)),layerOrder['of'](_0x56d125)];}const selectionConfig=Facet['define']({'combine':_0x452b17=>combineConfig(_0x452b17,{'cursorBlinkRate':0x4b0,'drawRangeCursor':!0x0},{'cursorBlinkRate':(_0x299b56,_0x2da489)=>Math['min'](_0x299b56,_0x2da489),'drawRangeCursor':(_0x8b0bb0,_0x25a6c9)=>_0x8b0bb0||_0x25a6c9})});function drawSelection(_0x37a163={}){return[selectionConfig['of'](_0x37a163),cursorLayer,selectionLayer,hideNativeSelection,nativeSelectionHidden['of'](!0x0)];}function configChanged(_0xe8d4a4){return _0xe8d4a4['startState']['facet'](selectionConfig)!=_0xe8d4a4['state']['facet'](selectionConfig);}const cursorLayer=layer({'above':!0x0,'markers'(_0x292fe0){let {state:_0x32e53a}=_0x292fe0,_0x671b17=_0x32e53a['facet'](selectionConfig),_0x3fb1f5=[];for(let _0x2ce13e of _0x32e53a['selection']['ranges']){let _0x99ade1=_0x2ce13e==_0x32e53a['selection']['main'];if(_0x2ce13e['empty']||_0x671b17['drawRangeCursor']){let _0x2cc332=_0x99ade1?'cm-cursor\x20cm-cursor-primary':'cm-cursor\x20cm-cursor-secondary',_0x274284=_0x2ce13e['empty']?_0x2ce13e:EditorSelection['cursor'](_0x2ce13e['head'],_0x2ce13e['head']>_0x2ce13e['anchor']?-0x1:0x1);for(let _0x5908be of RectangleMarker['forRange'](_0x292fe0,_0x2cc332,_0x274284))_0x3fb1f5['push'](_0x5908be);}}return _0x3fb1f5;},'update'(_0x3ecf5b,_0x58b274){_0x3ecf5b['transactions']['some'](_0x3b246e=>_0x3b246e['selection'])&&(_0x58b274['style']['animationName']='cm-blink'==_0x58b274['style']['animationName']?'cm-blink2':'cm-blink');let _0xa6cfc7=configChanged(_0x3ecf5b);return _0xa6cfc7&&setBlinkRate(_0x3ecf5b['state'],_0x58b274),_0x3ecf5b['docChanged']||_0x3ecf5b['selectionSet']||_0xa6cfc7;},'mount'(_0x358ebf,_0x1f266f){setBlinkRate(_0x1f266f['state'],_0x358ebf);},'class':'cm-cursorLayer'});function setBlinkRate(_0x565909,_0xd1d836){_0xd1d836['style']['animationDuration']=_0x565909['facet'](selectionConfig)['cursorBlinkRate']+'ms';}const selectionLayer=layer({'above':!0x1,'markers':_0x142731=>_0x142731['state']['selection']['ranges']['map'](_0xa6de50=>_0xa6de50['empty']?[]:RectangleMarker['forRange'](_0x142731,'cm-selectionBackground',_0xa6de50))['reduce']((_0x2b9db3,_0x3c8be8)=>_0x2b9db3['concat'](_0x3c8be8)),'update':(_0x16a773,_0x1900a5)=>_0x16a773['docChanged']||_0x16a773['selectionSet']||_0x16a773['viewportChanged']||configChanged(_0x16a773),'class':'cm-selectionLayer'}),hideNativeSelection=Prec['highest'](EditorView['theme']({'.cm-line':{'&\x20::selection,\x20&::selection':{'backgroundColor':'transparent\x20!important'},'caretColor':'transparent\x20!important'},'.cm-content':{'caretColor':'transparent\x20!important','&\x20:focus':{'caretColor':'initial\x20!important','&::selection,\x20&\x20::selection':{'backgroundColor':'Highlight\x20!important'}}}})),setDropCursorPos=StateEffect['define']({'map':(_0x24f0c6,_0x1b61c4)=>null==_0x24f0c6?null:_0x1b61c4['mapPos'](_0x24f0c6)}),dropCursorPos=StateField['define']({'create':()=>null,'update':(_0x52ef57,_0x282523)=>(null!=_0x52ef57&&(_0x52ef57=_0x282523['changes']['mapPos'](_0x52ef57)),_0x282523['effects']['reduce']((_0x449281,_0x23568b)=>_0x23568b['is'](setDropCursorPos)?_0x23568b['value']:_0x449281,_0x52ef57))}),drawDropCursor=ViewPlugin['fromClass'](class{constructor(_0x2941b3){this['view']=_0x2941b3,this['cursor']=null,this['measureReq']={'read':this['readPos']['bind'](this),'write':this['drawCursor']['bind'](this)};}['update'](_0x49ca99){var _0x54bdd7;let _0x15aab9=_0x49ca99['state']['field'](dropCursorPos);null==_0x15aab9?null!=this['cursor']&&(null===(_0x54bdd7=this['cursor'])||void 0x0===_0x54bdd7||_0x54bdd7['remove'](),this['cursor']=null):(this['cursor']||(this['cursor']=this['view']['scrollDOM']['appendChild'](document['createElement']('div')),this['cursor']['className']='cm-dropCursor'),(_0x49ca99['startState']['field'](dropCursorPos)!=_0x15aab9||_0x49ca99['docChanged']||_0x49ca99['geometryChanged'])&&this['view']['requestMeasure'](this['measureReq']));}['readPos'](){let {view:_0x8de217}=this,_0x5cb8e7=_0x8de217['state']['field'](dropCursorPos),_0x163e28=null!=_0x5cb8e7&&_0x8de217['coordsAtPos'](_0x5cb8e7);if(!_0x163e28)return null;let _0x12c661=_0x8de217['scrollDOM']['getBoundingClientRect']();return{'left':_0x163e28['left']-_0x12c661['left']+_0x8de217['scrollDOM']['scrollLeft']*_0x8de217['scaleX'],'top':_0x163e28['top']-_0x12c661['top']+_0x8de217['scrollDOM']['scrollTop']*_0x8de217['scaleY'],'height':_0x163e28['bottom']-_0x163e28['top']};}['drawCursor'](_0x436019){if(this['cursor']){let {scaleX:_0x171c33,scaleY:_0x4dabb7}=this['view'];_0x436019?(this['cursor']['style']['left']=_0x436019['left']/_0x171c33+'px',this['cursor']['style']['top']=_0x436019['top']/_0x4dabb7+'px',this['cursor']['style']['height']=_0x436019['height']/_0x4dabb7+'px'):this['cursor']['style']['left']='-100000px';}}['destroy'](){this['cursor']&&this['cursor']['remove']();}['setDropPos'](_0x1be33a){this['view']['state']['field'](dropCursorPos)!=_0x1be33a&&this['view']['dispatch']({'effects':setDropCursorPos['of'](_0x1be33a)});}},{'eventObservers':{'dragover'(_0x575639){this['setDropPos'](this['view']['posAtCoords']({'x':_0x575639['clientX'],'y':_0x575639['clientY']}));},'dragleave'(_0x2b7435){_0x2b7435['target']!=this['view']['contentDOM']&&this['view']['contentDOM']['contains'](_0x2b7435['relatedTarget'])||this['setDropPos'](null);},'dragend'(){this['setDropPos'](null);},'drop'(){this['setDropPos'](null);}}});function dropCursor(){return[dropCursorPos,drawDropCursor];}function iterMatches(_0x4f0d91,_0x3374fa,_0x1740cc,_0x1be39a,_0x1bbace){_0x3374fa['lastIndex']=0x0;for(let _0x3bb870,_0x32b1c0=_0x4f0d91['iterRange'](_0x1740cc,_0x1be39a),_0x28fd3d=_0x1740cc;!_0x32b1c0['next']()['done'];_0x28fd3d+=_0x32b1c0['value']['length'])if(!_0x32b1c0['lineBreak']){for(;_0x3bb870=_0x3374fa['exec'](_0x32b1c0['value']);)_0x1bbace(_0x28fd3d+_0x3bb870['index'],_0x3bb870);}}function matchRanges(_0x172da1,_0x47f197){let _0x15cf35=_0x172da1['visibleRanges'];if(0x1==_0x15cf35['length']&&_0x15cf35[0x0]['from']==_0x172da1['viewport']['from']&&_0x15cf35[0x0]['to']==_0x172da1['viewport']['to'])return _0x15cf35;let _0x59e5f6=[];for(let {from:_0x13543c,to:_0x9c145c}of _0x15cf35)_0x13543c=Math['max'](_0x172da1['state']['doc']['lineAt'](_0x13543c)['from'],_0x13543c-_0x47f197),_0x9c145c=Math['min'](_0x172da1['state']['doc']['lineAt'](_0x9c145c)['to'],_0x9c145c+_0x47f197),_0x59e5f6['length']&&_0x59e5f6[_0x59e5f6['length']-0x1]['to']>=_0x13543c?_0x59e5f6[_0x59e5f6['length']-0x1]['to']=_0x9c145c:_0x59e5f6['push']({'from':_0x13543c,'to':_0x9c145c});return _0x59e5f6;}class MatchDecorator{constructor(_0x1d076c){const {regexp:_0x3dc3af,decoration:_0x54e7c5,decorate:_0x3c2e5b,boundary:_0x385e54,maxLength:_0x4f3538=0x3e8}=_0x1d076c;if(!_0x3dc3af['global'])throw new RangeError('The\x20regular\x20expression\x20given\x20to\x20MatchDecorator\x20should\x20have\x20its\x20\x27g\x27\x20flag\x20set');if(this['regexp']=_0x3dc3af,_0x3c2e5b)this['addMatch']=(_0x38c5d9,_0x5d078e,_0x546050,_0x2ef48e)=>_0x3c2e5b(_0x2ef48e,_0x546050,_0x546050+_0x38c5d9[0x0]['length'],_0x38c5d9,_0x5d078e);else{if('function'==typeof _0x54e7c5)this['addMatch']=(_0x2aec3c,_0x5ecac6,_0x4041af,_0x3a145)=>{let _0x4c3eae=_0x54e7c5(_0x2aec3c,_0x5ecac6,_0x4041af);_0x4c3eae&&_0x3a145(_0x4041af,_0x4041af+_0x2aec3c[0x0]['length'],_0x4c3eae);};else{if(!_0x54e7c5)throw new RangeError('Either\x20\x27decorate\x27\x20or\x20\x27decoration\x27\x20should\x20be\x20provided\x20to\x20MatchDecorator');this['addMatch']=(_0x52d8f8,_0x5e2882,_0x15dc9c,_0x3de83b)=>_0x3de83b(_0x15dc9c,_0x15dc9c+_0x52d8f8[0x0]['length'],_0x54e7c5);}}this['boundary']=_0x385e54,this['maxLength']=_0x4f3538;}['createDeco'](_0x41503f){let _0x5c594c=new RangeSetBuilder(),_0x1f2fcb=_0x5c594c['add']['bind'](_0x5c594c);for(let {from:_0x5980b4,to:_0x1ce420}of matchRanges(_0x41503f,this['maxLength']))iterMatches(_0x41503f['state']['doc'],this['regexp'],_0x5980b4,_0x1ce420,(_0x49271b,_0x46c77d)=>this['addMatch'](_0x46c77d,_0x41503f,_0x49271b,_0x1f2fcb));return _0x5c594c['finish']();}['updateDeco'](_0x5c8602,_0x26b87c){let _0x2d5804=0x3b9aca00,_0x2c1d50=-0x1;return _0x5c8602['docChanged']&&_0x5c8602['changes']['iterChanges']((_0xaf6b10,_0x2ef10c,_0x7b374a,_0x123508)=>{_0x123508>=_0x5c8602['view']['viewport']['from']&&_0x7b374a<=_0x5c8602['view']['viewport']['to']&&(_0x2d5804=Math['min'](_0x7b374a,_0x2d5804),_0x2c1d50=Math['max'](_0x123508,_0x2c1d50));}),_0x5c8602['viewportMoved']||_0x2c1d50-_0x2d5804>0x3e8?this['createDeco'](_0x5c8602['view']):_0x2c1d50>-0x1?this['updateRange'](_0x5c8602['view'],_0x26b87c['map'](_0x5c8602['changes']),_0x2d5804,_0x2c1d50):_0x26b87c;}['updateRange'](_0x4f1758,_0x3ed98f,_0x1797aa,_0x5d9beb){for(let _0x1e7e88 of _0x4f1758['visibleRanges']){let _0x23ecff=Math['max'](_0x1e7e88['from'],_0x1797aa),_0x541119=Math['min'](_0x1e7e88['to'],_0x5d9beb);if(_0x541119>=_0x23ecff){let _0x408936=_0x4f1758['state']['doc']['lineAt'](_0x23ecff),_0x290224=_0x408936['to']<_0x541119?_0x4f1758['state']['doc']['lineAt'](_0x541119):_0x408936,_0x535529=Math['max'](_0x1e7e88['from'],_0x408936['from']),_0x24e53c=Math['min'](_0x1e7e88['to'],_0x290224['to']);if(this['boundary']){for(;_0x23ecff>_0x408936['from'];_0x23ecff--)if(this['boundary']['test'](_0x408936['text'][_0x23ecff-0x1-_0x408936['from']])){_0x535529=_0x23ecff;break;}for(;_0x541119<_0x290224['to'];_0x541119++)if(this['boundary']['test'](_0x290224['text'][_0x541119-_0x290224['from']])){_0x24e53c=_0x541119;break;}}let _0x256826,_0xf5398a=[],_0x154189=(_0x5546cd,_0x22228e,_0x535060)=>_0xf5398a['push'](_0x535060['range'](_0x5546cd,_0x22228e));if(_0x408936==_0x290224){for(this['regexp']['lastIndex']=_0x535529-_0x408936['from'];(_0x256826=this['regexp']['exec'](_0x408936['text']))&&_0x256826['index']<_0x24e53c-_0x408936['from'];)this['addMatch'](_0x256826,_0x4f1758,_0x256826['index']+_0x408936['from'],_0x154189);}else iterMatches(_0x4f1758['state']['doc'],this['regexp'],_0x535529,_0x24e53c,(_0x1e29e2,_0x1978f0)=>this['addMatch'](_0x1978f0,_0x4f1758,_0x1e29e2,_0x154189));_0x3ed98f=_0x3ed98f['update']({'filterFrom':_0x535529,'filterTo':_0x24e53c,'filter':(_0x3c4dc7,_0x412b2b)=>_0x3c4dc7<_0x535529||_0x412b2b>_0x24e53c,'add':_0xf5398a});}}return _0x3ed98f;}}const UnicodeRegexpSupport=null!=/x/['unicode']?'gu':'g',Specials=new RegExp('[\x00-\x08\x0a-\x1f\x7f-\u009f­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff￹-￼]',UnicodeRegexpSupport),Names={0x0:'null',0x7:'bell',0x8:'backspace',0xa:'newline',0xb:'vertical\x20tab',0xd:'carriage\x20return',0x1b:'escape',0x200b:'zero\x20width\x20space',0x200c:'zero\x20width\x20non-joiner',0x200d:'zero\x20width\x20joiner',0x200e:'left-to-right\x20mark',0x200f:'right-to-left\x20mark',0x2028:'line\x20separator',0x202d:'left-to-right\x20override',0x202e:'right-to-left\x20override',0x2066:'left-to-right\x20isolate',0x2067:'right-to-left\x20isolate',0x2069:'pop\x20directional\x20isolate',0x2029:'paragraph\x20separator',0xfeff:'zero\x20width\x20no-break\x20space',0xfffc:'object\x20replacement'};let _supportsTabSize=null;function supportsTabSize(){var _0x513e1c;if(null==_supportsTabSize&&'undefined'!=typeof document&&document['body']){let _0xd9442c=document['body']['style'];_supportsTabSize=null!=(null!==(_0x513e1c=_0xd9442c['tabSize'])&&void 0x0!==_0x513e1c?_0x513e1c:_0xd9442c['MozTabSize']);}return _supportsTabSize||!0x1;}const specialCharConfig=Facet['define']({'combine'(_0x352b2a){let _0x2ea5c9=combineConfig(_0x352b2a,{'render':null,'specialChars':Specials,'addSpecialChars':null});return(_0x2ea5c9['replaceTabs']=!supportsTabSize())&&(_0x2ea5c9['specialChars']=new RegExp('\x09|'+_0x2ea5c9['specialChars']['source'],UnicodeRegexpSupport)),_0x2ea5c9['addSpecialChars']&&(_0x2ea5c9['specialChars']=new RegExp(_0x2ea5c9['specialChars']['source']+'|'+_0x2ea5c9['addSpecialChars']['source'],UnicodeRegexpSupport)),_0x2ea5c9;}});function highlightSpecialChars(_0x104ece={}){return[specialCharConfig['of'](_0x104ece),specialCharPlugin()];}let _plugin=null;function specialCharPlugin(){return _plugin||(_plugin=ViewPlugin['fromClass'](class{constructor(_0x471305){this['view']=_0x471305,this['decorations']=Decoration['none'],this['decorationCache']=Object['create'](null),this['decorator']=this['makeDecorator'](_0x471305['state']['facet'](specialCharConfig)),this['decorations']=this['decorator']['createDeco'](_0x471305);}['makeDecorator'](_0x599f7f){return new MatchDecorator({'regexp':_0x599f7f['specialChars'],'decoration':(_0x3f91a9,_0x21ee7d,_0x5f1572)=>{let {doc:_0x10f054}=_0x21ee7d['state'],_0x549582=codePointAt(_0x3f91a9[0x0],0x0);if(0x9==_0x549582){let _0x15ddcf=_0x10f054['lineAt'](_0x5f1572),_0x3f69a1=_0x21ee7d['state']['tabSize'],_0x3aa4b7=countColumn(_0x15ddcf['text'],_0x3f69a1,_0x5f1572-_0x15ddcf['from']);return Decoration['replace']({'widget':new TabWidget((_0x3f69a1-_0x3aa4b7%_0x3f69a1)*this['view']['defaultCharacterWidth']/this['view']['scaleX'])});}return this['decorationCache'][_0x549582]||(this['decorationCache'][_0x549582]=Decoration['replace']({'widget':new SpecialCharWidget(_0x599f7f,_0x549582)}));},'boundary':_0x599f7f['replaceTabs']?void 0x0:/[^]/});}['update'](_0x181be7){let _0x81baa2=_0x181be7['state']['facet'](specialCharConfig);_0x181be7['startState']['facet'](specialCharConfig)!=_0x81baa2?(this['decorator']=this['makeDecorator'](_0x81baa2),this['decorations']=this['decorator']['createDeco'](_0x181be7['view'])):this['decorations']=this['decorator']['updateDeco'](_0x181be7,this['decorations']);}},{'decorations':_0xd81144=>_0xd81144['decorations']}));}const DefaultPlaceholder='•';function placeholder$1(_0x4fe4e5){return _0x4fe4e5>=0x20?DefaultPlaceholder:0xa==_0x4fe4e5?'␤':String['fromCharCode'](0x2400+_0x4fe4e5);}class SpecialCharWidget extends WidgetType{constructor(_0x27b756,_0xd7125c){super(),this['options']=_0x27b756,this['code']=_0xd7125c;}['eq'](_0x1d3766){return _0x1d3766['code']==this['code'];}['toDOM'](_0x1b8a28){let _0x423293=placeholder$1(this['code']),_0x559369=_0x1b8a28['state']['phrase']('Control\x20character')+'\x20'+(Names[this['code']]||'0x'+this['code']['toString'](0x10)),_0x479e48=this['options']['render']&&this['options']['render'](this['code'],_0x559369,_0x423293);if(_0x479e48)return _0x479e48;let _0xd2661e=document['createElement']('span');return _0xd2661e['textContent']=_0x423293,_0xd2661e['title']=_0x559369,_0xd2661e['setAttribute']('aria-label',_0x559369),_0xd2661e['className']='cm-specialChar',_0xd2661e;}['ignoreEvent'](){return!0x1;}}class TabWidget extends WidgetType{constructor(_0x989516){super(),this['width']=_0x989516;}['eq'](_0x181a73){return _0x181a73['width']==this['width'];}['toDOM'](){let _0xe84133=document['createElement']('span');return _0xe84133['textContent']='\x09',_0xe84133['className']='cm-tab',_0xe84133['style']['width']=this['width']+'px',_0xe84133;}['ignoreEvent'](){return!0x1;}}function highlightActiveLine(){return activeLineHighlighter;}const lineDeco=Decoration['line']({'class':'cm-activeLine'}),activeLineHighlighter=ViewPlugin['fromClass'](class{constructor(_0x331114){this['decorations']=this['getDeco'](_0x331114);}['update'](_0x4278f3){(_0x4278f3['docChanged']||_0x4278f3['selectionSet'])&&(this['decorations']=this['getDeco'](_0x4278f3['view']));}['getDeco'](_0x1529d7){let _0x286793=-0x1,_0xc09421=[];for(let _0x4e8057 of _0x1529d7['state']['selection']['ranges']){let _0x28088c=_0x1529d7['lineBlockAt'](_0x4e8057['head']);_0x28088c['from']>_0x286793&&(_0xc09421['push'](lineDeco['range'](_0x28088c['from'])),_0x286793=_0x28088c['from']);}return Decoration['set'](_0xc09421);}},{'decorations':_0x54ff1d=>_0x54ff1d['decorations']}),MaxOff=0x7d0;function rectangleFor(_0x3f0887,_0x2d4a2b,_0x131579){let _0x3da3bd=Math['min'](_0x2d4a2b['line'],_0x131579['line']),_0x265bbf=Math['max'](_0x2d4a2b['line'],_0x131579['line']),_0x5c910d=[];if(_0x2d4a2b['off']>MaxOff||_0x131579['off']>MaxOff||_0x2d4a2b['col']<0x0||_0x131579['col']<0x0){let _0x135242=Math['min'](_0x2d4a2b['off'],_0x131579['off']),_0x21f2bc=Math['max'](_0x2d4a2b['off'],_0x131579['off']);for(let _0x22e445=_0x3da3bd;_0x22e445<=_0x265bbf;_0x22e445++){let _0x26e7ab=_0x3f0887['doc']['line'](_0x22e445);_0x26e7ab['length']<=_0x21f2bc&&_0x5c910d['push'](EditorSelection['range'](_0x26e7ab['from']+_0x135242,_0x26e7ab['to']+_0x21f2bc));}}else{let _0x5e8681=Math['min'](_0x2d4a2b['col'],_0x131579['col']),_0xa9419e=Math['max'](_0x2d4a2b['col'],_0x131579['col']);for(let _0x234fe8=_0x3da3bd;_0x234fe8<=_0x265bbf;_0x234fe8++){let _0x32299c=_0x3f0887['doc']['line'](_0x234fe8),_0x1f403a=findColumn(_0x32299c['text'],_0x5e8681,_0x3f0887['tabSize'],!0x0);if(_0x1f403a<0x0)_0x5c910d['push'](EditorSelection['cursor'](_0x32299c['to']));else{let _0x16b923=findColumn(_0x32299c['text'],_0xa9419e,_0x3f0887['tabSize']);_0x5c910d['push'](EditorSelection['range'](_0x32299c['from']+_0x1f403a,_0x32299c['from']+_0x16b923));}}}return _0x5c910d;}function absoluteColumn(_0x43c62b,_0x32af1c){let _0x6cf64c=_0x43c62b['coordsAtPos'](_0x43c62b['viewport']['from']);return _0x6cf64c?Math['round'](Math['abs']((_0x6cf64c['left']-_0x32af1c)/_0x43c62b['defaultCharacterWidth'])):-0x1;}function getPos(_0x5d29b1,_0x2db9c4){let _0x56e4e6=_0x5d29b1['posAtCoords']({'x':_0x2db9c4['clientX'],'y':_0x2db9c4['clientY']},!0x1),_0x2c5395=_0x5d29b1['state']['doc']['lineAt'](_0x56e4e6),_0x18c982=_0x56e4e6-_0x2c5395['from'],_0xe7a385=_0x18c982>MaxOff?-0x1:_0x18c982==_0x2c5395['length']?absoluteColumn(_0x5d29b1,_0x2db9c4['clientX']):countColumn(_0x2c5395['text'],_0x5d29b1['state']['tabSize'],_0x56e4e6-_0x2c5395['from']);return{'line':_0x2c5395['number'],'col':_0xe7a385,'off':_0x18c982};}function rectangleSelectionStyle(_0x59c797,_0x328d6d){let _0x2d763c=getPos(_0x59c797,_0x328d6d),_0x549e1a=_0x59c797['state']['selection'];return _0x2d763c?{'update'(_0x9c3655){if(_0x9c3655['docChanged']){let _0x385b56=_0x9c3655['changes']['mapPos'](_0x9c3655['startState']['doc']['line'](_0x2d763c['line'])['from']),_0x9e6873=_0x9c3655['state']['doc']['lineAt'](_0x385b56);_0x2d763c={'line':_0x9e6873['number'],'col':_0x2d763c['col'],'off':Math['min'](_0x2d763c['off'],_0x9e6873['length'])},_0x549e1a=_0x549e1a['map'](_0x9c3655['changes']);}},'get'(_0x1ae1e1,_0x5c63fe,_0x4d63f7){let _0x2fdbd6=getPos(_0x59c797,_0x1ae1e1);if(!_0x2fdbd6)return _0x549e1a;let _0x52c092=rectangleFor(_0x59c797['state'],_0x2d763c,_0x2fdbd6);return _0x52c092['length']?_0x4d63f7?EditorSelection['create'](_0x52c092['concat'](_0x549e1a['ranges'])):EditorSelection['create'](_0x52c092):_0x549e1a;}}:null;}function rectangularSelection(_0x3aa458){return EditorView['mouseSelectionStyle']['of']((_0x549472,_0x149c34)=>(_0x37e052=>_0x37e052['altKey']&&0x0==_0x37e052['button'])(_0x149c34)?rectangleSelectionStyle(_0x549472,_0x149c34):null);}const keys={'Alt':[0x12,_0xfeb553=>!!_0xfeb553['altKey']],'Control':[0x11,_0x28ae96=>!!_0x28ae96['ctrlKey']],'Shift':[0x10,_0x246a9a=>!!_0x246a9a['shiftKey']],'Meta':[0x5b,_0x30a352=>!!_0x30a352['metaKey']]},showCrosshair={'style':'cursor:\x20crosshair'};function crosshairCursor(_0x3dd02d={}){let [_0x554aed,_0x454339]=keys[_0x3dd02d['key']||'Alt'],_0x4931f6=ViewPlugin['fromClass'](class{constructor(_0xd7378e){this['view']=_0xd7378e,this['isDown']=!0x1;}['set'](_0x441e19){this['isDown']!=_0x441e19&&(this['isDown']=_0x441e19,this['view']['update']([]));}},{'eventObservers':{'keydown'(_0x2efd58){this['set'](_0x2efd58['keyCode']==_0x554aed||_0x454339(_0x2efd58));},'keyup'(_0x30a581){_0x30a581['keyCode']!=_0x554aed&&_0x454339(_0x30a581)||this['set'](!0x1);},'mousemove'(_0x2a9088){this['set'](_0x454339(_0x2a9088));}}});return[_0x4931f6,EditorView['contentAttributes']['of'](_0x2e1857=>{var _0x4d0f01;return(null===(_0x4d0f01=_0x2e1857['plugin'](_0x4931f6))||void 0x0===_0x4d0f01?void 0x0:_0x4d0f01['isDown'])?showCrosshair:null;})];}const Outside='-10000px';class TooltipViewManager{constructor(_0x16a787,_0x2479e3,_0x9cd0b,_0x99727d){this['facet']=_0x2479e3,this['createTooltipView']=_0x9cd0b,this['removeTooltipView']=_0x99727d,this['input']=_0x16a787['state']['facet'](_0x2479e3),this['tooltips']=this['input']['filter'](t=>t);let _0x572aac=null;this['tooltipViews']=this['tooltips']['map'](t=>_0x572aac=_0x9cd0b(t,_0x572aac));}['update'](_0x1c2bc4,_0x72396b){var _0x56ea16;let _0x1c3c38=_0x1c2bc4['state']['facet'](this['facet']),_0x411a3b=_0x1c3c38['filter'](_0x512c95=>_0x512c95);if(_0x1c3c38===this['input']){for(let t of this['tooltipViews'])t['update']&&t['update'](_0x1c2bc4);return!0x1;}let _0x2dd77f=[],_0x32dcc9=_0x72396b?[]:null;for(let _0x317020=0x0;_0x317020<_0x411a3b['length'];_0x317020++){let _0x5f6c65=_0x411a3b[_0x317020],_0x48e7e5=-0x1;if(_0x5f6c65){for(let _0x3e5b8d=0x0;_0x3e5b8d<this['tooltips']['length'];_0x3e5b8d++){let _0x5a47ba=this['tooltips'][_0x3e5b8d];_0x5a47ba&&_0x5a47ba['create']==_0x5f6c65['create']&&(_0x48e7e5=_0x3e5b8d);}if(_0x48e7e5<0x0)_0x2dd77f[_0x317020]=this['createTooltipView'](_0x5f6c65,_0x317020?_0x2dd77f[_0x317020-0x1]:null),_0x32dcc9&&(_0x32dcc9[_0x317020]=!!_0x5f6c65['above']);else{let _0x1b1400=_0x2dd77f[_0x317020]=this['tooltipViews'][_0x48e7e5];_0x32dcc9&&(_0x32dcc9[_0x317020]=_0x72396b[_0x48e7e5]),_0x1b1400['update']&&_0x1b1400['update'](_0x1c2bc4);}}}for(let t of this['tooltipViews'])_0x2dd77f['indexOf'](t)<0x0&&(this['removeTooltipView'](t),null===(_0x56ea16=t['destroy'])||void 0x0===_0x56ea16||_0x56ea16['call'](t));return _0x72396b&&(_0x32dcc9['forEach']((_0x273273,_0x475426)=>_0x72396b[_0x475426]=_0x273273),_0x72396b['length']=_0x32dcc9['length']),this['input']=_0x1c3c38,this['tooltips']=_0x411a3b,this['tooltipViews']=_0x2dd77f,!0x0;}}function windowSpace(_0x2974bd){let _0x20519e=_0x2974bd['dom']['ownerDocument']['documentElement'];return{'top':0x0,'left':0x0,'bottom':_0x20519e['clientHeight'],'right':_0x20519e['clientWidth']};}const tooltipConfig=Facet['define']({'combine':_0x214c07=>{var _0x72d2f3,_0x1d1f07,_0x422de8;return{'position':browser['ios']?'absolute':(null===(_0x72d2f3=_0x214c07['find'](_0x425bd3=>_0x425bd3['position']))||void 0x0===_0x72d2f3?void 0x0:_0x72d2f3['position'])||'fixed','parent':(null===(_0x1d1f07=_0x214c07['find'](_0x225450=>_0x225450['parent']))||void 0x0===_0x1d1f07?void 0x0:_0x1d1f07['parent'])||null,'tooltipSpace':(null===(_0x422de8=_0x214c07['find'](_0x745ac9=>_0x745ac9['tooltipSpace']))||void 0x0===_0x422de8?void 0x0:_0x422de8['tooltipSpace'])||windowSpace};}}),knownHeight=new WeakMap(),tooltipPlugin=ViewPlugin['fromClass'](class{constructor(_0x49529c){this['view']=_0x49529c,this['above']=[],this['inView']=!0x0,this['madeAbsolute']=!0x1,this['lastTransaction']=0x0,this['measureTimeout']=-0x1;let _0x58832c=_0x49529c['state']['facet'](tooltipConfig);this['position']=_0x58832c['position'],this['parent']=_0x58832c['parent'],this['classes']=_0x49529c['themeClasses'],this['createContainer'](),this['measureReq']={'read':this['readMeasure']['bind'](this),'write':this['writeMeasure']['bind'](this),'key':this},this['resizeObserver']='function'==typeof ResizeObserver?new ResizeObserver(()=>this['measureSoon']()):null,this['manager']=new TooltipViewManager(_0x49529c,showTooltip,(t,_0x200fd0)=>this['createTooltip'](t,_0x200fd0),t=>{this['resizeObserver']&&this['resizeObserver']['unobserve'](t['dom']),t['dom']['remove']();}),this['above']=this['manager']['tooltips']['map'](t=>!!t['above']),this['intersectionObserver']='function'==typeof IntersectionObserver?new IntersectionObserver(_0x33a06d=>{Date['now']()>this['lastTransaction']-0x32&&_0x33a06d['length']>0x0&&_0x33a06d[_0x33a06d['length']-0x1]['intersectionRatio']<0x1&&this['measureSoon']();},{'threshold':[0x1]}):null,this['observeIntersection'](),_0x49529c['win']['addEventListener']('resize',this['measureSoon']=this['measureSoon']['bind'](this)),this['maybeMeasure']();}['createContainer'](){this['parent']?(this['container']=document['createElement']('div'),this['container']['style']['position']='relative',this['container']['className']=this['view']['themeClasses'],this['parent']['appendChild'](this['container'])):this['container']=this['view']['dom'];}['observeIntersection'](){if(this['intersectionObserver']){this['intersectionObserver']['disconnect']();for(let _0xc1b563 of this['manager']['tooltipViews'])this['intersectionObserver']['observe'](_0xc1b563['dom']);}}['measureSoon'](){this['measureTimeout']<0x0&&(this['measureTimeout']=setTimeout(()=>{this['measureTimeout']=-0x1,this['maybeMeasure']();},0x32));}['update'](_0x2ddafd){_0x2ddafd['transactions']['length']&&(this['lastTransaction']=Date['now']());let _0x15fc75=this['manager']['update'](_0x2ddafd,this['above']);_0x15fc75&&this['observeIntersection']();let _0xeb7caa=_0x15fc75||_0x2ddafd['geometryChanged'],_0x42365b=_0x2ddafd['state']['facet'](tooltipConfig);if(_0x42365b['position']!=this['position']&&!this['madeAbsolute']){this['position']=_0x42365b['position'];for(let t of this['manager']['tooltipViews'])t['dom']['style']['position']=this['position'];_0xeb7caa=!0x0;}if(_0x42365b['parent']!=this['parent']){this['parent']&&this['container']['remove'](),this['parent']=_0x42365b['parent'],this['createContainer']();for(let t of this['manager']['tooltipViews'])this['container']['appendChild'](t['dom']);_0xeb7caa=!0x0;}else this['parent']&&this['view']['themeClasses']!=this['classes']&&(this['classes']=this['container']['className']=this['view']['themeClasses']);_0xeb7caa&&this['maybeMeasure']();}['createTooltip'](_0x4674d4,_0x51b01c){let _0x55d828=_0x4674d4['create'](this['view']),_0x5b4418=_0x51b01c?_0x51b01c['dom']:null;if(_0x55d828['dom']['classList']['add']('cm-tooltip'),_0x4674d4['arrow']&&!_0x55d828['dom']['querySelector']('.cm-tooltip\x20>\x20.cm-tooltip-arrow')){let _0x3aea2c=document['createElement']('div');_0x3aea2c['className']='cm-tooltip-arrow',_0x55d828['dom']['appendChild'](_0x3aea2c);}return _0x55d828['dom']['style']['position']=this['position'],_0x55d828['dom']['style']['top']=Outside,_0x55d828['dom']['style']['left']='0px',this['container']['insertBefore'](_0x55d828['dom'],_0x5b4418),_0x55d828['mount']&&_0x55d828['mount'](this['view']),this['resizeObserver']&&this['resizeObserver']['observe'](_0x55d828['dom']),_0x55d828;}['destroy'](){var _0x1bf8c4,_0x35123a,_0x2ac800;this['view']['win']['removeEventListener']('resize',this['measureSoon']);for(let _0x305261 of this['manager']['tooltipViews'])_0x305261['dom']['remove'](),null===(_0x1bf8c4=_0x305261['destroy'])||void 0x0===_0x1bf8c4||_0x1bf8c4['call'](_0x305261);this['parent']&&this['container']['remove'](),null===(_0x35123a=this['resizeObserver'])||void 0x0===_0x35123a||_0x35123a['disconnect'](),null===(_0x2ac800=this['intersectionObserver'])||void 0x0===_0x2ac800||_0x2ac800['disconnect'](),clearTimeout(this['measureTimeout']);}['readMeasure'](){let _0x3f54d8=0x1,_0x2724c4=0x1,_0x26513e=!0x1;if('fixed'==this['position']&&this['manager']['tooltipViews']['length']){let {dom:_0x1a9ad5}=this['manager']['tooltipViews'][0x0];if(browser['gecko'])_0x26513e=_0x1a9ad5['offsetParent']!=this['container']['ownerDocument']['body'];else{if(_0x1a9ad5['style']['top']==Outside&&'0px'==_0x1a9ad5['style']['left']){let _0x2e5dcf=_0x1a9ad5['getBoundingClientRect']();_0x26513e=Math['abs'](_0x2e5dcf['top']+0x2710)>0x1||Math['abs'](_0x2e5dcf['left'])>0x1;}}}if(_0x26513e||'absolute'==this['position']){if(this['parent']){let _0x50d7a8=this['parent']['getBoundingClientRect']();_0x50d7a8['width']&&_0x50d7a8['height']&&(_0x3f54d8=_0x50d7a8['width']/this['parent']['offsetWidth'],_0x2724c4=_0x50d7a8['height']/this['parent']['offsetHeight']);}else({scaleX:_0x3f54d8,scaleY:_0x2724c4}=this['view']['viewState']);}let _0x5dbb0e=this['view']['scrollDOM']['getBoundingClientRect'](),_0x4e7d0f=getScrollMargins(this['view']);return{'visible':{'left':_0x5dbb0e['left']+_0x4e7d0f['left'],'top':_0x5dbb0e['top']+_0x4e7d0f['top'],'right':_0x5dbb0e['right']-_0x4e7d0f['right'],'bottom':_0x5dbb0e['bottom']-_0x4e7d0f['bottom']},'parent':this['parent']?this['container']['getBoundingClientRect']():this['view']['dom']['getBoundingClientRect'](),'pos':this['manager']['tooltips']['map']((t,_0x1a59d8)=>{let _0xf2ccf4=this['manager']['tooltipViews'][_0x1a59d8];return _0xf2ccf4['getCoords']?_0xf2ccf4['getCoords'](t['pos']):this['view']['coordsAtPos'](t['pos']);}),'size':this['manager']['tooltipViews']['map'](({dom:_0x1cd380})=>_0x1cd380['getBoundingClientRect']()),'space':this['view']['state']['facet'](tooltipConfig)['tooltipSpace'](this['view']),'scaleX':_0x3f54d8,'scaleY':_0x2724c4,'makeAbsolute':_0x26513e};}['writeMeasure'](_0x59385e){var _0xf2ceee;if(_0x59385e['makeAbsolute']){this['madeAbsolute']=!0x0,this['position']='absolute';for(let t of this['manager']['tooltipViews'])t['dom']['style']['position']='absolute';}let {visible:_0x2b2b64,space:_0x978a91,scaleX:_0x5c380d,scaleY:_0x2f50df}=_0x59385e,_0x113a88=[];for(let _0x176c1f=0x0;_0x176c1f<this['manager']['tooltips']['length'];_0x176c1f++){let _0x417528=this['manager']['tooltips'][_0x176c1f],_0x12cadc=this['manager']['tooltipViews'][_0x176c1f],{dom:_0x27ba15}=_0x12cadc,_0x27d2e1=_0x59385e['pos'][_0x176c1f],_0x16c78a=_0x59385e['size'][_0x176c1f];if(!_0x27d2e1||!0x1!==_0x417528['clip']&&(_0x27d2e1['bottom']<=Math['max'](_0x2b2b64['top'],_0x978a91['top'])||_0x27d2e1['top']>=Math['min'](_0x2b2b64['bottom'],_0x978a91['bottom'])||_0x27d2e1['right']<Math['max'](_0x2b2b64['left'],_0x978a91['left'])-0.1||_0x27d2e1['left']>Math['min'](_0x2b2b64['right'],_0x978a91['right'])+0.1)){_0x27ba15['style']['top']=Outside;continue;}let _0x318a65=_0x417528['arrow']?_0x12cadc['dom']['querySelector']('.cm-tooltip-arrow'):null,_0x139c74=_0x318a65?0x7:0x0,_0x577bbe=_0x16c78a['right']-_0x16c78a['left'],_0x54e7dc=null!==(_0xf2ceee=knownHeight['get'](_0x12cadc))&&void 0x0!==_0xf2ceee?_0xf2ceee:_0x16c78a['bottom']-_0x16c78a['top'],_0x24f7f0=_0x12cadc['offset']||noOffset,_0x1b435e=this['view']['textDirection']==Direction['LTR'],_0x4664c3=_0x16c78a['width']>_0x978a91['right']-_0x978a91['left']?_0x1b435e?_0x978a91['left']:_0x978a91['right']-_0x16c78a['width']:_0x1b435e?Math['max'](_0x978a91['left'],Math['min'](_0x27d2e1['left']-(_0x318a65?0xe:0x0)+_0x24f7f0['x'],_0x978a91['right']-_0x577bbe)):Math['min'](Math['max'](_0x978a91['left'],_0x27d2e1['left']-_0x577bbe+(_0x318a65?0xe:0x0)-_0x24f7f0['x']),_0x978a91['right']-_0x577bbe),_0xd93baa=this['above'][_0x176c1f];!_0x417528['strictSide']&&(_0xd93baa?_0x27d2e1['top']-_0x54e7dc-_0x139c74-_0x24f7f0['y']<_0x978a91['top']:_0x27d2e1['bottom']+_0x54e7dc+_0x139c74+_0x24f7f0['y']>_0x978a91['bottom'])&&_0xd93baa==_0x978a91['bottom']-_0x27d2e1['bottom']>_0x27d2e1['top']-_0x978a91['top']&&(_0xd93baa=this['above'][_0x176c1f]=!_0xd93baa);let _0x27e260=(_0xd93baa?_0x27d2e1['top']-_0x978a91['top']:_0x978a91['bottom']-_0x27d2e1['bottom'])-_0x139c74;if(_0x27e260<_0x54e7dc&&!0x1!==_0x12cadc['resize']){if(_0x27e260<this['view']['defaultLineHeight']){_0x27ba15['style']['top']=Outside;continue;}knownHeight['set'](_0x12cadc,_0x54e7dc),_0x27ba15['style']['height']=(_0x54e7dc=_0x27e260)/_0x2f50df+'px';}else _0x27ba15['style']['height']&&(_0x27ba15['style']['height']='');let _0x895bc1=_0xd93baa?_0x27d2e1['top']-_0x54e7dc-_0x139c74-_0x24f7f0['y']:_0x27d2e1['bottom']+_0x139c74+_0x24f7f0['y'],_0xe3d896=_0x4664c3+_0x577bbe;if(!0x0!==_0x12cadc['overlap']){for(let _0x13ce5b of _0x113a88)_0x13ce5b['left']<_0xe3d896&&_0x13ce5b['right']>_0x4664c3&&_0x13ce5b['top']<_0x895bc1+_0x54e7dc&&_0x13ce5b['bottom']>_0x895bc1&&(_0x895bc1=_0xd93baa?_0x13ce5b['top']-_0x54e7dc-0x2-_0x139c74:_0x13ce5b['bottom']+_0x139c74+0x2);}if('absolute'==this['position']?(_0x27ba15['style']['top']=(_0x895bc1-_0x59385e['parent']['top'])/_0x2f50df+'px',setLeftStyle(_0x27ba15,(_0x4664c3-_0x59385e['parent']['left'])/_0x5c380d)):(_0x27ba15['style']['top']=_0x895bc1/_0x2f50df+'px',setLeftStyle(_0x27ba15,_0x4664c3/_0x5c380d)),_0x318a65){let _0x49786c=_0x27d2e1['left']+(_0x1b435e?_0x24f7f0['x']:-_0x24f7f0['x'])-(_0x4664c3+0xe-0x7);_0x318a65['style']['left']=_0x49786c/_0x5c380d+'px';}!0x0!==_0x12cadc['overlap']&&_0x113a88['push']({'left':_0x4664c3,'top':_0x895bc1,'right':_0xe3d896,'bottom':_0x895bc1+_0x54e7dc}),_0x27ba15['classList']['toggle']('cm-tooltip-above',_0xd93baa),_0x27ba15['classList']['toggle']('cm-tooltip-below',!_0xd93baa),_0x12cadc['positioned']&&_0x12cadc['positioned'](_0x59385e['space']);}}['maybeMeasure'](){if(this['manager']['tooltips']['length']&&(this['view']['inView']&&this['view']['requestMeasure'](this['measureReq']),this['inView']!=this['view']['inView']&&(this['inView']=this['view']['inView'],!this['inView']))){for(let _0x4a5e8d of this['manager']['tooltipViews'])_0x4a5e8d['dom']['style']['top']=Outside;}}},{'eventObservers':{'scroll'(){this['maybeMeasure']();}}});function setLeftStyle(_0x57292e,_0x5892ca){let _0x14bbcd=parseInt(_0x57292e['style']['left'],0xa);(isNaN(_0x14bbcd)||Math['abs'](_0x5892ca-_0x14bbcd)>0x1)&&(_0x57292e['style']['left']=_0x5892ca+'px');}const baseTheme$3=EditorView['baseTheme']({'.cm-tooltip':{'zIndex':0x1f4,'boxSizing':'border-box'},'&light\x20.cm-tooltip':{'border':'1px\x20solid\x20#bbb','backgroundColor':'#f5f5f5'},'&light\x20.cm-tooltip-section:not(:first-child)':{'borderTop':'1px\x20solid\x20#bbb'},'&dark\x20.cm-tooltip':{'backgroundColor':'#333338','color':'white'},'.cm-tooltip-arrow':{'height':'7px','width':'14px','position':'absolute','zIndex':-0x1,'overflow':'hidden','&:before,\x20&:after':{'content':'\x27\x27','position':'absolute','width':0x0,'height':0x0,'borderLeft':'7px\x20solid\x20transparent','borderRight':'7px\x20solid\x20transparent'},'.cm-tooltip-above\x20&':{'bottom':'-7px','&:before':{'borderTop':'7px\x20solid\x20#bbb'},'&:after':{'borderTop':'7px\x20solid\x20#f5f5f5','bottom':'1px'}},'.cm-tooltip-below\x20&':{'top':'-7px','&:before':{'borderBottom':'7px\x20solid\x20#bbb'},'&:after':{'borderBottom':'7px\x20solid\x20#f5f5f5','top':'1px'}}},'&dark\x20.cm-tooltip\x20.cm-tooltip-arrow':{'&:before':{'borderTopColor':'#333338','borderBottomColor':'#333338'},'&:after':{'borderTopColor':'transparent','borderBottomColor':'transparent'}}}),noOffset={'x':0x0,'y':0x0},showTooltip=Facet['define']({'enables':[tooltipPlugin,baseTheme$3]});function getTooltip(_0x7f6940,_0x408430){let _0x325ba2=_0x7f6940['plugin'](tooltipPlugin);if(!_0x325ba2)return null;let _0x2ad070=_0x325ba2['manager']['tooltips']['indexOf'](_0x408430);return _0x2ad070<0x0?null:_0x325ba2['manager']['tooltipViews'][_0x2ad070];}class GutterMarker extends RangeValue{['compare'](_0x53c7b3){return this==_0x53c7b3||this['constructor']==_0x53c7b3['constructor']&&this['eq'](_0x53c7b3);}['eq'](_0x2d1716){return!0x1;}['destroy'](_0x1a4462){}}GutterMarker['prototype']['elementClass']='',GutterMarker['prototype']['toDOM']=void 0x0,GutterMarker['prototype']['mapMode']=MapMode['TrackBefore'],GutterMarker['prototype']['startSide']=GutterMarker['prototype']['endSide']=-0x1,GutterMarker['prototype']['point']=!0x0;const gutterLineClass=Facet['define'](),gutterWidgetClass=Facet['define'](),defaults$1={'class':'','renderEmptyElements':!0x1,'elementStyle':'','markers':()=>RangeSet['empty'],'lineMarker':()=>null,'widgetMarker':()=>null,'lineMarkerChange':null,'initialSpacer':null,'updateSpacer':null,'domEventHandlers':{},'side':'before'},activeGutters=Facet['define']();function gutter(_0x55b808){return[gutters(),activeGutters['of']({...defaults$1,..._0x55b808})];}const unfixGutters=Facet['define']({'combine':_0x464c32=>_0x464c32['some'](_0x247ccc=>_0x247ccc)});function gutters(_0x47bab3){return[gutterView];}const gutterView=ViewPlugin['fromClass'](class{constructor(_0x55283b){this['view']=_0x55283b,this['domAfter']=null,this['prevViewport']=_0x55283b['viewport'],this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutters\x20cm-gutters-before',this['dom']['setAttribute']('aria-hidden','true'),this['dom']['style']['minHeight']=this['view']['contentHeight']/this['view']['scaleY']+'px',this['gutters']=_0x55283b['state']['facet'](activeGutters)['map'](_0x200e7f=>new SingleGutterView(_0x55283b,_0x200e7f)),this['fixed']=!_0x55283b['state']['facet'](unfixGutters);for(let _0x6d308b of this['gutters'])'after'==_0x6d308b['config']['side']?this['getDOMAfter']()['appendChild'](_0x6d308b['dom']):this['dom']['appendChild'](_0x6d308b['dom']);this['fixed']&&(this['dom']['style']['position']='sticky'),this['syncGutters'](!0x1),_0x55283b['scrollDOM']['insertBefore'](this['dom'],_0x55283b['contentDOM']);}['getDOMAfter'](){return this['domAfter']||(this['domAfter']=document['createElement']('div'),this['domAfter']['className']='cm-gutters\x20cm-gutters-after',this['domAfter']['setAttribute']('aria-hidden','true'),this['domAfter']['style']['minHeight']=this['view']['contentHeight']/this['view']['scaleY']+'px',this['domAfter']['style']['position']=this['fixed']?'sticky':'',this['view']['scrollDOM']['appendChild'](this['domAfter'])),this['domAfter'];}['update'](_0x5631cc){if(this['updateGutters'](_0x5631cc)){let _0x42e3d2=this['prevViewport'],_0x1e5ce1=_0x5631cc['view']['viewport'],_0x140737=Math['min'](_0x42e3d2['to'],_0x1e5ce1['to'])-Math['max'](_0x42e3d2['from'],_0x1e5ce1['from']);this['syncGutters'](_0x140737<0.8*(_0x1e5ce1['to']-_0x1e5ce1['from']));}if(_0x5631cc['geometryChanged']){let _0x5e7451=this['view']['contentHeight']/this['view']['scaleY']+'px';this['dom']['style']['minHeight']=_0x5e7451,this['domAfter']&&(this['domAfter']['style']['minHeight']=_0x5e7451);}this['view']['state']['facet'](unfixGutters)!=!this['fixed']&&(this['fixed']=!this['fixed'],this['dom']['style']['position']=this['fixed']?'sticky':'',this['domAfter']&&(this['domAfter']['style']['position']=this['fixed']?'sticky':'')),this['prevViewport']=_0x5631cc['view']['viewport'];}['syncGutters'](_0x4815e6){let _0x11a463=this['dom']['nextSibling'];_0x4815e6&&(this['dom']['remove'](),this['domAfter']&&this['domAfter']['remove']());let _0x36a9f1=RangeSet['iter'](this['view']['state']['facet'](gutterLineClass),this['view']['viewport']['from']),_0x910bf2=[],_0x4c4fc1=this['gutters']['map'](_0x1b9b73=>new UpdateContext(_0x1b9b73,this['view']['viewport'],-this['view']['documentPadding']['top']));for(let _0x31a7a1 of this['view']['viewportLineBlocks'])if(_0x910bf2['length']&&(_0x910bf2=[]),Array['isArray'](_0x31a7a1['type'])){let _0x245541=!0x0;for(let _0x13d32a of _0x31a7a1['type'])if(_0x13d32a['type']==BlockType['Text']&&_0x245541){advanceCursor(_0x36a9f1,_0x910bf2,_0x13d32a['from']);for(let _0x3e27d0 of _0x4c4fc1)_0x3e27d0['line'](this['view'],_0x13d32a,_0x910bf2);_0x245541=!0x1;}else{if(_0x13d32a['widget']){for(let _0x10da55 of _0x4c4fc1)_0x10da55['widget'](this['view'],_0x13d32a);}}}else{if(_0x31a7a1['type']==BlockType['Text']){advanceCursor(_0x36a9f1,_0x910bf2,_0x31a7a1['from']);for(let _0x2111a9 of _0x4c4fc1)_0x2111a9['line'](this['view'],_0x31a7a1,_0x910bf2);}else{if(_0x31a7a1['widget']){for(let _0x178c09 of _0x4c4fc1)_0x178c09['widget'](this['view'],_0x31a7a1);}}}for(let _0x1f360c of _0x4c4fc1)_0x1f360c['finish']();_0x4815e6&&(this['view']['scrollDOM']['insertBefore'](this['dom'],_0x11a463),this['domAfter']&&this['view']['scrollDOM']['appendChild'](this['domAfter']));}['updateGutters'](_0x499c52){let _0x4ad13d=_0x499c52['startState']['facet'](activeGutters),_0x43bb99=_0x499c52['state']['facet'](activeGutters),_0x2aae57=_0x499c52['docChanged']||_0x499c52['heightChanged']||_0x499c52['viewportChanged']||!RangeSet['eq'](_0x499c52['startState']['facet'](gutterLineClass),_0x499c52['state']['facet'](gutterLineClass),_0x499c52['view']['viewport']['from'],_0x499c52['view']['viewport']['to']);if(_0x4ad13d==_0x43bb99){for(let _0x26d8da of this['gutters'])_0x26d8da['update'](_0x499c52)&&(_0x2aae57=!0x0);}else{_0x2aae57=!0x0;let _0x11e51d=[];for(let _0x1b638f of _0x43bb99){let _0x3c095b=_0x4ad13d['indexOf'](_0x1b638f);_0x3c095b<0x0?_0x11e51d['push'](new SingleGutterView(this['view'],_0x1b638f)):(this['gutters'][_0x3c095b]['update'](_0x499c52),_0x11e51d['push'](this['gutters'][_0x3c095b]));}for(let _0x2b1f7b of this['gutters'])_0x2b1f7b['dom']['remove'](),_0x11e51d['indexOf'](_0x2b1f7b)<0x0&&_0x2b1f7b['destroy']();for(let _0xd3dc1d of _0x11e51d)'after'==_0xd3dc1d['config']['side']?this['getDOMAfter']()['appendChild'](_0xd3dc1d['dom']):this['dom']['appendChild'](_0xd3dc1d['dom']);this['gutters']=_0x11e51d;}return _0x2aae57;}['destroy'](){for(let _0x1ec906 of this['gutters'])_0x1ec906['destroy']();this['dom']['remove'](),this['domAfter']&&this['domAfter']['remove']();}},{'provide':_0x250e41=>EditorView['scrollMargins']['of'](_0x303b31=>{let _0x5ddea9=_0x303b31['plugin'](_0x250e41);if(!_0x5ddea9||0x0==_0x5ddea9['gutters']['length']||!_0x5ddea9['fixed'])return null;let _0x27a1b8=_0x5ddea9['dom']['offsetWidth']*_0x303b31['scaleX'],_0x26a06f=_0x5ddea9['domAfter']?_0x5ddea9['domAfter']['offsetWidth']*_0x303b31['scaleX']:0x0;return _0x303b31['textDirection']==Direction['LTR']?{'left':_0x27a1b8,'right':_0x26a06f}:{'right':_0x27a1b8,'left':_0x26a06f};})});function asArray$1(_0x4d17f5){return Array['isArray'](_0x4d17f5)?_0x4d17f5:[_0x4d17f5];}function advanceCursor(_0xa285f5,_0x4f4719,_0x5b87ba){for(;_0xa285f5['value']&&_0xa285f5['from']<=_0x5b87ba;)_0xa285f5['from']==_0x5b87ba&&_0x4f4719['push'](_0xa285f5['value']),_0xa285f5['next']();}class UpdateContext{constructor(_0x367f57,_0x8f1470,_0x13c7cb){this['gutter']=_0x367f57,this['height']=_0x13c7cb,this['i']=0x0,this['cursor']=RangeSet['iter'](_0x367f57['markers'],_0x8f1470['from']);}['addElement'](_0x531c85,_0x1e1300,_0x2d8f1c){let {gutter:_0x5312a8}=this,_0x25c059=(_0x1e1300['top']-this['height'])/_0x531c85['scaleY'],_0x2cad90=_0x1e1300['height']/_0x531c85['scaleY'];if(this['i']==_0x5312a8['elements']['length']){let _0x305834=new GutterElement(_0x531c85,_0x2cad90,_0x25c059,_0x2d8f1c);_0x5312a8['elements']['push'](_0x305834),_0x5312a8['dom']['appendChild'](_0x305834['dom']);}else _0x5312a8['elements'][this['i']]['update'](_0x531c85,_0x2cad90,_0x25c059,_0x2d8f1c);this['height']=_0x1e1300['bottom'],this['i']++;}['line'](_0x17bcd8,_0x964b,_0x4bc22a){let _0x257ec2=[];advanceCursor(this['cursor'],_0x257ec2,_0x964b['from']),_0x4bc22a['length']&&(_0x257ec2=_0x257ec2['concat'](_0x4bc22a));let _0x3e51ec=this['gutter']['config']['lineMarker'](_0x17bcd8,_0x964b,_0x257ec2);_0x3e51ec&&_0x257ec2['unshift'](_0x3e51ec);let _0x4fda3e=this['gutter'];(0x0!=_0x257ec2['length']||_0x4fda3e['config']['renderEmptyElements'])&&this['addElement'](_0x17bcd8,_0x964b,_0x257ec2);}['widget'](_0x46bb35,_0x1d213e){let _0x1b23e1=this['gutter']['config']['widgetMarker'](_0x46bb35,_0x1d213e['widget'],_0x1d213e),_0x41469c=_0x1b23e1?[_0x1b23e1]:null;for(let _0x446f0f of _0x46bb35['state']['facet'](gutterWidgetClass)){let _0x16f34c=_0x446f0f(_0x46bb35,_0x1d213e['widget'],_0x1d213e);_0x16f34c&&(_0x41469c||(_0x41469c=[]))['push'](_0x16f34c);}_0x41469c&&this['addElement'](_0x46bb35,_0x1d213e,_0x41469c);}['finish'](){let _0x3d8756=this['gutter'];for(;_0x3d8756['elements']['length']>this['i'];){let _0x22a35d=_0x3d8756['elements']['pop']();_0x3d8756['dom']['removeChild'](_0x22a35d['dom']),_0x22a35d['destroy']();}}}class SingleGutterView{constructor(_0x190259,_0x3e82df){this['view']=_0x190259,this['config']=_0x3e82df,this['elements']=[],this['spacer']=null,this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutter'+(this['config']['class']?'\x20'+this['config']['class']:'');for(let _0x4fac6d in _0x3e82df['domEventHandlers'])this['dom']['addEventListener'](_0x4fac6d,_0x47fb14=>{let _0x330c37,_0x144ea8=_0x47fb14['target'];if(_0x144ea8!=this['dom']&&this['dom']['contains'](_0x144ea8)){for(;_0x144ea8['parentNode']!=this['dom'];)_0x144ea8=_0x144ea8['parentNode'];let _0xc983de=_0x144ea8['getBoundingClientRect']();_0x330c37=(_0xc983de['top']+_0xc983de['bottom'])/0x2;}else _0x330c37=_0x47fb14['clientY'];let _0x3ec5b0=_0x190259['lineBlockAtHeight'](_0x330c37-_0x190259['documentTop']);_0x3e82df['domEventHandlers'][_0x4fac6d](_0x190259,_0x3ec5b0,_0x47fb14)&&_0x47fb14['preventDefault']();});this['markers']=asArray$1(_0x3e82df['markers'](_0x190259)),_0x3e82df['initialSpacer']&&(this['spacer']=new GutterElement(_0x190259,0x0,0x0,[_0x3e82df['initialSpacer'](_0x190259)]),this['dom']['appendChild'](this['spacer']['dom']),this['spacer']['dom']['style']['cssText']+='visibility:\x20hidden;\x20pointer-events:\x20none');}['update'](_0x444d53){let _0x21194c=this['markers'];if(this['markers']=asArray$1(this['config']['markers'](_0x444d53['view'])),this['spacer']&&this['config']['updateSpacer']){let _0xbac7f=this['config']['updateSpacer'](this['spacer']['markers'][0x0],_0x444d53);_0xbac7f!=this['spacer']['markers'][0x0]&&this['spacer']['update'](_0x444d53['view'],0x0,0x0,[_0xbac7f]);}let _0x29cf1f=_0x444d53['view']['viewport'];return!RangeSet['eq'](this['markers'],_0x21194c,_0x29cf1f['from'],_0x29cf1f['to'])||!!this['config']['lineMarkerChange']&&this['config']['lineMarkerChange'](_0x444d53);}['destroy'](){for(let _0x51779b of this['elements'])_0x51779b['destroy']();}}class GutterElement{constructor(_0x3ab56d,_0x2a8b1f,_0x394068,_0x11ccd2){this['height']=-0x1,this['above']=0x0,this['markers']=[],this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutterElement',this['update'](_0x3ab56d,_0x2a8b1f,_0x394068,_0x11ccd2);}['update'](_0x181da6,_0x2fd0a3,_0xb3cb96,_0x26a3fa){this['height']!=_0x2fd0a3&&(this['height']=_0x2fd0a3,this['dom']['style']['height']=_0x2fd0a3+'px'),this['above']!=_0xb3cb96&&(this['dom']['style']['marginTop']=(this['above']=_0xb3cb96)?_0xb3cb96+'px':''),sameMarkers(this['markers'],_0x26a3fa)||this['setMarkers'](_0x181da6,_0x26a3fa);}['setMarkers'](_0x4539c2,_0x940aa4){let _0x4d7750='cm-gutterElement',_0x55c672=this['dom']['firstChild'];for(let _0x491a94=0x0,_0x25ab1c=0x0;;){let _0x51f9b1=_0x25ab1c,_0x538f6d=_0x491a94<_0x940aa4['length']?_0x940aa4[_0x491a94++]:null,_0x39e276=!0x1;if(_0x538f6d){let _0x1cc61d=_0x538f6d['elementClass'];_0x1cc61d&&(_0x4d7750+='\x20'+_0x1cc61d);for(let _0x369d74=_0x25ab1c;_0x369d74<this['markers']['length'];_0x369d74++)if(this['markers'][_0x369d74]['compare'](_0x538f6d)){_0x51f9b1=_0x369d74,_0x39e276=!0x0;break;}}else _0x51f9b1=this['markers']['length'];for(;_0x25ab1c<_0x51f9b1;){let _0x2b8a0a=this['markers'][_0x25ab1c++];if(_0x2b8a0a['toDOM']){_0x2b8a0a['destroy'](_0x55c672);let _0x28da3c=_0x55c672['nextSibling'];_0x55c672['remove'](),_0x55c672=_0x28da3c;}}if(!_0x538f6d)break;_0x538f6d['toDOM']&&(_0x39e276?_0x55c672=_0x55c672['nextSibling']:this['dom']['insertBefore'](_0x538f6d['toDOM'](_0x4539c2),_0x55c672)),_0x39e276&&_0x25ab1c++;}this['dom']['className']=_0x4d7750,this['markers']=_0x940aa4;}['destroy'](){this['setMarkers'](null,[]);}}function sameMarkers(_0x101be8,_0x89ac51){if(_0x101be8['length']!=_0x89ac51['length'])return!0x1;for(let _0x1a0469=0x0;_0x1a0469<_0x101be8['length'];_0x1a0469++)if(!_0x101be8[_0x1a0469]['compare'](_0x89ac51[_0x1a0469]))return!0x1;return!0x0;}const lineNumberMarkers=Facet['define'](),lineNumberWidgetMarker=Facet['define'](),lineNumberConfig=Facet['define']({'combine':_0x2a5c4e=>combineConfig(_0x2a5c4e,{'formatNumber':String,'domEventHandlers':{}},{'domEventHandlers'(_0x17d31e,_0x52047f){let _0x3e97ea=Object['assign']({},_0x17d31e);for(let _0xd29826 in _0x52047f){let _0x5c41aa=_0x3e97ea[_0xd29826],_0x2767d4=_0x52047f[_0xd29826];_0x3e97ea[_0xd29826]=_0x5c41aa?(_0x2a3215,_0xe82186,_0x3a5c91)=>_0x5c41aa(_0x2a3215,_0xe82186,_0x3a5c91)||_0x2767d4(_0x2a3215,_0xe82186,_0x3a5c91):_0x2767d4;}return _0x3e97ea;}})});class NumberMarker extends GutterMarker{constructor(_0x3ff546){super(),this['number']=_0x3ff546;}['eq'](_0x1401dd){return this['number']==_0x1401dd['number'];}['toDOM'](){return document['createTextNode'](this['number']);}}function formatNumber(_0x3d0fdc,_0x520cee){return _0x3d0fdc['state']['facet'](lineNumberConfig)['formatNumber'](_0x520cee,_0x3d0fdc['state']);}const lineNumberGutter=activeGutters['compute']([lineNumberConfig],_0x317030=>({'class':'cm-lineNumbers','renderEmptyElements':!0x1,'markers':_0x563353=>_0x563353['state']['facet'](lineNumberMarkers),'lineMarker':(_0xf5f4d6,_0x245e8e,_0x4d4d2d)=>_0x4d4d2d['some'](_0x28b649=>_0x28b649['toDOM'])?null:new NumberMarker(formatNumber(_0xf5f4d6,_0xf5f4d6['state']['doc']['lineAt'](_0x245e8e['from'])['number'])),'widgetMarker':(_0x56dbe0,_0x685a7,_0x26ac0c)=>{for(let _0x30d48c of _0x56dbe0['state']['facet'](lineNumberWidgetMarker)){let _0x491d93=_0x30d48c(_0x56dbe0,_0x685a7,_0x26ac0c);if(_0x491d93)return _0x491d93;}return null;},'lineMarkerChange':_0x2c63ea=>_0x2c63ea['startState']['facet'](lineNumberConfig)!=_0x2c63ea['state']['facet'](lineNumberConfig),'initialSpacer':_0x3589a5=>new NumberMarker(formatNumber(_0x3589a5,maxLineNumber(_0x3589a5['state']['doc']['lines']))),'updateSpacer'(_0x7db9c6,_0x6da0e3){let _0x325754=formatNumber(_0x6da0e3['view'],maxLineNumber(_0x6da0e3['view']['state']['doc']['lines']));return _0x325754==_0x7db9c6['number']?_0x7db9c6:new NumberMarker(_0x325754);},'domEventHandlers':_0x317030['facet'](lineNumberConfig)['domEventHandlers'],'side':'before'}));function lineNumbers(_0x232f60={}){return[lineNumberConfig['of'](_0x232f60),gutters(),lineNumberGutter];}function maxLineNumber(_0x142a76){let _0x28d112=0x9;for(;_0x28d112<_0x142a76;)_0x28d112=0xa*_0x28d112+0x9;return _0x28d112;}const activeLineGutterMarker=new class extends GutterMarker{constructor(){super(...arguments),this['elementClass']='cm-activeLineGutter';}}(),activeLineGutterHighlighter=gutterLineClass['compute'](['selection'],_0x58aa82=>{let _0x1216bd=[],_0x5465b0=-0x1;for(let _0x16cb9f of _0x58aa82['selection']['ranges']){let _0x5e8966=_0x58aa82['doc']['lineAt'](_0x16cb9f['head'])['from'];_0x5e8966>_0x5465b0&&(_0x5465b0=_0x5e8966,_0x1216bd['push'](activeLineGutterMarker['range'](_0x5e8966)));}return RangeSet['of'](_0x1216bd);});function highlightActiveLineGutter(){return activeLineGutterHighlighter;}const DefaultBufferLength=0x400;let nextPropID=0x0;class Range{constructor(_0x3e71b7,_0x2e15b2){this['from']=_0x3e71b7,this['to']=_0x2e15b2;}}class NodeProp{constructor(_0x3d907d={}){this['id']=nextPropID++,this['perNode']=!!_0x3d907d['perNode'],this['deserialize']=_0x3d907d['deserialize']||(()=>{throw new Error('This\x20node\x20type\x20doesn\x27t\x20define\x20a\x20deserialize\x20function');});}['add'](_0x5698b3){if(this['perNode'])throw new RangeError('Can\x27t\x20add\x20per-node\x20props\x20to\x20node\x20types');return'function'!=typeof _0x5698b3&&(_0x5698b3=NodeType['match'](_0x5698b3)),_0x578414=>{let _0x4a275b=_0x5698b3(_0x578414);return void 0x0===_0x4a275b?null:[this,_0x4a275b];};}}NodeProp['closedBy']=new NodeProp({'deserialize':_0x4adf93=>_0x4adf93['split']('\x20')}),NodeProp['openedBy']=new NodeProp({'deserialize':_0x29f6e7=>_0x29f6e7['split']('\x20')}),NodeProp['group']=new NodeProp({'deserialize':_0x22332d=>_0x22332d['split']('\x20')}),NodeProp['isolate']=new NodeProp({'deserialize':_0x475154=>{if(_0x475154&&'rtl'!=_0x475154&&'ltr'!=_0x475154&&'auto'!=_0x475154)throw new RangeError('Invalid\x20value\x20for\x20isolate:\x20'+_0x475154);return _0x475154||'auto';}}),NodeProp['contextHash']=new NodeProp({'perNode':!0x0}),NodeProp['lookAhead']=new NodeProp({'perNode':!0x0}),NodeProp['mounted']=new NodeProp({'perNode':!0x0});class MountedTree{constructor(_0x5c900f,_0x2b2606,_0x3d3d90){this['tree']=_0x5c900f,this['overlay']=_0x2b2606,this['parser']=_0x3d3d90;}static['get'](_0x457738){return _0x457738&&_0x457738['props']&&_0x457738['props'][NodeProp['mounted']['id']];}}const noProps=Object['create'](null);class NodeType{constructor(_0x518452,_0x5c7c91,_0x111db7,_0x2e6f82=0x0){this['name']=_0x518452,this['props']=_0x5c7c91,this['id']=_0x111db7,this['flags']=_0x2e6f82;}static['define'](_0x40faa8){let _0x547a09=_0x40faa8['props']&&_0x40faa8['props']['length']?Object['create'](null):noProps,_0x272ed7=(_0x40faa8['top']?0x1:0x0)|(_0x40faa8['skipped']?0x2:0x0)|(_0x40faa8['error']?0x4:0x0)|(null==_0x40faa8['name']?0x8:0x0),_0x5ed093=new NodeType(_0x40faa8['name']||'',_0x547a09,_0x40faa8['id'],_0x272ed7);if(_0x40faa8['props']){for(let _0x4e47bf of _0x40faa8['props'])if(Array['isArray'](_0x4e47bf)||(_0x4e47bf=_0x4e47bf(_0x5ed093)),_0x4e47bf){if(_0x4e47bf[0x0]['perNode'])throw new RangeError('Can\x27t\x20store\x20a\x20per-node\x20prop\x20on\x20a\x20node\x20type');_0x547a09[_0x4e47bf[0x0]['id']]=_0x4e47bf[0x1];}}return _0x5ed093;}['prop'](_0x9f4d8b){return this['props'][_0x9f4d8b['id']];}get['isTop'](){return(0x1&this['flags'])>0x0;}get['isSkipped'](){return(0x2&this['flags'])>0x0;}get['isError'](){return(0x4&this['flags'])>0x0;}get['isAnonymous'](){return(0x8&this['flags'])>0x0;}['is'](_0x446d9e){if('string'==typeof _0x446d9e){if(this['name']==_0x446d9e)return!0x0;let _0x25e602=this['prop'](NodeProp['group']);return!!_0x25e602&&_0x25e602['indexOf'](_0x446d9e)>-0x1;}return this['id']==_0x446d9e;}static['match'](_0x516577){let _0x424a13=Object['create'](null);for(let _0x4ac7b5 in _0x516577)for(let _0x3d790d of _0x4ac7b5['split']('\x20'))_0x424a13[_0x3d790d]=_0x516577[_0x4ac7b5];return _0x4184f2=>{for(let _0x2bb1c3=_0x4184f2['prop'](NodeProp['group']),_0x20fa20=-0x1;_0x20fa20<(_0x2bb1c3?_0x2bb1c3['length']:0x0);_0x20fa20++){let _0x5295ae=_0x424a13[_0x20fa20<0x0?_0x4184f2['name']:_0x2bb1c3[_0x20fa20]];if(_0x5295ae)return _0x5295ae;}};}}NodeType['none']=new NodeType('',Object['create'](null),0x0,0x8);class NodeSet{constructor(_0x24b3bb){this['types']=_0x24b3bb;for(let _0x25b93c=0x0;_0x25b93c<_0x24b3bb['length'];_0x25b93c++)if(_0x24b3bb[_0x25b93c]['id']!=_0x25b93c)throw new RangeError('Node\x20type\x20ids\x20should\x20correspond\x20to\x20array\x20positions\x20when\x20creating\x20a\x20node\x20set');}['extend'](..._0x2e9dd4){let _0x59841c=[];for(let _0x4fce48 of this['types']){let _0x447750=null;for(let _0xd6c069 of _0x2e9dd4){let _0x51c53c=_0xd6c069(_0x4fce48);_0x51c53c&&(_0x447750||(_0x447750=Object['assign']({},_0x4fce48['props'])),_0x447750[_0x51c53c[0x0]['id']]=_0x51c53c[0x1]);}_0x59841c['push'](_0x447750?new NodeType(_0x4fce48['name'],_0x447750,_0x4fce48['id'],_0x4fce48['flags']):_0x4fce48);}return new NodeSet(_0x59841c);}}const CachedNode=new WeakMap(),CachedInnerNode=new WeakMap();var IterMode;!function(_0x4cdd8f){_0x4cdd8f[_0x4cdd8f['ExcludeBuffers']=0x1]='ExcludeBuffers',_0x4cdd8f[_0x4cdd8f['IncludeAnonymous']=0x2]='IncludeAnonymous',_0x4cdd8f[_0x4cdd8f['IgnoreMounts']=0x4]='IgnoreMounts',_0x4cdd8f[_0x4cdd8f['IgnoreOverlays']=0x8]='IgnoreOverlays';}(IterMode||(IterMode={}));class Tree{constructor(_0x529f6f,_0x22ca7b,_0x5a7f2d,_0x5b2a8b,_0x4e7606){if(this['type']=_0x529f6f,this['children']=_0x22ca7b,this['positions']=_0x5a7f2d,this['length']=_0x5b2a8b,this['props']=null,_0x4e7606&&_0x4e7606['length']){this['props']=Object['create'](null);for(let [_0x351d4e,_0x355f1e]of _0x4e7606)this['props']['number'==typeof _0x351d4e?_0x351d4e:_0x351d4e['id']]=_0x355f1e;}}['toString'](){let _0x1e4ffa=MountedTree['get'](this);if(_0x1e4ffa&&!_0x1e4ffa['overlay'])return _0x1e4ffa['tree']['toString']();let _0x5a0e0a='';for(let _0xd788f1 of this['children']){let _0x1f50e7=_0xd788f1['toString']();_0x1f50e7&&(_0x5a0e0a&&(_0x5a0e0a+=','),_0x5a0e0a+=_0x1f50e7);}return this['type']['name']?(/\W/['test'](this['type']['name'])&&!this['type']['isError']?JSON['stringify'](this['type']['name']):this['type']['name'])+(_0x5a0e0a['length']?'('+_0x5a0e0a+')':''):_0x5a0e0a;}['cursor'](_0x4a039c=0x0){return new TreeCursor(this['topNode'],_0x4a039c);}['cursorAt'](_0x83c03c,_0x32cbd6=0x0,_0x58d4d0=0x0){let _0x24f995=CachedNode['get'](this)||this['topNode'],_0x4a1d2c=new TreeCursor(_0x24f995);return _0x4a1d2c['moveTo'](_0x83c03c,_0x32cbd6),CachedNode['set'](this,_0x4a1d2c['_tree']),_0x4a1d2c;}get['topNode'](){return new TreeNode(this,0x0,0x0,null);}['resolve'](_0x5cb8b3,_0x257c8c=0x0){let _0x5b28e8=resolveNode(CachedNode['get'](this)||this['topNode'],_0x5cb8b3,_0x257c8c,!0x1);return CachedNode['set'](this,_0x5b28e8),_0x5b28e8;}['resolveInner'](_0x3e2b43,_0x39b04e=0x0){let _0x4911d2=resolveNode(CachedInnerNode['get'](this)||this['topNode'],_0x3e2b43,_0x39b04e,!0x0);return CachedInnerNode['set'](this,_0x4911d2),_0x4911d2;}['resolveStack'](_0x1d098c,_0x5d8303=0x0){return stackIterator(this,_0x1d098c,_0x5d8303);}['iterate'](_0x248c53){let {enter:_0x5ef261,leave:_0x19431c,from:_0xec6b78=0x0,to:_0x525054=this['length']}=_0x248c53,_0x1c4526=_0x248c53['mode']||0x0,_0x3457e1=(_0x1c4526&IterMode['IncludeAnonymous'])>0x0;for(let _0xaf0d6d=this['cursor'](_0x1c4526|IterMode['IncludeAnonymous']);;){let _0x2588d4=!0x1;if(_0xaf0d6d['from']<=_0x525054&&_0xaf0d6d['to']>=_0xec6b78&&(!_0x3457e1&&_0xaf0d6d['type']['isAnonymous']||!0x1!==_0x5ef261(_0xaf0d6d))){if(_0xaf0d6d['firstChild']())continue;_0x2588d4=!0x0;}for(;_0x2588d4&&_0x19431c&&(_0x3457e1||!_0xaf0d6d['type']['isAnonymous'])&&_0x19431c(_0xaf0d6d),!_0xaf0d6d['nextSibling']();){if(!_0xaf0d6d['parent']())return;_0x2588d4=!0x0;}}}['prop'](_0x22d698){return _0x22d698['perNode']?this['props']?this['props'][_0x22d698['id']]:void 0x0:this['type']['prop'](_0x22d698);}get['propValues'](){let _0x59fe7d=[];if(this['props']){for(let _0x126621 in this['props'])_0x59fe7d['push']([+_0x126621,this['props'][_0x126621]]);}return _0x59fe7d;}['balance'](_0x584ff2={}){return this['children']['length']<=0x8?this:balanceRange(NodeType['none'],this['children'],this['positions'],0x0,this['children']['length'],0x0,this['length'],(_0x398a50,_0x6a122c,_0x4f513a)=>new Tree(this['type'],_0x398a50,_0x6a122c,_0x4f513a,this['propValues']),_0x584ff2['makeTree']||((_0x2f61f5,_0x14d429,_0x4b6c43)=>new Tree(NodeType['none'],_0x2f61f5,_0x14d429,_0x4b6c43)));}static['build'](_0x2d2620){return buildTree(_0x2d2620);}}Tree['empty']=new Tree(NodeType['none'],[],[],0x0);class FlatBufferCursor{constructor(_0x100c9a,_0x39903d){this['buffer']=_0x100c9a,this['index']=_0x39903d;}get['id'](){return this['buffer'][this['index']-0x4];}get['start'](){return this['buffer'][this['index']-0x3];}get['end'](){return this['buffer'][this['index']-0x2];}get['size'](){return this['buffer'][this['index']-0x1];}get['pos'](){return this['index'];}['next'](){this['index']-=0x4;}['fork'](){return new FlatBufferCursor(this['buffer'],this['index']);}}class TreeBuffer{constructor(_0x3cc062,_0x37cb1d,_0xbae7bd){this['buffer']=_0x3cc062,this['length']=_0x37cb1d,this['set']=_0xbae7bd;}get['type'](){return NodeType['none'];}['toString'](){let _0x21c18e=[];for(let _0x3d1ca1=0x0;_0x3d1ca1<this['buffer']['length'];)_0x21c18e['push'](this['childString'](_0x3d1ca1)),_0x3d1ca1=this['buffer'][_0x3d1ca1+0x3];return _0x21c18e['join'](',');}['childString'](_0x3327e8){let _0x25eefd=this['buffer'][_0x3327e8],_0x5baaa6=this['buffer'][_0x3327e8+0x3],_0x5cae2a=this['set']['types'][_0x25eefd],_0x52967e=_0x5cae2a['name'];if(/\W/['test'](_0x52967e)&&!_0x5cae2a['isError']&&(_0x52967e=JSON['stringify'](_0x52967e)),_0x5baaa6==(_0x3327e8+=0x4))return _0x52967e;let _0x1eaab8=[];for(;_0x3327e8<_0x5baaa6;)_0x1eaab8['push'](this['childString'](_0x3327e8)),_0x3327e8=this['buffer'][_0x3327e8+0x3];return _0x52967e+'('+_0x1eaab8['join'](',')+')';}['findChild'](_0x45f558,_0xe13c50,_0x3e0003,_0x336705,_0x1a3b08){let {buffer:_0x4138c1}=this,_0x1ec93f=-0x1;for(let _0x7d930c=_0x45f558;_0x7d930c!=_0xe13c50&&!(checkSide(_0x1a3b08,_0x336705,_0x4138c1[_0x7d930c+0x1],_0x4138c1[_0x7d930c+0x2])&&(_0x1ec93f=_0x7d930c,_0x3e0003>0x0));_0x7d930c=_0x4138c1[_0x7d930c+0x3]);return _0x1ec93f;}['slice'](_0x52639f,_0x1cc114,_0x39ecc3){let _0x12c66a=this['buffer'],_0x29dd73=new Uint16Array(_0x1cc114-_0x52639f),_0x15125a=0x0;for(let _0x18947e=_0x52639f,_0xda9872=0x0;_0x18947e<_0x1cc114;){_0x29dd73[_0xda9872++]=_0x12c66a[_0x18947e++],_0x29dd73[_0xda9872++]=_0x12c66a[_0x18947e++]-_0x39ecc3;let _0x5dd8c=_0x29dd73[_0xda9872++]=_0x12c66a[_0x18947e++]-_0x39ecc3;_0x29dd73[_0xda9872++]=_0x12c66a[_0x18947e++]-_0x52639f,_0x15125a=Math['max'](_0x15125a,_0x5dd8c);}return new TreeBuffer(_0x29dd73,_0x15125a,this['set']);}}function checkSide(_0x560aac,_0x165ccb,_0x127a8f,_0x38b2f2){switch(_0x560aac){case-0x2:return _0x127a8f<_0x165ccb;case-0x1:return _0x38b2f2>=_0x165ccb&&_0x127a8f<_0x165ccb;case 0x0:return _0x127a8f<_0x165ccb&&_0x38b2f2>_0x165ccb;case 0x1:return _0x127a8f<=_0x165ccb&&_0x38b2f2>_0x165ccb;case 0x2:return _0x38b2f2>_0x165ccb;case 0x4:return!0x0;}}function resolveNode(_0xd2b2d8,_0x5943d6,_0x2b6f8e,_0x30fd3c){for(var _0x1d20cc;_0xd2b2d8['from']==_0xd2b2d8['to']||(_0x2b6f8e<0x1?_0xd2b2d8['from']>=_0x5943d6:_0xd2b2d8['from']>_0x5943d6)||(_0x2b6f8e>-0x1?_0xd2b2d8['to']<=_0x5943d6:_0xd2b2d8['to']<_0x5943d6);){let _0x38b817=!_0x30fd3c&&_0xd2b2d8 instanceof TreeNode&&_0xd2b2d8['index']<0x0?null:_0xd2b2d8['parent'];if(!_0x38b817)return _0xd2b2d8;_0xd2b2d8=_0x38b817;}let _0x584dd3=_0x30fd3c?0x0:IterMode['IgnoreOverlays'];if(_0x30fd3c){for(let _0x507a68=_0xd2b2d8,_0x59e108=_0x507a68['parent'];_0x59e108;_0x507a68=_0x59e108,_0x59e108=_0x507a68['parent'])_0x507a68 instanceof TreeNode&&_0x507a68['index']<0x0&&(null===(_0x1d20cc=_0x59e108['enter'](_0x5943d6,_0x2b6f8e,_0x584dd3))||void 0x0===_0x1d20cc?void 0x0:_0x1d20cc['from'])!=_0x507a68['from']&&(_0xd2b2d8=_0x59e108);}for(;;){let _0x553d1b=_0xd2b2d8['enter'](_0x5943d6,_0x2b6f8e,_0x584dd3);if(!_0x553d1b)return _0xd2b2d8;_0xd2b2d8=_0x553d1b;}}class BaseNode{['cursor'](_0x143c2f=0x0){return new TreeCursor(this,_0x143c2f);}['getChild'](_0x30118c,_0x202615=null,_0x16c45a=null){let _0x5aeb79=getChildren(this,_0x30118c,_0x202615,_0x16c45a);return _0x5aeb79['length']?_0x5aeb79[0x0]:null;}['getChildren'](_0x4382fc,_0x2b94fb=null,_0x4f2244=null){return getChildren(this,_0x4382fc,_0x2b94fb,_0x4f2244);}['resolve'](_0xd7033b,_0x4d7d5d=0x0){return resolveNode(this,_0xd7033b,_0x4d7d5d,!0x1);}['resolveInner'](_0x202071,_0x3994ad=0x0){return resolveNode(this,_0x202071,_0x3994ad,!0x0);}['matchContext'](_0x51713d){return matchNodeContext(this['parent'],_0x51713d);}['enterUnfinishedNodesBefore'](_0x47aeca){let _0x2423d2=this['childBefore'](_0x47aeca),_0x1e90b3=this;for(;_0x2423d2;){let _0x28c2e9=_0x2423d2['lastChild'];if(!_0x28c2e9||_0x28c2e9['to']!=_0x2423d2['to'])break;_0x28c2e9['type']['isError']&&_0x28c2e9['from']==_0x28c2e9['to']?(_0x1e90b3=_0x2423d2,_0x2423d2=_0x28c2e9['prevSibling']):_0x2423d2=_0x28c2e9;}return _0x1e90b3;}get['node'](){return this;}get['next'](){return this['parent'];}}class TreeNode extends BaseNode{constructor(_0x2842cc,_0x1513d5,_0x4343e6,_0x15569e){super(),this['_tree']=_0x2842cc,this['from']=_0x1513d5,this['index']=_0x4343e6,this['_parent']=_0x15569e;}get['type'](){return this['_tree']['type'];}get['name'](){return this['_tree']['type']['name'];}get['to'](){return this['from']+this['_tree']['length'];}['nextChild'](_0x1ab211,_0x55a2c0,_0x483e6b,_0x523d9d,_0x142c63=0x0){for(let _0x3ba880=this;;){for(let {children:_0x31dce2,positions:_0x40cbf4}=_0x3ba880['_tree'],_0x43f307=_0x55a2c0>0x0?_0x31dce2['length']:-0x1;_0x1ab211!=_0x43f307;_0x1ab211+=_0x55a2c0){let _0x13efbd=_0x31dce2[_0x1ab211],_0x4b5afe=_0x40cbf4[_0x1ab211]+_0x3ba880['from'];if(checkSide(_0x523d9d,_0x483e6b,_0x4b5afe,_0x4b5afe+_0x13efbd['length'])){if(_0x13efbd instanceof TreeBuffer){if(_0x142c63&IterMode['ExcludeBuffers'])continue;let _0x56279e=_0x13efbd['findChild'](0x0,_0x13efbd['buffer']['length'],_0x55a2c0,_0x483e6b-_0x4b5afe,_0x523d9d);if(_0x56279e>-0x1)return new BufferNode(new BufferContext(_0x3ba880,_0x13efbd,_0x1ab211,_0x4b5afe),null,_0x56279e);}else{if(_0x142c63&IterMode['IncludeAnonymous']||!_0x13efbd['type']['isAnonymous']||hasChild(_0x13efbd)){let _0xe0cc0c;if(!(_0x142c63&IterMode['IgnoreMounts'])&&(_0xe0cc0c=MountedTree['get'](_0x13efbd))&&!_0xe0cc0c['overlay'])return new TreeNode(_0xe0cc0c['tree'],_0x4b5afe,_0x1ab211,_0x3ba880);let _0x56e223=new TreeNode(_0x13efbd,_0x4b5afe,_0x1ab211,_0x3ba880);return _0x142c63&IterMode['IncludeAnonymous']||!_0x56e223['type']['isAnonymous']?_0x56e223:_0x56e223['nextChild'](_0x55a2c0<0x0?_0x13efbd['children']['length']-0x1:0x0,_0x55a2c0,_0x483e6b,_0x523d9d);}}}}if(_0x142c63&IterMode['IncludeAnonymous']||!_0x3ba880['type']['isAnonymous'])return null;if(_0x1ab211=_0x3ba880['index']>=0x0?_0x3ba880['index']+_0x55a2c0:_0x55a2c0<0x0?-0x1:_0x3ba880['_parent']['_tree']['children']['length'],_0x3ba880=_0x3ba880['_parent'],!_0x3ba880)return null;}}get['firstChild'](){return this['nextChild'](0x0,0x1,0x0,0x4);}get['lastChild'](){return this['nextChild'](this['_tree']['children']['length']-0x1,-0x1,0x0,0x4);}['childAfter'](_0x2a683d){return this['nextChild'](0x0,0x1,_0x2a683d,0x2);}['childBefore'](_0x32e94f){return this['nextChild'](this['_tree']['children']['length']-0x1,-0x1,_0x32e94f,-0x2);}['enter'](_0x2865dc,_0x57b55c,_0x495c1f=0x0){let _0x117ed4;if(!(_0x495c1f&IterMode['IgnoreOverlays'])&&(_0x117ed4=MountedTree['get'](this['_tree']))&&_0x117ed4['overlay']){let _0x37539a=_0x2865dc-this['from'];for(let {from:_0x157645,to:_0x12e385}of _0x117ed4['overlay'])if((_0x57b55c>0x0?_0x157645<=_0x37539a:_0x157645<_0x37539a)&&(_0x57b55c<0x0?_0x12e385>=_0x37539a:_0x12e385>_0x37539a))return new TreeNode(_0x117ed4['tree'],_0x117ed4['overlay'][0x0]['from']+this['from'],-0x1,this);}return this['nextChild'](0x0,0x1,_0x2865dc,_0x57b55c,_0x495c1f);}['nextSignificantParent'](){let _0xe78f58=this;for(;_0xe78f58['type']['isAnonymous']&&_0xe78f58['_parent'];)_0xe78f58=_0xe78f58['_parent'];return _0xe78f58;}get['parent'](){return this['_parent']?this['_parent']['nextSignificantParent']():null;}get['nextSibling'](){return this['_parent']&&this['index']>=0x0?this['_parent']['nextChild'](this['index']+0x1,0x1,0x0,0x4):null;}get['prevSibling'](){return this['_parent']&&this['index']>=0x0?this['_parent']['nextChild'](this['index']-0x1,-0x1,0x0,0x4):null;}get['tree'](){return this['_tree'];}['toTree'](){return this['_tree'];}['toString'](){return this['_tree']['toString']();}}function getChildren(_0x3d4736,_0x4a6849,_0x2f1d42,_0x2bca47){let _0x275c6f=_0x3d4736['cursor'](),_0x4c0748=[];if(!_0x275c6f['firstChild']())return _0x4c0748;if(null!=_0x2f1d42){for(let _0x35e20d=!0x1;!_0x35e20d;)if(_0x35e20d=_0x275c6f['type']['is'](_0x2f1d42),!_0x275c6f['nextSibling']())return _0x4c0748;}for(;;){if(null!=_0x2bca47&&_0x275c6f['type']['is'](_0x2bca47))return _0x4c0748;if(_0x275c6f['type']['is'](_0x4a6849)&&_0x4c0748['push'](_0x275c6f['node']),!_0x275c6f['nextSibling']())return null==_0x2bca47?_0x4c0748:[];}}function matchNodeContext(_0x143052,_0x2d4d03,_0x2f21d8=_0x2d4d03['length']-0x1){for(let _0x338734=_0x143052;_0x2f21d8>=0x0;_0x338734=_0x338734['parent']){if(!_0x338734)return!0x1;if(!_0x338734['type']['isAnonymous']){if(_0x2d4d03[_0x2f21d8]&&_0x2d4d03[_0x2f21d8]!=_0x338734['name'])return!0x1;_0x2f21d8--;}}return!0x0;}class BufferContext{constructor(_0x4a8ef8,_0xfc11fb,_0x22327d,_0x27f487){this['parent']=_0x4a8ef8,this['buffer']=_0xfc11fb,this['index']=_0x22327d,this['start']=_0x27f487;}}class BufferNode extends BaseNode{get['name'](){return this['type']['name'];}get['from'](){return this['context']['start']+this['context']['buffer']['buffer'][this['index']+0x1];}get['to'](){return this['context']['start']+this['context']['buffer']['buffer'][this['index']+0x2];}constructor(_0x5bb9c8,_0x231d34,_0xe19563){super(),this['context']=_0x5bb9c8,this['_parent']=_0x231d34,this['index']=_0xe19563,this['type']=_0x5bb9c8['buffer']['set']['types'][_0x5bb9c8['buffer']['buffer'][_0xe19563]];}['child'](_0x6e4fe5,_0x2856de,_0x5cfbe5){let {buffer:_0x75aa14}=this['context'],_0x3e8ee1=_0x75aa14['findChild'](this['index']+0x4,_0x75aa14['buffer'][this['index']+0x3],_0x6e4fe5,_0x2856de-this['context']['start'],_0x5cfbe5);return _0x3e8ee1<0x0?null:new BufferNode(this['context'],this,_0x3e8ee1);}get['firstChild'](){return this['child'](0x1,0x0,0x4);}get['lastChild'](){return this['child'](-0x1,0x0,0x4);}['childAfter'](_0x5106bf){return this['child'](0x1,_0x5106bf,0x2);}['childBefore'](_0x1a18a3){return this['child'](-0x1,_0x1a18a3,-0x2);}['enter'](_0x50afee,_0x196b40,_0x358a07=0x0){if(_0x358a07&IterMode['ExcludeBuffers'])return null;let {buffer:_0x32a04e}=this['context'],_0x286a74=_0x32a04e['findChild'](this['index']+0x4,_0x32a04e['buffer'][this['index']+0x3],_0x196b40>0x0?0x1:-0x1,_0x50afee-this['context']['start'],_0x196b40);return _0x286a74<0x0?null:new BufferNode(this['context'],this,_0x286a74);}get['parent'](){return this['_parent']||this['context']['parent']['nextSignificantParent']();}['externalSibling'](_0x50c7a8){return this['_parent']?null:this['context']['parent']['nextChild'](this['context']['index']+_0x50c7a8,_0x50c7a8,0x0,0x4);}get['nextSibling'](){let {buffer:_0x104fe6}=this['context'],_0x2ad41e=_0x104fe6['buffer'][this['index']+0x3];return _0x2ad41e<(this['_parent']?_0x104fe6['buffer'][this['_parent']['index']+0x3]:_0x104fe6['buffer']['length'])?new BufferNode(this['context'],this['_parent'],_0x2ad41e):this['externalSibling'](0x1);}get['prevSibling'](){let {buffer:_0x47e0e1}=this['context'],_0x4de51d=this['_parent']?this['_parent']['index']+0x4:0x0;return this['index']==_0x4de51d?this['externalSibling'](-0x1):new BufferNode(this['context'],this['_parent'],_0x47e0e1['findChild'](_0x4de51d,this['index'],-0x1,0x0,0x4));}get['tree'](){return null;}['toTree'](){let _0x56ce4e=[],_0x4f9f98=[],{buffer:_0x12fb63}=this['context'],_0x1a816d=this['index']+0x4,_0x4a023d=_0x12fb63['buffer'][this['index']+0x3];if(_0x4a023d>_0x1a816d){let _0xda0b4e=_0x12fb63['buffer'][this['index']+0x1];_0x56ce4e['push'](_0x12fb63['slice'](_0x1a816d,_0x4a023d,_0xda0b4e)),_0x4f9f98['push'](0x0);}return new Tree(this['type'],_0x56ce4e,_0x4f9f98,this['to']-this['from']);}['toString'](){return this['context']['buffer']['childString'](this['index']);}}function iterStack(_0x3a6e2b){if(!_0x3a6e2b['length'])return null;let _0x533173=0x0,_0x446759=_0x3a6e2b[0x0];for(let _0x1ab21d=0x1;_0x1ab21d<_0x3a6e2b['length'];_0x1ab21d++){let _0x1d3860=_0x3a6e2b[_0x1ab21d];(_0x1d3860['from']>_0x446759['from']||_0x1d3860['to']<_0x446759['to'])&&(_0x446759=_0x1d3860,_0x533173=_0x1ab21d);}let _0x4ef917=_0x446759 instanceof TreeNode&&_0x446759['index']<0x0?null:_0x446759['parent'],_0x30de52=_0x3a6e2b['slice']();return _0x4ef917?_0x30de52[_0x533173]=_0x4ef917:_0x30de52['splice'](_0x533173,0x1),new StackIterator(_0x30de52,_0x446759);}class StackIterator{constructor(_0x1ab386,_0x3c30d7){this['heads']=_0x1ab386,this['node']=_0x3c30d7;}get['next'](){return iterStack(this['heads']);}}function stackIterator(_0x332e9d,_0x252c5b,_0x2ca30c){let _0xd20e23=_0x332e9d['resolveInner'](_0x252c5b,_0x2ca30c),_0x509558=null;for(let _0x436cf8=_0xd20e23 instanceof TreeNode?_0xd20e23:_0xd20e23['context']['parent'];_0x436cf8;_0x436cf8=_0x436cf8['parent'])if(_0x436cf8['index']<0x0){let _0x2bb7ca=_0x436cf8['parent'];(_0x509558||(_0x509558=[_0xd20e23]))['push'](_0x2bb7ca['resolve'](_0x252c5b,_0x2ca30c)),_0x436cf8=_0x2bb7ca;}else{let _0x3eb473=MountedTree['get'](_0x436cf8['tree']);if(_0x3eb473&&_0x3eb473['overlay']&&_0x3eb473['overlay'][0x0]['from']<=_0x252c5b&&_0x3eb473['overlay'][_0x3eb473['overlay']['length']-0x1]['to']>=_0x252c5b){let _0x1fa6a0=new TreeNode(_0x3eb473['tree'],_0x3eb473['overlay'][0x0]['from']+_0x436cf8['from'],-0x1,_0x436cf8);(_0x509558||(_0x509558=[_0xd20e23]))['push'](resolveNode(_0x1fa6a0,_0x252c5b,_0x2ca30c,!0x1));}}return _0x509558?iterStack(_0x509558):_0xd20e23;}class TreeCursor{get['name'](){return this['type']['name'];}constructor(_0x5d74f3,_0xd316d3=0x0){if(this['mode']=_0xd316d3,this['buffer']=null,this['stack']=[],this['index']=0x0,this['bufferNode']=null,_0x5d74f3 instanceof TreeNode)this['yieldNode'](_0x5d74f3);else{this['_tree']=_0x5d74f3['context']['parent'],this['buffer']=_0x5d74f3['context'];for(let _0x5314f6=_0x5d74f3['_parent'];_0x5314f6;_0x5314f6=_0x5314f6['_parent'])this['stack']['unshift'](_0x5314f6['index']);this['bufferNode']=_0x5d74f3,this['yieldBuf'](_0x5d74f3['index']);}}['yieldNode'](_0x295080){return!!_0x295080&&(this['_tree']=_0x295080,this['type']=_0x295080['type'],this['from']=_0x295080['from'],this['to']=_0x295080['to'],!0x0);}['yieldBuf'](_0x9d5ad0,_0x9e4403){this['index']=_0x9d5ad0;let {start:_0x15b59b,buffer:_0x255614}=this['buffer'];return this['type']=_0x9e4403||_0x255614['set']['types'][_0x255614['buffer'][_0x9d5ad0]],this['from']=_0x15b59b+_0x255614['buffer'][_0x9d5ad0+0x1],this['to']=_0x15b59b+_0x255614['buffer'][_0x9d5ad0+0x2],!0x0;}['yield'](_0x24232a){return!!_0x24232a&&(_0x24232a instanceof TreeNode?(this['buffer']=null,this['yieldNode'](_0x24232a)):(this['buffer']=_0x24232a['context'],this['yieldBuf'](_0x24232a['index'],_0x24232a['type'])));}['toString'](){return this['buffer']?this['buffer']['buffer']['childString'](this['index']):this['_tree']['toString']();}['enterChild'](_0x1c6b7f,_0x58149d,_0x173cd2){if(!this['buffer'])return this['yield'](this['_tree']['nextChild'](_0x1c6b7f<0x0?this['_tree']['_tree']['children']['length']-0x1:0x0,_0x1c6b7f,_0x58149d,_0x173cd2,this['mode']));let {buffer:_0x52f4f3}=this['buffer'],_0x4e9dfb=_0x52f4f3['findChild'](this['index']+0x4,_0x52f4f3['buffer'][this['index']+0x3],_0x1c6b7f,_0x58149d-this['buffer']['start'],_0x173cd2);return!(_0x4e9dfb<0x0)&&(this['stack']['push'](this['index']),this['yieldBuf'](_0x4e9dfb));}['firstChild'](){return this['enterChild'](0x1,0x0,0x4);}['lastChild'](){return this['enterChild'](-0x1,0x0,0x4);}['childAfter'](_0x19995f){return this['enterChild'](0x1,_0x19995f,0x2);}['childBefore'](_0x503115){return this['enterChild'](-0x1,_0x503115,-0x2);}['enter'](_0x4cf5a2,_0x23929e,_0x47e5b0=this['mode']){return this['buffer']?!(_0x47e5b0&IterMode['ExcludeBuffers'])&&this['enterChild'](0x1,_0x4cf5a2,_0x23929e):this['yield'](this['_tree']['enter'](_0x4cf5a2,_0x23929e,_0x47e5b0));}['parent'](){if(!this['buffer'])return this['yieldNode'](this['mode']&IterMode['IncludeAnonymous']?this['_tree']['_parent']:this['_tree']['parent']);if(this['stack']['length'])return this['yieldBuf'](this['stack']['pop']());let _0x2d0594=this['mode']&IterMode['IncludeAnonymous']?this['buffer']['parent']:this['buffer']['parent']['nextSignificantParent']();return this['buffer']=null,this['yieldNode'](_0x2d0594);}['sibling'](_0x308bcf){if(!this['buffer'])return!!this['_tree']['_parent']&&this['yield'](this['_tree']['index']<0x0?null:this['_tree']['_parent']['nextChild'](this['_tree']['index']+_0x308bcf,_0x308bcf,0x0,0x4,this['mode']));let {buffer:_0x2163a2}=this['buffer'],_0x564f04=this['stack']['length']-0x1;if(_0x308bcf<0x0){let _0x25a213=_0x564f04<0x0?0x0:this['stack'][_0x564f04]+0x4;if(this['index']!=_0x25a213)return this['yieldBuf'](_0x2163a2['findChild'](_0x25a213,this['index'],-0x1,0x0,0x4));}else{let _0x5d5848=_0x2163a2['buffer'][this['index']+0x3];if(_0x5d5848<(_0x564f04<0x0?_0x2163a2['buffer']['length']:_0x2163a2['buffer'][this['stack'][_0x564f04]+0x3]))return this['yieldBuf'](_0x5d5848);}return _0x564f04<0x0&&this['yield'](this['buffer']['parent']['nextChild'](this['buffer']['index']+_0x308bcf,_0x308bcf,0x0,0x4,this['mode']));}['nextSibling'](){return this['sibling'](0x1);}['prevSibling'](){return this['sibling'](-0x1);}['atLastNode'](_0x2f135f){let _0x124cef,_0x39258e,{buffer:_0x3727b2}=this;if(_0x3727b2){if(_0x2f135f>0x0){if(this['index']<_0x3727b2['buffer']['buffer']['length'])return!0x1;}else{for(let _0x456183=0x0;_0x456183<this['index'];_0x456183++)if(_0x3727b2['buffer']['buffer'][_0x456183+0x3]<this['index'])return!0x1;}({index:_0x124cef,parent:_0x39258e}=_0x3727b2);}else({index:_0x124cef,_parent:_0x39258e}=this['_tree']);for(;_0x39258e;{index:_0x124cef,_parent:_0x39258e}=_0x39258e)if(_0x124cef>-0x1)for(let _0x51485f=_0x124cef+_0x2f135f,_0x664c98=_0x2f135f<0x0?-0x1:_0x39258e['_tree']['children']['length'];_0x51485f!=_0x664c98;_0x51485f+=_0x2f135f){let _0x5305b7=_0x39258e['_tree']['children'][_0x51485f];if(this['mode']&IterMode['IncludeAnonymous']||_0x5305b7 instanceof TreeBuffer||!_0x5305b7['type']['isAnonymous']||hasChild(_0x5305b7))return!0x1;}return!0x0;}['move'](_0x321a3a,_0x591dda){if(_0x591dda&&this['enterChild'](_0x321a3a,0x0,0x4))return!0x0;for(;;){if(this['sibling'](_0x321a3a))return!0x0;if(this['atLastNode'](_0x321a3a)||!this['parent']())return!0x1;}}['next'](_0x27dd4d=!0x0){return this['move'](0x1,_0x27dd4d);}['prev'](_0x46d840=!0x0){return this['move'](-0x1,_0x46d840);}['moveTo'](_0x57a363,_0x4d9758=0x0){for(;(this['from']==this['to']||(_0x4d9758<0x1?this['from']>=_0x57a363:this['from']>_0x57a363)||(_0x4d9758>-0x1?this['to']<=_0x57a363:this['to']<_0x57a363))&&this['parent'](););for(;this['enterChild'](0x1,_0x57a363,_0x4d9758););return this;}get['node'](){if(!this['buffer'])return this['_tree'];let _0x26af0c=this['bufferNode'],_0x841e9f=null,_0x46d9ee=0x0;if(_0x26af0c&&_0x26af0c['context']==this['buffer']){t:for(let _0x491b32=this['index'],_0x3379c2=this['stack']['length'];_0x3379c2>=0x0;){for(let _0x26c0aa=_0x26af0c;_0x26c0aa;_0x26c0aa=_0x26c0aa['_parent'])if(_0x26c0aa['index']==_0x491b32){if(_0x491b32==this['index'])return _0x26c0aa;_0x841e9f=_0x26c0aa,_0x46d9ee=_0x3379c2+0x1;break t;}_0x491b32=this['stack'][--_0x3379c2];}}for(let _0x6c164b=_0x46d9ee;_0x6c164b<this['stack']['length'];_0x6c164b++)_0x841e9f=new BufferNode(this['buffer'],_0x841e9f,this['stack'][_0x6c164b]);return this['bufferNode']=new BufferNode(this['buffer'],_0x841e9f,this['index']);}get['tree'](){return this['buffer']?null:this['_tree']['_tree'];}['iterate'](_0xf0af93,_0x361f9a){for(let _0x16644f=0x0;;){let _0x1d1987=!0x1;if(this['type']['isAnonymous']||!0x1!==_0xf0af93(this)){if(this['firstChild']()){_0x16644f++;continue;}this['type']['isAnonymous']||(_0x1d1987=!0x0);}for(;;){if(_0x1d1987&&_0x361f9a&&_0x361f9a(this),_0x1d1987=this['type']['isAnonymous'],!_0x16644f)return;if(this['nextSibling']())break;this['parent'](),_0x16644f--,_0x1d1987=!0x0;}}}['matchContext'](_0x394b63){if(!this['buffer'])return matchNodeContext(this['node']['parent'],_0x394b63);let {buffer:_0x27db17}=this['buffer'],{types:_0x6d4d86}=_0x27db17['set'];for(let _0x111071=_0x394b63['length']-0x1,_0x357d11=this['stack']['length']-0x1;_0x111071>=0x0;_0x357d11--){if(_0x357d11<0x0)return matchNodeContext(this['_tree'],_0x394b63,_0x111071);let _0x46eb97=_0x6d4d86[_0x27db17['buffer'][this['stack'][_0x357d11]]];if(!_0x46eb97['isAnonymous']){if(_0x394b63[_0x111071]&&_0x394b63[_0x111071]!=_0x46eb97['name'])return!0x1;_0x111071--;}}return!0x0;}}function hasChild(_0x56f74e){return _0x56f74e['children']['some'](_0x5774a4=>_0x5774a4 instanceof TreeBuffer||!_0x5774a4['type']['isAnonymous']||hasChild(_0x5774a4));}function buildTree(_0x1ceed6){var _0x21ac88;let {buffer:_0x18dde6,nodeSet:_0x584ae7,maxBufferLength:_0x5d17e6=DefaultBufferLength,reused:_0x208091=[],minRepeatType:_0x3b6f16=_0x584ae7['types']['length']}=_0x1ceed6,_0x2498e5=Array['isArray'](_0x18dde6)?new FlatBufferCursor(_0x18dde6,_0x18dde6['length']):_0x18dde6,_0x32633b=_0x584ae7['types'],_0x173e53=0x0,_0x322d28=0x0;function _0x3ab203(_0x4a146a,_0x3045fe,_0x47177e,_0x3876cb,_0x19d3b0,_0x25f256){let {id:_0x4c46a9,start:_0x2bac2a,end:_0x2b8f7a,size:_0x1ee2db}=_0x2498e5,_0x6f5822=_0x322d28,_0x3995bd=_0x173e53;for(;_0x1ee2db<0x0;){if(_0x2498e5['next'](),-0x1==_0x1ee2db){let _0x42682d=_0x208091[_0x4c46a9];return _0x47177e['push'](_0x42682d),void _0x3876cb['push'](_0x2bac2a-_0x4a146a);}if(-0x3==_0x1ee2db)return void(_0x173e53=_0x4c46a9);if(-0x4==_0x1ee2db)return void(_0x322d28=_0x4c46a9);throw new RangeError('Unrecognized\x20record\x20size:\x20'+_0x1ee2db);}let _0xef81cd,_0x3f11c7,_0x44b5ca=_0x32633b[_0x4c46a9],_0x55bf07=_0x2bac2a-_0x4a146a;if(_0x2b8f7a-_0x2bac2a<=_0x5d17e6&&(_0x3f11c7=function(_0x11be3c,_0xcc9b72){let _0x2b7e6c=_0x2498e5['fork'](),_0x25f480=0x0,_0x291b42=0x0,_0x34c698=0x0,_0x5da048=_0x2b7e6c['end']-_0x5d17e6,_0x2712b0={'size':0x0,'start':0x0,'skip':0x0};t:for(let _0x3fd166=_0x2b7e6c['pos']-_0x11be3c;_0x2b7e6c['pos']>_0x3fd166;){let _0x424248=_0x2b7e6c['size'];if(_0x2b7e6c['id']==_0xcc9b72&&_0x424248>=0x0){_0x2712b0['size']=_0x25f480,_0x2712b0['start']=_0x291b42,_0x2712b0['skip']=_0x34c698,_0x34c698+=0x4,_0x25f480+=0x4,_0x2b7e6c['next']();continue;}let _0x5ed199=_0x2b7e6c['pos']-_0x424248;if(_0x424248<0x0||_0x5ed199<_0x3fd166||_0x2b7e6c['start']<_0x5da048)break;let _0x4868f0=_0x2b7e6c['id']>=_0x3b6f16?0x4:0x0,_0x241e9a=_0x2b7e6c['start'];for(_0x2b7e6c['next']();_0x2b7e6c['pos']>_0x5ed199;){if(_0x2b7e6c['size']<0x0){if(-0x3!=_0x2b7e6c['size'])break t;_0x4868f0+=0x4;}else _0x2b7e6c['id']>=_0x3b6f16&&(_0x4868f0+=0x4);_0x2b7e6c['next']();}_0x291b42=_0x241e9a,_0x25f480+=_0x424248,_0x34c698+=_0x4868f0;}return(_0xcc9b72<0x0||_0x25f480==_0x11be3c)&&(_0x2712b0['size']=_0x25f480,_0x2712b0['start']=_0x291b42,_0x2712b0['skip']=_0x34c698),_0x2712b0['size']>0x4?_0x2712b0:void 0x0;}(_0x2498e5['pos']-_0x3045fe,_0x19d3b0))){let _0xedbcc2=new Uint16Array(_0x3f11c7['size']-_0x3f11c7['skip']),_0x5d752c=_0x2498e5['pos']-_0x3f11c7['size'],_0x429758=_0xedbcc2['length'];for(;_0x2498e5['pos']>_0x5d752c;)_0x429758=_0x4d1d6b(_0x3f11c7['start'],_0xedbcc2,_0x429758);_0xef81cd=new TreeBuffer(_0xedbcc2,_0x2b8f7a-_0x3f11c7['start'],_0x584ae7),_0x55bf07=_0x3f11c7['start']-_0x4a146a;}else{let _0x3df56e=_0x2498e5['pos']-_0x1ee2db;_0x2498e5['next']();let _0xc23524=[],_0x232b2a=[],_0xf476f4=_0x4c46a9>=_0x3b6f16?_0x4c46a9:-0x1,_0x28b589=0x0,_0x3d64a0=_0x2b8f7a;for(;_0x2498e5['pos']>_0x3df56e;)_0xf476f4>=0x0&&_0x2498e5['id']==_0xf476f4&&_0x2498e5['size']>=0x0?(_0x2498e5['end']<=_0x3d64a0-_0x5d17e6&&(_0x38d10d(_0xc23524,_0x232b2a,_0x2bac2a,_0x28b589,_0x2498e5['end'],_0x3d64a0,_0xf476f4,_0x6f5822,_0x3995bd),_0x28b589=_0xc23524['length'],_0x3d64a0=_0x2498e5['end']),_0x2498e5['next']()):_0x25f256>0x9c4?_0x5aadcc(_0x2bac2a,_0x3df56e,_0xc23524,_0x232b2a):_0x3ab203(_0x2bac2a,_0x3df56e,_0xc23524,_0x232b2a,_0xf476f4,_0x25f256+0x1);if(_0xf476f4>=0x0&&_0x28b589>0x0&&_0x28b589<_0xc23524['length']&&_0x38d10d(_0xc23524,_0x232b2a,_0x2bac2a,_0x28b589,_0x2bac2a,_0x3d64a0,_0xf476f4,_0x6f5822,_0x3995bd),_0xc23524['reverse'](),_0x232b2a['reverse'](),_0xf476f4>-0x1&&_0x28b589>0x0){let _0x2e3847=function(_0xb035b3,_0x4171a0){return(_0x4e4b34,_0x48a299,_0x132438)=>{let _0x411b13,_0x381240,_0x2ac190=0x0,_0x458db7=_0x4e4b34['length']-0x1;if(_0x458db7>=0x0&&(_0x411b13=_0x4e4b34[_0x458db7])instanceof Tree){if(!_0x458db7&&_0x411b13['type']==_0xb035b3&&_0x411b13['length']==_0x132438)return _0x411b13;(_0x381240=_0x411b13['prop'](NodeProp['lookAhead']))&&(_0x2ac190=_0x48a299[_0x458db7]+_0x411b13['length']+_0x381240);}return _0xdb0b1f(_0xb035b3,_0x4e4b34,_0x48a299,_0x132438,_0x2ac190,_0x4171a0);};}(_0x44b5ca,_0x3995bd);_0xef81cd=balanceRange(_0x44b5ca,_0xc23524,_0x232b2a,0x0,_0xc23524['length'],0x0,_0x2b8f7a-_0x2bac2a,_0x2e3847,_0x2e3847);}else _0xef81cd=_0xdb0b1f(_0x44b5ca,_0xc23524,_0x232b2a,_0x2b8f7a-_0x2bac2a,_0x6f5822-_0x2b8f7a,_0x3995bd);}_0x47177e['push'](_0xef81cd),_0x3876cb['push'](_0x55bf07);}function _0x5aadcc(_0x100b02,_0x5ba365,_0x5dc467,_0xf2bda4){let _0x4f74d5=[],_0x46c7fe=0x0,_0x20e673=-0x1;for(;_0x2498e5['pos']>_0x5ba365;){let {id:_0x2d24bc,start:_0x3f3289,end:_0x49c4bd,size:_0x2f8361}=_0x2498e5;if(_0x2f8361>0x4)_0x2498e5['next']();else{if(_0x20e673>-0x1&&_0x3f3289<_0x20e673)break;_0x20e673<0x0&&(_0x20e673=_0x49c4bd-_0x5d17e6),_0x4f74d5['push'](_0x2d24bc,_0x3f3289,_0x49c4bd),_0x46c7fe++,_0x2498e5['next']();}}if(_0x46c7fe){let _0x506740=new Uint16Array(0x4*_0x46c7fe),_0x5586bc=_0x4f74d5[_0x4f74d5['length']-0x2];for(let _0x5f0535=_0x4f74d5['length']-0x3,_0x526566=0x0;_0x5f0535>=0x0;_0x5f0535-=0x3)_0x506740[_0x526566++]=_0x4f74d5[_0x5f0535],_0x506740[_0x526566++]=_0x4f74d5[_0x5f0535+0x1]-_0x5586bc,_0x506740[_0x526566++]=_0x4f74d5[_0x5f0535+0x2]-_0x5586bc,_0x506740[_0x526566++]=_0x526566;_0x5dc467['push'](new TreeBuffer(_0x506740,_0x4f74d5[0x2]-_0x5586bc,_0x584ae7)),_0xf2bda4['push'](_0x5586bc-_0x100b02);}}function _0x38d10d(_0x1d4044,_0x395513,_0x1ccfef,_0x5c53c3,_0x4547a5,_0x479838,_0xf9fdb0,_0x291c35,_0x4bde61){let _0x43976c=[],_0x3c0e3b=[];for(;_0x1d4044['length']>_0x5c53c3;)_0x43976c['push'](_0x1d4044['pop']()),_0x3c0e3b['push'](_0x395513['pop']()+_0x1ccfef-_0x4547a5);_0x1d4044['push'](_0xdb0b1f(_0x584ae7['types'][_0xf9fdb0],_0x43976c,_0x3c0e3b,_0x479838-_0x4547a5,_0x291c35-_0x479838,_0x4bde61)),_0x395513['push'](_0x4547a5-_0x1ccfef);}function _0xdb0b1f(_0x544295,_0x4d048b,_0x124853,_0x2faf73,_0x268e42,_0x866db1,_0x217aa4){if(_0x866db1){let _0x201672=[NodeProp['contextHash'],_0x866db1];_0x217aa4=_0x217aa4?[_0x201672]['concat'](_0x217aa4):[_0x201672];}if(_0x268e42>0x19){let _0x24daf5=[NodeProp['lookAhead'],_0x268e42];_0x217aa4=_0x217aa4?[_0x24daf5]['concat'](_0x217aa4):[_0x24daf5];}return new Tree(_0x544295,_0x4d048b,_0x124853,_0x2faf73,_0x217aa4);}function _0x4d1d6b(_0x591de2,_0x48478,_0x16f441){let {id:_0x6d3972,start:_0x146c62,end:_0x339f5b,size:_0xb9ba43}=_0x2498e5;if(_0x2498e5['next'](),_0xb9ba43>=0x0&&_0x6d3972<_0x3b6f16){let _0x381320=_0x16f441;if(_0xb9ba43>0x4){let _0x2a4cfb=_0x2498e5['pos']-(_0xb9ba43-0x4);for(;_0x2498e5['pos']>_0x2a4cfb;)_0x16f441=_0x4d1d6b(_0x591de2,_0x48478,_0x16f441);}_0x48478[--_0x16f441]=_0x381320,_0x48478[--_0x16f441]=_0x339f5b-_0x591de2,_0x48478[--_0x16f441]=_0x146c62-_0x591de2,_0x48478[--_0x16f441]=_0x6d3972;}else-0x3==_0xb9ba43?_0x173e53=_0x6d3972:-0x4==_0xb9ba43&&(_0x322d28=_0x6d3972);return _0x16f441;}let _0x900b1f=[],_0xe329ed=[];for(;_0x2498e5['pos']>0x0;)_0x3ab203(_0x1ceed6['start']||0x0,_0x1ceed6['bufferStart']||0x0,_0x900b1f,_0xe329ed,-0x1,0x0);let _0x5ab601=null!==(_0x21ac88=_0x1ceed6['length'])&&void 0x0!==_0x21ac88?_0x21ac88:_0x900b1f['length']?_0xe329ed[0x0]+_0x900b1f[0x0]['length']:0x0;return new Tree(_0x32633b[_0x1ceed6['topID']],_0x900b1f['reverse'](),_0xe329ed['reverse'](),_0x5ab601);}const nodeSizeCache=new WeakMap();function nodeSize(_0x1a5359,_0x4a5205){if(!_0x1a5359['isAnonymous']||_0x4a5205 instanceof TreeBuffer||_0x4a5205['type']!=_0x1a5359)return 0x1;let _0x49b179=nodeSizeCache['get'](_0x4a5205);if(null==_0x49b179){_0x49b179=0x1;for(let _0x239c8f of _0x4a5205['children']){if(_0x239c8f['type']!=_0x1a5359||!(_0x239c8f instanceof Tree)){_0x49b179=0x1;break;}_0x49b179+=nodeSize(_0x1a5359,_0x239c8f);}nodeSizeCache['set'](_0x4a5205,_0x49b179);}return _0x49b179;}function balanceRange(_0x1e0d63,_0x5b7514,_0x46053f,_0x3d564a,_0x2762b2,_0x305990,_0x3be181,_0x3b3104,_0x599250){let _0x33bdc9=0x0;for(let _0x16f447=_0x3d564a;_0x16f447<_0x2762b2;_0x16f447++)_0x33bdc9+=nodeSize(_0x1e0d63,_0x5b7514[_0x16f447]);let _0x68ccd7=Math['ceil'](1.5*_0x33bdc9/0x8),_0x476501=[],_0x51cdf7=[];return function _0xbb2e06(_0x4a32ea,_0x12cb70,_0x1288f0,_0x24554f,_0x4dc457){for(let _0x2c8fd9=_0x1288f0;_0x2c8fd9<_0x24554f;){let _0x37ec71=_0x2c8fd9,_0x4ddf3f=_0x12cb70[_0x2c8fd9],_0x2a6037=nodeSize(_0x1e0d63,_0x4a32ea[_0x2c8fd9]);for(_0x2c8fd9++;_0x2c8fd9<_0x24554f;_0x2c8fd9++){let _0x1e49ca=nodeSize(_0x1e0d63,_0x4a32ea[_0x2c8fd9]);if(_0x2a6037+_0x1e49ca>=_0x68ccd7)break;_0x2a6037+=_0x1e49ca;}if(_0x2c8fd9==_0x37ec71+0x1){if(_0x2a6037>_0x68ccd7){let _0x387228=_0x4a32ea[_0x37ec71];_0xbb2e06(_0x387228['children'],_0x387228['positions'],0x0,_0x387228['children']['length'],_0x12cb70[_0x37ec71]+_0x4dc457);continue;}_0x476501['push'](_0x4a32ea[_0x37ec71]);}else{let _0x4c6824=_0x12cb70[_0x2c8fd9-0x1]+_0x4a32ea[_0x2c8fd9-0x1]['length']-_0x4ddf3f;_0x476501['push'](balanceRange(_0x1e0d63,_0x4a32ea,_0x12cb70,_0x37ec71,_0x2c8fd9,_0x4ddf3f,_0x4c6824,null,_0x599250));}_0x51cdf7['push'](_0x4ddf3f+_0x4dc457-_0x305990);}}(_0x5b7514,_0x46053f,_0x3d564a,_0x2762b2,0x0),(_0x3b3104||_0x599250)(_0x476501,_0x51cdf7,_0x3be181);}class NodeWeakMap{constructor(){this['map']=new WeakMap();}['setBuffer'](_0x41322c,_0x100f9b,_0x47bbd2){let _0x1d9e88=this['map']['get'](_0x41322c);_0x1d9e88||this['map']['set'](_0x41322c,_0x1d9e88=new Map()),_0x1d9e88['set'](_0x100f9b,_0x47bbd2);}['getBuffer'](_0x1d5e6c,_0x21e02d){let _0x5b5972=this['map']['get'](_0x1d5e6c);return _0x5b5972&&_0x5b5972['get'](_0x21e02d);}['set'](_0x23bffe,_0x33a8e9){_0x23bffe instanceof BufferNode?this['setBuffer'](_0x23bffe['context']['buffer'],_0x23bffe['index'],_0x33a8e9):_0x23bffe instanceof TreeNode&&this['map']['set'](_0x23bffe['tree'],_0x33a8e9);}['get'](_0x25688b){return _0x25688b instanceof BufferNode?this['getBuffer'](_0x25688b['context']['buffer'],_0x25688b['index']):_0x25688b instanceof TreeNode?this['map']['get'](_0x25688b['tree']):void 0x0;}['cursorSet'](_0x4aa143,_0x37a8f4){_0x4aa143['buffer']?this['setBuffer'](_0x4aa143['buffer']['buffer'],_0x4aa143['index'],_0x37a8f4):this['map']['set'](_0x4aa143['tree'],_0x37a8f4);}['cursorGet'](_0x18d018){return _0x18d018['buffer']?this['getBuffer'](_0x18d018['buffer']['buffer'],_0x18d018['index']):this['map']['get'](_0x18d018['tree']);}}class TreeFragment{constructor(_0x22944d,_0x411f28,_0x1f3ef1,_0x3258d4,_0x42a789=!0x1,_0x5b11fe=!0x1){this['from']=_0x22944d,this['to']=_0x411f28,this['tree']=_0x1f3ef1,this['offset']=_0x3258d4,this['open']=(_0x42a789?0x1:0x0)|(_0x5b11fe?0x2:0x0);}get['openStart'](){return(0x1&this['open'])>0x0;}get['openEnd'](){return(0x2&this['open'])>0x0;}static['addTree'](_0x5ecc98,_0x1da4ec=[],_0x34d90d=!0x1){let _0x34c099=[new TreeFragment(0x0,_0x5ecc98['length'],_0x5ecc98,0x0,!0x1,_0x34d90d)];for(let _0x18cd95 of _0x1da4ec)_0x18cd95['to']>_0x5ecc98['length']&&_0x34c099['push'](_0x18cd95);return _0x34c099;}static['applyChanges'](_0xb7c836,_0x293f3f,_0x487f49=0x80){if(!_0x293f3f['length'])return _0xb7c836;let _0x3a9bdb=[],_0x12836c=0x1,_0x592506=_0xb7c836['length']?_0xb7c836[0x0]:null;for(let _0x418bfb=0x0,_0x1d2e2b=0x0,_0x93d9d2=0x0;;_0x418bfb++){let _0x54db81=_0x418bfb<_0x293f3f['length']?_0x293f3f[_0x418bfb]:null,_0x54b7e1=_0x54db81?_0x54db81['fromA']:0x3b9aca00;if(_0x54b7e1-_0x1d2e2b>=_0x487f49)for(;_0x592506&&_0x592506['from']<_0x54b7e1;){let _0x3b8e5b=_0x592506;if(_0x1d2e2b>=_0x3b8e5b['from']||_0x54b7e1<=_0x3b8e5b['to']||_0x93d9d2){let _0x5113f9=Math['max'](_0x3b8e5b['from'],_0x1d2e2b)-_0x93d9d2,_0x7dbe9e=Math['min'](_0x3b8e5b['to'],_0x54b7e1)-_0x93d9d2;_0x3b8e5b=_0x5113f9>=_0x7dbe9e?null:new TreeFragment(_0x5113f9,_0x7dbe9e,_0x3b8e5b['tree'],_0x3b8e5b['offset']+_0x93d9d2,_0x418bfb>0x0,!!_0x54db81);}if(_0x3b8e5b&&_0x3a9bdb['push'](_0x3b8e5b),_0x592506['to']>_0x54b7e1)break;_0x592506=_0x12836c<_0xb7c836['length']?_0xb7c836[_0x12836c++]:null;}if(!_0x54db81)break;_0x1d2e2b=_0x54db81['toA'],_0x93d9d2=_0x54db81['toA']-_0x54db81['toB'];}return _0x3a9bdb;}}class Parser{['startParse'](_0x538cd2,_0x3f88ba,_0x509676){return'string'==typeof _0x538cd2&&(_0x538cd2=new StringInput(_0x538cd2)),_0x509676=_0x509676?_0x509676['length']?_0x509676['map'](_0x302755=>new Range(_0x302755['from'],_0x302755['to'])):[new Range(0x0,0x0)]:[new Range(0x0,_0x538cd2['length'])],this['createParse'](_0x538cd2,_0x3f88ba||[],_0x509676);}['parse'](_0x533a51,_0x1d319d,_0x57ed5d){let _0x409c97=this['startParse'](_0x533a51,_0x1d319d,_0x57ed5d);for(;;){let _0x103555=_0x409c97['advance']();if(_0x103555)return _0x103555;}}}class StringInput{constructor(_0x25833c){this['string']=_0x25833c;}get['length'](){return this['string']['length'];}['chunk'](_0x1944c0){return this['string']['slice'](_0x1944c0);}get['lineChunks'](){return!0x1;}['read'](_0x39d7cd,_0x4d33fe){return this['string']['slice'](_0x39d7cd,_0x4d33fe);}}function parseMixed(_0x166988){return(_0x18bef3,_0x2b5fa6,_0xf9e221,_0x292dd8)=>new MixedParse(_0x18bef3,_0x166988,_0x2b5fa6,_0xf9e221,_0x292dd8);}class InnerParse{constructor(_0x54fc1f,_0x4a35e2,_0x4b54f0,_0x4593d1,_0x18e78d){this['parser']=_0x54fc1f,this['parse']=_0x4a35e2,this['overlay']=_0x4b54f0,this['target']=_0x4593d1,this['from']=_0x18e78d;}}function checkRanges(_0x33b545){if(!_0x33b545['length']||_0x33b545['some'](_0xca0678=>_0xca0678['from']>=_0xca0678['to']))throw new RangeError('Invalid\x20inner\x20parse\x20ranges\x20given:\x20'+JSON['stringify'](_0x33b545));}class ActiveOverlay{constructor(_0x22228a,_0x248b58,_0x38bdcd,_0x55b517,_0x4017da,_0x34a6e3,_0x565e9e){this['parser']=_0x22228a,this['predicate']=_0x248b58,this['mounts']=_0x38bdcd,this['index']=_0x55b517,this['start']=_0x4017da,this['target']=_0x34a6e3,this['prev']=_0x565e9e,this['depth']=0x0,this['ranges']=[];}}const stoppedInner=new NodeProp({'perNode':!0x0});class MixedParse{constructor(_0x255b88,_0x2f005d,_0xdeea9e,_0x4465bd,_0x1b78e1){this['nest']=_0x2f005d,this['input']=_0xdeea9e,this['fragments']=_0x4465bd,this['ranges']=_0x1b78e1,this['inner']=[],this['innerDone']=0x0,this['baseTree']=null,this['stoppedAt']=null,this['baseParse']=_0x255b88;}['advance'](){if(this['baseParse']){let _0x541e33=this['baseParse']['advance']();if(!_0x541e33)return null;if(this['baseParse']=null,this['baseTree']=_0x541e33,this['startInner'](),null!=this['stoppedAt']){for(let _0x38a639 of this['inner'])_0x38a639['parse']['stopAt'](this['stoppedAt']);}}if(this['innerDone']==this['inner']['length']){let _0x4fd45f=this['baseTree'];return null!=this['stoppedAt']&&(_0x4fd45f=new Tree(_0x4fd45f['type'],_0x4fd45f['children'],_0x4fd45f['positions'],_0x4fd45f['length'],_0x4fd45f['propValues']['concat']([[stoppedInner,this['stoppedAt']]]))),_0x4fd45f;}let _0x408ac5=this['inner'][this['innerDone']],_0x4abb34=_0x408ac5['parse']['advance']();if(_0x4abb34){this['innerDone']++;let _0xcdc6a=Object['assign'](Object['create'](null),_0x408ac5['target']['props']);_0xcdc6a[NodeProp['mounted']['id']]=new MountedTree(_0x4abb34,_0x408ac5['overlay'],_0x408ac5['parser']),_0x408ac5['target']['props']=_0xcdc6a;}return null;}get['parsedPos'](){if(this['baseParse'])return 0x0;let _0x48c509=this['input']['length'];for(let _0xaa9e31=this['innerDone'];_0xaa9e31<this['inner']['length'];_0xaa9e31++)this['inner'][_0xaa9e31]['from']<_0x48c509&&(_0x48c509=Math['min'](_0x48c509,this['inner'][_0xaa9e31]['parse']['parsedPos']));return _0x48c509;}['stopAt'](_0x3bd29c){if(this['stoppedAt']=_0x3bd29c,this['baseParse'])this['baseParse']['stopAt'](_0x3bd29c);else{for(let _0xe098be=this['innerDone'];_0xe098be<this['inner']['length'];_0xe098be++)this['inner'][_0xe098be]['parse']['stopAt'](_0x3bd29c);}}['startInner'](){let _0x4d9e84=new FragmentCursor$2(this['fragments']),_0x3b0ff2=null,_0x40b93d=null,_0xf4b5d8=new TreeCursor(new TreeNode(this['baseTree'],this['ranges'][0x0]['from'],0x0,null),IterMode['IncludeAnonymous']|IterMode['IgnoreMounts']);t:for(let _0x7e47c6,_0x266dee;;){let _0x3e8740,_0x58ff02=!0x0;if(null!=this['stoppedAt']&&_0xf4b5d8['from']>=this['stoppedAt'])_0x58ff02=!0x1;else{if(_0x4d9e84['hasNode'](_0xf4b5d8)){if(_0x3b0ff2){let _0x45a91d=_0x3b0ff2['mounts']['find'](_0x4884dc=>_0x4884dc['frag']['from']<=_0xf4b5d8['from']&&_0x4884dc['frag']['to']>=_0xf4b5d8['to']&&_0x4884dc['mount']['overlay']);if(_0x45a91d)for(let _0x19c6ca of _0x45a91d['mount']['overlay']){let _0x2afb55=_0x19c6ca['from']+_0x45a91d['pos'],_0x5ea585=_0x19c6ca['to']+_0x45a91d['pos'];_0x2afb55>=_0xf4b5d8['from']&&_0x5ea585<=_0xf4b5d8['to']&&!_0x3b0ff2['ranges']['some'](_0x2893f5=>_0x2893f5['from']<_0x5ea585&&_0x2893f5['to']>_0x2afb55)&&_0x3b0ff2['ranges']['push']({'from':_0x2afb55,'to':_0x5ea585});}}_0x58ff02=!0x1;}else{if(_0x40b93d&&(_0x266dee=checkCover(_0x40b93d['ranges'],_0xf4b5d8['from'],_0xf4b5d8['to'])))_0x58ff02=0x2!=_0x266dee;else{if(!_0xf4b5d8['type']['isAnonymous']&&(_0x7e47c6=this['nest'](_0xf4b5d8,this['input']))&&(_0xf4b5d8['from']<_0xf4b5d8['to']||!_0x7e47c6['overlay'])){_0xf4b5d8['tree']||materialize(_0xf4b5d8);let _0x389c0c=_0x4d9e84['findMounts'](_0xf4b5d8['from'],_0x7e47c6['parser']);if('function'==typeof _0x7e47c6['overlay'])_0x3b0ff2=new ActiveOverlay(_0x7e47c6['parser'],_0x7e47c6['overlay'],_0x389c0c,this['inner']['length'],_0xf4b5d8['from'],_0xf4b5d8['tree'],_0x3b0ff2);else{let _0x3a7ca7=punchRanges(this['ranges'],_0x7e47c6['overlay']||(_0xf4b5d8['from']<_0xf4b5d8['to']?[new Range(_0xf4b5d8['from'],_0xf4b5d8['to'])]:[]));_0x3a7ca7['length']&&checkRanges(_0x3a7ca7),!_0x3a7ca7['length']&&_0x7e47c6['overlay']||this['inner']['push'](new InnerParse(_0x7e47c6['parser'],_0x3a7ca7['length']?_0x7e47c6['parser']['startParse'](this['input'],enterFragments(_0x389c0c,_0x3a7ca7),_0x3a7ca7):_0x7e47c6['parser']['startParse'](''),_0x7e47c6['overlay']?_0x7e47c6['overlay']['map'](_0x4d590f=>new Range(_0x4d590f['from']-_0xf4b5d8['from'],_0x4d590f['to']-_0xf4b5d8['from'])):null,_0xf4b5d8['tree'],_0x3a7ca7['length']?_0x3a7ca7[0x0]['from']:_0xf4b5d8['from'])),_0x7e47c6['overlay']?_0x3a7ca7['length']&&(_0x40b93d={'ranges':_0x3a7ca7,'depth':0x0,'prev':_0x40b93d}):_0x58ff02=!0x1;}}else{if(_0x3b0ff2&&(_0x3e8740=_0x3b0ff2['predicate'](_0xf4b5d8))&&(!0x0===_0x3e8740&&(_0x3e8740=new Range(_0xf4b5d8['from'],_0xf4b5d8['to'])),_0x3e8740['from']<_0x3e8740['to'])){let _0x2f6eec=_0x3b0ff2['ranges']['length']-0x1;_0x2f6eec>=0x0&&_0x3b0ff2['ranges'][_0x2f6eec]['to']==_0x3e8740['from']?_0x3b0ff2['ranges'][_0x2f6eec]={'from':_0x3b0ff2['ranges'][_0x2f6eec]['from'],'to':_0x3e8740['to']}:_0x3b0ff2['ranges']['push'](_0x3e8740);}}}}}if(_0x58ff02&&_0xf4b5d8['firstChild']())_0x3b0ff2&&_0x3b0ff2['depth']++,_0x40b93d&&_0x40b93d['depth']++;else for(;!_0xf4b5d8['nextSibling']();){if(!_0xf4b5d8['parent']())break t;if(_0x3b0ff2&&!--_0x3b0ff2['depth']){let _0x4bc141=punchRanges(this['ranges'],_0x3b0ff2['ranges']);_0x4bc141['length']&&(checkRanges(_0x4bc141),this['inner']['splice'](_0x3b0ff2['index'],0x0,new InnerParse(_0x3b0ff2['parser'],_0x3b0ff2['parser']['startParse'](this['input'],enterFragments(_0x3b0ff2['mounts'],_0x4bc141),_0x4bc141),_0x3b0ff2['ranges']['map'](_0x20af1f=>new Range(_0x20af1f['from']-_0x3b0ff2['start'],_0x20af1f['to']-_0x3b0ff2['start'])),_0x3b0ff2['target'],_0x4bc141[0x0]['from']))),_0x3b0ff2=_0x3b0ff2['prev'];}_0x40b93d&&!--_0x40b93d['depth']&&(_0x40b93d=_0x40b93d['prev']);}}}}function checkCover(_0x405737,_0x440b91,_0x15605d){for(let _0x3e3c42 of _0x405737){if(_0x3e3c42['from']>=_0x15605d)break;if(_0x3e3c42['to']>_0x440b91)return _0x3e3c42['from']<=_0x440b91&&_0x3e3c42['to']>=_0x15605d?0x2:0x1;}return 0x0;}function sliceBuf(_0x75a39e,_0x36a5d0,_0x435469,_0xd5cc6a,_0x44c211,_0x5f08b4){if(_0x36a5d0<_0x435469){let _0x3344f0=_0x75a39e['buffer'][_0x36a5d0+0x1];_0xd5cc6a['push'](_0x75a39e['slice'](_0x36a5d0,_0x435469,_0x3344f0)),_0x44c211['push'](_0x3344f0-_0x5f08b4);}}function materialize(_0x2e8b11){let {node:_0x1a3269}=_0x2e8b11,_0x5714ac=[],_0x11a904=_0x1a3269['context']['buffer'];do{_0x5714ac['push'](_0x2e8b11['index']),_0x2e8b11['parent']();}while(!_0x2e8b11['tree']);let _0x2041a5=_0x2e8b11['tree'],_0x207d36=_0x2041a5['children']['indexOf'](_0x11a904),_0x1a1d8d=_0x2041a5['children'][_0x207d36],_0x4ef044=_0x1a1d8d['buffer'],_0x368d8c=[_0x207d36];_0x2041a5['children'][_0x207d36]=function _0x5f4ed9(_0x2a24b1,_0x367c8d,_0x59435c,_0xb85111,_0x5c1e47,_0x185736){let _0x26d320=_0x5714ac[_0x185736],_0x497c77=[],_0x427f7d=[];sliceBuf(_0x1a1d8d,_0x2a24b1,_0x26d320,_0x497c77,_0x427f7d,_0xb85111);let _0x25c79e=_0x4ef044[_0x26d320+0x1],_0x3825ce=_0x4ef044[_0x26d320+0x2];_0x368d8c['push'](_0x497c77['length']);let _0x590877=_0x185736?_0x5f4ed9(_0x26d320+0x4,_0x4ef044[_0x26d320+0x3],_0x1a1d8d['set']['types'][_0x4ef044[_0x26d320]],_0x25c79e,_0x3825ce-_0x25c79e,_0x185736-0x1):_0x1a3269['toTree']();return _0x497c77['push'](_0x590877),_0x427f7d['push'](_0x25c79e-_0xb85111),sliceBuf(_0x1a1d8d,_0x4ef044[_0x26d320+0x3],_0x367c8d,_0x497c77,_0x427f7d,_0xb85111),new Tree(_0x59435c,_0x497c77,_0x427f7d,_0x5c1e47);}(0x0,_0x4ef044['length'],NodeType['none'],0x0,_0x1a1d8d['length'],_0x5714ac['length']-0x1);for(let _0x1bbf51 of _0x368d8c){let _0x198881=_0x2e8b11['tree']['children'][_0x1bbf51],_0x58dc57=_0x2e8b11['tree']['positions'][_0x1bbf51];_0x2e8b11['yield'](new TreeNode(_0x198881,_0x58dc57+_0x2e8b11['from'],_0x1bbf51,_0x2e8b11['_tree']));}}class StructureCursor{constructor(_0x4e9fd7,_0x36f0ae){this['offset']=_0x36f0ae,this['done']=!0x1,this['cursor']=_0x4e9fd7['cursor'](IterMode['IncludeAnonymous']|IterMode['IgnoreMounts']);}['moveTo'](_0x29bbf8){let {cursor:_0x5606a4}=this,_0x2a55ad=_0x29bbf8-this['offset'];for(;!this['done']&&_0x5606a4['from']<_0x2a55ad;)_0x5606a4['to']>=_0x29bbf8&&_0x5606a4['enter'](_0x2a55ad,0x1,IterMode['IgnoreOverlays']|IterMode['ExcludeBuffers'])||_0x5606a4['next'](!0x1)||(this['done']=!0x0);}['hasNode'](_0x29ee6a){if(this['moveTo'](_0x29ee6a['from']),!this['done']&&this['cursor']['from']+this['offset']==_0x29ee6a['from']&&this['cursor']['tree'])for(let _0x266fc7=this['cursor']['tree'];;){if(_0x266fc7==_0x29ee6a['tree'])return!0x0;if(!(_0x266fc7['children']['length']&&0x0==_0x266fc7['positions'][0x0]&&_0x266fc7['children'][0x0]instanceof Tree))break;_0x266fc7=_0x266fc7['children'][0x0];}return!0x1;}}let FragmentCursor$2=class{constructor(_0x5264bc){var _0xcc0327;if(this['fragments']=_0x5264bc,this['curTo']=0x0,this['fragI']=0x0,_0x5264bc['length']){let _0x396f6d=this['curFrag']=_0x5264bc[0x0];this['curTo']=null!==(_0xcc0327=_0x396f6d['tree']['prop'](stoppedInner))&&void 0x0!==_0xcc0327?_0xcc0327:_0x396f6d['to'],this['inner']=new StructureCursor(_0x396f6d['tree'],-_0x396f6d['offset']);}else this['curFrag']=this['inner']=null;}['hasNode'](_0x9aeb11){for(;this['curFrag']&&_0x9aeb11['from']>=this['curTo'];)this['nextFrag']();return this['curFrag']&&this['curFrag']['from']<=_0x9aeb11['from']&&this['curTo']>=_0x9aeb11['to']&&this['inner']['hasNode'](_0x9aeb11);}['nextFrag'](){var _0x3ec2c1;if(this['fragI']++,this['fragI']==this['fragments']['length'])this['curFrag']=this['inner']=null;else{let _0x5d06bc=this['curFrag']=this['fragments'][this['fragI']];this['curTo']=null!==(_0x3ec2c1=_0x5d06bc['tree']['prop'](stoppedInner))&&void 0x0!==_0x3ec2c1?_0x3ec2c1:_0x5d06bc['to'],this['inner']=new StructureCursor(_0x5d06bc['tree'],-_0x5d06bc['offset']);}}['findMounts'](_0x56c5e2,_0x1c9c49){var _0x3bf0f6;let _0x2b2f20=[];if(this['inner']){this['inner']['cursor']['moveTo'](_0x56c5e2,0x1);for(let _0x41c25e=this['inner']['cursor']['node'];_0x41c25e;_0x41c25e=_0x41c25e['parent']){let _0x4793a1=null===(_0x3bf0f6=_0x41c25e['tree'])||void 0x0===_0x3bf0f6?void 0x0:_0x3bf0f6['prop'](NodeProp['mounted']);if(_0x4793a1&&_0x4793a1['parser']==_0x1c9c49)for(let _0x28c874=this['fragI'];_0x28c874<this['fragments']['length'];_0x28c874++){let _0x566920=this['fragments'][_0x28c874];if(_0x566920['from']>=_0x41c25e['to'])break;_0x566920['tree']==this['curFrag']['tree']&&_0x2b2f20['push']({'frag':_0x566920,'pos':_0x41c25e['from']-_0x566920['offset'],'mount':_0x4793a1});}}}return _0x2b2f20;}};function punchRanges(_0x4cc524,_0x58a7a4){let _0x1888dc=null,_0x4d4cf5=_0x58a7a4;for(let _0x428c97=0x1,_0x3ad07f=0x0;_0x428c97<_0x4cc524['length'];_0x428c97++){let _0x2367b8=_0x4cc524[_0x428c97-0x1]['to'],_0x30505e=_0x4cc524[_0x428c97]['from'];for(;_0x3ad07f<_0x4d4cf5['length'];_0x3ad07f++){let _0x4d2984=_0x4d4cf5[_0x3ad07f];if(_0x4d2984['from']>=_0x30505e)break;_0x4d2984['to']<=_0x2367b8||(_0x1888dc||(_0x4d4cf5=_0x1888dc=_0x58a7a4['slice']()),_0x4d2984['from']<_0x2367b8?(_0x1888dc[_0x3ad07f]=new Range(_0x4d2984['from'],_0x2367b8),_0x4d2984['to']>_0x30505e&&_0x1888dc['splice'](_0x3ad07f+0x1,0x0,new Range(_0x30505e,_0x4d2984['to']))):_0x4d2984['to']>_0x30505e?_0x1888dc[_0x3ad07f--]=new Range(_0x30505e,_0x4d2984['to']):_0x1888dc['splice'](_0x3ad07f--,0x1));}}return _0x4d4cf5;}function findCoverChanges(_0x2c6923,_0x330efb,_0x336a95,_0x378636){let _0x21a33f=0x0,_0x2a66e0=0x0,_0x40a66f=!0x1,_0x1214f3=!0x1,_0x5cb8cd=-0x3b9aca00,_0x1141c8=[];for(;;){let _0x2234ac=_0x21a33f==_0x2c6923['length']?0x3b9aca00:_0x40a66f?_0x2c6923[_0x21a33f]['to']:_0x2c6923[_0x21a33f]['from'],_0x40c816=_0x2a66e0==_0x330efb['length']?0x3b9aca00:_0x1214f3?_0x330efb[_0x2a66e0]['to']:_0x330efb[_0x2a66e0]['from'];if(_0x40a66f!=_0x1214f3){let _0x4bb1a6=Math['max'](_0x5cb8cd,_0x336a95),_0x45abb2=Math['min'](_0x2234ac,_0x40c816,_0x378636);_0x4bb1a6<_0x45abb2&&_0x1141c8['push'](new Range(_0x4bb1a6,_0x45abb2));}if(_0x5cb8cd=Math['min'](_0x2234ac,_0x40c816),0x3b9aca00==_0x5cb8cd)break;_0x2234ac==_0x5cb8cd&&(_0x40a66f?(_0x40a66f=!0x1,_0x21a33f++):_0x40a66f=!0x0),_0x40c816==_0x5cb8cd&&(_0x1214f3?(_0x1214f3=!0x1,_0x2a66e0++):_0x1214f3=!0x0);}return _0x1141c8;}function enterFragments(_0x300e54,_0x4d93ef){let _0x301450=[];for(let {pos:_0x231b7f,mount:_0x309059,frag:_0x561787}of _0x300e54){let _0xfeb631=_0x231b7f+(_0x309059['overlay']?_0x309059['overlay'][0x0]['from']:0x0),_0x3caf9d=_0xfeb631+_0x309059['tree']['length'],_0x2bf09a=Math['max'](_0x561787['from'],_0xfeb631),_0x19f149=Math['min'](_0x561787['to'],_0x3caf9d);if(_0x309059['overlay']){let _0x2d2560=_0x309059['overlay']['map'](_0x31570b=>new Range(_0x31570b['from']+_0x231b7f,_0x31570b['to']+_0x231b7f)),_0xf1a318=findCoverChanges(_0x4d93ef,_0x2d2560,_0x2bf09a,_0x19f149);for(let _0x3e90ed=0x0,_0xe8d050=_0x2bf09a;;_0x3e90ed++){let _0x26509b=_0x3e90ed==_0xf1a318['length'],_0x1d7b5d=_0x26509b?_0x19f149:_0xf1a318[_0x3e90ed]['from'];if(_0x1d7b5d>_0xe8d050&&_0x301450['push'](new TreeFragment(_0xe8d050,_0x1d7b5d,_0x309059['tree'],-_0xfeb631,_0x561787['from']>=_0xe8d050||_0x561787['openStart'],_0x561787['to']<=_0x1d7b5d||_0x561787['openEnd'])),_0x26509b)break;_0xe8d050=_0xf1a318[_0x3e90ed]['to'];}}else _0x301450['push'](new TreeFragment(_0x2bf09a,_0x19f149,_0x309059['tree'],-_0xfeb631,_0x561787['from']>=_0xfeb631||_0x561787['openStart'],_0x561787['to']<=_0x3caf9d||_0x561787['openEnd']));}return _0x301450;}let nextTagID=0x0;class Tag{constructor(_0xb5cc12,_0x5387a3,_0x3ac8be,_0x5a3781){this['name']=_0xb5cc12,this['set']=_0x5387a3,this['base']=_0x3ac8be,this['modified']=_0x5a3781,this['id']=nextTagID++;}['toString'](){let {name:_0x4eab26}=this;for(let _0x2c5488 of this['modified'])_0x2c5488['name']&&(_0x4eab26=_0x2c5488['name']+'('+_0x4eab26+')');return _0x4eab26;}static['define'](_0x42638c,_0x295772){let _0x129836='string'==typeof _0x42638c?_0x42638c:'?';if(_0x42638c instanceof Tag&&(_0x295772=_0x42638c),null==_0x295772?void 0x0:_0x295772['base'])throw new Error('Can\x20not\x20derive\x20from\x20a\x20modified\x20tag');let _0xe42b5=new Tag(_0x129836,[],null,[]);if(_0xe42b5['set']['push'](_0xe42b5),_0x295772){for(let t of _0x295772['set'])_0xe42b5['set']['push'](t);}return _0xe42b5;}static['defineModifier'](_0x31633b){let _0x291f40=new Modifier(_0x31633b);return _0x5e2126=>_0x5e2126['modified']['indexOf'](_0x291f40)>-0x1?_0x5e2126:Modifier['get'](_0x5e2126['base']||_0x5e2126,_0x5e2126['modified']['concat'](_0x291f40)['sort']((_0x292986,_0x4d9aa0)=>_0x292986['id']-_0x4d9aa0['id']));}}let nextModifierID=0x0;class Modifier{constructor(_0x1a5d66){this['name']=_0x1a5d66,this['instances']=[],this['id']=nextModifierID++;}static['get'](_0x1f8f1a,_0x1d4bdd){if(!_0x1d4bdd['length'])return _0x1f8f1a;let _0x2bb907=_0x1d4bdd[0x0]['instances']['find'](t=>t['base']==_0x1f8f1a&&sameArray(_0x1d4bdd,t['modified']));if(_0x2bb907)return _0x2bb907;let _0x5c029f=[],_0x50b329=new Tag(_0x1f8f1a['name'],_0x5c029f,_0x1f8f1a,_0x1d4bdd);for(let _0x417b55 of _0x1d4bdd)_0x417b55['instances']['push'](_0x50b329);let _0xe5bc7b=powerSet(_0x1d4bdd);for(let _0x496d2a of _0x1f8f1a['set'])if(!_0x496d2a['modified']['length']){for(let _0x394832 of _0xe5bc7b)_0x5c029f['push'](Modifier['get'](_0x496d2a,_0x394832));}return _0x50b329;}}function sameArray(_0x39793e,_0x13a3da){return _0x39793e['length']==_0x13a3da['length']&&_0x39793e['every']((_0x50d2b7,_0xbc2e4f)=>_0x50d2b7==_0x13a3da[_0xbc2e4f]);}function powerSet(_0x2f1bf7){let _0x4f41bb=[[]];for(let _0x56db53=0x0;_0x56db53<_0x2f1bf7['length'];_0x56db53++)for(let _0x1209f9=0x0,_0x5e2176=_0x4f41bb['length'];_0x1209f9<_0x5e2176;_0x1209f9++)_0x4f41bb['push'](_0x4f41bb[_0x1209f9]['concat'](_0x2f1bf7[_0x56db53]));return _0x4f41bb['sort']((_0x386360,_0x5996d1)=>_0x5996d1['length']-_0x386360['length']);}function styleTags(_0x5b9299){let _0x14146d=Object['create'](null);for(let _0x4ea01b in _0x5b9299){let _0x4c2371=_0x5b9299[_0x4ea01b];Array['isArray'](_0x4c2371)||(_0x4c2371=[_0x4c2371]);for(let _0x56287c of _0x4ea01b['split']('\x20'))if(_0x56287c){let _0x4797cd=[],_0x774d89=0x2,_0x4edd19=_0x56287c;for(let _0x42a4d6=0x0;;){if('...'==_0x4edd19&&_0x42a4d6>0x0&&_0x42a4d6+0x3==_0x56287c['length']){_0x774d89=0x1;break;}let _0xba71ca=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/['exec'](_0x4edd19);if(!_0xba71ca)throw new RangeError('Invalid\x20path:\x20'+_0x56287c);if(_0x4797cd['push']('*'==_0xba71ca[0x0]?'':'\x22'==_0xba71ca[0x0][0x0]?JSON['parse'](_0xba71ca[0x0]):_0xba71ca[0x0]),_0x42a4d6+=_0xba71ca[0x0]['length'],_0x42a4d6==_0x56287c['length'])break;let _0xb39e4=_0x56287c[_0x42a4d6++];if(_0x42a4d6==_0x56287c['length']&&'!'==_0xb39e4){_0x774d89=0x0;break;}if('/'!=_0xb39e4)throw new RangeError('Invalid\x20path:\x20'+_0x56287c);_0x4edd19=_0x56287c['slice'](_0x42a4d6);}let _0x5bf8ee=_0x4797cd['length']-0x1,_0x2fe04a=_0x4797cd[_0x5bf8ee];if(!_0x2fe04a)throw new RangeError('Invalid\x20path:\x20'+_0x56287c);let _0x3abf6e=new Rule(_0x4c2371,_0x774d89,_0x5bf8ee>0x0?_0x4797cd['slice'](0x0,_0x5bf8ee):null);_0x14146d[_0x2fe04a]=_0x3abf6e['sort'](_0x14146d[_0x2fe04a]);}}return ruleNodeProp['add'](_0x14146d);}const ruleNodeProp=new NodeProp();class Rule{constructor(_0x4bed5e,_0x5b7141,_0x44cc4a,_0x25f45f){this['tags']=_0x4bed5e,this['mode']=_0x5b7141,this['context']=_0x44cc4a,this['next']=_0x25f45f;}get['opaque'](){return 0x0==this['mode'];}get['inherit'](){return 0x1==this['mode'];}['sort'](_0x378f58){return!_0x378f58||_0x378f58['depth']<this['depth']?(this['next']=_0x378f58,this):(_0x378f58['next']=this['sort'](_0x378f58['next']),_0x378f58);}get['depth'](){return this['context']?this['context']['length']:0x0;}}function tagHighlighter(_0x29e5bc,_0x37c98e){let _0x51f996=Object['create'](null);for(let _0xf2315b of _0x29e5bc)if(Array['isArray'](_0xf2315b['tag'])){for(let _0x35a886 of _0xf2315b['tag'])_0x51f996[_0x35a886['id']]=_0xf2315b['class'];}else _0x51f996[_0xf2315b['tag']['id']]=_0xf2315b['class'];let {scope:_0x5d2903,all:_0x5cbb8f=null}=_0x37c98e||{};return{'style':_0x42a53e=>{let _0x59755a=_0x5cbb8f;for(let _0x1498cd of _0x42a53e)for(let _0x1d2443 of _0x1498cd['set']){let _0x1f795f=_0x51f996[_0x1d2443['id']];if(_0x1f795f){_0x59755a=_0x59755a?_0x59755a+'\x20'+_0x1f795f:_0x1f795f;break;}}return _0x59755a;},'scope':_0x5d2903};}function highlightTags(_0x381d82,_0x453136){let _0x357606=null;for(let _0x11719a of _0x381d82){let _0x172000=_0x11719a['style'](_0x453136);_0x172000&&(_0x357606=_0x357606?_0x357606+'\x20'+_0x172000:_0x172000);}return _0x357606;}function highlightTree(_0x9c312c,_0x17b6f8,_0x2f76ee,_0x2e74d5=0x0,_0x32bca2=_0x9c312c['length']){let _0x13ce4a=new HighlightBuilder(_0x2e74d5,Array['isArray'](_0x17b6f8)?_0x17b6f8:[_0x17b6f8],_0x2f76ee);_0x13ce4a['highlightRange'](_0x9c312c['cursor'](),_0x2e74d5,_0x32bca2,'',_0x13ce4a['highlighters']),_0x13ce4a['flush'](_0x32bca2);}Rule['empty']=new Rule([],0x2,null);class HighlightBuilder{constructor(_0x4b917b,_0x13d610,_0x4035a1){this['at']=_0x4b917b,this['highlighters']=_0x13d610,this['span']=_0x4035a1,this['class']='';}['startSpan'](_0x58ca83,_0x4ad723){_0x4ad723!=this['class']&&(this['flush'](_0x58ca83),_0x58ca83>this['at']&&(this['at']=_0x58ca83),this['class']=_0x4ad723);}['flush'](_0xc9ae57){_0xc9ae57>this['at']&&this['class']&&this['span'](this['at'],_0xc9ae57,this['class']);}['highlightRange'](_0x432b5e,_0x23ffa9,_0x3d7474,_0x2999fd,_0x55a7f9){let {type:_0x3b83fb,from:_0x36ef42,to:_0x4e4e70}=_0x432b5e;if(_0x36ef42>=_0x3d7474||_0x4e4e70<=_0x23ffa9)return;_0x3b83fb['isTop']&&(_0x55a7f9=this['highlighters']['filter'](_0x2c25aa=>!_0x2c25aa['scope']||_0x2c25aa['scope'](_0x3b83fb)));let _0x4cfa2b=_0x2999fd,_0x472700=getStyleTags(_0x432b5e)||Rule['empty'],_0x8384f8=highlightTags(_0x55a7f9,_0x472700['tags']);if(_0x8384f8&&(_0x4cfa2b&&(_0x4cfa2b+='\x20'),_0x4cfa2b+=_0x8384f8,0x1==_0x472700['mode']&&(_0x2999fd+=(_0x2999fd?'\x20':'')+_0x8384f8)),this['startSpan'](Math['max'](_0x23ffa9,_0x36ef42),_0x4cfa2b),_0x472700['opaque'])return;let _0x27d727=_0x432b5e['tree']&&_0x432b5e['tree']['prop'](NodeProp['mounted']);if(_0x27d727&&_0x27d727['overlay']){let _0x145ea8=_0x432b5e['node']['enter'](_0x27d727['overlay'][0x0]['from']+_0x36ef42,0x1),_0xc86e86=this['highlighters']['filter'](_0x40ab7d=>!_0x40ab7d['scope']||_0x40ab7d['scope'](_0x27d727['tree']['type'])),_0x5c87ae=_0x432b5e['firstChild']();for(let _0x2fb51f=0x0,_0x3eb338=_0x36ef42;;_0x2fb51f++){let _0x167578=_0x2fb51f<_0x27d727['overlay']['length']?_0x27d727['overlay'][_0x2fb51f]:null,_0x15b43a=_0x167578?_0x167578['from']+_0x36ef42:_0x4e4e70,_0x82e1a6=Math['max'](_0x23ffa9,_0x3eb338),_0x5642b5=Math['min'](_0x3d7474,_0x15b43a);if(_0x82e1a6<_0x5642b5&&_0x5c87ae){for(;_0x432b5e['from']<_0x5642b5&&(this['highlightRange'](_0x432b5e,_0x82e1a6,_0x5642b5,_0x2999fd,_0x55a7f9),this['startSpan'](Math['min'](_0x5642b5,_0x432b5e['to']),_0x4cfa2b),!(_0x432b5e['to']>=_0x15b43a)&&_0x432b5e['nextSibling']()););}if(!_0x167578||_0x15b43a>_0x3d7474)break;_0x3eb338=_0x167578['to']+_0x36ef42,_0x3eb338>_0x23ffa9&&(this['highlightRange'](_0x145ea8['cursor'](),Math['max'](_0x23ffa9,_0x167578['from']+_0x36ef42),Math['min'](_0x3d7474,_0x3eb338),'',_0xc86e86),this['startSpan'](Math['min'](_0x3d7474,_0x3eb338),_0x4cfa2b));}_0x5c87ae&&_0x432b5e['parent']();}else{if(_0x432b5e['firstChild']()){_0x27d727&&(_0x2999fd='');do{if(!(_0x432b5e['to']<=_0x23ffa9)){if(_0x432b5e['from']>=_0x3d7474)break;this['highlightRange'](_0x432b5e,_0x23ffa9,_0x3d7474,_0x2999fd,_0x55a7f9),this['startSpan'](Math['min'](_0x3d7474,_0x432b5e['to']),_0x4cfa2b);}}while(_0x432b5e['nextSibling']());_0x432b5e['parent']();}}}}function getStyleTags(_0x55e99c){let _0x350bc0=_0x55e99c['type']['prop'](ruleNodeProp);for(;_0x350bc0&&_0x350bc0['context']&&!_0x55e99c['matchContext'](_0x350bc0['context']);)_0x350bc0=_0x350bc0['next'];return _0x350bc0||null;}const t=Tag['define'],comment=t(),name=t(),typeName=t(name),propertyName=t(name),literal=t(),string=t(literal),number=t(literal),content=t(),heading=t(content),keyword=t(),operator=t(),punctuation=t(),bracket=t(punctuation),meta=t(),tags$1={'comment':comment,'lineComment':t(comment),'blockComment':t(comment),'docComment':t(comment),'name':name,'variableName':t(name),'typeName':typeName,'tagName':t(typeName),'propertyName':propertyName,'attributeName':t(propertyName),'className':t(name),'labelName':t(name),'namespace':t(name),'macroName':t(name),'literal':literal,'string':string,'docString':t(string),'character':t(string),'attributeValue':t(string),'number':number,'integer':t(number),'float':t(number),'bool':t(literal),'regexp':t(literal),'escape':t(literal),'color':t(literal),'url':t(literal),'keyword':keyword,'self':t(keyword),'null':t(keyword),'atom':t(keyword),'unit':t(keyword),'modifier':t(keyword),'operatorKeyword':t(keyword),'controlKeyword':t(keyword),'definitionKeyword':t(keyword),'moduleKeyword':t(keyword),'operator':operator,'derefOperator':t(operator),'arithmeticOperator':t(operator),'logicOperator':t(operator),'bitwiseOperator':t(operator),'compareOperator':t(operator),'updateOperator':t(operator),'definitionOperator':t(operator),'typeOperator':t(operator),'controlOperator':t(operator),'punctuation':punctuation,'separator':t(punctuation),'bracket':bracket,'angleBracket':t(bracket),'squareBracket':t(bracket),'paren':t(bracket),'brace':t(bracket),'content':content,'heading':heading,'heading1':t(heading),'heading2':t(heading),'heading3':t(heading),'heading4':t(heading),'heading5':t(heading),'heading6':t(heading),'contentSeparator':t(content),'list':t(content),'quote':t(content),'emphasis':t(content),'strong':t(content),'link':t(content),'monospace':t(content),'strikethrough':t(content),'inserted':t(),'deleted':t(),'changed':t(),'invalid':t(),'meta':meta,'documentMeta':t(meta),'annotation':t(meta),'processingInstruction':t(meta),'definition':Tag['defineModifier']('definition'),'constant':Tag['defineModifier']('constant'),'function':Tag['defineModifier']('function'),'standard':Tag['defineModifier']('standard'),'local':Tag['defineModifier']('local'),'special':Tag['defineModifier']('special')};for(let e in tags$1){let i=tags$1[e];i instanceof Tag&&(i['name']=e);}var _a;tagHighlighter([{'tag':tags$1['link'],'class':'tok-link'},{'tag':tags$1['heading'],'class':'tok-heading'},{'tag':tags$1['emphasis'],'class':'tok-emphasis'},{'tag':tags$1['strong'],'class':'tok-strong'},{'tag':tags$1['keyword'],'class':'tok-keyword'},{'tag':tags$1['atom'],'class':'tok-atom'},{'tag':tags$1['bool'],'class':'tok-bool'},{'tag':tags$1['url'],'class':'tok-url'},{'tag':tags$1['labelName'],'class':'tok-labelName'},{'tag':tags$1['inserted'],'class':'tok-inserted'},{'tag':tags$1['deleted'],'class':'tok-deleted'},{'tag':tags$1['literal'],'class':'tok-literal'},{'tag':tags$1['string'],'class':'tok-string'},{'tag':tags$1['number'],'class':'tok-number'},{'tag':[tags$1['regexp'],tags$1['escape'],tags$1['special'](tags$1['string'])],'class':'tok-string2'},{'tag':tags$1['variableName'],'class':'tok-variableName'},{'tag':tags$1['local'](tags$1['variableName']),'class':'tok-variableName\x20tok-local'},{'tag':tags$1['definition'](tags$1['variableName']),'class':'tok-variableName\x20tok-definition'},{'tag':tags$1['special'](tags$1['variableName']),'class':'tok-variableName2'},{'tag':tags$1['definition'](tags$1['propertyName']),'class':'tok-propertyName\x20tok-definition'},{'tag':tags$1['typeName'],'class':'tok-typeName'},{'tag':tags$1['namespace'],'class':'tok-namespace'},{'tag':tags$1['className'],'class':'tok-className'},{'tag':tags$1['macroName'],'class':'tok-macroName'},{'tag':tags$1['propertyName'],'class':'tok-propertyName'},{'tag':tags$1['operator'],'class':'tok-operator'},{'tag':tags$1['comment'],'class':'tok-comment'},{'tag':tags$1['meta'],'class':'tok-meta'},{'tag':tags$1['invalid'],'class':'tok-invalid'},{'tag':tags$1['punctuation'],'class':'tok-punctuation'}]);const languageDataProp=new NodeProp();function defineLanguageFacet(_0x525549){return Facet['define']({'combine':_0x525549?_0x562d51=>_0x562d51['concat'](_0x525549):void 0x0});}const sublanguageProp=new NodeProp();class Language{constructor(_0x15b344,_0x19b786,_0x491cbe=[],_0xcfd489=''){this['data']=_0x15b344,this['name']=_0xcfd489,EditorState['prototype']['hasOwnProperty']('tree')||Object['defineProperty'](EditorState['prototype'],'tree',{'get'(){return syntaxTree(this);}}),this['parser']=_0x19b786,this['extension']=[language['of'](this),EditorState['languageData']['of']((_0x1c9719,_0x39b8f1,_0x156c0b)=>{let _0x4eefb6=topNodeAt(_0x1c9719,_0x39b8f1,_0x156c0b),_0xa2e542=_0x4eefb6['type']['prop'](languageDataProp);if(!_0xa2e542)return[];let _0x1e194f=_0x1c9719['facet'](_0xa2e542),_0xc1340f=_0x4eefb6['type']['prop'](sublanguageProp);if(_0xc1340f){let _0x5ae9ab=_0x4eefb6['resolve'](_0x39b8f1-_0x4eefb6['from'],_0x156c0b);for(let _0x5dfa71 of _0xc1340f)if(_0x5dfa71['test'](_0x5ae9ab,_0x1c9719)){let _0x38831e=_0x1c9719['facet'](_0x5dfa71['facet']);return'replace'==_0x5dfa71['type']?_0x38831e:_0x38831e['concat'](_0x1e194f);}}return _0x1e194f;})]['concat'](_0x491cbe);}['isActiveAt'](_0x6bb0d1,_0xd2b4fa,_0x1160a3=-0x1){return topNodeAt(_0x6bb0d1,_0xd2b4fa,_0x1160a3)['type']['prop'](languageDataProp)==this['data'];}['findRegions'](_0x2a99af){let _0x3c3d5e=_0x2a99af['facet'](language);if((null==_0x3c3d5e?void 0x0:_0x3c3d5e['data'])==this['data'])return[{'from':0x0,'to':_0x2a99af['doc']['length']}];if(!_0x3c3d5e||!_0x3c3d5e['allowsNesting'])return[];let _0x135c47=[],_0x44ecd3=(_0x341bd6,_0x286483)=>{if(_0x341bd6['prop'](languageDataProp)==this['data'])return void _0x135c47['push']({'from':_0x286483,'to':_0x286483+_0x341bd6['length']});let _0x1fd158=_0x341bd6['prop'](NodeProp['mounted']);if(_0x1fd158){if(_0x1fd158['tree']['prop'](languageDataProp)==this['data']){if(_0x1fd158['overlay']){for(let _0x2b56b4 of _0x1fd158['overlay'])_0x135c47['push']({'from':_0x2b56b4['from']+_0x286483,'to':_0x2b56b4['to']+_0x286483});}else _0x135c47['push']({'from':_0x286483,'to':_0x286483+_0x341bd6['length']});return;}if(_0x1fd158['overlay']){let _0x56a5c9=_0x135c47['length'];if(_0x44ecd3(_0x1fd158['tree'],_0x1fd158['overlay'][0x0]['from']+_0x286483),_0x135c47['length']>_0x56a5c9)return;}}for(let _0x5c6641=0x0;_0x5c6641<_0x341bd6['children']['length'];_0x5c6641++){let _0xee5b66=_0x341bd6['children'][_0x5c6641];_0xee5b66 instanceof Tree&&_0x44ecd3(_0xee5b66,_0x341bd6['positions'][_0x5c6641]+_0x286483);}};return _0x44ecd3(syntaxTree(_0x2a99af),0x0),_0x135c47;}get['allowsNesting'](){return!0x0;}}function topNodeAt(_0x154c66,_0x3d43fe,_0x5a7e2c){let _0x37a6bb=_0x154c66['facet'](language),_0x30a5fd=syntaxTree(_0x154c66)['topNode'];if(!_0x37a6bb||_0x37a6bb['allowsNesting']){for(let _0x184887=_0x30a5fd;_0x184887;_0x184887=_0x184887['enter'](_0x3d43fe,_0x5a7e2c,IterMode['ExcludeBuffers']))_0x184887['type']['isTop']&&(_0x30a5fd=_0x184887);}return _0x30a5fd;}Language['setState']=StateEffect['define']();class LRLanguage extends Language{constructor(_0x1f8f6b,_0x30cdbf,_0x29465c){super(_0x1f8f6b,_0x30cdbf,[],_0x29465c),this['parser']=_0x30cdbf;}static['define'](_0x44e3ab){let _0x300f6e=defineLanguageFacet(_0x44e3ab['languageData']);return new LRLanguage(_0x300f6e,_0x44e3ab['parser']['configure']({'props':[languageDataProp['add'](_0x25284c=>_0x25284c['isTop']?_0x300f6e:void 0x0)]}),_0x44e3ab['name']);}['configure'](_0x5ec53f,_0x5d2342){return new LRLanguage(this['data'],this['parser']['configure'](_0x5ec53f),_0x5d2342||this['name']);}get['allowsNesting'](){return this['parser']['hasWrappers']();}}function syntaxTree(_0x48060a){let _0x103f5f=_0x48060a['field'](Language['state'],!0x1);return _0x103f5f?_0x103f5f['tree']:Tree['empty'];}class DocInput{constructor(_0x237fe0){this['doc']=_0x237fe0,this['cursorPos']=0x0,this['string']='',this['cursor']=_0x237fe0['iter']();}get['length'](){return this['doc']['length'];}['syncTo'](_0x39223a){return this['string']=this['cursor']['next'](_0x39223a-this['cursorPos'])['value'],this['cursorPos']=_0x39223a+this['string']['length'],this['cursorPos']-this['string']['length'];}['chunk'](_0x315806){return this['syncTo'](_0x315806),this['string'];}get['lineChunks'](){return!0x0;}['read'](_0x3984e9,_0x22b618){let _0x4fb790=this['cursorPos']-this['string']['length'];return _0x3984e9<_0x4fb790||_0x22b618>=this['cursorPos']?this['doc']['sliceString'](_0x3984e9,_0x22b618):this['string']['slice'](_0x3984e9-_0x4fb790,_0x22b618-_0x4fb790);}}let currentContext=null;class ParseContext{constructor(_0x319292,_0x4bf054,_0x27e222=[],_0x11b0d6,_0x3028e4,_0x214ea4,_0x1849ff,_0x50dc85){this['parser']=_0x319292,this['state']=_0x4bf054,this['fragments']=_0x27e222,this['tree']=_0x11b0d6,this['treeLen']=_0x3028e4,this['viewport']=_0x214ea4,this['skipped']=_0x1849ff,this['scheduleOn']=_0x50dc85,this['parse']=null,this['tempSkipped']=[];}static['create'](_0x3fad28,_0x496639,_0x147d64){return new ParseContext(_0x3fad28,_0x496639,[],Tree['empty'],0x0,_0x147d64,[],null);}['startParse'](){return this['parser']['startParse'](new DocInput(this['state']['doc']),this['fragments']);}['work'](_0x3e0425,_0x25a33f){return null!=_0x25a33f&&_0x25a33f>=this['state']['doc']['length']&&(_0x25a33f=void 0x0),this['tree']!=Tree['empty']&&this['isDone'](null!=_0x25a33f?_0x25a33f:this['state']['doc']['length'])?(this['takeTree'](),!0x0):this['withContext'](()=>{var _0x6130de;if('number'==typeof _0x3e0425){let _0x1cf3de=Date['now']()+_0x3e0425;_0x3e0425=()=>Date['now']()>_0x1cf3de;}for(this['parse']||(this['parse']=this['startParse']()),null!=_0x25a33f&&(null==this['parse']['stoppedAt']||this['parse']['stoppedAt']>_0x25a33f)&&_0x25a33f<this['state']['doc']['length']&&this['parse']['stopAt'](_0x25a33f);;){let _0x43bc03=this['parse']['advance']();if(_0x43bc03){if(this['fragments']=this['withoutTempSkipped'](TreeFragment['addTree'](_0x43bc03,this['fragments'],null!=this['parse']['stoppedAt'])),this['treeLen']=null!==(_0x6130de=this['parse']['stoppedAt'])&&void 0x0!==_0x6130de?_0x6130de:this['state']['doc']['length'],this['tree']=_0x43bc03,this['parse']=null,!(this['treeLen']<(null!=_0x25a33f?_0x25a33f:this['state']['doc']['length'])))return!0x0;this['parse']=this['startParse']();}if(_0x3e0425())return!0x1;}});}['takeTree'](){let _0x25686d,_0x992c3f;this['parse']&&(_0x25686d=this['parse']['parsedPos'])>=this['treeLen']&&((null==this['parse']['stoppedAt']||this['parse']['stoppedAt']>_0x25686d)&&this['parse']['stopAt'](_0x25686d),this['withContext'](()=>{for(;!(_0x992c3f=this['parse']['advance']()););}),this['treeLen']=_0x25686d,this['tree']=_0x992c3f,this['fragments']=this['withoutTempSkipped'](TreeFragment['addTree'](this['tree'],this['fragments'],!0x0)),this['parse']=null);}['withContext'](_0x570603){let _0xd89dd1=currentContext;currentContext=this;try{return _0x570603();}finally{currentContext=_0xd89dd1;}}['withoutTempSkipped'](_0x4ba729){for(let _0x4b5305;_0x4b5305=this['tempSkipped']['pop']();)_0x4ba729=cutFragments(_0x4ba729,_0x4b5305['from'],_0x4b5305['to']);return _0x4ba729;}['changes'](_0xd60949,_0x27e93d){let {fragments:_0x4187df,tree:_0xd8059a,treeLen:_0x4700d0,viewport:_0x33302a,skipped:_0x3d75c5}=this;if(this['takeTree'](),!_0xd60949['empty']){let _0x17cf0d=[];if(_0xd60949['iterChangedRanges']((_0x227768,_0x75ef53,_0x2c77c9,_0x3f8fc0)=>_0x17cf0d['push']({'fromA':_0x227768,'toA':_0x75ef53,'fromB':_0x2c77c9,'toB':_0x3f8fc0})),_0x4187df=TreeFragment['applyChanges'](_0x4187df,_0x17cf0d),_0xd8059a=Tree['empty'],_0x4700d0=0x0,_0x33302a={'from':_0xd60949['mapPos'](_0x33302a['from'],-0x1),'to':_0xd60949['mapPos'](_0x33302a['to'],0x1)},this['skipped']['length']){_0x3d75c5=[];for(let _0x453851 of this['skipped']){let _0x2d3a79=_0xd60949['mapPos'](_0x453851['from'],0x1),_0x337cd7=_0xd60949['mapPos'](_0x453851['to'],-0x1);_0x2d3a79<_0x337cd7&&_0x3d75c5['push']({'from':_0x2d3a79,'to':_0x337cd7});}}}return new ParseContext(this['parser'],_0x27e93d,_0x4187df,_0xd8059a,_0x4700d0,_0x33302a,_0x3d75c5,this['scheduleOn']);}['updateViewport'](_0x38ff39){if(this['viewport']['from']==_0x38ff39['from']&&this['viewport']['to']==_0x38ff39['to'])return!0x1;this['viewport']=_0x38ff39;let _0x445845=this['skipped']['length'];for(let _0x1562ae=0x0;_0x1562ae<this['skipped']['length'];_0x1562ae++){let {from:_0x4ace56,to:_0x2a71d6}=this['skipped'][_0x1562ae];_0x4ace56<_0x38ff39['to']&&_0x2a71d6>_0x38ff39['from']&&(this['fragments']=cutFragments(this['fragments'],_0x4ace56,_0x2a71d6),this['skipped']['splice'](_0x1562ae--,0x1));}return!(this['skipped']['length']>=_0x445845)&&(this['reset'](),!0x0);}['reset'](){this['parse']&&(this['takeTree'](),this['parse']=null);}['skipUntilInView'](_0x65747b,_0xd8bbb6){this['skipped']['push']({'from':_0x65747b,'to':_0xd8bbb6});}static['getSkippingParser'](_0x330430){return new class extends Parser{['createParse'](_0x1b07da,_0x5e66e1,_0xb02ebf){let _0x1cda67=_0xb02ebf[0x0]['from'],_0x1552b3=_0xb02ebf[_0xb02ebf['length']-0x1]['to'],_0x4a1923={'parsedPos':_0x1cda67,'advance'(){let _0x542680=currentContext;if(_0x542680){for(let _0xb9688d of _0xb02ebf)_0x542680['tempSkipped']['push'](_0xb9688d);_0x330430&&(_0x542680['scheduleOn']=_0x542680['scheduleOn']?Promise['all']([_0x542680['scheduleOn'],_0x330430]):_0x330430);}return this['parsedPos']=_0x1552b3,new Tree(NodeType['none'],[],[],_0x1552b3-_0x1cda67);},'stoppedAt':null,'stopAt'(){}};return _0x4a1923;}}();}['isDone'](_0xc7f853){_0xc7f853=Math['min'](_0xc7f853,this['state']['doc']['length']);let _0x1e78c3=this['fragments'];return this['treeLen']>=_0xc7f853&&_0x1e78c3['length']&&0x0==_0x1e78c3[0x0]['from']&&_0x1e78c3[0x0]['to']>=_0xc7f853;}static['get'](){return currentContext;}}function cutFragments(_0x25f6f8,_0x4155c9,_0x40a051){return TreeFragment['applyChanges'](_0x25f6f8,[{'fromA':_0x4155c9,'toA':_0x40a051,'fromB':_0x4155c9,'toB':_0x40a051}]);}class LanguageState{constructor(_0x5f20f1){this['context']=_0x5f20f1,this['tree']=_0x5f20f1['tree'];}['apply'](_0x508d86){if(!_0x508d86['docChanged']&&this['tree']==this['context']['tree'])return this;let _0x595236=this['context']['changes'](_0x508d86['changes'],_0x508d86['state']),_0x127aeb=this['context']['treeLen']==_0x508d86['startState']['doc']['length']?void 0x0:Math['max'](_0x508d86['changes']['mapPos'](this['context']['treeLen']),_0x595236['viewport']['to']);return _0x595236['work'](0x14,_0x127aeb)||_0x595236['takeTree'](),new LanguageState(_0x595236);}static['init'](_0x283663){let _0x123d14=Math['min'](0xbb8,_0x283663['doc']['length']),_0x4a4e23=ParseContext['create'](_0x283663['facet'](language)['parser'],_0x283663,{'from':0x0,'to':_0x123d14});return _0x4a4e23['work'](0x14,_0x123d14)||_0x4a4e23['takeTree'](),new LanguageState(_0x4a4e23);}}Language['state']=StateField['define']({'create':LanguageState['init'],'update'(_0x1648c2,_0x25ee29){for(let _0x9c2462 of _0x25ee29['effects'])if(_0x9c2462['is'](Language['setState']))return _0x9c2462['value'];return _0x25ee29['startState']['facet'](language)!=_0x25ee29['state']['facet'](language)?LanguageState['init'](_0x25ee29['state']):_0x1648c2['apply'](_0x25ee29);}});let requestIdle=_0x4227e4=>{let _0x585cda=setTimeout(()=>_0x4227e4(),0x1f4);return()=>clearTimeout(_0x585cda);};'undefined'!=typeof requestIdleCallback&&(requestIdle=_0x486b7c=>{let _0x7a774a=-0x1,_0xec89d7=setTimeout(()=>{_0x7a774a=requestIdleCallback(_0x486b7c,{'timeout':0x190});},0x64);return()=>_0x7a774a<0x0?clearTimeout(_0xec89d7):cancelIdleCallback(_0x7a774a);});const isInputPending='undefined'!=typeof navigator&&(null===(_a=navigator['scheduling'])||void 0x0===_a?void 0x0:_a['isInputPending'])?()=>navigator['scheduling']['isInputPending']():null,parseWorker=ViewPlugin['fromClass'](class{constructor(_0x5e528e){this['view']=_0x5e528e,this['working']=null,this['workScheduled']=0x0,this['chunkEnd']=-0x1,this['chunkBudget']=-0x1,this['work']=this['work']['bind'](this),this['scheduleWork']();}['update'](_0x577d90){let _0x454ac4=this['view']['state']['field'](Language['state'])['context'];(_0x454ac4['updateViewport'](_0x577d90['view']['viewport'])||this['view']['viewport']['to']>_0x454ac4['treeLen'])&&this['scheduleWork'](),(_0x577d90['docChanged']||_0x577d90['selectionSet'])&&(this['view']['hasFocus']&&(this['chunkBudget']+=0x32),this['scheduleWork']()),this['checkAsyncSchedule'](_0x454ac4);}['scheduleWork'](){if(this['working'])return;let {state:_0x2ecd0d}=this['view'],_0x2befc3=_0x2ecd0d['field'](Language['state']);_0x2befc3['tree']==_0x2befc3['context']['tree']&&_0x2befc3['context']['isDone'](_0x2ecd0d['doc']['length'])||(this['working']=requestIdle(this['work']));}['work'](_0x59f034){this['working']=null;let _0x215d5f=Date['now']();if(this['chunkEnd']<_0x215d5f&&(this['chunkEnd']<0x0||this['view']['hasFocus'])&&(this['chunkEnd']=_0x215d5f+0x7530,this['chunkBudget']=0xbb8),this['chunkBudget']<=0x0)return;let {state:_0x3e4bcd,viewport:{to:_0x1d02c6}}=this['view'],_0x1c480f=_0x3e4bcd['field'](Language['state']);if(_0x1c480f['tree']==_0x1c480f['context']['tree']&&_0x1c480f['context']['isDone'](_0x1d02c6+0x186a0))return;let _0x2712d4=Date['now']()+Math['min'](this['chunkBudget'],0x64,_0x59f034&&!isInputPending?Math['max'](0x19,_0x59f034['timeRemaining']()-0x5):0x3b9aca00),_0x855994=_0x1c480f['context']['treeLen']<_0x1d02c6&&_0x3e4bcd['doc']['length']>_0x1d02c6+0x3e8,_0x578d7c=_0x1c480f['context']['work'](()=>isInputPending&&isInputPending()||Date['now']()>_0x2712d4,_0x1d02c6+(_0x855994?0x0:0x186a0));this['chunkBudget']-=Date['now']()-_0x215d5f,(_0x578d7c||this['chunkBudget']<=0x0)&&(_0x1c480f['context']['takeTree'](),this['view']['dispatch']({'effects':Language['setState']['of'](new LanguageState(_0x1c480f['context']))})),this['chunkBudget']>0x0&&(!_0x578d7c||_0x855994)&&this['scheduleWork'](),this['checkAsyncSchedule'](_0x1c480f['context']);}['checkAsyncSchedule'](_0x287b1b){_0x287b1b['scheduleOn']&&(this['workScheduled']++,_0x287b1b['scheduleOn']['then'](()=>this['scheduleWork']())['catch'](_0x23817b=>logException(this['view']['state'],_0x23817b))['then'](()=>this['workScheduled']--),_0x287b1b['scheduleOn']=null);}['destroy'](){this['working']&&this['working']();}['isWorking'](){return!!(this['working']||this['workScheduled']>0x0);}},{'eventHandlers':{'focus'(){this['scheduleWork']();}}}),language=Facet['define']({'combine':_0x291fe7=>_0x291fe7['length']?_0x291fe7[0x0]:null,'enables':_0x184211=>[Language['state'],parseWorker,EditorView['contentAttributes']['compute']([_0x184211],_0x4aa82b=>{let _0x28408e=_0x4aa82b['facet'](_0x184211);return _0x28408e&&_0x28408e['name']?{'data-language':_0x28408e['name']}:{};})]});class LanguageSupport{constructor(_0x24f87d,_0x224ad5=[]){this['language']=_0x24f87d,this['support']=_0x224ad5,this['extension']=[_0x24f87d,_0x224ad5];}}class LanguageDescription{constructor(_0x3b85a9,_0x58c598,_0x3b2001,_0x1dee99,_0x21d039,_0x3db453=void 0x0){this['name']=_0x3b85a9,this['alias']=_0x58c598,this['extensions']=_0x3b2001,this['filename']=_0x1dee99,this['loadFunc']=_0x21d039,this['support']=_0x3db453,this['loading']=null;}['load'](){return this['loading']||(this['loading']=this['loadFunc']()['then'](_0x19bd1d=>this['support']=_0x19bd1d,_0x4129ba=>{throw this['loading']=null,_0x4129ba;}));}static['of'](_0x30cb31){let {load:_0x53eb74,support:_0x46cb5c}=_0x30cb31;if(!_0x53eb74){if(!_0x46cb5c)throw new RangeError('Must\x20pass\x20either\x20\x27load\x27\x20or\x20\x27support\x27\x20to\x20LanguageDescription.of');_0x53eb74=()=>Promise['resolve'](_0x46cb5c);}return new LanguageDescription(_0x30cb31['name'],(_0x30cb31['alias']||[])['concat'](_0x30cb31['name'])['map'](_0x51ab7d=>_0x51ab7d['toLowerCase']()),_0x30cb31['extensions']||[],_0x30cb31['filename'],_0x53eb74,_0x46cb5c);}static['matchFilename'](_0x53ef4e,_0x428131){for(let _0x542129 of _0x53ef4e)if(_0x542129['filename']&&_0x542129['filename']['test'](_0x428131))return _0x542129;let _0x2beea6=/\.([^.]+)$/['exec'](_0x428131);if(_0x2beea6){for(let _0x1c5726 of _0x53ef4e)if(_0x1c5726['extensions']['indexOf'](_0x2beea6[0x1])>-0x1)return _0x1c5726;}return null;}static['matchLanguageName'](_0xd65ffb,_0x25faea,_0x26f566=!0x0){_0x25faea=_0x25faea['toLowerCase']();for(let _0x2afcbb of _0xd65ffb)if(_0x2afcbb['alias']['some'](_0xda4dfa=>_0xda4dfa==_0x25faea))return _0x2afcbb;if(_0x26f566){for(let _0x89d0cf of _0xd65ffb)for(let _0x526ce6 of _0x89d0cf['alias']){let _0x6fa248=_0x25faea['indexOf'](_0x526ce6);if(_0x6fa248>-0x1&&(_0x526ce6['length']>0x2||!/\w/['test'](_0x25faea[_0x6fa248-0x1])&&!/\w/['test'](_0x25faea[_0x6fa248+_0x526ce6['length']])))return _0x89d0cf;}}return null;}}const indentService=Facet['define'](),indentUnit=Facet['define']({'combine':_0x232825=>{if(!_0x232825['length'])return'\x20\x20';let _0x15ad21=_0x232825[0x0];if(!_0x15ad21||/\S/['test'](_0x15ad21)||Array['from'](_0x15ad21)['some'](_0x4a3262=>_0x4a3262!=_0x15ad21[0x0]))throw new Error('Invalid\x20indent\x20unit:\x20'+JSON['stringify'](_0x232825[0x0]));return _0x15ad21;}});function getIndentUnit(_0x487e36){let _0x25099c=_0x487e36['facet'](indentUnit);return 0x9==_0x25099c['charCodeAt'](0x0)?_0x487e36['tabSize']*_0x25099c['length']:_0x25099c['length'];}function indentString(_0x3c8a62,_0x4065a5){let _0x55ecdb='',_0x35eb7a=_0x3c8a62['tabSize'],_0x5d65a0=_0x3c8a62['facet'](indentUnit)[0x0];if('\x09'==_0x5d65a0){for(;_0x4065a5>=_0x35eb7a;)_0x55ecdb+='\x09',_0x4065a5-=_0x35eb7a;_0x5d65a0='\x20';}for(let _0x6ea6df=0x0;_0x6ea6df<_0x4065a5;_0x6ea6df++)_0x55ecdb+=_0x5d65a0;return _0x55ecdb;}function getIndentation(_0x35ac7c,_0x5b42e8){_0x35ac7c instanceof EditorState&&(_0x35ac7c=new IndentContext(_0x35ac7c));for(let _0x41fb38 of _0x35ac7c['state']['facet'](indentService)){let _0x46b1ee=_0x41fb38(_0x35ac7c,_0x5b42e8);if(void 0x0!==_0x46b1ee)return _0x46b1ee;}let _0x43801d=syntaxTree(_0x35ac7c['state']);return _0x43801d['length']>=_0x5b42e8?syntaxIndentation(_0x35ac7c,_0x43801d,_0x5b42e8):null;}class IndentContext{constructor(_0x28ca3a,_0x5260c5={}){this['state']=_0x28ca3a,this['options']=_0x5260c5,this['unit']=getIndentUnit(_0x28ca3a);}['lineAt'](_0x29e256,_0x22349e=0x1){let _0x30a404=this['state']['doc']['lineAt'](_0x29e256),{simulateBreak:_0x52bc3b,simulateDoubleBreak:_0x484f4e}=this['options'];return null!=_0x52bc3b&&_0x52bc3b>=_0x30a404['from']&&_0x52bc3b<=_0x30a404['to']?_0x484f4e&&_0x52bc3b==_0x29e256?{'text':'','from':_0x29e256}:(_0x22349e<0x0?_0x52bc3b<_0x29e256:_0x52bc3b<=_0x29e256)?{'text':_0x30a404['text']['slice'](_0x52bc3b-_0x30a404['from']),'from':_0x52bc3b}:{'text':_0x30a404['text']['slice'](0x0,_0x52bc3b-_0x30a404['from']),'from':_0x30a404['from']}:_0x30a404;}['textAfterPos'](_0x73ad65,_0x19712f=0x1){if(this['options']['simulateDoubleBreak']&&_0x73ad65==this['options']['simulateBreak'])return'';let {text:_0x165305,from:_0x452a0c}=this['lineAt'](_0x73ad65,_0x19712f);return _0x165305['slice'](_0x73ad65-_0x452a0c,Math['min'](_0x165305['length'],_0x73ad65+0x64-_0x452a0c));}['column'](_0x5bfe38,_0x40e7b1=0x1){let {text:_0x4c9a22,from:_0x26a931}=this['lineAt'](_0x5bfe38,_0x40e7b1),_0x1dd7c0=this['countColumn'](_0x4c9a22,_0x5bfe38-_0x26a931),_0xdf3152=this['options']['overrideIndentation']?this['options']['overrideIndentation'](_0x26a931):-0x1;return _0xdf3152>-0x1&&(_0x1dd7c0+=_0xdf3152-this['countColumn'](_0x4c9a22,_0x4c9a22['search'](/\S|$/))),_0x1dd7c0;}['countColumn'](_0x40d299,_0x3d953f=_0x40d299['length']){return countColumn(_0x40d299,this['state']['tabSize'],_0x3d953f);}['lineIndent'](_0x2586ff,_0x2f2556=0x1){let {text:_0x1e6210,from:_0x2eb7cc}=this['lineAt'](_0x2586ff,_0x2f2556),_0x154ccc=this['options']['overrideIndentation'];if(_0x154ccc){let _0x4b1c18=_0x154ccc(_0x2eb7cc);if(_0x4b1c18>-0x1)return _0x4b1c18;}return this['countColumn'](_0x1e6210,_0x1e6210['search'](/\S|$/));}get['simulatedBreak'](){return this['options']['simulateBreak']||null;}}const indentNodeProp=new NodeProp();function syntaxIndentation(_0x115029,_0x27a757,_0x39fece){let _0x146df9=_0x27a757['resolveStack'](_0x39fece),_0x3d92e8=_0x27a757['resolveInner'](_0x39fece,-0x1)['resolve'](_0x39fece,0x0)['enterUnfinishedNodesBefore'](_0x39fece);if(_0x3d92e8!=_0x146df9['node']){let _0x5f1689=[];for(let _0x268a8c=_0x3d92e8;_0x268a8c&&!(_0x268a8c['from']<_0x146df9['node']['from']||_0x268a8c['to']>_0x146df9['node']['to']||_0x268a8c['from']==_0x146df9['node']['from']&&_0x268a8c['type']==_0x146df9['node']['type']);_0x268a8c=_0x268a8c['parent'])_0x5f1689['push'](_0x268a8c);for(let _0xe24f11=_0x5f1689['length']-0x1;_0xe24f11>=0x0;_0xe24f11--)_0x146df9={'node':_0x5f1689[_0xe24f11],'next':_0x146df9};}return indentFor(_0x146df9,_0x115029,_0x39fece);}function indentFor(_0x3251c9,_0x2996f5,_0x26bd58){for(let _0x176a8c=_0x3251c9;_0x176a8c;_0x176a8c=_0x176a8c['next']){let _0x4c5e55=indentStrategy(_0x176a8c['node']);if(_0x4c5e55)return _0x4c5e55(TreeIndentContext['create'](_0x2996f5,_0x26bd58,_0x176a8c));}return 0x0;}function ignoreClosed(_0x1991b9){return _0x1991b9['pos']==_0x1991b9['options']['simulateBreak']&&_0x1991b9['options']['simulateDoubleBreak'];}function indentStrategy(_0x3a229a){let _0x455f19=_0x3a229a['type']['prop'](indentNodeProp);if(_0x455f19)return _0x455f19;let _0x549e04,_0x2dbbf0=_0x3a229a['firstChild'];if(_0x2dbbf0&&(_0x549e04=_0x2dbbf0['type']['prop'](NodeProp['closedBy']))){let _0x1e0443=_0x3a229a['lastChild'],_0x5833aa=_0x1e0443&&_0x549e04['indexOf'](_0x1e0443['name'])>-0x1;return _0x1b7cca=>delimitedStrategy(_0x1b7cca,!0x0,0x1,void 0x0,_0x5833aa&&!ignoreClosed(_0x1b7cca)?_0x1e0443['from']:void 0x0);}return null==_0x3a229a['parent']?topIndent:null;}function topIndent(){return 0x0;}class TreeIndentContext extends IndentContext{constructor(_0x170a51,_0x5ec8cc,_0x2c3732){super(_0x170a51['state'],_0x170a51['options']),this['base']=_0x170a51,this['pos']=_0x5ec8cc,this['context']=_0x2c3732;}get['node'](){return this['context']['node'];}static['create'](_0x478870,_0x31dd75,_0x4b9d6e){return new TreeIndentContext(_0x478870,_0x31dd75,_0x4b9d6e);}get['textAfter'](){return this['textAfterPos'](this['pos']);}get['baseIndent'](){return this['baseIndentFor'](this['node']);}['baseIndentFor'](_0x2b254e){let _0x4073e1=this['state']['doc']['lineAt'](_0x2b254e['from']);for(;;){let _0x17951f=_0x2b254e['resolve'](_0x4073e1['from']);for(;_0x17951f['parent']&&_0x17951f['parent']['from']==_0x17951f['from'];)_0x17951f=_0x17951f['parent'];if(isParent(_0x17951f,_0x2b254e))break;_0x4073e1=this['state']['doc']['lineAt'](_0x17951f['from']);}return this['lineIndent'](_0x4073e1['from']);}['continue'](){return indentFor(this['context']['next'],this['base'],this['pos']);}}function isParent(_0x1aee54,_0x22f5d3){for(let _0x4549fc=_0x22f5d3;_0x4549fc;_0x4549fc=_0x4549fc['parent'])if(_0x1aee54==_0x4549fc)return!0x0;return!0x1;}function bracketedAligned(_0x296a12){let _0x14c377=_0x296a12['node'],_0xf96de4=_0x14c377['childAfter'](_0x14c377['from']),_0x363df3=_0x14c377['lastChild'];if(!_0xf96de4)return null;let _0x115bd3=_0x296a12['options']['simulateBreak'],_0x305acb=_0x296a12['state']['doc']['lineAt'](_0xf96de4['from']),_0xb6842a=null==_0x115bd3||_0x115bd3<=_0x305acb['from']?_0x305acb['to']:Math['min'](_0x305acb['to'],_0x115bd3);for(let _0x29e85e=_0xf96de4['to'];;){let _0x1cd843=_0x14c377['childAfter'](_0x29e85e);if(!_0x1cd843||_0x1cd843==_0x363df3)return null;if(!_0x1cd843['type']['isSkipped']){if(_0x1cd843['from']>=_0xb6842a)return null;let _0x4e3256=/^ */['exec'](_0x305acb['text']['slice'](_0xf96de4['to']-_0x305acb['from']))[0x0]['length'];return{'from':_0xf96de4['from'],'to':_0xf96de4['to']+_0x4e3256};}_0x29e85e=_0x1cd843['to'];}}function delimitedIndent({closing:_0x2c818a,align:_0x34f1f3=!0x0,units:_0x12018b=0x1}){return _0x1a063d=>delimitedStrategy(_0x1a063d,_0x34f1f3,_0x12018b,_0x2c818a);}function delimitedStrategy(_0x247244,_0x4a63ff,_0x3b9846,_0xb6d9d2,_0x17435f){let _0x476a37=_0x247244['textAfter'],_0x301488=_0x476a37['match'](/^\s*/)[0x0]['length'],_0x274904=_0xb6d9d2&&_0x476a37['slice'](_0x301488,_0x301488+_0xb6d9d2['length'])==_0xb6d9d2||_0x17435f==_0x247244['pos']+_0x301488,_0xa0ce08=_0x4a63ff?bracketedAligned(_0x247244):null;return _0xa0ce08?_0x274904?_0x247244['column'](_0xa0ce08['from']):_0x247244['column'](_0xa0ce08['to']):_0x247244['baseIndent']+(_0x274904?0x0:_0x247244['unit']*_0x3b9846);}const flatIndent=_0x138d03=>_0x138d03['baseIndent'];function continuedIndent({except:_0x2e3a1e,units:_0x85a67d=0x1}={}){return _0x15a021=>{let _0x126df1=_0x2e3a1e&&_0x2e3a1e['test'](_0x15a021['textAfter']);return _0x15a021['baseIndent']+(_0x126df1?0x0:_0x85a67d*_0x15a021['unit']);};}const DontIndentBeyond=0xc8;function indentOnInput(){return EditorState['transactionFilter']['of'](_0x570443=>{if(!_0x570443['docChanged']||!_0x570443['isUserEvent']('input.type')&&!_0x570443['isUserEvent']('input.complete'))return _0x570443;let _0x511a6d=_0x570443['startState']['languageDataAt']('indentOnInput',_0x570443['startState']['selection']['main']['head']);if(!_0x511a6d['length'])return _0x570443;let _0x4fa9a9=_0x570443['newDoc'],{head:_0x2a02b6}=_0x570443['newSelection']['main'],_0x4692e2=_0x4fa9a9['lineAt'](_0x2a02b6);if(_0x2a02b6>_0x4692e2['from']+DontIndentBeyond)return _0x570443;let _0x417031=_0x4fa9a9['sliceString'](_0x4692e2['from'],_0x2a02b6);if(!_0x511a6d['some'](_0x460baa=>_0x460baa['test'](_0x417031)))return _0x570443;let {state:_0x1393ff}=_0x570443,_0x37a996=-0x1,_0x3a9a95=[];for(let {head:_0x3dcb51}of _0x1393ff['selection']['ranges']){let _0x15b8d0=_0x1393ff['doc']['lineAt'](_0x3dcb51);if(_0x15b8d0['from']==_0x37a996)continue;_0x37a996=_0x15b8d0['from'];let _0x45bb0d=getIndentation(_0x1393ff,_0x15b8d0['from']);if(null==_0x45bb0d)continue;let _0x593966=/^\s*/['exec'](_0x15b8d0['text'])[0x0],_0x5f18cc=indentString(_0x1393ff,_0x45bb0d);_0x593966!=_0x5f18cc&&_0x3a9a95['push']({'from':_0x15b8d0['from'],'to':_0x15b8d0['from']+_0x593966['length'],'insert':_0x5f18cc});}return _0x3a9a95['length']?[_0x570443,{'changes':_0x3a9a95,'sequential':!0x0}]:_0x570443;});}const foldService=Facet['define'](),foldNodeProp=new NodeProp();function foldInside(_0x1d6799){let _0x233237=_0x1d6799['firstChild'],_0x980431=_0x1d6799['lastChild'];return _0x233237&&_0x233237['to']<_0x980431['from']?{'from':_0x233237['to'],'to':_0x980431['type']['isError']?_0x1d6799['to']:_0x980431['from']}:null;}function syntaxFolding(_0x560c6d,_0x560b46,_0x58deab){let _0x51c271=syntaxTree(_0x560c6d);if(_0x51c271['length']<_0x58deab)return null;let _0x33315c=null;for(let _0x16d8d9=_0x51c271['resolveStack'](_0x58deab,0x1);_0x16d8d9;_0x16d8d9=_0x16d8d9['next']){let _0x465551=_0x16d8d9['node'];if(_0x465551['to']<=_0x58deab||_0x465551['from']>_0x58deab)continue;if(_0x33315c&&_0x465551['from']<_0x560b46)break;let _0x3f0ccb=_0x465551['type']['prop'](foldNodeProp);if(_0x3f0ccb&&(_0x465551['to']<_0x51c271['length']-0x32||_0x51c271['length']==_0x560c6d['doc']['length']||!isUnfinished(_0x465551))){let _0x57f051=_0x3f0ccb(_0x465551,_0x560c6d);_0x57f051&&_0x57f051['from']<=_0x58deab&&_0x57f051['from']>=_0x560b46&&_0x57f051['to']>_0x58deab&&(_0x33315c=_0x57f051);}}return _0x33315c;}function isUnfinished(_0x20cc47){let _0xda591f=_0x20cc47['lastChild'];return _0xda591f&&_0xda591f['to']==_0x20cc47['to']&&_0xda591f['type']['isError'];}function foldable(_0x1ee5aa,_0x5d04a1,_0x8154a2){for(let _0x152524 of _0x1ee5aa['facet'](foldService)){let _0x417986=_0x152524(_0x1ee5aa,_0x5d04a1,_0x8154a2);if(_0x417986)return _0x417986;}return syntaxFolding(_0x1ee5aa,_0x5d04a1,_0x8154a2);}function mapRange(_0x21603b,_0x42ae56){let _0x40825f=_0x42ae56['mapPos'](_0x21603b['from'],0x1),_0x397b25=_0x42ae56['mapPos'](_0x21603b['to'],-0x1);return _0x40825f>=_0x397b25?void 0x0:{'from':_0x40825f,'to':_0x397b25};}const foldEffect=StateEffect['define']({'map':mapRange}),unfoldEffect=StateEffect['define']({'map':mapRange});function selectedLines(_0x554fa9){let _0x3cfe47=[];for(let {head:_0x3daf67}of _0x554fa9['state']['selection']['ranges'])_0x3cfe47['some'](_0x237852=>_0x237852['from']<=_0x3daf67&&_0x237852['to']>=_0x3daf67)||_0x3cfe47['push'](_0x554fa9['lineBlockAt'](_0x3daf67));return _0x3cfe47;}const foldState=StateField['define']({'create':()=>Decoration['none'],'update'(_0x570227,_0xd8781d){_0xd8781d['isUserEvent']('delete')&&_0xd8781d['changes']['iterChangedRanges']((_0x487f78,_0x456e4c)=>_0x570227=clearTouchedFolds(_0x570227,_0x487f78,_0x456e4c)),_0x570227=_0x570227['map'](_0xd8781d['changes']);for(let _0x4c1c76 of _0xd8781d['effects'])if(_0x4c1c76['is'](foldEffect)&&!foldExists(_0x570227,_0x4c1c76['value']['from'],_0x4c1c76['value']['to'])){let {preparePlaceholder:_0x3484f4}=_0xd8781d['state']['facet'](foldConfig),_0x534d4b=_0x3484f4?Decoration['replace']({'widget':new PreparedFoldWidget(_0x3484f4(_0xd8781d['state'],_0x4c1c76['value']))}):foldWidget;_0x570227=_0x570227['update']({'add':[_0x534d4b['range'](_0x4c1c76['value']['from'],_0x4c1c76['value']['to'])]});}else _0x4c1c76['is'](unfoldEffect)&&(_0x570227=_0x570227['update']({'filter':(_0x1e5ebd,_0x3075dc)=>_0x4c1c76['value']['from']!=_0x1e5ebd||_0x4c1c76['value']['to']!=_0x3075dc,'filterFrom':_0x4c1c76['value']['from'],'filterTo':_0x4c1c76['value']['to']}));return _0xd8781d['selection']&&(_0x570227=clearTouchedFolds(_0x570227,_0xd8781d['selection']['main']['head'])),_0x570227;},'provide':_0x511e55=>EditorView['decorations']['from'](_0x511e55),'toJSON'(_0x3814a9,_0x4d8d90){let _0x1fb401=[];return _0x3814a9['between'](0x0,_0x4d8d90['doc']['length'],(_0x47765f,_0x21f3ff)=>{_0x1fb401['push'](_0x47765f,_0x21f3ff);}),_0x1fb401;},'fromJSON'(_0x2a3fac){if(!Array['isArray'](_0x2a3fac)||_0x2a3fac['length']%0x2)throw new RangeError('Invalid\x20JSON\x20for\x20fold\x20state');let _0x249c71=[];for(let _0x40f2db=0x0;_0x40f2db<_0x2a3fac['length'];){let _0x3aaff7=_0x2a3fac[_0x40f2db++],_0x167553=_0x2a3fac[_0x40f2db++];if('number'!=typeof _0x3aaff7||'number'!=typeof _0x167553)throw new RangeError('Invalid\x20JSON\x20for\x20fold\x20state');_0x249c71['push'](foldWidget['range'](_0x3aaff7,_0x167553));}return Decoration['set'](_0x249c71,!0x0);}});function clearTouchedFolds(_0x3631ab,_0x318524,_0x2f9ea2=_0x318524){let _0x165e72=!0x1;return _0x3631ab['between'](_0x318524,_0x2f9ea2,(_0xd9b061,_0x24c01c)=>{_0xd9b061<_0x2f9ea2&&_0x24c01c>_0x318524&&(_0x165e72=!0x0);}),_0x165e72?_0x3631ab['update']({'filterFrom':_0x318524,'filterTo':_0x2f9ea2,'filter':(_0x22097a,_0x468c39)=>_0x22097a>=_0x2f9ea2||_0x468c39<=_0x318524}):_0x3631ab;}function findFold(_0x330407,_0x5b6c19,_0x160862){var _0x5d9c21;let _0x3794bf=null;return null===(_0x5d9c21=_0x330407['field'](foldState,!0x1))||void 0x0===_0x5d9c21||_0x5d9c21['between'](_0x5b6c19,_0x160862,(_0x44ca05,_0xe8e8a3)=>{(!_0x3794bf||_0x3794bf['from']>_0x44ca05)&&(_0x3794bf={'from':_0x44ca05,'to':_0xe8e8a3});}),_0x3794bf;}function foldExists(_0x3fde47,_0x4527ef,_0x2a06c4){let _0x49a863=!0x1;return _0x3fde47['between'](_0x4527ef,_0x4527ef,(_0x576c08,_0x37bcb9)=>{_0x576c08==_0x4527ef&&_0x37bcb9==_0x2a06c4&&(_0x49a863=!0x0);}),_0x49a863;}function maybeEnable(_0x503754,_0x1c0144){return _0x503754['field'](foldState,!0x1)?_0x1c0144:_0x1c0144['concat'](StateEffect['appendConfig']['of'](codeFolding()));}const foldCode=_0x515a3d=>{for(let _0x523b5d of selectedLines(_0x515a3d)){let _0x59bc06=foldable(_0x515a3d['state'],_0x523b5d['from'],_0x523b5d['to']);if(_0x59bc06)return _0x515a3d['dispatch']({'effects':maybeEnable(_0x515a3d['state'],[foldEffect['of'](_0x59bc06),announceFold(_0x515a3d,_0x59bc06)])}),!0x0;}return!0x1;},unfoldCode=_0x2d1c87=>{if(!_0x2d1c87['state']['field'](foldState,!0x1))return!0x1;let _0x1a1ca0=[];for(let _0x3b8470 of selectedLines(_0x2d1c87)){let _0x153978=findFold(_0x2d1c87['state'],_0x3b8470['from'],_0x3b8470['to']);_0x153978&&_0x1a1ca0['push'](unfoldEffect['of'](_0x153978),announceFold(_0x2d1c87,_0x153978,!0x1));}return _0x1a1ca0['length']&&_0x2d1c87['dispatch']({'effects':_0x1a1ca0}),_0x1a1ca0['length']>0x0;};function announceFold(_0x5048f8,_0x89feec,_0x42258b=!0x0){let _0x4e7896=_0x5048f8['state']['doc']['lineAt'](_0x89feec['from'])['number'],_0x4ee7b8=_0x5048f8['state']['doc']['lineAt'](_0x89feec['to'])['number'];return EditorView['announce']['of'](_0x5048f8['state']['phrase'](_0x42258b?'Folded\x20lines':'Unfolded\x20lines')+'\x20'+_0x4e7896+'\x20'+_0x5048f8['state']['phrase']('to')+'\x20'+_0x4ee7b8+'.');}const foldAll=_0x4c001b=>{let {state:_0xffd2a9}=_0x4c001b,_0x5ce96a=[];for(let _0xa7ac75=0x0;_0xa7ac75<_0xffd2a9['doc']['length'];){let _0x55fb95=_0x4c001b['lineBlockAt'](_0xa7ac75),_0x3d565c=foldable(_0xffd2a9,_0x55fb95['from'],_0x55fb95['to']);_0x3d565c&&_0x5ce96a['push'](foldEffect['of'](_0x3d565c)),_0xa7ac75=(_0x3d565c?_0x4c001b['lineBlockAt'](_0x3d565c['to']):_0x55fb95)['to']+0x1;}return _0x5ce96a['length']&&_0x4c001b['dispatch']({'effects':maybeEnable(_0x4c001b['state'],_0x5ce96a)}),!!_0x5ce96a['length'];},unfoldAll=_0x575241=>{let _0x5b6d87=_0x575241['state']['field'](foldState,!0x1);if(!_0x5b6d87||!_0x5b6d87['size'])return!0x1;let _0x3fd5c3=[];return _0x5b6d87['between'](0x0,_0x575241['state']['doc']['length'],(_0x302f26,_0x4cc38d)=>{_0x3fd5c3['push'](unfoldEffect['of']({'from':_0x302f26,'to':_0x4cc38d}));}),_0x575241['dispatch']({'effects':_0x3fd5c3}),!0x0;},foldKeymap=[{'key':'Ctrl-Shift-[','mac':'Cmd-Alt-[','run':foldCode},{'key':'Ctrl-Shift-]','mac':'Cmd-Alt-]','run':unfoldCode},{'key':'Ctrl-Alt-[','run':foldAll},{'key':'Ctrl-Alt-]','run':unfoldAll}],defaultConfig={'placeholderDOM':null,'preparePlaceholder':null,'placeholderText':'…'},foldConfig=Facet['define']({'combine':_0x28d1c1=>combineConfig(_0x28d1c1,defaultConfig)});function codeFolding(_0x5bc6ba){return[foldState,baseTheme$1];}function widgetToDOM(_0x3105fc,_0x1718fa){let {state:_0x29f7e7}=_0x3105fc,_0x5a8a67=_0x29f7e7['facet'](foldConfig),_0x2e3c40=_0x429c7a=>{let _0x163576=_0x3105fc['lineBlockAt'](_0x3105fc['posAtDOM'](_0x429c7a['target'])),_0x5c8324=findFold(_0x3105fc['state'],_0x163576['from'],_0x163576['to']);_0x5c8324&&_0x3105fc['dispatch']({'effects':unfoldEffect['of'](_0x5c8324)}),_0x429c7a['preventDefault']();};if(_0x5a8a67['placeholderDOM'])return _0x5a8a67['placeholderDOM'](_0x3105fc,_0x2e3c40,_0x1718fa);let _0x5b13ee=document['createElement']('span');return _0x5b13ee['textContent']=_0x5a8a67['placeholderText'],_0x5b13ee['setAttribute']('aria-label',_0x29f7e7['phrase']('folded\x20code')),_0x5b13ee['title']=_0x29f7e7['phrase']('unfold'),_0x5b13ee['className']='cm-foldPlaceholder',_0x5b13ee['onclick']=_0x2e3c40,_0x5b13ee;}const foldWidget=Decoration['replace']({'widget':new class extends WidgetType{['toDOM'](_0x58673c){return widgetToDOM(_0x58673c,null);}}()});class PreparedFoldWidget extends WidgetType{constructor(_0x42ff63){super(),this['value']=_0x42ff63;}['eq'](_0x51add1){return this['value']==_0x51add1['value'];}['toDOM'](_0x4dd9fa){return widgetToDOM(_0x4dd9fa,this['value']);}}const foldGutterDefaults={'openText':'⌄','closedText':'›','markerDOM':null,'domEventHandlers':{},'foldingChanged':()=>!0x1};class FoldMarker extends GutterMarker{constructor(_0x59e637,_0xa8c00){super(),this['config']=_0x59e637,this['open']=_0xa8c00;}['eq'](_0x307b51){return this['config']==_0x307b51['config']&&this['open']==_0x307b51['open'];}['toDOM'](_0x5a4bd3){if(this['config']['markerDOM'])return this['config']['markerDOM'](this['open']);let _0x33ad9c=document['createElement']('span');return _0x33ad9c['textContent']=this['open']?this['config']['openText']:this['config']['closedText'],_0x33ad9c['title']=_0x5a4bd3['state']['phrase'](this['open']?'Fold\x20line':'Unfold\x20line'),_0x33ad9c;}}function foldGutter(_0x5a06d3={}){let _0x274c4c={...foldGutterDefaults,..._0x5a06d3},_0x205f88=new FoldMarker(_0x274c4c,!0x0),_0xebd6a1=new FoldMarker(_0x274c4c,!0x1),_0x3398c9=ViewPlugin['fromClass'](class{constructor(_0x7d370d){this['from']=_0x7d370d['viewport']['from'],this['markers']=this['buildMarkers'](_0x7d370d);}['update'](_0x403f6e){(_0x403f6e['docChanged']||_0x403f6e['viewportChanged']||_0x403f6e['startState']['facet'](language)!=_0x403f6e['state']['facet'](language)||_0x403f6e['startState']['field'](foldState,!0x1)!=_0x403f6e['state']['field'](foldState,!0x1)||syntaxTree(_0x403f6e['startState'])!=syntaxTree(_0x403f6e['state'])||_0x274c4c['foldingChanged'](_0x403f6e))&&(this['markers']=this['buildMarkers'](_0x403f6e['view']));}['buildMarkers'](_0x1be85f){let _0x52ce19=new RangeSetBuilder();for(let _0x46e315 of _0x1be85f['viewportLineBlocks']){let _0x2da76a=findFold(_0x1be85f['state'],_0x46e315['from'],_0x46e315['to'])?_0xebd6a1:foldable(_0x1be85f['state'],_0x46e315['from'],_0x46e315['to'])?_0x205f88:null;_0x2da76a&&_0x52ce19['add'](_0x46e315['from'],_0x46e315['from'],_0x2da76a);}return _0x52ce19['finish']();}}),{domEventHandlers:_0xc9d9bc}=_0x274c4c;return[_0x3398c9,gutter({'class':'cm-foldGutter','markers'(_0x245ce2){var _0x5b5fe1;return(null===(_0x5b5fe1=_0x245ce2['plugin'](_0x3398c9))||void 0x0===_0x5b5fe1?void 0x0:_0x5b5fe1['markers'])||RangeSet['empty'];},'initialSpacer':()=>new FoldMarker(_0x274c4c,!0x1),'domEventHandlers':{..._0xc9d9bc,'click':(_0x48d77e,_0x8b5586,_0x3af8ae)=>{if(_0xc9d9bc['click']&&_0xc9d9bc['click'](_0x48d77e,_0x8b5586,_0x3af8ae))return!0x0;let _0x2d62b7=findFold(_0x48d77e['state'],_0x8b5586['from'],_0x8b5586['to']);if(_0x2d62b7)return _0x48d77e['dispatch']({'effects':unfoldEffect['of'](_0x2d62b7)}),!0x0;let _0x17caf5=foldable(_0x48d77e['state'],_0x8b5586['from'],_0x8b5586['to']);return!!_0x17caf5&&(_0x48d77e['dispatch']({'effects':foldEffect['of'](_0x17caf5)}),!0x0);}}}),codeFolding()];}const baseTheme$1=EditorView['baseTheme']({'.cm-foldPlaceholder':{'backgroundColor':'#eee','border':'1px\x20solid\x20#ddd','color':'#888','borderRadius':'.2em','margin':'0\x201px','padding':'0\x201px','cursor':'pointer'},'.cm-foldGutter\x20span':{'padding':'0\x201px','cursor':'pointer'}});class HighlightStyle{constructor(_0xdafa22,_0x57dcc5){let _0x6f198e;function _0x1b0079(_0x56d10d){let _0x5af279=StyleModule['newName']();return(_0x6f198e||(_0x6f198e=Object['create'](null)))['.'+_0x5af279]=_0x56d10d,_0x5af279;}this['specs']=_0xdafa22;const _0x319677='string'==typeof _0x57dcc5['all']?_0x57dcc5['all']:_0x57dcc5['all']?_0x1b0079(_0x57dcc5['all']):void 0x0,_0x4706b0=_0x57dcc5['scope'];this['scope']=_0x4706b0 instanceof Language?_0xf5700=>_0xf5700['prop'](languageDataProp)==_0x4706b0['data']:_0x4706b0?_0x4fc01e=>_0x4fc01e==_0x4706b0:void 0x0,this['style']=tagHighlighter(_0xdafa22['map'](_0x2fd2cd=>({'tag':_0x2fd2cd['tag'],'class':_0x2fd2cd['class']||_0x1b0079(Object['assign']({},_0x2fd2cd,{'tag':null}))})),{'all':_0x319677})['style'],this['module']=_0x6f198e?new StyleModule(_0x6f198e):null,this['themeType']=_0x57dcc5['themeType'];}static['define'](_0x1e9e9e,_0x5bfc66){return new HighlightStyle(_0x1e9e9e,_0x5bfc66||{});}}const highlighterFacet=Facet['define'](),fallbackHighlighter=Facet['define']({'combine':_0x159ae3=>_0x159ae3['length']?[_0x159ae3[0x0]]:null});function getHighlighters(_0x2007fa){let _0x55d9d3=_0x2007fa['facet'](highlighterFacet);return _0x55d9d3['length']?_0x55d9d3:_0x2007fa['facet'](fallbackHighlighter);}function syntaxHighlighting(_0x5a99a0,_0xf85cb2){let _0xe45e0,_0x28d342=[treeHighlighter];return _0x5a99a0 instanceof HighlightStyle&&(_0x5a99a0['module']&&_0x28d342['push'](EditorView['styleModule']['of'](_0x5a99a0['module'])),_0xe45e0=_0x5a99a0['themeType']),(null==_0xf85cb2?void 0x0:_0xf85cb2['fallback'])?_0x28d342['push'](fallbackHighlighter['of'](_0x5a99a0)):_0xe45e0?_0x28d342['push'](highlighterFacet['computeN']([EditorView['darkTheme']],_0x58c6f5=>_0x58c6f5['facet'](EditorView['darkTheme'])==('dark'==_0xe45e0)?[_0x5a99a0]:[])):_0x28d342['push'](highlighterFacet['of'](_0x5a99a0)),_0x28d342;}class TreeHighlighter{constructor(_0x3501ff){this['markCache']=Object['create'](null),this['tree']=syntaxTree(_0x3501ff['state']),this['decorations']=this['buildDeco'](_0x3501ff,getHighlighters(_0x3501ff['state'])),this['decoratedTo']=_0x3501ff['viewport']['to'];}['update'](_0x4d364b){let _0x1eed6b=syntaxTree(_0x4d364b['state']),_0x3e7314=getHighlighters(_0x4d364b['state']),_0x2be866=_0x3e7314!=getHighlighters(_0x4d364b['startState']),{viewport:_0x2cf133}=_0x4d364b['view'],_0x37a545=_0x4d364b['changes']['mapPos'](this['decoratedTo'],0x1);_0x1eed6b['length']<_0x2cf133['to']&&!_0x2be866&&_0x1eed6b['type']==this['tree']['type']&&_0x37a545>=_0x2cf133['to']?(this['decorations']=this['decorations']['map'](_0x4d364b['changes']),this['decoratedTo']=_0x37a545):(_0x1eed6b!=this['tree']||_0x4d364b['viewportChanged']||_0x2be866)&&(this['tree']=_0x1eed6b,this['decorations']=this['buildDeco'](_0x4d364b['view'],_0x3e7314),this['decoratedTo']=_0x2cf133['to']);}['buildDeco'](_0x54b5ee,_0x3d542b){if(!_0x3d542b||!this['tree']['length'])return Decoration['none'];let _0x498e0c=new RangeSetBuilder();for(let {from:_0x142093,to:_0x4aa892}of _0x54b5ee['visibleRanges'])highlightTree(this['tree'],_0x3d542b,(_0x3ba702,_0x1d0b9a,_0x3aa28d)=>{_0x498e0c['add'](_0x3ba702,_0x1d0b9a,this['markCache'][_0x3aa28d]||(this['markCache'][_0x3aa28d]=Decoration['mark']({'class':_0x3aa28d})));},_0x142093,_0x4aa892);return _0x498e0c['finish']();}}const treeHighlighter=Prec['high'](ViewPlugin['fromClass'](TreeHighlighter,{'decorations':_0x15e039=>_0x15e039['decorations']})),defaultHighlightStyle=HighlightStyle['define']([{'tag':tags$1['meta'],'color':'#404740'},{'tag':tags$1['link'],'textDecoration':'underline'},{'tag':tags$1['heading'],'textDecoration':'underline','fontWeight':'bold'},{'tag':tags$1['emphasis'],'fontStyle':'italic'},{'tag':tags$1['strong'],'fontWeight':'bold'},{'tag':tags$1['strikethrough'],'textDecoration':'line-through'},{'tag':tags$1['keyword'],'color':'#708'},{'tag':[tags$1['atom'],tags$1['bool'],tags$1['url'],tags$1['contentSeparator'],tags$1['labelName']],'color':'#219'},{'tag':[tags$1['literal'],tags$1['inserted']],'color':'#164'},{'tag':[tags$1['string'],tags$1['deleted']],'color':'#a11'},{'tag':[tags$1['regexp'],tags$1['escape'],tags$1['special'](tags$1['string'])],'color':'#e40'},{'tag':tags$1['definition'](tags$1['variableName']),'color':'#00f'},{'tag':tags$1['local'](tags$1['variableName']),'color':'#30a'},{'tag':[tags$1['typeName'],tags$1['namespace']],'color':'#085'},{'tag':tags$1['className'],'color':'#167'},{'tag':[tags$1['special'](tags$1['variableName']),tags$1['macroName']],'color':'#256'},{'tag':tags$1['definition'](tags$1['propertyName']),'color':'#00c'},{'tag':tags$1['comment'],'color':'#940'},{'tag':tags$1['invalid'],'color':'#f00'}]),baseTheme$2=EditorView['baseTheme']({'&.cm-focused\x20.cm-matchingBracket':{'backgroundColor':'#328c8252'},'&.cm-focused\x20.cm-nonmatchingBracket':{'backgroundColor':'#bb555544'}}),DefaultScanDist=0x2710,DefaultBrackets='()[]{}',bracketMatchingConfig=Facet['define']({'combine':_0x432efd=>combineConfig(_0x432efd,{'afterCursor':!0x0,'brackets':DefaultBrackets,'maxScanDistance':DefaultScanDist,'renderMatch':defaultRenderMatch})}),matchingMark=Decoration['mark']({'class':'cm-matchingBracket'}),nonmatchingMark=Decoration['mark']({'class':'cm-nonmatchingBracket'});function defaultRenderMatch(_0x170d6d){let _0x5d75f3=[],_0x2e61e1=_0x170d6d['matched']?matchingMark:nonmatchingMark;return _0x5d75f3['push'](_0x2e61e1['range'](_0x170d6d['start']['from'],_0x170d6d['start']['to'])),_0x170d6d['end']&&_0x5d75f3['push'](_0x2e61e1['range'](_0x170d6d['end']['from'],_0x170d6d['end']['to'])),_0x5d75f3;}const bracketMatchingState=StateField['define']({'create':()=>Decoration['none'],'update'(_0x334986,_0x19d5e1){if(!_0x19d5e1['docChanged']&&!_0x19d5e1['selection'])return _0x334986;let _0x263ad3=[],_0x57515b=_0x19d5e1['state']['facet'](bracketMatchingConfig);for(let _0x269abe of _0x19d5e1['state']['selection']['ranges']){if(!_0x269abe['empty'])continue;let _0x177021=matchBrackets(_0x19d5e1['state'],_0x269abe['head'],-0x1,_0x57515b)||_0x269abe['head']>0x0&&matchBrackets(_0x19d5e1['state'],_0x269abe['head']-0x1,0x1,_0x57515b)||_0x57515b['afterCursor']&&(matchBrackets(_0x19d5e1['state'],_0x269abe['head'],0x1,_0x57515b)||_0x269abe['head']<_0x19d5e1['state']['doc']['length']&&matchBrackets(_0x19d5e1['state'],_0x269abe['head']+0x1,-0x1,_0x57515b));_0x177021&&(_0x263ad3=_0x263ad3['concat'](_0x57515b['renderMatch'](_0x177021,_0x19d5e1['state'])));}return Decoration['set'](_0x263ad3,!0x0);},'provide':_0x3be99b=>EditorView['decorations']['from'](_0x3be99b)}),bracketMatchingUnique=[bracketMatchingState,baseTheme$2];function bracketMatching(_0xbf3170={}){return[bracketMatchingConfig['of'](_0xbf3170),bracketMatchingUnique];}const bracketMatchingHandle=new NodeProp();function matchingNodes(_0x678fbf,_0x5bc233,_0x52eee0){let _0x25db67=_0x678fbf['prop'](_0x5bc233<0x0?NodeProp['openedBy']:NodeProp['closedBy']);if(_0x25db67)return _0x25db67;if(0x1==_0x678fbf['name']['length']){let _0x4b1118=_0x52eee0['indexOf'](_0x678fbf['name']);if(_0x4b1118>-0x1&&_0x4b1118%0x2==(_0x5bc233<0x0?0x1:0x0))return[_0x52eee0[_0x4b1118+_0x5bc233]];}return null;}function findHandle(_0x5fc6ef){let _0x1ba15a=_0x5fc6ef['type']['prop'](bracketMatchingHandle);return _0x1ba15a?_0x1ba15a(_0x5fc6ef['node']):_0x5fc6ef;}function matchBrackets(_0x1706cf,_0x4b3934,_0x23dd9f,_0x454999={}){let _0x15d481=_0x454999['maxScanDistance']||DefaultScanDist,_0x2c4747=_0x454999['brackets']||DefaultBrackets,_0x514f80=syntaxTree(_0x1706cf),_0x30a7d6=_0x514f80['resolveInner'](_0x4b3934,_0x23dd9f);for(let _0x56db20=_0x30a7d6;_0x56db20;_0x56db20=_0x56db20['parent']){let _0x19474d=matchingNodes(_0x56db20['type'],_0x23dd9f,_0x2c4747);if(_0x19474d&&_0x56db20['from']<_0x56db20['to']){let _0x3e6eed=findHandle(_0x56db20);if(_0x3e6eed&&(_0x23dd9f>0x0?_0x4b3934>=_0x3e6eed['from']&&_0x4b3934<_0x3e6eed['to']:_0x4b3934>_0x3e6eed['from']&&_0x4b3934<=_0x3e6eed['to']))return matchMarkedBrackets(_0x1706cf,_0x4b3934,_0x23dd9f,_0x56db20,_0x3e6eed,_0x19474d,_0x2c4747);}}return matchPlainBrackets(_0x1706cf,_0x4b3934,_0x23dd9f,_0x514f80,_0x30a7d6['type'],_0x15d481,_0x2c4747);}function matchMarkedBrackets(_0x52ec51,_0x343557,_0x437dd9,_0x452329,_0xa281a9,_0x4fce84,_0x264c19){let _0x49cfea=_0x452329['parent'],_0x10f3e8={'from':_0xa281a9['from'],'to':_0xa281a9['to']},_0x464dcc=0x0,_0x57edcb=null==_0x49cfea?void 0x0:_0x49cfea['cursor']();if(_0x57edcb&&(_0x437dd9<0x0?_0x57edcb['childBefore'](_0x452329['from']):_0x57edcb['childAfter'](_0x452329['to'])))do{if(_0x437dd9<0x0?_0x57edcb['to']<=_0x452329['from']:_0x57edcb['from']>=_0x452329['to']){if(0x0==_0x464dcc&&_0x4fce84['indexOf'](_0x57edcb['type']['name'])>-0x1&&_0x57edcb['from']<_0x57edcb['to']){let _0x5e554b=findHandle(_0x57edcb);return{'start':_0x10f3e8,'end':_0x5e554b?{'from':_0x5e554b['from'],'to':_0x5e554b['to']}:void 0x0,'matched':!0x0};}if(matchingNodes(_0x57edcb['type'],_0x437dd9,_0x264c19))_0x464dcc++;else{if(matchingNodes(_0x57edcb['type'],-_0x437dd9,_0x264c19)){if(0x0==_0x464dcc){let _0x6d9d79=findHandle(_0x57edcb);return{'start':_0x10f3e8,'end':_0x6d9d79&&_0x6d9d79['from']<_0x6d9d79['to']?{'from':_0x6d9d79['from'],'to':_0x6d9d79['to']}:void 0x0,'matched':!0x1};}_0x464dcc--;}}}}while(_0x437dd9<0x0?_0x57edcb['prevSibling']():_0x57edcb['nextSibling']());return{'start':_0x10f3e8,'matched':!0x1};}function matchPlainBrackets(_0x51118d,_0x37aa23,_0x3fdf34,_0x11a685,_0x568bb3,_0x5bde60,_0x114850){let _0x21108c=_0x3fdf34<0x0?_0x51118d['sliceDoc'](_0x37aa23-0x1,_0x37aa23):_0x51118d['sliceDoc'](_0x37aa23,_0x37aa23+0x1),_0x4e955b=_0x114850['indexOf'](_0x21108c);if(_0x4e955b<0x0||_0x4e955b%0x2==0x0!=_0x3fdf34>0x0)return null;let _0x50a926={'from':_0x3fdf34<0x0?_0x37aa23-0x1:_0x37aa23,'to':_0x3fdf34>0x0?_0x37aa23+0x1:_0x37aa23},_0x4b62b9=_0x51118d['doc']['iterRange'](_0x37aa23,_0x3fdf34>0x0?_0x51118d['doc']['length']:0x0),_0x3383eb=0x0;for(let _0x3dd7f6=0x0;!_0x4b62b9['next']()['done']&&_0x3dd7f6<=_0x5bde60;){let _0x9f9316=_0x4b62b9['value'];_0x3fdf34<0x0&&(_0x3dd7f6+=_0x9f9316['length']);let _0x2d11b5=_0x37aa23+_0x3dd7f6*_0x3fdf34;for(let _0x48408e=_0x3fdf34>0x0?0x0:_0x9f9316['length']-0x1,_0x4eb62e=_0x3fdf34>0x0?_0x9f9316['length']:-0x1;_0x48408e!=_0x4eb62e;_0x48408e+=_0x3fdf34){let _0x581e5e=_0x114850['indexOf'](_0x9f9316[_0x48408e]);if(!(_0x581e5e<0x0||_0x11a685['resolveInner'](_0x2d11b5+_0x48408e,0x1)['type']!=_0x568bb3)){if(_0x581e5e%0x2==0x0==_0x3fdf34>0x0)_0x3383eb++;else{if(0x1==_0x3383eb)return{'start':_0x50a926,'end':{'from':_0x2d11b5+_0x48408e,'to':_0x2d11b5+_0x48408e+0x1},'matched':_0x581e5e>>0x1==_0x4e955b>>0x1};_0x3383eb--;}}}_0x3fdf34>0x0&&(_0x3dd7f6+=_0x9f9316['length']);}return _0x4b62b9['done']?{'start':_0x50a926,'matched':!0x1}:null;}const noTokens=Object['create'](null),typeArray=[NodeType['none']],warned=[],byTag=Object['create'](null),defaultTable=Object['create'](null);for(let [e,i]of[['variable','variableName'],['variable-2','variableName.special'],['string-2','string.special'],['def','variableName.definition'],['tag','tagName'],['attribute','attributeName'],['type','typeName'],['builtin','variableName.standard'],['qualifier','modifier'],['error','invalid'],['header','heading'],['property','propertyName']])defaultTable[e]=createTokenType(noTokens,i);function warnForPart(_0x81c8cb,_0x493c20){warned['indexOf'](_0x81c8cb)>-0x1||(warned['push'](_0x81c8cb),console['warn'](_0x493c20));}function createTokenType(_0x2b919e,_0xc9338d){let _0x45a54b=[];for(let _0x44042e of _0xc9338d['split']('\x20')){let _0x1f6c53=[];for(let _0x32edf8 of _0x44042e['split']('.')){let _0x1104c1=_0x2b919e[_0x32edf8]||tags$1[_0x32edf8];_0x1104c1?'function'==typeof _0x1104c1?_0x1f6c53['length']?_0x1f6c53=_0x1f6c53['map'](_0x1104c1):warnForPart(_0x32edf8,'Modifier\x20'+_0x32edf8+'\x20used\x20at\x20start\x20of\x20tag'):_0x1f6c53['length']?warnForPart(_0x32edf8,'Tag\x20'+_0x32edf8+'\x20used\x20as\x20modifier'):_0x1f6c53=Array['isArray'](_0x1104c1)?_0x1104c1:[_0x1104c1]:warnForPart(_0x32edf8,'Unknown\x20highlighting\x20tag\x20'+_0x32edf8);}for(let _0x1b3e44 of _0x1f6c53)_0x45a54b['push'](_0x1b3e44);}if(!_0x45a54b['length'])return 0x0;let _0x562cac=_0xc9338d['replace'](/ /g,'_'),_0x1c3d27=_0x562cac+'\x20'+_0x45a54b['map'](t=>t['id']),_0x5d3759=byTag[_0x1c3d27];if(_0x5d3759)return _0x5d3759['id'];let _0x3a3996=byTag[_0x1c3d27]=NodeType['define']({'id':typeArray['length'],'name':_0x562cac,'props':[styleTags({[_0x562cac]:_0x45a54b})]});return typeArray['push'](_0x3a3996),_0x3a3996['id'];}Direction['RTL'],Direction['LTR'];const toggleComment=_0x3f672e=>{let {state:_0x37f883}=_0x3f672e,_0x4bdcb6=_0x37f883['doc']['lineAt'](_0x37f883['selection']['main']['from']),_0x3b6c1f=getConfig(_0x3f672e['state'],_0x4bdcb6['from']);return _0x3b6c1f['line']?toggleLineComment(_0x3f672e):!!_0x3b6c1f['block']&&toggleBlockCommentByLine(_0x3f672e);};function command(_0x45eeae,_0x3336ce){return({state:_0x38ed36,dispatch:_0x333028})=>{if(_0x38ed36['readOnly'])return!0x1;let _0x17b9b0=_0x45eeae(_0x3336ce,_0x38ed36);return!!_0x17b9b0&&(_0x333028(_0x38ed36['update'](_0x17b9b0)),!0x0);};}const toggleLineComment=command(changeLineComment,0x0),toggleBlockComment=command(changeBlockComment,0x0),toggleBlockCommentByLine=command((_0x1ed835,_0x15eba0)=>changeBlockComment(_0x1ed835,_0x15eba0,selectedLineRanges(_0x15eba0)),0x0);function getConfig(_0x21eafe,_0x16ce5f){let _0x2595a2=_0x21eafe['languageDataAt']('commentTokens',_0x16ce5f,0x1);return _0x2595a2['length']?_0x2595a2[0x0]:{};}const SearchMargin=0x32;function findBlockComment(_0x337327,{open:_0x38c543,close:_0x2f0bfb},_0x2d0523,_0x5e3dd7){let _0xbdb4dd,_0x55782c,_0x58ca7c=_0x337327['sliceDoc'](_0x2d0523-SearchMargin,_0x2d0523),_0x1ec749=_0x337327['sliceDoc'](_0x5e3dd7,_0x5e3dd7+SearchMargin),_0x587939=/\s*$/['exec'](_0x58ca7c)[0x0]['length'],_0x239cd4=/^\s*/['exec'](_0x1ec749)[0x0]['length'],_0x4b6f90=_0x58ca7c['length']-_0x587939;if(_0x58ca7c['slice'](_0x4b6f90-_0x38c543['length'],_0x4b6f90)==_0x38c543&&_0x1ec749['slice'](_0x239cd4,_0x239cd4+_0x2f0bfb['length'])==_0x2f0bfb)return{'open':{'pos':_0x2d0523-_0x587939,'margin':_0x587939&&0x1},'close':{'pos':_0x5e3dd7+_0x239cd4,'margin':_0x239cd4&&0x1}};_0x5e3dd7-_0x2d0523<=0x2*SearchMargin?_0xbdb4dd=_0x55782c=_0x337327['sliceDoc'](_0x2d0523,_0x5e3dd7):(_0xbdb4dd=_0x337327['sliceDoc'](_0x2d0523,_0x2d0523+SearchMargin),_0x55782c=_0x337327['sliceDoc'](_0x5e3dd7-SearchMargin,_0x5e3dd7));let _0x306754=/^\s*/['exec'](_0xbdb4dd)[0x0]['length'],_0x24d9a1=/\s*$/['exec'](_0x55782c)[0x0]['length'],_0x23dc37=_0x55782c['length']-_0x24d9a1-_0x2f0bfb['length'];return _0xbdb4dd['slice'](_0x306754,_0x306754+_0x38c543['length'])==_0x38c543&&_0x55782c['slice'](_0x23dc37,_0x23dc37+_0x2f0bfb['length'])==_0x2f0bfb?{'open':{'pos':_0x2d0523+_0x306754+_0x38c543['length'],'margin':/\s/['test'](_0xbdb4dd['charAt'](_0x306754+_0x38c543['length']))?0x1:0x0},'close':{'pos':_0x5e3dd7-_0x24d9a1-_0x2f0bfb['length'],'margin':/\s/['test'](_0x55782c['charAt'](_0x23dc37-0x1))?0x1:0x0}}:null;}function selectedLineRanges(_0x4960d6){let _0x2169e0=[];for(let _0x47f351 of _0x4960d6['selection']['ranges']){let _0x22db81=_0x4960d6['doc']['lineAt'](_0x47f351['from']),_0x2d909c=_0x47f351['to']<=_0x22db81['to']?_0x22db81:_0x4960d6['doc']['lineAt'](_0x47f351['to']);_0x2d909c['from']>_0x22db81['from']&&_0x2d909c['from']==_0x47f351['to']&&(_0x2d909c=_0x47f351['to']==_0x22db81['to']+0x1?_0x22db81:_0x4960d6['doc']['lineAt'](_0x47f351['to']-0x1));let _0x5c3ed1=_0x2169e0['length']-0x1;_0x5c3ed1>=0x0&&_0x2169e0[_0x5c3ed1]['to']>_0x22db81['from']?_0x2169e0[_0x5c3ed1]['to']=_0x2d909c['to']:_0x2169e0['push']({'from':_0x22db81['from']+/^\s*/['exec'](_0x22db81['text'])[0x0]['length'],'to':_0x2d909c['to']});}return _0x2169e0;}function changeBlockComment(_0x2f607c,_0x4d1e25,_0x2e910e=_0x4d1e25['selection']['ranges']){let _0x249b24=_0x2e910e['map'](_0x176a90=>getConfig(_0x4d1e25,_0x176a90['from'])['block']);if(!_0x249b24['every'](_0x3d4366=>_0x3d4366))return null;let _0x5d6b72=_0x2e910e['map']((_0x1243b7,_0x7558bb)=>findBlockComment(_0x4d1e25,_0x249b24[_0x7558bb],_0x1243b7['from'],_0x1243b7['to']));if(0x2!=_0x2f607c&&!_0x5d6b72['every'](_0x50aec2=>_0x50aec2))return{'changes':_0x4d1e25['changes'](_0x2e910e['map']((_0x2d49c5,_0x41c1dd)=>_0x5d6b72[_0x41c1dd]?[]:[{'from':_0x2d49c5['from'],'insert':_0x249b24[_0x41c1dd]['open']+'\x20'},{'from':_0x2d49c5['to'],'insert':'\x20'+_0x249b24[_0x41c1dd]['close']}]))};if(0x1!=_0x2f607c&&_0x5d6b72['some'](_0x21cf49=>_0x21cf49)){let _0x374fcf=[];for(let _0x2f9b41,_0xa501fa=0x0;_0xa501fa<_0x5d6b72['length'];_0xa501fa++)if(_0x2f9b41=_0x5d6b72[_0xa501fa]){let _0x3f501f=_0x249b24[_0xa501fa],{open:_0x46f2da,close:_0x4a7d49}=_0x2f9b41;_0x374fcf['push']({'from':_0x46f2da['pos']-_0x3f501f['open']['length'],'to':_0x46f2da['pos']+_0x46f2da['margin']},{'from':_0x4a7d49['pos']-_0x4a7d49['margin'],'to':_0x4a7d49['pos']+_0x3f501f['close']['length']});}return{'changes':_0x374fcf};}return null;}function changeLineComment(_0x1e50b4,_0x5338f0,_0x1eb85b=_0x5338f0['selection']['ranges']){let _0x5be0c1=[],_0x4d30e9=-0x1;for(let {from:_0x21249b,to:_0x1cfd21}of _0x1eb85b){let _0x517438=_0x5be0c1['length'],_0x307197=0x3b9aca00,_0x1e5e5e=getConfig(_0x5338f0,_0x21249b)['line'];if(_0x1e5e5e){for(let _0x2d593d=_0x21249b;_0x2d593d<=_0x1cfd21;){let _0x360267=_0x5338f0['doc']['lineAt'](_0x2d593d);if(_0x360267['from']>_0x4d30e9&&(_0x21249b==_0x1cfd21||_0x1cfd21>_0x360267['from'])){_0x4d30e9=_0x360267['from'];let _0x197740=/^\s*/['exec'](_0x360267['text'])[0x0]['length'],_0x49ae73=_0x197740==_0x360267['length'],_0x16cbcb=_0x360267['text']['slice'](_0x197740,_0x197740+_0x1e5e5e['length'])==_0x1e5e5e?_0x197740:-0x1;_0x197740<_0x360267['text']['length']&&_0x197740<_0x307197&&(_0x307197=_0x197740),_0x5be0c1['push']({'line':_0x360267,'comment':_0x16cbcb,'token':_0x1e5e5e,'indent':_0x197740,'empty':_0x49ae73,'single':!0x1});}_0x2d593d=_0x360267['to']+0x1;}if(_0x307197<0x3b9aca00){for(let _0x546a70=_0x517438;_0x546a70<_0x5be0c1['length'];_0x546a70++)_0x5be0c1[_0x546a70]['indent']<_0x5be0c1[_0x546a70]['line']['text']['length']&&(_0x5be0c1[_0x546a70]['indent']=_0x307197);}_0x5be0c1['length']==_0x517438+0x1&&(_0x5be0c1[_0x517438]['single']=!0x0);}}if(0x2!=_0x1e50b4&&_0x5be0c1['some'](_0x419d76=>_0x419d76['comment']<0x0&&(!_0x419d76['empty']||_0x419d76['single']))){let _0x5c802c=[];for(let {line:_0x4afc5c,token:_0x13c2af,indent:_0x463f7e,empty:_0x3b4903,single:_0x20c5ce}of _0x5be0c1)!_0x20c5ce&&_0x3b4903||_0x5c802c['push']({'from':_0x4afc5c['from']+_0x463f7e,'insert':_0x13c2af+'\x20'});let _0x2c80d3=_0x5338f0['changes'](_0x5c802c);return{'changes':_0x2c80d3,'selection':_0x5338f0['selection']['map'](_0x2c80d3,0x1)};}if(0x1!=_0x1e50b4&&_0x5be0c1['some'](_0x449b7e=>_0x449b7e['comment']>=0x0)){let _0x3ff14d=[];for(let {line:_0x3566c1,comment:_0x1a64dd,token:_0x4af8bd}of _0x5be0c1)if(_0x1a64dd>=0x0){let _0x5dfeb3=_0x3566c1['from']+_0x1a64dd,_0x5f3866=_0x5dfeb3+_0x4af8bd['length'];'\x20'==_0x3566c1['text'][_0x5f3866-_0x3566c1['from']]&&_0x5f3866++,_0x3ff14d['push']({'from':_0x5dfeb3,'to':_0x5f3866});}return{'changes':_0x3ff14d};}return null;}const fromHistory=Annotation['define'](),isolateHistory=Annotation['define'](),invertedEffects=Facet['define'](),historyConfig=Facet['define']({'combine':_0x23ee09=>combineConfig(_0x23ee09,{'minDepth':0x64,'newGroupDelay':0x1f4,'joinToEvent':(_0x3265de,_0x3ff7c5)=>_0x3ff7c5},{'minDepth':Math['max'],'newGroupDelay':Math['min'],'joinToEvent':(_0xac6023,_0x48f7f6)=>(_0x2b9fac,_0xd47d9f)=>_0xac6023(_0x2b9fac,_0xd47d9f)||_0x48f7f6(_0x2b9fac,_0xd47d9f)})}),historyField_=StateField['define']({'create':()=>HistoryState['empty'],'update'(_0x1387a6,_0x47a7c6){let _0x135fe0=_0x47a7c6['state']['facet'](historyConfig),_0x50aebe=_0x47a7c6['annotation'](fromHistory);if(_0x50aebe){let _0x16aa72=HistEvent['fromTransaction'](_0x47a7c6,_0x50aebe['selection']),_0x48ecf6=_0x50aebe['side'],_0x5ef2fe=0x0==_0x48ecf6?_0x1387a6['undone']:_0x1387a6['done'];return _0x5ef2fe=_0x16aa72?updateBranch(_0x5ef2fe,_0x5ef2fe['length'],_0x135fe0['minDepth'],_0x16aa72):addSelection(_0x5ef2fe,_0x47a7c6['startState']['selection']),new HistoryState(0x0==_0x48ecf6?_0x50aebe['rest']:_0x5ef2fe,0x0==_0x48ecf6?_0x5ef2fe:_0x50aebe['rest']);}let _0x5850a5=_0x47a7c6['annotation'](isolateHistory);if('full'!=_0x5850a5&&'before'!=_0x5850a5||(_0x1387a6=_0x1387a6['isolate']()),!0x1===_0x47a7c6['annotation'](Transaction['addToHistory']))return _0x47a7c6['changes']['empty']?_0x1387a6:_0x1387a6['addMapping'](_0x47a7c6['changes']['desc']);let _0x3b05c7=HistEvent['fromTransaction'](_0x47a7c6),_0x1d42f3=_0x47a7c6['annotation'](Transaction['time']),_0x25e80c=_0x47a7c6['annotation'](Transaction['userEvent']);return _0x3b05c7?_0x1387a6=_0x1387a6['addChanges'](_0x3b05c7,_0x1d42f3,_0x25e80c,_0x135fe0,_0x47a7c6):_0x47a7c6['selection']&&(_0x1387a6=_0x1387a6['addSelection'](_0x47a7c6['startState']['selection'],_0x1d42f3,_0x25e80c,_0x135fe0['newGroupDelay'])),'full'!=_0x5850a5&&'after'!=_0x5850a5||(_0x1387a6=_0x1387a6['isolate']()),_0x1387a6;},'toJSON':_0x7c1cf1=>({'done':_0x7c1cf1['done']['map'](_0x5e7297=>_0x5e7297['toJSON']()),'undone':_0x7c1cf1['undone']['map'](_0x51c9aa=>_0x51c9aa['toJSON']())}),'fromJSON':_0x58ffac=>new HistoryState(_0x58ffac['done']['map'](HistEvent['fromJSON']),_0x58ffac['undone']['map'](HistEvent['fromJSON']))});function history(_0x5a1312={}){return[historyField_,historyConfig['of'](_0x5a1312),EditorView['domEventHandlers']({'beforeinput'(_0x25d0d2,_0x1bae8a){let _0x4f5e8c='historyUndo'==_0x25d0d2['inputType']?undo:'historyRedo'==_0x25d0d2['inputType']?redo:null;return!!_0x4f5e8c&&(_0x25d0d2['preventDefault'](),_0x4f5e8c(_0x1bae8a));}})];}function cmd(_0x30b39f,_0x35af0f){return function({state:_0x49faea,dispatch:_0x176094}){if(!_0x35af0f&&_0x49faea['readOnly'])return!0x1;let _0x514d45=_0x49faea['field'](historyField_,!0x1);if(!_0x514d45)return!0x1;let _0x3074b8=_0x514d45['pop'](_0x30b39f,_0x49faea,_0x35af0f);return!!_0x3074b8&&(_0x176094(_0x3074b8),!0x0);};}const undo=cmd(0x0,!0x1),redo=cmd(0x1,!0x1),undoSelection=cmd(0x0,!0x0),redoSelection=cmd(0x1,!0x0);class HistEvent{constructor(_0x38da20,_0x1f5dd,_0x15392e,_0x3f1c5f,_0x40b307){this['changes']=_0x38da20,this['effects']=_0x1f5dd,this['mapped']=_0x15392e,this['startSelection']=_0x3f1c5f,this['selectionsAfter']=_0x40b307;}['setSelAfter'](_0x4e8fe5){return new HistEvent(this['changes'],this['effects'],this['mapped'],this['startSelection'],_0x4e8fe5);}['toJSON'](){var _0x187317,_0x12046e,_0x5d27ca;return{'changes':null===(_0x187317=this['changes'])||void 0x0===_0x187317?void 0x0:_0x187317['toJSON'](),'mapped':null===(_0x12046e=this['mapped'])||void 0x0===_0x12046e?void 0x0:_0x12046e['toJSON'](),'startSelection':null===(_0x5d27ca=this['startSelection'])||void 0x0===_0x5d27ca?void 0x0:_0x5d27ca['toJSON'](),'selectionsAfter':this['selectionsAfter']['map'](_0x5bcf1d=>_0x5bcf1d['toJSON']())};}static['fromJSON'](_0x553e21){return new HistEvent(_0x553e21['changes']&&ChangeSet['fromJSON'](_0x553e21['changes']),[],_0x553e21['mapped']&&ChangeDesc['fromJSON'](_0x553e21['mapped']),_0x553e21['startSelection']&&EditorSelection['fromJSON'](_0x553e21['startSelection']),_0x553e21['selectionsAfter']['map'](EditorSelection['fromJSON']));}static['fromTransaction'](_0x528fbf,_0x3c9a67){let _0x1a8987=none$2;for(let _0x49dfd5 of _0x528fbf['startState']['facet'](invertedEffects)){let _0x2cce8f=_0x49dfd5(_0x528fbf);_0x2cce8f['length']&&(_0x1a8987=_0x1a8987['concat'](_0x2cce8f));}return!_0x1a8987['length']&&_0x528fbf['changes']['empty']?null:new HistEvent(_0x528fbf['changes']['invert'](_0x528fbf['startState']['doc']),_0x1a8987,void 0x0,_0x3c9a67||_0x528fbf['startState']['selection'],none$2);}static['selection'](_0x542353){return new HistEvent(void 0x0,none$2,void 0x0,void 0x0,_0x542353);}}function updateBranch(_0x4a4aea,_0x94f64b,_0x7b5d5a,_0x2289c4){let _0x13eb4c=_0x94f64b+0x1>_0x7b5d5a+0x14?_0x94f64b-_0x7b5d5a-0x1:0x0,_0x1dbc6b=_0x4a4aea['slice'](_0x13eb4c,_0x94f64b);return _0x1dbc6b['push'](_0x2289c4),_0x1dbc6b;}function isAdjacent(_0x3715d1,_0x43977a){let _0x230163=[],_0x1ea0bc=!0x1;return _0x3715d1['iterChangedRanges']((_0x5805e4,t)=>_0x230163['push'](_0x5805e4,t)),_0x43977a['iterChangedRanges']((_0x4f60b5,_0x378a75,_0x2185ae,t)=>{for(let _0x224b45=0x0;_0x224b45<_0x230163['length'];){let _0x3ce2a8=_0x230163[_0x224b45++],_0x68334c=_0x230163[_0x224b45++];t>=_0x3ce2a8&&_0x2185ae<=_0x68334c&&(_0x1ea0bc=!0x0);}}),_0x1ea0bc;}function eqSelectionShape(_0x428d1f,_0x45372c){return _0x428d1f['ranges']['length']==_0x45372c['ranges']['length']&&0x0===_0x428d1f['ranges']['filter']((_0x59d7ae,_0x105e17)=>_0x59d7ae['empty']!=_0x45372c['ranges'][_0x105e17]['empty'])['length'];}function conc(_0x35dfe7,_0x29d971){return _0x35dfe7['length']?_0x29d971['length']?_0x35dfe7['concat'](_0x29d971):_0x35dfe7:_0x29d971;}const none$2=[],MaxSelectionsPerEvent=0xc8;function addSelection(_0x5d2e11,_0x54190a){if(_0x5d2e11['length']){let _0x2dfb67=_0x5d2e11[_0x5d2e11['length']-0x1],_0x5cace6=_0x2dfb67['selectionsAfter']['slice'](Math['max'](0x0,_0x2dfb67['selectionsAfter']['length']-MaxSelectionsPerEvent));return _0x5cace6['length']&&_0x5cace6[_0x5cace6['length']-0x1]['eq'](_0x54190a)?_0x5d2e11:(_0x5cace6['push'](_0x54190a),updateBranch(_0x5d2e11,_0x5d2e11['length']-0x1,0x3b9aca00,_0x2dfb67['setSelAfter'](_0x5cace6)));}return[HistEvent['selection']([_0x54190a])];}function popSelection(_0x44761b){let _0x25db5b=_0x44761b[_0x44761b['length']-0x1],_0x7ff369=_0x44761b['slice']();return _0x7ff369[_0x44761b['length']-0x1]=_0x25db5b['setSelAfter'](_0x25db5b['selectionsAfter']['slice'](0x0,_0x25db5b['selectionsAfter']['length']-0x1)),_0x7ff369;}function addMappingToBranch(_0x394afd,_0x12b2b7){if(!_0x394afd['length'])return _0x394afd;let _0x290563=_0x394afd['length'],_0x563dd2=none$2;for(;_0x290563;){let _0x3c1ba6=mapEvent(_0x394afd[_0x290563-0x1],_0x12b2b7,_0x563dd2);if(_0x3c1ba6['changes']&&!_0x3c1ba6['changes']['empty']||_0x3c1ba6['effects']['length']){let _0x5d90f0=_0x394afd['slice'](0x0,_0x290563);return _0x5d90f0[_0x290563-0x1]=_0x3c1ba6,_0x5d90f0;}_0x12b2b7=_0x3c1ba6['mapped'],_0x290563--,_0x563dd2=_0x3c1ba6['selectionsAfter'];}return _0x563dd2['length']?[HistEvent['selection'](_0x563dd2)]:none$2;}function mapEvent(_0x53ade4,_0x2f5a80,_0x2547d1){let _0x12aabf=conc(_0x53ade4['selectionsAfter']['length']?_0x53ade4['selectionsAfter']['map'](_0xe9501d=>_0xe9501d['map'](_0x2f5a80)):none$2,_0x2547d1);if(!_0x53ade4['changes'])return HistEvent['selection'](_0x12aabf);let _0x1b1364=_0x53ade4['changes']['map'](_0x2f5a80),_0x34da5d=_0x2f5a80['mapDesc'](_0x53ade4['changes'],!0x0),_0x599bc9=_0x53ade4['mapped']?_0x53ade4['mapped']['composeDesc'](_0x34da5d):_0x34da5d;return new HistEvent(_0x1b1364,StateEffect['mapEffects'](_0x53ade4['effects'],_0x2f5a80),_0x599bc9,_0x53ade4['startSelection']['map'](_0x34da5d),_0x12aabf);}const joinableUserEvent=/^(input\.type|delete)($|\.)/;class HistoryState{constructor(_0x64a510,_0x144cc7,_0x2aa593=0x0,_0x57ef46=void 0x0){this['done']=_0x64a510,this['undone']=_0x144cc7,this['prevTime']=_0x2aa593,this['prevUserEvent']=_0x57ef46;}['isolate'](){return this['prevTime']?new HistoryState(this['done'],this['undone']):this;}['addChanges'](_0xf4f0f0,_0x383725,_0x1ffd1a,_0x5a3e3e,_0x409d61){let _0x8c9e86=this['done'],_0x4b9b59=_0x8c9e86[_0x8c9e86['length']-0x1];return _0x8c9e86=_0x4b9b59&&_0x4b9b59['changes']&&!_0x4b9b59['changes']['empty']&&_0xf4f0f0['changes']&&(!_0x1ffd1a||joinableUserEvent['test'](_0x1ffd1a))&&(!_0x4b9b59['selectionsAfter']['length']&&_0x383725-this['prevTime']<_0x5a3e3e['newGroupDelay']&&_0x5a3e3e['joinToEvent'](_0x409d61,isAdjacent(_0x4b9b59['changes'],_0xf4f0f0['changes']))||'input.type.compose'==_0x1ffd1a)?updateBranch(_0x8c9e86,_0x8c9e86['length']-0x1,_0x5a3e3e['minDepth'],new HistEvent(_0xf4f0f0['changes']['compose'](_0x4b9b59['changes']),conc(StateEffect['mapEffects'](_0xf4f0f0['effects'],_0x4b9b59['changes']),_0x4b9b59['effects']),_0x4b9b59['mapped'],_0x4b9b59['startSelection'],none$2)):updateBranch(_0x8c9e86,_0x8c9e86['length'],_0x5a3e3e['minDepth'],_0xf4f0f0),new HistoryState(_0x8c9e86,none$2,_0x383725,_0x1ffd1a);}['addSelection'](_0x3ed6a7,_0x539875,_0x204f20,_0x177f57){let _0x521736=this['done']['length']?this['done'][this['done']['length']-0x1]['selectionsAfter']:none$2;return _0x521736['length']>0x0&&_0x539875-this['prevTime']<_0x177f57&&_0x204f20==this['prevUserEvent']&&_0x204f20&&/^select($|\.)/['test'](_0x204f20)&&eqSelectionShape(_0x521736[_0x521736['length']-0x1],_0x3ed6a7)?this:new HistoryState(addSelection(this['done'],_0x3ed6a7),this['undone'],_0x539875,_0x204f20);}['addMapping'](_0x53596d){return new HistoryState(addMappingToBranch(this['done'],_0x53596d),addMappingToBranch(this['undone'],_0x53596d),this['prevTime'],this['prevUserEvent']);}['pop'](_0x618a4e,_0x123825,_0xbefeb3){let _0x2a8127=0x0==_0x618a4e?this['done']:this['undone'];if(0x0==_0x2a8127['length'])return null;let _0x2431ea=_0x2a8127[_0x2a8127['length']-0x1],_0x134e6c=_0x2431ea['selectionsAfter'][0x0]||_0x123825['selection'];if(_0xbefeb3&&_0x2431ea['selectionsAfter']['length'])return _0x123825['update']({'selection':_0x2431ea['selectionsAfter'][_0x2431ea['selectionsAfter']['length']-0x1],'annotations':fromHistory['of']({'side':_0x618a4e,'rest':popSelection(_0x2a8127),'selection':_0x134e6c}),'userEvent':0x0==_0x618a4e?'select.undo':'select.redo','scrollIntoView':!0x0});if(_0x2431ea['changes']){let _0x5d97f9=0x1==_0x2a8127['length']?none$2:_0x2a8127['slice'](0x0,_0x2a8127['length']-0x1);return _0x2431ea['mapped']&&(_0x5d97f9=addMappingToBranch(_0x5d97f9,_0x2431ea['mapped'])),_0x123825['update']({'changes':_0x2431ea['changes'],'selection':_0x2431ea['startSelection'],'effects':_0x2431ea['effects'],'annotations':fromHistory['of']({'side':_0x618a4e,'rest':_0x5d97f9,'selection':_0x134e6c}),'filter':!0x1,'userEvent':0x0==_0x618a4e?'undo':'redo','scrollIntoView':!0x0});}return null;}}HistoryState['empty']=new HistoryState(none$2,none$2);const historyKeymap=[{'key':'Mod-z','run':undo,'preventDefault':!0x0},{'key':'Mod-y','mac':'Mod-Shift-z','run':redo,'preventDefault':!0x0},{'linux':'Ctrl-Shift-z','run':redo,'preventDefault':!0x0},{'key':'Mod-u','run':undoSelection,'preventDefault':!0x0},{'key':'Alt-u','mac':'Mod-Shift-u','run':redoSelection,'preventDefault':!0x0}];function updateSel(_0x2a0730,_0x2e5ff8){return EditorSelection['create'](_0x2a0730['ranges']['map'](_0x2e5ff8),_0x2a0730['mainIndex']);}function setSel(_0x34f107,_0x28b297){return _0x34f107['update']({'selection':_0x28b297,'scrollIntoView':!0x0,'userEvent':'select'});}function moveSel({state:_0x57f06d,dispatch:_0x2b3dc0},_0x66f20d){let _0xce93f6=updateSel(_0x57f06d['selection'],_0x66f20d);return!_0xce93f6['eq'](_0x57f06d['selection'],!0x0)&&(_0x2b3dc0(setSel(_0x57f06d,_0xce93f6)),!0x0);}function rangeEnd(_0xbb2e13,_0x29d4c3){return EditorSelection['cursor'](_0x29d4c3?_0xbb2e13['to']:_0xbb2e13['from']);}function cursorByChar(_0x3e46b9,_0x396de4){return moveSel(_0x3e46b9,_0x240ae9=>_0x240ae9['empty']?_0x3e46b9['moveByChar'](_0x240ae9,_0x396de4):rangeEnd(_0x240ae9,_0x396de4));}function ltrAtCursor(_0x660f6c){return _0x660f6c['textDirectionAt'](_0x660f6c['state']['selection']['main']['head'])==Direction['LTR'];}const cursorCharLeft=_0xd579fe=>cursorByChar(_0xd579fe,!ltrAtCursor(_0xd579fe)),cursorCharRight=_0x2b30d3=>cursorByChar(_0x2b30d3,ltrAtCursor(_0x2b30d3));function cursorByGroup(_0x42592e,_0x2975c8){return moveSel(_0x42592e,_0x50a7a8=>_0x50a7a8['empty']?_0x42592e['moveByGroup'](_0x50a7a8,_0x2975c8):rangeEnd(_0x50a7a8,_0x2975c8));}const cursorGroupLeft=_0x35c05e=>cursorByGroup(_0x35c05e,!ltrAtCursor(_0x35c05e)),cursorGroupRight=_0x2c66b1=>cursorByGroup(_0x2c66b1,ltrAtCursor(_0x2c66b1));function interestingNode(_0x716f92,_0x5076fa,_0x995578){if(_0x5076fa['type']['prop'](_0x995578))return!0x0;let _0x3eb70c=_0x5076fa['to']-_0x5076fa['from'];return _0x3eb70c&&(_0x3eb70c>0x2||/[^\s,.;:]/['test'](_0x716f92['sliceDoc'](_0x5076fa['from'],_0x5076fa['to'])))||_0x5076fa['firstChild'];}function moveBySyntax(_0x2e7ac5,_0x7e5279,_0x446ad8){let _0x591aa4,_0x3111c6,_0x4c05e3=syntaxTree(_0x2e7ac5)['resolveInner'](_0x7e5279['head']),_0x2e67fc=_0x446ad8?NodeProp['closedBy']:NodeProp['openedBy'];for(let _0x476c04=_0x7e5279['head'];;){let _0x491ee9=_0x446ad8?_0x4c05e3['childAfter'](_0x476c04):_0x4c05e3['childBefore'](_0x476c04);if(!_0x491ee9)break;interestingNode(_0x2e7ac5,_0x491ee9,_0x2e67fc)?_0x4c05e3=_0x491ee9:_0x476c04=_0x446ad8?_0x491ee9['to']:_0x491ee9['from'];}return _0x3111c6=_0x4c05e3['type']['prop'](_0x2e67fc)&&(_0x591aa4=_0x446ad8?matchBrackets(_0x2e7ac5,_0x4c05e3['from'],0x1):matchBrackets(_0x2e7ac5,_0x4c05e3['to'],-0x1))&&_0x591aa4['matched']?_0x446ad8?_0x591aa4['end']['to']:_0x591aa4['end']['from']:_0x446ad8?_0x4c05e3['to']:_0x4c05e3['from'],EditorSelection['cursor'](_0x3111c6,_0x446ad8?-0x1:0x1);}const cursorSyntaxLeft=_0x47abdf=>moveSel(_0x47abdf,_0x17833e=>moveBySyntax(_0x47abdf['state'],_0x17833e,!ltrAtCursor(_0x47abdf))),cursorSyntaxRight=_0x33c646=>moveSel(_0x33c646,_0x480e20=>moveBySyntax(_0x33c646['state'],_0x480e20,ltrAtCursor(_0x33c646)));function cursorByLine(_0x49ddc7,_0x229351){return moveSel(_0x49ddc7,_0x3c8808=>{if(!_0x3c8808['empty'])return rangeEnd(_0x3c8808,_0x229351);let _0xa2624e=_0x49ddc7['moveVertically'](_0x3c8808,_0x229351);return _0xa2624e['head']!=_0x3c8808['head']?_0xa2624e:_0x49ddc7['moveToLineBoundary'](_0x3c8808,_0x229351);});}const cursorLineUp=_0x5115ae=>cursorByLine(_0x5115ae,!0x1),cursorLineDown=_0x424f90=>cursorByLine(_0x424f90,!0x0);function pageInfo(_0x405f78){let _0x1f45ba,_0x118018=_0x405f78['scrollDOM']['clientHeight']<_0x405f78['scrollDOM']['scrollHeight']-0x2,_0x5a64ed=0x0,_0x2d9fcc=0x0;if(_0x118018){for(let _0x5ab204 of _0x405f78['state']['facet'](EditorView['scrollMargins'])){let _0x1f224b=_0x5ab204(_0x405f78);(null==_0x1f224b?void 0x0:_0x1f224b['top'])&&(_0x5a64ed=Math['max'](null==_0x1f224b?void 0x0:_0x1f224b['top'],_0x5a64ed)),(null==_0x1f224b?void 0x0:_0x1f224b['bottom'])&&(_0x2d9fcc=Math['max'](null==_0x1f224b?void 0x0:_0x1f224b['bottom'],_0x2d9fcc));}_0x1f45ba=_0x405f78['scrollDOM']['clientHeight']-_0x5a64ed-_0x2d9fcc;}else _0x1f45ba=(_0x405f78['dom']['ownerDocument']['defaultView']||window)['innerHeight'];return{'marginTop':_0x5a64ed,'marginBottom':_0x2d9fcc,'selfScroll':_0x118018,'height':Math['max'](_0x405f78['defaultLineHeight'],_0x1f45ba-0x5)};}function cursorByPage(_0x4be84e,_0x1eb053){let _0x2b691e,_0x1fd858=pageInfo(_0x4be84e),{state:_0x31b7bb}=_0x4be84e,_0x19617d=updateSel(_0x31b7bb['selection'],_0x450f34=>_0x450f34['empty']?_0x4be84e['moveVertically'](_0x450f34,_0x1eb053,_0x1fd858['height']):rangeEnd(_0x450f34,_0x1eb053));if(_0x19617d['eq'](_0x31b7bb['selection']))return!0x1;if(_0x1fd858['selfScroll']){let _0x1c8eac=_0x4be84e['coordsAtPos'](_0x31b7bb['selection']['main']['head']),_0x198068=_0x4be84e['scrollDOM']['getBoundingClientRect'](),_0x255cef=_0x198068['top']+_0x1fd858['marginTop'],_0x424244=_0x198068['bottom']-_0x1fd858['marginBottom'];_0x1c8eac&&_0x1c8eac['top']>_0x255cef&&_0x1c8eac['bottom']<_0x424244&&(_0x2b691e=EditorView['scrollIntoView'](_0x19617d['main']['head'],{'y':'start','yMargin':_0x1c8eac['top']-_0x255cef}));}return _0x4be84e['dispatch'](setSel(_0x31b7bb,_0x19617d),{'effects':_0x2b691e}),!0x0;}const cursorPageUp=_0x5b236a=>cursorByPage(_0x5b236a,!0x1),cursorPageDown=_0x326535=>cursorByPage(_0x326535,!0x0);function moveByLineBoundary(_0x351162,_0x1c68ca,_0x438f80){let _0x2960eb=_0x351162['lineBlockAt'](_0x1c68ca['head']),_0xb14029=_0x351162['moveToLineBoundary'](_0x1c68ca,_0x438f80);if(_0xb14029['head']==_0x1c68ca['head']&&_0xb14029['head']!=(_0x438f80?_0x2960eb['to']:_0x2960eb['from'])&&(_0xb14029=_0x351162['moveToLineBoundary'](_0x1c68ca,_0x438f80,!0x1)),!_0x438f80&&_0xb14029['head']==_0x2960eb['from']&&_0x2960eb['length']){let _0x258f4d=/^\s*/['exec'](_0x351162['state']['sliceDoc'](_0x2960eb['from'],Math['min'](_0x2960eb['from']+0x64,_0x2960eb['to'])))[0x0]['length'];_0x258f4d&&_0x1c68ca['head']!=_0x2960eb['from']+_0x258f4d&&(_0xb14029=EditorSelection['cursor'](_0x2960eb['from']+_0x258f4d));}return _0xb14029;}const cursorLineBoundaryForward=_0x1d57ff=>moveSel(_0x1d57ff,_0x65b6ab=>moveByLineBoundary(_0x1d57ff,_0x65b6ab,!0x0)),cursorLineBoundaryBackward=_0x2b31df=>moveSel(_0x2b31df,_0x150770=>moveByLineBoundary(_0x2b31df,_0x150770,!0x1)),cursorLineBoundaryLeft=_0x2f98fa=>moveSel(_0x2f98fa,_0x5581e9=>moveByLineBoundary(_0x2f98fa,_0x5581e9,!ltrAtCursor(_0x2f98fa))),cursorLineBoundaryRight=_0x3d6b7b=>moveSel(_0x3d6b7b,_0x4acc00=>moveByLineBoundary(_0x3d6b7b,_0x4acc00,ltrAtCursor(_0x3d6b7b))),cursorLineStart=_0x11c040=>moveSel(_0x11c040,_0x2f95bb=>EditorSelection['cursor'](_0x11c040['lineBlockAt'](_0x2f95bb['head'])['from'],0x1)),cursorLineEnd=_0x354793=>moveSel(_0x354793,_0x39862f=>EditorSelection['cursor'](_0x354793['lineBlockAt'](_0x39862f['head'])['to'],-0x1));function toMatchingBracket(_0x6c3a1,_0x21ed50,_0xe2e44c){let _0x10727c=!0x1,_0x46a7cd=updateSel(_0x6c3a1['selection'],_0x4e80c1=>{let _0x5ac193=matchBrackets(_0x6c3a1,_0x4e80c1['head'],-0x1)||matchBrackets(_0x6c3a1,_0x4e80c1['head'],0x1)||_0x4e80c1['head']>0x0&&matchBrackets(_0x6c3a1,_0x4e80c1['head']-0x1,0x1)||_0x4e80c1['head']<_0x6c3a1['doc']['length']&&matchBrackets(_0x6c3a1,_0x4e80c1['head']+0x1,-0x1);if(!_0x5ac193||!_0x5ac193['end'])return _0x4e80c1;_0x10727c=!0x0;let _0x4c3e31=_0x5ac193['start']['from']==_0x4e80c1['head']?_0x5ac193['end']['to']:_0x5ac193['end']['from'];return EditorSelection['cursor'](_0x4c3e31);});return!!_0x10727c&&(_0x21ed50(setSel(_0x6c3a1,_0x46a7cd)),!0x0);}const cursorMatchingBracket=({state:_0xc5be38,dispatch:_0x28a6e1})=>toMatchingBracket(_0xc5be38,_0x28a6e1);function extendSel(_0x7486ee,_0x19bc67){let _0xa30abe=updateSel(_0x7486ee['state']['selection'],_0x2f1b68=>{let _0x3ef4e2=_0x19bc67(_0x2f1b68);return EditorSelection['range'](_0x2f1b68['anchor'],_0x3ef4e2['head'],_0x3ef4e2['goalColumn'],_0x3ef4e2['bidiLevel']||void 0x0);});return!_0xa30abe['eq'](_0x7486ee['state']['selection'])&&(_0x7486ee['dispatch'](setSel(_0x7486ee['state'],_0xa30abe)),!0x0);}function selectByChar(_0x465e68,_0x5a1a78){return extendSel(_0x465e68,_0x5048eb=>_0x465e68['moveByChar'](_0x5048eb,_0x5a1a78));}const selectCharLeft=_0x4c1fad=>selectByChar(_0x4c1fad,!ltrAtCursor(_0x4c1fad)),selectCharRight=_0x35eb27=>selectByChar(_0x35eb27,ltrAtCursor(_0x35eb27));function selectByGroup(_0x5a34b4,_0x2ed62a){return extendSel(_0x5a34b4,_0x5babc0=>_0x5a34b4['moveByGroup'](_0x5babc0,_0x2ed62a));}const selectGroupLeft=_0x403a45=>selectByGroup(_0x403a45,!ltrAtCursor(_0x403a45)),selectGroupRight=_0x20ba6b=>selectByGroup(_0x20ba6b,ltrAtCursor(_0x20ba6b)),selectSyntaxLeft=_0x3466ea=>extendSel(_0x3466ea,_0x2122c2=>moveBySyntax(_0x3466ea['state'],_0x2122c2,!ltrAtCursor(_0x3466ea))),selectSyntaxRight=_0x211e82=>extendSel(_0x211e82,_0x475b19=>moveBySyntax(_0x211e82['state'],_0x475b19,ltrAtCursor(_0x211e82)));function selectByLine(_0x46b3ec,_0x13fdd2){return extendSel(_0x46b3ec,_0x1559b0=>_0x46b3ec['moveVertically'](_0x1559b0,_0x13fdd2));}const selectLineUp=_0xdc377b=>selectByLine(_0xdc377b,!0x1),selectLineDown=_0x4473ed=>selectByLine(_0x4473ed,!0x0);function selectByPage(_0x34d4c0,_0xe91f2){return extendSel(_0x34d4c0,_0x2a5829=>_0x34d4c0['moveVertically'](_0x2a5829,_0xe91f2,pageInfo(_0x34d4c0)['height']));}const selectPageUp=_0x1259fc=>selectByPage(_0x1259fc,!0x1),selectPageDown=_0x333f71=>selectByPage(_0x333f71,!0x0),selectLineBoundaryForward=_0x5e6876=>extendSel(_0x5e6876,_0x5d486e=>moveByLineBoundary(_0x5e6876,_0x5d486e,!0x0)),selectLineBoundaryBackward=_0x24a646=>extendSel(_0x24a646,_0x5ef6ce=>moveByLineBoundary(_0x24a646,_0x5ef6ce,!0x1)),selectLineBoundaryLeft=_0x1cb65b=>extendSel(_0x1cb65b,_0x10d38b=>moveByLineBoundary(_0x1cb65b,_0x10d38b,!ltrAtCursor(_0x1cb65b))),selectLineBoundaryRight=_0x1e6e13=>extendSel(_0x1e6e13,_0x3ddbb9=>moveByLineBoundary(_0x1e6e13,_0x3ddbb9,ltrAtCursor(_0x1e6e13))),selectLineStart=_0x18c911=>extendSel(_0x18c911,_0x163681=>EditorSelection['cursor'](_0x18c911['lineBlockAt'](_0x163681['head'])['from'])),selectLineEnd=_0x345880=>extendSel(_0x345880,_0x453b32=>EditorSelection['cursor'](_0x345880['lineBlockAt'](_0x453b32['head'])['to'])),cursorDocStart=({state:_0x404590,dispatch:_0x560f12})=>(_0x560f12(setSel(_0x404590,{'anchor':0x0})),!0x0),cursorDocEnd=({state:_0x343a4b,dispatch:_0x1f231f})=>(_0x1f231f(setSel(_0x343a4b,{'anchor':_0x343a4b['doc']['length']})),!0x0),selectDocStart=({state:_0x4da6ad,dispatch:_0x2cc8a8})=>(_0x2cc8a8(setSel(_0x4da6ad,{'anchor':_0x4da6ad['selection']['main']['anchor'],'head':0x0})),!0x0),selectDocEnd=({state:_0x2705f8,dispatch:_0x199742})=>(_0x199742(setSel(_0x2705f8,{'anchor':_0x2705f8['selection']['main']['anchor'],'head':_0x2705f8['doc']['length']})),!0x0),selectAll=({state:_0x202467,dispatch:_0x3e1a17})=>(_0x3e1a17(_0x202467['update']({'selection':{'anchor':0x0,'head':_0x202467['doc']['length']},'userEvent':'select'})),!0x0),selectLine=({state:_0x38e908,dispatch:_0x13b70a})=>{let _0x17a139=selectedLineBlocks(_0x38e908)['map'](({from:_0x4d25c6,to:_0x1596d7})=>EditorSelection['range'](_0x4d25c6,Math['min'](_0x1596d7+0x1,_0x38e908['doc']['length'])));return _0x13b70a(_0x38e908['update']({'selection':EditorSelection['create'](_0x17a139),'userEvent':'select'})),!0x0;},selectParentSyntax=({state:_0x5c538d,dispatch:_0x1e0934})=>{let _0x18cadf=updateSel(_0x5c538d['selection'],_0x30efa4=>{let _0x3e2a30=syntaxTree(_0x5c538d),_0x1cac1d=_0x3e2a30['resolveStack'](_0x30efa4['from'],0x1);if(_0x30efa4['empty']){let _0x1b80e1=_0x3e2a30['resolveStack'](_0x30efa4['from'],-0x1);_0x1b80e1['node']['from']>=_0x1cac1d['node']['from']&&_0x1b80e1['node']['to']<=_0x1cac1d['node']['to']&&(_0x1cac1d=_0x1b80e1);}for(let _0x59dd14=_0x1cac1d;_0x59dd14;_0x59dd14=_0x59dd14['next']){let {node:_0x206e95}=_0x59dd14;if((_0x206e95['from']<_0x30efa4['from']&&_0x206e95['to']>=_0x30efa4['to']||_0x206e95['to']>_0x30efa4['to']&&_0x206e95['from']<=_0x30efa4['from'])&&_0x59dd14['next'])return EditorSelection['range'](_0x206e95['to'],_0x206e95['from']);}return _0x30efa4;});return!_0x18cadf['eq'](_0x5c538d['selection'])&&(_0x1e0934(setSel(_0x5c538d,_0x18cadf)),!0x0);},simplifySelection=({state:_0x4d5440,dispatch:_0x3b87a9})=>{let _0x2dbb6b=_0x4d5440['selection'],_0x477ca5=null;return _0x2dbb6b['ranges']['length']>0x1?_0x477ca5=EditorSelection['create']([_0x2dbb6b['main']]):_0x2dbb6b['main']['empty']||(_0x477ca5=EditorSelection['create']([EditorSelection['cursor'](_0x2dbb6b['main']['head'])])),!!_0x477ca5&&(_0x3b87a9(setSel(_0x4d5440,_0x477ca5)),!0x0);};function deleteBy(_0x2bd85b,_0x3555a8){if(_0x2bd85b['state']['readOnly'])return!0x1;let _0x237c28='delete.selection',{state:_0x4884be}=_0x2bd85b,_0x3f909a=_0x4884be['changeByRange'](_0x5c9755=>{let {from:_0x473591,to:_0x8fda5e}=_0x5c9755;if(_0x473591==_0x8fda5e){let _0x4d4d39=_0x3555a8(_0x5c9755);_0x4d4d39<_0x473591?(_0x237c28='delete.backward',_0x4d4d39=skipAtomic(_0x2bd85b,_0x4d4d39,!0x1)):_0x4d4d39>_0x473591&&(_0x237c28='delete.forward',_0x4d4d39=skipAtomic(_0x2bd85b,_0x4d4d39,!0x0)),_0x473591=Math['min'](_0x473591,_0x4d4d39),_0x8fda5e=Math['max'](_0x8fda5e,_0x4d4d39);}else _0x473591=skipAtomic(_0x2bd85b,_0x473591,!0x1),_0x8fda5e=skipAtomic(_0x2bd85b,_0x8fda5e,!0x0);return _0x473591==_0x8fda5e?{'range':_0x5c9755}:{'changes':{'from':_0x473591,'to':_0x8fda5e},'range':EditorSelection['cursor'](_0x473591,_0x473591<_0x5c9755['head']?-0x1:0x1)};});return!_0x3f909a['changes']['empty']&&(_0x2bd85b['dispatch'](_0x4884be['update'](_0x3f909a,{'scrollIntoView':!0x0,'userEvent':_0x237c28,'effects':'delete.selection'==_0x237c28?EditorView['announce']['of'](_0x4884be['phrase']('Selection\x20deleted')):void 0x0})),!0x0);}function skipAtomic(_0x3e6493,_0x356893,_0x230c47){if(_0x3e6493 instanceof EditorView){for(let _0x2f8c8d of _0x3e6493['state']['facet'](EditorView['atomicRanges'])['map'](_0x4ce689=>_0x4ce689(_0x3e6493)))_0x2f8c8d['between'](_0x356893,_0x356893,(_0x19b8df,_0x3a4bcc)=>{_0x19b8df<_0x356893&&_0x3a4bcc>_0x356893&&(_0x356893=_0x230c47?_0x3a4bcc:_0x19b8df);});}return _0x356893;}const deleteByChar=(_0x422f83,_0x548a92,_0x379216)=>deleteBy(_0x422f83,_0x321c67=>{let _0x4fc0dc,_0x1d84aa,_0x2ff29f=_0x321c67['from'],{state:_0x3a09ab}=_0x422f83,_0xee2e6d=_0x3a09ab['doc']['lineAt'](_0x2ff29f);if(_0x379216&&!_0x548a92&&_0x2ff29f>_0xee2e6d['from']&&_0x2ff29f<_0xee2e6d['from']+0xc8&&!/[^ \t]/['test'](_0x4fc0dc=_0xee2e6d['text']['slice'](0x0,_0x2ff29f-_0xee2e6d['from']))){if('\x09'==_0x4fc0dc[_0x4fc0dc['length']-0x1])return _0x2ff29f-0x1;let _0x4507c7=countColumn(_0x4fc0dc,_0x3a09ab['tabSize'])%getIndentUnit(_0x3a09ab)||getIndentUnit(_0x3a09ab);for(let _0x1c45df=0x0;_0x1c45df<_0x4507c7&&'\x20'==_0x4fc0dc[_0x4fc0dc['length']-0x1-_0x1c45df];_0x1c45df++)_0x2ff29f--;_0x1d84aa=_0x2ff29f;}else _0x1d84aa=findClusterBreak(_0xee2e6d['text'],_0x2ff29f-_0xee2e6d['from'],_0x548a92,_0x548a92)+_0xee2e6d['from'],_0x1d84aa==_0x2ff29f&&_0xee2e6d['number']!=(_0x548a92?_0x3a09ab['doc']['lines']:0x1)?_0x1d84aa+=_0x548a92?0x1:-0x1:!_0x548a92&&/[\ufe00-\ufe0f]/['test'](_0xee2e6d['text']['slice'](_0x1d84aa-_0xee2e6d['from'],_0x2ff29f-_0xee2e6d['from']))&&(_0x1d84aa=findClusterBreak(_0xee2e6d['text'],_0x1d84aa-_0xee2e6d['from'],!0x1,!0x1)+_0xee2e6d['from']);return _0x1d84aa;}),deleteCharBackward=_0x4919c9=>deleteByChar(_0x4919c9,!0x1,!0x0),deleteCharForward=_0xddb41=>deleteByChar(_0xddb41,!0x0,!0x1),deleteByGroup=(_0x156ad7,_0x43775d)=>deleteBy(_0x156ad7,_0x543d09=>{let _0x390f0c=_0x543d09['head'],{state:_0xde50a3}=_0x156ad7,_0x396cfb=_0xde50a3['doc']['lineAt'](_0x390f0c),_0x5ad417=_0xde50a3['charCategorizer'](_0x390f0c);for(let _0x257d71=null;;){if(_0x390f0c==(_0x43775d?_0x396cfb['to']:_0x396cfb['from'])){_0x390f0c==_0x543d09['head']&&_0x396cfb['number']!=(_0x43775d?_0xde50a3['doc']['lines']:0x1)&&(_0x390f0c+=_0x43775d?0x1:-0x1);break;}let _0x5ae56f=findClusterBreak(_0x396cfb['text'],_0x390f0c-_0x396cfb['from'],_0x43775d)+_0x396cfb['from'],_0x565579=_0x396cfb['text']['slice'](Math['min'](_0x390f0c,_0x5ae56f)-_0x396cfb['from'],Math['max'](_0x390f0c,_0x5ae56f)-_0x396cfb['from']),_0x19931f=_0x5ad417(_0x565579);if(null!=_0x257d71&&_0x19931f!=_0x257d71)break;'\x20'==_0x565579&&_0x390f0c==_0x543d09['head']||(_0x257d71=_0x19931f),_0x390f0c=_0x5ae56f;}return _0x390f0c;}),deleteGroupBackward=_0x43d6a8=>deleteByGroup(_0x43d6a8,!0x1),deleteGroupForward=_0x117bc9=>deleteByGroup(_0x117bc9,!0x0),deleteToLineEnd=_0x54e3a8=>deleteBy(_0x54e3a8,_0x264618=>{let _0x3b9530=_0x54e3a8['lineBlockAt'](_0x264618['head'])['to'];return _0x264618['head']<_0x3b9530?_0x3b9530:Math['min'](_0x54e3a8['state']['doc']['length'],_0x264618['head']+0x1);}),deleteLineBoundaryBackward=_0x264784=>deleteBy(_0x264784,_0x15ff54=>{let _0x288787=_0x264784['moveToLineBoundary'](_0x15ff54,!0x1)['head'];return _0x15ff54['head']>_0x288787?_0x288787:Math['max'](0x0,_0x15ff54['head']-0x1);}),deleteLineBoundaryForward=_0x28df47=>deleteBy(_0x28df47,_0x3003b1=>{let _0x344041=_0x28df47['moveToLineBoundary'](_0x3003b1,!0x0)['head'];return _0x3003b1['head']<_0x344041?_0x344041:Math['min'](_0x28df47['state']['doc']['length'],_0x3003b1['head']+0x1);}),splitLine=({state:_0x38b36c,dispatch:_0x1c7160})=>{if(_0x38b36c['readOnly'])return!0x1;let _0x50c5fa=_0x38b36c['changeByRange'](_0x3c9260=>({'changes':{'from':_0x3c9260['from'],'to':_0x3c9260['to'],'insert':Text['of'](['',''])},'range':EditorSelection['cursor'](_0x3c9260['from'])}));return _0x1c7160(_0x38b36c['update'](_0x50c5fa,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0;},transposeChars=({state:_0x3e31a0,dispatch:_0x46acca})=>{if(_0x3e31a0['readOnly'])return!0x1;let _0x332db3=_0x3e31a0['changeByRange'](_0x1e9feb=>{if(!_0x1e9feb['empty']||0x0==_0x1e9feb['from']||_0x1e9feb['from']==_0x3e31a0['doc']['length'])return{'range':_0x1e9feb};let _0x403fee=_0x1e9feb['from'],_0x43de3f=_0x3e31a0['doc']['lineAt'](_0x403fee),_0x4e6d30=_0x403fee==_0x43de3f['from']?_0x403fee-0x1:findClusterBreak(_0x43de3f['text'],_0x403fee-_0x43de3f['from'],!0x1)+_0x43de3f['from'],_0x1c9210=_0x403fee==_0x43de3f['to']?_0x403fee+0x1:findClusterBreak(_0x43de3f['text'],_0x403fee-_0x43de3f['from'],!0x0)+_0x43de3f['from'];return{'changes':{'from':_0x4e6d30,'to':_0x1c9210,'insert':_0x3e31a0['doc']['slice'](_0x403fee,_0x1c9210)['append'](_0x3e31a0['doc']['slice'](_0x4e6d30,_0x403fee))},'range':EditorSelection['cursor'](_0x1c9210)};});return!_0x332db3['changes']['empty']&&(_0x46acca(_0x3e31a0['update'](_0x332db3,{'scrollIntoView':!0x0,'userEvent':'move.character'})),!0x0);};function selectedLineBlocks(_0x196373){let _0x1e2d3c=[],_0x303312=-0x1;for(let _0x4a2008 of _0x196373['selection']['ranges']){let _0x39a40d=_0x196373['doc']['lineAt'](_0x4a2008['from']),_0x524de2=_0x196373['doc']['lineAt'](_0x4a2008['to']);if(_0x4a2008['empty']||_0x4a2008['to']!=_0x524de2['from']||(_0x524de2=_0x196373['doc']['lineAt'](_0x4a2008['to']-0x1)),_0x303312>=_0x39a40d['number']){let _0x68c473=_0x1e2d3c[_0x1e2d3c['length']-0x1];_0x68c473['to']=_0x524de2['to'],_0x68c473['ranges']['push'](_0x4a2008);}else _0x1e2d3c['push']({'from':_0x39a40d['from'],'to':_0x524de2['to'],'ranges':[_0x4a2008]});_0x303312=_0x524de2['number']+0x1;}return _0x1e2d3c;}function moveLine(_0x16d18e,_0x3ad146,_0xd3d240){if(_0x16d18e['readOnly'])return!0x1;let _0x88b9a3=[],_0x4f4990=[];for(let _0x177d50 of selectedLineBlocks(_0x16d18e)){if(_0xd3d240?_0x177d50['to']==_0x16d18e['doc']['length']:0x0==_0x177d50['from'])continue;let _0x450bd5=_0x16d18e['doc']['lineAt'](_0xd3d240?_0x177d50['to']+0x1:_0x177d50['from']-0x1),_0x5f4df8=_0x450bd5['length']+0x1;if(_0xd3d240){_0x88b9a3['push']({'from':_0x177d50['to'],'to':_0x450bd5['to']},{'from':_0x177d50['from'],'insert':_0x450bd5['text']+_0x16d18e['lineBreak']});for(let _0x4ce4f4 of _0x177d50['ranges'])_0x4f4990['push'](EditorSelection['range'](Math['min'](_0x16d18e['doc']['length'],_0x4ce4f4['anchor']+_0x5f4df8),Math['min'](_0x16d18e['doc']['length'],_0x4ce4f4['head']+_0x5f4df8)));}else{_0x88b9a3['push']({'from':_0x450bd5['from'],'to':_0x177d50['from']},{'from':_0x177d50['to'],'insert':_0x16d18e['lineBreak']+_0x450bd5['text']});for(let _0x115602 of _0x177d50['ranges'])_0x4f4990['push'](EditorSelection['range'](_0x115602['anchor']-_0x5f4df8,_0x115602['head']-_0x5f4df8));}}return!!_0x88b9a3['length']&&(_0x3ad146(_0x16d18e['update']({'changes':_0x88b9a3,'scrollIntoView':!0x0,'selection':EditorSelection['create'](_0x4f4990,_0x16d18e['selection']['mainIndex']),'userEvent':'move.line'})),!0x0);}const moveLineUp=({state:_0x2fc632,dispatch:_0x111987})=>moveLine(_0x2fc632,_0x111987,!0x1),moveLineDown=({state:_0x3df13e,dispatch:_0x4c29e0})=>moveLine(_0x3df13e,_0x4c29e0,!0x0);function copyLine(_0x29547e,_0x46fa53,_0x4f31e1){if(_0x29547e['readOnly'])return!0x1;let _0x2560c4=[];for(let _0x26b0ff of selectedLineBlocks(_0x29547e))_0x4f31e1?_0x2560c4['push']({'from':_0x26b0ff['from'],'insert':_0x29547e['doc']['slice'](_0x26b0ff['from'],_0x26b0ff['to'])+_0x29547e['lineBreak']}):_0x2560c4['push']({'from':_0x26b0ff['to'],'insert':_0x29547e['lineBreak']+_0x29547e['doc']['slice'](_0x26b0ff['from'],_0x26b0ff['to'])});return _0x46fa53(_0x29547e['update']({'changes':_0x2560c4,'scrollIntoView':!0x0,'userEvent':'input.copyline'})),!0x0;}const copyLineUp=({state:_0x15b70,dispatch:_0x499f6e})=>copyLine(_0x15b70,_0x499f6e,!0x1),copyLineDown=({state:_0x4655de,dispatch:_0x20d131})=>copyLine(_0x4655de,_0x20d131,!0x0),deleteLine=_0x31cd2d=>{if(_0x31cd2d['state']['readOnly'])return!0x1;let {state:_0x1459e7}=_0x31cd2d,_0x2a94a6=_0x1459e7['changes'](selectedLineBlocks(_0x1459e7)['map'](({from:_0x43fb20,to:_0x16b4ce})=>(_0x43fb20>0x0?_0x43fb20--:_0x16b4ce<_0x1459e7['doc']['length']&&_0x16b4ce++,{'from':_0x43fb20,'to':_0x16b4ce}))),_0x1894b2=updateSel(_0x1459e7['selection'],_0x1fd23f=>{let _0x36520f;if(_0x31cd2d['lineWrapping']){let _0xe03b50=_0x31cd2d['lineBlockAt'](_0x1fd23f['head']),_0x32a1c0=_0x31cd2d['coordsAtPos'](_0x1fd23f['head'],_0x1fd23f['assoc']||0x1);_0x32a1c0&&(_0x36520f=_0xe03b50['bottom']+_0x31cd2d['documentTop']-_0x32a1c0['bottom']+_0x31cd2d['defaultLineHeight']/0x2);}return _0x31cd2d['moveVertically'](_0x1fd23f,!0x0,_0x36520f);})['map'](_0x2a94a6);return _0x31cd2d['dispatch']({'changes':_0x2a94a6,'selection':_0x1894b2,'scrollIntoView':!0x0,'userEvent':'delete.line'}),!0x0;};function isBetweenBrackets(_0x4682e0,_0x25bffc){if(/\(\)|\[\]|\{\}/['test'](_0x4682e0['sliceDoc'](_0x25bffc-0x1,_0x25bffc+0x1)))return{'from':_0x25bffc,'to':_0x25bffc};let _0x2648fe,_0x279501=syntaxTree(_0x4682e0)['resolveInner'](_0x25bffc),_0x2dc1bb=_0x279501['childBefore'](_0x25bffc),_0x4ef706=_0x279501['childAfter'](_0x25bffc);return _0x2dc1bb&&_0x4ef706&&_0x2dc1bb['to']<=_0x25bffc&&_0x4ef706['from']>=_0x25bffc&&(_0x2648fe=_0x2dc1bb['type']['prop'](NodeProp['closedBy']))&&_0x2648fe['indexOf'](_0x4ef706['name'])>-0x1&&_0x4682e0['doc']['lineAt'](_0x2dc1bb['to'])['from']==_0x4682e0['doc']['lineAt'](_0x4ef706['from'])['from']&&!/\S/['test'](_0x4682e0['sliceDoc'](_0x2dc1bb['to'],_0x4ef706['from']))?{'from':_0x2dc1bb['to'],'to':_0x4ef706['from']}:null;}const insertNewlineAndIndent=newlineAndIndent(!0x1),insertBlankLine=newlineAndIndent(!0x0);function newlineAndIndent(_0x55561c){return({state:_0x575779,dispatch:_0x5fd20c})=>{if(_0x575779['readOnly'])return!0x1;let _0x232f0b=_0x575779['changeByRange'](_0x3110c2=>{let {from:_0x43f777,to:_0x58c9fa}=_0x3110c2,_0x571214=_0x575779['doc']['lineAt'](_0x43f777),_0x32a31f=!_0x55561c&&_0x43f777==_0x58c9fa&&isBetweenBrackets(_0x575779,_0x43f777);_0x55561c&&(_0x43f777=_0x58c9fa=(_0x58c9fa<=_0x571214['to']?_0x571214:_0x575779['doc']['lineAt'](_0x58c9fa))['to']);let _0x2e9214=new IndentContext(_0x575779,{'simulateBreak':_0x43f777,'simulateDoubleBreak':!!_0x32a31f}),_0x18ce75=getIndentation(_0x2e9214,_0x43f777);for(null==_0x18ce75&&(_0x18ce75=countColumn(/^\s*/['exec'](_0x575779['doc']['lineAt'](_0x43f777)['text'])[0x0],_0x575779['tabSize']));_0x58c9fa<_0x571214['to']&&/\s/['test'](_0x571214['text'][_0x58c9fa-_0x571214['from']]);)_0x58c9fa++;_0x32a31f?{from:_0x43f777,to:_0x58c9fa}=_0x32a31f:_0x43f777>_0x571214['from']&&_0x43f777<_0x571214['from']+0x64&&!/\S/['test'](_0x571214['text']['slice'](0x0,_0x43f777))&&(_0x43f777=_0x571214['from']);let _0x3b509e=['',indentString(_0x575779,_0x18ce75)];return _0x32a31f&&_0x3b509e['push'](indentString(_0x575779,_0x2e9214['lineIndent'](_0x571214['from'],-0x1))),{'changes':{'from':_0x43f777,'to':_0x58c9fa,'insert':Text['of'](_0x3b509e)},'range':EditorSelection['cursor'](_0x43f777+0x1+_0x3b509e[0x1]['length'])};});return _0x5fd20c(_0x575779['update'](_0x232f0b,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0;};}function changeBySelectedLine(_0x419460,_0x5a34ff){let _0x4236a0=-0x1;return _0x419460['changeByRange'](_0x338124=>{let _0x11487d=[];for(let _0x258bae=_0x338124['from'];_0x258bae<=_0x338124['to'];){let _0x4b8974=_0x419460['doc']['lineAt'](_0x258bae);_0x4b8974['number']>_0x4236a0&&(_0x338124['empty']||_0x338124['to']>_0x4b8974['from'])&&(_0x5a34ff(_0x4b8974,_0x11487d,_0x338124),_0x4236a0=_0x4b8974['number']),_0x258bae=_0x4b8974['to']+0x1;}let _0xa5e30f=_0x419460['changes'](_0x11487d);return{'changes':_0x11487d,'range':EditorSelection['range'](_0xa5e30f['mapPos'](_0x338124['anchor'],0x1),_0xa5e30f['mapPos'](_0x338124['head'],0x1))};});}const indentSelection=({state:_0xf59cb0,dispatch:_0x1960ea})=>{if(_0xf59cb0['readOnly'])return!0x1;let _0x3aa3e2=Object['create'](null),_0x3ec99b=new IndentContext(_0xf59cb0,{'overrideIndentation':_0x26127c=>{let _0x44fc7e=_0x3aa3e2[_0x26127c];return null==_0x44fc7e?-0x1:_0x44fc7e;}}),_0x13c037=changeBySelectedLine(_0xf59cb0,(_0x179698,_0x24946a,_0x25c639)=>{let _0x547daf=getIndentation(_0x3ec99b,_0x179698['from']);if(null==_0x547daf)return;/\S/['test'](_0x179698['text'])||(_0x547daf=0x0);let _0x2d6dcc=/^\s*/['exec'](_0x179698['text'])[0x0],_0x162202=indentString(_0xf59cb0,_0x547daf);(_0x2d6dcc!=_0x162202||_0x25c639['from']<_0x179698['from']+_0x2d6dcc['length'])&&(_0x3aa3e2[_0x179698['from']]=_0x547daf,_0x24946a['push']({'from':_0x179698['from'],'to':_0x179698['from']+_0x2d6dcc['length'],'insert':_0x162202}));});return _0x13c037['changes']['empty']||_0x1960ea(_0xf59cb0['update'](_0x13c037,{'userEvent':'indent'})),!0x0;},indentMore=({state:_0x3aadad,dispatch:_0x4f1c38})=>!_0x3aadad['readOnly']&&(_0x4f1c38(_0x3aadad['update'](changeBySelectedLine(_0x3aadad,(_0x5ea73f,_0x23eb21)=>{_0x23eb21['push']({'from':_0x5ea73f['from'],'insert':_0x3aadad['facet'](indentUnit)});}),{'userEvent':'input.indent'})),!0x0),indentLess=({state:_0x2fde64,dispatch:_0x5b2ac8})=>!_0x2fde64['readOnly']&&(_0x5b2ac8(_0x2fde64['update'](changeBySelectedLine(_0x2fde64,(_0x37e4d,_0x7e7b7d)=>{let _0x18af86=/^\s*/['exec'](_0x37e4d['text'])[0x0];if(!_0x18af86)return;let _0x3f76a2=countColumn(_0x18af86,_0x2fde64['tabSize']),_0x3273e3=0x0,_0x58fcde=indentString(_0x2fde64,Math['max'](0x0,_0x3f76a2-getIndentUnit(_0x2fde64)));for(;_0x3273e3<_0x18af86['length']&&_0x3273e3<_0x58fcde['length']&&_0x18af86['charCodeAt'](_0x3273e3)==_0x58fcde['charCodeAt'](_0x3273e3);)_0x3273e3++;_0x7e7b7d['push']({'from':_0x37e4d['from']+_0x3273e3,'to':_0x37e4d['from']+_0x18af86['length'],'insert':_0x58fcde['slice'](_0x3273e3)});}),{'userEvent':'delete.dedent'})),!0x0),toggleTabFocusMode=_0x80a42=>(_0x80a42['setTabFocusMode'](),!0x0),emacsStyleKeymap=[{'key':'Ctrl-b','run':cursorCharLeft,'shift':selectCharLeft,'preventDefault':!0x0},{'key':'Ctrl-f','run':cursorCharRight,'shift':selectCharRight},{'key':'Ctrl-p','run':cursorLineUp,'shift':selectLineUp},{'key':'Ctrl-n','run':cursorLineDown,'shift':selectLineDown},{'key':'Ctrl-a','run':cursorLineStart,'shift':selectLineStart},{'key':'Ctrl-e','run':cursorLineEnd,'shift':selectLineEnd},{'key':'Ctrl-d','run':deleteCharForward},{'key':'Ctrl-h','run':deleteCharBackward},{'key':'Ctrl-k','run':deleteToLineEnd},{'key':'Ctrl-Alt-h','run':deleteGroupBackward},{'key':'Ctrl-o','run':splitLine},{'key':'Ctrl-t','run':transposeChars},{'key':'Ctrl-v','run':cursorPageDown}],standardKeymap=[{'key':'ArrowLeft','run':cursorCharLeft,'shift':selectCharLeft,'preventDefault':!0x0},{'key':'Mod-ArrowLeft','mac':'Alt-ArrowLeft','run':cursorGroupLeft,'shift':selectGroupLeft,'preventDefault':!0x0},{'mac':'Cmd-ArrowLeft','run':cursorLineBoundaryLeft,'shift':selectLineBoundaryLeft,'preventDefault':!0x0},{'key':'ArrowRight','run':cursorCharRight,'shift':selectCharRight,'preventDefault':!0x0},{'key':'Mod-ArrowRight','mac':'Alt-ArrowRight','run':cursorGroupRight,'shift':selectGroupRight,'preventDefault':!0x0},{'mac':'Cmd-ArrowRight','run':cursorLineBoundaryRight,'shift':selectLineBoundaryRight,'preventDefault':!0x0},{'key':'ArrowUp','run':cursorLineUp,'shift':selectLineUp,'preventDefault':!0x0},{'mac':'Cmd-ArrowUp','run':cursorDocStart,'shift':selectDocStart},{'mac':'Ctrl-ArrowUp','run':cursorPageUp,'shift':selectPageUp},{'key':'ArrowDown','run':cursorLineDown,'shift':selectLineDown,'preventDefault':!0x0},{'mac':'Cmd-ArrowDown','run':cursorDocEnd,'shift':selectDocEnd},{'mac':'Ctrl-ArrowDown','run':cursorPageDown,'shift':selectPageDown},{'key':'PageUp','run':cursorPageUp,'shift':selectPageUp},{'key':'PageDown','run':cursorPageDown,'shift':selectPageDown},{'key':'Home','run':cursorLineBoundaryBackward,'shift':selectLineBoundaryBackward,'preventDefault':!0x0},{'key':'Mod-Home','run':cursorDocStart,'shift':selectDocStart},{'key':'End','run':cursorLineBoundaryForward,'shift':selectLineBoundaryForward,'preventDefault':!0x0},{'key':'Mod-End','run':cursorDocEnd,'shift':selectDocEnd},{'key':'Enter','run':insertNewlineAndIndent,'shift':insertNewlineAndIndent},{'key':'Mod-a','run':selectAll},{'key':'Backspace','run':deleteCharBackward,'shift':deleteCharBackward},{'key':'Delete','run':deleteCharForward},{'key':'Mod-Backspace','mac':'Alt-Backspace','run':deleteGroupBackward},{'key':'Mod-Delete','mac':'Alt-Delete','run':deleteGroupForward},{'mac':'Mod-Backspace','run':deleteLineBoundaryBackward},{'mac':'Mod-Delete','run':deleteLineBoundaryForward}]['concat'](emacsStyleKeymap['map'](_0x40336e=>({'mac':_0x40336e['key'],'run':_0x40336e['run'],'shift':_0x40336e['shift']}))),defaultKeymap=[{'key':'Alt-ArrowLeft','mac':'Ctrl-ArrowLeft','run':cursorSyntaxLeft,'shift':selectSyntaxLeft},{'key':'Alt-ArrowRight','mac':'Ctrl-ArrowRight','run':cursorSyntaxRight,'shift':selectSyntaxRight},{'key':'Alt-ArrowUp','run':moveLineUp},{'key':'Shift-Alt-ArrowUp','run':copyLineUp},{'key':'Alt-ArrowDown','run':moveLineDown},{'key':'Shift-Alt-ArrowDown','run':copyLineDown},{'key':'Escape','run':simplifySelection},{'key':'Mod-Enter','run':insertBlankLine},{'key':'Alt-l','mac':'Ctrl-l','run':selectLine},{'key':'Mod-i','run':selectParentSyntax,'preventDefault':!0x0},{'key':'Mod-[','run':indentLess},{'key':'Mod-]','run':indentMore},{'key':'Mod-Alt-\x5c','run':indentSelection},{'key':'Shift-Mod-k','run':deleteLine},{'key':'Shift-Mod-\x5c','run':cursorMatchingBracket},{'key':'Mod-/','run':toggleComment},{'key':'Alt-A','run':toggleBlockComment},{'key':'Ctrl-m','mac':'Shift-Alt-m','run':toggleTabFocusMode}]['concat'](standardKeymap);class CompletionContext{constructor(_0x75dff7,_0x1b0bec,_0xdc200f,_0x3bfaad){this['state']=_0x75dff7,this['pos']=_0x1b0bec,this['explicit']=_0xdc200f,this['view']=_0x3bfaad,this['abortListeners']=[],this['abortOnDocChange']=!0x1;}['tokenBefore'](_0xbd7481){let _0x7a77d7=syntaxTree(this['state'])['resolveInner'](this['pos'],-0x1);for(;_0x7a77d7&&_0xbd7481['indexOf'](_0x7a77d7['name'])<0x0;)_0x7a77d7=_0x7a77d7['parent'];return _0x7a77d7?{'from':_0x7a77d7['from'],'to':this['pos'],'text':this['state']['sliceDoc'](_0x7a77d7['from'],this['pos']),'type':_0x7a77d7['type']}:null;}['matchBefore'](_0x17f072){let _0x5e0c21=this['state']['doc']['lineAt'](this['pos']),_0x1f3790=Math['max'](_0x5e0c21['from'],this['pos']-0xfa),_0x5ef055=_0x5e0c21['text']['slice'](_0x1f3790-_0x5e0c21['from'],this['pos']-_0x5e0c21['from']),_0x38d3de=_0x5ef055['search'](ensureAnchor(_0x17f072,!0x1));return _0x38d3de<0x0?null:{'from':_0x1f3790+_0x38d3de,'to':this['pos'],'text':_0x5ef055['slice'](_0x38d3de)};}get['aborted'](){return null==this['abortListeners'];}['addEventListener'](_0x8c1251,_0x3f7441,_0x2aef13){'abort'==_0x8c1251&&this['abortListeners']&&(this['abortListeners']['push'](_0x3f7441),_0x2aef13&&_0x2aef13['onDocChange']&&(this['abortOnDocChange']=!0x0));}}function toSet(_0x195023){let _0x596f17=Object['keys'](_0x195023)['join'](''),_0x37e468=/\w/['test'](_0x596f17);return _0x37e468&&(_0x596f17=_0x596f17['replace'](/\w/g,'')),'['+(_0x37e468?'\x5cw':'')+_0x596f17['replace'](/[^\w\s]/g,'\x5c$&')+']';}function prefixMatch(_0x18ea23){let _0x4445b9=Object['create'](null),_0x4316b6=Object['create'](null);for(let {label:_0x452d5b}of _0x18ea23){_0x4445b9[_0x452d5b[0x0]]=!0x0;for(let _0xe489d3=0x1;_0xe489d3<_0x452d5b['length'];_0xe489d3++)_0x4316b6[_0x452d5b[_0xe489d3]]=!0x0;}let _0x35f182=toSet(_0x4445b9)+toSet(_0x4316b6)+'*$';return[new RegExp('^'+_0x35f182),new RegExp(_0x35f182)];}function completeFromList(_0x171fa8){let _0x2f7520=_0x171fa8['map'](_0x35b0c4=>'string'==typeof _0x35b0c4?{'label':_0x35b0c4}:_0x35b0c4),[_0xababad,_0x2c3a0e]=_0x2f7520['every'](_0x1a600d=>/^\w+$/['test'](_0x1a600d['label']))?[/\w*$/,/\w+$/]:prefixMatch(_0x2f7520);return _0x2c8a27=>{let _0x4d1d21=_0x2c8a27['matchBefore'](_0x2c3a0e);return _0x4d1d21||_0x2c8a27['explicit']?{'from':_0x4d1d21?_0x4d1d21['from']:_0x2c8a27['pos'],'options':_0x2f7520,'validFor':_0xababad}:null;};}function ifNotIn(_0x5c89f8,_0x34addd){return _0x54ef3c=>{for(let _0x209dee=syntaxTree(_0x54ef3c['state'])['resolveInner'](_0x54ef3c['pos'],-0x1);_0x209dee;_0x209dee=_0x209dee['parent']){if(_0x5c89f8['indexOf'](_0x209dee['name'])>-0x1)return null;if(_0x209dee['type']['isTop'])break;}return _0x34addd(_0x54ef3c);};}class Option{constructor(_0x513a40,_0x67667a,_0x57d60c,_0xa94ef2){this['completion']=_0x513a40,this['source']=_0x67667a,this['match']=_0x57d60c,this['score']=_0xa94ef2;}}function cur(_0x17f585){return _0x17f585['selection']['main']['from'];}function ensureAnchor(_0x56c04e,_0x281bd5){var _0x3a66d6;let {source:_0x6aee2d}=_0x56c04e,_0x752df=_0x281bd5&&'^'!=_0x6aee2d[0x0],_0x2a8d5d='$'!=_0x6aee2d[_0x6aee2d['length']-0x1];return _0x752df||_0x2a8d5d?new RegExp((_0x752df?'^':'')+'(?:'+_0x6aee2d+')'+(_0x2a8d5d?'$':''),null!==(_0x3a66d6=_0x56c04e['flags'])&&void 0x0!==_0x3a66d6?_0x3a66d6:_0x56c04e['ignoreCase']?'i':''):_0x56c04e;}const pickedCompletion=Annotation['define']();function insertCompletionText(_0x1beacc,_0x1d6ea7,_0x1bbf21,_0x942d7b){let {main:_0x190895}=_0x1beacc['selection'],_0x3675a7=_0x1bbf21-_0x190895['from'],_0x5431d3=_0x942d7b-_0x190895['from'];return{..._0x1beacc['changeByRange'](_0x4b00b0=>{if(_0x4b00b0!=_0x190895&&_0x1bbf21!=_0x942d7b&&_0x1beacc['sliceDoc'](_0x4b00b0['from']+_0x3675a7,_0x4b00b0['from']+_0x5431d3)!=_0x1beacc['sliceDoc'](_0x1bbf21,_0x942d7b))return{'range':_0x4b00b0};let _0x36b096=_0x1beacc['toText'](_0x1d6ea7);return{'changes':{'from':_0x4b00b0['from']+_0x3675a7,'to':_0x942d7b==_0x190895['from']?_0x4b00b0['to']:_0x4b00b0['from']+_0x5431d3,'insert':_0x36b096},'range':EditorSelection['cursor'](_0x4b00b0['from']+_0x3675a7+_0x36b096['length'])};}),'scrollIntoView':!0x0,'userEvent':'input.complete'};}const SourceCache=new WeakMap();function asSource(_0x13bf7a){if(!Array['isArray'](_0x13bf7a))return _0x13bf7a;let _0x279bd2=SourceCache['get'](_0x13bf7a);return _0x279bd2||SourceCache['set'](_0x13bf7a,_0x279bd2=completeFromList(_0x13bf7a)),_0x279bd2;}const startCompletionEffect=StateEffect['define'](),closeCompletionEffect=StateEffect['define']();class FuzzyMatcher{constructor(_0x1995b4){this['pattern']=_0x1995b4,this['chars']=[],this['folded']=[],this['any']=[],this['precise']=[],this['byWord']=[],this['score']=0x0,this['matched']=[];for(let _0xe14a45=0x0;_0xe14a45<_0x1995b4['length'];){let _0x57f5f6=codePointAt(_0x1995b4,_0xe14a45),_0x2731b9=codePointSize(_0x57f5f6);this['chars']['push'](_0x57f5f6);let _0x67cd67=_0x1995b4['slice'](_0xe14a45,_0xe14a45+_0x2731b9),_0x5b3d51=_0x67cd67['toUpperCase']();this['folded']['push'](codePointAt(_0x5b3d51==_0x67cd67?_0x67cd67['toLowerCase']():_0x5b3d51,0x0)),_0xe14a45+=_0x2731b9;}this['astral']=_0x1995b4['length']!=this['chars']['length'];}['ret'](_0x452195,_0x58ff0c){return this['score']=_0x452195,this['matched']=_0x58ff0c,this;}['match'](_0x3a5cea){if(0x0==this['pattern']['length'])return this['ret'](-0x64,[]);if(_0x3a5cea['length']<this['pattern']['length'])return null;let {chars:_0x4811e1,folded:_0x132c69,any:_0xec06ba,precise:_0x40631d,byWord:_0x2bed9f}=this;if(0x1==_0x4811e1['length']){let _0x19fb9a=codePointAt(_0x3a5cea,0x0),_0x59488c=codePointSize(_0x19fb9a),_0x519561=_0x59488c==_0x3a5cea['length']?0x0:-0x64;if(_0x19fb9a==_0x4811e1[0x0]);else{if(_0x19fb9a!=_0x132c69[0x0])return null;_0x519561+=-0xc8;}return this['ret'](_0x519561,[0x0,_0x59488c]);}let _0x58007f=_0x3a5cea['indexOf'](this['pattern']);if(0x0==_0x58007f)return this['ret'](_0x3a5cea['length']==this['pattern']['length']?0x0:-0x64,[0x0,this['pattern']['length']]);let _0x3441d6=_0x4811e1['length'],_0x32b38a=0x0;if(_0x58007f<0x0){for(let _0x395af2=0x0,_0x2b44c3=Math['min'](_0x3a5cea['length'],0xc8);_0x395af2<_0x2b44c3&&_0x32b38a<_0x3441d6;){let _0x35b163=codePointAt(_0x3a5cea,_0x395af2);_0x35b163!=_0x4811e1[_0x32b38a]&&_0x35b163!=_0x132c69[_0x32b38a]||(_0xec06ba[_0x32b38a++]=_0x395af2),_0x395af2+=codePointSize(_0x35b163);}if(_0x32b38a<_0x3441d6)return null;}let _0x38cc1d=0x0,_0x5e51f5=0x0,_0x76bae3=!0x1,_0x3b943e=0x0,_0x51b497=-0x1,_0x13182c=-0x1,_0x19c5a8=/[a-z]/['test'](_0x3a5cea),_0x4ddee2=!0x0;for(let _0x438e70=0x0,_0x152787=Math['min'](_0x3a5cea['length'],0xc8),_0xb81f78=0x0;_0x438e70<_0x152787&&_0x5e51f5<_0x3441d6;){let _0x266c6c=codePointAt(_0x3a5cea,_0x438e70);_0x58007f<0x0&&(_0x38cc1d<_0x3441d6&&_0x266c6c==_0x4811e1[_0x38cc1d]&&(_0x40631d[_0x38cc1d++]=_0x438e70),_0x3b943e<_0x3441d6&&(_0x266c6c==_0x4811e1[_0x3b943e]||_0x266c6c==_0x132c69[_0x3b943e]?(0x0==_0x3b943e&&(_0x51b497=_0x438e70),_0x13182c=_0x438e70+0x1,_0x3b943e++):_0x3b943e=0x0));let _0x3d293f,_0x123bbb=_0x266c6c<0xff?_0x266c6c>=0x30&&_0x266c6c<=0x39||_0x266c6c>=0x61&&_0x266c6c<=0x7a?0x2:_0x266c6c>=0x41&&_0x266c6c<=0x5a?0x1:0x0:(_0x3d293f=fromCodePoint(_0x266c6c))!=_0x3d293f['toLowerCase']()?0x1:_0x3d293f!=_0x3d293f['toUpperCase']()?0x2:0x0;(!_0x438e70||0x1==_0x123bbb&&_0x19c5a8||0x0==_0xb81f78&&0x0!=_0x123bbb)&&(_0x4811e1[_0x5e51f5]==_0x266c6c||_0x132c69[_0x5e51f5]==_0x266c6c&&(_0x76bae3=!0x0)?_0x2bed9f[_0x5e51f5++]=_0x438e70:_0x2bed9f['length']&&(_0x4ddee2=!0x1)),_0xb81f78=_0x123bbb,_0x438e70+=codePointSize(_0x266c6c);}return _0x5e51f5==_0x3441d6&&0x0==_0x2bed9f[0x0]&&_0x4ddee2?this['result']((_0x76bae3?-0xc8:0x0)-0x64,_0x2bed9f,_0x3a5cea):_0x3b943e==_0x3441d6&&0x0==_0x51b497?this['ret'](-0xc8-_0x3a5cea['length']+(_0x13182c==_0x3a5cea['length']?0x0:-0x64),[0x0,_0x13182c]):_0x58007f>-0x1?this['ret'](-0x2bc-_0x3a5cea['length'],[_0x58007f,_0x58007f+this['pattern']['length']]):_0x3b943e==_0x3441d6?this['ret'](-0x384-_0x3a5cea['length'],[_0x51b497,_0x13182c]):_0x5e51f5==_0x3441d6?this['result']((_0x76bae3?-0xc8:0x0)-0x64-0x2bc+(_0x4ddee2?0x0:-0x44c),_0x2bed9f,_0x3a5cea):0x2==_0x4811e1['length']?null:this['result']((_0xec06ba[0x0]?-0x2bc:0x0)-0xc8-0x44c,_0xec06ba,_0x3a5cea);}['result'](_0x198515,_0xb92f04,_0x35f72c){let _0x3af43d=[],_0x3af383=0x0;for(let _0x5b9f83 of _0xb92f04){let _0x48cdf6=_0x5b9f83+(this['astral']?codePointSize(codePointAt(_0x35f72c,_0x5b9f83)):0x1);_0x3af383&&_0x3af43d[_0x3af383-0x1]==_0x5b9f83?_0x3af43d[_0x3af383-0x1]=_0x48cdf6:(_0x3af43d[_0x3af383++]=_0x5b9f83,_0x3af43d[_0x3af383++]=_0x48cdf6);}return this['ret'](_0x198515-_0x35f72c['length'],_0x3af43d);}}class StrictMatcher{constructor(_0x378615){this['pattern']=_0x378615,this['matched']=[],this['score']=0x0,this['folded']=_0x378615['toLowerCase']();}['match'](_0x462bb5){if(_0x462bb5['length']<this['pattern']['length'])return null;let _0x259b71=_0x462bb5['slice'](0x0,this['pattern']['length']),_0x4a56a6=_0x259b71==this['pattern']?0x0:_0x259b71['toLowerCase']()==this['folded']?-0xc8:null;return null==_0x4a56a6?null:(this['matched']=[0x0,_0x259b71['length']],this['score']=_0x4a56a6+(_0x462bb5['length']==this['pattern']['length']?0x0:-0x64),this);}}const completionConfig=Facet['define']({'combine':_0x5e888d=>combineConfig(_0x5e888d,{'activateOnTyping':!0x0,'activateOnCompletion':()=>!0x1,'activateOnTypingDelay':0x64,'selectOnOpen':!0x0,'override':null,'closeOnBlur':!0x0,'maxRenderedOptions':0x64,'defaultKeymap':!0x0,'tooltipClass':()=>'','optionClass':()=>'','aboveCursor':!0x1,'icons':!0x0,'addToOptions':[],'positionInfo':defaultPositionInfo,'filterStrict':!0x1,'compareCompletions':(_0x43ee65,_0x1d5aed)=>_0x43ee65['label']['localeCompare'](_0x1d5aed['label']),'interactionDelay':0x4b,'updateSyncTime':0x64},{'defaultKeymap':(_0xaad81a,_0x4d2485)=>_0xaad81a&&_0x4d2485,'closeOnBlur':(_0x2703de,_0x45bba2)=>_0x2703de&&_0x45bba2,'icons':(_0xa131d5,_0x3b3b8c)=>_0xa131d5&&_0x3b3b8c,'tooltipClass':(_0x449f9d,_0x317272)=>_0xfe4866=>joinClass(_0x449f9d(_0xfe4866),_0x317272(_0xfe4866)),'optionClass':(_0x48f594,_0x192510)=>_0x302ea6=>joinClass(_0x48f594(_0x302ea6),_0x192510(_0x302ea6)),'addToOptions':(_0x3d5889,_0x1c8604)=>_0x3d5889['concat'](_0x1c8604),'filterStrict':(_0x33c84d,_0x1fd065)=>_0x33c84d||_0x1fd065})});function joinClass(_0x3025ed,_0x5a118b){return _0x3025ed?_0x5a118b?_0x3025ed+'\x20'+_0x5a118b:_0x3025ed:_0x5a118b;}function defaultPositionInfo(_0x3d382e,_0x49a333,_0x532771,_0x2d74a6,_0x7aec6e,_0x592826){let _0x3b047c,_0x127b10,_0x3bc1c1=_0x3d382e['textDirection']==Direction['RTL'],_0x582d27=_0x3bc1c1,_0xaa0450=!0x1,_0x375e3e='top',_0x2afe0d=_0x49a333['left']-_0x7aec6e['left'],_0x184896=_0x7aec6e['right']-_0x49a333['right'],_0x3e4166=_0x2d74a6['right']-_0x2d74a6['left'],_0x1534ac=_0x2d74a6['bottom']-_0x2d74a6['top'];if(_0x582d27&&_0x2afe0d<Math['min'](_0x3e4166,_0x184896)?_0x582d27=!0x1:!_0x582d27&&_0x184896<Math['min'](_0x3e4166,_0x2afe0d)&&(_0x582d27=!0x0),_0x3e4166<=(_0x582d27?_0x2afe0d:_0x184896))_0x3b047c=Math['max'](_0x7aec6e['top'],Math['min'](_0x532771['top'],_0x7aec6e['bottom']-_0x1534ac))-_0x49a333['top'],_0x127b10=Math['min'](0x190,_0x582d27?_0x2afe0d:_0x184896);else{_0xaa0450=!0x0,_0x127b10=Math['min'](0x190,(_0x3bc1c1?_0x49a333['right']:_0x7aec6e['right']-_0x49a333['left'])-0x1e);let _0x3d6cca=_0x7aec6e['bottom']-_0x49a333['bottom'];_0x3d6cca>=_0x1534ac||_0x3d6cca>_0x49a333['top']?_0x3b047c=_0x532771['bottom']-_0x49a333['top']:(_0x375e3e='bottom',_0x3b047c=_0x49a333['bottom']-_0x532771['top']);}return{'style':_0x375e3e+':\x20'+_0x3b047c/((_0x49a333['bottom']-_0x49a333['top'])/_0x592826['offsetHeight'])+'px;\x20max-width:\x20'+_0x127b10/((_0x49a333['right']-_0x49a333['left'])/_0x592826['offsetWidth'])+'px','class':'cm-completionInfo-'+(_0xaa0450?_0x3bc1c1?'left-narrow':'right-narrow':_0x582d27?'left':'right')};}function optionContent(_0x3514c1){let _0x586775=_0x3514c1['addToOptions']['slice']();return _0x3514c1['icons']&&_0x586775['push']({'render'(_0x57f471){let _0x2f3496=document['createElement']('div');return _0x2f3496['classList']['add']('cm-completionIcon'),_0x57f471['type']&&_0x2f3496['classList']['add'](..._0x57f471['type']['split'](/\s+/g)['map'](_0x35bc7c=>'cm-completionIcon-'+_0x35bc7c)),_0x2f3496['setAttribute']('aria-hidden','true'),_0x2f3496;},'position':0x14}),_0x586775['push']({'render'(_0x473d21,_0x32e6b5,_0x3a2abc,_0x48a9db){let _0x19ddd1=document['createElement']('span');_0x19ddd1['className']='cm-completionLabel';let _0x449312=_0x473d21['displayLabel']||_0x473d21['label'],_0x48ec19=0x0;for(let _0x1b00e3=0x0;_0x1b00e3<_0x48a9db['length'];){let _0x17ef51=_0x48a9db[_0x1b00e3++],_0x4c2dce=_0x48a9db[_0x1b00e3++];_0x17ef51>_0x48ec19&&_0x19ddd1['appendChild'](document['createTextNode'](_0x449312['slice'](_0x48ec19,_0x17ef51)));let _0xf3435a=_0x19ddd1['appendChild'](document['createElement']('span'));_0xf3435a['appendChild'](document['createTextNode'](_0x449312['slice'](_0x17ef51,_0x4c2dce))),_0xf3435a['className']='cm-completionMatchedText',_0x48ec19=_0x4c2dce;}return _0x48ec19<_0x449312['length']&&_0x19ddd1['appendChild'](document['createTextNode'](_0x449312['slice'](_0x48ec19))),_0x19ddd1;},'position':0x32},{'render'(_0x3d1322){if(!_0x3d1322['detail'])return null;let _0x22e4e5=document['createElement']('span');return _0x22e4e5['className']='cm-completionDetail',_0x22e4e5['textContent']=_0x3d1322['detail'],_0x22e4e5;},'position':0x50}),_0x586775['sort']((_0x56edfa,_0x55d6ff)=>_0x56edfa['position']-_0x55d6ff['position'])['map'](_0x44a138=>_0x44a138['render']);}function rangeAroundSelected(_0x3a476a,_0xd04b73,_0x5dc059){if(_0x3a476a<=_0x5dc059)return{'from':0x0,'to':_0x3a476a};if(_0xd04b73<0x0&&(_0xd04b73=0x0),_0xd04b73<=_0x3a476a>>0x1){let _0x1f51f5=Math['floor'](_0xd04b73/_0x5dc059);return{'from':_0x1f51f5*_0x5dc059,'to':(_0x1f51f5+0x1)*_0x5dc059};}let _0x5964cc=Math['floor']((_0x3a476a-_0xd04b73)/_0x5dc059);return{'from':_0x3a476a-(_0x5964cc+0x1)*_0x5dc059,'to':_0x3a476a-_0x5964cc*_0x5dc059};}class CompletionTooltip{constructor(_0x53800b,_0x46a904,_0x1f100a){this['view']=_0x53800b,this['stateField']=_0x46a904,this['applyCompletion']=_0x1f100a,this['info']=null,this['infoDestroy']=null,this['placeInfoReq']={'read':()=>this['measureInfo'](),'write':_0x335ebc=>this['placeInfo'](_0x335ebc),'key':this},this['space']=null,this['currentClass']='';let _0x432654=_0x53800b['state']['field'](_0x46a904),{options:_0x28f4e9,selected:_0x5a8b42}=_0x432654['open'],_0x4ceda5=_0x53800b['state']['facet'](completionConfig);this['optionContent']=optionContent(_0x4ceda5),this['optionClass']=_0x4ceda5['optionClass'],this['tooltipClass']=_0x4ceda5['tooltipClass'],this['range']=rangeAroundSelected(_0x28f4e9['length'],_0x5a8b42,_0x4ceda5['maxRenderedOptions']),this['dom']=document['createElement']('div'),this['dom']['className']='cm-tooltip-autocomplete',this['updateTooltipClass'](_0x53800b['state']),this['dom']['addEventListener']('mousedown',_0x53fff1=>{let {options:_0x4f615c}=_0x53800b['state']['field'](_0x46a904)['open'];for(let _0x29c198,_0x2b08dd=_0x53fff1['target'];_0x2b08dd&&_0x2b08dd!=this['dom'];_0x2b08dd=_0x2b08dd['parentNode'])if('LI'==_0x2b08dd['nodeName']&&(_0x29c198=/-(\d+)$/['exec'](_0x2b08dd['id']))&&+_0x29c198[0x1]<_0x4f615c['length'])return this['applyCompletion'](_0x53800b,_0x4f615c[+_0x29c198[0x1]]),void _0x53fff1['preventDefault']();}),this['dom']['addEventListener']('focusout',_0x5f3459=>{let _0x46d47e=_0x53800b['state']['field'](this['stateField'],!0x1);_0x46d47e&&_0x46d47e['tooltip']&&_0x53800b['state']['facet'](completionConfig)['closeOnBlur']&&_0x5f3459['relatedTarget']!=_0x53800b['contentDOM']&&_0x53800b['dispatch']({'effects':closeCompletionEffect['of'](null)});}),this['showOptions'](_0x28f4e9,_0x432654['id']);}['mount'](){this['updateSel']();}['showOptions'](_0xf94fe5,_0x4b8d44){this['list']&&this['list']['remove'](),this['list']=this['dom']['appendChild'](this['createListBox'](_0xf94fe5,_0x4b8d44,this['range'])),this['list']['addEventListener']('scroll',()=>{this['info']&&this['view']['requestMeasure'](this['placeInfoReq']);});}['update'](_0x9d8739){var _0x27ee7d;let _0x32c6bd=_0x9d8739['state']['field'](this['stateField']),_0x52952f=_0x9d8739['startState']['field'](this['stateField']);if(this['updateTooltipClass'](_0x9d8739['state']),_0x32c6bd!=_0x52952f){let {options:_0x577ed,selected:_0x3ce83d,disabled:_0xde388b}=_0x32c6bd['open'];_0x52952f['open']&&_0x52952f['open']['options']==_0x577ed||(this['range']=rangeAroundSelected(_0x577ed['length'],_0x3ce83d,_0x9d8739['state']['facet'](completionConfig)['maxRenderedOptions']),this['showOptions'](_0x577ed,_0x32c6bd['id'])),this['updateSel'](),_0xde388b!=(null===(_0x27ee7d=_0x52952f['open'])||void 0x0===_0x27ee7d?void 0x0:_0x27ee7d['disabled'])&&this['dom']['classList']['toggle']('cm-tooltip-autocomplete-disabled',!!_0xde388b);}}['updateTooltipClass'](_0x53260d){let _0x4cfc4d=this['tooltipClass'](_0x53260d);if(_0x4cfc4d!=this['currentClass']){for(let _0x571b1c of this['currentClass']['split']('\x20'))_0x571b1c&&this['dom']['classList']['remove'](_0x571b1c);for(let _0x11cf06 of _0x4cfc4d['split']('\x20'))_0x11cf06&&this['dom']['classList']['add'](_0x11cf06);this['currentClass']=_0x4cfc4d;}}['positioned'](_0x51185b){this['space']=_0x51185b,this['info']&&this['view']['requestMeasure'](this['placeInfoReq']);}['updateSel'](){let _0x112c66=this['view']['state']['field'](this['stateField']),_0x5aa810=_0x112c66['open'];if((_0x5aa810['selected']>-0x1&&_0x5aa810['selected']<this['range']['from']||_0x5aa810['selected']>=this['range']['to'])&&(this['range']=rangeAroundSelected(_0x5aa810['options']['length'],_0x5aa810['selected'],this['view']['state']['facet'](completionConfig)['maxRenderedOptions']),this['showOptions'](_0x5aa810['options'],_0x112c66['id'])),this['updateSelectedOption'](_0x5aa810['selected'])){this['destroyInfo']();let {completion:_0x9b5b38}=_0x5aa810['options'][_0x5aa810['selected']],{info:_0x4acfd7}=_0x9b5b38;if(!_0x4acfd7)return;let _0x15bb8f='string'==typeof _0x4acfd7?document['createTextNode'](_0x4acfd7):_0x4acfd7(_0x9b5b38);if(!_0x15bb8f)return;'then'in _0x15bb8f?_0x15bb8f['then'](_0x520582=>{_0x520582&&this['view']['state']['field'](this['stateField'],!0x1)==_0x112c66&&this['addInfoPane'](_0x520582,_0x9b5b38);})['catch'](_0x548eea=>logException(this['view']['state'],_0x548eea,'completion\x20info')):this['addInfoPane'](_0x15bb8f,_0x9b5b38);}}['addInfoPane'](_0xa68a2c,_0x109319){this['destroyInfo']();let _0x508843=this['info']=document['createElement']('div');if(_0x508843['className']='cm-tooltip\x20cm-completionInfo',null!=_0xa68a2c['nodeType'])_0x508843['appendChild'](_0xa68a2c),this['infoDestroy']=null;else{let {dom:_0x199db5,destroy:_0x5e1f7d}=_0xa68a2c;_0x508843['appendChild'](_0x199db5),this['infoDestroy']=_0x5e1f7d||null;}this['dom']['appendChild'](_0x508843),this['view']['requestMeasure'](this['placeInfoReq']);}['updateSelectedOption'](_0x5edcda){let _0x126420=null;for(let _0x30596c=this['list']['firstChild'],_0x529264=this['range']['from'];_0x30596c;_0x30596c=_0x30596c['nextSibling'],_0x529264++)'LI'==_0x30596c['nodeName']&&_0x30596c['id']?_0x529264==_0x5edcda?_0x30596c['hasAttribute']('aria-selected')||(_0x30596c['setAttribute']('aria-selected','true'),_0x126420=_0x30596c):_0x30596c['hasAttribute']('aria-selected')&&_0x30596c['removeAttribute']('aria-selected'):_0x529264--;return _0x126420&&scrollIntoView(this['list'],_0x126420),_0x126420;}['measureInfo'](){let _0x42cf74=this['dom']['querySelector']('[aria-selected]');if(!_0x42cf74||!this['info'])return null;let _0x21bb3b=this['dom']['getBoundingClientRect'](),_0x15b0fd=this['info']['getBoundingClientRect'](),_0x1307f6=_0x42cf74['getBoundingClientRect'](),_0x54edc2=this['space'];if(!_0x54edc2){let _0x45a70f=this['dom']['ownerDocument']['documentElement'];_0x54edc2={'left':0x0,'top':0x0,'right':_0x45a70f['clientWidth'],'bottom':_0x45a70f['clientHeight']};}return _0x1307f6['top']>Math['min'](_0x54edc2['bottom'],_0x21bb3b['bottom'])-0xa||_0x1307f6['bottom']<Math['max'](_0x54edc2['top'],_0x21bb3b['top'])+0xa?null:this['view']['state']['facet'](completionConfig)['positionInfo'](this['view'],_0x21bb3b,_0x1307f6,_0x15b0fd,_0x54edc2,this['dom']);}['placeInfo'](_0x3edf90){this['info']&&(_0x3edf90?(_0x3edf90['style']&&(this['info']['style']['cssText']=_0x3edf90['style']),this['info']['className']='cm-tooltip\x20cm-completionInfo\x20'+(_0x3edf90['class']||'')):this['info']['style']['cssText']='top:\x20-1e6px');}['createListBox'](_0x54adc9,_0x2a5fd4,_0x4df7dd){const _0x1af240=document['createElement']('ul');_0x1af240['id']=_0x2a5fd4,_0x1af240['setAttribute']('role','listbox'),_0x1af240['setAttribute']('aria-expanded','true'),_0x1af240['setAttribute']('aria-label',this['view']['state']['phrase']('Completions')),_0x1af240['addEventListener']('mousedown',_0x569059=>{_0x569059['target']==_0x1af240&&_0x569059['preventDefault']();});let _0x20df92=null;for(let _0x276163=_0x4df7dd['from'];_0x276163<_0x4df7dd['to'];_0x276163++){let {completion:_0x1cadb2,match:_0xafb7ad}=_0x54adc9[_0x276163],{section:_0x3c5a6f}=_0x1cadb2;if(_0x3c5a6f){let _0x3cc2b9='string'==typeof _0x3c5a6f?_0x3c5a6f:_0x3c5a6f['name'];if(_0x3cc2b9!=_0x20df92&&(_0x276163>_0x4df7dd['from']||0x0==_0x4df7dd['from'])){if(_0x20df92=_0x3cc2b9,'string'!=typeof _0x3c5a6f&&_0x3c5a6f['header'])_0x1af240['appendChild'](_0x3c5a6f['header'](_0x3c5a6f));else _0x1af240['appendChild'](document['createElement']('completion-section'))['textContent']=_0x3cc2b9;}}const _0x59ea31=_0x1af240['appendChild'](document['createElement']('li'));_0x59ea31['id']=_0x2a5fd4+'-'+_0x276163,_0x59ea31['setAttribute']('role','option');let _0x37910a=this['optionClass'](_0x1cadb2);_0x37910a&&(_0x59ea31['className']=_0x37910a);for(let _0x3f7ba8 of this['optionContent']){let _0x34508b=_0x3f7ba8(_0x1cadb2,this['view']['state'],this['view'],_0xafb7ad);_0x34508b&&_0x59ea31['appendChild'](_0x34508b);}}return _0x4df7dd['from']&&_0x1af240['classList']['add']('cm-completionListIncompleteTop'),_0x4df7dd['to']<_0x54adc9['length']&&_0x1af240['classList']['add']('cm-completionListIncompleteBottom'),_0x1af240;}['destroyInfo'](){this['info']&&(this['infoDestroy']&&this['infoDestroy'](),this['info']['remove'](),this['info']=null);}['destroy'](){this['destroyInfo']();}}function completionTooltip(_0x1f449b,_0x327af5){return _0x400ce6=>new CompletionTooltip(_0x400ce6,_0x1f449b,_0x327af5);}function scrollIntoView(_0x48df71,_0x159f9d){let _0x41698d=_0x48df71['getBoundingClientRect'](),_0x47287c=_0x159f9d['getBoundingClientRect'](),_0x3ff284=_0x41698d['height']/_0x48df71['offsetHeight'];_0x47287c['top']<_0x41698d['top']?_0x48df71['scrollTop']-=(_0x41698d['top']-_0x47287c['top'])/_0x3ff284:_0x47287c['bottom']>_0x41698d['bottom']&&(_0x48df71['scrollTop']+=(_0x47287c['bottom']-_0x41698d['bottom'])/_0x3ff284);}function score(_0x1ea2ad){return 0x64*(_0x1ea2ad['boost']||0x0)+(_0x1ea2ad['apply']?0xa:0x0)+(_0x1ea2ad['info']?0x5:0x0)+(_0x1ea2ad['type']?0x1:0x0);}function sortOptions(_0xfc3251,_0x41711e){let _0x16df63=[],_0x37dd73=null,_0x186e21=_0x1489f5=>{_0x16df63['push'](_0x1489f5);let {section:_0x3f7c40}=_0x1489f5['completion'];if(_0x3f7c40){_0x37dd73||(_0x37dd73=[]);let _0x41dc51='string'==typeof _0x3f7c40?_0x3f7c40:_0x3f7c40['name'];_0x37dd73['some'](_0x57def0=>_0x57def0['name']==_0x41dc51)||_0x37dd73['push']('string'==typeof _0x3f7c40?{'name':_0x41dc51}:_0x3f7c40);}},_0x401524=_0x41711e['facet'](completionConfig);for(let _0x1ce7b6 of _0xfc3251)if(_0x1ce7b6['hasResult']()){let _0x1f9ed=_0x1ce7b6['result']['getMatch'];if(!0x1===_0x1ce7b6['result']['filter']){for(let _0xf1d66e of _0x1ce7b6['result']['options'])_0x186e21(new Option(_0xf1d66e,_0x1ce7b6['source'],_0x1f9ed?_0x1f9ed(_0xf1d66e):[],0x3b9aca00-_0x16df63['length']));}else{let _0xe938b6,_0x3542dc=_0x41711e['sliceDoc'](_0x1ce7b6['from'],_0x1ce7b6['to']),_0x247d1f=_0x401524['filterStrict']?new StrictMatcher(_0x3542dc):new FuzzyMatcher(_0x3542dc);for(let _0x5bf41f of _0x1ce7b6['result']['options'])if(_0xe938b6=_0x247d1f['match'](_0x5bf41f['label'])){let _0xb60522=_0x5bf41f['displayLabel']?_0x1f9ed?_0x1f9ed(_0x5bf41f,_0xe938b6['matched']):[]:_0xe938b6['matched'];_0x186e21(new Option(_0x5bf41f,_0x1ce7b6['source'],_0xb60522,_0xe938b6['score']+(_0x5bf41f['boost']||0x0)));}}}if(_0x37dd73){let _0x48d14f=Object['create'](null),_0x5d7e22=0x0,_0x3de541=(_0x23f794,_0xb9e933)=>{var _0x4b4eca,_0x1cf969;return(null!==(_0x4b4eca=_0x23f794['rank'])&&void 0x0!==_0x4b4eca?_0x4b4eca:0x3b9aca00)-(null!==(_0x1cf969=_0xb9e933['rank'])&&void 0x0!==_0x1cf969?_0x1cf969:0x3b9aca00)||(_0x23f794['name']<_0xb9e933['name']?-0x1:0x1);};for(let _0x3c0149 of _0x37dd73['sort'](_0x3de541))_0x5d7e22-=0x186a0,_0x48d14f[_0x3c0149['name']]=_0x5d7e22;for(let _0x525551 of _0x16df63){let {section:_0x40700}=_0x525551['completion'];_0x40700&&(_0x525551['score']+=_0x48d14f['string'==typeof _0x40700?_0x40700:_0x40700['name']]);}}let _0x4b7444=[],_0x252ad2=null,_0x5e643c=_0x401524['compareCompletions'];for(let _0x4669c0 of _0x16df63['sort']((_0x434213,_0x1751e4)=>_0x1751e4['score']-_0x434213['score']||_0x5e643c(_0x434213['completion'],_0x1751e4['completion']))){let _0x340354=_0x4669c0['completion'];!_0x252ad2||_0x252ad2['label']!=_0x340354['label']||_0x252ad2['detail']!=_0x340354['detail']||null!=_0x252ad2['type']&&null!=_0x340354['type']&&_0x252ad2['type']!=_0x340354['type']||_0x252ad2['apply']!=_0x340354['apply']||_0x252ad2['boost']!=_0x340354['boost']?_0x4b7444['push'](_0x4669c0):score(_0x4669c0['completion'])>score(_0x252ad2)&&(_0x4b7444[_0x4b7444['length']-0x1]=_0x4669c0),_0x252ad2=_0x4669c0['completion'];}return _0x4b7444;}class CompletionDialog{constructor(_0x3f4fae,_0x3fbb96,_0x5effb1,_0x64a571,_0x186ace,_0x574b94){this['options']=_0x3f4fae,this['attrs']=_0x3fbb96,this['tooltip']=_0x5effb1,this['timestamp']=_0x64a571,this['selected']=_0x186ace,this['disabled']=_0x574b94;}['setSelected'](_0x16b9f4,_0x4572cf){return _0x16b9f4==this['selected']||_0x16b9f4>=this['options']['length']?this:new CompletionDialog(this['options'],makeAttrs(_0x4572cf,_0x16b9f4),this['tooltip'],this['timestamp'],_0x16b9f4,this['disabled']);}static['build'](_0x45669b,_0x1c8f6a,_0x5cfd00,_0x175529,_0x4f4849,_0xf7266a){if(_0x175529&&!_0xf7266a&&_0x45669b['some'](_0x36a237=>_0x36a237['isPending']))return _0x175529['setDisabled']();let _0x59768b=sortOptions(_0x45669b,_0x1c8f6a);if(!_0x59768b['length'])return _0x175529&&_0x45669b['some'](_0x4fd543=>_0x4fd543['isPending'])?_0x175529['setDisabled']():null;let _0x367976=_0x1c8f6a['facet'](completionConfig)['selectOnOpen']?0x0:-0x1;if(_0x175529&&_0x175529['selected']!=_0x367976&&-0x1!=_0x175529['selected']){let _0x2d1fb0=_0x175529['options'][_0x175529['selected']]['completion'];for(let _0x3a28e1=0x0;_0x3a28e1<_0x59768b['length'];_0x3a28e1++)if(_0x59768b[_0x3a28e1]['completion']==_0x2d1fb0){_0x367976=_0x3a28e1;break;}}return new CompletionDialog(_0x59768b,makeAttrs(_0x5cfd00,_0x367976),{'pos':_0x45669b['reduce']((_0x3dadd1,_0x5c114f)=>_0x5c114f['hasResult']()?Math['min'](_0x3dadd1,_0x5c114f['from']):_0x3dadd1,0x5f5e100),'create':createTooltip,'above':_0x4f4849['aboveCursor']},_0x175529?_0x175529['timestamp']:Date['now'](),_0x367976,!0x1);}['map'](_0x461a0a){return new CompletionDialog(this['options'],this['attrs'],{...this['tooltip'],'pos':_0x461a0a['mapPos'](this['tooltip']['pos'])},this['timestamp'],this['selected'],this['disabled']);}['setDisabled'](){return new CompletionDialog(this['options'],this['attrs'],this['tooltip'],this['timestamp'],this['selected'],!0x0);}}class CompletionState{constructor(_0x18665c,_0x593f95,_0x4a103c){this['active']=_0x18665c,this['id']=_0x593f95,this['open']=_0x4a103c;}static['start'](){return new CompletionState(none$1,'cm-ac-'+Math['floor'](0x1e8480*Math['random']())['toString'](0x24),null);}['update'](_0x3c2370){let {state:_0x455522}=_0x3c2370,_0x528214=_0x455522['facet'](completionConfig),_0x3758af=(_0x528214['override']||_0x455522['languageDataAt']('autocomplete',cur(_0x455522))['map'](asSource))['map'](_0x524539=>{let _0x533a8f=this['active']['find'](_0x3d558e=>_0x3d558e['source']==_0x524539)||new ActiveSource(_0x524539,this['active']['some'](_0x2f73c3=>0x0!=_0x2f73c3['state'])?0x1:0x0);return _0x533a8f['update'](_0x3c2370,_0x528214);});_0x3758af['length']==this['active']['length']&&_0x3758af['every']((_0x319ecf,_0x12605d)=>_0x319ecf==this['active'][_0x12605d])&&(_0x3758af=this['active']);let _0x3c6374=this['open'],_0x9d9ed1=_0x3c2370['effects']['some'](_0x203e3d=>_0x203e3d['is'](setActiveEffect));_0x3c6374&&_0x3c2370['docChanged']&&(_0x3c6374=_0x3c6374['map'](_0x3c2370['changes'])),_0x3c2370['selection']||_0x3758af['some'](_0x5eb2b5=>_0x5eb2b5['hasResult']()&&_0x3c2370['changes']['touchesRange'](_0x5eb2b5['from'],_0x5eb2b5['to']))||!sameResults(_0x3758af,this['active'])||_0x9d9ed1?_0x3c6374=CompletionDialog['build'](_0x3758af,_0x455522,this['id'],_0x3c6374,_0x528214,_0x9d9ed1):_0x3c6374&&_0x3c6374['disabled']&&!_0x3758af['some'](_0x546b67=>_0x546b67['isPending'])&&(_0x3c6374=null),!_0x3c6374&&_0x3758af['every'](_0x532695=>!_0x532695['isPending'])&&_0x3758af['some'](_0x102c52=>_0x102c52['hasResult']())&&(_0x3758af=_0x3758af['map'](_0x497035=>_0x497035['hasResult']()?new ActiveSource(_0x497035['source'],0x0):_0x497035));for(let _0x253855 of _0x3c2370['effects'])_0x253855['is'](setSelectedEffect)&&(_0x3c6374=_0x3c6374&&_0x3c6374['setSelected'](_0x253855['value'],this['id']));return _0x3758af==this['active']&&_0x3c6374==this['open']?this:new CompletionState(_0x3758af,this['id'],_0x3c6374);}get['tooltip'](){return this['open']?this['open']['tooltip']:null;}get['attrs'](){return this['open']?this['open']['attrs']:this['active']['length']?baseAttrs:noAttrs;}}function sameResults(_0x14a224,_0x315f45){if(_0x14a224==_0x315f45)return!0x0;for(let _0x29c827=0x0,_0x4ed551=0x0;;){for(;_0x29c827<_0x14a224['length']&&!_0x14a224[_0x29c827]['hasResult']();)_0x29c827++;for(;_0x4ed551<_0x315f45['length']&&!_0x315f45[_0x4ed551]['hasResult']();)_0x4ed551++;let _0x48a324=_0x29c827==_0x14a224['length'],_0x1834ff=_0x4ed551==_0x315f45['length'];if(_0x48a324||_0x1834ff)return _0x48a324==_0x1834ff;if(_0x14a224[_0x29c827++]['result']!=_0x315f45[_0x4ed551++]['result'])return!0x1;}}const baseAttrs={'aria-autocomplete':'list'},noAttrs={};function makeAttrs(_0x125058,_0xe085e4){let _0x2e182e={'aria-autocomplete':'list','aria-haspopup':'listbox','aria-controls':_0x125058};return _0xe085e4>-0x1&&(_0x2e182e['aria-activedescendant']=_0x125058+'-'+_0xe085e4),_0x2e182e;}const none$1=[];function getUpdateType(_0x3f50aa,_0x1d7d4a){if(_0x3f50aa['isUserEvent']('input.complete')){let _0x5353e3=_0x3f50aa['annotation'](pickedCompletion);if(_0x5353e3&&_0x1d7d4a['activateOnCompletion'](_0x5353e3))return 0xc;}let _0x295986=_0x3f50aa['isUserEvent']('input.type');return _0x295986&&_0x1d7d4a['activateOnTyping']?0x5:_0x295986?0x1:_0x3f50aa['isUserEvent']('delete.backward')?0x2:_0x3f50aa['selection']?0x8:_0x3f50aa['docChanged']?0x10:0x0;}class ActiveSource{constructor(_0x5cc0e5,_0x31f954,_0x2063a7=!0x1){this['source']=_0x5cc0e5,this['state']=_0x31f954,this['explicit']=_0x2063a7;}['hasResult'](){return!0x1;}get['isPending'](){return 0x1==this['state'];}['update'](_0x2ce7d4,_0x1b3dc1){let _0xca6a5c=getUpdateType(_0x2ce7d4,_0x1b3dc1),_0x6786e9=this;(0x8&_0xca6a5c||0x10&_0xca6a5c&&this['touches'](_0x2ce7d4))&&(_0x6786e9=new ActiveSource(_0x6786e9['source'],0x0)),0x4&_0xca6a5c&&0x0==_0x6786e9['state']&&(_0x6786e9=new ActiveSource(this['source'],0x1)),_0x6786e9=_0x6786e9['updateFor'](_0x2ce7d4,_0xca6a5c);for(let _0x45dfe3 of _0x2ce7d4['effects'])if(_0x45dfe3['is'](startCompletionEffect))_0x6786e9=new ActiveSource(_0x6786e9['source'],0x1,_0x45dfe3['value']);else{if(_0x45dfe3['is'](closeCompletionEffect))_0x6786e9=new ActiveSource(_0x6786e9['source'],0x0);else{if(_0x45dfe3['is'](setActiveEffect)){for(let _0x2b8948 of _0x45dfe3['value'])_0x2b8948['source']==_0x6786e9['source']&&(_0x6786e9=_0x2b8948);}}}return _0x6786e9;}['updateFor'](_0x36a849,_0x522207){return this['map'](_0x36a849['changes']);}['map'](_0xd4075){return this;}['touches'](_0x2d2c64){return _0x2d2c64['changes']['touchesRange'](cur(_0x2d2c64['state']));}}class ActiveResult extends ActiveSource{constructor(_0x9bb2c,_0x4807a2,_0xb8671b,_0x41a153,_0x14a982,_0x16e279){super(_0x9bb2c,0x3,_0x4807a2),this['limit']=_0xb8671b,this['result']=_0x41a153,this['from']=_0x14a982,this['to']=_0x16e279;}['hasResult'](){return!0x0;}['updateFor'](_0x508d09,_0x1de81c){var _0x1e97c1;if(!(0x3&_0x1de81c))return this['map'](_0x508d09['changes']);let _0x4f6ef1=this['result'];_0x4f6ef1['map']&&!_0x508d09['changes']['empty']&&(_0x4f6ef1=_0x4f6ef1['map'](_0x4f6ef1,_0x508d09['changes']));let _0x234a50=_0x508d09['changes']['mapPos'](this['from']),_0x1313ad=_0x508d09['changes']['mapPos'](this['to'],0x1),_0x20b785=cur(_0x508d09['state']);if(_0x20b785>_0x1313ad||!_0x4f6ef1||0x2&_0x1de81c&&(cur(_0x508d09['startState'])==this['from']||_0x20b785<this['limit']))return new ActiveSource(this['source'],0x4&_0x1de81c?0x1:0x0);let _0x22f75=_0x508d09['changes']['mapPos'](this['limit']);return checkValid(_0x4f6ef1['validFor'],_0x508d09['state'],_0x234a50,_0x1313ad)?new ActiveResult(this['source'],this['explicit'],_0x22f75,_0x4f6ef1,_0x234a50,_0x1313ad):_0x4f6ef1['update']&&(_0x4f6ef1=_0x4f6ef1['update'](_0x4f6ef1,_0x234a50,_0x1313ad,new CompletionContext(_0x508d09['state'],_0x20b785,!0x1)))?new ActiveResult(this['source'],this['explicit'],_0x22f75,_0x4f6ef1,_0x4f6ef1['from'],null!==(_0x1e97c1=_0x4f6ef1['to'])&&void 0x0!==_0x1e97c1?_0x1e97c1:cur(_0x508d09['state'])):new ActiveSource(this['source'],0x1,this['explicit']);}['map'](_0x2a52b3){if(_0x2a52b3['empty'])return this;return(this['result']['map']?this['result']['map'](this['result'],_0x2a52b3):this['result'])?new ActiveResult(this['source'],this['explicit'],_0x2a52b3['mapPos'](this['limit']),this['result'],_0x2a52b3['mapPos'](this['from']),_0x2a52b3['mapPos'](this['to'],0x1)):new ActiveSource(this['source'],0x0);}['touches'](_0x118f1c){return _0x118f1c['changes']['touchesRange'](this['from'],this['to']);}}function checkValid(_0x2f74f7,_0x5841e3,_0x3100dc,_0x154ac1){if(!_0x2f74f7)return!0x1;let _0xd98024=_0x5841e3['sliceDoc'](_0x3100dc,_0x154ac1);return'function'==typeof _0x2f74f7?_0x2f74f7(_0xd98024,_0x3100dc,_0x154ac1,_0x5841e3):ensureAnchor(_0x2f74f7,!0x0)['test'](_0xd98024);}const setActiveEffect=StateEffect['define']({'map':(_0x2fdcdd,_0x294e2f)=>_0x2fdcdd['map'](_0x4bd8f6=>_0x4bd8f6['map'](_0x294e2f))}),setSelectedEffect=StateEffect['define'](),completionState=StateField['define']({'create':()=>CompletionState['start'](),'update':(_0x4a7813,_0x1d0cb6)=>_0x4a7813['update'](_0x1d0cb6),'provide':_0x2be757=>[showTooltip['from'](_0x2be757,_0x5a8468=>_0x5a8468['tooltip']),EditorView['contentAttributes']['from'](_0x2be757,_0x3d9d5c=>_0x3d9d5c['attrs'])]});function applyCompletion(_0x31f03c,_0x3bf8b9){const _0x12dd15=_0x3bf8b9['completion']['apply']||_0x3bf8b9['completion']['label'];let _0x5868da=_0x31f03c['state']['field'](completionState)['active']['find'](_0x3c9576=>_0x3c9576['source']==_0x3bf8b9['source']);return _0x5868da instanceof ActiveResult&&('string'==typeof _0x12dd15?_0x31f03c['dispatch']({...insertCompletionText(_0x31f03c['state'],_0x12dd15,_0x5868da['from'],_0x5868da['to']),'annotations':pickedCompletion['of'](_0x3bf8b9['completion'])}):_0x12dd15(_0x31f03c,_0x3bf8b9['completion'],_0x5868da['from'],_0x5868da['to']),!0x0);}const createTooltip=completionTooltip(completionState,applyCompletion);function moveCompletionSelection(_0x104def,_0x1c84c8='option'){return _0x41427f=>{let _0x1d5bdd=_0x41427f['state']['field'](completionState,!0x1);if(!_0x1d5bdd||!_0x1d5bdd['open']||_0x1d5bdd['open']['disabled']||Date['now']()-_0x1d5bdd['open']['timestamp']<_0x41427f['state']['facet'](completionConfig)['interactionDelay'])return!0x1;let _0x597b64,_0x59734e=0x1;'page'==_0x1c84c8&&(_0x597b64=getTooltip(_0x41427f,_0x1d5bdd['open']['tooltip']))&&(_0x59734e=Math['max'](0x2,Math['floor'](_0x597b64['dom']['offsetHeight']/_0x597b64['dom']['querySelector']('li')['offsetHeight'])-0x1));let {length:_0x1fae32}=_0x1d5bdd['open']['options'],_0x16f981=_0x1d5bdd['open']['selected']>-0x1?_0x1d5bdd['open']['selected']+_0x59734e*(_0x104def?0x1:-0x1):_0x104def?0x0:_0x1fae32-0x1;return _0x16f981<0x0?_0x16f981='page'==_0x1c84c8?0x0:_0x1fae32-0x1:_0x16f981>=_0x1fae32&&(_0x16f981='page'==_0x1c84c8?_0x1fae32-0x1:0x0),_0x41427f['dispatch']({'effects':setSelectedEffect['of'](_0x16f981)}),!0x0;};}const acceptCompletion=_0x45ed6e=>{let _0x12c1b7=_0x45ed6e['state']['field'](completionState,!0x1);return!(_0x45ed6e['state']['readOnly']||!_0x12c1b7||!_0x12c1b7['open']||_0x12c1b7['open']['selected']<0x0||_0x12c1b7['open']['disabled']||Date['now']()-_0x12c1b7['open']['timestamp']<_0x45ed6e['state']['facet'](completionConfig)['interactionDelay'])&&applyCompletion(_0x45ed6e,_0x12c1b7['open']['options'][_0x12c1b7['open']['selected']]);},startCompletion=_0x38c014=>!!_0x38c014['state']['field'](completionState,!0x1)&&(_0x38c014['dispatch']({'effects':startCompletionEffect['of'](!0x0)}),!0x0),closeCompletion=_0x2b05e9=>{let _0x32143b=_0x2b05e9['state']['field'](completionState,!0x1);return!(!_0x32143b||!_0x32143b['active']['some'](_0x39548a=>0x0!=_0x39548a['state']))&&(_0x2b05e9['dispatch']({'effects':closeCompletionEffect['of'](null)}),!0x0);};class RunningQuery{constructor(_0x26c2d5,_0xe5282c){this['active']=_0x26c2d5,this['context']=_0xe5282c,this['time']=Date['now'](),this['updates']=[],this['done']=void 0x0;}}const MaxUpdateCount=0x32,MinAbortTime=0x3e8,completionPlugin=ViewPlugin['fromClass'](class{constructor(_0x5ec4f9){this['view']=_0x5ec4f9,this['debounceUpdate']=-0x1,this['running']=[],this['debounceAccept']=-0x1,this['pendingStart']=!0x1,this['composing']=0x0;for(let _0x3b5f05 of _0x5ec4f9['state']['field'](completionState)['active'])_0x3b5f05['isPending']&&this['startQuery'](_0x3b5f05);}['update'](_0x3fac07){let _0x5f2272=_0x3fac07['state']['field'](completionState),_0x406cea=_0x3fac07['state']['facet'](completionConfig);if(!_0x3fac07['selectionSet']&&!_0x3fac07['docChanged']&&_0x3fac07['startState']['field'](completionState)==_0x5f2272)return;let _0x1a72c6=_0x3fac07['transactions']['some'](_0x916a98=>{let _0x267f17=getUpdateType(_0x916a98,_0x406cea);return 0x8&_0x267f17||(_0x916a98['selection']||_0x916a98['docChanged'])&&!(0x3&_0x267f17);});for(let _0x6440c3=0x0;_0x6440c3<this['running']['length'];_0x6440c3++){let _0x473a6b=this['running'][_0x6440c3];if(_0x1a72c6||_0x473a6b['context']['abortOnDocChange']&&_0x3fac07['docChanged']||_0x473a6b['updates']['length']+_0x3fac07['transactions']['length']>MaxUpdateCount&&Date['now']()-_0x473a6b['time']>MinAbortTime){for(let _0x867905 of _0x473a6b['context']['abortListeners'])try{_0x867905();}catch(_0x5bff81){logException(this['view']['state'],_0x5bff81);}_0x473a6b['context']['abortListeners']=null,this['running']['splice'](_0x6440c3--,0x1);}else _0x473a6b['updates']['push'](..._0x3fac07['transactions']);}this['debounceUpdate']>-0x1&&clearTimeout(this['debounceUpdate']),_0x3fac07['transactions']['some'](_0x559cf8=>_0x559cf8['effects']['some'](_0x2391cf=>_0x2391cf['is'](startCompletionEffect)))&&(this['pendingStart']=!0x0);let _0x4143b2=this['pendingStart']?0x32:_0x406cea['activateOnTypingDelay'];if(this['debounceUpdate']=_0x5f2272['active']['some'](_0x31de0e=>_0x31de0e['isPending']&&!this['running']['some'](_0x108d40=>_0x108d40['active']['source']==_0x31de0e['source']))?setTimeout(()=>this['startUpdate'](),_0x4143b2):-0x1,0x0!=this['composing']){for(let _0x5e9a14 of _0x3fac07['transactions'])_0x5e9a14['isUserEvent']('input.type')?this['composing']=0x2:0x2==this['composing']&&_0x5e9a14['selection']&&(this['composing']=0x3);}}['startUpdate'](){this['debounceUpdate']=-0x1,this['pendingStart']=!0x1;let {state:_0x3be534}=this['view'],_0xdee99c=_0x3be534['field'](completionState);for(let _0x1c597c of _0xdee99c['active'])_0x1c597c['isPending']&&!this['running']['some'](_0x48dd7b=>_0x48dd7b['active']['source']==_0x1c597c['source'])&&this['startQuery'](_0x1c597c);this['running']['length']&&_0xdee99c['open']&&_0xdee99c['open']['disabled']&&(this['debounceAccept']=setTimeout(()=>this['accept'](),this['view']['state']['facet'](completionConfig)['updateSyncTime']));}['startQuery'](_0xecb88e){let {state:_0x33d6cf}=this['view'],_0x29fecb=cur(_0x33d6cf),_0x2c560c=new CompletionContext(_0x33d6cf,_0x29fecb,_0xecb88e['explicit'],this['view']),_0x32b74d=new RunningQuery(_0xecb88e,_0x2c560c);this['running']['push'](_0x32b74d),Promise['resolve'](_0xecb88e['source'](_0x2c560c))['then'](_0x47c93a=>{_0x32b74d['context']['aborted']||(_0x32b74d['done']=_0x47c93a||null,this['scheduleAccept']());},_0x9a170c=>{this['view']['dispatch']({'effects':closeCompletionEffect['of'](null)}),logException(this['view']['state'],_0x9a170c);});}['scheduleAccept'](){this['running']['every'](_0x2096ec=>void 0x0!==_0x2096ec['done'])?this['accept']():this['debounceAccept']<0x0&&(this['debounceAccept']=setTimeout(()=>this['accept'](),this['view']['state']['facet'](completionConfig)['updateSyncTime']));}['accept'](){var _0x415caa;this['debounceAccept']>-0x1&&clearTimeout(this['debounceAccept']),this['debounceAccept']=-0x1;let _0x2024bf=[],_0x21c330=this['view']['state']['facet'](completionConfig),_0x23d06e=this['view']['state']['field'](completionState);for(let _0x4de0d9=0x0;_0x4de0d9<this['running']['length'];_0x4de0d9++){let _0x34793b=this['running'][_0x4de0d9];if(void 0x0===_0x34793b['done'])continue;if(this['running']['splice'](_0x4de0d9--,0x1),_0x34793b['done']){let _0x1331d3=cur(_0x34793b['updates']['length']?_0x34793b['updates'][0x0]['startState']:this['view']['state']),_0xee570f=Math['min'](_0x1331d3,_0x34793b['done']['from']+(_0x34793b['active']['explicit']?0x0:0x1)),_0x5df0ca=new ActiveResult(_0x34793b['active']['source'],_0x34793b['active']['explicit'],_0xee570f,_0x34793b['done'],_0x34793b['done']['from'],null!==(_0x415caa=_0x34793b['done']['to'])&&void 0x0!==_0x415caa?_0x415caa:_0x1331d3);for(let _0x8b14a3 of _0x34793b['updates'])_0x5df0ca=_0x5df0ca['update'](_0x8b14a3,_0x21c330);if(_0x5df0ca['hasResult']()){_0x2024bf['push'](_0x5df0ca);continue;}}let _0x89cacb=_0x23d06e['active']['find'](_0x2ecd5d=>_0x2ecd5d['source']==_0x34793b['active']['source']);if(_0x89cacb&&_0x89cacb['isPending']){if(null==_0x34793b['done']){let _0x1bda89=new ActiveSource(_0x34793b['active']['source'],0x0);for(let _0xb8b4f2 of _0x34793b['updates'])_0x1bda89=_0x1bda89['update'](_0xb8b4f2,_0x21c330);_0x1bda89['isPending']||_0x2024bf['push'](_0x1bda89);}else this['startQuery'](_0x89cacb);}}(_0x2024bf['length']||_0x23d06e['open']&&_0x23d06e['open']['disabled'])&&this['view']['dispatch']({'effects':setActiveEffect['of'](_0x2024bf)});}},{'eventHandlers':{'blur'(_0x53bb31){let _0x32bc9e=this['view']['state']['field'](completionState,!0x1);if(_0x32bc9e&&_0x32bc9e['tooltip']&&this['view']['state']['facet'](completionConfig)['closeOnBlur']){let _0x493584=_0x32bc9e['open']&&getTooltip(this['view'],_0x32bc9e['open']['tooltip']);_0x493584&&_0x493584['dom']['contains'](_0x53bb31['relatedTarget'])||setTimeout(()=>this['view']['dispatch']({'effects':closeCompletionEffect['of'](null)}),0xa);}},'compositionstart'(){this['composing']=0x1;},'compositionend'(){0x3==this['composing']&&setTimeout(()=>this['view']['dispatch']({'effects':startCompletionEffect['of'](!0x1)}),0x14),this['composing']=0x0;}}}),windows='object'==typeof navigator&&/Win/['test'](navigator['platform']),commitCharacters=Prec['highest'](EditorView['domEventHandlers']({'keydown'(_0x1a2012,_0xf066c2){let _0x57a217=_0xf066c2['state']['field'](completionState,!0x1);if(!_0x57a217||!_0x57a217['open']||_0x57a217['open']['disabled']||_0x57a217['open']['selected']<0x0||_0x1a2012['key']['length']>0x1||_0x1a2012['ctrlKey']&&(!windows||!_0x1a2012['altKey'])||_0x1a2012['metaKey'])return!0x1;let _0x5dccbd=_0x57a217['open']['options'][_0x57a217['open']['selected']],_0x28ec23=_0x57a217['active']['find'](_0x77b0b0=>_0x77b0b0['source']==_0x5dccbd['source']),_0x5cbee4=_0x5dccbd['completion']['commitCharacters']||_0x28ec23['result']['commitCharacters'];return _0x5cbee4&&_0x5cbee4['indexOf'](_0x1a2012['key'])>-0x1&&applyCompletion(_0xf066c2,_0x5dccbd),!0x1;}})),baseTheme=EditorView['baseTheme']({'.cm-tooltip.cm-tooltip-autocomplete':{'&\x20>\x20ul':{'fontFamily':'monospace','whiteSpace':'nowrap','overflow':'hidden\x20auto','maxWidth_fallback':'700px','maxWidth':'min(700px,\x2095vw)','minWidth':'250px','maxHeight':'10em','height':'100%','listStyle':'none','margin':0x0,'padding':0x0,'&\x20>\x20li,\x20&\x20>\x20completion-section':{'padding':'1px\x203px','lineHeight':1.2},'&\x20>\x20li':{'overflowX':'hidden','textOverflow':'ellipsis','cursor':'pointer'},'&\x20>\x20completion-section':{'display':'list-item','borderBottom':'1px\x20solid\x20silver','paddingLeft':'0.5em','opacity':0.7}}},'&light\x20.cm-tooltip-autocomplete\x20ul\x20li[aria-selected]':{'background':'#17c','color':'white'},'&light\x20.cm-tooltip-autocomplete-disabled\x20ul\x20li[aria-selected]':{'background':'#777'},'&dark\x20.cm-tooltip-autocomplete\x20ul\x20li[aria-selected]':{'background':'#347','color':'white'},'&dark\x20.cm-tooltip-autocomplete-disabled\x20ul\x20li[aria-selected]':{'background':'#444'},'.cm-completionListIncompleteTop:before,\x20.cm-completionListIncompleteBottom:after':{'content':'\x22···\x22','opacity':0.5,'display':'block','textAlign':'center'},'.cm-tooltip.cm-completionInfo':{'position':'absolute','padding':'3px\x209px','width':'max-content','maxWidth':'400px','boxSizing':'border-box','whiteSpace':'pre-line'},'.cm-completionInfo.cm-completionInfo-left':{'right':'100%'},'.cm-completionInfo.cm-completionInfo-right':{'left':'100%'},'.cm-completionInfo.cm-completionInfo-left-narrow':{'right':'30px'},'.cm-completionInfo.cm-completionInfo-right-narrow':{'left':'30px'},'&light\x20.cm-snippetField':{'backgroundColor':'#00000022'},'&dark\x20.cm-snippetField':{'backgroundColor':'#ffffff22'},'.cm-snippetFieldPosition':{'verticalAlign':'text-top','width':0x0,'height':'1.15em','display':'inline-block','margin':'0\x20-0.7px\x20-.7em','borderLeft':'1.4px\x20dotted\x20#888'},'.cm-completionMatchedText':{'textDecoration':'underline'},'.cm-completionDetail':{'marginLeft':'0.5em','fontStyle':'italic'},'.cm-completionIcon':{'fontSize':'90%','width':'.8em','display':'inline-block','textAlign':'center','paddingRight':'.6em','opacity':'0.6','boxSizing':'content-box'},'.cm-completionIcon-function,\x20.cm-completionIcon-method':{'&:after':{'content':'\x27ƒ\x27'}},'.cm-completionIcon-class':{'&:after':{'content':'\x27○\x27'}},'.cm-completionIcon-interface':{'&:after':{'content':'\x27◌\x27'}},'.cm-completionIcon-variable':{'&:after':{'content':'\x27𝑥\x27'}},'.cm-completionIcon-constant':{'&:after':{'content':'\x27𝐶\x27'}},'.cm-completionIcon-type':{'&:after':{'content':'\x27𝑡\x27'}},'.cm-completionIcon-enum':{'&:after':{'content':'\x27∪\x27'}},'.cm-completionIcon-property':{'&:after':{'content':'\x27□\x27'}},'.cm-completionIcon-keyword':{'&:after':{'content':'\x27🔑︎\x27'}},'.cm-completionIcon-namespace':{'&:after':{'content':'\x27▢\x27'}},'.cm-completionIcon-text':{'&:after':{'content':'\x27abc\x27','fontSize':'50%','verticalAlign':'middle'}}});class FieldPos{constructor(_0x4fa851,_0x48beb7,_0x5bfd1e,_0x3cf2c8){this['field']=_0x4fa851,this['line']=_0x48beb7,this['from']=_0x5bfd1e,this['to']=_0x3cf2c8;}}class FieldRange{constructor(_0x1150af,_0x2dcc10,_0x4ad89d){this['field']=_0x1150af,this['from']=_0x2dcc10,this['to']=_0x4ad89d;}['map'](_0x110278){let _0x3b37ce=_0x110278['mapPos'](this['from'],-0x1,MapMode['TrackDel']),_0xc5f725=_0x110278['mapPos'](this['to'],0x1,MapMode['TrackDel']);return null==_0x3b37ce||null==_0xc5f725?null:new FieldRange(this['field'],_0x3b37ce,_0xc5f725);}}class Snippet{constructor(_0x51f3de,_0x50ab93){this['lines']=_0x51f3de,this['fieldPositions']=_0x50ab93;}['instantiate'](_0x54afcd,_0x5c5cd9){let _0x26a540=[],_0x190d2b=[_0x5c5cd9],_0x7aa5ab=_0x54afcd['doc']['lineAt'](_0x5c5cd9),_0x208752=/^\s*/['exec'](_0x7aa5ab['text'])[0x0];for(let _0x3433df of this['lines']){if(_0x26a540['length']){let _0x2f936f=_0x208752,_0x4fb43c=/^\t*/['exec'](_0x3433df)[0x0]['length'];for(let _0x1e1dee=0x0;_0x1e1dee<_0x4fb43c;_0x1e1dee++)_0x2f936f+=_0x54afcd['facet'](indentUnit);_0x190d2b['push'](_0x5c5cd9+_0x2f936f['length']-_0x4fb43c),_0x3433df=_0x2f936f+_0x3433df['slice'](_0x4fb43c);}_0x26a540['push'](_0x3433df),_0x5c5cd9+=_0x3433df['length']+0x1;}let _0x10e179=this['fieldPositions']['map'](_0x409e7b=>new FieldRange(_0x409e7b['field'],_0x190d2b[_0x409e7b['line']]+_0x409e7b['from'],_0x190d2b[_0x409e7b['line']]+_0x409e7b['to']));return{'text':_0x26a540,'ranges':_0x10e179};}static['parse'](_0x48aace){let _0x57e9d1,_0x5dbafc=[],_0x1268be=[],_0x8b442a=[];for(let _0x192af8 of _0x48aace['split'](/\r\n?|\n/)){for(;_0x57e9d1=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/['exec'](_0x192af8);){let _0x375846=_0x57e9d1[0x1]?+_0x57e9d1[0x1]:null,_0x4a4c85=_0x57e9d1[0x2]||_0x57e9d1[0x3]||'',_0x2e9a92=-0x1,_0x1088cf=_0x4a4c85['replace'](/\\[{}]/g,_0x37090a=>_0x37090a[0x1]);for(let _0x27467a=0x0;_0x27467a<_0x5dbafc['length'];_0x27467a++)(null!=_0x375846?_0x5dbafc[_0x27467a]['seq']==_0x375846:_0x1088cf&&_0x5dbafc[_0x27467a]['name']==_0x1088cf)&&(_0x2e9a92=_0x27467a);if(_0x2e9a92<0x0){let _0x54befb=0x0;for(;_0x54befb<_0x5dbafc['length']&&(null==_0x375846||null!=_0x5dbafc[_0x54befb]['seq']&&_0x5dbafc[_0x54befb]['seq']<_0x375846);)_0x54befb++;_0x5dbafc['splice'](_0x54befb,0x0,{'seq':_0x375846,'name':_0x1088cf}),_0x2e9a92=_0x54befb;for(let _0x5bfba9 of _0x8b442a)_0x5bfba9['field']>=_0x2e9a92&&_0x5bfba9['field']++;}for(let _0x565e5c of _0x8b442a)if(_0x565e5c['line']==_0x1268be['length']&&_0x565e5c['from']>_0x57e9d1['index']){let _0x45c813=_0x57e9d1[0x2]?0x3+(_0x57e9d1[0x1]||'')['length']:0x2;_0x565e5c['from']-=_0x45c813,_0x565e5c['to']-=_0x45c813;}_0x8b442a['push'](new FieldPos(_0x2e9a92,_0x1268be['length'],_0x57e9d1['index'],_0x57e9d1['index']+_0x1088cf['length'])),_0x192af8=_0x192af8['slice'](0x0,_0x57e9d1['index'])+_0x4a4c85+_0x192af8['slice'](_0x57e9d1['index']+_0x57e9d1[0x0]['length']);}_0x192af8=_0x192af8['replace'](/\\([{}])/g,(_0x37679e,_0x5bdf5c,_0x38b307)=>{for(let _0x1adab6 of _0x8b442a)_0x1adab6['line']==_0x1268be['length']&&_0x1adab6['from']>_0x38b307&&(_0x1adab6['from']--,_0x1adab6['to']--);return _0x5bdf5c;}),_0x1268be['push'](_0x192af8);}return new Snippet(_0x1268be,_0x8b442a);}}let fieldMarker=Decoration['widget']({'widget':new class extends WidgetType{['toDOM'](){let _0x330fe9=document['createElement']('span');return _0x330fe9['className']='cm-snippetFieldPosition',_0x330fe9;}['ignoreEvent'](){return!0x1;}}()}),fieldRange=Decoration['mark']({'class':'cm-snippetField'});class ActiveSnippet{constructor(_0x347fef,_0x50a6db){this['ranges']=_0x347fef,this['active']=_0x50a6db,this['deco']=Decoration['set'](_0x347fef['map'](_0x2e7b1f=>(_0x2e7b1f['from']==_0x2e7b1f['to']?fieldMarker:fieldRange)['range'](_0x2e7b1f['from'],_0x2e7b1f['to'])),!0x0);}['map'](_0x291ddb){let _0x416eb5=[];for(let _0x1205ea of this['ranges']){let _0x214ae2=_0x1205ea['map'](_0x291ddb);if(!_0x214ae2)return null;_0x416eb5['push'](_0x214ae2);}return new ActiveSnippet(_0x416eb5,this['active']);}['selectionInsideField'](_0x35405d){return _0x35405d['ranges']['every'](_0x242c34=>this['ranges']['some'](_0x3f578a=>_0x3f578a['field']==this['active']&&_0x3f578a['from']<=_0x242c34['from']&&_0x3f578a['to']>=_0x242c34['to']));}}const setActive=StateEffect['define']({'map':(_0x2d5410,_0x23580f)=>_0x2d5410&&_0x2d5410['map'](_0x23580f)}),moveToField=StateEffect['define'](),snippetState=StateField['define']({'create':()=>null,'update'(_0xc1bc08,_0x422cf2){for(let _0x1c6aaf of _0x422cf2['effects']){if(_0x1c6aaf['is'](setActive))return _0x1c6aaf['value'];if(_0x1c6aaf['is'](moveToField)&&_0xc1bc08)return new ActiveSnippet(_0xc1bc08['ranges'],_0x1c6aaf['value']);}return _0xc1bc08&&_0x422cf2['docChanged']&&(_0xc1bc08=_0xc1bc08['map'](_0x422cf2['changes'])),_0xc1bc08&&_0x422cf2['selection']&&!_0xc1bc08['selectionInsideField'](_0x422cf2['selection'])&&(_0xc1bc08=null),_0xc1bc08;},'provide':_0x1dc2b3=>EditorView['decorations']['from'](_0x1dc2b3,_0xd4c974=>_0xd4c974?_0xd4c974['deco']:Decoration['none'])});function fieldSelection(_0x2ea843,_0x7a8486){return EditorSelection['create'](_0x2ea843['filter'](_0x48a3f9=>_0x48a3f9['field']==_0x7a8486)['map'](_0x58f2fd=>EditorSelection['range'](_0x58f2fd['from'],_0x58f2fd['to'])));}function snippet(_0x3c4c60){let _0x4a8494=Snippet['parse'](_0x3c4c60);return(_0x193ec7,_0x24d662,_0x3df4ef,_0xbe7c6)=>{let {text:_0x35f04c,ranges:_0x240065}=_0x4a8494['instantiate'](_0x193ec7['state'],_0x3df4ef),{main:_0x1e5f29}=_0x193ec7['state']['selection'],_0x1d291e={'changes':{'from':_0x3df4ef,'to':_0xbe7c6==_0x1e5f29['from']?_0x1e5f29['to']:_0xbe7c6,'insert':Text['of'](_0x35f04c)},'scrollIntoView':!0x0,'annotations':_0x24d662?[pickedCompletion['of'](_0x24d662),Transaction['userEvent']['of']('input.complete')]:void 0x0};if(_0x240065['length']&&(_0x1d291e['selection']=fieldSelection(_0x240065,0x0)),_0x240065['some'](_0x257def=>_0x257def['field']>0x0)){let _0x224be6=new ActiveSnippet(_0x240065,0x0),_0x5a73af=_0x1d291e['effects']=[setActive['of'](_0x224be6)];void 0x0===_0x193ec7['state']['field'](snippetState,!0x1)&&_0x5a73af['push'](StateEffect['appendConfig']['of']([snippetState,addSnippetKeymap,snippetPointerHandler,baseTheme]));}_0x193ec7['dispatch'](_0x193ec7['state']['update'](_0x1d291e));};}function moveField(_0x4edb4f){return({state:_0x1380ec,dispatch:_0x8f3218})=>{let _0x47728a=_0x1380ec['field'](snippetState,!0x1);if(!_0x47728a||_0x4edb4f<0x0&&0x0==_0x47728a['active'])return!0x1;let _0x34fe0d=_0x47728a['active']+_0x4edb4f,_0x4fc6ad=_0x4edb4f>0x0&&!_0x47728a['ranges']['some'](_0x2bc551=>_0x2bc551['field']==_0x34fe0d+_0x4edb4f);return _0x8f3218(_0x1380ec['update']({'selection':fieldSelection(_0x47728a['ranges'],_0x34fe0d),'effects':setActive['of'](_0x4fc6ad?null:new ActiveSnippet(_0x47728a['ranges'],_0x34fe0d)),'scrollIntoView':!0x0})),!0x0;};}const clearSnippet=({state:_0x59f417,dispatch:_0x343ee3})=>!!_0x59f417['field'](snippetState,!0x1)&&(_0x343ee3(_0x59f417['update']({'effects':setActive['of'](null)})),!0x0),nextSnippetField=moveField(0x1),prevSnippetField=moveField(-0x1),defaultSnippetKeymap=[{'key':'Tab','run':nextSnippetField,'shift':prevSnippetField},{'key':'Escape','run':clearSnippet}],snippetKeymap=Facet['define']({'combine':_0x325701=>_0x325701['length']?_0x325701[0x0]:defaultSnippetKeymap}),addSnippetKeymap=Prec['highest'](keymap['compute']([snippetKeymap],_0x4c94d9=>_0x4c94d9['facet'](snippetKeymap)));function snippetCompletion(_0x1ada26,_0x59f557){return{..._0x59f557,'apply':snippet(_0x1ada26)};}const snippetPointerHandler=EditorView['domEventHandlers']({'mousedown'(_0x2a9b86,_0x212e8e){let _0x5748b9,_0x1c33fa=_0x212e8e['state']['field'](snippetState,!0x1);if(!_0x1c33fa||null==(_0x5748b9=_0x212e8e['posAtCoords']({'x':_0x2a9b86['clientX'],'y':_0x2a9b86['clientY']})))return!0x1;let _0x26a233=_0x1c33fa['ranges']['find'](_0x317959=>_0x317959['from']<=_0x5748b9&&_0x317959['to']>=_0x5748b9);return!(!_0x26a233||_0x26a233['field']==_0x1c33fa['active'])&&(_0x212e8e['dispatch']({'selection':fieldSelection(_0x1c33fa['ranges'],_0x26a233['field']),'effects':setActive['of'](_0x1c33fa['ranges']['some'](_0x4b2465=>_0x4b2465['field']>_0x26a233['field'])?new ActiveSnippet(_0x1c33fa['ranges'],_0x26a233['field']):null),'scrollIntoView':!0x0}),!0x0);}}),defaults={'brackets':['(','[','{','\x27','\x22'],'before':')]}:;>','stringPrefixes':[]},closeBracketEffect=StateEffect['define']({'map'(_0x541794,_0x2eb5ec){let _0x383e71=_0x2eb5ec['mapPos'](_0x541794,-0x1,MapMode['TrackAfter']);return null==_0x383e71?void 0x0:_0x383e71;}}),closedBracket=new class extends RangeValue{}();closedBracket['startSide']=0x1,closedBracket['endSide']=-0x1;const bracketState=StateField['define']({'create':()=>RangeSet['empty'],'update'(_0x2a8eb5,_0x2af3f7){if(_0x2a8eb5=_0x2a8eb5['map'](_0x2af3f7['changes']),_0x2af3f7['selection']){let _0x2030a3=_0x2af3f7['state']['doc']['lineAt'](_0x2af3f7['selection']['main']['head']);_0x2a8eb5=_0x2a8eb5['update']({'filter':_0x11ede9=>_0x11ede9>=_0x2030a3['from']&&_0x11ede9<=_0x2030a3['to']});}for(let _0x2c980d of _0x2af3f7['effects'])_0x2c980d['is'](closeBracketEffect)&&(_0x2a8eb5=_0x2a8eb5['update']({'add':[closedBracket['range'](_0x2c980d['value'],_0x2c980d['value']+0x1)]}));return _0x2a8eb5;}});function closeBrackets(){return[inputHandler,bracketState];}const definedClosing='()[]{}<>«»»«［］｛｝';function closing(_0x24425b){for(let _0x530362=0x0;_0x530362<definedClosing['length'];_0x530362+=0x2)if(definedClosing['charCodeAt'](_0x530362)==_0x24425b)return definedClosing['charAt'](_0x530362+0x1);return fromCodePoint(_0x24425b<0x80?_0x24425b:_0x24425b+0x1);}function config(_0x343efb,_0x3d7182){return _0x343efb['languageDataAt']('closeBrackets',_0x3d7182)[0x0]||defaults;}const android$1='object'==typeof navigator&&/Android\b/['test'](navigator['userAgent']),inputHandler=EditorView['inputHandler']['of']((_0x300c99,_0x5d20b6,_0x5e9692,_0x47a1c4)=>{if((android$1?_0x300c99['composing']:_0x300c99['compositionStarted'])||_0x300c99['state']['readOnly'])return!0x1;let _0xfe462f=_0x300c99['state']['selection']['main'];if(_0x47a1c4['length']>0x2||0x2==_0x47a1c4['length']&&0x1==codePointSize(codePointAt(_0x47a1c4,0x0))||_0x5d20b6!=_0xfe462f['from']||_0x5e9692!=_0xfe462f['to'])return!0x1;let _0x2b8de7=insertBracket(_0x300c99['state'],_0x47a1c4);return!!_0x2b8de7&&(_0x300c99['dispatch'](_0x2b8de7),!0x0);}),deleteBracketPair=({state:_0x4ad451,dispatch:_0x104e32})=>{if(_0x4ad451['readOnly'])return!0x1;let _0x5584b8=config(_0x4ad451,_0x4ad451['selection']['main']['head'])['brackets']||defaults['brackets'],_0x544be0=null,_0x234675=_0x4ad451['changeByRange'](_0x28cd27=>{if(_0x28cd27['empty']){let _0x353ed2=prevChar(_0x4ad451['doc'],_0x28cd27['head']);for(let _0x4602e9 of _0x5584b8)if(_0x4602e9==_0x353ed2&&nextChar(_0x4ad451['doc'],_0x28cd27['head'])==closing(codePointAt(_0x4602e9,0x0)))return{'changes':{'from':_0x28cd27['head']-_0x4602e9['length'],'to':_0x28cd27['head']+_0x4602e9['length']},'range':EditorSelection['cursor'](_0x28cd27['head']-_0x4602e9['length'])};}return{'range':_0x544be0=_0x28cd27};});return _0x544be0||_0x104e32(_0x4ad451['update'](_0x234675,{'scrollIntoView':!0x0,'userEvent':'delete.backward'})),!_0x544be0;},closeBracketsKeymap=[{'key':'Backspace','run':deleteBracketPair}];function insertBracket(_0x141d5c,_0x33f51f){let _0x127d35=config(_0x141d5c,_0x141d5c['selection']['main']['head']),_0x1620ea=_0x127d35['brackets']||defaults['brackets'];for(let _0x5db0bd of _0x1620ea){let _0xafb316=closing(codePointAt(_0x5db0bd,0x0));if(_0x33f51f==_0x5db0bd)return _0xafb316==_0x5db0bd?handleSame(_0x141d5c,_0x5db0bd,_0x1620ea['indexOf'](_0x5db0bd+_0x5db0bd+_0x5db0bd)>-0x1,_0x127d35):handleOpen(_0x141d5c,_0x5db0bd,_0xafb316,_0x127d35['before']||defaults['before']);if(_0x33f51f==_0xafb316&&closedBracketAt(_0x141d5c,_0x141d5c['selection']['main']['from']))return handleClose(_0x141d5c,_0x5db0bd,_0xafb316);}return null;}function closedBracketAt(_0x429f20,_0x37cf1){let _0x504935=!0x1;return _0x429f20['field'](bracketState)['between'](0x0,_0x429f20['doc']['length'],_0x22cdf7=>{_0x22cdf7==_0x37cf1&&(_0x504935=!0x0);}),_0x504935;}function nextChar(_0x2e44f1,_0x41a5be){let _0x122b53=_0x2e44f1['sliceString'](_0x41a5be,_0x41a5be+0x2);return _0x122b53['slice'](0x0,codePointSize(codePointAt(_0x122b53,0x0)));}function prevChar(_0x32d2bb,_0x306386){let _0x41fb81=_0x32d2bb['sliceString'](_0x306386-0x2,_0x306386);return codePointSize(codePointAt(_0x41fb81,0x0))==_0x41fb81['length']?_0x41fb81:_0x41fb81['slice'](0x1);}function handleOpen(_0x586226,_0x1e5c64,_0x3a8d93,_0x438f0d){let _0x2116f3=null,_0x4439c7=_0x586226['changeByRange'](_0x146b2e=>{if(!_0x146b2e['empty'])return{'changes':[{'insert':_0x1e5c64,'from':_0x146b2e['from']},{'insert':_0x3a8d93,'from':_0x146b2e['to']}],'effects':closeBracketEffect['of'](_0x146b2e['to']+_0x1e5c64['length']),'range':EditorSelection['range'](_0x146b2e['anchor']+_0x1e5c64['length'],_0x146b2e['head']+_0x1e5c64['length'])};let _0x981894=nextChar(_0x586226['doc'],_0x146b2e['head']);return!_0x981894||/\s/['test'](_0x981894)||_0x438f0d['indexOf'](_0x981894)>-0x1?{'changes':{'insert':_0x1e5c64+_0x3a8d93,'from':_0x146b2e['head']},'effects':closeBracketEffect['of'](_0x146b2e['head']+_0x1e5c64['length']),'range':EditorSelection['cursor'](_0x146b2e['head']+_0x1e5c64['length'])}:{'range':_0x2116f3=_0x146b2e};});return _0x2116f3?null:_0x586226['update'](_0x4439c7,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function handleClose(_0x5473a2,_0x68d64c,_0x17265e){let _0x456446=null,_0x567be9=_0x5473a2['changeByRange'](_0x360901=>_0x360901['empty']&&nextChar(_0x5473a2['doc'],_0x360901['head'])==_0x17265e?{'changes':{'from':_0x360901['head'],'to':_0x360901['head']+_0x17265e['length'],'insert':_0x17265e},'range':EditorSelection['cursor'](_0x360901['head']+_0x17265e['length'])}:_0x456446={'range':_0x360901});return _0x456446?null:_0x5473a2['update'](_0x567be9,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function handleSame(_0x6da77f,_0x390fe6,_0x310062,_0x29a51b){let _0x158967=_0x29a51b['stringPrefixes']||defaults['stringPrefixes'],_0x294c52=null,_0x20b978=_0x6da77f['changeByRange'](_0x4b9906=>{if(!_0x4b9906['empty'])return{'changes':[{'insert':_0x390fe6,'from':_0x4b9906['from']},{'insert':_0x390fe6,'from':_0x4b9906['to']}],'effects':closeBracketEffect['of'](_0x4b9906['to']+_0x390fe6['length']),'range':EditorSelection['range'](_0x4b9906['anchor']+_0x390fe6['length'],_0x4b9906['head']+_0x390fe6['length'])};let _0x4cdfa0,_0x18e690=_0x4b9906['head'],_0x41b6dc=nextChar(_0x6da77f['doc'],_0x18e690);if(_0x41b6dc==_0x390fe6){if(nodeStart(_0x6da77f,_0x18e690))return{'changes':{'insert':_0x390fe6+_0x390fe6,'from':_0x18e690},'effects':closeBracketEffect['of'](_0x18e690+_0x390fe6['length']),'range':EditorSelection['cursor'](_0x18e690+_0x390fe6['length'])};if(closedBracketAt(_0x6da77f,_0x18e690)){let _0x4b9ff2=_0x310062&&_0x6da77f['sliceDoc'](_0x18e690,_0x18e690+0x3*_0x390fe6['length'])==_0x390fe6+_0x390fe6+_0x390fe6?_0x390fe6+_0x390fe6+_0x390fe6:_0x390fe6;return{'changes':{'from':_0x18e690,'to':_0x18e690+_0x4b9ff2['length'],'insert':_0x4b9ff2},'range':EditorSelection['cursor'](_0x18e690+_0x4b9ff2['length'])};}}else{if(_0x310062&&_0x6da77f['sliceDoc'](_0x18e690-0x2*_0x390fe6['length'],_0x18e690)==_0x390fe6+_0x390fe6&&(_0x4cdfa0=canStartStringAt(_0x6da77f,_0x18e690-0x2*_0x390fe6['length'],_0x158967))>-0x1&&nodeStart(_0x6da77f,_0x4cdfa0))return{'changes':{'insert':_0x390fe6+_0x390fe6+_0x390fe6+_0x390fe6,'from':_0x18e690},'effects':closeBracketEffect['of'](_0x18e690+_0x390fe6['length']),'range':EditorSelection['cursor'](_0x18e690+_0x390fe6['length'])};if(_0x6da77f['charCategorizer'](_0x18e690)(_0x41b6dc)!=CharCategory['Word']&&canStartStringAt(_0x6da77f,_0x18e690,_0x158967)>-0x1&&!probablyInString(_0x6da77f,_0x18e690,_0x390fe6,_0x158967))return{'changes':{'insert':_0x390fe6+_0x390fe6,'from':_0x18e690},'effects':closeBracketEffect['of'](_0x18e690+_0x390fe6['length']),'range':EditorSelection['cursor'](_0x18e690+_0x390fe6['length'])};}return{'range':_0x294c52=_0x4b9906};});return _0x294c52?null:_0x6da77f['update'](_0x20b978,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function nodeStart(_0x9b254a,_0x2f26e1){let _0x44e6bb=syntaxTree(_0x9b254a)['resolveInner'](_0x2f26e1+0x1);return _0x44e6bb['parent']&&_0x44e6bb['from']==_0x2f26e1;}function probablyInString(_0x2b867b,_0x1fd986,_0x460a98,_0xb75599){let _0x27ef74=syntaxTree(_0x2b867b)['resolveInner'](_0x1fd986,-0x1),_0x4546e0=_0xb75599['reduce']((_0x4822e3,_0x22f6fe)=>Math['max'](_0x4822e3,_0x22f6fe['length']),0x0);for(let _0x1dcd72=0x0;_0x1dcd72<0x5;_0x1dcd72++){let _0x4b71e3=_0x2b867b['sliceDoc'](_0x27ef74['from'],Math['min'](_0x27ef74['to'],_0x27ef74['from']+_0x460a98['length']+_0x4546e0)),_0x52d42e=_0x4b71e3['indexOf'](_0x460a98);if(!_0x52d42e||_0x52d42e>-0x1&&_0xb75599['indexOf'](_0x4b71e3['slice'](0x0,_0x52d42e))>-0x1){let _0x5589f5=_0x27ef74['firstChild'];for(;_0x5589f5&&_0x5589f5['from']==_0x27ef74['from']&&_0x5589f5['to']-_0x5589f5['from']>_0x460a98['length']+_0x52d42e;){if(_0x2b867b['sliceDoc'](_0x5589f5['to']-_0x460a98['length'],_0x5589f5['to'])==_0x460a98)return!0x1;_0x5589f5=_0x5589f5['firstChild'];}return!0x0;}let _0x624701=_0x27ef74['to']==_0x1fd986&&_0x27ef74['parent'];if(!_0x624701)break;_0x27ef74=_0x624701;}return!0x1;}function canStartStringAt(_0xb1cb8b,_0x2a2e47,_0x239d2c){let _0x422564=_0xb1cb8b['charCategorizer'](_0x2a2e47);if(_0x422564(_0xb1cb8b['sliceDoc'](_0x2a2e47-0x1,_0x2a2e47))!=CharCategory['Word'])return _0x2a2e47;for(let _0x253aef of _0x239d2c){let _0x46e322=_0x2a2e47-_0x253aef['length'];if(_0xb1cb8b['sliceDoc'](_0x46e322,_0x2a2e47)==_0x253aef&&_0x422564(_0xb1cb8b['sliceDoc'](_0x46e322-0x1,_0x46e322))!=CharCategory['Word'])return _0x46e322;}return-0x1;}function autocompletion(_0x2a4cbf={}){return[commitCharacters,completionState,completionConfig['of'](_0x2a4cbf),completionPlugin,completionKeymapExt,baseTheme];}const completionKeymap=[{'key':'Ctrl-Space','run':startCompletion},{'mac':'Alt-`','run':startCompletion},{'mac':'Alt-i','run':startCompletion},{'key':'Escape','run':closeCompletion},{'key':'ArrowDown','run':moveCompletionSelection(!0x0)},{'key':'ArrowUp','run':moveCompletionSelection(!0x1)},{'key':'PageDown','run':moveCompletionSelection(!0x0,'page')},{'key':'PageUp','run':moveCompletionSelection(!0x1,'page')},{'key':'Enter','run':acceptCompletion}],completionKeymapExt=Prec['highest'](keymap['computeN']([completionConfig],_0x2ffe0f=>_0x2ffe0f['facet'](completionConfig)['defaultKeymap']?[completionKeymap]:[]));class Stack{constructor(_0x363682,_0x2ca809,_0x8efac3,_0x29fd51,_0x14e246,_0x71f1d7,_0x563c23,_0x297b14,_0x5c91de,_0x5be530=0x0,_0x43eefa){this['p']=_0x363682,this['stack']=_0x2ca809,this['state']=_0x8efac3,this['reducePos']=_0x29fd51,this['pos']=_0x14e246,this['score']=_0x71f1d7,this['buffer']=_0x563c23,this['bufferBase']=_0x297b14,this['curContext']=_0x5c91de,this['lookAhead']=_0x5be530,this['parent']=_0x43eefa;}['toString'](){return'['+this['stack']['filter']((_0x3e94a7,_0x53ddaa)=>_0x53ddaa%0x3==0x0)['concat'](this['state'])+']@'+this['pos']+(this['score']?'!'+this['score']:'');}static['start'](_0x59817a,_0x387a3b,_0x4c2018=0x0){let _0x17b5bf=_0x59817a['parser']['context'];return new Stack(_0x59817a,[],_0x387a3b,_0x4c2018,_0x4c2018,0x0,[],0x0,_0x17b5bf?new StackContext(_0x17b5bf,_0x17b5bf['start']):null,0x0,null);}get['context'](){return this['curContext']?this['curContext']['context']:null;}['pushState'](_0x204b2c,_0x41ddd9){this['stack']['push'](this['state'],_0x41ddd9,this['bufferBase']+this['buffer']['length']),this['state']=_0x204b2c;}['reduce'](_0x215c76){var _0x43540e;let _0xb4c626=_0x215c76>>0x13,_0x544b4e=0xffff&_0x215c76,{parser:_0x2a8c6f}=this['p'],_0x2d6600=this['reducePos']<this['pos']-0x19;_0x2d6600&&this['setLookAhead'](this['pos']);let _0x5bfe35=_0x2a8c6f['dynamicPrecedence'](_0x544b4e);if(_0x5bfe35&&(this['score']+=_0x5bfe35),0x0==_0xb4c626)return this['pushState'](_0x2a8c6f['getGoto'](this['state'],_0x544b4e,!0x0),this['reducePos']),_0x544b4e<_0x2a8c6f['minRepeatTerm']&&this['storeNode'](_0x544b4e,this['reducePos'],this['reducePos'],_0x2d6600?0x8:0x4,!0x0),void this['reduceContext'](_0x544b4e,this['reducePos']);let _0x4b6e63=this['stack']['length']-0x3*(_0xb4c626-0x1)-(0x40000&_0x215c76?0x6:0x0),_0x2b175e=_0x4b6e63?this['stack'][_0x4b6e63-0x2]:this['p']['ranges'][0x0]['from'],_0x2e7485=this['reducePos']-_0x2b175e;_0x2e7485>=0x7d0&&!(null===(_0x43540e=this['p']['parser']['nodeSet']['types'][_0x544b4e])||void 0x0===_0x43540e?void 0x0:_0x43540e['isAnonymous'])&&(_0x2b175e==this['p']['lastBigReductionStart']?(this['p']['bigReductionCount']++,this['p']['lastBigReductionSize']=_0x2e7485):this['p']['lastBigReductionSize']<_0x2e7485&&(this['p']['bigReductionCount']=0x1,this['p']['lastBigReductionStart']=_0x2b175e,this['p']['lastBigReductionSize']=_0x2e7485));let _0x269fd8=_0x4b6e63?this['stack'][_0x4b6e63-0x1]:0x0,_0x13f300=this['bufferBase']+this['buffer']['length']-_0x269fd8;if(_0x544b4e<_0x2a8c6f['minRepeatTerm']||0x20000&_0x215c76){let _0xbf4b40=_0x2a8c6f['stateFlag'](this['state'],0x1)?this['pos']:this['reducePos'];this['storeNode'](_0x544b4e,_0x2b175e,_0xbf4b40,_0x13f300+0x4,!0x0);}if(0x40000&_0x215c76)this['state']=this['stack'][_0x4b6e63];else{let _0x54a1f1=this['stack'][_0x4b6e63-0x3];this['state']=_0x2a8c6f['getGoto'](_0x54a1f1,_0x544b4e,!0x0);}for(;this['stack']['length']>_0x4b6e63;)this['stack']['pop']();this['reduceContext'](_0x544b4e,_0x2b175e);}['storeNode'](_0x321c94,_0x58d108,_0x58f973,_0xa36437=0x4,_0x48866a=!0x1){if(0x0==_0x321c94&&(!this['stack']['length']||this['stack'][this['stack']['length']-0x1]<this['buffer']['length']+this['bufferBase'])){let _0x48e65c=this,_0x54873c=this['buffer']['length'];if(0x0==_0x54873c&&_0x48e65c['parent']&&(_0x54873c=_0x48e65c['bufferBase']-_0x48e65c['parent']['bufferBase'],_0x48e65c=_0x48e65c['parent']),_0x54873c>0x0&&0x0==_0x48e65c['buffer'][_0x54873c-0x4]&&_0x48e65c['buffer'][_0x54873c-0x1]>-0x1){if(_0x58d108==_0x58f973)return;if(_0x48e65c['buffer'][_0x54873c-0x2]>=_0x58d108)return void(_0x48e65c['buffer'][_0x54873c-0x2]=_0x58f973);}}if(_0x48866a&&this['pos']!=_0x58f973){let _0x4ddb25=this['buffer']['length'];if(_0x4ddb25>0x0&&0x0!=this['buffer'][_0x4ddb25-0x4]){let _0x202de1=!0x1;for(let _0x1aeeb1=_0x4ddb25;_0x1aeeb1>0x0&&this['buffer'][_0x1aeeb1-0x2]>_0x58f973;_0x1aeeb1-=0x4)if(this['buffer'][_0x1aeeb1-0x1]>=0x0){_0x202de1=!0x0;break;}if(_0x202de1){for(;_0x4ddb25>0x0&&this['buffer'][_0x4ddb25-0x2]>_0x58f973;)this['buffer'][_0x4ddb25]=this['buffer'][_0x4ddb25-0x4],this['buffer'][_0x4ddb25+0x1]=this['buffer'][_0x4ddb25-0x3],this['buffer'][_0x4ddb25+0x2]=this['buffer'][_0x4ddb25-0x2],this['buffer'][_0x4ddb25+0x3]=this['buffer'][_0x4ddb25-0x1],_0x4ddb25-=0x4,_0xa36437>0x4&&(_0xa36437-=0x4);}}this['buffer'][_0x4ddb25]=_0x321c94,this['buffer'][_0x4ddb25+0x1]=_0x58d108,this['buffer'][_0x4ddb25+0x2]=_0x58f973,this['buffer'][_0x4ddb25+0x3]=_0xa36437;}else this['buffer']['push'](_0x321c94,_0x58d108,_0x58f973,_0xa36437);}['shift'](_0x14512d,_0x52b268,_0x1ce7da,_0x35b3b3){if(0x20000&_0x14512d)this['pushState'](0xffff&_0x14512d,this['pos']);else{if(0x40000&_0x14512d)this['pos']=_0x35b3b3,this['shiftContext'](_0x52b268,_0x1ce7da),_0x52b268<=this['p']['parser']['maxNode']&&this['buffer']['push'](_0x52b268,_0x1ce7da,_0x35b3b3,0x4);else{let _0x1af40f=_0x14512d,{parser:_0x48be51}=this['p'];(_0x35b3b3>this['pos']||_0x52b268<=_0x48be51['maxNode'])&&(this['pos']=_0x35b3b3,_0x48be51['stateFlag'](_0x1af40f,0x1)||(this['reducePos']=_0x35b3b3)),this['pushState'](_0x1af40f,_0x1ce7da),this['shiftContext'](_0x52b268,_0x1ce7da),_0x52b268<=_0x48be51['maxNode']&&this['buffer']['push'](_0x52b268,_0x1ce7da,_0x35b3b3,0x4);}}}['apply'](_0x2e013b,_0x256c44,_0x4be9ef,_0x1fe695){0x10000&_0x2e013b?this['reduce'](_0x2e013b):this['shift'](_0x2e013b,_0x256c44,_0x4be9ef,_0x1fe695);}['useNode'](_0x5e9968,_0xd6d8ad){let _0x4a7fdc=this['p']['reused']['length']-0x1;(_0x4a7fdc<0x0||this['p']['reused'][_0x4a7fdc]!=_0x5e9968)&&(this['p']['reused']['push'](_0x5e9968),_0x4a7fdc++);let _0x27127a=this['pos'];this['reducePos']=this['pos']=_0x27127a+_0x5e9968['length'],this['pushState'](_0xd6d8ad,_0x27127a),this['buffer']['push'](_0x4a7fdc,_0x27127a,this['reducePos'],-0x1),this['curContext']&&this['updateContext'](this['curContext']['tracker']['reuse'](this['curContext']['context'],_0x5e9968,this,this['p']['stream']['reset'](this['pos']-_0x5e9968['length'])));}['split'](){let _0x2f5a82=this,_0x5bb806=_0x2f5a82['buffer']['length'];for(;_0x5bb806>0x0&&_0x2f5a82['buffer'][_0x5bb806-0x2]>_0x2f5a82['reducePos'];)_0x5bb806-=0x4;let _0x51f910=_0x2f5a82['buffer']['slice'](_0x5bb806),_0x412469=_0x2f5a82['bufferBase']+_0x5bb806;for(;_0x2f5a82&&_0x412469==_0x2f5a82['bufferBase'];)_0x2f5a82=_0x2f5a82['parent'];return new Stack(this['p'],this['stack']['slice'](),this['state'],this['reducePos'],this['pos'],this['score'],_0x51f910,_0x412469,this['curContext'],this['lookAhead'],_0x2f5a82);}['recoverByDelete'](_0x28331e,_0x35a7b6){let _0x575511=_0x28331e<=this['p']['parser']['maxNode'];_0x575511&&this['storeNode'](_0x28331e,this['pos'],_0x35a7b6,0x4),this['storeNode'](0x0,this['pos'],_0x35a7b6,_0x575511?0x8:0x4),this['pos']=this['reducePos']=_0x35a7b6,this['score']-=0xbe;}['canShift'](_0x574579){for(let _0x2c3a2e=new SimulatedStack(this);;){let _0x1800cf=this['p']['parser']['stateSlot'](_0x2c3a2e['state'],0x4)||this['p']['parser']['hasAction'](_0x2c3a2e['state'],_0x574579);if(0x0==_0x1800cf)return!0x1;if(!(0x10000&_0x1800cf))return!0x0;_0x2c3a2e['reduce'](_0x1800cf);}}['recoverByInsert'](_0xadf8fb){if(this['stack']['length']>=0x12c)return[];let _0x5c0177=this['p']['parser']['nextStates'](this['state']);if(_0x5c0177['length']>0x8||this['stack']['length']>=0x78){let _0x22daf5=[];for(let _0x50bcbc,_0x374c81=0x0;_0x374c81<_0x5c0177['length'];_0x374c81+=0x2)(_0x50bcbc=_0x5c0177[_0x374c81+0x1])!=this['state']&&this['p']['parser']['hasAction'](_0x50bcbc,_0xadf8fb)&&_0x22daf5['push'](_0x5c0177[_0x374c81],_0x50bcbc);if(this['stack']['length']<0x78)for(let _0x21312d=0x0;_0x22daf5['length']<0x8&&_0x21312d<_0x5c0177['length'];_0x21312d+=0x2){let _0x38a63c=_0x5c0177[_0x21312d+0x1];_0x22daf5['some']((_0x315c4f,_0x3b768a)=>0x1&_0x3b768a&&_0x315c4f==_0x38a63c)||_0x22daf5['push'](_0x5c0177[_0x21312d],_0x38a63c);}_0x5c0177=_0x22daf5;}let _0x34cfa7=[];for(let _0x516abd=0x0;_0x516abd<_0x5c0177['length']&&_0x34cfa7['length']<0x4;_0x516abd+=0x2){let _0x1353c1=_0x5c0177[_0x516abd+0x1];if(_0x1353c1==this['state'])continue;let _0x485442=this['split']();_0x485442['pushState'](_0x1353c1,this['pos']),_0x485442['storeNode'](0x0,_0x485442['pos'],_0x485442['pos'],0x4,!0x0),_0x485442['shiftContext'](_0x5c0177[_0x516abd],this['pos']),_0x485442['reducePos']=this['pos'],_0x485442['score']-=0xc8,_0x34cfa7['push'](_0x485442);}return _0x34cfa7;}['forceReduce'](){let {parser:_0x3b13cc}=this['p'],_0xe9fcf9=_0x3b13cc['stateSlot'](this['state'],0x5);if(!(0x10000&_0xe9fcf9))return!0x1;if(!_0x3b13cc['validAction'](this['state'],_0xe9fcf9)){let _0x27069e=_0xe9fcf9>>0x13,_0x1faf34=0xffff&_0xe9fcf9,_0xae8cbf=this['stack']['length']-0x3*_0x27069e;if(_0xae8cbf<0x0||_0x3b13cc['getGoto'](this['stack'][_0xae8cbf],_0x1faf34,!0x1)<0x0){let _0x16aa56=this['findForcedReduction']();if(null==_0x16aa56)return!0x1;_0xe9fcf9=_0x16aa56;}this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0),this['score']-=0x64;}return this['reducePos']=this['pos'],this['reduce'](_0xe9fcf9),!0x0;}['findForcedReduction'](){let {parser:_0x5042ee}=this['p'],_0x49f50f=[],_0x592b80=(_0x1d6d3a,_0x348422)=>{if(!_0x49f50f['includes'](_0x1d6d3a))return _0x49f50f['push'](_0x1d6d3a),_0x5042ee['allActions'](_0x1d6d3a,_0x41f789=>{if(0x60000&_0x41f789);else{if(0x10000&_0x41f789){let _0xd365=(_0x41f789>>0x13)-_0x348422;if(_0xd365>0x1){let _0x178de1=0xffff&_0x41f789,_0x11ea79=this['stack']['length']-0x3*_0xd365;if(_0x11ea79>=0x0&&_0x5042ee['getGoto'](this['stack'][_0x11ea79],_0x178de1,!0x1)>=0x0)return _0xd365<<0x13|0x10000|_0x178de1;}}else{let _0x34557d=_0x592b80(_0x41f789,_0x348422+0x1);if(null!=_0x34557d)return _0x34557d;}}});};return _0x592b80(this['state'],0x0);}['forceAll'](){for(;!this['p']['parser']['stateFlag'](this['state'],0x2);)if(!this['forceReduce']()){this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0);break;}return this;}get['deadEnd'](){if(0x3!=this['stack']['length'])return!0x1;let {parser:_0x32aef9}=this['p'];return 0xffff==_0x32aef9['data'][_0x32aef9['stateSlot'](this['state'],0x1)]&&!_0x32aef9['stateSlot'](this['state'],0x4);}['restart'](){this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0),this['state']=this['stack'][0x0],this['stack']['length']=0x0;}['sameState'](_0x9ef121){if(this['state']!=_0x9ef121['state']||this['stack']['length']!=_0x9ef121['stack']['length'])return!0x1;for(let _0x12b541=0x0;_0x12b541<this['stack']['length'];_0x12b541+=0x3)if(this['stack'][_0x12b541]!=_0x9ef121['stack'][_0x12b541])return!0x1;return!0x0;}get['parser'](){return this['p']['parser'];}['dialectEnabled'](_0x2754d5){return this['p']['parser']['dialect']['flags'][_0x2754d5];}['shiftContext'](_0x5aa0b1,_0x2c1127){this['curContext']&&this['updateContext'](this['curContext']['tracker']['shift'](this['curContext']['context'],_0x5aa0b1,this,this['p']['stream']['reset'](_0x2c1127)));}['reduceContext'](_0x58b952,_0xa83bc){this['curContext']&&this['updateContext'](this['curContext']['tracker']['reduce'](this['curContext']['context'],_0x58b952,this,this['p']['stream']['reset'](_0xa83bc)));}['emitContext'](){let _0x349a9e=this['buffer']['length']-0x1;(_0x349a9e<0x0||-0x3!=this['buffer'][_0x349a9e])&&this['buffer']['push'](this['curContext']['hash'],this['pos'],this['pos'],-0x3);}['emitLookAhead'](){let _0x1bf463=this['buffer']['length']-0x1;(_0x1bf463<0x0||-0x4!=this['buffer'][_0x1bf463])&&this['buffer']['push'](this['lookAhead'],this['pos'],this['pos'],-0x4);}['updateContext'](_0x568ebb){if(_0x568ebb!=this['curContext']['context']){let _0x981390=new StackContext(this['curContext']['tracker'],_0x568ebb);_0x981390['hash']!=this['curContext']['hash']&&this['emitContext'](),this['curContext']=_0x981390;}}['setLookAhead'](_0x191d54){_0x191d54>this['lookAhead']&&(this['emitLookAhead'](),this['lookAhead']=_0x191d54);}['close'](){this['curContext']&&this['curContext']['tracker']['strict']&&this['emitContext'](),this['lookAhead']>0x0&&this['emitLookAhead']();}}class StackContext{constructor(_0x3edf02,_0x2e5552){this['tracker']=_0x3edf02,this['context']=_0x2e5552,this['hash']=_0x3edf02['strict']?_0x3edf02['hash'](_0x2e5552):0x0;}}class SimulatedStack{constructor(_0x16b086){this['start']=_0x16b086,this['state']=_0x16b086['state'],this['stack']=_0x16b086['stack'],this['base']=this['stack']['length'];}['reduce'](_0x158cc6){let _0x1f3877=0xffff&_0x158cc6,_0x137dd2=_0x158cc6>>0x13;0x0==_0x137dd2?(this['stack']==this['start']['stack']&&(this['stack']=this['stack']['slice']()),this['stack']['push'](this['state'],0x0,0x0),this['base']+=0x3):this['base']-=0x3*(_0x137dd2-0x1);let _0x2570ca=this['start']['p']['parser']['getGoto'](this['stack'][this['base']-0x3],_0x1f3877,!0x0);this['state']=_0x2570ca;}}class StackBufferCursor{constructor(_0x1b2cf1,_0x5630d1,_0x203a73){this['stack']=_0x1b2cf1,this['pos']=_0x5630d1,this['index']=_0x203a73,this['buffer']=_0x1b2cf1['buffer'],0x0==this['index']&&this['maybeNext']();}static['create'](_0x106271,_0x44580a=_0x106271['bufferBase']+_0x106271['buffer']['length']){return new StackBufferCursor(_0x106271,_0x44580a,_0x44580a-_0x106271['bufferBase']);}['maybeNext'](){let _0x4a633b=this['stack']['parent'];null!=_0x4a633b&&(this['index']=this['stack']['bufferBase']-_0x4a633b['bufferBase'],this['stack']=_0x4a633b,this['buffer']=_0x4a633b['buffer']);}get['id'](){return this['buffer'][this['index']-0x4];}get['start'](){return this['buffer'][this['index']-0x3];}get['end'](){return this['buffer'][this['index']-0x2];}get['size'](){return this['buffer'][this['index']-0x1];}['next'](){this['index']-=0x4,this['pos']-=0x4,0x0==this['index']&&this['maybeNext']();}['fork'](){return new StackBufferCursor(this['stack'],this['pos'],this['index']);}}function decodeArray(_0x2e429d,_0x378b1f=Uint16Array){if('string'!=typeof _0x2e429d)return _0x2e429d;let _0x33dd70=null;for(let _0x606e64=0x0,_0xf74a74=0x0;_0x606e64<_0x2e429d['length'];){let _0x3460cf=0x0;for(;;){let _0xc0bee1=_0x2e429d['charCodeAt'](_0x606e64++),_0x3c2e78=!0x1;if(0x7e==_0xc0bee1){_0x3460cf=0xffff;break;}_0xc0bee1>=0x5c&&_0xc0bee1--,_0xc0bee1>=0x22&&_0xc0bee1--;let _0x2e7238=_0xc0bee1-0x20;if(_0x2e7238>=0x2e&&(_0x2e7238-=0x2e,_0x3c2e78=!0x0),_0x3460cf+=_0x2e7238,_0x3c2e78)break;_0x3460cf*=0x2e;}_0x33dd70?_0x33dd70[_0xf74a74++]=_0x3460cf:_0x33dd70=new _0x378b1f(_0x3460cf);}return _0x33dd70;}class CachedToken{constructor(){this['start']=-0x1,this['value']=-0x1,this['end']=-0x1,this['extended']=-0x1,this['lookAhead']=0x0,this['mask']=0x0,this['context']=0x0;}}const nullToken=new CachedToken();class InputStream{constructor(_0x2ca11f,_0x593731){this['input']=_0x2ca11f,this['ranges']=_0x593731,this['chunk']='',this['chunkOff']=0x0,this['chunk2']='',this['chunk2Pos']=0x0,this['next']=-0x1,this['token']=nullToken,this['rangeIndex']=0x0,this['pos']=this['chunkPos']=_0x593731[0x0]['from'],this['range']=_0x593731[0x0],this['end']=_0x593731[_0x593731['length']-0x1]['to'],this['readNext']();}['resolveOffset'](_0x4d3d6d,_0x38b96c){let _0x211168=this['range'],_0x352451=this['rangeIndex'],_0x24de21=this['pos']+_0x4d3d6d;for(;_0x24de21<_0x211168['from'];){if(!_0x352451)return null;let _0x48adca=this['ranges'][--_0x352451];_0x24de21-=_0x211168['from']-_0x48adca['to'],_0x211168=_0x48adca;}for(;_0x38b96c<0x0?_0x24de21>_0x211168['to']:_0x24de21>=_0x211168['to'];){if(_0x352451==this['ranges']['length']-0x1)return null;let _0x5c0865=this['ranges'][++_0x352451];_0x24de21+=_0x5c0865['from']-_0x211168['to'],_0x211168=_0x5c0865;}return _0x24de21;}['clipPos'](_0x6d15a8){if(_0x6d15a8>=this['range']['from']&&_0x6d15a8<this['range']['to'])return _0x6d15a8;for(let _0xd11d1d of this['ranges'])if(_0xd11d1d['to']>_0x6d15a8)return Math['max'](_0x6d15a8,_0xd11d1d['from']);return this['end'];}['peek'](_0x1f0ea3){let _0x1cb45e,_0x4ca52b,_0x20da84=this['chunkOff']+_0x1f0ea3;if(_0x20da84>=0x0&&_0x20da84<this['chunk']['length'])_0x1cb45e=this['pos']+_0x1f0ea3,_0x4ca52b=this['chunk']['charCodeAt'](_0x20da84);else{let _0x51a59e=this['resolveOffset'](_0x1f0ea3,0x1);if(null==_0x51a59e)return-0x1;if(_0x1cb45e=_0x51a59e,_0x1cb45e>=this['chunk2Pos']&&_0x1cb45e<this['chunk2Pos']+this['chunk2']['length'])_0x4ca52b=this['chunk2']['charCodeAt'](_0x1cb45e-this['chunk2Pos']);else{let _0x236e67=this['rangeIndex'],_0x5d3ff0=this['range'];for(;_0x5d3ff0['to']<=_0x1cb45e;)_0x5d3ff0=this['ranges'][++_0x236e67];this['chunk2']=this['input']['chunk'](this['chunk2Pos']=_0x1cb45e),_0x1cb45e+this['chunk2']['length']>_0x5d3ff0['to']&&(this['chunk2']=this['chunk2']['slice'](0x0,_0x5d3ff0['to']-_0x1cb45e)),_0x4ca52b=this['chunk2']['charCodeAt'](0x0);}}return _0x1cb45e>=this['token']['lookAhead']&&(this['token']['lookAhead']=_0x1cb45e+0x1),_0x4ca52b;}['acceptToken'](_0x426f9f,_0x58c301=0x0){let _0x35ebdd=_0x58c301?this['resolveOffset'](_0x58c301,-0x1):this['pos'];if(null==_0x35ebdd||_0x35ebdd<this['token']['start'])throw new RangeError('Token\x20end\x20out\x20of\x20bounds');this['token']['value']=_0x426f9f,this['token']['end']=_0x35ebdd;}['acceptTokenTo'](_0x450a58,_0x364599){this['token']['value']=_0x450a58,this['token']['end']=_0x364599;}['getChunk'](){if(this['pos']>=this['chunk2Pos']&&this['pos']<this['chunk2Pos']+this['chunk2']['length']){let {chunk:_0x17c9fb,chunkPos:_0x1811cb}=this;this['chunk']=this['chunk2'],this['chunkPos']=this['chunk2Pos'],this['chunk2']=_0x17c9fb,this['chunk2Pos']=_0x1811cb,this['chunkOff']=this['pos']-this['chunkPos'];}else{this['chunk2']=this['chunk'],this['chunk2Pos']=this['chunkPos'];let _0x278149=this['input']['chunk'](this['pos']),_0x1b031c=this['pos']+_0x278149['length'];this['chunk']=_0x1b031c>this['range']['to']?_0x278149['slice'](0x0,this['range']['to']-this['pos']):_0x278149,this['chunkPos']=this['pos'],this['chunkOff']=0x0;}}['readNext'](){return this['chunkOff']>=this['chunk']['length']&&(this['getChunk'](),this['chunkOff']==this['chunk']['length'])?this['next']=-0x1:this['next']=this['chunk']['charCodeAt'](this['chunkOff']);}['advance'](_0x58f0f8=0x1){for(this['chunkOff']+=_0x58f0f8;this['pos']+_0x58f0f8>=this['range']['to'];){if(this['rangeIndex']==this['ranges']['length']-0x1)return this['setDone']();_0x58f0f8-=this['range']['to']-this['pos'],this['range']=this['ranges'][++this['rangeIndex']],this['pos']=this['range']['from'];}return this['pos']+=_0x58f0f8,this['pos']>=this['token']['lookAhead']&&(this['token']['lookAhead']=this['pos']+0x1),this['readNext']();}['setDone'](){return this['pos']=this['chunkPos']=this['end'],this['range']=this['ranges'][this['rangeIndex']=this['ranges']['length']-0x1],this['chunk']='',this['next']=-0x1;}['reset'](_0x2682f6,_0x4f95ec){if(_0x4f95ec?(this['token']=_0x4f95ec,_0x4f95ec['start']=_0x2682f6,_0x4f95ec['lookAhead']=_0x2682f6+0x1,_0x4f95ec['value']=_0x4f95ec['extended']=-0x1):this['token']=nullToken,this['pos']!=_0x2682f6){if(this['pos']=_0x2682f6,_0x2682f6==this['end'])return this['setDone'](),this;for(;_0x2682f6<this['range']['from'];)this['range']=this['ranges'][--this['rangeIndex']];for(;_0x2682f6>=this['range']['to'];)this['range']=this['ranges'][++this['rangeIndex']];_0x2682f6>=this['chunkPos']&&_0x2682f6<this['chunkPos']+this['chunk']['length']?this['chunkOff']=_0x2682f6-this['chunkPos']:(this['chunk']='',this['chunkOff']=0x0),this['readNext']();}return this;}['read'](_0x1e233c,_0x9e0b47){if(_0x1e233c>=this['chunkPos']&&_0x9e0b47<=this['chunkPos']+this['chunk']['length'])return this['chunk']['slice'](_0x1e233c-this['chunkPos'],_0x9e0b47-this['chunkPos']);if(_0x1e233c>=this['chunk2Pos']&&_0x9e0b47<=this['chunk2Pos']+this['chunk2']['length'])return this['chunk2']['slice'](_0x1e233c-this['chunk2Pos'],_0x9e0b47-this['chunk2Pos']);if(_0x1e233c>=this['range']['from']&&_0x9e0b47<=this['range']['to'])return this['input']['read'](_0x1e233c,_0x9e0b47);let _0x69ce72='';for(let _0x47c582 of this['ranges']){if(_0x47c582['from']>=_0x9e0b47)break;_0x47c582['to']>_0x1e233c&&(_0x69ce72+=this['input']['read'](Math['max'](_0x47c582['from'],_0x1e233c),Math['min'](_0x47c582['to'],_0x9e0b47)));}return _0x69ce72;}}class TokenGroup{constructor(_0x31bc8c,_0x11a0f5){this['data']=_0x31bc8c,this['id']=_0x11a0f5;}['token'](_0x3e815b,_0x42639c){let {parser:_0x105ab5}=_0x42639c['p'];readToken(this['data'],_0x3e815b,_0x42639c,this['id'],_0x105ab5['data'],_0x105ab5['tokenPrecTable']);}}TokenGroup['prototype']['contextual']=TokenGroup['prototype']['fallback']=TokenGroup['prototype']['extend']=!0x1;class LocalTokenGroup{constructor(_0x22ed2d,_0xc16df7,_0x21866e){this['precTable']=_0xc16df7,this['elseToken']=_0x21866e,this['data']='string'==typeof _0x22ed2d?decodeArray(_0x22ed2d):_0x22ed2d;}['token'](_0x43e693,_0x33edee){let _0x11cc98=_0x43e693['pos'],_0x40ab92=0x0;for(;;){let _0x4d7992=_0x43e693['next']<0x0,_0x8c5efb=_0x43e693['resolveOffset'](0x1,0x1);if(readToken(this['data'],_0x43e693,_0x33edee,0x0,this['data'],this['precTable']),_0x43e693['token']['value']>-0x1)break;if(null==this['elseToken'])return;if(_0x4d7992||_0x40ab92++,null==_0x8c5efb)break;_0x43e693['reset'](_0x8c5efb,_0x43e693['token']);}_0x40ab92&&(_0x43e693['reset'](_0x11cc98,_0x43e693['token']),_0x43e693['acceptToken'](this['elseToken'],_0x40ab92));}}LocalTokenGroup['prototype']['contextual']=TokenGroup['prototype']['fallback']=TokenGroup['prototype']['extend']=!0x1;class ExternalTokenizer{constructor(_0x353eb0,_0x16ebe6={}){this['token']=_0x353eb0,this['contextual']=!!_0x16ebe6['contextual'],this['fallback']=!!_0x16ebe6['fallback'],this['extend']=!!_0x16ebe6['extend'];}}function readToken(_0x4ab213,_0x5b3cdc,_0x5ecee8,_0x3d4ff8,_0x5c39c6,_0x31fb50){let _0x326702=0x0,_0x16b354=0x1<<_0x3d4ff8,{dialect:_0x18851a}=_0x5ecee8['p']['parser'];t:for(;0x0!=(_0x16b354&_0x4ab213[_0x326702]);){let _0x30357c=_0x4ab213[_0x326702+0x1];for(let _0xb30df2=_0x326702+0x3;_0xb30df2<_0x30357c;_0xb30df2+=0x2)if((_0x4ab213[_0xb30df2+0x1]&_0x16b354)>0x0){let _0x2253b6=_0x4ab213[_0xb30df2];if(_0x18851a['allows'](_0x2253b6)&&(-0x1==_0x5b3cdc['token']['value']||_0x5b3cdc['token']['value']==_0x2253b6||overrides(_0x2253b6,_0x5b3cdc['token']['value'],_0x5c39c6,_0x31fb50))){_0x5b3cdc['acceptToken'](_0x2253b6);break;}}let _0x19e6b8=_0x5b3cdc['next'],_0x22c1f7=0x0,_0x7a6c06=_0x4ab213[_0x326702+0x2];if(!(_0x5b3cdc['next']<0x0&&_0x7a6c06>_0x22c1f7&&0xffff==_0x4ab213[_0x30357c+0x3*_0x7a6c06-0x3])){for(;_0x22c1f7<_0x7a6c06;){let _0x47498e=_0x22c1f7+_0x7a6c06>>0x1,_0x2fb709=_0x30357c+_0x47498e+(_0x47498e<<0x1),_0x20cfa4=_0x4ab213[_0x2fb709],_0x3273b7=_0x4ab213[_0x2fb709+0x1]||0x10000;if(_0x19e6b8<_0x20cfa4)_0x7a6c06=_0x47498e;else{if(!(_0x19e6b8>=_0x3273b7)){_0x326702=_0x4ab213[_0x2fb709+0x2],_0x5b3cdc['advance']();continue t;}_0x22c1f7=_0x47498e+0x1;}}break;}_0x326702=_0x4ab213[_0x30357c+0x3*_0x7a6c06-0x1];}}function findOffset(_0x378017,_0x31bba2,_0x379c05){for(let _0x2744d6,_0x436aa1=_0x31bba2;0xffff!=(_0x2744d6=_0x378017[_0x436aa1]);_0x436aa1++)if(_0x2744d6==_0x379c05)return _0x436aa1-_0x31bba2;return-0x1;}function overrides(_0x598c73,_0x3164b0,_0x4b1705,_0x302e62){let _0x21bf82=findOffset(_0x4b1705,_0x302e62,_0x3164b0);return _0x21bf82<0x0||findOffset(_0x4b1705,_0x302e62,_0x598c73)<_0x21bf82;}const verbose='undefined'!=typeof process&&process['env']&&/\bparse\b/['test'](process['env']['LOG']);let stackIDs=null;function cutAt(_0x4aacaa,_0x2bb418,_0x372411){let _0x24eb56=_0x4aacaa['cursor'](IterMode['IncludeAnonymous']);for(_0x24eb56['moveTo'](_0x2bb418);;)if(!(_0x372411<0x0?_0x24eb56['childBefore'](_0x2bb418):_0x24eb56['childAfter'](_0x2bb418)))for(;;){if((_0x372411<0x0?_0x24eb56['to']<_0x2bb418:_0x24eb56['from']>_0x2bb418)&&!_0x24eb56['type']['isError'])return _0x372411<0x0?Math['max'](0x0,Math['min'](_0x24eb56['to']-0x1,_0x2bb418-0x19)):Math['min'](_0x4aacaa['length'],Math['max'](_0x24eb56['from']+0x1,_0x2bb418+0x19));if(_0x372411<0x0?_0x24eb56['prevSibling']():_0x24eb56['nextSibling']())break;if(!_0x24eb56['parent']())return _0x372411<0x0?0x0:_0x4aacaa['length'];}}let FragmentCursor$1=class{constructor(_0x206db1,_0x1f0ad4){this['fragments']=_0x206db1,this['nodeSet']=_0x1f0ad4,this['i']=0x0,this['fragment']=null,this['safeFrom']=-0x1,this['safeTo']=-0x1,this['trees']=[],this['start']=[],this['index']=[],this['nextFragment']();}['nextFragment'](){let _0x43ab82=this['fragment']=this['i']==this['fragments']['length']?null:this['fragments'][this['i']++];if(_0x43ab82){for(this['safeFrom']=_0x43ab82['openStart']?cutAt(_0x43ab82['tree'],_0x43ab82['from']+_0x43ab82['offset'],0x1)-_0x43ab82['offset']:_0x43ab82['from'],this['safeTo']=_0x43ab82['openEnd']?cutAt(_0x43ab82['tree'],_0x43ab82['to']+_0x43ab82['offset'],-0x1)-_0x43ab82['offset']:_0x43ab82['to'];this['trees']['length'];)this['trees']['pop'](),this['start']['pop'](),this['index']['pop']();this['trees']['push'](_0x43ab82['tree']),this['start']['push'](-_0x43ab82['offset']),this['index']['push'](0x0),this['nextStart']=this['safeFrom'];}else this['nextStart']=0x3b9aca00;}['nodeAt'](_0xb336a3){if(_0xb336a3<this['nextStart'])return null;for(;this['fragment']&&this['safeTo']<=_0xb336a3;)this['nextFragment']();if(!this['fragment'])return null;for(;;){let _0x3c8262=this['trees']['length']-0x1;if(_0x3c8262<0x0)return this['nextFragment'](),null;let _0x185d0f=this['trees'][_0x3c8262],_0x1771d5=this['index'][_0x3c8262];if(_0x1771d5==_0x185d0f['children']['length']){this['trees']['pop'](),this['start']['pop'](),this['index']['pop']();continue;}let _0x5db48e=_0x185d0f['children'][_0x1771d5],_0x33d9bb=this['start'][_0x3c8262]+_0x185d0f['positions'][_0x1771d5];if(_0x33d9bb>_0xb336a3)return this['nextStart']=_0x33d9bb,null;if(_0x5db48e instanceof Tree){if(_0x33d9bb==_0xb336a3){if(_0x33d9bb<this['safeFrom'])return null;let _0x3f20ad=_0x33d9bb+_0x5db48e['length'];if(_0x3f20ad<=this['safeTo']){let _0x7c9493=_0x5db48e['prop'](NodeProp['lookAhead']);if(!_0x7c9493||_0x3f20ad+_0x7c9493<this['fragment']['to'])return _0x5db48e;}}this['index'][_0x3c8262]++,_0x33d9bb+_0x5db48e['length']>=Math['max'](this['safeFrom'],_0xb336a3)&&(this['trees']['push'](_0x5db48e),this['start']['push'](_0x33d9bb),this['index']['push'](0x0));}else this['index'][_0x3c8262]++,this['nextStart']=_0x33d9bb+_0x5db48e['length'];}}};class TokenCache{constructor(_0x4315c3,_0x38a318){this['stream']=_0x38a318,this['tokens']=[],this['mainToken']=null,this['actions']=[],this['tokens']=_0x4315c3['tokenizers']['map'](_0x4f6c8f=>new CachedToken());}['getActions'](_0x13da27){let _0x11d73e=0x0,_0x50a90d=null,{parser:_0x2d7ef5}=_0x13da27['p'],{tokenizers:_0x1af72b}=_0x2d7ef5,_0x2a042c=_0x2d7ef5['stateSlot'](_0x13da27['state'],0x3),_0x40bfd8=_0x13da27['curContext']?_0x13da27['curContext']['hash']:0x0,_0x376f37=0x0;for(let _0x486e2d=0x0;_0x486e2d<_0x1af72b['length'];_0x486e2d++){if(!(0x1<<_0x486e2d&_0x2a042c))continue;let _0xfd19c6=_0x1af72b[_0x486e2d],_0x40fcc3=this['tokens'][_0x486e2d];if((!_0x50a90d||_0xfd19c6['fallback'])&&((_0xfd19c6['contextual']||_0x40fcc3['start']!=_0x13da27['pos']||_0x40fcc3['mask']!=_0x2a042c||_0x40fcc3['context']!=_0x40bfd8)&&(this['updateCachedToken'](_0x40fcc3,_0xfd19c6,_0x13da27),_0x40fcc3['mask']=_0x2a042c,_0x40fcc3['context']=_0x40bfd8),_0x40fcc3['lookAhead']>_0x40fcc3['end']+0x19&&(_0x376f37=Math['max'](_0x40fcc3['lookAhead'],_0x376f37)),0x0!=_0x40fcc3['value'])){let _0x574923=_0x11d73e;if(_0x40fcc3['extended']>-0x1&&(_0x11d73e=this['addActions'](_0x13da27,_0x40fcc3['extended'],_0x40fcc3['end'],_0x11d73e)),_0x11d73e=this['addActions'](_0x13da27,_0x40fcc3['value'],_0x40fcc3['end'],_0x11d73e),!_0xfd19c6['extend']&&(_0x50a90d=_0x40fcc3,_0x11d73e>_0x574923))break;}}for(;this['actions']['length']>_0x11d73e;)this['actions']['pop']();return _0x376f37&&_0x13da27['setLookAhead'](_0x376f37),_0x50a90d||_0x13da27['pos']!=this['stream']['end']||(_0x50a90d=new CachedToken(),_0x50a90d['value']=_0x13da27['p']['parser']['eofTerm'],_0x50a90d['start']=_0x50a90d['end']=_0x13da27['pos'],_0x11d73e=this['addActions'](_0x13da27,_0x50a90d['value'],_0x50a90d['end'],_0x11d73e)),this['mainToken']=_0x50a90d,this['actions'];}['getMainToken'](_0x1fbaad){if(this['mainToken'])return this['mainToken'];let _0x2b7f01=new CachedToken(),{pos:_0xf381b8,p:_0x252838}=_0x1fbaad;return _0x2b7f01['start']=_0xf381b8,_0x2b7f01['end']=Math['min'](_0xf381b8+0x1,_0x252838['stream']['end']),_0x2b7f01['value']=_0xf381b8==_0x252838['stream']['end']?_0x252838['parser']['eofTerm']:0x0,_0x2b7f01;}['updateCachedToken'](_0x3d80d3,_0x9630b5,_0x3c514a){let _0x9b8538=this['stream']['clipPos'](_0x3c514a['pos']);if(_0x9630b5['token'](this['stream']['reset'](_0x9b8538,_0x3d80d3),_0x3c514a),_0x3d80d3['value']>-0x1){let {parser:_0x24337e}=_0x3c514a['p'];for(let _0x3cf421=0x0;_0x3cf421<_0x24337e['specialized']['length'];_0x3cf421++)if(_0x24337e['specialized'][_0x3cf421]==_0x3d80d3['value']){let _0x5ef671=_0x24337e['specializers'][_0x3cf421](this['stream']['read'](_0x3d80d3['start'],_0x3d80d3['end']),_0x3c514a);if(_0x5ef671>=0x0&&_0x3c514a['p']['parser']['dialect']['allows'](_0x5ef671>>0x1)){0x1&_0x5ef671?_0x3d80d3['extended']=_0x5ef671>>0x1:_0x3d80d3['value']=_0x5ef671>>0x1;break;}}}else _0x3d80d3['value']=0x0,_0x3d80d3['end']=this['stream']['clipPos'](_0x9b8538+0x1);}['putAction'](_0x4a7aa0,_0x593e63,_0x5d1a2a,_0x2df235){for(let _0x2bb2d8=0x0;_0x2bb2d8<_0x2df235;_0x2bb2d8+=0x3)if(this['actions'][_0x2bb2d8]==_0x4a7aa0)return _0x2df235;return this['actions'][_0x2df235++]=_0x4a7aa0,this['actions'][_0x2df235++]=_0x593e63,this['actions'][_0x2df235++]=_0x5d1a2a,_0x2df235;}['addActions'](_0x362f6e,_0x4cd82d,_0x10c89a,_0x11d451){let {state:_0x3b9fc5}=_0x362f6e,{parser:_0x40d89c}=_0x362f6e['p'],{data:_0x393faf}=_0x40d89c;for(let _0xa39529=0x0;_0xa39529<0x2;_0xa39529++)for(let _0x3d3a66=_0x40d89c['stateSlot'](_0x3b9fc5,_0xa39529?0x2:0x1);;_0x3d3a66+=0x3){if(0xffff==_0x393faf[_0x3d3a66]){if(0x1!=_0x393faf[_0x3d3a66+0x1]){0x0==_0x11d451&&0x2==_0x393faf[_0x3d3a66+0x1]&&(_0x11d451=this['putAction'](pair(_0x393faf,_0x3d3a66+0x2),_0x4cd82d,_0x10c89a,_0x11d451));break;}_0x3d3a66=pair(_0x393faf,_0x3d3a66+0x2);}_0x393faf[_0x3d3a66]==_0x4cd82d&&(_0x11d451=this['putAction'](pair(_0x393faf,_0x3d3a66+0x1),_0x4cd82d,_0x10c89a,_0x11d451));}return _0x11d451;}}class Parse{constructor(_0x81d595,_0x162f44,_0x49fa4b,_0xdc4728){this['parser']=_0x81d595,this['input']=_0x162f44,this['ranges']=_0xdc4728,this['recovering']=0x0,this['nextStackID']=0x2654,this['minStackPos']=0x0,this['reused']=[],this['stoppedAt']=null,this['lastBigReductionStart']=-0x1,this['lastBigReductionSize']=0x0,this['bigReductionCount']=0x0,this['stream']=new InputStream(_0x162f44,_0xdc4728),this['tokens']=new TokenCache(_0x81d595,this['stream']),this['topTerm']=_0x81d595['top'][0x1];let {from:_0x3ebdf8}=_0xdc4728[0x0];this['stacks']=[Stack['start'](this,_0x81d595['top'][0x0],_0x3ebdf8)],this['fragments']=_0x49fa4b['length']&&this['stream']['end']-_0x3ebdf8>0x4*_0x81d595['bufferLength']?new FragmentCursor$1(_0x49fa4b,_0x81d595['nodeSet']):null;}get['parsedPos'](){return this['minStackPos'];}['advance'](){let _0x5ae1a5,_0x3662c6,_0x426b87=this['stacks'],_0x36f642=this['minStackPos'],_0x339d41=this['stacks']=[];if(this['bigReductionCount']>0x12c&&0x1==_0x426b87['length']){let [_0x2a3d0b]=_0x426b87;for(;_0x2a3d0b['forceReduce']()&&_0x2a3d0b['stack']['length']&&_0x2a3d0b['stack'][_0x2a3d0b['stack']['length']-0x2]>=this['lastBigReductionStart'];);this['bigReductionCount']=this['lastBigReductionSize']=0x0;}for(let _0x33b75d=0x0;_0x33b75d<_0x426b87['length'];_0x33b75d++){let _0x1d4ec5=_0x426b87[_0x33b75d];for(;;){if(this['tokens']['mainToken']=null,_0x1d4ec5['pos']>_0x36f642)_0x339d41['push'](_0x1d4ec5);else{if(this['advanceStack'](_0x1d4ec5,_0x339d41,_0x426b87))continue;{_0x5ae1a5||(_0x5ae1a5=[],_0x3662c6=[]),_0x5ae1a5['push'](_0x1d4ec5);let _0x4bb39a=this['tokens']['getMainToken'](_0x1d4ec5);_0x3662c6['push'](_0x4bb39a['value'],_0x4bb39a['end']);}}break;}}if(!_0x339d41['length']){let _0x2b2716=_0x5ae1a5&&findFinished(_0x5ae1a5);if(_0x2b2716)return verbose&&console['log']('Finish\x20with\x20'+this['stackID'](_0x2b2716)),this['stackToTree'](_0x2b2716);if(this['parser']['strict'])throw verbose&&_0x5ae1a5&&console['log']('Stuck\x20with\x20token\x20'+(this['tokens']['mainToken']?this['parser']['getName'](this['tokens']['mainToken']['value']):'none')),new SyntaxError('No\x20parse\x20at\x20'+_0x36f642);this['recovering']||(this['recovering']=0x5);}if(this['recovering']&&_0x5ae1a5){let _0x745e28=null!=this['stoppedAt']&&_0x5ae1a5[0x0]['pos']>this['stoppedAt']?_0x5ae1a5[0x0]:this['runRecovery'](_0x5ae1a5,_0x3662c6,_0x339d41);if(_0x745e28)return verbose&&console['log']('Force-finish\x20'+this['stackID'](_0x745e28)),this['stackToTree'](_0x745e28['forceAll']());}if(this['recovering']){let _0x59b29f=0x1==this['recovering']?0x1:0x3*this['recovering'];if(_0x339d41['length']>_0x59b29f){for(_0x339d41['sort']((_0x58a9b7,_0x237885)=>_0x237885['score']-_0x58a9b7['score']);_0x339d41['length']>_0x59b29f;)_0x339d41['pop']();}_0x339d41['some'](_0x4689ca=>_0x4689ca['reducePos']>_0x36f642)&&this['recovering']--;}else{if(_0x339d41['length']>0x1){t:for(let _0x55e259=0x0;_0x55e259<_0x339d41['length']-0x1;_0x55e259++){let _0x4ebf91=_0x339d41[_0x55e259];for(let _0x4a4d67=_0x55e259+0x1;_0x4a4d67<_0x339d41['length'];_0x4a4d67++){let _0x1b406d=_0x339d41[_0x4a4d67];if(_0x4ebf91['sameState'](_0x1b406d)||_0x4ebf91['buffer']['length']>0x1f4&&_0x1b406d['buffer']['length']>0x1f4){if(!((_0x4ebf91['score']-_0x1b406d['score']||_0x4ebf91['buffer']['length']-_0x1b406d['buffer']['length'])>0x0)){_0x339d41['splice'](_0x55e259--,0x1);continue t;}_0x339d41['splice'](_0x4a4d67--,0x1);}}}_0x339d41['length']>0xc&&_0x339d41['splice'](0xc,_0x339d41['length']-0xc);}}this['minStackPos']=_0x339d41[0x0]['pos'];for(let _0x330ef3=0x1;_0x330ef3<_0x339d41['length'];_0x330ef3++)_0x339d41[_0x330ef3]['pos']<this['minStackPos']&&(this['minStackPos']=_0x339d41[_0x330ef3]['pos']);return null;}['stopAt'](_0x3a2666){if(null!=this['stoppedAt']&&this['stoppedAt']<_0x3a2666)throw new RangeError('Can\x27t\x20move\x20stoppedAt\x20forward');this['stoppedAt']=_0x3a2666;}['advanceStack'](_0x5aac92,_0x169473,_0x2ce5bf){let _0x1ce8b3=_0x5aac92['pos'],{parser:_0x27b96b}=this,_0x4b14ff=verbose?this['stackID'](_0x5aac92)+'\x20->\x20':'';if(null!=this['stoppedAt']&&_0x1ce8b3>this['stoppedAt'])return _0x5aac92['forceReduce']()?_0x5aac92:null;if(this['fragments']){let _0x51fe64=_0x5aac92['curContext']&&_0x5aac92['curContext']['tracker']['strict'],_0x5d6b9a=_0x51fe64?_0x5aac92['curContext']['hash']:0x0;for(let _0x358872=this['fragments']['nodeAt'](_0x1ce8b3);_0x358872;){let _0x5ab51d=this['parser']['nodeSet']['types'][_0x358872['type']['id']]==_0x358872['type']?_0x27b96b['getGoto'](_0x5aac92['state'],_0x358872['type']['id']):-0x1;if(_0x5ab51d>-0x1&&_0x358872['length']&&(!_0x51fe64||(_0x358872['prop'](NodeProp['contextHash'])||0x0)==_0x5d6b9a))return _0x5aac92['useNode'](_0x358872,_0x5ab51d),verbose&&console['log'](_0x4b14ff+this['stackID'](_0x5aac92)+('\x20(via\x20reuse\x20of\x20'+_0x27b96b['getName'](_0x358872['type']['id'])+')')),!0x0;if(!(_0x358872 instanceof Tree)||0x0==_0x358872['children']['length']||_0x358872['positions'][0x0]>0x0)break;let _0x15c354=_0x358872['children'][0x0];if(!(_0x15c354 instanceof Tree&&0x0==_0x358872['positions'][0x0]))break;_0x358872=_0x15c354;}}let _0x24a613=_0x27b96b['stateSlot'](_0x5aac92['state'],0x4);if(_0x24a613>0x0)return _0x5aac92['reduce'](_0x24a613),verbose&&console['log'](_0x4b14ff+this['stackID'](_0x5aac92)+('\x20(via\x20always-reduce\x20'+_0x27b96b['getName'](0xffff&_0x24a613)+')')),!0x0;if(_0x5aac92['stack']['length']>=0x20d0){for(;_0x5aac92['stack']['length']>0x1770&&_0x5aac92['forceReduce'](););}let _0x6733f9=this['tokens']['getActions'](_0x5aac92);for(let _0x566321=0x0;_0x566321<_0x6733f9['length'];){let _0x43fe5a=_0x6733f9[_0x566321++],_0x2928e7=_0x6733f9[_0x566321++],_0x26ccbb=_0x6733f9[_0x566321++],_0x185367=_0x566321==_0x6733f9['length']||!_0x2ce5bf,_0x52368b=_0x185367?_0x5aac92:_0x5aac92['split'](),_0x1d4e0c=this['tokens']['mainToken'];if(_0x52368b['apply'](_0x43fe5a,_0x2928e7,_0x1d4e0c?_0x1d4e0c['start']:_0x52368b['pos'],_0x26ccbb),verbose&&console['log'](_0x4b14ff+this['stackID'](_0x52368b)+('\x20(via\x20'+(0x10000&_0x43fe5a?'reduce\x20of\x20'+_0x27b96b['getName'](0xffff&_0x43fe5a):'shift')+'\x20for\x20'+_0x27b96b['getName'](_0x2928e7)+'\x20@\x20'+_0x1ce8b3+(_0x52368b==_0x5aac92?'':',\x20split')+')')),_0x185367)return!0x0;_0x52368b['pos']>_0x1ce8b3?_0x169473['push'](_0x52368b):_0x2ce5bf['push'](_0x52368b);}return!0x1;}['advanceFully'](_0x3fd958,_0x2cdfd4){let _0x169ca9=_0x3fd958['pos'];for(;;){if(!this['advanceStack'](_0x3fd958,null,null))return!0x1;if(_0x3fd958['pos']>_0x169ca9)return pushStackDedup(_0x3fd958,_0x2cdfd4),!0x0;}}['runRecovery'](_0x50be0a,_0x1717b5,_0x5c293e){let _0x25b602=null,_0x582737=!0x1;for(let _0x3deaf4=0x0;_0x3deaf4<_0x50be0a['length'];_0x3deaf4++){let _0x21c75a=_0x50be0a[_0x3deaf4],_0x523ade=_0x1717b5[_0x3deaf4<<0x1],_0x501624=_0x1717b5[0x1+(_0x3deaf4<<0x1)],_0x391f4e=verbose?this['stackID'](_0x21c75a)+'\x20->\x20':'';if(_0x21c75a['deadEnd']){if(_0x582737)continue;if(_0x582737=!0x0,_0x21c75a['restart'](),verbose&&console['log'](_0x391f4e+this['stackID'](_0x21c75a)+'\x20(restarted)'),this['advanceFully'](_0x21c75a,_0x5c293e))continue;}let _0x5f0c68=_0x21c75a['split'](),_0x4c4f57=_0x391f4e;for(let _0x5e999b=0x0;_0x5f0c68['forceReduce']()&&_0x5e999b<0xa;_0x5e999b++){if(verbose&&console['log'](_0x4c4f57+this['stackID'](_0x5f0c68)+'\x20(via\x20force-reduce)'),this['advanceFully'](_0x5f0c68,_0x5c293e))break;verbose&&(_0x4c4f57=this['stackID'](_0x5f0c68)+'\x20->\x20');}for(let _0x561d8d of _0x21c75a['recoverByInsert'](_0x523ade))verbose&&console['log'](_0x391f4e+this['stackID'](_0x561d8d)+'\x20(via\x20recover-insert)'),this['advanceFully'](_0x561d8d,_0x5c293e);this['stream']['end']>_0x21c75a['pos']?(_0x501624==_0x21c75a['pos']&&(_0x501624++,_0x523ade=0x0),_0x21c75a['recoverByDelete'](_0x523ade,_0x501624),verbose&&console['log'](_0x391f4e+this['stackID'](_0x21c75a)+('\x20(via\x20recover-delete\x20'+this['parser']['getName'](_0x523ade)+')')),pushStackDedup(_0x21c75a,_0x5c293e)):(!_0x25b602||_0x25b602['score']<_0x21c75a['score'])&&(_0x25b602=_0x21c75a);}return _0x25b602;}['stackToTree'](_0x2581a1){return _0x2581a1['close'](),Tree['build']({'buffer':StackBufferCursor['create'](_0x2581a1),'nodeSet':this['parser']['nodeSet'],'topID':this['topTerm'],'maxBufferLength':this['parser']['bufferLength'],'reused':this['reused'],'start':this['ranges'][0x0]['from'],'length':_0x2581a1['pos']-this['ranges'][0x0]['from'],'minRepeatType':this['parser']['minRepeatTerm']});}['stackID'](_0x4f26a3){let _0x7a642f=(stackIDs||(stackIDs=new WeakMap()))['get'](_0x4f26a3);return _0x7a642f||stackIDs['set'](_0x4f26a3,_0x7a642f=String['fromCodePoint'](this['nextStackID']++)),_0x7a642f+_0x4f26a3;}}function pushStackDedup(_0x17530b,_0x3fb1ad){for(let _0x5c333f=0x0;_0x5c333f<_0x3fb1ad['length'];_0x5c333f++){let _0x3f554a=_0x3fb1ad[_0x5c333f];if(_0x3f554a['pos']==_0x17530b['pos']&&_0x3f554a['sameState'](_0x17530b))return void(_0x3fb1ad[_0x5c333f]['score']<_0x17530b['score']&&(_0x3fb1ad[_0x5c333f]=_0x17530b));}_0x3fb1ad['push'](_0x17530b);}class Dialect{constructor(_0x3aefe4,_0x5b9768,_0x300a67){this['source']=_0x3aefe4,this['flags']=_0x5b9768,this['disabled']=_0x300a67;}['allows'](_0x39e70b){return!this['disabled']||0x0==this['disabled'][_0x39e70b];}}const id=_0x21e576=>_0x21e576;class ContextTracker{constructor(_0xba9efa){this['start']=_0xba9efa['start'],this['shift']=_0xba9efa['shift']||id,this['reduce']=_0xba9efa['reduce']||id,this['reuse']=_0xba9efa['reuse']||id,this['hash']=_0xba9efa['hash']||(()=>0x0),this['strict']=!0x1!==_0xba9efa['strict'];}}class LRParser extends Parser{constructor(_0x40fafe){if(super(),this['wrappers']=[],0xe!=_0x40fafe['version'])throw new RangeError('Parser\x20version\x20('+_0x40fafe['version']+')\x20doesn\x27t\x20match\x20runtime\x20version\x20(14)');let _0x3f511b=_0x40fafe['nodeNames']['split']('\x20');this['minRepeatTerm']=_0x3f511b['length'];for(let _0x5aacc3=0x0;_0x5aacc3<_0x40fafe['repeatNodeCount'];_0x5aacc3++)_0x3f511b['push']('');let _0x3dd497=Object['keys'](_0x40fafe['topRules'])['map'](_0x3c0f5e=>_0x40fafe['topRules'][_0x3c0f5e][0x1]),_0x1efa29=[];for(let _0x48bc82=0x0;_0x48bc82<_0x3f511b['length'];_0x48bc82++)_0x1efa29['push']([]);function _0x552c97(_0x19168e,_0x64eb34,_0x5bd967){_0x1efa29[_0x19168e]['push']([_0x64eb34,_0x64eb34['deserialize'](String(_0x5bd967))]);}if(_0x40fafe['nodeProps'])for(let _0x5d1d37 of _0x40fafe['nodeProps']){let _0x369d52=_0x5d1d37[0x0];'string'==typeof _0x369d52&&(_0x369d52=NodeProp[_0x369d52]);for(let _0x1cd95a=0x1;_0x1cd95a<_0x5d1d37['length'];){let _0x1dfddc=_0x5d1d37[_0x1cd95a++];if(_0x1dfddc>=0x0)_0x552c97(_0x1dfddc,_0x369d52,_0x5d1d37[_0x1cd95a++]);else{let _0x37dc27=_0x5d1d37[_0x1cd95a+-_0x1dfddc];for(let _0x5d51b0=-_0x1dfddc;_0x5d51b0>0x0;_0x5d51b0--)_0x552c97(_0x5d1d37[_0x1cd95a++],_0x369d52,_0x37dc27);_0x1cd95a++;}}}this['nodeSet']=new NodeSet(_0x3f511b['map']((_0x1962ed,_0xb0fa6f)=>NodeType['define']({'name':_0xb0fa6f>=this['minRepeatTerm']?void 0x0:_0x1962ed,'id':_0xb0fa6f,'props':_0x1efa29[_0xb0fa6f],'top':_0x3dd497['indexOf'](_0xb0fa6f)>-0x1,'error':0x0==_0xb0fa6f,'skipped':_0x40fafe['skippedNodes']&&_0x40fafe['skippedNodes']['indexOf'](_0xb0fa6f)>-0x1}))),_0x40fafe['propSources']&&(this['nodeSet']=this['nodeSet']['extend'](..._0x40fafe['propSources'])),this['strict']=!0x1,this['bufferLength']=DefaultBufferLength;let _0x408517=decodeArray(_0x40fafe['tokenData']);this['context']=_0x40fafe['context'],this['specializerSpecs']=_0x40fafe['specialized']||[],this['specialized']=new Uint16Array(this['specializerSpecs']['length']);for(let _0x2f27e4=0x0;_0x2f27e4<this['specializerSpecs']['length'];_0x2f27e4++)this['specialized'][_0x2f27e4]=this['specializerSpecs'][_0x2f27e4]['term'];this['specializers']=this['specializerSpecs']['map'](getSpecializer),this['states']=decodeArray(_0x40fafe['states'],Uint32Array),this['data']=decodeArray(_0x40fafe['stateData']),this['goto']=decodeArray(_0x40fafe['goto']),this['maxTerm']=_0x40fafe['maxTerm'],this['tokenizers']=_0x40fafe['tokenizers']['map'](_0xc54839=>'number'==typeof _0xc54839?new TokenGroup(_0x408517,_0xc54839):_0xc54839),this['topRules']=_0x40fafe['topRules'],this['dialects']=_0x40fafe['dialects']||{},this['dynamicPrecedences']=_0x40fafe['dynamicPrecedences']||null,this['tokenPrecTable']=_0x40fafe['tokenPrec'],this['termNames']=_0x40fafe['termNames']||null,this['maxNode']=this['nodeSet']['types']['length']-0x1,this['dialect']=this['parseDialect'](),this['top']=this['topRules'][Object['keys'](this['topRules'])[0x0]];}['createParse'](_0x45411a,_0x3aa648,_0x296007){let _0x1776a7=new Parse(this,_0x45411a,_0x3aa648,_0x296007);for(let _0x48ee59 of this['wrappers'])_0x1776a7=_0x48ee59(_0x1776a7,_0x45411a,_0x3aa648,_0x296007);return _0x1776a7;}['getGoto'](_0x1daaff,_0xe7f065,_0x45e10d=!0x1){let _0x54daff=this['goto'];if(_0xe7f065>=_0x54daff[0x0])return-0x1;for(let _0x1f48ef=_0x54daff[_0xe7f065+0x1];;){let _0x455c58=_0x54daff[_0x1f48ef++],_0x450125=0x1&_0x455c58,_0x4a7f53=_0x54daff[_0x1f48ef++];if(_0x450125&&_0x45e10d)return _0x4a7f53;for(let _0x426a74=_0x1f48ef+(_0x455c58>>0x1);_0x1f48ef<_0x426a74;_0x1f48ef++)if(_0x54daff[_0x1f48ef]==_0x1daaff)return _0x4a7f53;if(_0x450125)return-0x1;}}['hasAction'](_0x34250a,_0x330266){let _0x58a2d2=this['data'];for(let _0x2fb820=0x0;_0x2fb820<0x2;_0x2fb820++)for(let _0x11112c,_0x3fb8fe=this['stateSlot'](_0x34250a,_0x2fb820?0x2:0x1);;_0x3fb8fe+=0x3){if(0xffff==(_0x11112c=_0x58a2d2[_0x3fb8fe])){if(0x1!=_0x58a2d2[_0x3fb8fe+0x1]){if(0x2==_0x58a2d2[_0x3fb8fe+0x1])return pair(_0x58a2d2,_0x3fb8fe+0x2);break;}_0x11112c=_0x58a2d2[_0x3fb8fe=pair(_0x58a2d2,_0x3fb8fe+0x2)];}if(_0x11112c==_0x330266||0x0==_0x11112c)return pair(_0x58a2d2,_0x3fb8fe+0x1);}return 0x0;}['stateSlot'](_0x425ce1,_0x15b81b){return this['states'][0x6*_0x425ce1+_0x15b81b];}['stateFlag'](_0x328d96,_0x291f3a){return(this['stateSlot'](_0x328d96,0x0)&_0x291f3a)>0x0;}['validAction'](_0x4c5137,_0x5b821f){return!!this['allActions'](_0x4c5137,_0x2cb453=>_0x2cb453==_0x5b821f||null);}['allActions'](_0x2e706b,_0x498e4c){let _0x2f350d=this['stateSlot'](_0x2e706b,0x4),_0x13d5c5=_0x2f350d?_0x498e4c(_0x2f350d):void 0x0;for(let _0x5d937e=this['stateSlot'](_0x2e706b,0x1);null==_0x13d5c5;_0x5d937e+=0x3){if(0xffff==this['data'][_0x5d937e]){if(0x1!=this['data'][_0x5d937e+0x1])break;_0x5d937e=pair(this['data'],_0x5d937e+0x2);}_0x13d5c5=_0x498e4c(pair(this['data'],_0x5d937e+0x1));}return _0x13d5c5;}['nextStates'](_0x290c73){let _0x5265d5=[];for(let _0x23c527=this['stateSlot'](_0x290c73,0x1);;_0x23c527+=0x3){if(0xffff==this['data'][_0x23c527]){if(0x1!=this['data'][_0x23c527+0x1])break;_0x23c527=pair(this['data'],_0x23c527+0x2);}if(!(0x1&this['data'][_0x23c527+0x2])){let _0x5348d=this['data'][_0x23c527+0x1];_0x5265d5['some']((_0x5d0459,_0x1d6ac5)=>0x1&_0x1d6ac5&&_0x5d0459==_0x5348d)||_0x5265d5['push'](this['data'][_0x23c527],_0x5348d);}}return _0x5265d5;}['configure'](_0x148766){let _0x244780=Object['assign'](Object['create'](LRParser['prototype']),this);if(_0x148766['props']&&(_0x244780['nodeSet']=this['nodeSet']['extend'](..._0x148766['props'])),_0x148766['top']){let _0x40431d=this['topRules'][_0x148766['top']];if(!_0x40431d)throw new RangeError('Invalid\x20top\x20rule\x20name\x20'+_0x148766['top']);_0x244780['top']=_0x40431d;}return _0x148766['tokenizers']&&(_0x244780['tokenizers']=this['tokenizers']['map'](t=>{let _0x1c613b=_0x148766['tokenizers']['find'](_0x541c3d=>_0x541c3d['from']==t);return _0x1c613b?_0x1c613b['to']:t;})),_0x148766['specializers']&&(_0x244780['specializers']=this['specializers']['slice'](),_0x244780['specializerSpecs']=this['specializerSpecs']['map']((_0x28aaaa,_0x477aa9)=>{let _0x9f3c1d=_0x148766['specializers']['find'](_0x1ca16f=>_0x1ca16f['from']==_0x28aaaa['external']);if(!_0x9f3c1d)return _0x28aaaa;let _0x2623b5=Object['assign'](Object['assign']({},_0x28aaaa),{'external':_0x9f3c1d['to']});return _0x244780['specializers'][_0x477aa9]=getSpecializer(_0x2623b5),_0x2623b5;})),_0x148766['contextTracker']&&(_0x244780['context']=_0x148766['contextTracker']),_0x148766['dialect']&&(_0x244780['dialect']=this['parseDialect'](_0x148766['dialect'])),null!=_0x148766['strict']&&(_0x244780['strict']=_0x148766['strict']),_0x148766['wrap']&&(_0x244780['wrappers']=_0x244780['wrappers']['concat'](_0x148766['wrap'])),null!=_0x148766['bufferLength']&&(_0x244780['bufferLength']=_0x148766['bufferLength']),_0x244780;}['hasWrappers'](){return this['wrappers']['length']>0x0;}['getName'](_0x9dc30d){return this['termNames']?this['termNames'][_0x9dc30d]:String(_0x9dc30d<=this['maxNode']&&this['nodeSet']['types'][_0x9dc30d]['name']||_0x9dc30d);}get['eofTerm'](){return this['maxNode']+0x1;}get['topNode'](){return this['nodeSet']['types'][this['top'][0x1]];}['dynamicPrecedence'](_0x41fa3f){let _0x146241=this['dynamicPrecedences'];return null==_0x146241?0x0:_0x146241[_0x41fa3f]||0x0;}['parseDialect'](_0x51d696){let _0x54f390=Object['keys'](this['dialects']),_0x4f83b0=_0x54f390['map'](()=>!0x1);if(_0x51d696)for(let _0xaf402f of _0x51d696['split']('\x20')){let _0x43505a=_0x54f390['indexOf'](_0xaf402f);_0x43505a>=0x0&&(_0x4f83b0[_0x43505a]=!0x0);}let _0x348f01=null;for(let _0x3bd538=0x0;_0x3bd538<_0x54f390['length'];_0x3bd538++)if(!_0x4f83b0[_0x3bd538]){for(let _0x43a0fb,_0x4d5d80=this['dialects'][_0x54f390[_0x3bd538]];0xffff!=(_0x43a0fb=this['data'][_0x4d5d80++]);)(_0x348f01||(_0x348f01=new Uint8Array(this['maxTerm']+0x1)))[_0x43a0fb]=0x1;}return new Dialect(_0x51d696,_0x4f83b0,_0x348f01);}static['deserialize'](_0x765e69){return new LRParser(_0x765e69);}}function pair(_0x47a971,_0x34ff8d){return _0x47a971[_0x34ff8d]|_0x47a971[_0x34ff8d+0x1]<<0x10;}function findFinished(_0x37afd1){let _0x223f68=null;for(let _0xb254df of _0x37afd1){let _0x5d81d0=_0xb254df['p']['stoppedAt'];(_0xb254df['pos']==_0xb254df['p']['stream']['end']||null!=_0x5d81d0&&_0xb254df['pos']>_0x5d81d0)&&_0xb254df['p']['parser']['stateFlag'](_0xb254df['state'],0x2)&&(!_0x223f68||_0x223f68['score']<_0xb254df['score'])&&(_0x223f68=_0xb254df);}return _0x223f68;}function getSpecializer(_0x12010e){if(_0x12010e['external']){let _0x1690ee=_0x12010e['extend']?0x1:0x0;return(_0x4d5055,_0x26a582)=>_0x12010e['external'](_0x4d5055,_0x26a582)<<0x1|_0x1690ee;}return _0x12010e['get'];}const scriptText=0x36,StartCloseScriptTag=0x1,styleText=0x37,StartCloseStyleTag=0x2,textareaText=0x38,StartCloseTextareaTag=0x3,EndTag=0x4,SelfClosingEndTag=0x5,StartTag=0x6,StartScriptTag=0x7,StartStyleTag=0x8,StartTextareaTag=0x9,StartSelfClosingTag=0xa,StartCloseTag=0xb,NoMatchStartCloseTag=0xc,MismatchedStartCloseTag=0xd,missingCloseTag=0x39,IncompleteCloseTag=0xe,commentContent$1=0x3a,Element$2=0x14,TagName=0x16,Attribute=0x17,AttributeName=0x18,AttributeValue=0x1a,UnquotedAttributeValue=0x1b,ScriptText=0x1c,StyleText=0x1f,TextareaText=0x22,OpenTag=0x24,CloseTag=0x25,Dialect_noMatch=0x0,Dialect_selfClosing=0x1,selfClosers$1={'area':!0x0,'base':!0x0,'br':!0x0,'col':!0x0,'command':!0x0,'embed':!0x0,'frame':!0x0,'hr':!0x0,'img':!0x0,'input':!0x0,'keygen':!0x0,'link':!0x0,'meta':!0x0,'param':!0x0,'source':!0x0,'track':!0x0,'wbr':!0x0,'menuitem':!0x0},implicitlyClosed={'dd':!0x0,'li':!0x0,'optgroup':!0x0,'option':!0x0,'p':!0x0,'rp':!0x0,'rt':!0x0,'tbody':!0x0,'td':!0x0,'tfoot':!0x0,'th':!0x0,'tr':!0x0},closeOnOpen={'dd':{'dd':!0x0,'dt':!0x0},'dt':{'dd':!0x0,'dt':!0x0},'li':{'li':!0x0},'option':{'option':!0x0,'optgroup':!0x0},'optgroup':{'optgroup':!0x0},'p':{'address':!0x0,'article':!0x0,'aside':!0x0,'blockquote':!0x0,'dir':!0x0,'div':!0x0,'dl':!0x0,'fieldset':!0x0,'footer':!0x0,'form':!0x0,'h1':!0x0,'h2':!0x0,'h3':!0x0,'h4':!0x0,'h5':!0x0,'h6':!0x0,'header':!0x0,'hgroup':!0x0,'hr':!0x0,'menu':!0x0,'nav':!0x0,'ol':!0x0,'p':!0x0,'pre':!0x0,'section':!0x0,'table':!0x0,'ul':!0x0},'rp':{'rp':!0x0,'rt':!0x0},'rt':{'rp':!0x0,'rt':!0x0},'tbody':{'tbody':!0x0,'tfoot':!0x0},'td':{'td':!0x0,'th':!0x0},'tfoot':{'tbody':!0x0},'th':{'td':!0x0,'th':!0x0},'thead':{'tbody':!0x0,'tfoot':!0x0},'tr':{'tr':!0x0}};function nameChar(_0x2587a8){return 0x2d==_0x2587a8||0x2e==_0x2587a8||0x3a==_0x2587a8||_0x2587a8>=0x41&&_0x2587a8<=0x5a||0x5f==_0x2587a8||_0x2587a8>=0x61&&_0x2587a8<=0x7a||_0x2587a8>=0xa1;}function isSpace(_0x2a0cd4){return 0x9==_0x2a0cd4||0xa==_0x2a0cd4||0xd==_0x2a0cd4||0x20==_0x2a0cd4;}let cachedName=null,cachedInput=null,cachedPos=0x0;function tagNameAfter(_0x1dab8e,_0x1f13a8){let _0x3a1eae=_0x1dab8e['pos']+_0x1f13a8;if(cachedPos==_0x3a1eae&&cachedInput==_0x1dab8e)return cachedName;let _0x5576d9=_0x1dab8e['peek'](_0x1f13a8);for(;isSpace(_0x5576d9);)_0x5576d9=_0x1dab8e['peek'](++_0x1f13a8);let _0x2c5b90='';for(;nameChar(_0x5576d9);)_0x2c5b90+=String['fromCharCode'](_0x5576d9),_0x5576d9=_0x1dab8e['peek'](++_0x1f13a8);return cachedInput=_0x1dab8e,cachedPos=_0x3a1eae,cachedName=_0x2c5b90?_0x2c5b90['toLowerCase']():_0x5576d9==question$1||_0x5576d9==bang?void 0x0:null;}const lessThan=0x3c,greaterThan=0x3e,slash$1=0x2f,question$1=0x3f,bang=0x21,dash$1=0x2d;function ElementContext(_0x1ef540,_0x4ac19e){this['name']=_0x1ef540,this['parent']=_0x4ac19e;}const startTagTerms=[StartTag,StartSelfClosingTag,StartScriptTag,StartStyleTag,StartTextareaTag],elementContext=new ContextTracker({'start':null,'shift':(_0x26eabe,_0x4474c4,_0x497741,_0x16805c)=>startTagTerms['indexOf'](_0x4474c4)>-0x1?new ElementContext(tagNameAfter(_0x16805c,0x1)||'',_0x26eabe):_0x26eabe,'reduce':(_0x5b61b8,_0x3f49bb)=>_0x3f49bb==Element$2&&_0x5b61b8?_0x5b61b8['parent']:_0x5b61b8,'reuse'(_0x86beef,_0x13148,_0x33117c,_0x4710a0){let _0x273ba2=_0x13148['type']['id'];return _0x273ba2==StartTag||_0x273ba2==OpenTag?new ElementContext(tagNameAfter(_0x4710a0,0x1)||'',_0x86beef):_0x86beef;},'strict':!0x1}),tagStart=new ExternalTokenizer((_0x3f59aa,_0x69a6e9)=>{if(_0x3f59aa['next']!=lessThan)return void(_0x3f59aa['next']<0x0&&_0x69a6e9['context']&&_0x3f59aa['acceptToken'](missingCloseTag));_0x3f59aa['advance']();let _0x3542f1=_0x3f59aa['next']==slash$1;_0x3542f1&&_0x3f59aa['advance']();let _0x684052=tagNameAfter(_0x3f59aa,0x0);if(void 0x0===_0x684052)return;if(!_0x684052)return _0x3f59aa['acceptToken'](_0x3542f1?IncompleteCloseTag:StartTag);let _0x14ba16=_0x69a6e9['context']?_0x69a6e9['context']['name']:null;if(_0x3542f1){if(_0x684052==_0x14ba16)return _0x3f59aa['acceptToken'](StartCloseTag);if(_0x14ba16&&implicitlyClosed[_0x14ba16])return _0x3f59aa['acceptToken'](missingCloseTag,-0x2);if(_0x69a6e9['dialectEnabled'](Dialect_noMatch))return _0x3f59aa['acceptToken'](NoMatchStartCloseTag);for(let _0x2a9986=_0x69a6e9['context'];_0x2a9986;_0x2a9986=_0x2a9986['parent'])if(_0x2a9986['name']==_0x684052)return;_0x3f59aa['acceptToken'](MismatchedStartCloseTag);}else{if('script'==_0x684052)return _0x3f59aa['acceptToken'](StartScriptTag);if('style'==_0x684052)return _0x3f59aa['acceptToken'](StartStyleTag);if('textarea'==_0x684052)return _0x3f59aa['acceptToken'](StartTextareaTag);if(selfClosers$1['hasOwnProperty'](_0x684052))return _0x3f59aa['acceptToken'](StartSelfClosingTag);_0x14ba16&&closeOnOpen[_0x14ba16]&&closeOnOpen[_0x14ba16][_0x684052]?_0x3f59aa['acceptToken'](missingCloseTag,-0x1):_0x3f59aa['acceptToken'](StartTag);}},{'contextual':!0x0}),commentContent=new ExternalTokenizer(_0x2bc505=>{for(let _0x567237=0x0,_0x32e477=0x0;;_0x32e477++){if(_0x2bc505['next']<0x0){_0x32e477&&_0x2bc505['acceptToken'](commentContent$1);break;}if(_0x2bc505['next']==dash$1)_0x567237++;else{if(_0x2bc505['next']==greaterThan&&_0x567237>=0x2){_0x32e477>=0x3&&_0x2bc505['acceptToken'](commentContent$1,-0x2);break;}_0x567237=0x0;}_0x2bc505['advance']();}});function inForeignElement(_0x4f9d64){for(;_0x4f9d64;_0x4f9d64=_0x4f9d64['parent'])if('svg'==_0x4f9d64['name']||'math'==_0x4f9d64['name'])return!0x0;return!0x1;}const endTag=new ExternalTokenizer((_0x2f5eee,_0x5b3f3c)=>{if(_0x2f5eee['next']==slash$1&&_0x2f5eee['peek'](0x1)==greaterThan){let _0x154ff7=_0x5b3f3c['dialectEnabled'](Dialect_selfClosing)||inForeignElement(_0x5b3f3c['context']);_0x2f5eee['acceptToken'](_0x154ff7?SelfClosingEndTag:EndTag,0x2);}else _0x2f5eee['next']==greaterThan&&_0x2f5eee['acceptToken'](EndTag,0x1);});function contentTokenizer(_0x5d8ef7,_0x31db84,_0x4e93a3){let _0x4f72d2=0x2+_0x5d8ef7['length'];return new ExternalTokenizer(_0xc54050=>{for(let _0x1197db=0x0,_0xf66361=0x0,_0x5d54df=0x0;;_0x5d54df++){if(_0xc54050['next']<0x0){_0x5d54df&&_0xc54050['acceptToken'](_0x31db84);break;}if(0x0==_0x1197db&&_0xc54050['next']==lessThan||0x1==_0x1197db&&_0xc54050['next']==slash$1||_0x1197db>=0x2&&_0x1197db<_0x4f72d2&&_0xc54050['next']==_0x5d8ef7['charCodeAt'](_0x1197db-0x2))_0x1197db++,_0xf66361++;else{if(0x2!=_0x1197db&&_0x1197db!=_0x4f72d2||!isSpace(_0xc54050['next'])){if(_0x1197db==_0x4f72d2&&_0xc54050['next']==greaterThan){_0x5d54df>_0xf66361?_0xc54050['acceptToken'](_0x31db84,-_0xf66361):_0xc54050['acceptToken'](_0x4e93a3,-(_0xf66361-0x2));break;}if((0xa==_0xc54050['next']||0xd==_0xc54050['next'])&&_0x5d54df){_0xc54050['acceptToken'](_0x31db84,0x1);break;}_0x1197db=_0xf66361=0x0;}else _0xf66361++;}_0xc54050['advance']();}});}const scriptTokens=contentTokenizer('script',scriptText,StartCloseScriptTag),styleTokens=contentTokenizer('style',styleText,StartCloseStyleTag),textareaTokens=contentTokenizer('textarea',textareaText,StartCloseTextareaTag),htmlHighlighting=styleTags({'Text\x20RawText':tags$1['content'],'StartTag\x20StartCloseTag\x20SelfClosingEndTag\x20EndTag':tags$1['angleBracket'],'TagName':tags$1['tagName'],'MismatchedCloseTag/TagName':[tags$1['tagName'],tags$1['invalid']],'AttributeName':tags$1['attributeName'],'AttributeValue\x20UnquotedAttributeValue':tags$1['attributeValue'],'Is':tags$1['definitionOperator'],'EntityReference\x20CharacterReference':tags$1['character'],'Comment':tags$1['blockComment'],'ProcessingInst':tags$1['processingInstruction'],'DoctypeDecl':tags$1['documentMeta']}),parser$3=LRParser['deserialize']({'version':0xe,'states':',xOVO!rOOO!WQ#tO\x27#CqO!]Q#tO\x27#CzO!bQ#tO\x27#C}O!gQ#tO\x27#DQO!lQ#tO\x27#DSO!qOaO\x27#CpO!|ObO\x27#CpO#XOdO\x27#CpO$eO!rO\x27#CpOOO`\x27#Cp\x27#CpO$lO$fO\x27#DTO$tQ#tO\x27#DVO$yQ#tO\x27#DWOOO`\x27#Dk\x27#DkOOO`\x27#DY\x27#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa\x27#D^\x27#D^O&XOaO\x27#CxO&dOaO,59[OOOb\x27#D_\x27#D_O&lObO\x27#C{O&wObO,59[OOOd\x27#D`\x27#D`O\x27POdO\x27#DOO\x27[OdO,59[OOO`\x27#Da\x27#DaO\x27dO!rO,59[O\x27kQ#tO\x27#DROOO`,59[,59[OOOp\x27#Db\x27#DbO\x27pO$fO,59oOOO`,59o,59oO\x27xQ#|O,59qO\x27}Q#|O,59rOOO`-E7W-E7WO(SQ&rO\x27#CsOOQW\x27#DZ\x27#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO\x27#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO\x27#C|OOOd-E7^-E7^O)uQ#tO\x27#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOO`7+$t7+$tOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rO*[Q#|O,59eO*aQ#|O,59hO*fQ#|O,59kOOO`1G/X1G/XO*kO7[O\x27#CvO*|OMhO\x27#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO\x27#D[\x27#D[O+_O7[O,59bOOQW,59b,59bOOOO\x27#D]\x27#D]O+pOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z','stateData':',]~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~','goto':'%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp','nodeNames':'⚠\x20StartCloseTag\x20StartCloseTag\x20StartCloseTag\x20EndTag\x20SelfClosingEndTag\x20StartTag\x20StartTag\x20StartTag\x20StartTag\x20StartTag\x20StartCloseTag\x20StartCloseTag\x20StartCloseTag\x20IncompleteCloseTag\x20Document\x20Text\x20EntityReference\x20CharacterReference\x20InvalidEntity\x20Element\x20OpenTag\x20TagName\x20Attribute\x20AttributeName\x20Is\x20AttributeValue\x20UnquotedAttributeValue\x20ScriptText\x20CloseTag\x20OpenTag\x20StyleText\x20CloseTag\x20OpenTag\x20TextareaText\x20CloseTag\x20OpenTag\x20CloseTag\x20SelfClosingTag\x20Comment\x20ProcessingInst\x20MismatchedCloseTag\x20CloseTag\x20DoctypeDecl','maxTerm':0x43,'context':elementContext,'nodeProps':[['closedBy',-0xa,0x1,0x2,0x3,0x7,0x8,0x9,0xa,0xb,0xc,0xd,'EndTag',0x6,'EndTag\x20SelfClosingEndTag',-0x4,0x15,0x1e,0x21,0x24,'CloseTag'],['openedBy',0x4,'StartTag\x20StartCloseTag',0x5,'StartTag',-0x4,0x1d,0x20,0x23,0x25,'OpenTag'],['group',-0x9,0xe,0x11,0x12,0x13,0x14,0x27,0x28,0x29,0x2a,'Entity',0x10,'Entity\x20TextContent',-0x3,0x1c,0x1f,0x22,'TextContent\x20Entity'],['isolate',-0xb,0x15,0x1d,0x1e,0x20,0x21,0x23,0x24,0x25,0x26,0x29,0x2a,'ltr',-0x3,0x1a,0x1b,0x27,'']],'propSources':[htmlHighlighting],'skippedNodes':[0x0],'repeatNodeCount':0x9,'tokenData':'!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;\x27SMz;\x27S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;\x27S$q;\x27S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;\x27S&X;\x27S;=`*y<%lO&Xq\x27UV`P!cpOv&}wx\x27kx!^&}!^!_(V!_;\x27S&};\x27S;=`(n<%lO&}P\x27pT`POv\x27kw!^\x27k!_;\x27S\x27k;\x27S;=`(P<%lO\x27kP(SP;=`<%l\x27kp([S!cpOv(Vx;\x27S(V;\x27S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({W`P!a`Or(trs\x27ksv(tw!^(t!^!_)e!_;\x27S(t;\x27S;=`*P<%lO(t`)jT!a`Or)esv)ew;\x27S)e;\x27S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!a`!cpOr*Vrs(Vsv*Vwx)ex;\x27S*V;\x27S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYkWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;\x27S+P;\x27S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]``P!a`!cp!^^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;\x27S&X;\x27S;=`*y<%lO&X!_-ljhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;\x27S-_;\x27S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebhSkWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;\x27S/^;\x27S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXhSqr0msw0mx!P0m!Q!^0m!a#s0m$f;\x27S0m;\x27S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vchS`P!a`!cpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;\x27S1k;\x27S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!`h`P!cpOv&}wx\x27kx!^&}!^!_(V!_;\x27S&};\x27S;=`(n<%lO&}!_4WihSkWc!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;\x27S8t;\x27S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;\x27S5u;\x27S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;\x27S7S;\x27S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;\x27S+P;\x27S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;\x27S8t;\x27S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;\x27S/^;\x27S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QchSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;\x27S;{;\x27S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;\x27S0m;\x27S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;\x27SBw;\x27S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;\x27S@O;\x27S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;\x27SAY;\x27S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;\x27S+P;\x27S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;\x27SBw;\x27S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;\x27S/^;\x27S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;\x27SE{;\x27S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;\x27S0m;\x27S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs\x27ksv(tw!^(t!^!_)e!_;\x27S(t;\x27S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;\x27S-_;\x27S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;\x27S-_;\x27S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;\x27S&X;\x27S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;\x27SMz;\x27S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;\x27S*V;\x27S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!\x27]!g#W*V#W#X!0`#X;\x27S*V;\x27S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;\x27S*V;\x27S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;\x27S*V;\x27S;=`*s<%lO*V!R!\x27dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;\x27S*V;\x27S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;\x27S*V;\x27S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;\x27S*V;\x27S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;\x27S*V;\x27S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;\x27S*V;\x27S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;\x27S*V;\x27S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;\x27S!+q;\x27S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;\x27S!,h;\x27S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;\x27S!-S;\x27S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;\x27S(V;\x27S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;\x27S!.[;\x27S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;\x27S)e;\x27S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;\x27S*V;\x27S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;\x27S*V;\x27S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;\x27S*V;\x27S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;\x27S*V;\x27S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;\x27S*V;\x27S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;\x27S*V;\x27S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;\x27S*V;\x27S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;\x27S!4t;\x27S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;\x27S!5k;\x27S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;\x27S!6V;\x27S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;\x27S!6V;\x27S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;\x27S!5k;\x27S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;\x27S(V;\x27S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;\x27S!8];\x27S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;\x27S!8];\x27S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;\x27S)e;\x27S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;\x27S!4t;\x27S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;\x27S*V;\x27S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;\x27S&X;\x27S;=`*y<%lO&X','tokenizers':[scriptTokens,styleTokens,textareaTokens,endTag,tagStart,commentContent,0x0,0x1,0x2,0x3,0x4,0x5],'topRules':{'Document':[0x0,0xf]},'dialects':{'noMatch':0x0,'selfClosing':0x1fd},'tokenPrec':0x1ff});function getAttrs(_0x47b545,_0x2e0415){let _0x36e5b5=Object['create'](null);for(let _0x283e9f of _0x47b545['getChildren'](Attribute)){let _0x8bec10=_0x283e9f['getChild'](AttributeName),_0x4c78b5=_0x283e9f['getChild'](AttributeValue)||_0x283e9f['getChild'](UnquotedAttributeValue);_0x8bec10&&(_0x36e5b5[_0x2e0415['read'](_0x8bec10['from'],_0x8bec10['to'])]=_0x4c78b5?_0x4c78b5['type']['id']==AttributeValue?_0x2e0415['read'](_0x4c78b5['from']+0x1,_0x4c78b5['to']-0x1):_0x2e0415['read'](_0x4c78b5['from'],_0x4c78b5['to']):'');}return _0x36e5b5;}function findTagName(_0x33d1d9,_0x4eb375){let _0x66f7a8=_0x33d1d9['getChild'](TagName);return _0x66f7a8?_0x4eb375['read'](_0x66f7a8['from'],_0x66f7a8['to']):'\x20';}function maybeNest(_0x5230cf,_0x2cc1ff,_0x37d29c){let _0x2b2f08;for(let _0x5524b5 of _0x37d29c)if(!_0x5524b5['attrs']||_0x5524b5['attrs'](_0x2b2f08||(_0x2b2f08=getAttrs(_0x5230cf['node']['parent']['firstChild'],_0x2cc1ff))))return{'parser':_0x5524b5['parser']};return null;}function configureNesting(_0x63dcce=[],_0x2a30cc=[]){let _0x4d2f63=[],_0x251b34=[],_0x27e114=[],_0x2d2148=[];for(let _0x236214 of _0x63dcce){('script'==_0x236214['tag']?_0x4d2f63:'style'==_0x236214['tag']?_0x251b34:'textarea'==_0x236214['tag']?_0x27e114:_0x2d2148)['push'](_0x236214);}let _0x279c52=_0x2a30cc['length']?Object['create'](null):null;for(let _0x2f8642 of _0x2a30cc)(_0x279c52[_0x2f8642['name']]||(_0x279c52[_0x2f8642['name']]=[]))['push'](_0x2f8642);return parseMixed((_0x43b027,_0x560b54)=>{let _0x1738b8=_0x43b027['type']['id'];if(_0x1738b8==ScriptText)return maybeNest(_0x43b027,_0x560b54,_0x4d2f63);if(_0x1738b8==StyleText)return maybeNest(_0x43b027,_0x560b54,_0x251b34);if(_0x1738b8==TextareaText)return maybeNest(_0x43b027,_0x560b54,_0x27e114);if(_0x1738b8==Element$2&&_0x2d2148['length']){let _0x2580ec,_0x5f2878=_0x43b027['node'],_0x3cedbd=_0x5f2878['firstChild'],_0x4c7847=_0x3cedbd&&findTagName(_0x3cedbd,_0x560b54);if(_0x4c7847){for(let _0x2a100d of _0x2d2148)if(_0x2a100d['tag']==_0x4c7847&&(!_0x2a100d['attrs']||_0x2a100d['attrs'](_0x2580ec||(_0x2580ec=getAttrs(_0x3cedbd,_0x560b54))))){let _0xec7514=_0x5f2878['lastChild'],_0x3c38fe=_0xec7514['type']['id']==CloseTag?_0xec7514['from']:_0x5f2878['to'];if(_0x3c38fe>_0x3cedbd['to'])return{'parser':_0x2a100d['parser'],'overlay':[{'from':_0x3cedbd['to'],'to':_0x3c38fe}]};}}}if(_0x279c52&&_0x1738b8==Attribute){let _0x463451,_0x129cd5=_0x43b027['node'];if(_0x463451=_0x129cd5['firstChild']){let _0x67b05e=_0x279c52[_0x560b54['read'](_0x463451['from'],_0x463451['to'])];if(_0x67b05e)for(let _0x5e793c of _0x67b05e){if(_0x5e793c['tagName']&&_0x5e793c['tagName']!=findTagName(_0x129cd5['parent'],_0x560b54))continue;let _0xc22560=_0x129cd5['lastChild'];if(_0xc22560['type']['id']==AttributeValue){let _0x1cdedd=_0xc22560['from']+0x1,_0x4e7b8b=_0xc22560['lastChild'],_0xddd854=_0xc22560['to']-(_0x4e7b8b&&_0x4e7b8b['isError']?0x0:0x1);if(_0xddd854>_0x1cdedd)return{'parser':_0x5e793c['parser'],'overlay':[{'from':_0x1cdedd,'to':_0xddd854}]};}else{if(_0xc22560['type']['id']==UnquotedAttributeValue)return{'parser':_0x5e793c['parser'],'overlay':[{'from':_0xc22560['from'],'to':_0xc22560['to']}]};}}}}return null;});}const descendantOp=0x7a,Unit=0x1,identifier$2=0x7b,callee=0x7c,VariableName=0x2,queryIdentifier=0x7d,queryVariableName=0x3,QueryCallee=0x4,space$2=[0x9,0xa,0xb,0xc,0xd,0x20,0x85,0xa0,0x1680,0x2000,0x2001,0x2002,0x2003,0x2004,0x2005,0x2006,0x2007,0x2008,0x2009,0x200a,0x2028,0x2029,0x202f,0x205f,0x3000],colon=0x3a,parenL=0x28,underscore=0x5f,bracketL$1=0x5b,dash=0x2d,period=0x2e,hash=0x23,percent=0x25,ampersand=0x26,backslash=0x5c,newline$1=0xa,asterisk=0x2a;function isAlpha(_0x4387a3){return _0x4387a3>=0x41&&_0x4387a3<=0x5a||_0x4387a3>=0x61&&_0x4387a3<=0x7a||_0x4387a3>=0xa1;}function isDigit(_0x2cff72){return _0x2cff72>=0x30&&_0x2cff72<=0x39;}function isHex(_0x1b9a7b){return isDigit(_0x1b9a7b)||_0x1b9a7b>=0x61&&_0x1b9a7b<=0x66||_0x1b9a7b>=0x41&&_0x1b9a7b<=0x46;}const identifierTokens=(_0x2a9d17,_0x4d2c70,_0x1884d4)=>(_0x4d6908,_0x331c2d)=>{for(let _0x3d23f5=!0x1,_0x1a0e6d=0x0,_0x659ce4=0x0;;_0x659ce4++){let {next:_0x127df9}=_0x4d6908;if(isAlpha(_0x127df9)||_0x127df9==dash||_0x127df9==underscore||_0x3d23f5&&isDigit(_0x127df9))!_0x3d23f5&&(_0x127df9!=dash||_0x659ce4>0x0)&&(_0x3d23f5=!0x0),_0x1a0e6d===_0x659ce4&&_0x127df9==dash&&_0x1a0e6d++,_0x4d6908['advance']();else{if(_0x127df9!=backslash||_0x4d6908['peek'](0x1)==newline$1){_0x3d23f5&&_0x4d6908['acceptToken'](0x2==_0x1a0e6d&&_0x331c2d['canShift'](VariableName)?_0x4d2c70:_0x127df9==parenL?_0x1884d4:_0x2a9d17);break;}if(_0x4d6908['advance'](),isHex(_0x4d6908['next'])){do{_0x4d6908['advance']();}while(isHex(_0x4d6908['next']));0x20==_0x4d6908['next']&&_0x4d6908['advance']();}else _0x4d6908['next']>-0x1&&_0x4d6908['advance']();_0x3d23f5=!0x0;}}},identifiers=new ExternalTokenizer(identifierTokens(identifier$2,VariableName,callee)),queryIdentifiers=new ExternalTokenizer(identifierTokens(queryIdentifier,queryVariableName,QueryCallee)),descendant=new ExternalTokenizer(_0xd6ba4=>{if(space$2['includes'](_0xd6ba4['peek'](-0x1))){let {next:_0x52f633}=_0xd6ba4;(isAlpha(_0x52f633)||_0x52f633==underscore||_0x52f633==hash||_0x52f633==period||_0x52f633==asterisk||_0x52f633==bracketL$1||_0x52f633==colon&&isAlpha(_0xd6ba4['peek'](0x1))||_0x52f633==dash||_0x52f633==ampersand)&&_0xd6ba4['acceptToken'](descendantOp);}}),unitToken=new ExternalTokenizer(_0x41721b=>{if(!space$2['includes'](_0x41721b['peek'](-0x1))){let {next:_0x7ed832}=_0x41721b;if(_0x7ed832==percent&&(_0x41721b['advance'](),_0x41721b['acceptToken'](Unit)),isAlpha(_0x7ed832)){do{_0x41721b['advance']();}while(isAlpha(_0x41721b['next'])||isDigit(_0x41721b['next']));_0x41721b['acceptToken'](Unit);}}}),cssHighlighting=styleTags({'AtKeyword\x20import\x20charset\x20namespace\x20keyframes\x20media\x20supports':tags$1['definitionKeyword'],'from\x20to\x20selector':tags$1['keyword'],'NamespaceName':tags$1['namespace'],'KeyframeName':tags$1['labelName'],'KeyframeRangeName':tags$1['operatorKeyword'],'TagName':tags$1['tagName'],'ClassName':tags$1['className'],'PseudoClassName':tags$1['constant'](tags$1['className']),'IdName':tags$1['labelName'],'FeatureName\x20PropertyName':tags$1['propertyName'],'AttributeName':tags$1['attributeName'],'NumberLiteral':tags$1['number'],'KeywordQuery':tags$1['keyword'],'UnaryQueryOp':tags$1['operatorKeyword'],'CallTag\x20ValueName':tags$1['atom'],'VariableName':tags$1['variableName'],'Callee':tags$1['operatorKeyword'],'Unit':tags$1['unit'],'UniversalSelector\x20NestingSelector':tags$1['definitionOperator'],'MatchOp\x20CompareOp':tags$1['compareOperator'],'ChildOp\x20SiblingOp,\x20LogicOp':tags$1['logicOperator'],'BinOp':tags$1['arithmeticOperator'],'Important':tags$1['modifier'],'Comment':tags$1['blockComment'],'ColorLiteral':tags$1['color'],'ParenthesizedContent\x20StringLiteral':tags$1['string'],':':tags$1['punctuation'],'PseudoOp\x20#':tags$1['derefOperator'],';\x20,':tags$1['separator'],'(\x20)':tags$1['paren'],'[\x20]':tags$1['squareBracket'],'{\x20}':tags$1['brace']}),spec_callee={'__proto__':null,'lang':0x26,'nth-child':0x26,'nth-last-child':0x26,'nth-of-type':0x26,'nth-last-of-type':0x26,'dir':0x26,'host-context':0x26,'if':0x54,'url':0x7c,'url-prefix':0x7c,'domain':0x7c,'regexp':0x7c},spec_queryIdentifier={'__proto__':null,'or':0x62,'and':0x62,'not':0x6a,'only':0x6a,'layer':0xaa},spec_QueryCallee={'__proto__':null,'selector':0x70,'layer':0xa6},spec_AtKeyword={'__proto__':null,'@import':0xa2,'@media':0xae,'@charset':0xb2,'@namespace':0xb6,'@keyframes':0xbc,'@supports':0xc8,'@scope':0xcc},spec_identifier$1={'__proto__':null,'to':0xcf},parser$2=LRParser['deserialize']({'version':0xe,'states':'EbQYQdOOO#qQdOOP#xO`OOOOQP\x27#Cf\x27#CfOOQP\x27#Ce\x27#CeO#}QdO\x27#ChO$nQaO\x27#CcO$xQdO\x27#CkO%TQdO\x27#DpO%YQdO\x27#DrO%_QdO\x27#DuO%_QdO\x27#DxOOQP\x27#FV\x27#FVO&eQhO\x27#EhOOQS\x27#FU\x27#FUOOQS\x27#Ek\x27#EkQYQdOOO&lQdO\x27#EOO&PQhO\x27#EUO&lQdO\x27#EWO\x27aQdO\x27#EYO\x27lQdO\x27#E]O\x27tQhO\x27#EcO(VQdO\x27#EeO(bQaO\x27#CfO)VQ`O\x27#D{O)[Q`O\x27#F`O)gQdO\x27#F`QOQ`OOP)qO&jO\x27#CaPOOO)C@t)C@tOOQP\x27#Cj\x27#CjOOQP,59S,59SO#}QdO,59SO)|QdO,59VO%TQdO,5:[O%YQdO,5:^O%_QdO,5:aO%_QdO,5:cO%_QdO,5:dO%_QdO\x27#ErO*XQ`O,58}O*aQdO\x27#DzOOQS,58},58}OOQP\x27#Cn\x27#CnOOQO\x27#Dn\x27#DnOOQP,59V,59VO*hQ`O,59VO*mQ`O,59VOOQP\x27#Dq\x27#DqOOQP,5:[,5:[OOQO\x27#Ds\x27#DsO*rQpO,5:^O+]QaO,5:aO+sQaO,5:dOOQW\x27#DZ\x27#DZO,ZQhO\x27#DdO,xQhO\x27#FaO\x27tQhO\x27#DbO-WQ`O\x27#DhOOQW\x27#F[\x27#F[O-]Q`O,5;SO-eQ`O\x27#DeOOQS-E8i-E8iOOQ[\x27#Cs\x27#CsO-jQdO\x27#CtO.QQdO\x27#CzO.hQdO\x27#C}O/OQ!pO\x27#DPO1RQ!jO,5:jOOQO\x27#DU\x27#DUO*mQ`O\x27#DTO1cQ!nO\x27#FXO3`Q`O\x27#DVO3eQ`O\x27#DkOOQ[\x27#FX\x27#FXO-`Q`O,5:pO3jQ!bO,5:rOOQS\x27#E[\x27#E[O3rQ`O,5:tO3wQdO,5:tOOQO\x27#E_\x27#E_O4PQ`O,5:wO4UQhO,5:}O%_QdO\x27#DgOOQS,5;P,5;PO-eQ`O,5;PO4^QdO,5;PO4fQdO,5:gO4vQdO\x27#EtO5TQ`O,5;zO5TQ`O,5;zPOOO\x27#Ej\x27#EjP5`O&jO,58{POOO,58{,58{OOQP1G.n1G.nOOQP1G.q1G.qO*hQ`O1G.qO*mQ`O1G.qOOQP1G/v1G/vO5kQpO1G/xO5sQaO1G/{O6ZQaO1G/}O6qQaO1G0OO7XQaO,5;^OOQO-E8p-E8pOOQS1G.i1G.iO7cQ`O,5:fO7hQdO\x27#DoO7oQdO\x27#CrOOQP1G/x1G/xO&lQdO1G/xO7vQ!jO\x27#DZO8UQ!bO,59vO8^QhO,5:OOOQO\x27#F]\x27#F]O8XQ!bO,59zO\x27tQhO,59xO8fQhO\x27#EvO8sQ`O,5;{O9OQhO,59|O9uQhO\x27#DiOOQW,5:S,5:SOOQS1G0n1G0nOOQW,5:P,5:PO9|Q!fO\x27#FYOOQS\x27#FY\x27#FYOOQS\x27#Em\x27#EmO;^QdO,59`OOQ[,59`,59`O;tQdO,59fOOQ[,59f,59fO<[QdO,59iOOQ[,59i,59iOOQ[,59k,59kO&lQdO,59mO<rQhO\x27#EQOOQW\x27#EQ\x27#EQO=WQ`O1G0UO1[QhO1G0UOOQ[,59o,59oO\x27tQhO\x27#DXOOQ[,59q,59qO=]Q#tO,5:VOOQS1G0[1G0[OOQS1G0^1G0^OOQS1G0`1G0`O=hQ`O1G0`O=mQdO\x27#E`OOQS1G0c1G0cOOQS1G0i1G0iO=xQaO,5:RO-`Q`O1G0kOOQS1G0k1G0kO-eQ`O1G0kO>PQ!fO1G0ROOQO1G0R1G0ROOQO,5;`,5;`O>gQdO,5;`OOQO-E8r-E8rO>tQ`O1G1fPOOO-E8h-E8hPOOO1G.g1G.gOOQP7+$]7+$]OOQP7+%d7+%dO&lQdO7+%dOOQS1G0Q1G0QO?PQaO\x27#F_O?ZQ`O,5:ZO?`Q!fO\x27#ElO@^QdO\x27#FWO@hQ`O,59^O@mQ!bO7+%dO&lQdO1G/bO@uQhO1G/fOOQW1G/j1G/jOOQW1G/d1G/dOAWQhO,5;bOOQO-E8t-E8tOAfQhO\x27#DZOAtQhO\x27#F^OBPQ`O\x27#F^OBUQ`O,5:TOOQS-E8k-E8kOOQ[1G.z1G.zOOQ[1G/Q1G/QOOQ[1G/T1G/TOOQ[1G/X1G/XOBZQdO,5:lOOQS7+%p7+%pOB`Q`O7+%pOBeQhO\x27#DYOBmQ`O,59sO\x27tQhO,59sOOQ[1G/q1G/qOBuQ`O1G/qOOQS7+%z7+%zOBzQbO\x27#DPOOQO\x27#Eb\x27#EbOCYQ`O\x27#EaOOQO\x27#Ea\x27#EaOCeQ`O\x27#EwOCmQdO,5:zOOQS,5:z,5:zOOQ[1G/m1G/mOOQS7+&V7+&VO-`Q`O7+&VOCxQ!fO\x27#EsO&lQdO\x27#EsOEPQdO7+%mOOQO7+%m7+%mOOQO1G0z1G0zOEdQ!bO<<IOOElQdO\x27#EqOEvQ`O,5;yOOQP1G/u1G/uOOQS-E8j-E8jOFOQdO\x27#EpOFYQ`O,5;rOOQ]1G.x1G.xOOQP<<IO<<IOOFbQdO7+$|OOQO\x27#D]\x27#D]OFiQ!bO7+%QOFqQhO\x27#EoOF{Q`O,5;xO&lQdO,5;xOOQW1G/o1G/oOOQO\x27#ES\x27#ESOGTQ`O1G0WOOQS<<I[<<I[O&lQdO,59tOGnQhO1G/_OOQ[1G/_1G/_OGuQ`O1G/_OOQW-E8l-E8lOOQ[7+%]7+%]OOQO,5:{,5:{O=pQdO\x27#ExOCeQ`O,5;cOOQS,5;c,5;cOOQS-E8u-E8uOOQS1G0f1G0fOOQS<<Iq<<IqOG}Q!fO,5;_OOQS-E8q-E8qOOQO<<IX<<IXOOQPAN>jAN>jOIUQaO,5;]OOQO-E8o-E8oOI`QdO,5;[OOQO-E8n-E8nOOQW<<Hh<<HhOOQW<<Hl<<HlOIjQhO<<HlOI{QhO,5;ZOJWQ`O,5;ZOOQO-E8m-E8mOJ]QdO1G1dOBZQdO\x27#EuOJgQ`O7+%rOOQW7+%r7+%rOJoQ!bO1G/`OOQ[7+$y7+$yOJzQhO7+$yPKRQ`O\x27#EnOOQO,5;d,5;dOOQO-E8v-E8vOOQS1G0}1G0}OKWQ`OAN>WO&lQdO1G0uOK]Q`O7+\x27OOOQO,5;a,5;aOOQO-E8s-E8sOOQW<<I^<<I^OOQ[<<He<<HePOQW,5;Y,5;YOOQWG23rG23rOKeQdO7+&a','stateData':'Kx~O#sOS#tQQ~OW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#oRO~OQiOW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#ohO~O#m$SP~P!dO#tmO~O#ooO~O]qO`rOarOjsOmtO!juO!mwO#nvO~OpzO!^xO~P$SOc!QO#o|O#p}O~O#o!RO~O#o!TO~OW[OZ[O]TO`VOaVOjWOmXO!jYO!mZO#oRO~OS!]Oe!YO!V![O!Y!`O#q!XOp$TP~Ok$TP~P&POQ!jOe!cOm!dOp!eOr!mOt!mOz!kO!`!lO#o!bO#p!hO#}!fO~Ot!qO!`!lO#o!pO~Ot!sO#o!sO~OS!]Oe!YO!V![O!Y!`O#q!XO~Oe!vOpzO#Z!xO~O]YX`YX`!pXaYXjYXmYXpYX!^YX!jYX!mYX#nYX~O`!zO~Ok!{O#m$SXo$SX~O#m$SXo$SX~P!dO#u#OO#v#OO#w#QO~Oc#UO#o|O#p}O~OpzO!^xO~Oo$SP~P!dOe#`O~Oe#aO~Ol#bO!h#cO~O]qO`rOarOjsOmtO~Op!ia!^!ia!j!ia!m!ia#n!iad!ia~P*zOp!la!^!la!j!la!m!la#n!lad!la~P*zOR#gOS!]Oe!YOr#gOt#gO!V![O!Y!`O#q#dO#}!fO~O!R#iO!^#jOk$TXp$TX~Oe#mO~Ok#oOpzO~Oe!vO~O]#rO`#rOd#uOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl#wO~P&lO]#rO`#rOi#rOj#rOk#rOo#yO~P&lOP#zOSsXesXksXvsX!VsX!YsX!usX!wsX#qsX!TsXQsX]sX`sXdsXisXjsXmsXpsXrsXtsXzsX!`sX#osX#psX#}sXlsXosX!^sX!qsX#msX~Ov#{O!u#|O!w#}Ok$TP~P\x27tOe#aOS#{Xk#{Xv#{X!V#{X!Y#{X!u#{X!w#{X#q#{XQ#{X]#{X`#{Xd#{Xi#{Xj#{Xm#{Xp#{Xr#{Xt#{Xz#{X!`#{X#o#{X#p#{X#}#{Xl#{Xo#{X!^#{X!q#{X#m#{X~Oe$RO~Oe$TO~Ok$VOv#{O~Ok$WO~Ot$XO!`!lO~Op$YO~OpzO!R#iO~OpzO#Z$`O~O!q$bOk!oa#m!oao!oa~P&lOk#hX#m#hXo#hX~P!dOk!{O#m$Sao$Sa~O#u#OO#v#OO#w$hO~Ol$jO!h$kO~Op!ii!^!ii!j!ii!m!ii#n!iid!ii~P*zOp!ki!^!ki!j!ki!m!ki#n!kid!ki~P*zOp!li!^!li!j!li!m!li#n!lid!li~P*zOp#fa!^#fa~P$SOo$lO~Od$RP~P%_Od#zP~P&lO`!PXd}X!R}X!T!PX~O`$sO!T$tO~Od$uO!R#iO~Ok#jXp#jX!^#jX~P\x27tO!^#jOk$Tap$Ta~O!R#iOk!Uap!Ua!^!Uad!Ua`!Ua~OS!]Oe!YO!V![O!Y!`O#q$yO~Od$QP~P9dOv#{OQ#|X]#|X`#|Xd#|Xe#|Xi#|Xj#|Xk#|Xm#|Xp#|Xr#|Xt#|Xz#|X!`#|X#o#|X#p#|X#}#|Xl#|Xo#|X~O]#rO`#rOd%OOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl%PO~P&lO]#rO`#rOi#rOj#rOk#rOo%QO~P&lOe%SOS!tXk!tX!V!tX!Y!tX#q!tX~Ok%TO~Od%YOt%ZO!a%ZO~Ok%[O~Oo%cO#o%^O#}%]O~Od%dO~P$SOv#{O!^%hO!q%jOk!oi#m!oio!oi~P&lOk#ha#m#hao#ha~P!dOk!{O#m$Sio$Si~O!^%mOd$RX~P$SOd%oO~Ov#{OQ#`Xd#`Xe#`Xm#`Xp#`Xr#`Xt#`Xz#`X!^#`X!`#`X#o#`X#p#`X#}#`X~O!^%qOd#zX~P&lOd%sO~Ol%tOv#{O~OR#gOr#gOt#gO#q%vO#}!fO~O!R#iOk#jap#ja!^#ja~O`!PXd}X!R}X!^}X~O!R#iO!^%xOd$QX~O`%zO~Od%{O~O#o%|O~Ok&OO~O`&PO!R#iO~Od&ROk&QO~Od&UO~OP#zOpsX!^sXdsX~O#}%]Op#TX!^#TX~OpzO!^&WO~Oo&[O#o%^O#}%]O~Ov#{OQ#gXe#gXk#gXm#gXp#gXr#gXt#gXz#gX!^#gX!`#gX!q#gX#m#gX#o#gX#p#gX#}#gXo#gX~O!^%hO!q&`Ok!oq#m!oqo!oq~P&lOl&aOv#{O~Od#eX!^#eX~P%_O!^%mOd$Ra~Od#dX!^#dX~P&lO!^%qOd#za~Od&fO~P&lOd&gO!T&hO~Od#cX!^#cX~P9dO!^%xOd$Qa~O]&mOd&oO~OS#bae#ba!V#ba!Y#ba#q#ba~Od&qO~PG]Od&qOk&rO~Ov#{OQ#gae#gak#gam#gap#gar#gat#gaz#ga!^#ga!`#ga!q#ga#m#ga#o#ga#p#ga#}#gao#ga~Od#ea!^#ea~P$SOd#da!^#da~P&lOR#gOr#gOt#gO#q%vO#}%]O~O!R#iOd#ca!^#ca~O`&xO~O!^%xOd$Qi~P&lO]&mOd&|O~Ov#{Od|ik|i~Od&}O~PG]Ok\x27OO~Od\x27PO~O!^%xOd$Qq~Od#cq!^#cq~P&lO#s!a#t#}]#}v!m~','goto':'2h$UPPPPP$VP$YP$c$uP$cP%X$cPP%_PPP%e%o%oPPPPP%oPP%oP&]P%oP%o\x27W%oP\x27t\x27w\x27}\x27}(^\x27}P\x27}P\x27}P\x27}\x27}P(m\x27}(yP(|PP)p)v$c)|$c*SP$cP$c$cP*Y*{+YP$YP+aP+dP$YP$YP$YP+j$YP+m+p+s+z$YP$YPP$YP,P,V,f,|-[-b-l-r-x.O.U.`.f.l.rPPPPPPPPPPP.x/R/w/z0|P1U1u2O2R2U2[RnQ_^OP`kz!{$dq[OPYZ`kuvwxz!v!{#`$d%mqSOPYZ`kuvwxz!v!{#`$d%mQpTR#RqQ!OVR#SrQ#S!QS$Q!i!jR$i#U!V!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x\x27Q!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x\x27QU#g!Y$t&hU%`$Y%b&WR&V%_!V!iac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x\x27QR$S!kQ%W$RR&S%Xk!^]bf!Y![!g#i#j#m$P$R%X%xQ#e!YQ${#mQ%w$tQ&j%xR&w&hQ!ygQ#p!`Q$^!xR%f$`R#n!]!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x\x27QQ!qdR$X!rQ!PVR#TrQ#S!PR$i#TQ!SWR#VsQ!UXR#WtQ{UQ!wgQ#^yQ#o!_Q$U!nQ$[!uQ$_!yQ%e$^Q&Y%aQ&]%fR&v&XSjPzQ!}kQ$c!{R%k$dZiPkz!{$dR$P!gQ%}%SR&z&mR!rdR!teR$Z!tS%a$Y%bR&t&WV%_$Y%b&WQ#PmR$g#PQ`OSkPzU!a`k$dR$d!{Q$p#aY%p$p%u&d&l\x27QQ%u$sQ&d%qQ&l%zR\x27Q&xQ#t!cQ#v!dQ#x!eV$}#t#v#xQ%X$RR&T%XQ%y$zS&k%y&yR&y&lQ%r$pR&e%rQ%n$mR&c%nQyUR#]yQ%i$aR&_%iQ!|jS$e!|$fR$f!}Q&n%}R&{&nQ#k!ZR$x#kQ%b$YR&Z%bQ&X%aR&u&X__OP`kz!{$d^UOP`kz!{$dQ!VYQ!WZQ#XuQ#YvQ#ZwQ#[xQ$]!vQ$m#`R&b%mR$q#aQ!gaQ!oc[#q!c!d!e#t#v#xQ$a!zd$o#a$p$s%q%u%z&d&l&x\x27QQ$r#cQ%R#{S%g$a%iQ%l$kQ&^%hR&p&P]#s!c!d!e#t#v#xW!Z]b!g$PQ!ufQ#f!YQ#l![Q$v#iQ$w#jQ$z#mS%V$R%XR&i%xQ#h!YQ%w$tR&w&hR$|#mR$n#`QlPR#_zQ!_]Q!nbQ$O!gR%U$P','nodeNames':'⚠\x20Unit\x20VariableName\x20VariableName\x20QueryCallee\x20Comment\x20StyleSheet\x20RuleSet\x20UniversalSelector\x20TagSelector\x20TagName\x20NestingSelector\x20ClassSelector\x20.\x20ClassName\x20PseudoClassSelector\x20:\x20::\x20PseudoClassName\x20PseudoClassName\x20)\x20(\x20ArgList\x20ValueName\x20ParenthesizedValue\x20AtKeyword\x20#\x20;\x20]\x20[\x20BracketedValue\x20}\x20{\x20BracedValue\x20ColorLiteral\x20NumberLiteral\x20StringLiteral\x20BinaryExpression\x20BinOp\x20CallExpression\x20Callee\x20IfExpression\x20if\x20ArgList\x20IfBranch\x20KeywordQuery\x20FeatureQuery\x20FeatureName\x20BinaryQuery\x20LogicOp\x20ComparisonQuery\x20CompareOp\x20UnaryQuery\x20UnaryQueryOp\x20ParenthesizedQuery\x20SelectorQuery\x20selector\x20ParenthesizedSelector\x20CallQuery\x20ArgList\x20,\x20CallLiteral\x20CallTag\x20ParenthesizedContent\x20PseudoClassName\x20ArgList\x20IdSelector\x20IdName\x20AttributeSelector\x20AttributeName\x20MatchOp\x20ChildSelector\x20ChildOp\x20DescendantSelector\x20SiblingSelector\x20SiblingOp\x20Block\x20Declaration\x20PropertyName\x20Important\x20ImportStatement\x20import\x20Layer\x20layer\x20LayerName\x20layer\x20MediaStatement\x20media\x20CharsetStatement\x20charset\x20NamespaceStatement\x20namespace\x20NamespaceName\x20KeyframesStatement\x20keyframes\x20KeyframeName\x20KeyframeList\x20KeyframeSelector\x20KeyframeRangeName\x20SupportsStatement\x20supports\x20ScopeStatement\x20scope\x20to\x20AtRule\x20Styles','maxTerm':0x8f,'nodeProps':[['isolate',-0x2,0x5,0x24,''],['openedBy',0x14,'(',0x1c,'[',0x1f,'{'],['closedBy',0x15,')',0x1d,']',0x20,'}']],'propSources':[cssHighlighting],'skippedNodes':[0x0,0x5,0x6a],'repeatNodeCount':0xf,'tokenData':'JQ~R!YOX$qX^%i^p$qpq%iqr({rs-ust/itu6Wuv$qvw7Qwx7cxy9Qyz9cz{9h{|:R|}>t}!O?V!O!P?t!P!Q@]!Q![AU![!]BP!]!^B{!^!_C^!_!`DY!`!aDm!a!b$q!b!cEn!c!}$q!}#OG{#O#P$q#P#QH^#Q#R6W#R#o$q#o#pHo#p#q6W#q#rIQ#r#sIc#s#y$q#y#z%i#z$f$q$f$g%i$g#BY$q#BY#BZ%i#BZ$IS$q$IS$I_%i$I_$I|$q$I|$JO%i$JO$JT$q$JT$JU%i$JU$KV$q$KV$KW%i$KW&FU$q&FU&FV%i&FV;\x27S$q;\x27S;=`Iz<%lO$q`$tSOy%Qz;\x27S%Q;\x27S;=`%c<%lO%Q`%VS!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%Q`%fP;=`<%l%Q~%nh#s~OX%QX^\x27Y^p%Qpq\x27Yqy%Qz#y%Q#y#z\x27Y#z$f%Q$f$g\x27Y$g#BY%Q#BY#BZ\x27Y#BZ$IS%Q$IS$I_\x27Y$I_$I|%Q$I|$JO\x27Y$JO$JT%Q$JT$JU\x27Y$JU$KV%Q$KV$KW\x27Y$KW&FU%Q&FU&FV\x27Y&FV;\x27S%Q;\x27S;=`%c<%lO%Q~\x27ah#s~!a`OX%QX^\x27Y^p%Qpq\x27Yqy%Qz#y%Q#y#z\x27Y#z$f%Q$f$g\x27Y$g#BY%Q#BY#BZ\x27Y#BZ$IS%Q$IS$I_\x27Y$I_$I|%Q$I|$JO\x27Y$JO$JT%Q$JT$JU\x27Y$JU$KV%Q$KV$KW\x27Y$KW&FU%Q&FU&FV\x27Y&FV;\x27S%Q;\x27S;=`%c<%lO%Qj)OUOy%Qz#]%Q#]#^)b#^;\x27S%Q;\x27S;=`%c<%lO%Qj)gU!a`Oy%Qz#a%Q#a#b)y#b;\x27S%Q;\x27S;=`%c<%lO%Qj*OU!a`Oy%Qz#d%Q#d#e*b#e;\x27S%Q;\x27S;=`%c<%lO%Qj*gU!a`Oy%Qz#c%Q#c#d*y#d;\x27S%Q;\x27S;=`%c<%lO%Qj+OU!a`Oy%Qz#f%Q#f#g+b#g;\x27S%Q;\x27S;=`%c<%lO%Qj+gU!a`Oy%Qz#h%Q#h#i+y#i;\x27S%Q;\x27S;=`%c<%lO%Qj,OU!a`Oy%Qz#T%Q#T#U,b#U;\x27S%Q;\x27S;=`%c<%lO%Qj,gU!a`Oy%Qz#b%Q#b#c,y#c;\x27S%Q;\x27S;=`%c<%lO%Qj-OU!a`Oy%Qz#h%Q#h#i-b#i;\x27S%Q;\x27S;=`%c<%lO%Qj-iS!qY!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%Q~-xWOY-uZr-urs.bs#O-u#O#P.g#P;\x27S-u;\x27S;=`/c<%lO-u~.gOt~~.jRO;\x27S-u;\x27S;=`.s;=`O-u~.vXOY-uZr-urs.bs#O-u#O#P.g#P;\x27S-u;\x27S;=`/c;=`<%l-u<%lO-u~/fP;=`<%l-uj/nYjYOy%Qz!Q%Q!Q![0^![!c%Q!c!i0^!i#T%Q#T#Z0^#Z;\x27S%Q;\x27S;=`%c<%lO%Qj0cY!a`Oy%Qz!Q%Q!Q![1R![!c%Q!c!i1R!i#T%Q#T#Z1R#Z;\x27S%Q;\x27S;=`%c<%lO%Qj1WY!a`Oy%Qz!Q%Q!Q![1v![!c%Q!c!i1v!i#T%Q#T#Z1v#Z;\x27S%Q;\x27S;=`%c<%lO%Qj1}YrY!a`Oy%Qz!Q%Q!Q![2m![!c%Q!c!i2m!i#T%Q#T#Z2m#Z;\x27S%Q;\x27S;=`%c<%lO%Qj2tYrY!a`Oy%Qz!Q%Q!Q![3d![!c%Q!c!i3d!i#T%Q#T#Z3d#Z;\x27S%Q;\x27S;=`%c<%lO%Qj3iY!a`Oy%Qz!Q%Q!Q![4X![!c%Q!c!i4X!i#T%Q#T#Z4X#Z;\x27S%Q;\x27S;=`%c<%lO%Qj4`YrY!a`Oy%Qz!Q%Q!Q![5O![!c%Q!c!i5O!i#T%Q#T#Z5O#Z;\x27S%Q;\x27S;=`%c<%lO%Qj5TY!a`Oy%Qz!Q%Q!Q![5s![!c%Q!c!i5s!i#T%Q#T#Z5s#Z;\x27S%Q;\x27S;=`%c<%lO%Qj5zSrY!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%Qd6ZUOy%Qz!_%Q!_!`6m!`;\x27S%Q;\x27S;=`%c<%lO%Qd6tS!hS!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%Qb7VSZQOy%Qz;\x27S%Q;\x27S;=`%c<%lO%Q~7fWOY7cZw7cwx.bx#O7c#O#P8O#P;\x27S7c;\x27S;=`8z<%lO7c~8RRO;\x27S7c;\x27S;=`8[;=`O7c~8_XOY7cZw7cwx.bx#O7c#O#P8O#P;\x27S7c;\x27S;=`8z;=`<%l7c<%lO7c~8}P;=`<%l7cj9VSeYOy%Qz;\x27S%Q;\x27S;=`%c<%lO%Q~9hOd~n9oUWQvWOy%Qz!_%Q!_!`6m!`;\x27S%Q;\x27S;=`%c<%lO%Qj:YWvW!mQOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;\x27S%Q;\x27S;=`%c<%lO%Qj:wU!a`Oy%Qz!Q%Q!Q![;Z![;\x27S%Q;\x27S;=`%c<%lO%Qj;bY!a`#}YOy%Qz!Q%Q!Q![;Z![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;\x27S%Q;\x27S;=`%c<%lO%Qj<VY!a`Oy%Qz{%Q{|<u|}%Q}!O<u!O!Q%Q!Q![=^![;\x27S%Q;\x27S;=`%c<%lO%Qj<zU!a`Oy%Qz!Q%Q!Q![=^![;\x27S%Q;\x27S;=`%c<%lO%Qj=eU!a`#}YOy%Qz!Q%Q!Q![=^![;\x27S%Q;\x27S;=`%c<%lO%Qj>O[!a`#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;\x27S%Q;\x27S;=`%c<%lO%Qj>yS!^YOy%Qz;\x27S%Q;\x27S;=`%c<%lO%Qj?[WvWOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;\x27S%Q;\x27S;=`%c<%lO%Qj?yU]YOy%Qz!Q%Q!Q![;Z![;\x27S%Q;\x27S;=`%c<%lO%Q~@bTvWOy%Qz{@q{;\x27S%Q;\x27S;=`%c<%lO%Q~@xS!a`#t~Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjAZ[#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;\x27S%Q;\x27S;=`%c<%lO%QjBUU`YOy%Qz![%Q![!]Bh!];\x27S%Q;\x27S;=`%c<%lO%QbBoSaQ!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjCQSkYOy%Qz;\x27S%Q;\x27S;=`%c<%lO%QhCcU!TWOy%Qz!_%Q!_!`Cu!`;\x27S%Q;\x27S;=`%c<%lO%QhC|S!TW!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%QlDaS!TW!hSOy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjDtV!jQ!TWOy%Qz!_%Q!_!`Cu!`!aEZ!a;\x27S%Q;\x27S;=`%c<%lO%QbEbS!jQ!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjEqYOy%Qz}%Q}!OFa!O!c%Q!c!}GO!}#T%Q#T#oGO#o;\x27S%Q;\x27S;=`%c<%lO%QjFfW!a`Oy%Qz!c%Q!c!}GO!}#T%Q#T#oGO#o;\x27S%Q;\x27S;=`%c<%lO%QjGV[iY!a`Oy%Qz}%Q}!OGO!O!Q%Q!Q![GO![!c%Q!c!}GO!}#T%Q#T#oGO#o;\x27S%Q;\x27S;=`%c<%lO%QjHQSmYOy%Qz;\x27S%Q;\x27S;=`%c<%lO%QnHcSl^Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjHtSpYOy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjIVSoYOy%Qz;\x27S%Q;\x27S;=`%c<%lO%QfIhU!mQOy%Qz!_%Q!_!`6m!`;\x27S%Q;\x27S;=`%c<%lO%Q`I}P;=`<%l$q','tokenizers':[descendant,unitToken,identifiers,queryIdentifiers,0x1,0x2,0x3,0x4,new LocalTokenGroup('m~RRYZ[z{a~~g~aO#v~~dP!P!Qg~lO#w~~',0x1c,0x81)],'topRules':{'StyleSheet':[0x0,0x6],'Styles':[0x1,0x69]},'specialized':[{'term':0x7c,'get':_0x22fc8f=>spec_callee[_0x22fc8f]||-0x1},{'term':0x7d,'get':_0x8637fc=>spec_queryIdentifier[_0x8637fc]||-0x1},{'term':0x4,'get':_0x5ce2f9=>spec_QueryCallee[_0x5ce2f9]||-0x1},{'term':0x19,'get':_0x54a7c6=>spec_AtKeyword[_0x54a7c6]||-0x1},{'term':0x7b,'get':_0x242eca=>spec_identifier$1[_0x242eca]||-0x1}],'tokenPrec':0x7ab});let _properties=null;function properties(){if(!_properties&&'object'==typeof document&&document['body']){let {style:_0x1f8eaf}=document['body'],_0x8fd179=[],_0x41e464=new Set();for(let _0x1b6873 in _0x1f8eaf)'cssText'!=_0x1b6873&&'cssFloat'!=_0x1b6873&&'string'==typeof _0x1f8eaf[_0x1b6873]&&(/[A-Z]/['test'](_0x1b6873)&&(_0x1b6873=_0x1b6873['replace'](/[A-Z]/g,_0x214a1a=>'-'+_0x214a1a['toLowerCase']())),_0x41e464['has'](_0x1b6873)||(_0x8fd179['push'](_0x1b6873),_0x41e464['add'](_0x1b6873)));_properties=_0x8fd179['sort']()['map'](_0x5260b4=>({'type':'property','label':_0x5260b4,'apply':_0x5260b4+':\x20'}));}return _properties||[];}const pseudoClasses=['active','after','any-link','autofill','backdrop','before','checked','cue','default','defined','disabled','empty','enabled','file-selector-button','first','first-child','first-letter','first-line','first-of-type','focus','focus-visible','focus-within','fullscreen','has','host','host-context','hover','in-range','indeterminate','invalid','is','lang','last-child','last-of-type','left','link','marker','modal','not','nth-child','nth-last-child','nth-last-of-type','nth-of-type','only-child','only-of-type','optional','out-of-range','part','placeholder','placeholder-shown','read-only','read-write','required','right','root','scope','selection','slotted','target','target-text','valid','visited','where']['map'](_0x66fe23=>({'type':'class','label':_0x66fe23})),values=['above','absolute','activeborder','additive','activecaption','after-white-space','ahead','alias','all','all-scroll','alphabetic','alternate','always','antialiased','appworkspace','asterisks','attr','auto','auto-flow','avoid','avoid-column','avoid-page','avoid-region','axis-pan','background','backwards','baseline','below','bidi-override','blink','block','block-axis','bold','bolder','border','border-box','both','bottom','break','break-all','break-word','bullets','button','button-bevel','buttonface','buttonhighlight','buttonshadow','buttontext','calc','capitalize','caps-lock-indicator','caption','captiontext','caret','cell','center','checkbox','circle','cjk-decimal','clear','clip','close-quote','col-resize','collapse','color','color-burn','color-dodge','column','column-reverse','compact','condensed','contain','content','contents','content-box','context-menu','continuous','copy','counter','counters','cover','crop','cross','crosshair','currentcolor','cursive','cyclic','darken','dashed','decimal','decimal-leading-zero','default','default-button','dense','destination-atop','destination-in','destination-out','destination-over','difference','disc','discard','disclosure-closed','disclosure-open','document','dot-dash','dot-dot-dash','dotted','double','down','e-resize','ease','ease-in','ease-in-out','ease-out','element','ellipse','ellipsis','embed','end','ethiopic-abegede-gez','ethiopic-halehame-aa-er','ethiopic-halehame-gez','ew-resize','exclusion','expanded','extends','extra-condensed','extra-expanded','fantasy','fast','fill','fill-box','fixed','flat','flex','flex-end','flex-start','footnotes','forwards','from','geometricPrecision','graytext','grid','groove','hand','hard-light','help','hidden','hide','higher','highlight','highlighttext','horizontal','hsl','hsla','hue','icon','ignore','inactiveborder','inactivecaption','inactivecaptiontext','infinite','infobackground','infotext','inherit','initial','inline','inline-axis','inline-block','inline-flex','inline-grid','inline-table','inset','inside','intrinsic','invert','italic','justify','keep-all','landscape','large','larger','left','level','lighter','lighten','line-through','linear','linear-gradient','lines','list-item','listbox','listitem','local','logical','loud','lower','lower-hexadecimal','lower-latin','lower-norwegian','lowercase','ltr','luminosity','manipulation','match','matrix','matrix3d','medium','menu','menutext','message-box','middle','min-intrinsic','mix','monospace','move','multiple','multiple_mask_images','multiply','n-resize','narrower','ne-resize','nesw-resize','no-close-quote','no-drop','no-open-quote','no-repeat','none','normal','not-allowed','nowrap','ns-resize','numbers','numeric','nw-resize','nwse-resize','oblique','opacity','open-quote','optimizeLegibility','optimizeSpeed','outset','outside','outside-shape','overlay','overline','padding','padding-box','painted','page','paused','perspective','pinch-zoom','plus-darker','plus-lighter','pointer','polygon','portrait','pre','pre-line','pre-wrap','preserve-3d','progress','push-button','radial-gradient','radio','read-only','read-write','read-write-plaintext-only','rectangle','region','relative','repeat','repeating-linear-gradient','repeating-radial-gradient','repeat-x','repeat-y','reset','reverse','rgb','rgba','ridge','right','rotate','rotate3d','rotateX','rotateY','rotateZ','round','row','row-resize','row-reverse','rtl','run-in','running','s-resize','sans-serif','saturation','scale','scale3d','scaleX','scaleY','scaleZ','screen','scroll','scrollbar','scroll-position','se-resize','self-start','self-end','semi-condensed','semi-expanded','separate','serif','show','single','skew','skewX','skewY','skip-white-space','slide','slider-horizontal','slider-vertical','sliderthumb-horizontal','sliderthumb-vertical','slow','small','small-caps','small-caption','smaller','soft-light','solid','source-atop','source-in','source-out','source-over','space','space-around','space-between','space-evenly','spell-out','square','start','static','status-bar','stretch','stroke','stroke-box','sub','subpixel-antialiased','svg_masks','super','sw-resize','symbolic','symbols','system-ui','table','table-caption','table-cell','table-column','table-column-group','table-footer-group','table-header-group','table-row','table-row-group','text','text-bottom','text-top','textarea','textfield','thick','thin','threeddarkshadow','threedface','threedhighlight','threedlightshadow','threedshadow','to','top','transform','translate','translate3d','translateX','translateY','translateZ','transparent','ultra-condensed','ultra-expanded','underline','unidirectional-pan','unset','up','upper-latin','uppercase','url','var','vertical','vertical-text','view-box','visible','visibleFill','visiblePainted','visibleStroke','visual','w-resize','wait','wave','wider','window','windowframe','windowtext','words','wrap','wrap-reverse','x-large','x-small','xor','xx-large','xx-small']['map'](_0x506053=>({'type':'keyword','label':_0x506053}))['concat'](['aliceblue','antiquewhite','aqua','aquamarine','azure','beige','bisque','black','blanchedalmond','blue','blueviolet','brown','burlywood','cadetblue','chartreuse','chocolate','coral','cornflowerblue','cornsilk','crimson','cyan','darkblue','darkcyan','darkgoldenrod','darkgray','darkgreen','darkkhaki','darkmagenta','darkolivegreen','darkorange','darkorchid','darkred','darksalmon','darkseagreen','darkslateblue','darkslategray','darkturquoise','darkviolet','deeppink','deepskyblue','dimgray','dodgerblue','firebrick','floralwhite','forestgreen','fuchsia','gainsboro','ghostwhite','gold','goldenrod','gray','grey','green','greenyellow','honeydew','hotpink','indianred','indigo','ivory','khaki','lavender','lavenderblush','lawngreen','lemonchiffon','lightblue','lightcoral','lightcyan','lightgoldenrodyellow','lightgray','lightgreen','lightpink','lightsalmon','lightseagreen','lightskyblue','lightslategray','lightsteelblue','lightyellow','lime','limegreen','linen','magenta','maroon','mediumaquamarine','mediumblue','mediumorchid','mediumpurple','mediumseagreen','mediumslateblue','mediumspringgreen','mediumturquoise','mediumvioletred','midnightblue','mintcream','mistyrose','moccasin','navajowhite','navy','oldlace','olive','olivedrab','orange','orangered','orchid','palegoldenrod','palegreen','paleturquoise','palevioletred','papayawhip','peachpuff','peru','pink','plum','powderblue','purple','rebeccapurple','red','rosybrown','royalblue','saddlebrown','salmon','sandybrown','seagreen','seashell','sienna','silver','skyblue','slateblue','slategray','snow','springgreen','steelblue','tan','teal','thistle','tomato','turquoise','violet','wheat','white','whitesmoke','yellow','yellowgreen']['map'](_0x5cb333=>({'type':'constant','label':_0x5cb333}))),tags=['a','abbr','address','article','aside','b','bdi','bdo','blockquote','body','br','button','canvas','caption','cite','code','col','colgroup','dd','del','details','dfn','dialog','div','dl','dt','em','figcaption','figure','footer','form','header','hgroup','h1','h2','h3','h4','h5','h6','hr','html','i','iframe','img','input','ins','kbd','label','legend','li','main','meter','nav','ol','output','p','pre','ruby','section','select','small','source','span','strong','sub','summary','sup','table','tbody','td','template','textarea','tfoot','th','thead','tr','u','ul']['map'](_0x3c4e56=>({'type':'type','label':_0x3c4e56})),atRules=['@charset','@color-profile','@container','@counter-style','@font-face','@font-feature-values','@font-palette-values','@import','@keyframes','@layer','@media','@namespace','@page','@position-try','@property','@scope','@starting-style','@supports','@view-transition']['map'](_0x1a3b43=>({'type':'keyword','label':_0x1a3b43})),identifier$1=/^(\w[\w-]*|-\w[\w-]*|)$/,variable=/^-(-[\w-]*)?$/;function isVarArg(_0x4af6c3,_0x1f350f){var _0x1d3eb0;if(('('==_0x4af6c3['name']||_0x4af6c3['type']['isError'])&&(_0x4af6c3=_0x4af6c3['parent']||_0x4af6c3),'ArgList'!=_0x4af6c3['name'])return!0x1;let _0x3b93ba=null===(_0x1d3eb0=_0x4af6c3['parent'])||void 0x0===_0x1d3eb0?void 0x0:_0x1d3eb0['firstChild'];return'Callee'==(null==_0x3b93ba?void 0x0:_0x3b93ba['name'])&&'var'==_0x1f350f['sliceString'](_0x3b93ba['from'],_0x3b93ba['to']);}const VariablesByNode=new NodeWeakMap(),declSelector=['Declaration'];function astTop(_0x4c25cb){for(let _0x229e8f=_0x4c25cb;;){if(_0x229e8f['type']['isTop'])return _0x229e8f;if(!(_0x229e8f=_0x229e8f['parent']))return _0x4c25cb;}}function variableNames(_0x11d0dd,_0x1ba7ff,_0x468a44){if(_0x1ba7ff['to']-_0x1ba7ff['from']>0x1000){let _0x5c5e40=VariablesByNode['get'](_0x1ba7ff);if(_0x5c5e40)return _0x5c5e40;let _0x1668d4=[],_0x486057=new Set(),_0x1ac0be=_0x1ba7ff['cursor'](IterMode['IncludeAnonymous']);if(_0x1ac0be['firstChild']())do{for(let _0x267cef of variableNames(_0x11d0dd,_0x1ac0be['node'],_0x468a44))_0x486057['has'](_0x267cef['label'])||(_0x486057['add'](_0x267cef['label']),_0x1668d4['push'](_0x267cef));}while(_0x1ac0be['nextSibling']());return VariablesByNode['set'](_0x1ba7ff,_0x1668d4),_0x1668d4;}{let _0x11f8ee=[],_0x42b856=new Set();return _0x1ba7ff['cursor']()['iterate'](_0x5812ad=>{var _0x445a4d;if(_0x468a44(_0x5812ad)&&_0x5812ad['matchContext'](declSelector)&&':'==(null===(_0x445a4d=_0x5812ad['node']['nextSibling'])||void 0x0===_0x445a4d?void 0x0:_0x445a4d['name'])){let _0x44578d=_0x11d0dd['sliceString'](_0x5812ad['from'],_0x5812ad['to']);_0x42b856['has'](_0x44578d)||(_0x42b856['add'](_0x44578d),_0x11f8ee['push']({'label':_0x44578d,'type':'variable'}));}}),_0x11f8ee;}}const defineCSSCompletionSource=_0x227feb=>_0x344649=>{let {state:_0x5bd454,pos:_0x4e7ac6}=_0x344649,_0x569b5d=syntaxTree(_0x5bd454)['resolveInner'](_0x4e7ac6,-0x1),_0x13c2a2=_0x569b5d['type']['isError']&&_0x569b5d['from']==_0x569b5d['to']-0x1&&'-'==_0x5bd454['doc']['sliceString'](_0x569b5d['from'],_0x569b5d['to']);if('PropertyName'==_0x569b5d['name']||(_0x13c2a2||'TagName'==_0x569b5d['name'])&&/^(Block|Styles)$/['test'](_0x569b5d['resolve'](_0x569b5d['to'])['name']))return{'from':_0x569b5d['from'],'options':properties(),'validFor':identifier$1};if('ValueName'==_0x569b5d['name'])return{'from':_0x569b5d['from'],'options':values,'validFor':identifier$1};if('PseudoClassName'==_0x569b5d['name'])return{'from':_0x569b5d['from'],'options':pseudoClasses,'validFor':identifier$1};if(_0x227feb(_0x569b5d)||(_0x344649['explicit']||_0x13c2a2)&&isVarArg(_0x569b5d,_0x5bd454['doc']))return{'from':_0x227feb(_0x569b5d)||_0x13c2a2?_0x569b5d['from']:_0x4e7ac6,'options':variableNames(_0x5bd454['doc'],astTop(_0x569b5d),_0x227feb),'validFor':variable};if('TagName'==_0x569b5d['name']){for(let {parent:_0x38f774}=_0x569b5d;_0x38f774;_0x38f774=_0x38f774['parent'])if('Block'==_0x38f774['name'])return{'from':_0x569b5d['from'],'options':properties(),'validFor':identifier$1};return{'from':_0x569b5d['from'],'options':tags,'validFor':identifier$1};}if('AtKeyword'==_0x569b5d['name'])return{'from':_0x569b5d['from'],'options':atRules,'validFor':identifier$1};if(!_0x344649['explicit'])return null;let _0x47f96c=_0x569b5d['resolve'](_0x4e7ac6),_0xb8bc0b=_0x47f96c['childBefore'](_0x4e7ac6);return _0xb8bc0b&&':'==_0xb8bc0b['name']&&'PseudoClassSelector'==_0x47f96c['name']?{'from':_0x4e7ac6,'options':pseudoClasses,'validFor':identifier$1}:_0xb8bc0b&&':'==_0xb8bc0b['name']&&'Declaration'==_0x47f96c['name']||'ArgList'==_0x47f96c['name']?{'from':_0x4e7ac6,'options':values,'validFor':identifier$1}:'Block'==_0x47f96c['name']||'Styles'==_0x47f96c['name']?{'from':_0x4e7ac6,'options':properties(),'validFor':identifier$1}:null;},cssCompletionSource=defineCSSCompletionSource(_0x1e4f50=>'VariableName'==_0x1e4f50['name']),cssLanguage=LRLanguage['define']({'name':'css','parser':parser$2['configure']({'props':[indentNodeProp['add']({'Declaration':continuedIndent()}),foldNodeProp['add']({'Block\x20KeyframeList':foldInside})]}),'languageData':{'commentTokens':{'block':{'open':'/*','close':'*/'}},'indentOnInput':/^\s*\}$/,'wordChars':'-'}});function css(){return new LanguageSupport(cssLanguage,cssLanguage['data']['of']({'autocomplete':cssCompletionSource}));}const noSemi=0x13c,noSemiType=0x13d,incdec=0x1,incdecPrefix=0x2,questionDot=0x3,JSXStartTag=0x4,insertSemi=0x13e,spaces=0x140,newline=0x141,LineComment=0x5,BlockComment=0x6,Dialect_jsx=0x0,space$1=[0x9,0xa,0xb,0xc,0xd,0x20,0x85,0xa0,0x1680,0x2000,0x2001,0x2002,0x2003,0x2004,0x2005,0x2006,0x2007,0x2008,0x2009,0x200a,0x2028,0x2029,0x202f,0x205f,0x3000],braceR=0x7d,semicolon=0x3b,slash=0x2f,star=0x2a,plus=0x2b,minus=0x2d,lt=0x3c,comma=0x2c,question=0x3f,dot=0x2e,bracketL=0x5b,trackNewline=new ContextTracker({'start':!0x1,'shift':(_0x18a0ee,_0x3cd864)=>_0x3cd864==LineComment||_0x3cd864==BlockComment||_0x3cd864==spaces?_0x18a0ee:_0x3cd864==newline,'strict':!0x1}),insertSemicolon=new ExternalTokenizer((_0x18c4fa,_0x4764e4)=>{let {next:_0x298982}=_0x18c4fa;(_0x298982==braceR||-0x1==_0x298982||_0x4764e4['context'])&&_0x18c4fa['acceptToken'](insertSemi);},{'contextual':!0x0,'fallback':!0x0}),noSemicolon=new ExternalTokenizer((_0x566a7d,_0x2a88c2)=>{let _0xc954ed,{next:_0x15674d}=_0x566a7d;space$1['indexOf'](_0x15674d)>-0x1||(_0x15674d!=slash||(_0xc954ed=_0x566a7d['peek'](0x1))!=slash&&_0xc954ed!=star)&&(_0x15674d==braceR||_0x15674d==semicolon||-0x1==_0x15674d||_0x2a88c2['context']||_0x566a7d['acceptToken'](noSemi));},{'contextual':!0x0}),noSemicolonType=new ExternalTokenizer((_0x4cca8c,_0x31b63d)=>{_0x4cca8c['next']!=bracketL||_0x31b63d['context']||_0x4cca8c['acceptToken'](noSemiType);},{'contextual':!0x0}),operatorToken=new ExternalTokenizer((_0x4d06b7,_0x897c82)=>{let {next:_0x5dfdbf}=_0x4d06b7;if(_0x5dfdbf==plus||_0x5dfdbf==minus){if(_0x4d06b7['advance'](),_0x5dfdbf==_0x4d06b7['next']){_0x4d06b7['advance']();let _0x11a360=!_0x897c82['context']&&_0x897c82['canShift'](incdec);_0x4d06b7['acceptToken'](_0x11a360?incdec:incdecPrefix);}}else _0x5dfdbf==question&&_0x4d06b7['peek'](0x1)==dot&&(_0x4d06b7['advance'](),_0x4d06b7['advance'](),(_0x4d06b7['next']<0x30||_0x4d06b7['next']>0x39)&&_0x4d06b7['acceptToken'](questionDot));},{'contextual':!0x0});function identifierChar(_0x3f22cb,_0x40c8ee){return _0x3f22cb>=0x41&&_0x3f22cb<=0x5a||_0x3f22cb>=0x61&&_0x3f22cb<=0x7a||0x5f==_0x3f22cb||_0x3f22cb>=0xc0||!_0x40c8ee&&_0x3f22cb>=0x30&&_0x3f22cb<=0x39;}const jsx=new ExternalTokenizer((_0x39e400,_0x14d8bf)=>{if(_0x39e400['next']!=lt||!_0x14d8bf['dialectEnabled'](Dialect_jsx))return;if(_0x39e400['advance'](),_0x39e400['next']==slash)return;let _0x24e102=0x0;for(;space$1['indexOf'](_0x39e400['next'])>-0x1;)_0x39e400['advance'](),_0x24e102++;if(identifierChar(_0x39e400['next'],!0x0)){for(_0x39e400['advance'](),_0x24e102++;identifierChar(_0x39e400['next'],!0x1);)_0x39e400['advance'](),_0x24e102++;for(;space$1['indexOf'](_0x39e400['next'])>-0x1;)_0x39e400['advance'](),_0x24e102++;if(_0x39e400['next']==comma)return;for(let _0x1401e4=0x0;;_0x1401e4++){if(0x7==_0x1401e4){if(!identifierChar(_0x39e400['next'],!0x0))return;break;}if(_0x39e400['next']!='extends'['charCodeAt'](_0x1401e4))break;_0x39e400['advance'](),_0x24e102++;}}_0x39e400['acceptToken'](JSXStartTag,-_0x24e102);}),jsHighlight=styleTags({'get\x20set\x20async\x20static':tags$1['modifier'],'for\x20while\x20do\x20if\x20else\x20switch\x20try\x20catch\x20finally\x20return\x20throw\x20break\x20continue\x20default\x20case\x20defer':tags$1['controlKeyword'],'in\x20of\x20await\x20yield\x20void\x20typeof\x20delete\x20instanceof\x20as\x20satisfies':tags$1['operatorKeyword'],'let\x20var\x20const\x20using\x20function\x20class\x20extends':tags$1['definitionKeyword'],'import\x20export\x20from':tags$1['moduleKeyword'],'with\x20debugger\x20new':tags$1['keyword'],'TemplateString':tags$1['special'](tags$1['string']),'super':tags$1['atom'],'BooleanLiteral':tags$1['bool'],'this':tags$1['self'],'null':tags$1['null'],'Star':tags$1['modifier'],'VariableName':tags$1['variableName'],'CallExpression/VariableName\x20TaggedTemplateExpression/VariableName':tags$1['function'](tags$1['variableName']),'VariableDefinition':tags$1['definition'](tags$1['variableName']),'Label':tags$1['labelName'],'PropertyName':tags$1['propertyName'],'PrivatePropertyName':tags$1['special'](tags$1['propertyName']),'CallExpression/MemberExpression/PropertyName':tags$1['function'](tags$1['propertyName']),'FunctionDeclaration/VariableDefinition':tags$1['function'](tags$1['definition'](tags$1['variableName'])),'ClassDeclaration/VariableDefinition':tags$1['definition'](tags$1['className']),'NewExpression/VariableName':tags$1['className'],'PropertyDefinition':tags$1['definition'](tags$1['propertyName']),'PrivatePropertyDefinition':tags$1['definition'](tags$1['special'](tags$1['propertyName'])),'UpdateOp':tags$1['updateOperator'],'LineComment\x20Hashbang':tags$1['lineComment'],'BlockComment':tags$1['blockComment'],'Number':tags$1['number'],'String':tags$1['string'],'Escape':tags$1['escape'],'ArithOp':tags$1['arithmeticOperator'],'LogicOp':tags$1['logicOperator'],'BitOp':tags$1['bitwiseOperator'],'CompareOp':tags$1['compareOperator'],'RegExp':tags$1['regexp'],'Equals':tags$1['definitionOperator'],'Arrow':tags$1['function'](tags$1['punctuation']),':\x20Spread':tags$1['punctuation'],'(\x20)':tags$1['paren'],'[\x20]':tags$1['squareBracket'],'{\x20}':tags$1['brace'],'InterpolationStart\x20InterpolationEnd':tags$1['special'](tags$1['brace']),'.':tags$1['derefOperator'],',\x20;':tags$1['separator'],'@':tags$1['meta'],'TypeName':tags$1['typeName'],'TypeDefinition':tags$1['definition'](tags$1['typeName']),'type\x20enum\x20interface\x20implements\x20namespace\x20module\x20declare':tags$1['definitionKeyword'],'abstract\x20global\x20Privacy\x20readonly\x20override':tags$1['modifier'],'is\x20keyof\x20unique\x20infer\x20asserts':tags$1['operatorKeyword'],'JSXAttributeValue':tags$1['attributeValue'],'JSXText':tags$1['content'],'JSXStartTag\x20JSXStartCloseTag\x20JSXSelfCloseEndTag\x20JSXEndTag':tags$1['angleBracket'],'JSXIdentifier\x20JSXNameSpacedName':tags$1['tagName'],'JSXAttribute/JSXIdentifier\x20JSXAttribute/JSXNameSpacedName':tags$1['attributeName'],'JSXBuiltin/JSXIdentifier':tags$1['standard'](tags$1['tagName'])}),spec_identifier={'__proto__':null,'export':0x14,'as':0x19,'from':0x21,'default':0x24,'async':0x29,'function':0x2a,'in':0x34,'out':0x37,'const':0x38,'extends':0x3c,'this':0x40,'true':0x48,'false':0x48,'null':0x54,'void':0x58,'typeof':0x5c,'super':0x6c,'new':0x8e,'delete':0x9a,'yield':0xa3,'await':0xa7,'class':0xac,'public':0xeb,'private':0xeb,'protected':0xeb,'readonly':0xed,'instanceof':0x100,'satisfies':0x103,'import':0x124,'keyof':0x15d,'unique':0x161,'infer':0x167,'asserts':0x18b,'is':0x18d,'abstract':0x1a1,'implements':0x1a3,'type':0x1a5,'let':0x1a8,'var':0x1aa,'using':0x1ad,'interface':0x1b3,'enum':0x1b7,'namespace':0x1bd,'module':0x1bf,'declare':0x1c3,'global':0x1c7,'defer':0x1d7,'for':0x1dc,'of':0x1e5,'while':0x1e8,'with':0x1ec,'do':0x1f0,'if':0x1f4,'else':0x1f6,'switch':0x1fa,'case':0x200,'try':0x206,'catch':0x20a,'finally':0x20e,'return':0x212,'throw':0x216,'break':0x21a,'continue':0x21e,'debugger':0x222},spec_word={'__proto__':null,'async':0x81,'get':0x83,'set':0x85,'declare':0xc3,'public':0xc5,'private':0xc5,'protected':0xc5,'static':0xc7,'abstract':0xc9,'override':0xcb,'readonly':0xd1,'accessor':0xd3,'new':0x191},spec_LessThan={'__proto__':null,'<':0xc1},parser$1=LRParser['deserialize']({'version':0xe,'states':'$FjQ%TQlOOO%[QlOOO\x27_QpOOP(lO`OOO*zQ!0MxO\x27#CiO+RO#tO\x27#CjO+aO&jO\x27#CjO+oO#@ItO\x27#DaO.QQlO\x27#DgO.bQlO\x27#DrO%[QlO\x27#DzO0fQlO\x27#ESOOQ!0Lf\x27#E[\x27#E[O1PQ`O\x27#EXOOQO\x27#Ep\x27#EpOOQO\x27#Il\x27#IlO1XQ`O\x27#GsO1dQ`O\x27#EoO1iQ`O\x27#EoO3hQ!0MxO\x27#JrO6[Q!0MxO\x27#JsO6uQ`O\x27#F]O6zQ,UO\x27#FtOOQ!0Lf\x27#Ff\x27#FfO7VO7dO\x27#FfO9XQMhO\x27#F|O9`Q`O\x27#F{OOQ!0Lf\x27#Js\x27#JsOOQ!0Lb\x27#Jr\x27#JrO9eQ`O\x27#GwOOQ[\x27#K_\x27#K_O9pQ`O\x27#IYO9uQ!0LrO\x27#IZOOQ[\x27#J`\x27#J`OOQ[\x27#I_\x27#I_Q`QlOOQ`QlOOO9}Q!L^O\x27#DvO:UQlO\x27#EOO:]QlO\x27#EQO9kQ`O\x27#GsO:dQMhO\x27#CoO:rQ`O\x27#EnO:}Q`O\x27#EyO;hQMhO\x27#FeO;xQ`O\x27#GsOOQO\x27#K`\x27#K`O;}Q`O\x27#K`O<]Q`O\x27#G{O<]Q`O\x27#G|O<]Q`O\x27#HOO9kQ`O\x27#HRO=SQ`O\x27#HUO>kQ`O\x27#CeO>{Q`O\x27#HcO?TQ`O\x27#HiO?TQ`O\x27#HkO`QlO\x27#HmO?TQ`O\x27#HoO?TQ`O\x27#HrO?YQ`O\x27#HxO?_Q!0LsO\x27#IOO%[QlO\x27#IQO?jQ!0LsO\x27#ISO?uQ!0LsO\x27#IUO9uQ!0LrO\x27#IWO@QQ!0MxO\x27#CiOASQpO\x27#DlQOQ`OOO%[QlO\x27#EQOAjQ`O\x27#ETO:dQMhO\x27#EnOAuQ`O\x27#EnOBQQ!bO\x27#FeOOQ[\x27#Cg\x27#CgOOQ!0Lb\x27#Dq\x27#DqOOQ!0Lb\x27#Jv\x27#JvO%[QlO\x27#JvOOQO\x27#Jy\x27#JyOOQO\x27#Ih\x27#IhOCQQpO\x27#EgOOQ!0Lb\x27#Ef\x27#EfOOQ!0Lb\x27#J}\x27#J}OC|Q!0MSO\x27#EgODWQpO\x27#EWOOQO\x27#Jx\x27#JxODlQpO\x27#JyOEyQpO\x27#EWODWQpO\x27#EgPFWO&2DjO\x27#CbPOOO)CD})CD}OOOO\x27#I`\x27#I`OFcO#tO,59UOOQ!0Lh,59U,59UOOOO\x27#Ia\x27#IaOFqO&jO,59UOGPQ!L^O\x27#DcOOOO\x27#Ic\x27#IcOGWO#@ItO,59{OOQ!0Lf,59{,59{OGfQlO\x27#IdOGyQ`O\x27#JtOIxQ!fO\x27#JtO+}QlO\x27#JtOJPQ`O,5:ROJgQ`O\x27#EpOJtQ`O\x27#KTOKPQ`O\x27#KSOKPQ`O\x27#KSOKXQ`O,5;^OK^Q`O\x27#KROOQ!0Ln,5:^,5:^OKeQlO,5:^OMcQ!0MxO,5:fONSQ`O,5:nONmQ!0LrO\x27#KQONtQ`O\x27#KPO9eQ`O\x27#KPO!\x20YQ`O\x27#KPO!\x20bQ`O,5;]O!\x20gQ`O\x27#KPO!#lQ!fO\x27#JsOOQ!0Lh\x27#Ci\x27#CiO%[QlO\x27#ESO!$[Q!fO,5:sOOQS\x27#Jz\x27#JzOOQO-E<j-E<jO9kQ`O,5=_O!$rQ`O,5=_O!$wQlO,5;ZO!&zQMhO\x27#EkO!(eQ`O,5;ZO!(jQlO\x27#DyO!(tQpO,5;dO!(|QpO,5;dO%[QlO,5;dOOQ[\x27#FT\x27#FTOOQ[\x27#FV\x27#FVO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eOOQ[\x27#FZ\x27#FZO!)[QlO,5;tOOQ!0Lf,5;y,5;yOOQ!0Lf,5;z,5;zOOQ!0Lf,5;|,5;|O%[QlO\x27#IpO!+_Q!0LrO,5<iO%[QlO,5;eO!&zQMhO,5;eO!+|QMhO,5;eO!-nQMhO\x27#E^O%[QlO,5;wOOQ!0Lf,5;{,5;{O!-uQ,UO\x27#FjO!.rQ,UO\x27#KXO!.^Q,UO\x27#KXO!.yQ,UO\x27#KXOOQO\x27#KX\x27#KXO!/_Q,UO,5<SOOOW,5<`,5<`O!/pQlO\x27#FvOOOW\x27#Io\x27#IoO7VO7dO,5<QO!/wQ,UO\x27#FxOOQ!0Lf,5<Q,5<QO!0hQ$IUO\x27#CyOOQ!0Lh\x27#C}\x27#C}O!0{O#@ItO\x27#DRO!1iQMjO,5<eO!1pQ`O,5<hO!3]Q(CWO\x27#GXO!3jQ`O\x27#GYO!3oQ`O\x27#GYO!5_Q(CWO\x27#G^O!6dQpO\x27#GbOOQO\x27#Gn\x27#GnO!,TQMhO\x27#GmOOQO\x27#Gp\x27#GpO!,TQMhO\x27#GoO!7VQ$IUO\x27#JlOOQ!0Lh\x27#Jl\x27#JlO!7aQ`O\x27#JkO!7oQ`O\x27#JjO!7wQ`O\x27#CuOOQ!0Lh\x27#C{\x27#C{O!8YQ`O\x27#C}OOQ!0Lh\x27#DV\x27#DVOOQ!0Lh\x27#DX\x27#DXO!8_Q`O,5<eO1SQ`O\x27#DZO!,TQMhO\x27#GPO!,TQMhO\x27#GRO!8gQ`O\x27#GTO!8lQ`O\x27#GUO!3oQ`O\x27#G[O!,TQMhO\x27#GaO<]Q`O\x27#JkO!8qQ`O\x27#EqO!9`Q`O,5<gOOQ!0Lb\x27#Cr\x27#CrO!9hQ`O\x27#ErO!:bQpO\x27#EsOOQ!0Lb\x27#KR\x27#KRO!:iQ!0LrO\x27#KaO9uQ!0LrO,5=cO`QlO,5>tOOQ[\x27#Jh\x27#JhOOQ[,5>u,5>uOOQ[-E<]-E<]O!<hQ!0MxO,5:bO!:]QpO,5:`O!?RQ!0MxO,5:jO%[QlO,5:jO!AiQ!0MxO,5:lOOQO,5@z,5@zO!BYQMhO,5=_O!BhQ!0LrO\x27#JiO9`Q`O\x27#JiO!ByQ!0LrO,59ZO!CUQpO,59ZO!C^QMhO,59ZO:dQMhO,59ZO!CiQ`O,5;ZO!CqQ`O\x27#HbO!DVQ`O\x27#KdO%[QlO,5;}O!:]QpO,5<PO!D_Q`O,5=zO!DdQ`O,5=zO!DiQ`O,5=zO!DwQ`O,5=zO9uQ!0LrO,5=zO<]Q`O,5=jOOQO\x27#Cy\x27#CyO!EOQpO,5=gO!EWQMhO,5=hO!EcQ`O,5=jO!EhQ!bO,5=mO!EpQ`O\x27#K`O?YQ`O\x27#HWO9kQ`O\x27#HYO!EuQ`O\x27#HYO:dQMhO\x27#H[O!EzQ`O\x27#H[OOQ[,5=p,5=pO!FPQ`O\x27#H]O!FbQ`O\x27#CoO!FgQ`O,59PO!FqQ`O,59PO!HvQlO,59POOQ[,59P,59PO!IWQ!0LrO,59PO%[QlO,59PO!KcQlO\x27#HeOOQ[\x27#Hf\x27#HfOOQ[\x27#Hg\x27#HgO`QlO,5=}O!KyQ`O,5=}O`QlO,5>TO`QlO,5>VO!LOQ`O,5>XO`QlO,5>ZO!LTQ`O,5>^O!LYQlO,5>dOOQ[,5>j,5>jO%[QlO,5>jO9uQ!0LrO,5>lOOQ[,5>n,5>nO#!dQ`O,5>nOOQ[,5>p,5>pO#!dQ`O,5>pOOQ[,5>r,5>rO##QQpO\x27#D_O%[QlO\x27#JvO##sQpO\x27#JvO##}QpO\x27#DmO#$`QpO\x27#DmO#&qQlO\x27#DmO#&xQ`O\x27#JuO#\x27QQ`O,5:WO#\x27VQ`O\x27#EtO#\x27eQ`O\x27#KUO#\x27mQ`O,5;_O#\x27rQpO\x27#DmO#(PQpO\x27#EVOOQ!0Lf,5:o,5:oO%[QlO,5:oO#(WQ`O,5:oO?YQ`O,5;YO!CUQpO,5;YO!C^QMhO,5;YO:dQMhO,5;YO#(`Q`O,5@bO#(eQ07dO,5:sOOQO-E<f-E<fO#)kQ!0MSO,5;RODWQpO,5:rO#)uQpO,5:rODWQpO,5;RO!ByQ!0LrO,5:rOOQ!0Lb\x27#Ej\x27#EjOOQO,5;R,5;RO%[QlO,5;RO#*SQ!0LrO,5;RO#*_Q!0LrO,5;RO!CUQpO,5:rOOQO,5;X,5;XO#*mQ!0LrO,5;RPOOO\x27#I^\x27#I^P#+RO&2DjO,58|POOO,58|,58|OOOO-E<^-E<^OOQ!0Lh1G.p1G.pOOOO-E<_-E<_OOOO,59},59}O#+^Q!bO,59}OOOO-E<a-E<aOOQ!0Lf1G/g1G/gO#+cQ!fO,5?OO+}QlO,5?OOOQO,5?U,5?UO#+mQlO\x27#IdOOQO-E<b-E<bO#+zQ`O,5@`O#,SQ!fO,5@`O#,ZQ`O,5@nOOQ!0Lf1G/m1G/mO%[QlO,5@oO#,cQ`O\x27#IjOOQO-E<h-E<hO#,ZQ`O,5@nOOQ!0Lb1G0x1G0xOOQ!0Ln1G/x1G/xOOQ!0Ln1G0Y1G0YO%[QlO,5@lO#,wQ!0LrO,5@lO#-YQ!0LrO,5@lO#-aQ`O,5@kO9eQ`O,5@kO#-iQ`O,5@kO#-wQ`O\x27#ImO#-aQ`O,5@kOOQ!0Lb1G0w1G0wO!(tQpO,5:uO!)PQpO,5:uOOQS,5:w,5:wO#.iQdO,5:wO#.qQMhO1G2yO9kQ`O1G2yOOQ!0Lf1G0u1G0uO#/PQ!0MxO1G0uO#0UQ!0MvO,5;VOOQ!0Lh\x27#GW\x27#GWO#0rQ!0MzO\x27#JlO!$wQlO1G0uO#2}Q!fO\x27#JwO%[QlO\x27#JwO#3XQ`O,5:eOOQ!0Lh\x27#D_\x27#D_OOQ!0Lf1G1O1G1OO%[QlO1G1OOOQ!0Lf1G1f1G1fO#3^Q`O1G1OO#5rQ!0MxO1G1PO#5yQ!0MxO1G1PO#8aQ!0MxO1G1PO#8hQ!0MxO1G1PO#;OQ!0MxO1G1PO#=fQ!0MxO1G1PO#=mQ!0MxO1G1PO#=tQ!0MxO1G1PO#@[Q!0MxO1G1PO#@cQ!0MxO1G1PO#BpQ?MtO\x27#CiO#DkQ?MtO1G1`O#DrQ?MtO\x27#JsO#EVQ!0MxO,5?[OOQ!0Lb-E<n-E<nO#GdQ!0MxO1G1PO#HaQ!0MzO1G1POOQ!0Lf1G1P1G1PO#IdQMjO\x27#J|O#InQ`O,5:xO#IsQ!0MxO1G1cO#JgQ,UO,5<WO#JoQ,UO,5<XO#JwQ,UO\x27#FoO#K`Q`O\x27#FnOOQO\x27#KY\x27#KYOOQO\x27#In\x27#InO#KeQ,UO1G1nOOQ!0Lf1G1n1G1nOOOW1G1y1G1yO#KvQ?MtO\x27#JrO#LQQ`O,5<bO!)[QlO,5<bOOOW-E<m-E<mOOQ!0Lf1G1l1G1lO#LVQpO\x27#KXOOQ!0Lf,5<d,5<dO#L_QpO,5<dO#LdQMhO\x27#DTOOOO\x27#Ib\x27#IbO#LkO#@ItO,59mOOQ!0Lh,59m,59mO%[QlO1G2PO!8lQ`O\x27#IrO#LvQ`O,5<zOOQ!0Lh,5<w,5<wO!,TQMhO\x27#IuO#MdQMjO,5=XO!,TQMhO\x27#IwO#NVQMjO,5=ZO!&zQMhO,5=]OOQO1G2S1G2SO#NaQ!dO\x27#CrO#NtQ(CWO\x27#ErO$\x20yQpO\x27#GbO$!aQ!dO,5<sO$!hQ`O\x27#K[O9eQ`O\x27#K[O$!vQ`O,5<uO!,TQMhO,5<tO$!{Q`O\x27#GZO$#^Q`O,5<tO$#cQ!dO\x27#GWO$#pQ!dO\x27#K]O$#zQ`O\x27#K]O!&zQMhO\x27#K]O$$PQ`O,5<xO$$UQlO\x27#JvO$$`QpO\x27#GcO#$`QpO\x27#GcO$$qQ`O\x27#GgO!3oQ`O\x27#GkO$$vQ!0LrO\x27#ItO$%RQpO,5<|OOQ!0Lp,5<|,5<|O$%YQpO\x27#GcO$%gQpO\x27#GdO$%xQpO\x27#GdO$%}QMjO,5=XO$&_QMjO,5=ZOOQ!0Lh,5=^,5=^O!,TQMhO,5@VO!,TQMhO,5@VO$&oQ`O\x27#IyO$\x27TQ`O,5@UO$\x27]Q`O,59aOOQ!0Lh,59i,59iO$\x27bQ`O,5@VO$(bQ$IYO,59uOOQ!0Lh\x27#Jp\x27#JpO$)TQMjO,5<kO$)vQMjO,5<mO@zQ`O,5<oOOQ!0Lh,5<p,5<pO$*QQ`O,5<vO$*VQMjO,5<{O$*gQ`O\x27#KPO!$wQlO1G2RO$*lQ`O1G2RO9eQ`O\x27#KSO9eQ`O\x27#EtO%[QlO\x27#EtO9eQ`O\x27#I{O$*qQ!0LrO,5@{OOQ[1G2}1G2}OOQ[1G4`1G4`OOQ!0Lf1G/|1G/|OOQ!0Lf1G/z1G/zO$,sQ!0MxO1G0UOOQ[1G2y1G2yO!&zQMhO1G2yO%[QlO1G2yO#.tQ`O1G2yO$.wQMhO\x27#EkOOQ!0Lb,5@T,5@TO$/UQ!0LrO,5@TOOQ[1G.u1G.uO!ByQ!0LrO1G.uO!CUQpO1G.uO!C^QMhO1G.uO$/gQ`O1G0uO$/lQ`O\x27#CiO$/wQ`O\x27#KeO$0PQ`O,5=|O$0UQ`O\x27#KeO$0ZQ`O\x27#KeO$0iQ`O\x27#JRO$0wQ`O,5AOO$1PQ!fO1G1iOOQ!0Lf1G1k1G1kO9kQ`O1G3fO@zQ`O1G3fO$1WQ`O1G3fO$1]Q`O1G3fO!DiQ`O1G3fO9uQ!0LrO1G3fOOQ[1G3f1G3fO!EcQ`O1G3UO!&zQMhO1G3RO$1bQ`O1G3ROOQ[1G3S1G3SO!&zQMhO1G3SO$1gQ`O1G3SO$1oQpO\x27#HQOOQ[1G3U1G3UO!6_QpO\x27#I}O!EhQ!bO1G3XOOQ[1G3X1G3XOOQ[,5=r,5=rO$1wQMhO,5=tO9kQ`O,5=tO$$qQ`O,5=vO9`Q`O,5=vO!CUQpO,5=vO!C^QMhO,5=vO:dQMhO,5=vO$2VQ`O\x27#KcO$2bQ`O,5=wOOQ[1G.k1G.kO$2gQ!0LrO1G.kO@zQ`O1G.kO$2rQ`O1G.kO9uQ!0LrO1G.kO$4zQ!fO,5AQO$5XQ`O,5AQO9eQ`O,5AQO$5dQlO,5>PO$5kQ`O,5>POOQ[1G3i1G3iO`QlO1G3iOOQ[1G3o1G3oOOQ[1G3q1G3qO?TQ`O1G3sO$5pQlO1G3uO$9tQlO\x27#HtOOQ[1G3x1G3xO$:RQ`O\x27#HzO?YQ`O\x27#H|OOQ[1G4O1G4OO$:ZQlO1G4OO9uQ!0LrO1G4UOOQ[1G4W1G4WOOQ!0Lb\x27#G_\x27#G_O9uQ!0LrO1G4YO9uQ!0LrO1G4[O$>bQ`O,5@bO!)[QlO,5;`O9eQ`O,5;`O?YQ`O,5:XO!)[QlO,5:XO!CUQpO,5:XO$>gQ?MtO,5:XOOQO,5;`,5;`O$>qQpO\x27#IeO$?XQ`O,5@aOOQ!0Lf1G/r1G/rO$?aQpO\x27#IkO$?kQ`O,5@pOOQ!0Lb1G0y1G0yO#$`QpO,5:XOOQO\x27#Ig\x27#IgO$?sQpO,5:qOOQ!0Ln,5:q,5:qO#(ZQ`O1G0ZOOQ!0Lf1G0Z1G0ZO%[QlO1G0ZOOQ!0Lf1G0t1G0tO?YQ`O1G0tO!CUQpO1G0tO!C^QMhO1G0tOOQ!0Lb1G5|1G5|O!ByQ!0LrO1G0^OOQO1G0m1G0mO%[QlO1G0mO$?zQ!0LrO1G0mO$@VQ!0LrO1G0mO!CUQpO1G0^ODWQpO1G0^O$@eQ!0LrO1G0mOOQO1G0^1G0^O$@yQ!0MxO1G0mPOOO-E<[-E<[POOO1G.h1G.hOOOO1G/i1G/iO$ATQ!bO,5<iO$A]Q!fO1G4jOOQO1G4p1G4pO%[QlO,5?OO$AgQ`O1G5zO$AoQ`O1G6YO$AwQ!fO1G6ZO9eQ`O,5?UO$BRQ!0MxO1G6WO%[QlO1G6WO$BcQ!0LrO1G6WO$BtQ`O1G6VO$BtQ`O1G6VO9eQ`O1G6VO$B|Q`O,5?XO9eQ`O,5?XOOQO,5?X,5?XO$CbQ`O,5?XO$*gQ`O,5?XOOQO-E<k-E<kOOQS1G0a1G0aOOQS1G0c1G0cO#.lQ`O1G0cOOQ[7+(e7+(eO!&zQMhO7+(eO%[QlO7+(eO$CpQ`O7+(eO$C{QMhO7+(eO$DZQ!0MzO,5=XO$FfQ!0MzO,5=ZO$HqQ!0MzO,5=XO$KSQ!0MzO,5=ZO$MeQ!0MzO,59uO%\x20jQ!0MzO,5<kO%#uQ!0MzO,5<mO%&QQ!0MzO,5<{OOQ!0Lf7+&a7+&aO%(cQ!0MxO7+&aO%)VQlO\x27#IfO%)dQ`O,5@cO%)lQ!fO,5@cOOQ!0Lf1G0P1G0PO%)vQ`O7+&jOOQ!0Lf7+&j7+&jO%){Q?MtO,5:fO%[QlO7+&zO%*VQ?MtO,5:bO%*dQ?MtO,5:jO%*nQ?MtO,5:lO%*xQMhO\x27#IiO%+SQ`O,5@hOOQ!0Lh1G0d1G0dOOQO1G1r1G1rOOQO1G1s1G1sO%+[Q!jO,5<ZO!)[QlO,5<YOOQO-E<l-E<lOOQ!0Lf7+\x27Y7+\x27YOOOW7+\x27e7+\x27eOOOW1G1|1G1|O%+gQ`O1G1|OOQ!0Lf1G2O1G2OOOOO,59o,59oO%+lQ!dO,59oOOOO-E<`-E<`OOQ!0Lh1G/X1G/XO%+sQ!0MxO7+\x27kOOQ!0Lh,5?^,5?^O%,gQMhO1G2fP%,nQ`O\x27#IrPOQ!0Lh-E<p-E<pO%-[QMjO,5?aOOQ!0Lh-E<s-E<sO%-}QMjO,5?cOOQ!0Lh-E<u-E<uO%.XQ!dO1G2wO%.`Q!dO\x27#CrO%.vQMhO\x27#KSO$$UQlO\x27#JvOOQ!0Lh1G2_1G2_O%.}Q`O\x27#IqO%/cQ`O,5@vO%/cQ`O,5@vO%/kQ`O,5@vO%/vQ`O,5@vOOQO1G2a1G2aO%0UQMjO1G2`O!,TQMhO1G2`O%0fQ(CWO\x27#IsO%0sQ`O,5@wO!&zQMhO,5@wO%0{Q!dO,5@wOOQ!0Lh1G2d1G2dO%3]Q!fO\x27#CiO%3gQ`O,5=POOQ!0Lb,5<},5<}O%3oQpO,5<}OOQ!0Lb,5=O,5=OOCwQ`O,5<}O%3zQpO,5<}OOQ!0Lb,5=R,5=RO$*gQ`O,5=VOOQO,5?`,5?`OOQO-E<r-E<rOOQ!0Lp1G2h1G2hO#$`QpO,5<}O$$UQlO,5=PO%4YQ`O,5=OO%4eQpO,5=OO!,TQMhO\x27#IuO%5_QMjO1G2sO!,TQMhO\x27#IwO%6QQMjO1G2uO%6[QMjO1G5qO%6fQMjO1G5qOOQO,5?e,5?eOOQO-E<w-E<wOOQO1G.{1G.{O!,TQMhO1G5qO!,TQMhO1G5qO!:]QpO,59wO%[QlO,59wOOQ!0Lh,5<j,5<jO%6sQ`O1G2ZO!,TQMhO1G2bO%6xQ!0MxO7+\x27mOOQ!0Lf7+\x27m7+\x27mO!$wQlO7+\x27mO%7lQ`O,5;`OOQ!0Lb,5?g,5?gOOQ!0Lb-E<y-E<yO%7qQ!dO\x27#K^O#(ZQ`O7+(eO4UQ!fO7+(eO$CsQ`O7+(eO%7{Q!0MvO\x27#CiO%8`Q!0MvO,5=SO%9QQ`O,5=SO%9YQ`O,5=SOOQ!0Lb1G5o1G5oOOQ[7+$a7+$aO!ByQ!0LrO7+$aO!CUQpO7+$aO!$wQlO7+&aO%9_Q`O\x27#JQO%9vQ`O,5APOOQO1G3h1G3hO9kQ`O,5APO%9vQ`O,5APO%:OQ`O,5APOOQO,5?m,5?mOOQO-E=P-E=POOQ!0Lf7+\x27T7+\x27TO%:TQ`O7+)QO9uQ!0LrO7+)QO9kQ`O7+)QO@zQ`O7+)QO%:YQ`O7+)QOOQ[7+)Q7+)QOOQ[7+(p7+(pO%:_Q!0MvO7+(mO!&zQMhO7+(mO!E^Q`O7+(nOOQ[7+(n7+(nO!&zQMhO7+(nO%:iQ`O\x27#KbO%:tQ`O,5=lOOQO,5?i,5?iOOQO-E<{-E<{OOQ[7+(s7+(sO%<WQpO\x27#HZOOQ[1G3`1G3`O!&zQMhO1G3`O%[QlO1G3`O%<_Q`O1G3`O%<jQMhO1G3`O9uQ!0LrO1G3bO$$qQ`O1G3bO9`Q`O1G3bO!CUQpO1G3bO!C^QMhO1G3bO%<xQ`O\x27#JPO%=^Q`O,5@}O%=fQpO,5@}OOQ!0Lb1G3c1G3cOOQ[7+$V7+$VO@zQ`O7+$VO9uQ!0LrO7+$VO%=qQ`O7+$VO%[QlO1G6lO%[QlO1G6mO%=vQ!0LrO1G6lO%>QQlO1G3kO%>XQ`O1G3kO%>^QlO1G3kOOQ[7+)T7+)TO9uQ!0LrO7+)_O`QlO7+)aOOQ[\x27#Kh\x27#KhOOQ[\x27#JS\x27#JSO%>eQlO,5>`OOQ[,5>`,5>`O%[QlO\x27#HuO%>rQ`O\x27#HwOOQ[,5>f,5>fO9eQ`O,5>fOOQ[,5>h,5>hOOQ[7+)j7+)jOOQ[7+)p7+)pOOQ[7+)t7+)tOOQ[7+)v7+)vO%>wQpO1G5|O%?cQ?MtO1G0zO%?mQ`O1G0zOOQO1G/s1G/sO%?xQ?MtO1G/sO?YQ`O1G/sO!)[QlO\x27#DmOOQO,5?P,5?POOQO-E<c-E<cOOQO,5?V,5?VOOQO-E<i-E<iO!CUQpO1G/sOOQO-E<e-E<eOOQ!0Ln1G0]1G0]OOQ!0Lf7+%u7+%uO#(ZQ`O7+%uOOQ!0Lf7+&`7+&`O?YQ`O7+&`O!CUQpO7+&`OOQO7+%x7+%xO$@yQ!0MxO7+&XOOQO7+&X7+&XO%[QlO7+&XO%@SQ!0LrO7+&XO!ByQ!0LrO7+%xO!CUQpO7+%xO%@_Q!0LrO7+&XO%@mQ!0MxO7++rO%[QlO7++rO%@}Q`O7++qO%@}Q`O7++qOOQO1G4s1G4sO9eQ`O1G4sO%AVQ`O1G4sOOQS7+%}7+%}O#(ZQ`O<<LPO4UQ!fO<<LPO%AeQ`O<<LPOOQ[<<LP<<LPO!&zQMhO<<LPO%[QlO<<LPO%AmQ`O<<LPO%AxQ!0MzO,5?aO%DTQ!0MzO,5?cO%F`Q!0MzO1G2`O%HqQ!0MzO1G2sO%J|Q!0MzO1G2uO%MXQ!fO,5?QO%[QlO,5?QOOQO-E<d-E<dO%McQ`O1G5}OOQ!0Lf<<JU<<JUO%MkQ?MtO1G0uO&\x20rQ?MtO1G1PO&\x20yQ?MtO1G1PO&#zQ?MtO1G1PO&$RQ?MtO1G1PO&&SQ?MtO1G1PO&(TQ?MtO1G1PO&([Q?MtO1G1PO&(cQ?MtO1G1PO&*dQ?MtO1G1PO&*kQ?MtO1G1PO&*rQ!0MxO<<JfO&,jQ?MtO1G1PO&-gQ?MvO1G1PO&.jQ?MvO\x27#JlO&0pQ?MtO1G1cO&0}Q?MtO1G0UO&1XQMjO,5?TOOQO-E<g-E<gO!)[QlO\x27#FqOOQO\x27#KZ\x27#KZOOQO1G1u1G1uO&1cQ`O1G1tO&1hQ?MtO,5?[OOOW7+\x27h7+\x27hOOOO1G/Z1G/ZO&1rQ!dO1G4xOOQ!0Lh7+(Q7+(QP!&zQMhO,5?^O!,TQMhO7+(cO&1yQ`O,5?]O9eQ`O,5?]OOQO-E<o-E<oO&2XQ`O1G6bO&2XQ`O1G6bO&2aQ`O1G6bO&2lQMjO7+\x27zO&2|Q!dO,5?_O&3WQ`O,5?_O!&zQMhO,5?_OOQO-E<q-E<qO&3]Q!dO1G6cO&3gQ`O1G6cO&3oQ`O1G2kO!&zQMhO1G2kOOQ!0Lb1G2i1G2iOOQ!0Lb1G2j1G2jO%3oQpO1G2iO!CUQpO1G2iOCwQ`O1G2iOOQ!0Lb1G2q1G2qO&3tQpO1G2iO&4SQ`O1G2kO$*gQ`O1G2jOCwQ`O1G2jO$$UQlO1G2kO&4[Q`O1G2jO&5OQMjO,5?aOOQ!0Lh-E<t-E<tO&5qQMjO,5?cOOQ!0Lh-E<v-E<vO!,TQMhO7++]O&5{QMjO7++]O&6VQMjO7++]OOQ!0Lh1G/c1G/cO&6dQ`O1G/cOOQ!0Lh7+\x27u7+\x27uO&6iQMjO7+\x27|O&6yQ!0MxO<<KXOOQ!0Lf<<KX<<KXO&7mQ`O1G0zO!&zQMhO\x27#IzO&7rQ`O,5@xO&9tQ!fO<<LPO!&zQMhO1G2nO&9{Q!0LrO1G2nOOQ[<<G{<<G{O!ByQ!0LrO<<G{O&:^Q!0MxO<<I{OOQ!0Lf<<I{<<I{OOQO,5?l,5?lO&;QQ`O,5?lO&;VQ`O,5?lOOQO-E=O-E=OO&;eQ`O1G6kO&;eQ`O1G6kO9kQ`O1G6kO@zQ`O<<LlOOQ[<<Ll<<LlO&;mQ`O<<LlO9uQ!0LrO<<LlO9kQ`O<<LlOOQ[<<LX<<LXO%:_Q!0MvO<<LXOOQ[<<LY<<LYO!E^Q`O<<LYO&;rQpO\x27#I|O&;}Q`O,5@|O!)[QlO,5@|OOQ[1G3W1G3WOOQO\x27#JO\x27#JOO9uQ!0LrO\x27#JOO&<VQpO,5=uOOQ[,5=u,5=uO&<^QpO\x27#EgO&<eQpO\x27#GeO&<jQ`O7+(zO&<oQ`O7+(zOOQ[7+(z7+(zO!&zQMhO7+(zO%[QlO7+(zO&<wQ`O7+(zOOQ[7+(|7+(|O9uQ!0LrO7+(|O$$qQ`O7+(|O9`Q`O7+(|O!CUQpO7+(|O&=SQ`O,5?kOOQO-E<}-E<}OOQO\x27#H^\x27#H^O&=_Q`O1G6iO9uQ!0LrO<<GqOOQ[<<Gq<<GqO@zQ`O<<GqO&=gQ`O7+,WO&=lQ`O7+,XO%[QlO7+,WO%[QlO7+,XOOQ[7+)V7+)VO&=qQ`O7+)VO&=vQlO7+)VO&=}Q`O7+)VOOQ[<<Ly<<LyOOQ[<<L{<<L{OOQ[-E=Q-E=QOOQ[1G3z1G3zO&>SQ`O,5>aOOQ[,5>c,5>cO&>XQ`O1G4QO9eQ`O7+&fO!)[QlO7+&fOOQO7+%_7+%_O&>^Q?MtO1G6ZO?YQ`O7+%_OOQ!0Lf<<Ia<<IaOOQ!0Lf<<Iz<<IzO?YQ`O<<IzOOQO<<Is<<IsO$@yQ!0MxO<<IsO%[QlO<<IsOOQO<<Id<<IdO!ByQ!0LrO<<IdO&>hQ!0LrO<<IsO&>sQ!0MxO<=\x20^O&?TQ`O<=\x20]OOQO7+*_7+*_O9eQ`O7+*_OOQ[ANAkANAkO&?]Q!fOANAkO!&zQMhOANAkO#(ZQ`OANAkO4UQ!fOANAkO&?dQ`OANAkO%[QlOANAkO&?lQ!0MzO7+\x27zO&A}Q!0MzO,5?aO&DYQ!0MzO,5?cO&FeQ!0MzO7+\x27|O&HvQ!fO1G4lO&IQQ?MtO7+&aO&KUQ?MvO,5=XO&M]Q?MvO,5=ZO&MmQ?MvO,5=XO&M}Q?MvO,5=ZO&N_Q?MvO,59uO\x27!eQ?MvO,5<kO\x27$hQ?MvO,5<mO\x27&|Q?MvO,5<{O\x27(rQ?MtO7+\x27kO\x27)PQ?MtO7+\x27mO\x27)^Q`O,5<]OOQO7+\x27`7+\x27`OOQ!0Lh7+*d7+*dO\x27)cQMjO<<K}OOQO1G4w1G4wO\x27)jQ`O1G4wO\x27)uQ`O1G4wO\x27*TQ`O7++|O\x27*TQ`O7++|O!&zQMhO1G4yO\x27*]Q!dO1G4yO\x27*gQ`O7++}O\x27*oQ`O7+(VO\x27*zQ!dO7+(VOOQ!0Lb7+(T7+(TOOQ!0Lb7+(U7+(UO!CUQpO7+(TOCwQ`O7+(TO\x27+UQ`O7+(VO!&zQMhO7+(VO$*gQ`O7+(UO\x27+ZQ`O7+(VOCwQ`O7+(UO\x27+cQMjO<<NwO!,TQMhO<<NwOOQ!0Lh7+$}7+$}O\x27+mQ!dO,5?fOOQO-E<x-E<xO\x27+wQ!0MvO7+(YO!&zQMhO7+(YOOQ[AN=gAN=gO9kQ`O1G5WOOQO1G5W1G5WO\x27,XQ`O1G5WO\x27,^Q`O7+,VO\x27,^Q`O7+,VO9uQ!0LrOANBWO@zQ`OANBWOOQ[ANBWANBWO\x27,fQ`OANBWOOQ[ANAsANAsOOQ[ANAtANAtO\x27,kQ`O,5?hOOQO-E<z-E<zO\x27,vQ?MtO1G6hOOQO,5?j,5?jOOQO-E<|-E<|OOQ[1G3a1G3aO\x27-QQ`O,5=POOQ[<<Lf<<LfO!&zQMhO<<LfO&<jQ`O<<LfO\x27-VQ`O<<LfO%[QlO<<LfOOQ[<<Lh<<LhO9uQ!0LrO<<LhO$$qQ`O<<LhO9`Q`O<<LhO\x27-_QpO1G5VO\x27-jQ`O7+,TOOQ[AN=]AN=]O9uQ!0LrOAN=]OOQ[<=\x20r<=\x20rOOQ[<=\x20s<=\x20sO\x27-rQ`O<=\x20rO\x27-wQ`O<=\x20sOOQ[<<Lq<<LqO\x27-|Q`O<<LqO\x27.RQlO<<LqOOQ[1G3{1G3{O?YQ`O7+)lO\x27.YQ`O<<JQO\x27.eQ?MtO<<JQOOQO<<Hy<<HyOOQ!0LfAN?fAN?fOOQOAN?_AN?_O$@yQ!0MxOAN?_OOQOAN?OAN?OO%[QlOAN?_OOQO<<My<<MyOOQ[G27VG27VO!&zQMhOG27VO#(ZQ`OG27VO\x27.oQ!fOG27VO4UQ!fOG27VO\x27.vQ`OG27VO\x27/OQ?MtO<<JfO\x27/]Q?MvO1G2`O\x271RQ?MvO,5?aO\x273UQ?MvO,5?cO\x275XQ?MvO1G2sO\x277[Q?MvO1G2uO\x279_Q?MtO<<KXO\x279lQ?MtO<<I{OOQO1G1w1G1wO!,TQMhOANAiOOQO7+*c7+*cO\x279yQ`O7+*cO\x27:UQ`O<=\x20hO\x27:^Q!dO7+*eOOQ!0Lb<<Kq<<KqO$*gQ`O<<KqOCwQ`O<<KqO\x27:hQ`O<<KqO!&zQMhO<<KqOOQ!0Lb<<Ko<<KoO!CUQpO<<KoO\x27:sQ!dO<<KqOOQ!0Lb<<Kp<<KpO\x27:}Q`O<<KqO!&zQMhO<<KqO$*gQ`O<<KpO\x27;SQMjOANDcO\x27;^Q!0MvO<<KtOOQO7+*r7+*rO9kQ`O7+*rO\x27;nQ`O<=\x20qOOQ[G27rG27rO9uQ!0LrOG27rO@zQ`OG27rO!)[QlO1G5SO\x27;vQ`O7+,SO\x27<OQ`O1G2kO&<jQ`OANBQOOQ[ANBQANBQO!&zQMhOANBQO\x27<TQ`OANBQOOQ[ANBSANBSO9uQ!0LrOANBSO$$qQ`OANBSOOQO\x27#H_\x27#H_OOQO7+*q7+*qOOQ[G22wG22wOOQ[ANE^ANE^OOQ[ANE_ANE_OOQ[ANB]ANB]O\x27<]Q`OANB]OOQ[<<MW<<MWO!)[QlOAN?lOOQOG24yG24yO$@yQ!0MxOG24yO#(ZQ`OLD,qOOQ[LD,qLD,qO!&zQMhOLD,qO\x27<bQ!fOLD,qO\x27<iQ?MvO7+\x27zO\x27>_Q?MvO,5?aO\x27@bQ?MvO,5?cO\x27BeQ?MvO7+\x27|O\x27DZQMjOG27TOOQO<<M}<<M}OOQ!0LbANA]ANA]O$*gQ`OANA]OCwQ`OANA]O\x27DkQ!dOANA]OOQ!0LbANAZANAZO\x27DrQ`OANA]O!&zQMhOANA]O\x27D}Q!dOANA]OOQ!0LbANA[ANA[OOQO<<N^<<N^OOQ[LD-^LD-^O9uQ!0LrOLD-^O\x27EXQ?MtO7+*nOOQO\x27#Gf\x27#GfOOQ[G27lG27lO&<jQ`OG27lO!&zQMhOG27lOOQ[G27nG27nO9uQ!0LrOG27nOOQ[G27wG27wO\x27EcQ?MtOG25WOOQOLD*eLD*eOOQ[!$(!]!$(!]O#(ZQ`O!$(!]O!&zQMhO!$(!]O\x27EmQ!0MzOG27TOOQ!0LbG26wG26wO$*gQ`OG26wO\x27HOQ`OG26wOCwQ`OG26wO\x27HZQ!dOG26wO!&zQMhOG26wOOQ[!$(!x!$(!xOOQ[LD-WLD-WO&<jQ`OLD-WOOQ[LD-YLD-YOOQ[!)9Ew!)9EwO#(ZQ`O!)9EwOOQ!0LbLD,cLD,cO$*gQ`OLD,cOCwQ`OLD,cO\x27HbQ`OLD,cO\x27HmQ!dOLD,cOOQ[!$(!r!$(!rOOQ[!.K;c!.K;cO\x27HtQ?MvOG27TOOQ!0Lb!$(\x20}!$(\x20}O$*gQ`O!$(\x20}OCwQ`O!$(\x20}O\x27JjQ`O!$(\x20}OOQ!0Lb!)9Ei!)9EiO$*gQ`O!)9EiOCwQ`O!)9EiOOQ!0Lb!.K;T!.K;TO$*gQ`O!.K;TOOQ!0Lb!4/0o!4/0oO!)[QlO\x27#DzO1PQ`O\x27#EXO\x27JuQ!fO\x27#JrO\x27J|Q!L^O\x27#DvO\x27KTQlO\x27#EOO\x27K[Q!fO\x27#CiO\x27MrQ!fO\x27#CiO!)[QlO\x27#EQO\x27NSQlO,5;ZO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO\x27#IpO(!VQ`O,5<iO!)[QlO,5;eO(!_QMhO,5;eO(#xQMhO,5;eO!)[QlO,5;wO!&zQMhO\x27#GmO(!_QMhO\x27#GmO!&zQMhO\x27#GoO(!_QMhO\x27#GoO1SQ`O\x27#DZO1SQ`O\x27#DZO!&zQMhO\x27#GPO(!_QMhO\x27#GPO!&zQMhO\x27#GRO(!_QMhO\x27#GRO!&zQMhO\x27#GaO(!_QMhO\x27#GaO!)[QlO,5:jO($PQpO\x27#D_O($ZQpO\x27#JvO!)[QlO,5@oO\x27NSQlO1G0uO($eQ?MtO\x27#CiO!)[QlO1G2PO!&zQMhO\x27#IuO(!_QMhO\x27#IuO!&zQMhO\x27#IwO(!_QMhO\x27#IwO($oQ!dO\x27#CrO!&zQMhO,5<tO(!_QMhO,5<tO\x27NSQlO1G2RO!)[QlO7+&zO!&zQMhO1G2`O(!_QMhO1G2`O!&zQMhO\x27#IuO(!_QMhO\x27#IuO!&zQMhO\x27#IwO(!_QMhO\x27#IwO!&zQMhO1G2bO(!_QMhO1G2bO\x27NSQlO7+\x27mO\x27NSQlO7+&aO!&zQMhOANAiO(!_QMhOANAiO(%SQ`O\x27#EoO(%XQ`O\x27#EoO(%aQ`O\x27#F]O(%fQ`O\x27#EyO(%kQ`O\x27#KTO(%vQ`O\x27#KRO(&RQ`O,5;ZO(&WQMjO,5<eO(&_Q`O\x27#GYO(&dQ`O\x27#GYO(&iQ`O,5<eO(&qQ`O,5<gO(&yQ`O,5;ZO(\x27RQ?MtO1G1`O(\x27YQ`O,5<tO(\x27_Q`O,5<tO(\x27dQ`O,5<vO(\x27iQ`O,5<vO(\x27nQ`O1G2RO(\x27sQ`O1G0uO(\x27xQMjO<<K}O((PQMjO<<K}O((WQMhO\x27#F|O9`Q`O\x27#F{OAuQ`O\x27#EnO!)[QlO,5;tO!3oQ`O\x27#GYO!3oQ`O\x27#GYO!3oQ`O\x27#G[O!3oQ`O\x27#G[O!,TQMhO7+(cO!,TQMhO7+(cO%.XQ!dO1G2wO%.XQ!dO1G2wO!&zQMhO,5=]O!&zQMhO,5=]','stateData':'()^~O\x27|OS\x27}OSTOS(ORQ~OPYOQYOSfOY!VOaqOdzOeyOl!POpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!uwO!xxO!|]O$W|O$niO%h}O%j!QO%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO%y!UO&W!WO&^!XO&`!YO&b!ZO&d![O&g!]O&m!^O&s!_O&u!`O&w!aO&y!bO&{!cO(TSO(VTO(YUO(aVO(o[O~OWtO~P`OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(T!dO(VTO(YUO(aVO(o[O~Oa!wOs!nO!S!oO!b!yO!c!vO!d!vO!|<SO#T!pO#U!pO#V!xO#W!pO#X!pO#[!zO#]!zO(U!lO(VTO(YUO(e!mO(o!sO~O(O!{O~OP]XR]X[]Xa]Xj]Xr]X!Q]X!S]X!]]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X\x27z]X(a]X(r]X(y]X(z]X~O!g%RX~P(qO_!}O(V#PO(W!}O(X#PO~O_#QO(X#PO(Y#PO(Z#QO~Ox#SO!U#TO(b#TO(c#VO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(T<WO(VTO(YUO(aVO(o[O~O![#ZO!]#WO!Y(hP!Y(vP~P+}O!^#cO~P`OPYOQYOSfOd!jOe!iOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(VTO(YUO(aVO(o[O~Op#mO![#iO!|]O#i#lO#j#iO(T<XO!k(sP~P.iO!l#oO(T#nO~O!x#sO!|]O%h#tO~O#k#uO~O!g#vO#k#uO~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!]$_O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(aVO(r$YO(y#|O(z#}O~Oa(fX\x27z(fX\x27w(fX!k(fX!Y(fX!_(fX%i(fX!g(fX~P1qO#S$dO#`$eO$Q$eOP(gXR(gX[(gXj(gXr(gX!Q(gX!S(gX!](gX!l(gX!p(gX#R(gX#n(gX#o(gX#p(gX#q(gX#r(gX#s(gX#t(gX#u(gX#v(gX#x(gX#z(gX#{(gX(a(gX(r(gX(y(gX(z(gX!_(gX%i(gX~Oa(gX\x27z(gX\x27w(gX!Y(gX!k(gXv(gX!g(gX~P4UO#`$eO~O$]$hO$_$gO$f$mO~OSfO!_$nO$i$oO$k$qO~Oh%VOj%dOk%dOp%WOr%XOs$tOt$tOz%YO|%ZO!O%]O!S${O!_$|O!i%bO!l$xO#j%cO$W%`O$t%^O$v%_O$y%aO(T$sO(VTO(YUO(a$uO(y$}O(z%POg(^P~Ol%[O~P7eO!l%eO~O!S%hO!_%iO(T%gO~O!g%mO~Oa%nO\x27z%nO~O!Q%rO~P%[O(U!lO~P%[O%n%vO~P%[Oh%VO!l%eO(T%gO(U!lO~Oe%}O!l%eO(T%gO~Oj$RO~O!_&PO(T%gO(U!lO(VTO(YUO`)WP~O!Q&SO!l&RO%j&VO&T&WO~P;SO!x#sO~O%s&YO!S)SX!_)SX(T)SX~O(T&ZO~Ol!PO!u&`O%j!QO%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO~Od&eOe&dO!x&bO%h&cO%{&aO~P<bOd&hOeyOl!PO!_&gO!u&`O!xxO!|]O%h}O%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO%y!UO~Ob&kO#`&nO%j&iO(U!lO~P=gO!l&oO!u&sO~O!l#oO~O!_XO~Oa%nO\x27x&{O\x27z%nO~Oa%nO\x27x\x27OO\x27z%nO~Oa%nO\x27x\x27QO\x27z%nO~O\x27w]X!Y]Xv]X!k]X&[]X!_]X%i]X!g]X~P(qO!b\x27_O!c\x27WO!d\x27WO(U!lO(VTO(YUO~Os\x27UO!S\x27TO![\x27XO(e\x27SO!^(iP!^(xP~P@nOn\x27bO!_\x27`O(T%gO~Oe\x27gO!l%eO(T%gO~O!Q&SO!l&RO~Os!nO!S!oO!|<SO#T!pO#U!pO#W!pO#X!pO(U!lO(VTO(YUO(e!mO(o!sO~O!b\x27mO!c\x27lO!d\x27lO#V!pO#[\x27nO#]\x27nO~PBYOa%nOh%VO!g#vO!l%eO\x27z%nO(r\x27pO~O!p\x27tO#`\x27rO~PChOs!nO!S!oO(VTO(YUO(e!mO(o!sO~O!_XOs(mX!S(mX!b(mX!c(mX!d(mX!|(mX#T(mX#U(mX#V(mX#W(mX#X(mX#[(mX#](mX(U(mX(V(mX(Y(mX(e(mX(o(mX~O!c\x27lO!d\x27lO(U!lO~PDWO(P\x27xO(Q\x27xO(R\x27zO~O_!}O(V\x27|O(W!}O(X\x27|O~O_#QO(X\x27|O(Y\x27|O(Z#QO~Ov(OO~P%[Ox#SO!U#TO(b#TO(c(RO~O![(TO!Y\x27WX!Y\x27^X!]\x27WX!]\x27^X~P+}O!](VO!Y(hX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!](VO!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(aVO(r$YO(y#|O(z#}O~O!Y(hX~PHRO!Y([O~O!Y(uX!](uX!g(uX!k(uX(r(uX~O#`(uX#k#dX!^(uX~PJUO#`(]O!Y(wX!](wX~O!](^O!Y(vX~O!Y(aO~O#`$eO~PJUO!^(bO~P`OR#zO!Q#yO!S#{O!l#xO(aVOP!na[!naj!nar!na!]!na!p!na#R!na#n!na#o!na#p!na#q!na#r!na#s!na#t!na#u!na#v!na#x!na#z!na#{!na(r!na(y!na(z!na~Oa!na\x27z!na\x27w!na!Y!na!k!nav!na!_!na%i!na!g!na~PKlO!k(cO~O!g#vO#`(dO(r\x27pO!](tXa(tX\x27z(tX~O!k(tX~PNXO!S%hO!_%iO!|]O#i(iO#j(hO(T%gO~O!](jO!k(sX~O!k(lO~O!S%hO!_%iO#j(hO(T%gO~OP(gXR(gX[(gXj(gXr(gX!Q(gX!S(gX!](gX!l(gX!p(gX#R(gX#n(gX#o(gX#p(gX#q(gX#r(gX#s(gX#t(gX#u(gX#v(gX#x(gX#z(gX#{(gX(a(gX(r(gX(y(gX(z(gX~O!g#vO!k(gX~P!\x20uOR(nO!Q(mO!l#xO#S$dO!|!{a!S!{a~O!x!{a%h!{a!_!{a#i!{a#j!{a(T!{a~P!#vO!x(rO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(T!dO(VTO(YUO(aVO(o[O~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<pO!S${O!_$|O!i>SO!l$xO#j<vO$W%`O$t<rO$v<tO$y%aO(T(vO(VTO(YUO(a$uO(y$}O(z%PO~O#k(xO~O![(zO!k(kP~P%[O(e(|O(o[O~O!S)OO!l#xO(e(|O(o[O~OP<ROQ<ROSfOd>OOe!iOpkOr<ROskOtkOzkO|<RO!O<RO!SWO!WkO!XkO!_!eO!i<UO!lZO!o<RO!p<RO!q<RO!s<VO!u<YO!x!hO$W!kO$n=|O(T)]O(VTO(YUO(aVO(o[O~O!]$_Oa$qa\x27z$qa\x27w$qa!k$qa!Y$qa!_$qa%i$qa!g$qa~Ol)dO~P!&zOh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O%]O!S${O!_$|O!i%bO!l$xO#j%cO$W%`O$t%^O$v%_O$y%aO(T(vO(VTO(YUO(a$uO(y$}O(z%PO~Og(pP~P!,TO!Q)iO!g)hO!_$^X$Z$^X$]$^X$_$^X$f$^X~O!g)hO!_({X$Z({X$]({X$_({X$f({X~O!Q)iO~P!.^O!Q)iO!_({X$Z({X$]({X$_({X$f({X~O!_)kO$Z)oO$])jO$_)jO$f)pO~O![)sO~P!)[O$]$hO$_$gO$f)wO~On$zX!Q$zX#S$zX\x27y$zX(y$zX(z$zX~OgmXg$zXnmX!]mX#`mX~P!0SOx)yO(b)zO(c)|O~On*VO!Q*OO\x27y*PO(y$}O(z%PO~Og)}O~P!1WOg*WO~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<pO!S*YO!_*ZO!i>SO!l$xO#j<vO$W%`O$t<rO$v<tO$y%aO(VTO(YUO(a$uO(y$}O(z%PO~O![*^O(T*XO!k)OP~P!1uO#k*`O~O!l*aO~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<pO!S${O!_$|O!i>SO!l$xO#j<vO$W%`O$t<rO$v<tO$y%aO(T*cO(VTO(YUO(a$uO(y$}O(z%PO~O![*fO!Y)PP~P!3tOr*rOs!nO!S*hO!b*pO!c*jO!d*jO!l*aO#[*qO%`*lO(U!lO(VTO(YUO(e!mO~O!^*oO~P!5iO#S$dOn(`X!Q(`X\x27y(`X(y(`X(z(`X!](`X#`(`X~Og(`X$O(`X~P!6kOn*wO#`*vOg(_X!](_X~O!]*xOg(^X~Oj%dOk%dOl%dO(T&ZOg(^P~Os*{O~Og)}O(T&ZO~O!l+RO~O(T(vO~Op+VO!S%hO![#iO!_%iO!|]O#i#lO#j#iO(T%gO!k(sP~O!g#vO#k+WO~O!S%hO![+YO!](^O!_%iO(T%gO!Y(vP~Os\x27[O!S+[O![+ZO(VTO(YUO(e(|O~O!^(xP~P!9|O!]+]Oa)TX\x27z)TX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(aVO(r$YO(y#|O(z#}O~Oa!ja!]!ja\x27z!ja\x27w!ja!Y!ja!k!jav!ja!_!ja%i!ja!g!ja~P!:tOR#zO!Q#yO!S#{O!l#xO(aVOP!ra[!raj!rar!ra!]!ra!p!ra#R!ra#n!ra#o!ra#p!ra#q!ra#r!ra#s!ra#t!ra#u!ra#v!ra#x!ra#z!ra#{!ra(r!ra(y!ra(z!ra~Oa!ra\x27z!ra\x27w!ra!Y!ra!k!rav!ra!_!ra%i!ra!g!ra~P!=[OR#zO!Q#yO!S#{O!l#xO(aVOP!ta[!taj!tar!ta!]!ta!p!ta#R!ta#n!ta#o!ta#p!ta#q!ta#r!ta#s!ta#t!ta#u!ta#v!ta#x!ta#z!ta#{!ta(r!ta(y!ta(z!ta~Oa!ta\x27z!ta\x27w!ta!Y!ta!k!tav!ta!_!ta%i!ta!g!ta~P!?rOh%VOn+fO!_\x27`O%i+eO~O!g+hOa(]X!_(]X\x27z(]X!](]X~Oa%nO!_XO\x27z%nO~Oh%VO!l%eO~Oh%VO!l%eO(T%gO~O!g#vO#k(xO~Ob+sO%j+tO(T+pO(VTO(YUO!^)XP~O!]+uO`)WX~O[+yO~O`+zO~O!_&PO(T%gO(U!lO`)WP~O%j+}O~P;SOh%VO#`,RO~Oh%VOn,UO!_$|O~O!_,WO~O!Q,YO!_XO~O%n%vO~O!x,_O~Oe,dO~Ob,eO(T#nO(VTO(YUO!^)VP~Oe%}O~O%j!QO(T&ZO~P=gO[,jO`,iO~OPYOQYOSfOdzOeyOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!iuO!lZO!oYO!pYO!qYO!svO!xxO!|]O$niO%h}O(VTO(YUO(aVO(o[O~O!_!eO!u!gO$W!kO(T!dO~P!FyO`,iOa%nO\x27z%nO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!x!hO$W!kO$niO(T!dO(VTO(YUO(aVO(o[O~Oa,oOl!OO!uwO%l!OO%m!OO%n!OO~P!IcO!l&oO~O&^,uO~O!_,wO~O&o,yO&q,zOP&laQ&laS&laY&laa&lad&lae&lal&lap&lar&las&lat&laz&la|&la!O&la!S&la!W&la!X&la!_&la!i&la!l&la!o&la!p&la!q&la!s&la!u&la!x&la!|&la$W&la$n&la%h&la%j&la%l&la%m&la%n&la%q&la%s&la%v&la%w&la%y&la&W&la&^&la&`&la&b&la&d&la&g&la&m&la&s&la&u&la&w&la&y&la&{&la\x27w&la(T&la(V&la(Y&la(a&la(o&la!^&la&e&lab&la&j&la~O(T-PO~Oh!eX!]!RX!^!RX!g!RX!g!eX!l!eX#`!RX~O!]!eX!^!eX~P#!iO!g-UO#`-TOh(jX!]#hX!^#hX!g(jX!l(jX~O!](jX!^(jX~P##[Oh%VO!g-WO!l%eO!]!aX!^!aX~Os!nO!S!oO(VTO(YUO(e!mO~OP<ROQ<ROSfOd>OOe!iOpkOr<ROskOtkOzkO|<RO!O<RO!SWO!WkO!XkO!_!eO!i<UO!lZO!o<RO!p<RO!q<RO!s<VO!u<YO!x!hO$W!kO$n=|O(VTO(YUO(aVO(o[O~O(T<}O~P#$qO!]-[O!^(iX~O!^-^O~O!g-UO#`-TO!]#hX!^#hX~O!]-_O!^(xX~O!^-aO~O!c-bO!d-bO(U!lO~P#$`O!^-eO~P\x27_On-hO!_\x27`O~O!Y-mO~Os!{a!b!{a!c!{a!d!{a#T!{a#U!{a#V!{a#W!{a#X!{a#[!{a#]!{a(U!{a(V!{a(Y!{a(e!{a(o!{a~P!#vO!p-rO#`-pO~PChO!c-tO!d-tO(U!lO~PDWOa%nO#`-pO\x27z%nO~Oa%nO!g#vO#`-pO\x27z%nO~Oa%nO!g#vO!p-rO#`-pO\x27z%nO(r\x27pO~O(P\x27xO(Q\x27xO(R-yO~Ov-zO~O!Y\x27Wa!]\x27Wa~P!:tO![.OO!Y\x27WX!]\x27WX~P%[O!](VO!Y(ha~O!Y(ha~PHRO!](^O!Y(va~O!S%hO![.SO!_%iO(T%gO!Y\x27^X!]\x27^X~O#`.UO!](ta!k(taa(ta\x27z(ta~O!g#vO~P#,wO!](jO!k(sa~O!S%hO!_%iO#j.YO(T%gO~Op._O!S%hO![.[O!_%iO!|]O#i.^O#j.[O(T%gO!]\x27aX!k\x27aX~OR.cO!l#xO~Oh%VOn.fO!_\x27`O%i.eO~Oa#ci!]#ci\x27z#ci\x27w#ci!Y#ci!k#civ#ci!_#ci%i#ci!g#ci~P!:tOn>YO!Q*OO\x27y*PO(y$}O(z%PO~O#k#_aa#_a#`#_a\x27z#_a!]#_a!k#_a!_#_a!Y#_a~P#/sO#k(`XP(`XR(`X[(`Xa(`Xj(`Xr(`X!S(`X!l(`X!p(`X#R(`X#n(`X#o(`X#p(`X#q(`X#r(`X#s(`X#t(`X#u(`X#v(`X#x(`X#z(`X#{(`X\x27z(`X(a(`X(r(`X!k(`X!Y(`X\x27w(`Xv(`X!_(`X%i(`X!g(`X~P!6kO!].sO!k(kX~P!:tO!k.vO~O!Y.xO~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(aVO[#mia#mij#mir#mi!]#mi#R#mi#o#mi#p#mi#q#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi\x27z#mi(r#mi(y#mi(z#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#n#mi~P#3cO#n$OO~P#3cOP$[OR#zOr$aO!Q#yO!S#{O!l#xO!p$[O#n$OO#o$PO#p$PO#q$PO(aVO[#mia#mij#mi!]#mi#R#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi\x27z#mi(r#mi(y#mi(z#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#r#mi~P#6QO#r$QO~P#6QOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO(aVOa#mi!]#mi#x#mi#z#mi#{#mi\x27z#mi(r#mi(y#mi(z#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#v#mi~P#8oOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO(aVO(z#}Oa#mi!]#mi#z#mi#{#mi\x27z#mi(r#mi(y#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#x$UO~P#;VO#x#mi~P#;VO#v$SO~P#8oOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO(aVO(y#|O(z#}Oa#mi!]#mi#{#mi\x27z#mi(r#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#z#mi~P#={O#z$WO~P#={OP]XR]X[]Xj]Xr]X!Q]X!S]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(a]X(r]X(y]X(z]X!]]X!^]X~O$O]X~P#@jOP$[OR#zO[<jOj<_Or<hO!Q#yO!S#{O!l#xO!p$[O#R<_O#n<[O#o<]O#p<]O#q<]O#r<^O#s<_O#t<_O#u<iO#v<`O#x<bO#z<dO#{<eO(aVO(r$YO(y#|O(z#}O~O$O.zO~P#BwO#S$dO#`<kO$Q<kO$O(gX!^(gX~P!\x20uOa\x27da!]\x27da\x27z\x27da\x27w\x27da!k\x27da!Y\x27dav\x27da!_\x27da%i\x27da!g\x27da~P!:tO[#mia#mij#mir#mi!]#mi#R#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi\x27z#mi(r#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#n$OO#o$PO#p$PO#q$PO(aVO(y#mi(z#mi~P#EyOn>YO!Q*OO\x27y*PO(y$}O(z%POP#miR#mi!S#mi!l#mi!p#mi#n#mi#o#mi#p#mi#q#mi(a#mi~P#EyO!]/OOg(pX~P!1WOg/QO~Oa$Pi!]$Pi\x27z$Pi\x27w$Pi!Y$Pi!k$Piv$Pi!_$Pi%i$Pi!g$Pi~P!:tO$]/RO$_/RO~O$]/SO$_/SO~O!g)hO#`/TO!_$cX$Z$cX$]$cX$_$cX$f$cX~O![/UO~O!_)kO$Z/WO$])jO$_)jO$f/XO~O!]<fO!^(fX~P#BwO!^/YO~O!g)hO$f({X~O$f/[O~Ov/]O~P!&zOx)yO(b)zO(c/`O~O!S/cO~O(y$}On%aa!Q%aa\x27y%aa(z%aa!]%aa#`%aa~Og%aa$O%aa~P#L{O(z%POn%ca!Q%ca\x27y%ca(y%ca!]%ca#`%ca~Og%ca$O%ca~P#MnO!]fX!gfX!kfX!k$zX(rfX~P!0SO![/lO!](^O(T/kO!Y(vP!Y)PP~P!1uOr*rO!b*pO!c*jO!d*jO!l*aO#[*qO%`*lO(U!lO(VTO(YUO~Os<zO!S/mO![+ZO!^*oO(e<yO!^(xP~P$\x20XO!k/nO~P#/sO!]/oO!g#vO(r\x27pO!k)OX~O!k/tO~O!S%hO![*^O!_%iO(T%gO!k)OP~O#k/vO~O!Y$zX!]$zX!g%RX~P!0SO!]/wO!Y)PX~P#/sO!g/yO~O!Y/{O~OpkO(T/|O~P.iOh%VOr0RO!g#vO!l%eO(r\x27pO~O!g+hO~Oa%nO!]0VO\x27z%nO~O!^0XO~P!5iO!c0YO!d0YO(U!lO~P#$`Os!nO!S0ZO(VTO(YUO(e!mO~O#[0]O~Og%aa!]%aa#`%aa$O%aa~P!1WOg%ca!]%ca#`%ca$O%ca~P!1WOj%dOk%dOl%dO(T&ZOg\x27mX!]\x27mX~O!]*xOg(^a~Og0fO~On0hO#`0gOg(_a!](_a~OR0iO!Q0iO!S0jO#S$dOn}a\x27y}a(y}a(z}a!]}a#`}a~Og}a$O}a~P$\x27pO!Q*OO\x27y*POn$sa(y$sa(z$sa!]$sa#`$sa~Og$sa$O$sa~P$(lO!Q*OO\x27y*POn$ua(y$ua(z$ua!]$ua#`$ua~Og$ua$O$ua~P$)_O#k0mO~Og%Ta!]%Ta#`%Ta$O%Ta~P!1WO!g#vO~O#k0pO~O!]+]Oa)Ta\x27z)Ta~OR#zO!Q#yO!S#{O!l#xO(aVOP!ri[!rij!rir!ri!]!ri!p!ri#R!ri#n!ri#o!ri#p!ri#q!ri#r!ri#s!ri#t!ri#u!ri#v!ri#x!ri#z!ri#{!ri(r!ri(y!ri(z!ri~Oa!ri\x27z!ri\x27w!ri!Y!ri!k!riv!ri!_!ri%i!ri!g!ri~P$*|Oh%VOr%XOs$tOt$tOz%YO|%ZO!O<pO!S${O!_$|O!i>SO!l$xO#j<vO$W%`O$t<rO$v<tO$y%aO(VTO(YUO(a$uO(y$}O(z%PO~Op0yO%]0zO(T0xO~P$-dO!g+hOa(]a!_(]a\x27z(]a!](]a~O#k1QO~O[]X!]fX!^fX~O!]1RO!^)XX~O!^1TO~O[1UO~Ob1WO(T+pO(VTO(YUO~O!_&PO(T%gO`\x27uX!]\x27uX~O!]+uO`)Wa~O!k1ZO~P!:tO[1^O~O`1_O~O#`1dO~On1gO!_$|O~O(e(|O!^)UP~Oh%VOn1pO!_1mO%i1oO~O[1zO!]1xO!^)VX~O!^1{O~O`1}Oa%nO\x27z%nO~O(T#nO(VTO(YUO~O#S$dO#`$eO$Q$eOP(gXR(gX[(gXr(gX!Q(gX!S(gX!](gX!l(gX!p(gX#R(gX#n(gX#o(gX#p(gX#q(gX#r(gX#s(gX#t(gX#u(gX#v(gX#x(gX#z(gX#{(gX(a(gX(r(gX(y(gX(z(gX~Oj2QO&[2ROa(gX~P$2}Oj2QO#`$eO&[2RO~Oa2TO~P%[Oa2VO~O&e2YOP&ciQ&ciS&ciY&cia&cid&cie&cil&cip&cir&cis&cit&ciz&ci|&ci!O&ci!S&ci!W&ci!X&ci!_&ci!i&ci!l&ci!o&ci!p&ci!q&ci!s&ci!u&ci!x&ci!|&ci$W&ci$n&ci%h&ci%j&ci%l&ci%m&ci%n&ci%q&ci%s&ci%v&ci%w&ci%y&ci&W&ci&^&ci&`&ci&b&ci&d&ci&g&ci&m&ci&s&ci&u&ci&w&ci&y&ci&{&ci\x27w&ci(T&ci(V&ci(Y&ci(a&ci(o&ci!^&cib&ci&j&ci~Ob2`O!^2^O&j2_O~P`O!_XO!l2bO~O&q,zOP&liQ&liS&liY&lia&lid&lie&lil&lip&lir&lis&lit&liz&li|&li!O&li!S&li!W&li!X&li!_&li!i&li!l&li!o&li!p&li!q&li!s&li!u&li!x&li!|&li$W&li$n&li%h&li%j&li%l&li%m&li%n&li%q&li%s&li%v&li%w&li%y&li&W&li&^&li&`&li&b&li&d&li&g&li&m&li&s&li&u&li&w&li&y&li&{&li\x27w&li(T&li(V&li(Y&li(a&li(o&li!^&li&e&lib&li&j&li~O!Y2hO~O!]!aa!^!aa~P#BwOs!nO!S!oO![2nO(e!mO!]\x27XX!^\x27XX~P@nO!]-[O!^(ia~O!]\x27_X!^\x27_X~P!9|O!]-_O!^(xa~O!^2uO~P\x27_Oa%nO#`3OO\x27z%nO~Oa%nO!g#vO#`3OO\x27z%nO~Oa%nO!g#vO!p3SO#`3OO\x27z%nO(r\x27pO~Oa%nO\x27z%nO~P!:tO!]$_Ov$qa~O!Y\x27Wi!]\x27Wi~P!:tO!](VO!Y(hi~O!](^O!Y(vi~O!Y(wi!](wi~P!:tO!](ti!k(tia(ti\x27z(ti~P!:tO#`3UO!](ti!k(tia(ti\x27z(ti~O!](jO!k(si~O!S%hO!_%iO!|]O#i3ZO#j3YO(T%gO~O!S%hO!_%iO#j3YO(T%gO~On3bO!_\x27`O%i3aO~Oh%VOn3bO!_\x27`O%i3aO~O#k%aaP%aaR%aa[%aaa%aaj%aar%aa!S%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa\x27z%aa(a%aa(r%aa!k%aa!Y%aa\x27w%aav%aa!_%aa%i%aa!g%aa~P#L{O#k%caP%caR%ca[%caa%caj%car%ca!S%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca\x27z%ca(a%ca(r%ca!k%ca!Y%ca\x27w%cav%ca!_%ca%i%ca!g%ca~P#MnO#k%aaP%aaR%aa[%aaa%aaj%aar%aa!S%aa!]%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa\x27z%aa(a%aa(r%aa!k%aa!Y%aa\x27w%aa#`%aav%aa!_%aa%i%aa!g%aa~P#/sO#k%caP%caR%ca[%caa%caj%car%ca!S%ca!]%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca\x27z%ca(a%ca(r%ca!k%ca!Y%ca\x27w%ca#`%cav%ca!_%ca%i%ca!g%ca~P#/sO#k}aP}a[}aa}aj}ar}a!l}a!p}a#R}a#n}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#x}a#z}a#{}a\x27z}a(a}a(r}a!k}a!Y}a\x27w}av}a!_}a%i}a!g}a~P$\x27pO#k$saP$saR$sa[$saa$saj$sar$sa!S$sa!l$sa!p$sa#R$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#t$sa#u$sa#v$sa#x$sa#z$sa#{$sa\x27z$sa(a$sa(r$sa!k$sa!Y$sa\x27w$sav$sa!_$sa%i$sa!g$sa~P$(lO#k$uaP$uaR$ua[$uaa$uaj$uar$ua!S$ua!l$ua!p$ua#R$ua#n$ua#o$ua#p$ua#q$ua#r$ua#s$ua#t$ua#u$ua#v$ua#x$ua#z$ua#{$ua\x27z$ua(a$ua(r$ua!k$ua!Y$ua\x27w$uav$ua!_$ua%i$ua!g$ua~P$)_O#k%TaP%TaR%Ta[%Taa%Taj%Tar%Ta!S%Ta!]%Ta!l%Ta!p%Ta#R%Ta#n%Ta#o%Ta#p%Ta#q%Ta#r%Ta#s%Ta#t%Ta#u%Ta#v%Ta#x%Ta#z%Ta#{%Ta\x27z%Ta(a%Ta(r%Ta!k%Ta!Y%Ta\x27w%Ta#`%Tav%Ta!_%Ta%i%Ta!g%Ta~P#/sOa#cq!]#cq\x27z#cq\x27w#cq!Y#cq!k#cqv#cq!_#cq%i#cq!g#cq~P!:tO![3jO!]\x27YX!k\x27YX~P%[O!].sO!k(ka~O!].sO!k(ka~P!:tO!Y3mO~O$O!na!^!na~PKlO$O!ja!]!ja!^!ja~P#BwO$O!ra!^!ra~P!=[O$O!ta!^!ta~P!?rOg\x27]X!]\x27]X~P!,TO!]/OOg(pa~OSfO!_4RO$d4SO~O!^4WO~Ov4XO~P#/sOa$mq!]$mq\x27z$mq\x27w$mq!Y$mq!k$mqv$mq!_$mq%i$mq!g$mq~P!:tO!Y4ZO~P!&zO!S4[O~O!Q*OO\x27y*PO(z%POn\x27ia(y\x27ia!]\x27ia#`\x27ia~Og\x27ia$O\x27ia~P%,sO!Q*OO\x27y*POn\x27ka(y\x27ka(z\x27ka!]\x27ka#`\x27ka~Og\x27ka$O\x27ka~P%-fO(r$YO~P#/sO!YfX!Y$zX!]fX!]$zX!g%RX#`fX~P!0SO(T=TO~P!1uO!S%hO![4_O!_%iO(T%gO!]\x27eX!k\x27eX~O!]/oO!k)Oa~O!]/oO!g#vO!k)Oa~O!]/oO!g#vO(r\x27pO!k)Oa~Og$|i!]$|i#`$|i$O$|i~P!1WO![4gO!Y\x27gX!]\x27gX~P!3tO!]/wO!Y)Pa~O!]/wO!Y)Pa~P#/sOP]XR]X[]Xj]Xr]X!Q]X!S]X!Y]X!]]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(a]X(r]X(y]X(z]X~Oj%YX!g%YX~P%1VOj4lO!g#vO~Oh%VO!g#vO!l%eO~Oh%VOr4qO!l%eO(r\x27pO~Or4vO!g#vO(r\x27pO~Os!nO!S4wO(VTO(YUO(e!mO~O(y$}On%ai!Q%ai\x27y%ai(z%ai!]%ai#`%ai~Og%ai$O%ai~P%4vO(z%POn%ci!Q%ci\x27y%ci(y%ci!]%ci#`%ci~Og%ci$O%ci~P%5iOg(_i!](_i~P!1WO#`4}Og(_i!](_i~P!1WO!k5SO~Oa$oq!]$oq\x27z$oq\x27w$oq!Y$oq!k$oqv$oq!_$oq%i$oq!g$oq~P!:tO!Y5WO~O!]5XO!_)QX~P#/sOa$zX!_$zX%^]X\x27z$zX!]$zX~P!0SO%^5[OaoXnoX!QoX!_oX\x27yoX\x27zoX(yoX(zoX!]oX~Op5]O(T#nO~O%^5[O~Ob5cO%j5dO(T+pO(VTO(YUO!]\x27tX!^\x27tX~O!]1RO!^)Xa~O[5hO~O`5iO~O[5mO~Oa%nO\x27z%nO~P#/sO!]5rO#`5tO!^)UX~O!^5uO~Or5{Os!nO!S*hO!b!yO!c!vO!d!vO!|<SO#T!pO#U!pO#V!pO#W!pO#X!pO#[5zO#]!zO(U!lO(VTO(YUO(e!mO(o!sO~O!^5yO~P%:yOn6QO!_1mO%i6PO~Oh%VOn6QO!_1mO%i6PO~Ob6XO(T#nO(VTO(YUO!]\x27sX!^\x27sX~O!]1xO!^)Va~O(VTO(YUO(e6ZO~O`6_O~Oj6bO&[6cO~PNXO!k6dO~P%[Oa6fO~Oa6fO~P%[Ob2`O!^6kO&j2_O~P`O!g6mO~O!g6oOh(ji!](ji!^(ji!g(ji!l(jir(ji(r(ji~O!]#hi!^#hi~P#BwO#`6pO!]#hi!^#hi~O!]!ai!^!ai~P#BwOa%nO#`6yO\x27z%nO~Oa%nO!g#vO#`6yO\x27z%nO~O!](tq!k(tqa(tq\x27z(tq~P!:tO!](jO!k(sq~O!S%hO!_%iO#j7QO(T%gO~O!_\x27`O%i7TO~On7XO!_\x27`O%i7TO~O#k\x27iaP\x27iaR\x27ia[\x27iaa\x27iaj\x27iar\x27ia!S\x27ia!l\x27ia!p\x27ia#R\x27ia#n\x27ia#o\x27ia#p\x27ia#q\x27ia#r\x27ia#s\x27ia#t\x27ia#u\x27ia#v\x27ia#x\x27ia#z\x27ia#{\x27ia\x27z\x27ia(a\x27ia(r\x27ia!k\x27ia!Y\x27ia\x27w\x27iav\x27ia!_\x27ia%i\x27ia!g\x27ia~P%,sO#k\x27kaP\x27kaR\x27ka[\x27kaa\x27kaj\x27kar\x27ka!S\x27ka!l\x27ka!p\x27ka#R\x27ka#n\x27ka#o\x27ka#p\x27ka#q\x27ka#r\x27ka#s\x27ka#t\x27ka#u\x27ka#v\x27ka#x\x27ka#z\x27ka#{\x27ka\x27z\x27ka(a\x27ka(r\x27ka!k\x27ka!Y\x27ka\x27w\x27kav\x27ka!_\x27ka%i\x27ka!g\x27ka~P%-fO#k$|iP$|iR$|i[$|ia$|ij$|ir$|i!S$|i!]$|i!l$|i!p$|i#R$|i#n$|i#o$|i#p$|i#q$|i#r$|i#s$|i#t$|i#u$|i#v$|i#x$|i#z$|i#{$|i\x27z$|i(a$|i(r$|i!k$|i!Y$|i\x27w$|i#`$|iv$|i!_$|i%i$|i!g$|i~P#/sO#k%aiP%aiR%ai[%aia%aij%air%ai!S%ai!l%ai!p%ai#R%ai#n%ai#o%ai#p%ai#q%ai#r%ai#s%ai#t%ai#u%ai#v%ai#x%ai#z%ai#{%ai\x27z%ai(a%ai(r%ai!k%ai!Y%ai\x27w%aiv%ai!_%ai%i%ai!g%ai~P%4vO#k%ciP%ciR%ci[%cia%cij%cir%ci!S%ci!l%ci!p%ci#R%ci#n%ci#o%ci#p%ci#q%ci#r%ci#s%ci#t%ci#u%ci#v%ci#x%ci#z%ci#{%ci\x27z%ci(a%ci(r%ci!k%ci!Y%ci\x27w%civ%ci!_%ci%i%ci!g%ci~P%5iO!]\x27Ya!k\x27Ya~P!:tO!].sO!k(ki~O$O#ci!]#ci!^#ci~P#BwOP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(aVO[#mij#mir#mi#R#mi#o#mi#p#mi#q#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(r#mi(y#mi(z#mi!]#mi!^#mi~O#n#mi~P%MxO#n<[O~P%MxOP$[OR#zOr<hO!Q#yO!S#{O!l#xO!p$[O#n<[O#o<]O#p<]O#q<]O(aVO[#mij#mi#R#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(r#mi(y#mi(z#mi!]#mi!^#mi~O#r#mi~P&!QO#r<^O~P&!QOP$[OR#zO[<jOj<_Or<hO!Q#yO!S#{O!l#xO!p$[O#R<_O#n<[O#o<]O#p<]O#q<]O#r<^O#s<_O#t<_O#u<iO(aVO#x#mi#z#mi#{#mi$O#mi(r#mi(y#mi(z#mi!]#mi!^#mi~O#v#mi~P&$YOP$[OR#zO[<jOj<_Or<hO!Q#yO!S#{O!l#xO!p$[O#R<_O#n<[O#o<]O#p<]O#q<]O#r<^O#s<_O#t<_O#u<iO#v<`O(aVO(z#}O#z#mi#{#mi$O#mi(r#mi(y#mi!]#mi!^#mi~O#x<bO~P&&ZO#x#mi~P&&ZO#v<`O~P&$YOP$[OR#zO[<jOj<_Or<hO!Q#yO!S#{O!l#xO!p$[O#R<_O#n<[O#o<]O#p<]O#q<]O#r<^O#s<_O#t<_O#u<iO#v<`O#x<bO(aVO(y#|O(z#}O#{#mi$O#mi(r#mi!]#mi!^#mi~O#z#mi~P&(jO#z<dO~P&(jOa#|y!]#|y\x27z#|y\x27w#|y!Y#|y!k#|yv#|y!_#|y%i#|y!g#|y~P!:tO[#mij#mir#mi#R#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(r#mi!]#mi!^#mi~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#n<[O#o<]O#p<]O#q<]O(aVO(y#mi(z#mi~P&+fOn>ZO!Q*OO\x27y*PO(y$}O(z%POP#miR#mi!S#mi!l#mi!p#mi#n#mi#o#mi#p#mi#q#mi(a#mi~P&+fO#S$dOP(`XR(`X[(`Xj(`Xn(`Xr(`X!Q(`X!S(`X!l(`X!p(`X#R(`X#n(`X#o(`X#p(`X#q(`X#r(`X#s(`X#t(`X#u(`X#v(`X#x(`X#z(`X#{(`X$O(`X\x27y(`X(a(`X(r(`X(y(`X(z(`X!](`X!^(`X~O$O$Pi!]$Pi!^$Pi~P#BwO$O!ri!^!ri~P$*|Og\x27]a!]\x27]a~P!1WO!^7kO~O!]\x27da!^\x27da~P#BwO!Y7lO~P#/sO!g#vO(r\x27pO!]\x27ea!k\x27ea~O!]/oO!k)Oi~O!]/oO!g#vO!k)Oi~Og$|q!]$|q#`$|q$O$|q~P!1WO!Y\x27ga!]\x27ga~P#/sO!g7sO~O!]/wO!Y)Pi~P#/sO!]/wO!Y)Pi~O!Y7vO~Oh%VOr7{O!l%eO(r\x27pO~Oj7}O!g#vO~Or8QO!g#vO(r\x27pO~O!Q*OO\x27y*PO(z%POn\x27ja(y\x27ja!]\x27ja#`\x27ja~Og\x27ja$O\x27ja~P&4gO!Q*OO\x27y*POn\x27la(y\x27la(z\x27la!]\x27la#`\x27la~Og\x27la$O\x27la~P&5YOg(_q!](_q~P!1WO#`8SOg(_q!](_q~P!1WO!Y8TO~Og%Oq!]%Oq#`%Oq$O%Oq~P!1WOa$oy!]$oy\x27z$oy\x27w$oy!Y$oy!k$oyv$oy!_$oy%i$oy!g$oy~P!:tO!g6oO~O!]5XO!_)Qa~O!_\x27`OP$TaR$Ta[$Taj$Tar$Ta!Q$Ta!S$Ta!]$Ta!l$Ta!p$Ta#R$Ta#n$Ta#o$Ta#p$Ta#q$Ta#r$Ta#s$Ta#t$Ta#u$Ta#v$Ta#x$Ta#z$Ta#{$Ta(a$Ta(r$Ta(y$Ta(z$Ta~O%i7TO~P&7zO%^8XOa%[i!_%[i\x27z%[i!]%[i~Oa#cy!]#cy\x27z#cy\x27w#cy!Y#cy!k#cyv#cy!_#cy%i#cy!g#cy~P!:tO[8ZO~Ob8]O(T+pO(VTO(YUO~O!]1RO!^)Xi~O`8aO~O(e(|O!]\x27pX!^\x27pX~O!]5rO!^)Ua~O!^8kO~P%:yO(o!sO~P$%gO#[8lO~O!_1mO~O!_1mO%i8nO~On8qO!_1mO%i8nO~O[8vO!]\x27sa!^\x27sa~O!]1xO!^)Vi~O!k8zO~O!k8{O~O!k9OO~O!k9OO~P%[Oa9QO~O!g9RO~O!k9SO~O!](wi!^(wi~P#BwOa%nO#`9[O\x27z%nO~O!](ty!k(tya(ty\x27z(ty~P!:tO!](jO!k(sy~O%i9_O~P&7zO!_\x27`O%i9_O~O#k$|qP$|qR$|q[$|qa$|qj$|qr$|q!S$|q!]$|q!l$|q!p$|q#R$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#t$|q#u$|q#v$|q#x$|q#z$|q#{$|q\x27z$|q(a$|q(r$|q!k$|q!Y$|q\x27w$|q#`$|qv$|q!_$|q%i$|q!g$|q~P#/sO#k\x27jaP\x27jaR\x27ja[\x27jaa\x27jaj\x27jar\x27ja!S\x27ja!l\x27ja!p\x27ja#R\x27ja#n\x27ja#o\x27ja#p\x27ja#q\x27ja#r\x27ja#s\x27ja#t\x27ja#u\x27ja#v\x27ja#x\x27ja#z\x27ja#{\x27ja\x27z\x27ja(a\x27ja(r\x27ja!k\x27ja!Y\x27ja\x27w\x27jav\x27ja!_\x27ja%i\x27ja!g\x27ja~P&4gO#k\x27laP\x27laR\x27la[\x27laa\x27laj\x27lar\x27la!S\x27la!l\x27la!p\x27la#R\x27la#n\x27la#o\x27la#p\x27la#q\x27la#r\x27la#s\x27la#t\x27la#u\x27la#v\x27la#x\x27la#z\x27la#{\x27la\x27z\x27la(a\x27la(r\x27la!k\x27la!Y\x27la\x27w\x27lav\x27la!_\x27la%i\x27la!g\x27la~P&5YO#k%OqP%OqR%Oq[%Oqa%Oqj%Oqr%Oq!S%Oq!]%Oq!l%Oq!p%Oq#R%Oq#n%Oq#o%Oq#p%Oq#q%Oq#r%Oq#s%Oq#t%Oq#u%Oq#v%Oq#x%Oq#z%Oq#{%Oq\x27z%Oq(a%Oq(r%Oq!k%Oq!Y%Oq\x27w%Oq#`%Oqv%Oq!_%Oq%i%Oq!g%Oq~P#/sO!]\x27Yi!k\x27Yi~P!:tO$O#cq!]#cq!^#cq~P#BwO(y$}OP%aaR%aa[%aaj%aar%aa!S%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa$O%aa(a%aa(r%aa!]%aa!^%aa~On%aa!Q%aa\x27y%aa(z%aa~P&I_O(z%POP%caR%ca[%caj%car%ca!S%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca$O%ca(a%ca(r%ca!]%ca!^%ca~On%ca!Q%ca\x27y%ca(y%ca~P&KfOn>ZO!Q*OO\x27y*PO(z%PO~P&I_On>ZO!Q*OO\x27y*PO(y$}O~P&KfOR0iO!Q0iO!S0jO#S$dOP}a[}aj}an}ar}a!l}a!p}a#R}a#n}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#x}a#z}a#{}a$O}a\x27y}a(a}a(r}a(y}a(z}a!]}a!^}a~O!Q*OO\x27y*POP$saR$sa[$saj$san$sar$sa!S$sa!l$sa!p$sa#R$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#t$sa#u$sa#v$sa#x$sa#z$sa#{$sa$O$sa(a$sa(r$sa(y$sa(z$sa!]$sa!^$sa~O!Q*OO\x27y*POP$uaR$ua[$uaj$uan$uar$ua!S$ua!l$ua!p$ua#R$ua#n$ua#o$ua#p$ua#q$ua#r$ua#s$ua#t$ua#u$ua#v$ua#x$ua#z$ua#{$ua$O$ua(a$ua(r$ua(y$ua(z$ua!]$ua!^$ua~On>ZO!Q*OO\x27y*PO(y$}O(z%PO~OP%TaR%Ta[%Taj%Tar%Ta!S%Ta!l%Ta!p%Ta#R%Ta#n%Ta#o%Ta#p%Ta#q%Ta#r%Ta#s%Ta#t%Ta#u%Ta#v%Ta#x%Ta#z%Ta#{%Ta$O%Ta(a%Ta(r%Ta!]%Ta!^%Ta~P\x27&kO$O$mq!]$mq!^$mq~P#BwO$O$oq!]$oq!^$oq~P#BwO!^9lO~O$O9mO~P!1WO!g#vO!]\x27ei!k\x27ei~O!g#vO(r\x27pO!]\x27ei!k\x27ei~O!]/oO!k)Oq~O!Y\x27gi!]\x27gi~P#/sO!]/wO!Y)Pq~Or9tO!g#vO(r\x27pO~O[9vO!Y9uO~P#/sO!Y9uO~Oj9|O!g#vO~Og(_y!](_y~P!1WO!]\x27na!_\x27na~P#/sOa%[q!_%[q\x27z%[q!]%[q~P#/sO[:RO~O!]1RO!^)Xq~O`:VO~O#`:WO!]\x27pa!^\x27pa~O!]5rO!^)Ui~P#BwO!S:YO~O!_1mO%i:]O~O(VTO(YUO(e:bO~O!]1xO!^)Vq~O!k:eO~O!k:fO~O!k:gO~O!k:gO~P%[O#`:jO!]#hy!^#hy~O!]#hy!^#hy~P#BwO%i:oO~P&7zO!_\x27`O%i:oO~O$O#|y!]#|y!^#|y~P#BwOP$|iR$|i[$|ij$|ir$|i!S$|i!l$|i!p$|i#R$|i#n$|i#o$|i#p$|i#q$|i#r$|i#s$|i#t$|i#u$|i#v$|i#x$|i#z$|i#{$|i$O$|i(a$|i(r$|i!]$|i!^$|i~P\x27&kO!Q*OO\x27y*PO(z%POP\x27iaR\x27ia[\x27iaj\x27ian\x27iar\x27ia!S\x27ia!l\x27ia!p\x27ia#R\x27ia#n\x27ia#o\x27ia#p\x27ia#q\x27ia#r\x27ia#s\x27ia#t\x27ia#u\x27ia#v\x27ia#x\x27ia#z\x27ia#{\x27ia$O\x27ia(a\x27ia(r\x27ia(y\x27ia!]\x27ia!^\x27ia~O!Q*OO\x27y*POP\x27kaR\x27ka[\x27kaj\x27kan\x27kar\x27ka!S\x27ka!l\x27ka!p\x27ka#R\x27ka#n\x27ka#o\x27ka#p\x27ka#q\x27ka#r\x27ka#s\x27ka#t\x27ka#u\x27ka#v\x27ka#x\x27ka#z\x27ka#{\x27ka$O\x27ka(a\x27ka(r\x27ka(y\x27ka(z\x27ka!]\x27ka!^\x27ka~O(y$}OP%aiR%ai[%aij%ain%air%ai!Q%ai!S%ai!l%ai!p%ai#R%ai#n%ai#o%ai#p%ai#q%ai#r%ai#s%ai#t%ai#u%ai#v%ai#x%ai#z%ai#{%ai$O%ai\x27y%ai(a%ai(r%ai(z%ai!]%ai!^%ai~O(z%POP%ciR%ci[%cij%cin%cir%ci!Q%ci!S%ci!l%ci!p%ci#R%ci#n%ci#o%ci#p%ci#q%ci#r%ci#s%ci#t%ci#u%ci#v%ci#x%ci#z%ci#{%ci$O%ci\x27y%ci(a%ci(r%ci(y%ci!]%ci!^%ci~O$O$oy!]$oy!^$oy~P#BwO$O#cy!]#cy!^#cy~P#BwO!g#vO!]\x27eq!k\x27eq~O!]/oO!k)Oy~O!Y\x27gq!]\x27gq~P#/sOr:yO!g#vO(r\x27pO~O[:}O!Y:|O~P#/sO!Y:|O~Og(_!R!](_!R~P!1WOa%[y!_%[y\x27z%[y!]%[y~P#/sO!]1RO!^)Xy~O!]5rO!^)Uq~O(T;UO~O!_1mO%i;XO~O!k;[O~O%i;aO~P&7zOP$|qR$|q[$|qj$|qr$|q!S$|q!l$|q!p$|q#R$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#t$|q#u$|q#v$|q#x$|q#z$|q#{$|q$O$|q(a$|q(r$|q!]$|q!^$|q~P\x27&kO!Q*OO\x27y*PO(z%POP\x27jaR\x27ja[\x27jaj\x27jan\x27jar\x27ja!S\x27ja!l\x27ja!p\x27ja#R\x27ja#n\x27ja#o\x27ja#p\x27ja#q\x27ja#r\x27ja#s\x27ja#t\x27ja#u\x27ja#v\x27ja#x\x27ja#z\x27ja#{\x27ja$O\x27ja(a\x27ja(r\x27ja(y\x27ja!]\x27ja!^\x27ja~O!Q*OO\x27y*POP\x27laR\x27la[\x27laj\x27lan\x27lar\x27la!S\x27la!l\x27la!p\x27la#R\x27la#n\x27la#o\x27la#p\x27la#q\x27la#r\x27la#s\x27la#t\x27la#u\x27la#v\x27la#x\x27la#z\x27la#{\x27la$O\x27la(a\x27la(r\x27la(y\x27la(z\x27la!]\x27la!^\x27la~OP%OqR%Oq[%Oqj%Oqr%Oq!S%Oq!l%Oq!p%Oq#R%Oq#n%Oq#o%Oq#p%Oq#q%Oq#r%Oq#s%Oq#t%Oq#u%Oq#v%Oq#x%Oq#z%Oq#{%Oq$O%Oq(a%Oq(r%Oq!]%Oq!^%Oq~P\x27&kOg%e!Z!]%e!Z#`%e!Z$O%e!Z~P!1WO!Y;eO~P#/sOr;fO!g#vO(r\x27pO~O[;hO!Y;eO~P#/sO!]\x27pq!^\x27pq~P#BwO!]#h!Z!^#h!Z~P#BwO#k%e!ZP%e!ZR%e!Z[%e!Za%e!Zj%e!Zr%e!Z!S%e!Z!]%e!Z!l%e!Z!p%e!Z#R%e!Z#n%e!Z#o%e!Z#p%e!Z#q%e!Z#r%e!Z#s%e!Z#t%e!Z#u%e!Z#v%e!Z#x%e!Z#z%e!Z#{%e!Z\x27z%e!Z(a%e!Z(r%e!Z!k%e!Z!Y%e!Z\x27w%e!Z#`%e!Zv%e!Z!_%e!Z%i%e!Z!g%e!Z~P#/sOr;qO!g#vO(r\x27pO~O!Y;rO~P#/sOr;yO!g#vO(r\x27pO~O!Y;zO~P#/sOP%e!ZR%e!Z[%e!Zj%e!Zr%e!Z!S%e!Z!l%e!Z!p%e!Z#R%e!Z#n%e!Z#o%e!Z#p%e!Z#q%e!Z#r%e!Z#s%e!Z#t%e!Z#u%e!Z#v%e!Z#x%e!Z#z%e!Z#{%e!Z$O%e!Z(a%e!Z(r%e!Z!]%e!Z!^%e!Z~P\x27&kOr;}O!g#vO(r\x27pO~Ov(fX~P1qO!Q%rO~P!)[O(U!lO~P!)[O!YfX!]fX#`fX~P%1VOP]XR]X[]Xj]Xr]X!Q]X!S]X!]]X!]fX!l]X!p]X#R]X#S]X#`]X#`fX#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(a]X(r]X(y]X(z]X~O!gfX!k]X!kfX(rfX~P\x27KiOP<ROQ<ROSfOd>OOe!iOpkOr<ROskOtkOzkO|<RO!O<RO!SWO!WkO!XkO!_XO!i<UO!lZO!o<RO!p<RO!q<RO!s<VO!u<YO!x!hO$W!kO$n=|O(T)]O(VTO(YUO(aVO(o[O~O!]<fO!^$qa~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<qO!S${O!_$|O!i>TO!l$xO#j<wO$W%`O$t<sO$v<uO$y%aO(T(vO(VTO(YUO(a$uO(y$}O(z%PO~Ol)dO~P(!_Or!eX(r!eX~P#!iOr(jX(r(jX~P##[O!^]X!^fX~P\x27KiO!YfX!Y$zX!]fX!]$zX#`fX~P!0SO#k<ZO~O!g#vO#k<ZO~O#`<kO~Oj<_O~O#`<{O!](wX!^(wX~O#`<kO!](uX!^(uX~O#k<|O~Og=OO~P!1WO#k=UO~O#k=VO~Og=OO(T&ZO~O!g#vO#k=WO~O!g#vO#k<|O~O$O=XO~P#BwO#k=YO~O#k=ZO~O#k=`O~O#k=aO~O#k=bO~O#k=cO~O$O=dO~P!1WO$O=eO~P!1WOl=pO~P7eOk#S#T#U#W#X#[#i#j#u$n$t$v$y%]%^%h%i%j%q%s%v%w%y%{~(OT#o!X\x27|(U#ps#n#qr!Q\x27}$]\x27}(T$_(e~','goto':'$9V)]PPPPPP)^PP)aP)rP+W/]PPPP6mPP7TPP=QPPP@tPA^PA^PPPA^PCfPA^PA^PA^PCjPCoPD^PIWPPPI[PPPPI[L_PPPLeMVPI[PI[PP!\x20eI[PPPI[PI[P!#lI[P!\x27S!(X!(bP!)U!)Y!)U!,gPPPPPPP!-W!(XPP!-h!/YP!2fI[I[!2k!5w!:e!:e!>dPPP!>lI[PPPPPPPPP!A{P!CYPPI[!DkPI[PI[I[I[I[I[PI[!E}P!IXP!L_P!Lc!Lm!Lq!LqP!IUP!Lu!LuP#\x20{P#!PI[PI[#!V#%[CjA^PA^PA^A^P#&iA^A^#({A^#+sA^#.PA^A^#.o#1T#1T#1Y#1c#1T#1nPP#1TPA^#2WA^#6VA^A^6mPPP#:[PPP#:u#:uP#:uP#;]#:uPP#;cP#;YP#;Y#;v#;Y#<b#<h#<k)aP#<n)aP#<w#<w#<wP)aP)aP)aP)aPP)aP#<}#=QP#=Q)aP#=UP#=XP)aP)aP)aP)aP)aP)a)aPP#=_#=e#=p#=v#=|#>S#>Y#>h#>n#>x#?O#?Y#?`#?p#?v#@h#@z#AQ#AW#Af#A{#Cp#DO#DV#Eq#FP#Gq#HP#HV#H]#Hc#Hm#Hs#Hy#IT#Ig#ImPPPPPPPPPPP#IsPPPPPPP#Jh#Mu$\x20_$\x20f$\x20nPPP$\x27YP$\x27c$*[$0u$0x$0{$1z$1}$2U$2^P$2d$2gP$3T$3X$4P$5_$5d$5zPP$6P$6V$6Z$6^$6b$6f$7b$7y$8b$8f$8i$8l$8v$8y$8}$9RR!|RoqOXst!Z#d%m&r&t&u&w,r,w2Y2]Y!vQ\x27`-d1m5xQ%tvQ%|yQ&T|Q&j!VS\x27W!e-[Q\x27f!iS\x27l!r!yU*j$|*Z*nQ+n%}S+{&V&WQ,c&dQ-b\x27_Q-l\x27gQ-t\x27mQ0Y*pQ1`+}Q1w,dR<x<V%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*h+W+[,o,r,w-h-p.O.U.s.z/m0Z0j0p1Q1p2Q2R2T2V2Y2]2_3O3U3j4w6Q6b6c6f6y8q9Q9[S#q]<S!r)_$Z$n\x27X)s-T-W/U2n4R5t6p:W:j<R<U<V<Y<Z<[<]<^<_<`<a<b<c<d<e<f<h<k<x<{<|=O=W=X=b=c>PU+O%]<p<qQ+s&PQ,e&gQ,l&oQ0v+fQ0{+hQ1W+tQ2P,jQ3^.fQ5]0zQ5c1RQ6X1xQ7V3bQ8]5dR9b7X\x27QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*h+W+[+f,o,r,w-T-W-h-p.O.U.f.s.z/U/m0Z0j0p1Q1p2Q2R2T2V2Y2]2_2n3O3U3b3j4R4w5t6Q6b6c6f6p6y7X8q9Q9[:W:j<R<U<V<Y<Z<[<]<^<_<`<a<b<c<d<e<f<h<k<x<{<|=O=W=X=b=c>P!S!nQ!r!v!y!z$|\x27W\x27_\x27`\x27l\x27m\x27n*j*n*p*q-[-b-d-t0Y0]1m5x5z%[$ti#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*`*f*v*w+e+h,R,U.e/O/c/l/v/w/y0^0`0g0h0m1d1g1o3a4[4]4g4l4}5X5[6P7T7s7}8S8X8n9_9m9v9|:]:o:};X;a;h<i<j<l<m<n<o<r<s<t<u<v<w=P=Q=R=S=U=V=Y=Z=[=]=^=_=`=a=d=e=|>U>V>Y>ZQ&X|Q\x27U!eS\x27[%i-_Q+s&PQ,O&WQ,e&gQ0l+RQ1W+tQ1]+zQ2O,iQ2P,jQ5c1RQ5l1_Q6X1xQ6[1zQ6]1}Q8]5dQ8`5iQ8y6_Q:U8aQ:c8vQ;S:VR<z*ZrnOXst!V!Z#d%m&i&r&t&u&w,r,w2Y2]R,g&k&z^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27b\x27r(V(](d(x(z)O)s)}*h+W+[+f,o,r,w-T-W-h-p.O.U.f.s.z/U/m0Z0j0p1Q1p2Q2R2T2V2Y2]2_2n3O3U3b3j4R4w5t6Q6b6c6f6p6y7X8q9Q9[:W:j<R<U<V<Y<Z<[<]<^<_<`<a<b<c<d<e<f<h<k<x<{<|=O=W=X=b=c>O>P[#]WZ#W#Z\x27X(T!b%jm#h#i#l$x%e%h(^(h(i(j*Y*^*a+Y+Z+],n-U.S.Y.Z.[.^/l/o2b3Y3Z4_6o7QQ%wxQ%{yW&Q|&V&W+}Q&_!TQ\x27c!hQ\x27e!iQ(q#sS+m%|%}Q+q&PQ,^&bQ,b&dS-k\x27f\x27gQ.h(rQ1P+nQ1V+tQ1X+uQ1[+yQ1r,_S1v,c,dQ2z-lQ5b1RQ5f1UQ5k1^Q6W1wQ8[5dQ8_5hQ8c5mQ:Q8ZR;Q:R!U$zi$d%O%Q%^%_%c*R*T*`*v*w/O/v0^0`0g0h0m4]4}8S9m=|>U>V!^%yy!i!u%{%|%}\x27V\x27e\x27f\x27g\x27k\x27u*i+m+n-X-k-l-s0P0S1P2s2z3R4o4p4s7z9xQ+g%wQ,S&[Q,V&]Q,a&dQ.g(qQ1q,^U1u,b,c,dQ3c.hQ6R1rS6V1v1wQ8u6W#f>Q#v$b$c$x${)y*V*Y*f+e+h,R,U.e/c/l/w/y1d1g1o3a4[4g4l5X5[6P7T7s7}8X8n9_9v9|:]:o:};X;a;h<l<n<r<t<v=P=R=U=Y=[=^=`=d>Y>Zo>R<i<j<m<o<s<u<w=Q=S=V=Z=]=_=a=eW%Ti%V*x=|S&[!Q&iQ&]!RQ&^!SU*|%[%d=pR,Q&Y%]%Si#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*`*f*v*w+e+h,R,U.e/O/c/l/v/w/y0^0`0g0h0m1d1g1o3a4[4]4g4l4}5X5[6P7T7s7}8S8X8n9_9m9v9|:]:o:};X;a;h<i<j<l<m<n<o<r<s<t<u<v<w=P=Q=R=S=U=V=Y=Z=[=]=^=_=`=a=d=e=|>U>V>Y>ZT)z$u){V+O%]<p<qW\x27[!e%i*Z-_S(}#y#zQ+b%rQ+x&SS.a(m(nQ1h,WQ5Q0iR8f5r\x27QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*h+W+[+f,o,r,w-T-W-h-p.O.U.f.s.z/U/m0Z0j0p1Q1p2Q2R2T2V2Y2]2_2n3O3U3b3j4R4w5t6Q6b6c6f6p6y7X8q9Q9[:W:j<R<U<V<Y<Z<[<]<^<_<`<a<b<c<d<e<f<h<k<x<{<|=O=W=X=b=c>P$i$^c#Y#e%q%s%u(S(Y(t(y)R)S)T)U)V)W)X)Y)Z)[)^)`)b)g)q+c+w-Y-w-|.R.T.r.u.y.{.|.}/a0n2i2l2|3T3i3n3o3p3q3r3s3t3u3v3w3x3y3z3}4O4V5U5`6r6x6}7^7_7h7i8h9U9Y9d9j9k:l;T;]<T=sT#TV#U\x27RkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*h+W+[+f,o,r,w-T-W-h-p.O.U.f.s.z/U/m0Z0j0p1Q1p2Q2R2T2V2Y2]2_2n3O3U3b3j4R4w5t6Q6b6c6f6p6y7X8q9Q9[:W:j<R<U<V<Y<Z<[<]<^<_<`<a<b<c<d<e<f<h<k<x<{<|=O=W=X=b=c>PQ\x27Y!eR2o-[!W!nQ!e!r!v!y!z$|\x27W\x27_\x27`\x27l\x27m\x27n*Z*j*n*p*q-[-b-d-t0Y0]1m5x5zR1j,YnqOXst!Z#d%m&r&t&u&w,r,w2Y2]Q&y!^Q\x27v!xS(s#u<ZQ+k%zQ,[&_Q,]&aQ-i\x27dQ-v\x27oS.q(x<|S0o+W=WQ0}+lQ1l,ZQ2a,yQ2c,zQ2k-VQ2x-jQ2{-nS5V0p=bQ5^1OS5a1Q=cQ6q2mQ6u2yQ6z3QQ8Y5_Q9V6sQ9W6vQ9Z6{R:i9S$d$]c#Y#e%s%u(S(Y(t(y)R)S)T)U)V)W)X)Y)Z)[)^)`)b)g)q+c+w-Y-w-|.R.T.r.u.y.|.}/a0n2i2l2|3T3i3n3o3p3q3r3s3t3u3v3w3x3y3z3}4O4V5U5`6r6x6}7^7_7h7i8h9U9Y9d9j9k:l;T;]<T=sS(o#p\x27iQ)P#zS+a%q.{S.b(n(pR3[.c\x27QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*h+W+[+f,o,r,w-T-W-h-p.O.U.f.s.z/U/m0Z0j0p1Q1p2Q2R2T2V2Y2]2_2n3O3U3b3j4R4w5t6Q6b6c6f6p6y7X8q9Q9[:W:j<R<U<V<Y<Z<[<]<^<_<`<a<b<c<d<e<f<h<k<x<{<|=O=W=X=b=c>PS#q]<SQ&t!XQ&u!YQ&w![Q&x!]R2X,uQ\x27a!hQ+d%wQ-g\x27cS.d(q+gQ2v-fW3`.g.h0u0wQ6t2wW7R3]3_3c5ZU9^7S7U7WU:n9`9a9cS;_:m:pQ;m;`R;u;nU!wQ\x27`-dT5v1m5x!Q_OXZ`st!V!Z#d#h%e%m&i&k&r&t&u&w(j,r,w.Z2Y2]]!pQ!r\x27`-d1m5xT#q]<S%^{OPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*h+W+[+f,o,r,w-h-p.O.U.f.s.z/m0Z0j0p1Q1p2Q2R2T2V2Y2]2_3O3U3b3j4w6Q6b6c6f6y7X8q9Q9[S(}#y#zS.a(m(n!s=i$Z$n\x27X)s-T-W/U2n4R5t6p:W:j<R<U<V<Y<Z<[<]<^<_<`<a<b<c<d<e<f<h<k<x<{<|=O=W=X=b=c>PU$fd)_,lS(p#p\x27iU*u%R(w3|U0k*}.m7dQ5Z0vQ7S3^Q9a7VR:p9bm!tQ!r!v!y!z\x27`\x27l\x27m\x27n-d-t1m5x5zQ\x27t!uS(f#g2SS-r\x27k\x27wQ/r*]Q0P*iQ3S-uQ4c/sQ4o0RQ4p0SQ4u0[Q7o4^S7z4q4sS8O4v4xQ9o7pQ9s7vQ9x7{Q9}8QS:x9t9uS;d:y:|S;p;e;fS;x;q;rS;|;y;zR<P;}Q#wbQ\x27s!uS(e#g2SS(g#m+VQ+X%fQ+i%xQ+o&OU-q\x27k\x27t\x27wQ.V(fQ/q*]Q0Q*iQ0T*kQ0|+jQ1s,`S3P-r-uQ3X._S4b/r/sQ4k/}S4n0P0[Q4r0UQ6T1tQ6|3SQ7n4^Q7r4cU7y4o4u4xQ7|4tQ8s6US9n7o7pQ9r7vQ9z8OQ9{8PQ:`8tQ:v9oS:w9s9uQ;P9}Q;Z:aS;c:x:|S;o;d;eS;w;p;rS;{;x;zQ<O;|Q<Q<PQ=l=gQ=x=qR=y=rV!wQ\x27`-d%^aOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*h+W+[+f,o,r,w-h-p.O.U.f.s.z/m0Z0j0p1Q1p2Q2R2T2V2Y2]2_3O3U3b3j4w6Q6b6c6f6y7X8q9Q9[S#wz!j!r=f$Z$n\x27X)s-T-W/U2n4R5t6p:W:j<R<U<V<Y<Z<[<]<^<_<`<a<b<c<d<e<f<h<k<x<{<|=O=W=X=b=c>PR=l>O%^bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*h+W+[+f,o,r,w-h-p.O.U.f.s.z/m0Z0j0p1Q1p2Q2R2T2V2Y2]2_3O3U3b3j4w6Q6b6c6f6y7X8q9Q9[Q%fj!^%xy!i!u%{%|%}\x27V\x27e\x27f\x27g\x27k\x27u*i+m+n-X-k-l-s0P0S1P2s2z3R4o4p4s7z9xS&Oz!jQ+j%yQ,`&dW1t,a,b,c,dU6U1u1v1wS8t6V6WQ:a8u!r=g$Z$n\x27X)s-T-W/U2n4R5t6p:W:j<R<U<V<Y<Z<[<]<^<_<`<a<b<c<d<e<f<h<k<x<{<|=O=W=X=b=c>PQ=q=}R=r>O%QeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{\x27T\x27b\x27r(V(](d(x(z)O)}*h+W+[+f,o,r,w-h-p.O.U.f.s.z/m0Z0j0p1Q1p2Q2R2T2V2Y2]2_3O3U3b3j4w6Q6b6c6f6y7X8q9Q9[Y#bWZ#W#Z(T!b%jm#h#i#l$x%e%h(^(h(i(j*Y*^*a+Y+Z+],n-U.S.Y.Z.[.^/l/o2b3Y3Z4_6o7QQ,m&o!p=h$Z$n)s-T-W/U2n4R5t6p:W:j<R<U<V<Y<Z<[<]<^<_<`<a<b<c<d<e<f<h<k<x<{<|=O=W=X=b=c>PR=k\x27XU\x27]!e%i*ZR2q-_%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*h+W+[,o,r,w-h-p.O.U.s.z/m0Z0j0p1Q1p2Q2R2T2V2Y2]2_3O3U3j4w6Q6b6c6f6y8q9Q9[!r)_$Z$n\x27X)s-T-W/U2n4R5t6p:W:j<R<U<V<Y<Z<[<]<^<_<`<a<b<c<d<e<f<h<k<x<{<|=O=W=X=b=c>PQ,l&oQ0v+fQ3^.fQ7V3bR9b7X!b$Tc#Y%q(S(Y(t(y)Z)[)`)g+w-w-|.R.T.r.u/a0n2|3T3i3y5U5`6x6}7^9Y:l<T!P<a)^)q-Y.{2i2l3n3w3x3}4V6r7_7h7i8h9U9d9j9k;T;]=s!f$Vc#Y%q(S(Y(t(y)W)X)Z)[)`)g+w-w-|.R.T.r.u/a0n2|3T3i3y5U5`6x6}7^9Y:l<T!T<c)^)q-Y.{2i2l3n3t3u3w3x3}4V6r7_7h7i8h9U9d9j9k;T;]=s!^$Zc#Y%q(S(Y(t(y)`)g+w-w-|.R.T.r.u/a0n2|3T3i3y5U5`6x6}7^9Y:l<TQ4]/jz>P)^)q-Y.{2i2l3n3}4V6r7_7h7i8h9U9d9j9k;T;]=sQ>U>WR>V>X\x27QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*h+W+[+f,o,r,w-T-W-h-p.O.U.f.s.z/U/m0Z0j0p1Q1p2Q2R2T2V2Y2]2_2n3O3U3b3j4R4w5t6Q6b6c6f6p6y7X8q9Q9[:W:j<R<U<V<Y<Z<[<]<^<_<`<a<b<c<d<e<f<h<k<x<{<|=O=W=X=b=c>PS$oh$pR4S/T\x27XgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*h+W+[+f,o,r,w-T-W-h-p.O.U.f.s.z/T/U/m0Z0j0p1Q1p2Q2R2T2V2Y2]2_2n3O3U3b3j4R4w5t6Q6b6c6f6p6y7X8q9Q9[:W:j<R<U<V<Y<Z<[<]<^<_<`<a<b<c<d<e<f<h<k<x<{<|=O=W=X=b=c>PT$kf$qQ$ifS)j$l)nR)v$qT$jf$qT)l$l)n\x27XhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*h+W+[+f,o,r,w-T-W-h-p.O.U.f.s.z/T/U/m0Z0j0p1Q1p2Q2R2T2V2Y2]2_2n3O3U3b3j4R4w5t6Q6b6c6f6p6y7X8q9Q9[:W:j<R<U<V<Y<Z<[<]<^<_<`<a<b<c<d<e<f<h<k<x<{<|=O=W=X=b=c>PT$oh$pQ$rhR)u$p%^jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*h+W+[+f,o,r,w-h-p.O.U.f.s.z/m0Z0j0p1Q1p2Q2R2T2V2Y2]2_3O3U3b3j4w6Q6b6c6f6y7X8q9Q9[!s=}$Z$n\x27X)s-T-W/U2n4R5t6p:W:j<R<U<V<Y<Z<[<]<^<_<`<a<b<c<d<e<f<h<k<x<{<|=O=W=X=b=c>P#glOPXZst!Z!`!o#S#d#o#{$n%m&k&n&o&r&t&u&w&{\x27T\x27b)O)s*h+[+f,o,r,w-h.f/U/m0Z0j1p2Q2R2T2V2Y2]2_3b4R4w6Q6b6c6f7X8q9Q!U%Ri$d%O%Q%^%_%c*R*T*`*v*w/O/v0^0`0g0h0m4]4}8S9m=|>U>V#f(w#v$b$c$x${)y*V*Y*f+e+h,R,U.e/c/l/w/y1d1g1o3a4[4g4l5X5[6P7T7s7}8X8n9_9v9|:]:o:};X;a;h<l<n<r<t<v=P=R=U=Y=[=^=`=d>Y>ZQ+S%aQ/b*Oo3|<i<j<m<o<s<u<w=Q=S=V=Z=]=_=a=e!U$yi$d%O%Q%^%_%c*R*T*`*v*w/O/v0^0`0g0h0m4]4}8S9m=|>U>VQ*b$zU*k$|*Z*nQ+T%bQ0U*l#f=n#v$b$c$x${)y*V*Y*f+e+h,R,U.e/c/l/w/y1d1g1o3a4[4g4l5X5[6P7T7s7}8X8n9_9v9|:]:o:};X;a;h<l<n<r<t<v=P=R=U=Y=[=^=`=d>Y>Zn=o<i<j<m<o<s<u<w=Q=S=V=Z=]=_=a=eQ=t>QQ=u>RQ=v>SR=w>T!U%Ri$d%O%Q%^%_%c*R*T*`*v*w/O/v0^0`0g0h0m4]4}8S9m=|>U>V#f(w#v$b$c$x${)y*V*Y*f+e+h,R,U.e/c/l/w/y1d1g1o3a4[4g4l5X5[6P7T7s7}8X8n9_9v9|:]:o:};X;a;h<l<n<r<t<v=P=R=U=Y=[=^=`=d>Y>Zo3|<i<j<m<o<s<u<w=Q=S=V=Z=]=_=a=enoOXst!Z#d%m&r&t&u&w,r,w2Y2]S*e${*YQ-Q\x27OQ-R\x27QR4f/w%[%Si#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*`*f*v*w+e+h,R,U.e/O/c/l/v/w/y0^0`0g0h0m1d1g1o3a4[4]4g4l4}5X5[6P7T7s7}8S8X8n9_9m9v9|:]:o:};X;a;h<i<j<l<m<n<o<r<s<t<u<v<w=P=Q=R=S=U=V=Y=Z=[=]=^=_=`=a=d=e=|>U>V>Y>ZQ,T&]Q1f,VQ5p1eR8e5qV*m$|*Z*nU*m$|*Z*nT5w1m5xS/}*h/mQ4t0ZT8P4w:YQ+i%xQ0T*kQ0|+jQ1s,`Q6T1tQ8s6UQ:`8tR;Z:a!U%Oi$d%O%Q%^%_%c*R*T*`*v*w/O/v0^0`0g0h0m4]4}8S9m=|>U>Vx*R$v)e*S*t+U/u0b0c4P4d5O5P5T7m8R:O:u=m=z={S0^*s0_#f<l#v$b$c$x${)y*V*Y*f+e+h,R,U.e/c/l/w/y1d1g1o3a4[4g4l5X5[6P7T7s7}8X8n9_9v9|:]:o:};X;a;h<l<n<r<t<v=P=R=U=Y=[=^=`=d>Y>Zn<m<i<j<m<o<s<u<w=Q=S=V=Z=]=_=a=e!d=P(u)c*[*d.i.l.p/^/j/z0t1c3f4Y4e4i5o7Y7]7t7w8U8W9q9y:P:z;O;b;g;s>W>X`=Q3{7`7c7g9e:q:t;vS=[.k3gT=]7b9h!U%Qi$d%O%Q%^%_%c*R*T*`*v*w/O/v0^0`0g0h0m4]4}8S9m=|>U>V|*T$v)e*U*s+U/f/u0b0c4P4d4y5O5P5T7m8R:O:u=m=z={S0`*t0a#f<n#v$b$c$x${)y*V*Y*f+e+h,R,U.e/c/l/w/y1d1g1o3a4[4g4l5X5[6P7T7s7}8X8n9_9v9|:]:o:};X;a;h<l<n<r<t<v=P=R=U=Y=[=^=`=d>Y>Zn<o<i<j<m<o<s<u<w=Q=S=V=Z=]=_=a=e!h=R(u)c*[*d.j.k.p/^/j/z0t1c3d3f4Y4e4i5o7Y7Z7]7t7w8U8W9q9y:P:z;O;b;g;s>W>Xd=S3{7a7b7g9e9f:q:r:t;vS=^.l3hT=_7c9irnOXst!V!Z#d%m&i&r&t&u&w,r,w2Y2]Q&f!UR,o&ornOXst!V!Z#d%m&i&r&t&u&w,r,w2Y2]R&f!UQ,X&^R1b,QsnOXst!V!Z#d%m&i&r&t&u&w,r,w2Y2]Q1n,^S6O1q1rU8m5|5}6RS:[8o8pS;V:Z:^Q;j;WR;t;kQ&m!VR,h&iR6[1zR:c8vW&Q|&V&W+}R1X+uQ&r!WR,r&sR,x&xT2Z,w2]R,|&yQ,{&yR2d,|Q\x27y!{R-x\x27ySsOtQ#dXT%ps#dQ#OTR\x27{#OQ#RUR\x27}#RQ){$uR/_){Q#UVR(Q#UQ#XWU(W#X(X.PQ(X#YR.P(YQ-]\x27YR2p-]Q.t(yS3k.t3lR3l.uQ-d\x27`R2t-dY!rQ\x27`-d1m5xR\x27j!rQ/P)eR4Q/PU#_W%h*YU(_#_(`.QQ(`#`R.Q(ZQ-`\x27]R2r-`t`OXst!V!Z#d%m&i&k&r&t&u&w,r,w2Y2]S#hZ%eU#r`#h.ZR.Z(jQ(k#jQ.W(gW.`(k.W3V7OQ3V.XR7O3WQ)n$lR/V)nQ$phR)t$pQ$`cU)a$`-{<gQ-{<TR<g)qQ/p*]W4`/p4a7q9pU4a/q/r/sS7q4b4cR9p7r$e*Q$v(u)c)e*[*d*s*t+P+Q+U.k.l.n.o.p/^/f/h/j/u/z0b0c0t1c3d3e3f3{4P4Y4d4e4i4y4{5O5P5T5o7Y7Z7[7]7b7c7e7f7g7m7t7w8R8U8W9e9f9g9q9y:O:P:q:r:s:t:u:z;O;b;g;s;v=m=z={>W>XQ/x*dU4h/x4j7uQ4j/zR7u4iS*n$|*ZR0W*nx*S$v)e*s*t+U/u0b0c4P4d5O5P5T7m8R:O:u=m=z={!d.i(u)c*[*d.k.l.p/^/j/z0t1c3f4Y4e4i5o7Y7]7t7w8U8W9q9y:P:z;O;b;g;s>W>XU/g*S.i7`a7`3{7b7c7g9e:q:t;vQ0_*sQ3g.kU4z0_3g9hR9h7b|*U$v)e*s*t+U/f/u0b0c4P4d4y5O5P5T7m8R:O:u=m=z={!h.j(u)c*[*d.k.l.p/^/j/z0t1c3d3f4Y4e4i5o7Y7Z7]7t7w8U8W9q9y:P:z;O;b;g;s>W>XU/i*U.j7ae7a3{7b7c7g9e9f:q:r:t;vQ0a*tQ3h.lU4|0a3h9iR9i7cQ*y%UR0e*yQ5Y0tR8V5YQ+^%kR0s+^Q5s1hS8g5s:XR:X8hQ,Z&_R1k,ZQ5x1mR8j5xQ1y,eS6Y1y8wR8w6[Q1S+qW5e1S5g8^:SQ5g1VQ8^5fR:S8_Q+v&QR1Y+vQ2],wR6j2]YrOXst#dQ&v!ZQ+`%mQ,q&rQ,s&tQ,t&uQ,v&wQ2W,rS2Z,w2]R6i2YQ%opQ&z!_Q&}!aQ\x27P!bQ\x27R!cQ\x27q!uQ+_%lQ+k%zQ,P&XQ,g&mQ-O&|W-o\x27k\x27s\x27t\x27wQ-v\x27oQ0V*mQ0}+lQ1a,OS1|,h,kQ2e,}Q2f-QQ2g-RQ2{-nW2}-q-r-u-wQ5^1OQ5j1]Q5n1cQ6S1sQ6^2OQ6h2XU6w2|3P3SQ6z3QQ8Y5_Q8b5lQ8d5oQ8i5wQ8r6TQ8x6]S9X6x6|Q9Z6{Q:T8`Q:_8sQ:d8yQ:k9YQ;R:UQ;Y:`Q;^:lQ;i;SR;l;ZQ%zyQ\x27d!iQ\x27o!uU+l%{%|%}Q-V\x27VU-j\x27e\x27f\x27gS-n\x27k\x27uQ0O*iS1O+m+nQ2m-XS2y-k-lQ3Q-sS4m0P0SQ5_1PQ6s2sQ6v2zQ6{3RU7x4o4p4sQ9w7zR:{9xS$wi=|R*z%VU%Ui%V=|R0d*xQ$viS(u#v+hS)c$b$cQ)e$dQ*[$xS*d${*YQ*s%OQ*t%QQ+P%^Q+Q%_Q+U%cQ.k<lQ.l<nQ.n<rQ.o<tQ.p<vQ/^)yQ/f*RQ/h*TQ/j*VQ/u*`S/z*f/lQ0b*vQ0c*wl0t+e,U.e1g1o3a6P7T8n9_:]:o;X;aQ1c,RQ3d=PQ3e=RQ3f=US3{<i<jQ4P/OS4Y/c4[Q4d/vQ4e/wQ4i/yQ4y0^Q4{0`Q5O0gQ5P0hQ5T0mQ5o1dQ7Y=YQ7Z=[Q7[=^Q7]=`Q7b<mQ7c<oQ7e<sQ7f<uQ7g<wQ7m4]Q7t4gQ7w4lQ8R4}Q8U5XQ8W5[Q9e=VQ9f=QQ9g=SQ9q7sQ9y7}Q:O8SQ:P8XQ:q=ZQ:r=]Q:s=_Q:t=aQ:u9mQ:z9vQ;O9|Q;b=dQ;g:}Q;s;hQ;v=eQ=m=|Q=z>UQ={>VQ>W>YR>X>ZQ*}%]Q.m<pR7d<qnpOXst!Z#d%m&r&t&u&w,r,w2Y2]Q!fPS#fZ#oQ&|!`W\x27h!o*h0Z4wQ(P#SQ)Q#{Q)r$nS,k&k&nQ,p&oQ,}&{S-S\x27T/mQ-f\x27bQ.w)OQ/Z)sQ0q+[Q0w+fQ2U,oQ2w-hQ3_.fQ4U/UQ5R0jQ5}1pQ6`2QQ6a2RQ6e2TQ6g2VQ6l2_Q7W3bQ7j4RQ8p6QQ8|6bQ8}6cQ9P6fQ9c7XQ:^8qR:h9Q#[cOPXZst!Z!`!o#d#o#{%m&k&n&o&r&t&u&w&{\x27T\x27b)O*h+[+f,o,r,w-h.f/m0Z0j1p2Q2R2T2V2Y2]2_3b4w6Q6b6c6f7X8q9QQ#YWQ#eYQ%quQ%svS%uw!gS(S#W(VQ(Y#ZQ(t#uQ(y#xQ)R$OQ)S$PQ)T$QQ)U$RQ)V$SQ)W$TQ)X$UQ)Y$VQ)Z$WQ)[$XQ)^$ZQ)`$_Q)b$aQ)g$eW)q$n)s/U4RQ+c%tQ+w&RS-Y\x27X2nQ-w\x27rS-|(T.OQ.R(]Q.T(dQ.r(xQ.u(zQ.y<RQ.{<UQ.|<VQ.}<YQ/a)}Q0n+WQ2i-TQ2l-WQ2|-pQ3T.UQ3i.sQ3n<ZQ3o<[Q3p<]Q3q<^Q3r<_Q3s<`Q3t<aQ3u<bQ3v<cQ3w<dQ3x<eQ3y.zQ3z<hQ3}<kQ4O<xQ4V<fQ5U0pQ5`1QQ6r<{Q6x3OQ6}3UQ7^3jQ7_<|Q7h=OQ7i=WQ8h5tQ9U6pQ9Y6yQ9d=XQ9j=bQ9k=cQ:l9[Q;T:WQ;]:jQ<T#SR=s>PR#[WR\x27Z!el!tQ!r!v!y!z\x27`\x27l\x27m\x27n-d-t1m5x5zS\x27V!e-[U*i$|*Z*nS-X\x27W\x27_S0S*j*pQ0[*qQ2s-bQ4s0YR4x0]R({#xQ!fQT-c\x27`-d]!qQ!r\x27`-d1m5xQ#p]R\x27i<SR)f$dY!uQ\x27`-d1m5xQ\x27k!rS\x27u!v!yS\x27w!z5zS-s\x27l\x27mQ-u\x27nR3R-tT#kZ%eS#jZ%eS%km,nU(g#h#i#lS.X(h(iQ.](jQ0r+]Q3W.YU3X.Z.[.^S7P3Y3ZR9]7Qd#^W#W#Z%h(T(^*Y+Y.S/lr#gZm#h#i#l%e(h(i(j+].Y.Z.[.^3Y3Z7QS*]$x*aQ/s*^Q2S,nQ2j-UQ4^/oQ6n2bQ7p4_Q9T6oT=j\x27X+ZV#aW%h*YU#`W%h*YS(U#W(^U(Z#Z+Y/lS-Z\x27X+ZT-}(T.SV\x27^!e%i*ZQ$lfR)x$qT)m$l)nR4T/TT*_$x*aT*g${*YQ0u+eQ1e,UQ3].eQ5q1gQ5|1oQ7U3aQ8o6PQ9`7TQ:Z8nQ:m9_Q;W:]Q;`:oQ;k;XR;n;anqOXst!Z#d%m&r&t&u&w,r,w2Y2]Q&l!VR,g&itmOXst!U!V!Z#d%m&i&r&t&u&w,r,w2Y2]R,n&oT%lm,nR1i,WR,f&gQ&U|S+|&V&WR1[+}R+r&PT&p!W&sT&q!W&sT2[,w2]','nodeNames':'⚠\x20ArithOp\x20ArithOp\x20?.\x20JSXStartTag\x20LineComment\x20BlockComment\x20Script\x20Hashbang\x20ExportDeclaration\x20export\x20Star\x20as\x20VariableName\x20String\x20Escape\x20from\x20;\x20default\x20FunctionDeclaration\x20async\x20function\x20VariableDefinition\x20>\x20<\x20TypeParamList\x20in\x20out\x20const\x20TypeDefinition\x20extends\x20ThisType\x20this\x20LiteralType\x20ArithOp\x20Number\x20BooleanLiteral\x20TemplateType\x20InterpolationEnd\x20Interpolation\x20InterpolationStart\x20NullType\x20null\x20VoidType\x20void\x20TypeofType\x20typeof\x20MemberExpression\x20.\x20PropertyName\x20[\x20TemplateString\x20Escape\x20Interpolation\x20super\x20RegExp\x20]\x20ArrayExpression\x20Spread\x20,\x20}\x20{\x20ObjectExpression\x20Property\x20async\x20get\x20set\x20PropertyDefinition\x20Block\x20:\x20NewTarget\x20new\x20NewExpression\x20)\x20(\x20ArgList\x20UnaryExpression\x20delete\x20LogicOp\x20BitOp\x20YieldExpression\x20yield\x20AwaitExpression\x20await\x20ParenthesizedExpression\x20ClassExpression\x20class\x20ClassBody\x20MethodDeclaration\x20Decorator\x20@\x20MemberExpression\x20PrivatePropertyName\x20CallExpression\x20TypeArgList\x20CompareOp\x20<\x20declare\x20Privacy\x20static\x20abstract\x20override\x20PrivatePropertyDefinition\x20PropertyDeclaration\x20readonly\x20accessor\x20Optional\x20TypeAnnotation\x20Equals\x20StaticBlock\x20FunctionExpression\x20ArrowFunction\x20ParamList\x20ParamList\x20ArrayPattern\x20ObjectPattern\x20PatternProperty\x20Privacy\x20readonly\x20Arrow\x20MemberExpression\x20BinaryExpression\x20ArithOp\x20ArithOp\x20ArithOp\x20ArithOp\x20BitOp\x20CompareOp\x20instanceof\x20satisfies\x20CompareOp\x20BitOp\x20BitOp\x20BitOp\x20LogicOp\x20LogicOp\x20ConditionalExpression\x20LogicOp\x20LogicOp\x20AssignmentExpression\x20UpdateOp\x20PostfixExpression\x20CallExpression\x20InstantiationExpression\x20TaggedTemplateExpression\x20DynamicImport\x20import\x20ImportMeta\x20JSXElement\x20JSXSelfCloseEndTag\x20JSXSelfClosingTag\x20JSXIdentifier\x20JSXBuiltin\x20JSXIdentifier\x20JSXNamespacedName\x20JSXMemberExpression\x20JSXSpreadAttribute\x20JSXAttribute\x20JSXAttributeValue\x20JSXEscape\x20JSXEndTag\x20JSXOpenTag\x20JSXFragmentTag\x20JSXText\x20JSXEscape\x20JSXStartCloseTag\x20JSXCloseTag\x20PrefixCast\x20<\x20ArrowFunction\x20TypeParamList\x20SequenceExpression\x20InstantiationExpression\x20KeyofType\x20keyof\x20UniqueType\x20unique\x20ImportType\x20InferredType\x20infer\x20TypeName\x20ParenthesizedType\x20FunctionSignature\x20ParamList\x20NewSignature\x20IndexedType\x20TupleType\x20Label\x20ArrayType\x20ReadonlyType\x20ObjectType\x20MethodType\x20PropertyType\x20IndexSignature\x20PropertyDefinition\x20CallSignature\x20TypePredicate\x20asserts\x20is\x20NewSignature\x20new\x20UnionType\x20LogicOp\x20IntersectionType\x20LogicOp\x20ConditionalType\x20ParameterizedType\x20ClassDeclaration\x20abstract\x20implements\x20type\x20VariableDeclaration\x20let\x20var\x20using\x20TypeAliasDeclaration\x20InterfaceDeclaration\x20interface\x20EnumDeclaration\x20enum\x20EnumBody\x20NamespaceDeclaration\x20namespace\x20module\x20AmbientDeclaration\x20declare\x20GlobalDeclaration\x20global\x20ClassDeclaration\x20ClassBody\x20AmbientFunctionDeclaration\x20ExportGroup\x20VariableName\x20VariableName\x20ImportDeclaration\x20defer\x20ImportGroup\x20ForStatement\x20for\x20ForSpec\x20ForInSpec\x20ForOfSpec\x20of\x20WhileStatement\x20while\x20WithStatement\x20with\x20DoStatement\x20do\x20IfStatement\x20if\x20else\x20SwitchStatement\x20switch\x20SwitchBody\x20CaseLabel\x20case\x20DefaultLabel\x20TryStatement\x20try\x20CatchClause\x20catch\x20FinallyClause\x20finally\x20ReturnStatement\x20return\x20ThrowStatement\x20throw\x20BreakStatement\x20break\x20ContinueStatement\x20continue\x20DebuggerStatement\x20debugger\x20LabeledStatement\x20ExpressionStatement\x20SingleExpression\x20SingleClassItem','maxTerm':0x17c,'context':trackNewline,'nodeProps':[['isolate',-0x8,0x5,0x6,0xe,0x25,0x27,0x33,0x35,0x37,''],['group',-0x1a,0x9,0x11,0x13,0x44,0xcf,0xd3,0xd7,0xd8,0xda,0xdd,0xe0,0xea,0xed,0xf3,0xf5,0xf7,0xf9,0xfc,0x102,0x108,0x10a,0x10c,0x10e,0x110,0x112,0x113,'Statement',-0x22,0xd,0xe,0x20,0x23,0x24,0x2a,0x33,0x36,0x37,0x39,0x3e,0x46,0x48,0x4c,0x50,0x52,0x54,0x55,0x6e,0x6f,0x78,0x79,0x88,0x8b,0x8d,0x8e,0x8f,0x90,0x91,0x93,0x94,0xa7,0xa9,0xab,'Expression',-0x17,0x1f,0x21,0x25,0x29,0x2b,0x2d,0xad,0xaf,0xb1,0xb2,0xb4,0xb5,0xb6,0xb8,0xb9,0xba,0xbc,0xbd,0xbe,0xc9,0xcb,0xcd,0xce,'Type',-0x3,0x58,0x67,0x6d,'ClassItem'],['openedBy',0x17,'<',0x26,'InterpolationStart',0x38,'[',0x3c,'{',0x49,'(',0xa0,'JSXStartCloseTag'],['closedBy',-0x2,0x18,0xa8,'>',0x28,'InterpolationEnd',0x32,']',0x3d,'}',0x4a,')',0xa5,'JSXEndTag']],'propSources':[jsHighlight],'skippedNodes':[0x0,0x5,0x6,0x116],'repeatNodeCount':0x25,'tokenData':'$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx!\x20Yxy!\x27iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;\x27SEr;\x27S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z&j&hT$i&jO!^&c!_#o&c#p;\x27S&c;\x27S;=`&w<%lO&c&j&zP;=`<%l&c\x27|\x27U]$i&j(Z!bOY&}YZ&cZw&}wx&cx!^&}!^!_\x27}!_#O&}#O#P&c#P#o&}#o#p\x27}#p;\x27S&};\x27S;=`(l<%lO&}!b(SU(Z!bOY\x27}Zw\x27}x#O\x27}#P;\x27S\x27};\x27S;=`(f<%lO\x27}!b(iP;=`<%l\x27}\x27|(oP;=`<%l&}\x27[(y]$i&j(WpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;\x27S(r;\x27S;=`*a<%lO(rp)wU(WpOY)rZr)rs#O)r#P;\x27S)r;\x27S;=`*Z<%lO)rp*^P;=`<%l)r\x27[*dP;=`<%l(r#S*nX(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$i&j(Wp(Z!b\x27|0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;\x27S%Z;\x27S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(X#S$i&j\x27}0/lO!^&c!_#o&c#p;\x27S&c;\x27S;=`&w<%lO&c07[.n_$i&j(Wp(Z!b\x27}0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z)3p/x`$i&j!p),Q(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW1V`#v(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW2d_#v(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27At3l_(V\x27:f$i&j(Z!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;\x27S4k;\x27S;=`:X<%lO4k(^4r_$i&j(Z!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;\x27S4k;\x27S;=`:X<%lO4k&z5vX$i&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;\x27S5q;\x27S;=`7h<%lO5q&z6jT$d`$i&jO!^&c!_#o&c#p;\x27S&c;\x27S;=`&w<%lO&c`6|TOr6yrs7]s;\x27S6y;\x27S;=`7b<%lO6y`7bO$d``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$d`$i&j(Z!bOY&}YZ&cZw&}wx&cx!^&}!^!_\x27}!_#O&}#O#P&c#P#o&}#o#p\x27}#p;\x27S&};\x27S;=`(l<%lO&}!r8uZ(Z!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;\x27S8p;\x27S;=`:R<%lO8p!r9oU$d`(Z!bOY\x27}Zw\x27}x#O\x27}#P;\x27S\x27};\x27S;=`(f<%lO\x27}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$i&j(Wp(Z!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;\x27SCr;\x27S;=`El<%lOCr(r<__WS$i&j(Wp(Z!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;\x27S<S;\x27S;=`Cl<%lO<S(Q=g]WS$i&j(Z!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;\x27S=^;\x27S;=`@h<%lO=^&n>gXWS$i&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;\x27S>`;\x27S;=`?k<%lO>`S?XSWSOY?SZ;\x27S?S;\x27S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(Z!bOY?qZw?qwx?Sx#O?q#O#P?S#P;\x27S?q;\x27S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^\x27`@w]WS$i&j(WpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;\x27S@n;\x27S;=`Bg<%lO@ntAwWWS(WpOYApZrAprs?Ss#OAp#O#P?S#P;\x27SAp;\x27S;=`Ba<%lOAptBdP;=`<%lAp\x27`BjP;=`<%l@n#WBvYWS(Wp(Z!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;\x27SBm;\x27S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S%9[C}i$i&j(o%1l(Wp(Z!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;\x27SCr;\x27S;=`El<%lOCr%9[EoP;=`<%lCr07[FRk$i&j(Wp(Z!b$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;\x27SEr;\x27S;=`I|<%lOEr+dHRk$i&j(Wp(Z!b$]#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;\x27SGv;\x27S;=`Iv<%lOGv+dIyP;=`<%lGv07[JPP;=`<%lEr(KWJ_`$i&j(Wp(Z!b#p(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KWKl_$i&j$Q(Ch(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z,#xLva(z+JY$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KWNW`$i&j#z(Ch(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27At!\x20c_(Y\x27;W$i&j(WpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;\x27S!!b;\x27S;=`!\x27c<%lO!!b\x27l!!i_$i&j(WpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;\x27S!!b;\x27S;=`!\x27c<%lO!!b&z!#mX$i&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;\x27S!#h;\x27S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;\x27S!$Y;\x27S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h\x27l!%R]$d`$i&j(WpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;\x27S(r;\x27S;=`*a<%lO(r!Q!&PZ(WpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;\x27S!%z;\x27S;=`!\x27]<%lO!%z!Q!&yU$d`(WpOY)rZr)rs#O)r#P;\x27S)r;\x27S;=`*Z<%lO)r!Q!\x27`P;=`<%l!%z\x27l!\x27fP;=`<%l!!b/5|!\x27t_!l/.^$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z#&U!)O_!k!Lf$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z-!n!*[b$i&j(Wp(Z!b(U%&f#q(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW!+o`$i&j(Wp(Z!b#n(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z+;x!,|`$i&j(Wp(Z!br+4YOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z,$U!.Z_!]+Jf$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z07[!/ec$i&j(Wp(Z!b!Q.2^OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z#%|!0ya$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z#%|!2Z_![!L^$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad!3eg$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad!5Vg$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad!6wc$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad!8_c$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z07[!9uf$i&j(Wp(Z!b#o(ChOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcxz!;Zz{#-}{!P!;Z!P!Q#/d!Q!^!;Z!^!_#(i!_!`#7S!`!a#8i!a!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;\x27S!;Z;\x27S;=`#-w<%lO!;Z?O!;fb$i&j(Wp(Z!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;\x27S!;Z;\x27S;=`#-w<%lO!;Z>^!<w`$i&j(Z!b!X7`OY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eq!Q!^!<n!^!_!Gr!_!}!<n!}#O!KS#O#P!Dy#P#o!<n#o#p!Gr#p;\x27S!<n;\x27S;=`!L]<%lO!<n<z!>Q^$i&j!X7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;\x27S!=y;\x27S;=`!Ek<%lO!=y<z!?Td$i&j!X7`O!^&c!_#W&c#W#X!>|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;\x27S&c;\x27S;=`&w<%lO&c7`!@hX!X7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;\x27S!@c;\x27S;=`!CQ<%lO!@c7`!AYW!X7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;\x27S!Ar;\x27S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;\x27S!Ar;\x27S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;\x27S!@c;\x27S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c<z!C][$i&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#O!CW#O#P!DR#P#Q!=y#Q#o!CW#o#p!Ar#p;\x27S!CW;\x27S;=`!Ds<%lO!CW<z!DWX$i&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#o!CW#o#p!Ar#p;\x27S!CW;\x27S;=`!Ds<%lO!CW<z!DvP;=`<%l!CW<z!EOX$i&jOY!=yYZ&cZ!^!=y!^!_!@c!_#o!=y#o#p!@c#p;\x27S!=y;\x27S;=`!Ek<%lO!=y<z!EnP;=`<%l!=y>^!Ezl$i&j(Z!b!X7`OY&}YZ&cZw&}wx&cx!^&}!^!_\x27}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p\x27}#p;\x27S&};\x27S;=`(l<%lO&}8r!GyZ(Z!b!X7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;\x27S!Gr;\x27S;=`!J|<%lO!Gr8r!Hse(Z!b!X7`OY\x27}Zw\x27}x#O\x27}#P#W\x27}#W#X!Hl#X#Z\x27}#Z#[!Hl#[#]\x27}#]#^!Hl#^#a\x27}#a#b!Hl#b#g\x27}#g#h!Hl#h#i\x27}#i#j!Hl#j#k!Hl#k#m\x27}#m#n!Hl#n;\x27S\x27};\x27S;=`(f<%lO\x27}8r!JZX(Z!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;\x27S!JU;\x27S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$i&j(Z!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!<n#Q#o!KS#o#p!JU#p;\x27S!KS;\x27S;=`!LV<%lO!KS>^!LYP;=`<%l!KS>^!L`P;=`<%l!<n=l!Ll`$i&j(Wp!X7`OY!LcYZ&cZr!Lcrs!=ys!P!Lc!P!Q!Mn!Q!^!Lc!^!_#\x20o!_!}!Lc!}#O#%P#O#P!Dy#P#o!Lc#o#p#\x20o#p;\x27S!Lc;\x27S;=`#&Y<%lO!Lc=l!Mwl$i&j(Wp!X7`OY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#W(r#W#X!Mn#X#Z(r#Z#[!Mn#[#](r#]#^!Mn#^#a(r#a#b!Mn#b#g(r#g#h!Mn#h#i(r#i#j!Mn#j#k!Mn#k#m(r#m#n!Mn#n#o(r#o#p)r#p;\x27S(r;\x27S;=`*a<%lO(r8Q#\x20vZ(Wp!X7`OY#\x20oZr#\x20ors!@cs!P#\x20o!P!Q#!i!Q!}#\x20o!}#O#$R#O#P!Bq#P;\x27S#\x20o;\x27S;=`#$y<%lO#\x20o8Q#!pe(Wp!X7`OY)rZr)rs#O)r#P#W)r#W#X#!i#X#Z)r#Z#[#!i#[#])r#]#^#!i#^#a)r#a#b#!i#b#g)r#g#h#!i#h#i)r#i#j#!i#j#k#!i#k#m)r#m#n#!i#n;\x27S)r;\x27S;=`*Z<%lO)r8Q#$WX(WpOY#$RZr#$Rrs!Ars#O#$R#O#P!B[#P#Q#\x20o#Q;\x27S#$R;\x27S;=`#$s<%lO#$R8Q#$vP;=`<%l#$R8Q#$|P;=`<%l#\x20o=l#%W^$i&j(WpOY#%PYZ&cZr#%Prs!CWs!^#%P!^!_#$R!_#O#%P#O#P!DR#P#Q!Lc#Q#o#%P#o#p#$R#p;\x27S#%P;\x27S;=`#&S<%lO#%P=l#&VP;=`<%l#%P=l#&]P;=`<%l!Lc?O#&kn$i&j(Wp(Z!b!X7`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#W%Z#W#X#&`#X#Z%Z#Z#[#&`#[#]%Z#]#^#&`#^#a%Z#a#b#&`#b#g%Z#g#h#&`#h#i%Z#i#j#&`#j#k#&`#k#m%Z#m#n#&`#n#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z9d#(r](Wp(Z!b!X7`OY#(iZr#(irs!Grsw#(iwx#\x20ox!P#(i!P!Q#)k!Q!}#(i!}#O#+`#O#P!Bq#P;\x27S#(i;\x27S;=`#,`<%lO#(i9d#)th(Wp(Z!b!X7`OY*gZr*grs\x27}sw*gwx)rx#O*g#P#W*g#W#X#)k#X#Z*g#Z#[#)k#[#]*g#]#^#)k#^#a*g#a#b#)k#b#g*g#g#h#)k#h#i*g#i#j#)k#j#k#)k#k#m*g#m#n#)k#n;\x27S*g;\x27S;=`+Z<%lO*g9d#+gZ(Wp(Z!bOY#+`Zr#+`rs!JUsw#+`wx#$Rx#O#+`#O#P!B[#P#Q#(i#Q;\x27S#+`;\x27S;=`#,Y<%lO#+`9d#,]P;=`<%l#+`9d#,cP;=`<%l#(i?O#,o`$i&j(Wp(Z!bOY#,fYZ&cZr#,frs!KSsw#,fwx#%Px!^#,f!^!_#+`!_#O#,f#O#P!DR#P#Q!;Z#Q#o#,f#o#p#+`#p;\x27S#,f;\x27S;=`#-q<%lO#,f?O#-tP;=`<%l#,f?O#-zP;=`<%l!;Z07[#.[b$i&j(Wp(Z!b(O0/l!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;\x27S!;Z;\x27S;=`#-w<%lO!;Z07[#/o_$i&j(Wp(Z!bT0/lOY#/dYZ&cZr#/drs#0nsw#/dwx#4Ox!^#/d!^!_#5}!_#O#/d#O#P#1p#P#o#/d#o#p#5}#p;\x27S#/d;\x27S;=`#6|<%lO#/d06j#0w]$i&j(Z!bT0/lOY#0nYZ&cZw#0nwx#1px!^#0n!^!_#3R!_#O#0n#O#P#1p#P#o#0n#o#p#3R#p;\x27S#0n;\x27S;=`#3x<%lO#0n05W#1wX$i&jT0/lOY#1pYZ&cZ!^#1p!^!_#2d!_#o#1p#o#p#2d#p;\x27S#1p;\x27S;=`#2{<%lO#1p0/l#2iST0/lOY#2dZ;\x27S#2d;\x27S;=`#2u<%lO#2d0/l#2xP;=`<%l#2d05W#3OP;=`<%l#1p01O#3YW(Z!bT0/lOY#3RZw#3Rwx#2dx#O#3R#O#P#2d#P;\x27S#3R;\x27S;=`#3r<%lO#3R01O#3uP;=`<%l#3R06j#3{P;=`<%l#0n05x#4X]$i&j(WpT0/lOY#4OYZ&cZr#4Ors#1ps!^#4O!^!_#5Q!_#O#4O#O#P#1p#P#o#4O#o#p#5Q#p;\x27S#4O;\x27S;=`#5w<%lO#4O00^#5XW(WpT0/lOY#5QZr#5Qrs#2ds#O#5Q#O#P#2d#P;\x27S#5Q;\x27S;=`#5q<%lO#5Q00^#5tP;=`<%l#5Q05x#5zP;=`<%l#4O01p#6WY(Wp(Z!bT0/lOY#5}Zr#5}rs#3Rsw#5}wx#5Qx#O#5}#O#P#2d#P;\x27S#5};\x27S;=`#6v<%lO#5}01p#6yP;=`<%l#5}07[#7PP;=`<%l#/d)3h#7ab$i&j$Q(Ch(Wp(Z!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;\x27S!;Z;\x27S;=`#-w<%lO!;ZAt#8vb$Z#t$i&j(Wp(Z!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;\x27S!;Z;\x27S;=`#-w<%lO!;Z\x27Ad#:Zp$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#U%Z#U#V#?i#V#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#<jk$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#>j_$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#?rd$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#A]f$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#Bzc$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#Dbe$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#E|g$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#Gpi$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z*)x#Il_!g$b$i&j$O)Lv(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z)[#Jv_al$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z04f#LS^h#)`#R-<U(Wp(Z!b$n7`OY*gZr*grs\x27}sw*gwx)rx!P*g!P!Q#MO!Q!^*g!^!_#Mt!_!`$\x20f!`#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g(n#MXX$k&j(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g(El#M}Z#r(Ch(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx!_*g!_!`#Np!`#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g(El#NyX$Q(Ch(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g(El$\x20oX#s(Ch(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g*)x$!ga#`*!Y$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$#l!a#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(K[$#w_#k(Cl$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z*)x$%Vag!*r#s(Ch$f#|$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$&[!`!a$\x27f!a#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW$&g_#s(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW$\x27qa#r(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$(v!a#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW$)R`#r(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(Kd$*`a(r(Ct$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!a%Z!a!b$+e!b#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW$+p`$i&j#{(Ch(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z%#`$,}_!|$Ip$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z04f$.X_!S0,v$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(n$/]Z$i&jO!^$0O!^!_$0f!_#i$0O#i#j$0k#j#l$0O#l#m$2^#m#o$0O#o#p$0f#p;\x27S$0O;\x27S;=`$4i<%lO$0O(n$0VT_#S$i&jO!^&c!_#o&c#p;\x27S&c;\x27S;=`&w<%lO&c#S$0kO_#S(n$0p[$i&jO!Q&c!Q![$1f![!^&c!_!c&c!c!i$1f!i#T&c#T#Z$1f#Z#o&c#o#p$3|#p;\x27S&c;\x27S;=`&w<%lO&c(n$1kZ$i&jO!Q&c!Q![$2^![!^&c!_!c&c!c!i$2^!i#T&c#T#Z$2^#Z#o&c#p;\x27S&c;\x27S;=`&w<%lO&c(n$2cZ$i&jO!Q&c!Q![$3U![!^&c!_!c&c!c!i$3U!i#T&c#T#Z$3U#Z#o&c#p;\x27S&c;\x27S;=`&w<%lO&c(n$3ZZ$i&jO!Q&c!Q![$0O![!^&c!_!c&c!c!i$0O!i#T&c#T#Z$0O#Z#o&c#p;\x27S&c;\x27S;=`&w<%lO&c#S$4PR!Q![$4Y!c!i$4Y#T#Z$4Y#S$4]S!Q![$4Y!c!i$4Y#T#Z$4Y#q#r$0f(n$4lP;=`<%l$0O#1[$4z_!Y#)l$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW$6U`#x(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z+;p$7c_$i&j(Wp(Z!b(a+4QOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z07[$8qk$i&j(Wp(Z!b(T,2j$_#t(e$I[OY%ZYZ&cZr%Zrs&}st%Ztu$8buw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$8b![!^%Z!^!_*g!_!c%Z!c!}$8b!}#O%Z#O#P&c#P#R%Z#R#S$8b#S#T%Z#T#o$8b#o#p*g#p$g%Z$g;\x27S$8b;\x27S;=`$<l<%lO$8b+d$:qk$i&j(Wp(Z!b$_#tOY%ZYZ&cZr%Zrs&}st%Ztu$:fuw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$:f![!^%Z!^!_*g!_!c%Z!c!}$:f!}#O%Z#O#P&c#P#R%Z#R#S$:f#S#T%Z#T#o$:f#o#p*g#p$g%Z$g;\x27S$:f;\x27S;=`$<f<%lO$:f+d$<iP;=`<%l$:f07[$<oP;=`<%l$8b#Jf$<{X!_#Hb(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g,#x$=sa(y+JY$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+e#q;\x27S%Z;\x27S;=`+a<%lO%Z)>v$?V_!^(CdvBr$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z?O$@a_!q7`$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z07[$Aq|$i&j(Wp(Z!b\x27|0/l$]#t(T,2j(e$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;\x27SEr;\x27S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$i&j(Wp(Z!b\x27}0/l$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;\x27SEr;\x27S;=`I|<%lOEr','tokenizers':[noSemicolon,noSemicolonType,operatorToken,jsx,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,insertSemicolon,new LocalTokenGroup('$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;\x27S!P;\x27S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~',0x8d,0x154),new LocalTokenGroup('j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~',0x19,0x143)],'topRules':{'Script':[0x0,0x7],'SingleExpression':[0x1,0x114],'SingleClassItem':[0x2,0x115]},'dialects':{'jsx':0x0,'ts':0x3b2d},'dynamicPrecedences':{0x50:0x1,0x52:0x1,0x5e:0x1,0xa9:0x1,0xc7:0x1},'specialized':[{'term':0x147,'get':_0xd2519d=>spec_identifier[_0xd2519d]||-0x1},{'term':0x157,'get':_0x3a6caa=>spec_word[_0x3a6caa]||-0x1},{'term':0x5f,'get':_0x59b2e4=>spec_LessThan[_0x59b2e4]||-0x1}],'tokenPrec':0x3b47}),snippets=[snippetCompletion('function\x20${name}(${params})\x20{\x0a\x09${}\x0a}',{'label':'function','detail':'definition','type':'keyword'}),snippetCompletion('for\x20(let\x20${index}\x20=\x200;\x20${index}\x20<\x20${bound};\x20${index}++)\x20{\x0a\x09${}\x0a}',{'label':'for','detail':'loop','type':'keyword'}),snippetCompletion('for\x20(let\x20${name}\x20of\x20${collection})\x20{\x0a\x09${}\x0a}',{'label':'for','detail':'of\x20loop','type':'keyword'}),snippetCompletion('do\x20{\x0a\x09${}\x0a}\x20while\x20(${})',{'label':'do','detail':'loop','type':'keyword'}),snippetCompletion('while\x20(${})\x20{\x0a\x09${}\x0a}',{'label':'while','detail':'loop','type':'keyword'}),snippetCompletion('try\x20{\x0a\x09${}\x0a}\x20catch\x20(${error})\x20{\x0a\x09${}\x0a}',{'label':'try','detail':'/\x20catch\x20block','type':'keyword'}),snippetCompletion('if\x20(${})\x20{\x0a\x09${}\x0a}',{'label':'if','detail':'block','type':'keyword'}),snippetCompletion('if\x20(${})\x20{\x0a\x09${}\x0a}\x20else\x20{\x0a\x09${}\x0a}',{'label':'if','detail':'/\x20else\x20block','type':'keyword'}),snippetCompletion('class\x20${name}\x20{\x0a\x09constructor(${params})\x20{\x0a\x09\x09${}\x0a\x09}\x0a}',{'label':'class','detail':'definition','type':'keyword'}),snippetCompletion('import\x20{${names}}\x20from\x20\x22${module}\x22\x0a${}',{'label':'import','detail':'named','type':'keyword'}),snippetCompletion('import\x20${name}\x20from\x20\x22${module}\x22\x0a${}',{'label':'import','detail':'default','type':'keyword'})],typescriptSnippets=snippets['concat']([snippetCompletion('interface\x20${name}\x20{\x0a\x09${}\x0a}',{'label':'interface','detail':'definition','type':'keyword'}),snippetCompletion('type\x20${name}\x20=\x20${type}',{'label':'type','detail':'definition','type':'keyword'}),snippetCompletion('enum\x20${name}\x20{\x0a\x09${}\x0a}',{'label':'enum','detail':'definition','type':'keyword'})]),cache=new NodeWeakMap(),ScopeNodes=new Set(['Script','Block','FunctionExpression','FunctionDeclaration','ArrowFunction','MethodDeclaration','ForStatement']);function defID(_0x3396b9){return(_0x525714,_0x12cc07)=>{let _0x4ca0de=_0x525714['node']['getChild']('VariableDefinition');return _0x4ca0de&&_0x12cc07(_0x4ca0de,_0x3396b9),!0x0;};}const functionContext=['FunctionDeclaration'],gatherCompletions={'FunctionDeclaration':defID('function'),'ClassDeclaration':defID('class'),'ClassExpression':()=>!0x0,'EnumDeclaration':defID('constant'),'TypeAliasDeclaration':defID('type'),'NamespaceDeclaration':defID('namespace'),'VariableDefinition'(_0x3cf0b8,_0x597400){_0x3cf0b8['matchContext'](functionContext)||_0x597400(_0x3cf0b8,'variable');},'TypeDefinition'(_0x4422f2,_0x4d1b40){_0x4d1b40(_0x4422f2,'type');},'__proto__':null};function getScope(_0x288405,_0x44adcc){let _0x3b9197=cache['get'](_0x44adcc);if(_0x3b9197)return _0x3b9197;let _0x4416e1=[],_0x36abff=!0x0;function _0xcfde8a(_0x554167,_0x25beae){let _0x577f35=_0x288405['sliceString'](_0x554167['from'],_0x554167['to']);_0x4416e1['push']({'label':_0x577f35,'type':_0x25beae});}return _0x44adcc['cursor'](IterMode['IncludeAnonymous'])['iterate'](_0x2d0f79=>{if(_0x36abff)_0x36abff=!0x1;else{if(_0x2d0f79['name']){let _0x1e7ab2=gatherCompletions[_0x2d0f79['name']];if(_0x1e7ab2&&_0x1e7ab2(_0x2d0f79,_0xcfde8a)||ScopeNodes['has'](_0x2d0f79['name']))return!0x1;}else{if(_0x2d0f79['to']-_0x2d0f79['from']>0x2000){for(let _0xc43422 of getScope(_0x288405,_0x2d0f79['node']))_0x4416e1['push'](_0xc43422);return!0x1;}}}}),cache['set'](_0x44adcc,_0x4416e1),_0x4416e1;}const Identifier=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,dontComplete=['TemplateString','String','RegExp','LineComment','BlockComment','VariableDefinition','TypeDefinition','Label','PropertyDefinition','PropertyName','PrivatePropertyDefinition','PrivatePropertyName','JSXText','JSXAttributeValue','JSXOpenTag','JSXCloseTag','JSXSelfClosingTag','.','?.'];function localCompletionSource(_0x2ef90e){let _0x1a9f9d=syntaxTree(_0x2ef90e['state'])['resolveInner'](_0x2ef90e['pos'],-0x1);if(dontComplete['indexOf'](_0x1a9f9d['name'])>-0x1)return null;let _0x19147e='VariableName'==_0x1a9f9d['name']||_0x1a9f9d['to']-_0x1a9f9d['from']<0x14&&Identifier['test'](_0x2ef90e['state']['sliceDoc'](_0x1a9f9d['from'],_0x1a9f9d['to']));if(!_0x19147e&&!_0x2ef90e['explicit'])return null;let _0x5c3b87=[];for(let _0x933ece=_0x1a9f9d;_0x933ece;_0x933ece=_0x933ece['parent'])ScopeNodes['has'](_0x933ece['name'])&&(_0x5c3b87=_0x5c3b87['concat'](getScope(_0x2ef90e['state']['doc'],_0x933ece)));return{'options':_0x5c3b87,'from':_0x19147e?_0x1a9f9d['from']:_0x2ef90e['pos'],'validFor':Identifier};}const javascriptLanguage=LRLanguage['define']({'name':'javascript','parser':parser$1['configure']({'props':[indentNodeProp['add']({'IfStatement':continuedIndent({'except':/^\s*({|else\b)/}),'TryStatement':continuedIndent({'except':/^\s*({|catch\b|finally\b)/}),'LabeledStatement':flatIndent,'SwitchBody':_0x1f9a3c=>{let _0x418a4d=_0x1f9a3c['textAfter'],_0x2cc0ac=/^\s*\}/['test'](_0x418a4d),_0x3820f1=/^\s*(case|default)\b/['test'](_0x418a4d);return _0x1f9a3c['baseIndent']+(_0x2cc0ac?0x0:_0x3820f1?0x1:0x2)*_0x1f9a3c['unit'];},'Block':delimitedIndent({'closing':'}'}),'ArrowFunction':_0x3bc98a=>_0x3bc98a['baseIndent']+_0x3bc98a['unit'],'TemplateString\x20BlockComment':()=>null,'Statement\x20Property':continuedIndent({'except':/^\s*{/}),'JSXElement'(_0x4372e0){let _0x24f705=/^\s*<\//['test'](_0x4372e0['textAfter']);return _0x4372e0['lineIndent'](_0x4372e0['node']['from'])+(_0x24f705?0x0:_0x4372e0['unit']);},'JSXEscape'(_0x4ea1c5){let _0xbba5c0=/\s*\}/['test'](_0x4ea1c5['textAfter']);return _0x4ea1c5['lineIndent'](_0x4ea1c5['node']['from'])+(_0xbba5c0?0x0:_0x4ea1c5['unit']);},'JSXOpenTag\x20JSXSelfClosingTag':_0x19db97=>_0x19db97['column'](_0x19db97['node']['from'])+_0x19db97['unit']}),foldNodeProp['add']({'Block\x20ClassBody\x20SwitchBody\x20EnumBody\x20ObjectExpression\x20ArrayExpression\x20ObjectType':foldInside,'BlockComment':_0x3c3158=>({'from':_0x3c3158['from']+0x2,'to':_0x3c3158['to']-0x2})})]}),'languageData':{'closeBrackets':{'brackets':['(','[','{','\x27','\x22','`']},'commentTokens':{'line':'//','block':{'open':'/*','close':'*/'}},'indentOnInput':/^\s*(?:case |default:|\{|\}|<\/)$/,'wordChars':'$'}}),jsxSublanguage={'test':_0x5cedd8=>/^JSX/['test'](_0x5cedd8['name']),'facet':defineLanguageFacet({'commentTokens':{'block':{'open':'{/*','close':'*/}'}}})},typescriptLanguage=javascriptLanguage['configure']({'dialect':'ts'},'typescript'),jsxLanguage=javascriptLanguage['configure']({'dialect':'jsx','props':[sublanguageProp['add'](_0x4f6c03=>_0x4f6c03['isTop']?[jsxSublanguage]:void 0x0)]}),tsxLanguage=javascriptLanguage['configure']({'dialect':'jsx\x20ts','props':[sublanguageProp['add'](_0x1f4ec1=>_0x1f4ec1['isTop']?[jsxSublanguage]:void 0x0)]},'typescript');let kwCompletion=_0x2244f0=>({'label':_0x2244f0,'type':'keyword'});const keywords='break\x20case\x20const\x20continue\x20default\x20delete\x20export\x20extends\x20false\x20finally\x20in\x20instanceof\x20let\x20new\x20return\x20static\x20super\x20switch\x20this\x20throw\x20true\x20typeof\x20var\x20yield'['split']('\x20')['map'](kwCompletion),typescriptKeywords=keywords['concat'](['declare','implements','private','protected','public']['map'](kwCompletion));function javascript(_0x67e0c8={}){let _0x57076b=_0x67e0c8['jsx']?_0x67e0c8['typescript']?tsxLanguage:jsxLanguage:_0x67e0c8['typescript']?typescriptLanguage:javascriptLanguage,_0x12e30=_0x67e0c8['typescript']?typescriptSnippets['concat'](typescriptKeywords):snippets['concat'](keywords);return new LanguageSupport(_0x57076b,[javascriptLanguage['data']['of']({'autocomplete':ifNotIn(dontComplete,completeFromList(_0x12e30))}),javascriptLanguage['data']['of']({'autocomplete':localCompletionSource}),_0x67e0c8['jsx']?autoCloseTags$1:[]]);}function findOpenTag(_0x19ba5a){for(;;){if('JSXOpenTag'==_0x19ba5a['name']||'JSXSelfClosingTag'==_0x19ba5a['name']||'JSXFragmentTag'==_0x19ba5a['name'])return _0x19ba5a;if('JSXEscape'==_0x19ba5a['name']||!_0x19ba5a['parent'])return null;_0x19ba5a=_0x19ba5a['parent'];}}function elementName$1(_0x3b8509,_0xe6f3dd,_0x495167=_0x3b8509['length']){for(let _0x510b1e=null==_0xe6f3dd?void 0x0:_0xe6f3dd['firstChild'];_0x510b1e;_0x510b1e=_0x510b1e['nextSibling'])if('JSXIdentifier'==_0x510b1e['name']||'JSXBuiltin'==_0x510b1e['name']||'JSXNamespacedName'==_0x510b1e['name']||'JSXMemberExpression'==_0x510b1e['name'])return _0x3b8509['sliceString'](_0x510b1e['from'],Math['min'](_0x510b1e['to'],_0x495167));return'';}const android='object'==typeof navigator&&/Android\b/['test'](navigator['userAgent']),autoCloseTags$1=EditorView['inputHandler']['of']((_0x8d7763,_0x460309,_0x36cbfd,_0x244de8,_0x52670f)=>{if((android?_0x8d7763['composing']:_0x8d7763['compositionStarted'])||_0x8d7763['state']['readOnly']||_0x460309!=_0x36cbfd||'>'!=_0x244de8&&'/'!=_0x244de8||!javascriptLanguage['isActiveAt'](_0x8d7763['state'],_0x460309,-0x1))return!0x1;let _0x1a367c=_0x52670f(),{state:_0x1f254e}=_0x1a367c,_0x50047d=_0x1f254e['changeByRange'](_0x1186a4=>{var _0x5c7ee1;let _0x86b338,{head:_0x295131}=_0x1186a4,_0x5857d6=syntaxTree(_0x1f254e)['resolveInner'](_0x295131-0x1,-0x1);if('JSXStartTag'==_0x5857d6['name']&&(_0x5857d6=_0x5857d6['parent']),_0x1f254e['doc']['sliceString'](_0x295131-0x1,_0x295131)!=_0x244de8||'JSXAttributeValue'==_0x5857d6['name']&&_0x5857d6['to']>_0x295131);else{if('>'==_0x244de8&&'JSXFragmentTag'==_0x5857d6['name'])return{'range':_0x1186a4,'changes':{'from':_0x295131,'insert':'</>'}};if('/'==_0x244de8&&'JSXStartCloseTag'==_0x5857d6['name']){let _0x1ca391=_0x5857d6['parent'],_0x444467=_0x1ca391['parent'];if(_0x444467&&_0x1ca391['from']==_0x295131-0x2&&((_0x86b338=elementName$1(_0x1f254e['doc'],_0x444467['firstChild'],_0x295131))||'JSXFragmentTag'==(null===(_0x5c7ee1=_0x444467['firstChild'])||void 0x0===_0x5c7ee1?void 0x0:_0x5c7ee1['name']))){let _0x54211c=_0x86b338+'>';return{'range':EditorSelection['cursor'](_0x295131+_0x54211c['length'],-0x1),'changes':{'from':_0x295131,'insert':_0x54211c}};}}else{if('>'==_0x244de8){let _0x3e7170=findOpenTag(_0x5857d6);if(_0x3e7170&&'JSXOpenTag'==_0x3e7170['name']&&!/^\/?>|^<\//['test'](_0x1f254e['doc']['sliceString'](_0x295131,_0x295131+0x2))&&(_0x86b338=elementName$1(_0x1f254e['doc'],_0x3e7170,_0x295131)))return{'range':_0x1186a4,'changes':{'from':_0x295131,'insert':'</'+_0x86b338+'>'}};}}}return{'range':_0x1186a4};});return!_0x50047d['changes']['empty']&&(_0x8d7763['dispatch']([_0x1a367c,_0x1f254e['update'](_0x50047d,{'userEvent':'input.complete','scrollIntoView':!0x0})]),!0x0);}),Targets=['_blank','_self','_top','_parent'],Charsets=['ascii','utf-8','utf-16','latin1','latin1'],Methods=['get','post','put','delete'],Encs=['application/x-www-form-urlencoded','multipart/form-data','text/plain'],Bool=['true','false'],S={},Tags={'a':{'attrs':{'href':null,'ping':null,'type':null,'media':null,'target':Targets,'hreflang':null}},'abbr':S,'address':S,'area':{'attrs':{'alt':null,'coords':null,'href':null,'target':null,'ping':null,'media':null,'hreflang':null,'type':null,'shape':['default','rect','circle','poly']}},'article':S,'aside':S,'audio':{'attrs':{'src':null,'mediagroup':null,'crossorigin':['anonymous','use-credentials'],'preload':['none','metadata','auto'],'autoplay':['autoplay'],'loop':['loop'],'controls':['controls']}},'b':S,'base':{'attrs':{'href':null,'target':Targets}},'bdi':S,'bdo':S,'blockquote':{'attrs':{'cite':null}},'body':S,'br':S,'button':{'attrs':{'form':null,'formaction':null,'name':null,'value':null,'autofocus':['autofocus'],'disabled':['autofocus'],'formenctype':Encs,'formmethod':Methods,'formnovalidate':['novalidate'],'formtarget':Targets,'type':['submit','reset','button']}},'canvas':{'attrs':{'width':null,'height':null}},'caption':S,'center':S,'cite':S,'code':S,'col':{'attrs':{'span':null}},'colgroup':{'attrs':{'span':null}},'command':{'attrs':{'type':['command','checkbox','radio'],'label':null,'icon':null,'radiogroup':null,'command':null,'title':null,'disabled':['disabled'],'checked':['checked']}},'data':{'attrs':{'value':null}},'datagrid':{'attrs':{'disabled':['disabled'],'multiple':['multiple']}},'datalist':{'attrs':{'data':null}},'dd':S,'del':{'attrs':{'cite':null,'datetime':null}},'details':{'attrs':{'open':['open']}},'dfn':S,'div':S,'dl':S,'dt':S,'em':S,'embed':{'attrs':{'src':null,'type':null,'width':null,'height':null}},'eventsource':{'attrs':{'src':null}},'fieldset':{'attrs':{'disabled':['disabled'],'form':null,'name':null}},'figcaption':S,'figure':S,'footer':S,'form':{'attrs':{'action':null,'name':null,'accept-charset':Charsets,'autocomplete':['on','off'],'enctype':Encs,'method':Methods,'novalidate':['novalidate'],'target':Targets}},'h1':S,'h2':S,'h3':S,'h4':S,'h5':S,'h6':S,'head':{'children':['title','base','link','style','meta','script','noscript','command']},'header':S,'hgroup':S,'hr':S,'html':{'attrs':{'manifest':null}},'i':S,'iframe':{'attrs':{'src':null,'srcdoc':null,'name':null,'width':null,'height':null,'sandbox':['allow-top-navigation','allow-same-origin','allow-forms','allow-scripts'],'seamless':['seamless']}},'img':{'attrs':{'alt':null,'src':null,'ismap':null,'usemap':null,'width':null,'height':null,'crossorigin':['anonymous','use-credentials']}},'input':{'attrs':{'alt':null,'dirname':null,'form':null,'formaction':null,'height':null,'list':null,'max':null,'maxlength':null,'min':null,'name':null,'pattern':null,'placeholder':null,'size':null,'src':null,'step':null,'value':null,'width':null,'accept':['audio/*','video/*','image/*'],'autocomplete':['on','off'],'autofocus':['autofocus'],'checked':['checked'],'disabled':['disabled'],'formenctype':Encs,'formmethod':Methods,'formnovalidate':['novalidate'],'formtarget':Targets,'multiple':['multiple'],'readonly':['readonly'],'required':['required'],'type':['hidden','text','search','tel','url','email','password','datetime','date','month','week','time','datetime-local','number','range','color','checkbox','radio','file','submit','image','reset','button']}},'ins':{'attrs':{'cite':null,'datetime':null}},'kbd':S,'keygen':{'attrs':{'challenge':null,'form':null,'name':null,'autofocus':['autofocus'],'disabled':['disabled'],'keytype':['RSA']}},'label':{'attrs':{'for':null,'form':null}},'legend':S,'li':{'attrs':{'value':null}},'link':{'attrs':{'href':null,'type':null,'hreflang':null,'media':null,'sizes':['all','16x16','16x16\x2032x32','16x16\x2032x32\x2064x64']}},'map':{'attrs':{'name':null}},'mark':S,'menu':{'attrs':{'label':null,'type':['list','context','toolbar']}},'meta':{'attrs':{'content':null,'charset':Charsets,'name':['viewport','application-name','author','description','generator','keywords'],'http-equiv':['content-language','content-type','default-style','refresh']}},'meter':{'attrs':{'value':null,'min':null,'low':null,'high':null,'max':null,'optimum':null}},'nav':S,'noscript':S,'object':{'attrs':{'data':null,'type':null,'name':null,'usemap':null,'form':null,'width':null,'height':null,'typemustmatch':['typemustmatch']}},'ol':{'attrs':{'reversed':['reversed'],'start':null,'type':['1','a','A','i','I']},'children':['li','script','template','ul','ol']},'optgroup':{'attrs':{'disabled':['disabled'],'label':null}},'option':{'attrs':{'disabled':['disabled'],'label':null,'selected':['selected'],'value':null}},'output':{'attrs':{'for':null,'form':null,'name':null}},'p':S,'param':{'attrs':{'name':null,'value':null}},'pre':S,'progress':{'attrs':{'value':null,'max':null}},'q':{'attrs':{'cite':null}},'rp':S,'rt':S,'ruby':S,'samp':S,'script':{'attrs':{'type':['text/javascript'],'src':null,'async':['async'],'defer':['defer'],'charset':Charsets}},'section':S,'select':{'attrs':{'form':null,'name':null,'size':null,'autofocus':['autofocus'],'disabled':['disabled'],'multiple':['multiple']}},'slot':{'attrs':{'name':null}},'small':S,'source':{'attrs':{'src':null,'type':null,'media':null}},'span':S,'strong':S,'style':{'attrs':{'type':['text/css'],'media':null,'scoped':null}},'sub':S,'summary':S,'sup':S,'table':S,'tbody':S,'td':{'attrs':{'colspan':null,'rowspan':null,'headers':null}},'template':S,'textarea':{'attrs':{'dirname':null,'form':null,'maxlength':null,'name':null,'placeholder':null,'rows':null,'cols':null,'autofocus':['autofocus'],'disabled':['disabled'],'readonly':['readonly'],'required':['required'],'wrap':['soft','hard']}},'tfoot':S,'th':{'attrs':{'colspan':null,'rowspan':null,'headers':null,'scope':['row','col','rowgroup','colgroup']}},'thead':S,'time':{'attrs':{'datetime':null}},'title':S,'tr':S,'track':{'attrs':{'src':null,'label':null,'default':null,'kind':['subtitles','captions','descriptions','chapters','metadata'],'srclang':null}},'ul':{'children':['li','script','template','ul','ol']},'var':S,'video':{'attrs':{'src':null,'poster':null,'width':null,'height':null,'crossorigin':['anonymous','use-credentials'],'preload':['auto','metadata','none'],'autoplay':['autoplay'],'mediagroup':['movie'],'muted':['muted'],'controls':['controls']}},'wbr':S},GlobalAttrs={'accesskey':null,'class':null,'contenteditable':Bool,'contextmenu':null,'dir':['ltr','rtl','auto'],'draggable':['true','false','auto'],'dropzone':['copy','move','link','string:','file:'],'hidden':['hidden'],'id':null,'inert':['inert'],'itemid':null,'itemprop':null,'itemref':null,'itemscope':['itemscope'],'itemtype':null,'lang':['ar','bn','de','en-GB','en-US','es','fr','hi','id','ja','pa','pt','ru','tr','zh'],'spellcheck':Bool,'autocorrect':Bool,'autocapitalize':Bool,'style':null,'tabindex':null,'title':null,'translate':['yes','no'],'rel':['stylesheet','alternate','author','bookmark','help','license','next','nofollow','noreferrer','prefetch','prev','search','tag'],'role':'alert\x20application\x20article\x20banner\x20button\x20cell\x20checkbox\x20complementary\x20contentinfo\x20dialog\x20document\x20feed\x20figure\x20form\x20grid\x20gridcell\x20heading\x20img\x20list\x20listbox\x20listitem\x20main\x20navigation\x20region\x20row\x20rowgroup\x20search\x20switch\x20tab\x20table\x20tabpanel\x20textbox\x20timer'['split']('\x20'),'aria-activedescendant':null,'aria-atomic':Bool,'aria-autocomplete':['inline','list','both','none'],'aria-busy':Bool,'aria-checked':['true','false','mixed','undefined'],'aria-controls':null,'aria-describedby':null,'aria-disabled':Bool,'aria-dropeffect':null,'aria-expanded':['true','false','undefined'],'aria-flowto':null,'aria-grabbed':['true','false','undefined'],'aria-haspopup':Bool,'aria-hidden':Bool,'aria-invalid':['true','false','grammar','spelling'],'aria-label':null,'aria-labelledby':null,'aria-level':null,'aria-live':['off','polite','assertive'],'aria-multiline':Bool,'aria-multiselectable':Bool,'aria-owns':null,'aria-posinset':null,'aria-pressed':['true','false','mixed','undefined'],'aria-readonly':Bool,'aria-relevant':null,'aria-required':Bool,'aria-selected':['true','false','undefined'],'aria-setsize':null,'aria-sort':['ascending','descending','none','other'],'aria-valuemax':null,'aria-valuemin':null,'aria-valuenow':null,'aria-valuetext':null},eventAttributes='beforeunload\x20copy\x20cut\x20dragstart\x20dragover\x20dragleave\x20dragenter\x20dragend\x20drag\x20paste\x20focus\x20blur\x20change\x20click\x20load\x20mousedown\x20mouseenter\x20mouseleave\x20mouseup\x20keydown\x20keyup\x20resize\x20scroll\x20unload'['split']('\x20')['map'](_0x8206fb=>'on'+_0x8206fb);for(let e of eventAttributes)GlobalAttrs[e]=null;class Schema{constructor(_0x22fcf8,_0x2fb4a5){this['tags']={...Tags,..._0x22fcf8},this['globalAttrs']={...GlobalAttrs,..._0x2fb4a5},this['allTags']=Object['keys'](this['tags']),this['globalAttrNames']=Object['keys'](this['globalAttrs']);}}function elementName(_0x47435c,_0x5eff0d,_0xc8a00a=_0x47435c['length']){if(!_0x5eff0d)return'';let _0x286c94=_0x5eff0d['firstChild'],_0x561aac=_0x286c94&&_0x286c94['getChild']('TagName');return _0x561aac?_0x47435c['sliceString'](_0x561aac['from'],Math['min'](_0x561aac['to'],_0xc8a00a)):'';}function findParentElement(_0x1d45d1,_0x277cda=!0x1){for(;_0x1d45d1;_0x1d45d1=_0x1d45d1['parent'])if('Element'==_0x1d45d1['name']){if(!_0x277cda)return _0x1d45d1;_0x277cda=!0x1;}return null;}function allowedChildren(_0x4f30d5,_0x42d5eb,_0x2935df){let _0x3b2bbc=_0x2935df['tags'][elementName(_0x4f30d5,findParentElement(_0x42d5eb))];return(null==_0x3b2bbc?void 0x0:_0x3b2bbc['children'])||_0x2935df['allTags'];}function openTags(_0x4852fc,_0x4fcc1c){let _0x2cd19a=[];for(let _0x4729ef=findParentElement(_0x4fcc1c);_0x4729ef&&!_0x4729ef['type']['isTop'];_0x4729ef=findParentElement(_0x4729ef['parent'])){let _0x5776b7=elementName(_0x4852fc,_0x4729ef);if(_0x5776b7&&'CloseTag'==_0x4729ef['lastChild']['name'])break;_0x5776b7&&_0x2cd19a['indexOf'](_0x5776b7)<0x0&&('EndTag'==_0x4fcc1c['name']||_0x4fcc1c['from']>=_0x4729ef['firstChild']['to'])&&_0x2cd19a['push'](_0x5776b7);}return _0x2cd19a;}Schema['default']=new Schema();const identifier=/^[:\-\.\w\u00b7-\uffff]*$/;function completeTag(_0x1526c2,_0x50191c,_0x116490,_0x541081,_0x193983){let _0x30b653=/\s*>/['test'](_0x1526c2['sliceDoc'](_0x193983,_0x193983+0x5))?'':'>',_0x3c158d=findParentElement(_0x116490,!0x0);return{'from':_0x541081,'to':_0x193983,'options':allowedChildren(_0x1526c2['doc'],_0x3c158d,_0x50191c)['map'](_0x146e77=>({'label':_0x146e77,'type':'type'}))['concat'](openTags(_0x1526c2['doc'],_0x116490)['map']((_0x13437f,_0x127152)=>({'label':'/'+_0x13437f,'apply':'/'+_0x13437f+_0x30b653,'type':'type','boost':0x63-_0x127152}))),'validFor':/^\/?[:\-\.\w\u00b7-\uffff]*$/};}function completeCloseTag(_0x4ab5a4,_0x5c8ff1,_0x514c88,_0x1fa260){let _0x5adb89=/\s*>/['test'](_0x4ab5a4['sliceDoc'](_0x1fa260,_0x1fa260+0x5))?'':'>';return{'from':_0x514c88,'to':_0x1fa260,'options':openTags(_0x4ab5a4['doc'],_0x5c8ff1)['map']((_0x11fc2c,_0x4c5c51)=>({'label':_0x11fc2c,'apply':_0x11fc2c+_0x5adb89,'type':'type','boost':0x63-_0x4c5c51})),'validFor':identifier};}function completeStartTag(_0x217874,_0x19feb3,_0x208efe,_0x565fc1){let _0x1b9a8b=[],_0x5f36af=0x0;for(let _0x4d708b of allowedChildren(_0x217874['doc'],_0x208efe,_0x19feb3))_0x1b9a8b['push']({'label':'<'+_0x4d708b,'type':'type'});for(let _0x4a5321 of openTags(_0x217874['doc'],_0x208efe))_0x1b9a8b['push']({'label':'</'+_0x4a5321+'>','type':'type','boost':0x63-_0x5f36af++});return{'from':_0x565fc1,'to':_0x565fc1,'options':_0x1b9a8b,'validFor':/^<\/?[:\-\.\w\u00b7-\uffff]*$/};}function completeAttrName(_0x172eab,_0x86cb4c,_0x4f66c8,_0x44b455,_0x473e8a){let _0x20a286=findParentElement(_0x4f66c8),_0x1152d3=_0x20a286?_0x86cb4c['tags'][elementName(_0x172eab['doc'],_0x20a286)]:null,_0xdb43a0=_0x1152d3&&_0x1152d3['attrs']?Object['keys'](_0x1152d3['attrs']):[];return{'from':_0x44b455,'to':_0x473e8a,'options':(_0x1152d3&&!0x1===_0x1152d3['globalAttrs']?_0xdb43a0:_0xdb43a0['length']?_0xdb43a0['concat'](_0x86cb4c['globalAttrNames']):_0x86cb4c['globalAttrNames'])['map'](_0x2a312d=>({'label':_0x2a312d,'type':'property'})),'validFor':identifier};}function completeAttrValue(_0x24a273,_0x2015d6,_0x56b76c,_0x1aa3c5,_0x204303){var _0x43c8f4;let _0x59ff2f,_0x169d58=null===(_0x43c8f4=_0x56b76c['parent'])||void 0x0===_0x43c8f4?void 0x0:_0x43c8f4['getChild']('AttributeName'),_0x5f1069=[];if(_0x169d58){let _0x53d0b3=_0x24a273['sliceDoc'](_0x169d58['from'],_0x169d58['to']),_0x52b6ef=_0x2015d6['globalAttrs'][_0x53d0b3];if(!_0x52b6ef){let _0x2401d3=findParentElement(_0x56b76c),_0x3a2975=_0x2401d3?_0x2015d6['tags'][elementName(_0x24a273['doc'],_0x2401d3)]:null;_0x52b6ef=(null==_0x3a2975?void 0x0:_0x3a2975['attrs'])&&_0x3a2975['attrs'][_0x53d0b3];}if(_0x52b6ef){let _0x5c5bbb=_0x24a273['sliceDoc'](_0x1aa3c5,_0x204303)['toLowerCase'](),_0x45e523='\x22',_0x244d44='\x22';/^['"]/['test'](_0x5c5bbb)?(_0x59ff2f='\x22'==_0x5c5bbb[0x0]?/^[^"]*$/:/^[^']*$/,_0x45e523='',_0x244d44=_0x24a273['sliceDoc'](_0x204303,_0x204303+0x1)==_0x5c5bbb[0x0]?'':_0x5c5bbb[0x0],_0x5c5bbb=_0x5c5bbb['slice'](0x1),_0x1aa3c5++):_0x59ff2f=/^[^\s<>='"]*$/;for(let _0x3b1f77 of _0x52b6ef)_0x5f1069['push']({'label':_0x3b1f77,'apply':_0x45e523+_0x3b1f77+_0x244d44,'type':'constant'});}}return{'from':_0x1aa3c5,'to':_0x204303,'options':_0x5f1069,'validFor':_0x59ff2f};}function htmlCompletionFor(_0xebbe0f,_0x22c5f7){let {state:_0x3d1245,pos:_0x5e2d51}=_0x22c5f7,_0xbd9044=syntaxTree(_0x3d1245)['resolveInner'](_0x5e2d51,-0x1),_0x28d79c=_0xbd9044['resolve'](_0x5e2d51);for(let _0x10d0d6,_0x2a0bd9=_0x5e2d51;_0x28d79c==_0xbd9044&&(_0x10d0d6=_0xbd9044['childBefore'](_0x2a0bd9));){let _0xd65a9d=_0x10d0d6['lastChild'];if(!_0xd65a9d||!_0xd65a9d['type']['isError']||_0xd65a9d['from']<_0xd65a9d['to'])break;_0x28d79c=_0xbd9044=_0x10d0d6,_0x2a0bd9=_0xd65a9d['from'];}return'TagName'==_0xbd9044['name']?_0xbd9044['parent']&&/CloseTag$/['test'](_0xbd9044['parent']['name'])?completeCloseTag(_0x3d1245,_0xbd9044,_0xbd9044['from'],_0x5e2d51):completeTag(_0x3d1245,_0xebbe0f,_0xbd9044,_0xbd9044['from'],_0x5e2d51):'StartTag'==_0xbd9044['name']?completeTag(_0x3d1245,_0xebbe0f,_0xbd9044,_0x5e2d51,_0x5e2d51):'StartCloseTag'==_0xbd9044['name']||'IncompleteCloseTag'==_0xbd9044['name']?completeCloseTag(_0x3d1245,_0xbd9044,_0x5e2d51,_0x5e2d51):'OpenTag'==_0xbd9044['name']||'SelfClosingTag'==_0xbd9044['name']||'AttributeName'==_0xbd9044['name']?completeAttrName(_0x3d1245,_0xebbe0f,_0xbd9044,'AttributeName'==_0xbd9044['name']?_0xbd9044['from']:_0x5e2d51,_0x5e2d51):'Is'==_0xbd9044['name']||'AttributeValue'==_0xbd9044['name']||'UnquotedAttributeValue'==_0xbd9044['name']?completeAttrValue(_0x3d1245,_0xebbe0f,_0xbd9044,'Is'==_0xbd9044['name']?_0x5e2d51:_0xbd9044['from'],_0x5e2d51):!_0x22c5f7['explicit']||'Element'!=_0x28d79c['name']&&'Text'!=_0x28d79c['name']&&'Document'!=_0x28d79c['name']?null:completeStartTag(_0x3d1245,_0xebbe0f,_0xbd9044,_0x5e2d51);}function htmlCompletionSource(_0x39b5ad){return htmlCompletionFor(Schema['default'],_0x39b5ad);}function htmlCompletionSourceWith(_0x5f391f){let {extraTags:_0xd3206a,extraGlobalAttributes:_0x5ec361}=_0x5f391f,_0x132694=_0x5ec361||_0xd3206a?new Schema(_0xd3206a,_0x5ec361):Schema['default'];return _0x4f58bf=>htmlCompletionFor(_0x132694,_0x4f58bf);}const jsonParser=javascriptLanguage['parser']['configure']({'top':'SingleExpression'}),defaultNesting=[{'tag':'script','attrs':_0x34a56f=>'text/typescript'==_0x34a56f['type']||'ts'==_0x34a56f['lang'],'parser':typescriptLanguage['parser']},{'tag':'script','attrs':_0x3af2da=>'text/babel'==_0x3af2da['type']||'text/jsx'==_0x3af2da['type'],'parser':jsxLanguage['parser']},{'tag':'script','attrs':_0x401614=>'text/typescript-jsx'==_0x401614['type'],'parser':tsxLanguage['parser']},{'tag':'script','attrs':_0x2307bd=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i['test'](_0x2307bd['type']),'parser':jsonParser},{'tag':'script','attrs':_0x15a074=>!_0x15a074['type']||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i['test'](_0x15a074['type']),'parser':javascriptLanguage['parser']},{'tag':'style','attrs':_0x15285d=>(!_0x15285d['lang']||'css'==_0x15285d['lang'])&&(!_0x15285d['type']||/^(text\/)?(x-)?(stylesheet|css)$/i['test'](_0x15285d['type'])),'parser':cssLanguage['parser']}],defaultAttrs=[{'name':'style','parser':cssLanguage['parser']['configure']({'top':'Styles'})}]['concat'](eventAttributes['map'](_0x5217b6=>({'name':_0x5217b6,'parser':javascriptLanguage['parser']}))),htmlPlain=LRLanguage['define']({'name':'html','parser':parser$3['configure']({'props':[indentNodeProp['add']({'Element'(_0x18a96c){let _0xabd744=/^(\s*)(<\/)?/['exec'](_0x18a96c['textAfter']);return _0x18a96c['node']['to']<=_0x18a96c['pos']+_0xabd744[0x0]['length']?_0x18a96c['continue']():_0x18a96c['lineIndent'](_0x18a96c['node']['from'])+(_0xabd744[0x2]?0x0:_0x18a96c['unit']);},'OpenTag\x20CloseTag\x20SelfClosingTag':_0x4b09e2=>_0x4b09e2['column'](_0x4b09e2['node']['from'])+_0x4b09e2['unit'],'Document'(_0x3577c3){if(_0x3577c3['pos']+/\s*/['exec'](_0x3577c3['textAfter'])[0x0]['length']<_0x3577c3['node']['to'])return _0x3577c3['continue']();let _0x1e9e35,_0x2b7738=null;for(let _0xcb098=_0x3577c3['node'];;){let _0x47ab52=_0xcb098['lastChild'];if(!_0x47ab52||'Element'!=_0x47ab52['name']||_0x47ab52['to']!=_0xcb098['to'])break;_0x2b7738=_0xcb098=_0x47ab52;}return _0x2b7738&&(!(_0x1e9e35=_0x2b7738['lastChild'])||'CloseTag'!=_0x1e9e35['name']&&'SelfClosingTag'!=_0x1e9e35['name'])?_0x3577c3['lineIndent'](_0x2b7738['from'])+_0x3577c3['unit']:null;}}),foldNodeProp['add']({'Element'(_0x52408e){let _0x6df8d5=_0x52408e['firstChild'],_0x3bf40b=_0x52408e['lastChild'];return _0x6df8d5&&'OpenTag'==_0x6df8d5['name']?{'from':_0x6df8d5['to'],'to':'CloseTag'==_0x3bf40b['name']?_0x3bf40b['from']:_0x52408e['to']}:null;}}),bracketMatchingHandle['add']({'OpenTag\x20CloseTag':_0x150385=>_0x150385['getChild']('TagName')})]}),'languageData':{'commentTokens':{'block':{'open':'<!--','close':'-->'}},'indentOnInput':/^\s*<\/\w+\W$/,'wordChars':'-_'}}),htmlLanguage=htmlPlain['configure']({'wrap':configureNesting(defaultNesting,defaultAttrs)});function html(_0x4bc470={}){let _0x2d6ff9,_0x495141='';!0x1===_0x4bc470['matchClosingTags']&&(_0x495141='noMatch'),!0x0===_0x4bc470['selfClosingTags']&&(_0x495141=(_0x495141?_0x495141+'\x20':'')+'selfClosing'),(_0x4bc470['nestedLanguages']&&_0x4bc470['nestedLanguages']['length']||_0x4bc470['nestedAttributes']&&_0x4bc470['nestedAttributes']['length'])&&(_0x2d6ff9=configureNesting((_0x4bc470['nestedLanguages']||[])['concat'](defaultNesting),(_0x4bc470['nestedAttributes']||[])['concat'](defaultAttrs)));let _0x3a9073=_0x2d6ff9?htmlPlain['configure']({'wrap':_0x2d6ff9,'dialect':_0x495141}):_0x495141?htmlLanguage['configure']({'dialect':_0x495141}):htmlLanguage;return new LanguageSupport(_0x3a9073,[htmlLanguage['data']['of']({'autocomplete':htmlCompletionSourceWith(_0x4bc470)}),!0x1!==_0x4bc470['autoCloseTags']?autoCloseTags:[],javascript()['support'],css()['support']]);}const selfClosers=new Set('area\x20base\x20br\x20col\x20command\x20embed\x20frame\x20hr\x20img\x20input\x20keygen\x20link\x20meta\x20param\x20source\x20track\x20wbr\x20menuitem'['split']('\x20')),autoCloseTags=EditorView['inputHandler']['of']((_0x4377c7,_0x19602a,_0xc3d03b,_0x35f205,_0x25ef24)=>{if(_0x4377c7['composing']||_0x4377c7['state']['readOnly']||_0x19602a!=_0xc3d03b||'>'!=_0x35f205&&'/'!=_0x35f205||!htmlLanguage['isActiveAt'](_0x4377c7['state'],_0x19602a,-0x1))return!0x1;let _0x112b00=_0x25ef24(),{state:_0x4516ed}=_0x112b00,_0x73e33f=_0x4516ed['changeByRange'](_0x585bca=>{var _0x907955,_0x246932,_0x2b4d1c;let _0x3430d7,_0x38a6ff=_0x4516ed['doc']['sliceString'](_0x585bca['from']-0x1,_0x585bca['to'])==_0x35f205,{head:_0x1a07fc}=_0x585bca,_0x4ecac7=syntaxTree(_0x4516ed)['resolveInner'](_0x1a07fc,-0x1);if(_0x38a6ff&&'>'==_0x35f205&&'EndTag'==_0x4ecac7['name']){let _0x3fcffb=_0x4ecac7['parent'];if('CloseTag'!=(null===(_0x246932=null===(_0x907955=_0x3fcffb['parent'])||void 0x0===_0x907955?void 0x0:_0x907955['lastChild'])||void 0x0===_0x246932?void 0x0:_0x246932['name'])&&(_0x3430d7=elementName(_0x4516ed['doc'],_0x3fcffb['parent'],_0x1a07fc))&&!selfClosers['has'](_0x3430d7))return{'range':_0x585bca,'changes':{'from':_0x1a07fc,'to':_0x1a07fc+('>'===_0x4516ed['doc']['sliceString'](_0x1a07fc,_0x1a07fc+0x1)?0x1:0x0),'insert':'</'+_0x3430d7+'>'}};}else{if(_0x38a6ff&&'/'==_0x35f205&&'IncompleteCloseTag'==_0x4ecac7['name']){let _0x425945=_0x4ecac7['parent'];if(_0x4ecac7['from']==_0x1a07fc-0x2&&'CloseTag'!=(null===(_0x2b4d1c=_0x425945['lastChild'])||void 0x0===_0x2b4d1c?void 0x0:_0x2b4d1c['name'])&&(_0x3430d7=elementName(_0x4516ed['doc'],_0x425945,_0x1a07fc))&&!selfClosers['has'](_0x3430d7)){let _0x520d4c=_0x1a07fc+('>'===_0x4516ed['doc']['sliceString'](_0x1a07fc,_0x1a07fc+0x1)?0x1:0x0),_0x1de1f6=_0x3430d7+'>';return{'range':EditorSelection['cursor'](_0x1a07fc+_0x1de1f6['length'],-0x1),'changes':{'from':_0x1a07fc,'to':_0x520d4c,'insert':_0x1de1f6}};}}}return{'range':_0x585bca};});return!_0x73e33f['changes']['empty']&&(_0x4377c7['dispatch']([_0x112b00,_0x4516ed['update'](_0x73e33f,{'userEvent':'input.complete','scrollIntoView':!0x0})]),!0x0);});class CompositeBlock{static['create'](_0x59e85e,_0x307cc2,_0x186c06,_0x24f937,_0x49d98f){return new CompositeBlock(_0x59e85e,_0x307cc2,_0x186c06,_0x24f937+(_0x24f937<<0x8)+_0x59e85e+(_0x307cc2<<0x4)|0x0,_0x49d98f,[],[]);}constructor(_0x30dabe,_0x3b8499,_0x5025c3,_0x44f7d1,_0x387c44,_0x241b3b,_0x1212d3){this['type']=_0x30dabe,this['value']=_0x3b8499,this['from']=_0x5025c3,this['hash']=_0x44f7d1,this['end']=_0x387c44,this['children']=_0x241b3b,this['positions']=_0x1212d3,this['hashProp']=[[NodeProp['contextHash'],_0x44f7d1]];}['addChild'](_0xce3fd2,_0x15c7f6){_0xce3fd2['prop'](NodeProp['contextHash'])!=this['hash']&&(_0xce3fd2=new Tree(_0xce3fd2['type'],_0xce3fd2['children'],_0xce3fd2['positions'],_0xce3fd2['length'],this['hashProp'])),this['children']['push'](_0xce3fd2),this['positions']['push'](_0x15c7f6);}['toTree'](_0x62bbd6,_0x32d6e1=this['end']){let _0x406dfc=this['children']['length']-0x1;return _0x406dfc>=0x0&&(_0x32d6e1=Math['max'](_0x32d6e1,this['positions'][_0x406dfc]+this['children'][_0x406dfc]['length']+this['from'])),new Tree(_0x62bbd6['types'][this['type']],this['children'],this['positions'],_0x32d6e1-this['from'])['balance']({'makeTree':(_0x17b017,_0x1538c8,_0x2c5669)=>new Tree(NodeType['none'],_0x17b017,_0x1538c8,_0x2c5669,this['hashProp'])});}}var Type;!function(_0x2e407a){_0x2e407a[_0x2e407a['Document']=0x1]='Document',_0x2e407a[_0x2e407a['CodeBlock']=0x2]='CodeBlock',_0x2e407a[_0x2e407a['FencedCode']=0x3]='FencedCode',_0x2e407a[_0x2e407a['Blockquote']=0x4]='Blockquote',_0x2e407a[_0x2e407a['HorizontalRule']=0x5]='HorizontalRule',_0x2e407a[_0x2e407a['BulletList']=0x6]='BulletList',_0x2e407a[_0x2e407a['OrderedList']=0x7]='OrderedList',_0x2e407a[_0x2e407a['ListItem']=0x8]='ListItem',_0x2e407a[_0x2e407a['ATXHeading1']=0x9]='ATXHeading1',_0x2e407a[_0x2e407a['ATXHeading2']=0xa]='ATXHeading2',_0x2e407a[_0x2e407a['ATXHeading3']=0xb]='ATXHeading3',_0x2e407a[_0x2e407a['ATXHeading4']=0xc]='ATXHeading4',_0x2e407a[_0x2e407a['ATXHeading5']=0xd]='ATXHeading5',_0x2e407a[_0x2e407a['ATXHeading6']=0xe]='ATXHeading6',_0x2e407a[_0x2e407a['SetextHeading1']=0xf]='SetextHeading1',_0x2e407a[_0x2e407a['SetextHeading2']=0x10]='SetextHeading2',_0x2e407a[_0x2e407a['HTMLBlock']=0x11]='HTMLBlock',_0x2e407a[_0x2e407a['LinkReference']=0x12]='LinkReference',_0x2e407a[_0x2e407a['Paragraph']=0x13]='Paragraph',_0x2e407a[_0x2e407a['CommentBlock']=0x14]='CommentBlock',_0x2e407a[_0x2e407a['ProcessingInstructionBlock']=0x15]='ProcessingInstructionBlock',_0x2e407a[_0x2e407a['Escape']=0x16]='Escape',_0x2e407a[_0x2e407a['Entity']=0x17]='Entity',_0x2e407a[_0x2e407a['HardBreak']=0x18]='HardBreak',_0x2e407a[_0x2e407a['Emphasis']=0x19]='Emphasis',_0x2e407a[_0x2e407a['StrongEmphasis']=0x1a]='StrongEmphasis',_0x2e407a[_0x2e407a['Link']=0x1b]='Link',_0x2e407a[_0x2e407a['Image']=0x1c]='Image',_0x2e407a[_0x2e407a['InlineCode']=0x1d]='InlineCode',_0x2e407a[_0x2e407a['HTMLTag']=0x1e]='HTMLTag',_0x2e407a[_0x2e407a['Comment']=0x1f]='Comment',_0x2e407a[_0x2e407a['ProcessingInstruction']=0x20]='ProcessingInstruction',_0x2e407a[_0x2e407a['Autolink']=0x21]='Autolink',_0x2e407a[_0x2e407a['HeaderMark']=0x22]='HeaderMark',_0x2e407a[_0x2e407a['QuoteMark']=0x23]='QuoteMark',_0x2e407a[_0x2e407a['ListMark']=0x24]='ListMark',_0x2e407a[_0x2e407a['LinkMark']=0x25]='LinkMark',_0x2e407a[_0x2e407a['EmphasisMark']=0x26]='EmphasisMark',_0x2e407a[_0x2e407a['CodeMark']=0x27]='CodeMark',_0x2e407a[_0x2e407a['CodeText']=0x28]='CodeText',_0x2e407a[_0x2e407a['CodeInfo']=0x29]='CodeInfo',_0x2e407a[_0x2e407a['LinkTitle']=0x2a]='LinkTitle',_0x2e407a[_0x2e407a['LinkLabel']=0x2b]='LinkLabel',_0x2e407a[_0x2e407a['URL']=0x2c]='URL';}(Type||(Type={}));class LeafBlock{constructor(_0x132d26,_0x21b171){this['start']=_0x132d26,this['content']=_0x21b171,this['marks']=[],this['parsers']=[];}}class Line{constructor(){this['text']='',this['baseIndent']=0x0,this['basePos']=0x0,this['depth']=0x0,this['markers']=[],this['pos']=0x0,this['indent']=0x0,this['next']=-0x1;}['forward'](){this['basePos']>this['pos']&&this['forwardInner']();}['forwardInner'](){let _0x3fbb70=this['skipSpace'](this['basePos']);this['indent']=this['countIndent'](_0x3fbb70,this['pos'],this['indent']),this['pos']=_0x3fbb70,this['next']=_0x3fbb70==this['text']['length']?-0x1:this['text']['charCodeAt'](_0x3fbb70);}['skipSpace'](_0x5632ec){return skipSpace(this['text'],_0x5632ec);}['reset'](_0x129c24){for(this['text']=_0x129c24,this['baseIndent']=this['basePos']=this['pos']=this['indent']=0x0,this['forwardInner'](),this['depth']=0x1;this['markers']['length'];)this['markers']['pop']();}['moveBase'](_0x38f789){this['basePos']=_0x38f789,this['baseIndent']=this['countIndent'](_0x38f789,this['pos'],this['indent']);}['moveBaseColumn'](_0x19c123){this['baseIndent']=_0x19c123,this['basePos']=this['findColumn'](_0x19c123);}['addMarker'](_0x3718f9){this['markers']['push'](_0x3718f9);}['countIndent'](_0x3a46b8,_0x1678b2=0x0,_0x3c9f69=0x0){for(let _0xd985a3=_0x1678b2;_0xd985a3<_0x3a46b8;_0xd985a3++)_0x3c9f69+=0x9==this['text']['charCodeAt'](_0xd985a3)?0x4-_0x3c9f69%0x4:0x1;return _0x3c9f69;}['findColumn'](_0x13c3b9){let _0x3092f9=0x0;for(let _0x502e47=0x0;_0x3092f9<this['text']['length']&&_0x502e47<_0x13c3b9;_0x3092f9++)_0x502e47+=0x9==this['text']['charCodeAt'](_0x3092f9)?0x4-_0x502e47%0x4:0x1;return _0x3092f9;}['scrub'](){if(!this['baseIndent'])return this['text'];let _0xcc1fbc='';for(let _0x434ac4=0x0;_0x434ac4<this['basePos'];_0x434ac4++)_0xcc1fbc+='\x20';return _0xcc1fbc+this['text']['slice'](this['basePos']);}}function skipForList(_0x523b60,_0x32f3b6,_0x54ca32){if(_0x54ca32['pos']==_0x54ca32['text']['length']||_0x523b60!=_0x32f3b6['block']&&_0x54ca32['indent']>=_0x32f3b6['stack'][_0x54ca32['depth']+0x1]['value']+_0x54ca32['baseIndent'])return!0x0;if(_0x54ca32['indent']>=_0x54ca32['baseIndent']+0x4)return!0x1;let _0x3be01e=(_0x523b60['type']==Type['OrderedList']?isOrderedList:isBulletList)(_0x54ca32,_0x32f3b6,!0x1);return _0x3be01e>0x0&&(_0x523b60['type']!=Type['BulletList']||isHorizontalRule(_0x54ca32,_0x32f3b6,!0x1)<0x0)&&_0x54ca32['text']['charCodeAt'](_0x54ca32['pos']+_0x3be01e-0x1)==_0x523b60['value'];}const DefaultSkipMarkup={[Type['Blockquote']]:(_0x28e1a9,_0xe5a59e,_0x1de242)=>0x3e==_0x1de242['next']&&(_0x1de242['markers']['push'](elt(Type['QuoteMark'],_0xe5a59e['lineStart']+_0x1de242['pos'],_0xe5a59e['lineStart']+_0x1de242['pos']+0x1)),_0x1de242['moveBase'](_0x1de242['pos']+(space(_0x1de242['text']['charCodeAt'](_0x1de242['pos']+0x1))?0x2:0x1)),_0x28e1a9['end']=_0xe5a59e['lineStart']+_0x1de242['text']['length'],!0x0),[Type['ListItem']]:(_0x142223,_0xbe64a9,_0x4b370d)=>!(_0x4b370d['indent']<_0x4b370d['baseIndent']+_0x142223['value']&&_0x4b370d['next']>-0x1)&&(_0x4b370d['moveBaseColumn'](_0x4b370d['baseIndent']+_0x142223['value']),!0x0),[Type['OrderedList']]:skipForList,[Type['BulletList']]:skipForList,[Type['Document']]:()=>!0x0};function space(_0xd0368a){return 0x20==_0xd0368a||0x9==_0xd0368a||0xa==_0xd0368a||0xd==_0xd0368a;}function skipSpace(_0x542228,_0x103478=0x0){for(;_0x103478<_0x542228['length']&&space(_0x542228['charCodeAt'](_0x103478));)_0x103478++;return _0x103478;}function skipSpaceBack(_0x3c0762,_0x599888,_0x531605){for(;_0x599888>_0x531605&&space(_0x3c0762['charCodeAt'](_0x599888-0x1));)_0x599888--;return _0x599888;}function isFencedCode(_0x400134){if(0x60!=_0x400134['next']&&0x7e!=_0x400134['next'])return-0x1;let _0x48018f=_0x400134['pos']+0x1;for(;_0x48018f<_0x400134['text']['length']&&_0x400134['text']['charCodeAt'](_0x48018f)==_0x400134['next'];)_0x48018f++;if(_0x48018f<_0x400134['pos']+0x3)return-0x1;if(0x60==_0x400134['next']){for(let _0x186220=_0x48018f;_0x186220<_0x400134['text']['length'];_0x186220++)if(0x60==_0x400134['text']['charCodeAt'](_0x186220))return-0x1;}return _0x48018f;}function isBlockquote(_0x1b214f){return 0x3e!=_0x1b214f['next']?-0x1:0x20==_0x1b214f['text']['charCodeAt'](_0x1b214f['pos']+0x1)?0x2:0x1;}function isHorizontalRule(_0x137e9d,_0x2a68ee,_0x2f6251){if(0x2a!=_0x137e9d['next']&&0x2d!=_0x137e9d['next']&&0x5f!=_0x137e9d['next'])return-0x1;let _0xf5c761=0x1;for(let _0x4f3e3c=_0x137e9d['pos']+0x1;_0x4f3e3c<_0x137e9d['text']['length'];_0x4f3e3c++){let _0x3ca5f5=_0x137e9d['text']['charCodeAt'](_0x4f3e3c);if(_0x3ca5f5==_0x137e9d['next'])_0xf5c761++;else{if(!space(_0x3ca5f5))return-0x1;}}return _0x2f6251&&0x2d==_0x137e9d['next']&&isSetextUnderline(_0x137e9d)>-0x1&&_0x137e9d['depth']==_0x2a68ee['stack']['length']&&_0x2a68ee['parser']['leafBlockParsers']['indexOf'](DefaultLeafBlocks['SetextHeading'])>-0x1||_0xf5c761<0x3?-0x1:0x1;}function inList(_0x208eb9,_0x2487c0){for(let _0x5a70ac=_0x208eb9['stack']['length']-0x1;_0x5a70ac>=0x0;_0x5a70ac--)if(_0x208eb9['stack'][_0x5a70ac]['type']==_0x2487c0)return!0x0;return!0x1;}function isBulletList(_0x3068cd,_0x2dde95,_0x435779){return 0x2d!=_0x3068cd['next']&&0x2b!=_0x3068cd['next']&&0x2a!=_0x3068cd['next']||_0x3068cd['pos']!=_0x3068cd['text']['length']-0x1&&!space(_0x3068cd['text']['charCodeAt'](_0x3068cd['pos']+0x1))||!(!_0x435779||inList(_0x2dde95,Type['BulletList'])||_0x3068cd['skipSpace'](_0x3068cd['pos']+0x2)<_0x3068cd['text']['length'])?-0x1:0x1;}function isOrderedList(_0xcf3b8d,_0x19acce,_0x13d1d9){let _0x4dd4d2=_0xcf3b8d['pos'],_0x4cb358=_0xcf3b8d['next'];for(;_0x4cb358>=0x30&&_0x4cb358<=0x39;){if(_0x4dd4d2++,_0x4dd4d2==_0xcf3b8d['text']['length'])return-0x1;_0x4cb358=_0xcf3b8d['text']['charCodeAt'](_0x4dd4d2);}return _0x4dd4d2==_0xcf3b8d['pos']||_0x4dd4d2>_0xcf3b8d['pos']+0x9||0x2e!=_0x4cb358&&0x29!=_0x4cb358||_0x4dd4d2<_0xcf3b8d['text']['length']-0x1&&!space(_0xcf3b8d['text']['charCodeAt'](_0x4dd4d2+0x1))||_0x13d1d9&&!inList(_0x19acce,Type['OrderedList'])&&(_0xcf3b8d['skipSpace'](_0x4dd4d2+0x1)==_0xcf3b8d['text']['length']||_0x4dd4d2>_0xcf3b8d['pos']+0x1||0x31!=_0xcf3b8d['next'])?-0x1:_0x4dd4d2+0x1-_0xcf3b8d['pos'];}function isAtxHeading(_0x286f09){if(0x23!=_0x286f09['next'])return-0x1;let _0x4bb6b3=_0x286f09['pos']+0x1;for(;_0x4bb6b3<_0x286f09['text']['length']&&0x23==_0x286f09['text']['charCodeAt'](_0x4bb6b3);)_0x4bb6b3++;if(_0x4bb6b3<_0x286f09['text']['length']&&0x20!=_0x286f09['text']['charCodeAt'](_0x4bb6b3))return-0x1;let _0x36746b=_0x4bb6b3-_0x286f09['pos'];return _0x36746b>0x6?-0x1:_0x36746b;}function isSetextUnderline(_0x47e1ff){if(0x2d!=_0x47e1ff['next']&&0x3d!=_0x47e1ff['next']||_0x47e1ff['indent']>=_0x47e1ff['baseIndent']+0x4)return-0x1;let _0x315f89=_0x47e1ff['pos']+0x1;for(;_0x315f89<_0x47e1ff['text']['length']&&_0x47e1ff['text']['charCodeAt'](_0x315f89)==_0x47e1ff['next'];)_0x315f89++;let _0xddb58d=_0x315f89;for(;_0x315f89<_0x47e1ff['text']['length']&&space(_0x47e1ff['text']['charCodeAt'](_0x315f89));)_0x315f89++;return _0x315f89==_0x47e1ff['text']['length']?_0xddb58d:-0x1;}const EmptyLine=/^[ \t]*$/,CommentEnd=/-->/,ProcessingEnd=/\?>/,HTMLBlockStyle=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,CommentEnd],[/^\s*<\?/,ProcessingEnd],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,EmptyLine],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,EmptyLine]];function isHTMLBlock(_0xfb1a7d,_0x84a1bb,_0x47aa76){if(0x3c!=_0xfb1a7d['next'])return-0x1;let _0x2203cb=_0xfb1a7d['text']['slice'](_0xfb1a7d['pos']);for(let _0x5d36bf=0x0,_0x558dba=HTMLBlockStyle['length']-(_0x47aa76?0x1:0x0);_0x5d36bf<_0x558dba;_0x5d36bf++)if(HTMLBlockStyle[_0x5d36bf][0x0]['test'](_0x2203cb))return _0x5d36bf;return-0x1;}function getListIndent(_0x33df9c,_0xfba6d){let _0x57f6b9=_0x33df9c['countIndent'](_0xfba6d,_0x33df9c['pos'],_0x33df9c['indent']),_0x25d6ea=_0x33df9c['countIndent'](_0x33df9c['skipSpace'](_0xfba6d),_0xfba6d,_0x57f6b9);return _0x25d6ea>=_0x57f6b9+0x5?_0x57f6b9+0x1:_0x25d6ea;}function addCodeText(_0x4263b8,_0x40fef1,_0x16a6b6){let _0x2e82a9=_0x4263b8['length']-0x1;_0x2e82a9>=0x0&&_0x4263b8[_0x2e82a9]['to']==_0x40fef1&&_0x4263b8[_0x2e82a9]['type']==Type['CodeText']?_0x4263b8[_0x2e82a9]['to']=_0x16a6b6:_0x4263b8['push'](elt(Type['CodeText'],_0x40fef1,_0x16a6b6));}const DefaultBlockParsers={'LinkReference':void 0x0,'IndentedCode'(_0x9c693,_0x400861){let _0x19f577=_0x400861['baseIndent']+0x4;if(_0x400861['indent']<_0x19f577)return!0x1;let _0x53720d=_0x400861['findColumn'](_0x19f577),_0x31f00c=_0x9c693['lineStart']+_0x53720d,_0x12263e=_0x9c693['lineStart']+_0x400861['text']['length'],_0x20cae8=[],_0x44595b=[];for(addCodeText(_0x20cae8,_0x31f00c,_0x12263e);_0x9c693['nextLine']()&&_0x400861['depth']>=_0x9c693['stack']['length'];)if(_0x400861['pos']==_0x400861['text']['length']){addCodeText(_0x44595b,_0x9c693['lineStart']-0x1,_0x9c693['lineStart']);for(let _0x395275 of _0x400861['markers'])_0x44595b['push'](_0x395275);}else{if(_0x400861['indent']<_0x19f577)break;{if(_0x44595b['length']){for(let _0x2d5546 of _0x44595b)_0x2d5546['type']==Type['CodeText']?addCodeText(_0x20cae8,_0x2d5546['from'],_0x2d5546['to']):_0x20cae8['push'](_0x2d5546);_0x44595b=[];}addCodeText(_0x20cae8,_0x9c693['lineStart']-0x1,_0x9c693['lineStart']);for(let _0x524eb6 of _0x400861['markers'])_0x20cae8['push'](_0x524eb6);_0x12263e=_0x9c693['lineStart']+_0x400861['text']['length'];let _0x4d7de3=_0x9c693['lineStart']+_0x400861['findColumn'](_0x400861['baseIndent']+0x4);_0x4d7de3<_0x12263e&&addCodeText(_0x20cae8,_0x4d7de3,_0x12263e);}}return _0x44595b['length']&&(_0x44595b=_0x44595b['filter'](_0x1ba1ef=>_0x1ba1ef['type']!=Type['CodeText']),_0x44595b['length']&&(_0x400861['markers']=_0x44595b['concat'](_0x400861['markers']))),_0x9c693['addNode'](_0x9c693['buffer']['writeElements'](_0x20cae8,-_0x31f00c)['finish'](Type['CodeBlock'],_0x12263e-_0x31f00c),_0x31f00c),!0x0;},'FencedCode'(_0x8f3170,_0x288e3c){let _0xd77e4c=isFencedCode(_0x288e3c);if(_0xd77e4c<0x0)return!0x1;let _0x4ce951=_0x8f3170['lineStart']+_0x288e3c['pos'],_0xbb5f95=_0x288e3c['next'],_0x2c326f=_0xd77e4c-_0x288e3c['pos'],_0x48d6d7=_0x288e3c['skipSpace'](_0xd77e4c),_0x1d0a00=skipSpaceBack(_0x288e3c['text'],_0x288e3c['text']['length'],_0x48d6d7),_0x5d5c77=[elt(Type['CodeMark'],_0x4ce951,_0x4ce951+_0x2c326f)];_0x48d6d7<_0x1d0a00&&_0x5d5c77['push'](elt(Type['CodeInfo'],_0x8f3170['lineStart']+_0x48d6d7,_0x8f3170['lineStart']+_0x1d0a00));for(let _0x59975b=!0x0;_0x8f3170['nextLine']()&&_0x288e3c['depth']>=_0x8f3170['stack']['length'];_0x59975b=!0x1){let _0x313ca8=_0x288e3c['pos'];if(_0x288e3c['indent']-_0x288e3c['baseIndent']<0x4){for(;_0x313ca8<_0x288e3c['text']['length']&&_0x288e3c['text']['charCodeAt'](_0x313ca8)==_0xbb5f95;)_0x313ca8++;}if(_0x313ca8-_0x288e3c['pos']>=_0x2c326f&&_0x288e3c['skipSpace'](_0x313ca8)==_0x288e3c['text']['length']){for(let _0x30f5d9 of _0x288e3c['markers'])_0x5d5c77['push'](_0x30f5d9);_0x5d5c77['push'](elt(Type['CodeMark'],_0x8f3170['lineStart']+_0x288e3c['pos'],_0x8f3170['lineStart']+_0x313ca8)),_0x8f3170['nextLine']();break;}{_0x59975b||addCodeText(_0x5d5c77,_0x8f3170['lineStart']-0x1,_0x8f3170['lineStart']);for(let _0x294fe3 of _0x288e3c['markers'])_0x5d5c77['push'](_0x294fe3);let _0x4f992a=_0x8f3170['lineStart']+_0x288e3c['basePos'],_0x41e532=_0x8f3170['lineStart']+_0x288e3c['text']['length'];_0x4f992a<_0x41e532&&addCodeText(_0x5d5c77,_0x4f992a,_0x41e532);}}return _0x8f3170['addNode'](_0x8f3170['buffer']['writeElements'](_0x5d5c77,-_0x4ce951)['finish'](Type['FencedCode'],_0x8f3170['prevLineEnd']()-_0x4ce951),_0x4ce951),!0x0;},'Blockquote'(_0x37d1b4,_0x369ea8){let _0x383657=isBlockquote(_0x369ea8);return!(_0x383657<0x0)&&(_0x37d1b4['startContext'](Type['Blockquote'],_0x369ea8['pos']),_0x37d1b4['addNode'](Type['QuoteMark'],_0x37d1b4['lineStart']+_0x369ea8['pos'],_0x37d1b4['lineStart']+_0x369ea8['pos']+0x1),_0x369ea8['moveBase'](_0x369ea8['pos']+_0x383657),null);},'HorizontalRule'(_0x442d34,_0x4d792b){if(isHorizontalRule(_0x4d792b,_0x442d34,!0x1)<0x0)return!0x1;let _0x17bd0b=_0x442d34['lineStart']+_0x4d792b['pos'];return _0x442d34['nextLine'](),_0x442d34['addNode'](Type['HorizontalRule'],_0x17bd0b),!0x0;},'BulletList'(_0x1ba3db,_0x2c1ce0){let _0x39a490=isBulletList(_0x2c1ce0,_0x1ba3db,!0x1);if(_0x39a490<0x0)return!0x1;_0x1ba3db['block']['type']!=Type['BulletList']&&_0x1ba3db['startContext'](Type['BulletList'],_0x2c1ce0['basePos'],_0x2c1ce0['next']);let _0x5ce478=getListIndent(_0x2c1ce0,_0x2c1ce0['pos']+0x1);return _0x1ba3db['startContext'](Type['ListItem'],_0x2c1ce0['basePos'],_0x5ce478-_0x2c1ce0['baseIndent']),_0x1ba3db['addNode'](Type['ListMark'],_0x1ba3db['lineStart']+_0x2c1ce0['pos'],_0x1ba3db['lineStart']+_0x2c1ce0['pos']+_0x39a490),_0x2c1ce0['moveBaseColumn'](_0x5ce478),null;},'OrderedList'(_0x5d57c3,_0x50c3d5){let _0x4614b3=isOrderedList(_0x50c3d5,_0x5d57c3,!0x1);if(_0x4614b3<0x0)return!0x1;_0x5d57c3['block']['type']!=Type['OrderedList']&&_0x5d57c3['startContext'](Type['OrderedList'],_0x50c3d5['basePos'],_0x50c3d5['text']['charCodeAt'](_0x50c3d5['pos']+_0x4614b3-0x1));let _0xec7fdb=getListIndent(_0x50c3d5,_0x50c3d5['pos']+_0x4614b3);return _0x5d57c3['startContext'](Type['ListItem'],_0x50c3d5['basePos'],_0xec7fdb-_0x50c3d5['baseIndent']),_0x5d57c3['addNode'](Type['ListMark'],_0x5d57c3['lineStart']+_0x50c3d5['pos'],_0x5d57c3['lineStart']+_0x50c3d5['pos']+_0x4614b3),_0x50c3d5['moveBaseColumn'](_0xec7fdb),null;},'ATXHeading'(_0x542b70,_0x2aee33){let _0x10bdfa=isAtxHeading(_0x2aee33);if(_0x10bdfa<0x0)return!0x1;let _0x643fc9=_0x2aee33['pos'],_0x4c82cc=_0x542b70['lineStart']+_0x643fc9,_0x149ec9=skipSpaceBack(_0x2aee33['text'],_0x2aee33['text']['length'],_0x643fc9),_0x3c07ce=_0x149ec9;for(;_0x3c07ce>_0x643fc9&&_0x2aee33['text']['charCodeAt'](_0x3c07ce-0x1)==_0x2aee33['next'];)_0x3c07ce--;_0x3c07ce!=_0x149ec9&&_0x3c07ce!=_0x643fc9&&space(_0x2aee33['text']['charCodeAt'](_0x3c07ce-0x1))||(_0x3c07ce=_0x2aee33['text']['length']);let _0x2c6749=_0x542b70['buffer']['write'](Type['HeaderMark'],0x0,_0x10bdfa)['writeElements'](_0x542b70['parser']['parseInline'](_0x2aee33['text']['slice'](_0x643fc9+_0x10bdfa+0x1,_0x3c07ce),_0x4c82cc+_0x10bdfa+0x1),-_0x4c82cc);_0x3c07ce<_0x2aee33['text']['length']&&_0x2c6749['write'](Type['HeaderMark'],_0x3c07ce-_0x643fc9,_0x149ec9-_0x643fc9);let _0x53f913=_0x2c6749['finish'](Type['ATXHeading1']-0x1+_0x10bdfa,_0x2aee33['text']['length']-_0x643fc9);return _0x542b70['nextLine'](),_0x542b70['addNode'](_0x53f913,_0x4c82cc),!0x0;},'HTMLBlock'(_0x549ba2,_0x3f8735){let _0x2c914b=isHTMLBlock(_0x3f8735,_0x549ba2,!0x1);if(_0x2c914b<0x0)return!0x1;let _0x3cc841=_0x549ba2['lineStart']+_0x3f8735['pos'],_0x2dc1bf=HTMLBlockStyle[_0x2c914b][0x1],_0x2f073f=[],_0x345a24=_0x2dc1bf!=EmptyLine;for(;!_0x2dc1bf['test'](_0x3f8735['text'])&&_0x549ba2['nextLine']();){if(_0x3f8735['depth']<_0x549ba2['stack']['length']){_0x345a24=!0x1;break;}for(let _0x1f3452 of _0x3f8735['markers'])_0x2f073f['push'](_0x1f3452);}_0x345a24&&_0x549ba2['nextLine']();let _0x3d6f6c=_0x2dc1bf==CommentEnd?Type['CommentBlock']:_0x2dc1bf==ProcessingEnd?Type['ProcessingInstructionBlock']:Type['HTMLBlock'],_0x3295ec=_0x549ba2['prevLineEnd']();return _0x549ba2['addNode'](_0x549ba2['buffer']['writeElements'](_0x2f073f,-_0x3cc841)['finish'](_0x3d6f6c,_0x3295ec-_0x3cc841),_0x3cc841),!0x0;},'SetextHeading':void 0x0};class LinkReferenceParser{constructor(_0x47932a){this['stage']=0x0,this['elts']=[],this['pos']=0x0,this['start']=_0x47932a['start'],this['advance'](_0x47932a['content']);}['nextLine'](_0x4db9a0,_0x1b77ac,_0x12e4b3){if(-0x1==this['stage'])return!0x1;let _0x2a42cb=_0x12e4b3['content']+'\x0a'+_0x1b77ac['scrub'](),_0xb44c4=this['advance'](_0x2a42cb);return _0xb44c4>-0x1&&_0xb44c4<_0x2a42cb['length']&&this['complete'](_0x4db9a0,_0x12e4b3,_0xb44c4);}['finish'](_0x21ae07,_0x185452){return(0x2==this['stage']||0x3==this['stage'])&&skipSpace(_0x185452['content'],this['pos'])==_0x185452['content']['length']&&this['complete'](_0x21ae07,_0x185452,_0x185452['content']['length']);}['complete'](_0xc63cb1,_0xce6799,_0x2bb486){return _0xc63cb1['addLeafElement'](_0xce6799,elt(Type['LinkReference'],this['start'],this['start']+_0x2bb486,this['elts'])),!0x0;}['nextStage'](_0xb63b2b){return _0xb63b2b?(this['pos']=_0xb63b2b['to']-this['start'],this['elts']['push'](_0xb63b2b),this['stage']++,!0x0):(!0x1===_0xb63b2b&&(this['stage']=-0x1),!0x1);}['advance'](_0x2e5330){for(;;){if(-0x1==this['stage'])return-0x1;if(0x0==this['stage']){if(!this['nextStage'](parseLinkLabel(_0x2e5330,this['pos'],this['start'],!0x0)))return-0x1;if(0x3a!=_0x2e5330['charCodeAt'](this['pos']))return this['stage']=-0x1;this['elts']['push'](elt(Type['LinkMark'],this['pos']+this['start'],this['pos']+this['start']+0x1)),this['pos']++;}else{if(0x1!=this['stage']){if(0x2==this['stage']){let _0x1dc5d1=skipSpace(_0x2e5330,this['pos']),_0x39cd16=0x0;if(_0x1dc5d1>this['pos']){let _0x2fc4da=parseLinkTitle(_0x2e5330,_0x1dc5d1,this['start']);if(_0x2fc4da){let _0x4e8111=lineEnd(_0x2e5330,_0x2fc4da['to']-this['start']);_0x4e8111>0x0&&(this['nextStage'](_0x2fc4da),_0x39cd16=_0x4e8111);}}return _0x39cd16||(_0x39cd16=lineEnd(_0x2e5330,this['pos'])),_0x39cd16>0x0&&_0x39cd16<_0x2e5330['length']?_0x39cd16:-0x1;}return lineEnd(_0x2e5330,this['pos']);}if(!this['nextStage'](parseURL(_0x2e5330,skipSpace(_0x2e5330,this['pos']),this['start'])))return-0x1;}}}}function lineEnd(_0x29f203,_0x3250ef){for(;_0x3250ef<_0x29f203['length'];_0x3250ef++){let _0x32f16f=_0x29f203['charCodeAt'](_0x3250ef);if(0xa==_0x32f16f)break;if(!space(_0x32f16f))return-0x1;}return _0x3250ef;}class SetextHeadingParser{['nextLine'](_0x4ca0a4,_0x424c9f,_0x2b30ad){let _0x3edfb0=_0x424c9f['depth']<_0x4ca0a4['stack']['length']?-0x1:isSetextUnderline(_0x424c9f),_0x2eb42e=_0x424c9f['next'];if(_0x3edfb0<0x0)return!0x1;let _0x147721=elt(Type['HeaderMark'],_0x4ca0a4['lineStart']+_0x424c9f['pos'],_0x4ca0a4['lineStart']+_0x3edfb0);return _0x4ca0a4['nextLine'](),_0x4ca0a4['addLeafElement'](_0x2b30ad,elt(0x3d==_0x2eb42e?Type['SetextHeading1']:Type['SetextHeading2'],_0x2b30ad['start'],_0x4ca0a4['prevLineEnd'](),[..._0x4ca0a4['parser']['parseInline'](_0x2b30ad['content'],_0x2b30ad['start']),_0x147721])),!0x0;}['finish'](){return!0x1;}}const DefaultLeafBlocks={'LinkReference':(_0x2df781,_0x3a26d3)=>0x5b==_0x3a26d3['content']['charCodeAt'](0x0)?new LinkReferenceParser(_0x3a26d3):null,'SetextHeading':()=>new SetextHeadingParser()},DefaultEndLeaf=[(_0x3241f3,_0x99830f)=>isAtxHeading(_0x99830f)>=0x0,(_0x122df3,_0x1ecd6e)=>isFencedCode(_0x1ecd6e)>=0x0,(_0x53b217,_0x446c1e)=>isBlockquote(_0x446c1e)>=0x0,(_0x49f767,_0x50829d)=>isBulletList(_0x50829d,_0x49f767,!0x0)>=0x0,(_0x57b869,_0x33182f)=>isOrderedList(_0x33182f,_0x57b869,!0x0)>=0x0,(_0x3bac1f,_0x3372b6)=>isHorizontalRule(_0x3372b6,_0x3bac1f,!0x0)>=0x0,(_0x268af9,_0x4b47ad)=>isHTMLBlock(_0x4b47ad,_0x268af9,!0x0)>=0x0],scanLineResult={'text':'','end':0x0};class BlockContext{constructor(_0x11e4e0,_0x409c6a,_0xe31dfa,_0x67d37c){this['parser']=_0x11e4e0,this['input']=_0x409c6a,this['ranges']=_0x67d37c,this['line']=new Line(),this['atEnd']=!0x1,this['reusePlaceholders']=new Map(),this['stoppedAt']=null,this['rangeI']=0x0,this['to']=_0x67d37c[_0x67d37c['length']-0x1]['to'],this['lineStart']=this['absoluteLineStart']=this['absoluteLineEnd']=_0x67d37c[0x0]['from'],this['block']=CompositeBlock['create'](Type['Document'],0x0,this['lineStart'],0x0,0x0),this['stack']=[this['block']],this['fragments']=_0xe31dfa['length']?new FragmentCursor(_0xe31dfa,_0x409c6a):null,this['readLine']();}get['parsedPos'](){return this['absoluteLineStart'];}['advance'](){if(null!=this['stoppedAt']&&this['absoluteLineStart']>this['stoppedAt'])return this['finish']();let {line:_0x2908a8}=this;for(;;){for(let _0x2db155=0x0;;){let _0x189b13=_0x2908a8['depth']<this['stack']['length']?this['stack'][this['stack']['length']-0x1]:null;for(;_0x2db155<_0x2908a8['markers']['length']&&(!_0x189b13||_0x2908a8['markers'][_0x2db155]['from']<_0x189b13['end']);){let _0x527d74=_0x2908a8['markers'][_0x2db155++];this['addNode'](_0x527d74['type'],_0x527d74['from'],_0x527d74['to']);}if(!_0x189b13)break;this['finishContext']();}if(_0x2908a8['pos']<_0x2908a8['text']['length'])break;if(!this['nextLine']())return this['finish']();}if(this['fragments']&&this['reuseFragment'](_0x2908a8['basePos']))return null;t:for(;;){for(let _0x1aba40 of this['parser']['blockParsers'])if(_0x1aba40){let _0xb99528=_0x1aba40(this,_0x2908a8);if(0x0!=_0xb99528){if(0x1==_0xb99528)return null;_0x2908a8['forward']();continue t;}}break;}let _0x5c3265=new LeafBlock(this['lineStart']+_0x2908a8['pos'],_0x2908a8['text']['slice'](_0x2908a8['pos']));for(let _0x7450a1 of this['parser']['leafBlockParsers'])if(_0x7450a1){let _0xbf149b=_0x7450a1(this,_0x5c3265);_0xbf149b&&_0x5c3265['parsers']['push'](_0xbf149b);}t:for(;this['nextLine']()&&_0x2908a8['pos']!=_0x2908a8['text']['length'];){if(_0x2908a8['indent']<_0x2908a8['baseIndent']+0x4){for(let _0x18b12d of this['parser']['endLeafBlock'])if(_0x18b12d(this,_0x2908a8,_0x5c3265))break t;}for(let _0x131982 of _0x5c3265['parsers'])if(_0x131982['nextLine'](this,_0x2908a8,_0x5c3265))return null;_0x5c3265['content']+='\x0a'+_0x2908a8['scrub']();for(let _0x42161a of _0x2908a8['markers'])_0x5c3265['marks']['push'](_0x42161a);}return this['finishLeaf'](_0x5c3265),null;}['stopAt'](_0x554108){if(null!=this['stoppedAt']&&this['stoppedAt']<_0x554108)throw new RangeError('Can\x27t\x20move\x20stoppedAt\x20forward');this['stoppedAt']=_0x554108;}['reuseFragment'](_0x38f061){if(!this['fragments']['moveTo'](this['absoluteLineStart']+_0x38f061,this['absoluteLineStart'])||!this['fragments']['matches'](this['block']['hash']))return!0x1;let _0x1459d1=this['fragments']['takeNodes'](this);return!!_0x1459d1&&(this['absoluteLineStart']+=_0x1459d1,this['lineStart']=toRelative(this['absoluteLineStart'],this['ranges']),this['moveRangeI'](),this['absoluteLineStart']<this['to']?(this['lineStart']++,this['absoluteLineStart']++,this['readLine']()):(this['atEnd']=!0x0,this['readLine']()),!0x0);}get['depth'](){return this['stack']['length'];}['parentType'](_0x4823fc=this['depth']-0x1){return this['parser']['nodeSet']['types'][this['stack'][_0x4823fc]['type']];}['nextLine'](){return this['lineStart']+=this['line']['text']['length'],this['absoluteLineEnd']>=this['to']?(this['absoluteLineStart']=this['absoluteLineEnd'],this['atEnd']=!0x0,this['readLine'](),!0x1):(this['lineStart']++,this['absoluteLineStart']=this['absoluteLineEnd']+0x1,this['moveRangeI'](),this['readLine'](),!0x0);}['peekLine'](){return this['scanLine'](this['absoluteLineEnd']+0x1)['text'];}['moveRangeI'](){for(;this['rangeI']<this['ranges']['length']-0x1&&this['absoluteLineStart']>=this['ranges'][this['rangeI']]['to'];)this['rangeI']++,this['absoluteLineStart']=Math['max'](this['absoluteLineStart'],this['ranges'][this['rangeI']]['from']);}['scanLine'](_0x559e77){let _0x3ff7d8=scanLineResult;if(_0x3ff7d8['end']=_0x559e77,_0x559e77>=this['to'])_0x3ff7d8['text']='';else{if(_0x3ff7d8['text']=this['lineChunkAt'](_0x559e77),_0x3ff7d8['end']+=_0x3ff7d8['text']['length'],this['ranges']['length']>0x1){let _0x1ba66f=this['absoluteLineStart'],_0x33d7da=this['rangeI'];for(;this['ranges'][_0x33d7da]['to']<_0x3ff7d8['end'];){_0x33d7da++;let _0x28601b=this['ranges'][_0x33d7da]['from'],_0x7fbbef=this['lineChunkAt'](_0x28601b);_0x3ff7d8['end']=_0x28601b+_0x7fbbef['length'],_0x3ff7d8['text']=_0x3ff7d8['text']['slice'](0x0,this['ranges'][_0x33d7da-0x1]['to']-_0x1ba66f)+_0x7fbbef,_0x1ba66f=_0x3ff7d8['end']-_0x3ff7d8['text']['length'];}}}return _0x3ff7d8;}['readLine'](){let {line:_0x3367b9}=this,{text:_0x51f5fc,end:_0xe96d3e}=this['scanLine'](this['absoluteLineStart']);for(this['absoluteLineEnd']=_0xe96d3e,_0x3367b9['reset'](_0x51f5fc);_0x3367b9['depth']<this['stack']['length'];_0x3367b9['depth']++){let _0x29113c=this['stack'][_0x3367b9['depth']],_0x24a874=this['parser']['skipContextMarkup'][_0x29113c['type']];if(!_0x24a874)throw new Error('Unhandled\x20block\x20context\x20'+Type[_0x29113c['type']]);if(!_0x24a874(_0x29113c,this,_0x3367b9))break;_0x3367b9['forward']();}}['lineChunkAt'](_0x2ee5cc){let _0x163a3b,_0x4d50c7=this['input']['chunk'](_0x2ee5cc);if(this['input']['lineChunks'])_0x163a3b='\x0a'==_0x4d50c7?'':_0x4d50c7;else{let _0x43fb5b=_0x4d50c7['indexOf']('\x0a');_0x163a3b=_0x43fb5b<0x0?_0x4d50c7:_0x4d50c7['slice'](0x0,_0x43fb5b);}return _0x2ee5cc+_0x163a3b['length']>this['to']?_0x163a3b['slice'](0x0,this['to']-_0x2ee5cc):_0x163a3b;}['prevLineEnd'](){return this['atEnd']?this['lineStart']:this['lineStart']-0x1;}['startContext'](_0x403e9c,_0x53950b,_0x20fe55=0x0){this['block']=CompositeBlock['create'](_0x403e9c,_0x20fe55,this['lineStart']+_0x53950b,this['block']['hash'],this['lineStart']+this['line']['text']['length']),this['stack']['push'](this['block']);}['startComposite'](_0xa11a65,_0x43efac,_0x39066f=0x0){this['startContext'](this['parser']['getNodeType'](_0xa11a65),_0x43efac,_0x39066f);}['addNode'](_0x389e6e,_0x209169,_0x1fb84e){'number'==typeof _0x389e6e&&(_0x389e6e=new Tree(this['parser']['nodeSet']['types'][_0x389e6e],none,none,(null!=_0x1fb84e?_0x1fb84e:this['prevLineEnd']())-_0x209169)),this['block']['addChild'](_0x389e6e,_0x209169-this['block']['from']);}['addElement'](_0xa421a9){this['block']['addChild'](_0xa421a9['toTree'](this['parser']['nodeSet']),_0xa421a9['from']-this['block']['from']);}['addLeafElement'](_0xc96208,_0x6c56d3){this['addNode'](this['buffer']['writeElements'](injectMarks(_0x6c56d3['children'],_0xc96208['marks']),-_0x6c56d3['from'])['finish'](_0x6c56d3['type'],_0x6c56d3['to']-_0x6c56d3['from']),_0x6c56d3['from']);}['finishContext'](){let _0x1f7333=this['stack']['pop'](),_0x2c3ccd=this['stack'][this['stack']['length']-0x1];_0x2c3ccd['addChild'](_0x1f7333['toTree'](this['parser']['nodeSet']),_0x1f7333['from']-_0x2c3ccd['from']),this['block']=_0x2c3ccd;}['finish'](){for(;this['stack']['length']>0x1;)this['finishContext']();return this['addGaps'](this['block']['toTree'](this['parser']['nodeSet'],this['lineStart']));}['addGaps'](_0x4584eb){return this['ranges']['length']>0x1?injectGaps(this['ranges'],0x0,_0x4584eb['topNode'],this['ranges'][0x0]['from'],this['reusePlaceholders']):_0x4584eb;}['finishLeaf'](_0x320eb0){for(let _0x44534d of _0x320eb0['parsers'])if(_0x44534d['finish'](this,_0x320eb0))return;let _0xf3392=injectMarks(this['parser']['parseInline'](_0x320eb0['content'],_0x320eb0['start']),_0x320eb0['marks']);this['addNode'](this['buffer']['writeElements'](_0xf3392,-_0x320eb0['start'])['finish'](Type['Paragraph'],_0x320eb0['content']['length']),_0x320eb0['start']);}['elt'](_0xc80741,_0x4a7841,_0x51c1f8,_0x6fe8c9){return'string'==typeof _0xc80741?elt(this['parser']['getNodeType'](_0xc80741),_0x4a7841,_0x51c1f8,_0x6fe8c9):new TreeElement(_0xc80741,_0x4a7841);}get['buffer'](){return new Buffer$1(this['parser']['nodeSet']);}}function injectGaps(_0x28988d,_0x56a251,_0x10fa07,_0x54abd8,_0x5668ab){let _0x5e17f8=_0x28988d[_0x56a251]['to'],_0x2fff18=[],_0x53d98a=[],_0x37f20d=_0x10fa07['from']+_0x54abd8;function _0x538094(_0x5a3b78,_0x195074){for(;_0x195074?_0x5a3b78>=_0x5e17f8:_0x5a3b78>_0x5e17f8;){let _0x15ce20=_0x28988d[_0x56a251+0x1]['from']-_0x5e17f8;_0x54abd8+=_0x15ce20,_0x5a3b78+=_0x15ce20,_0x56a251++,_0x5e17f8=_0x28988d[_0x56a251]['to'];}}for(let _0xbc1196=_0x10fa07['firstChild'];_0xbc1196;_0xbc1196=_0xbc1196['nextSibling']){_0x538094(_0xbc1196['from']+_0x54abd8,!0x0);let _0x69bd45,_0x259f22=_0xbc1196['from']+_0x54abd8,_0x4df6bf=_0x5668ab['get'](_0xbc1196['tree']);_0x4df6bf?_0x69bd45=_0x4df6bf:_0xbc1196['to']+_0x54abd8>_0x5e17f8?(_0x69bd45=injectGaps(_0x28988d,_0x56a251,_0xbc1196,_0x54abd8,_0x5668ab),_0x538094(_0xbc1196['to']+_0x54abd8,!0x1)):_0x69bd45=_0xbc1196['toTree'](),_0x2fff18['push'](_0x69bd45),_0x53d98a['push'](_0x259f22-_0x37f20d);}return _0x538094(_0x10fa07['to']+_0x54abd8,!0x1),new Tree(_0x10fa07['type'],_0x2fff18,_0x53d98a,_0x10fa07['to']+_0x54abd8-_0x37f20d,_0x10fa07['tree']?_0x10fa07['tree']['propValues']:void 0x0);}class MarkdownParser extends Parser{constructor(_0x579710,_0x459b4f,_0xd31407,_0x114a9f,_0x2d692b,_0x14ed3b,_0x5989a4,_0x145dad,_0x2c93f0){super(),this['nodeSet']=_0x579710,this['blockParsers']=_0x459b4f,this['leafBlockParsers']=_0xd31407,this['blockNames']=_0x114a9f,this['endLeafBlock']=_0x2d692b,this['skipContextMarkup']=_0x14ed3b,this['inlineParsers']=_0x5989a4,this['inlineNames']=_0x145dad,this['wrappers']=_0x2c93f0,this['nodeTypes']=Object['create'](null);for(let t of _0x579710['types'])this['nodeTypes'][t['name']]=t['id'];}['createParse'](_0x3276fe,_0x1e8413,_0x526d29){let _0x376349=new BlockContext(this,_0x3276fe,_0x1e8413,_0x526d29);for(let _0x21a231 of this['wrappers'])_0x376349=_0x21a231(_0x376349,_0x3276fe,_0x1e8413,_0x526d29);return _0x376349;}['configure'](_0x16cc52){let _0x5d97c9=resolveConfig(_0x16cc52);if(!_0x5d97c9)return this;let {nodeSet:_0x2b3f5d,skipContextMarkup:_0x460de0}=this,_0x5f21f5=this['blockParsers']['slice'](),_0x2cf44c=this['leafBlockParsers']['slice'](),_0x31b8c7=this['blockNames']['slice'](),_0x191a41=this['inlineParsers']['slice'](),_0x15a363=this['inlineNames']['slice'](),_0x2ea56c=this['endLeafBlock']['slice'](),_0x3ae877=this['wrappers'];if(nonEmpty(_0x5d97c9['defineNodes'])){_0x460de0=Object['assign']({},_0x460de0);let _0x17e814,_0x1b69fd=_0x2b3f5d['types']['slice']();for(let _0x4bb756 of _0x5d97c9['defineNodes']){let {name:_0x435abd,block:_0x23b0a6,composite:_0x1ab63a,style:_0xba7d81}='string'==typeof _0x4bb756?{'name':_0x4bb756}:_0x4bb756;if(_0x1b69fd['some'](t=>t['name']==_0x435abd))continue;_0x1ab63a&&(_0x460de0[_0x1b69fd['length']]=(_0xdeb65,_0xaf1c6f,_0x42cbb2)=>_0x1ab63a(_0xaf1c6f,_0x42cbb2,_0xdeb65['value']));let _0x1502b2=_0x1b69fd['length'],_0x3a1e45=_0x1ab63a?['Block','BlockContext']:_0x23b0a6?_0x1502b2>=Type['ATXHeading1']&&_0x1502b2<=Type['SetextHeading2']?['Block','LeafBlock','Heading']:['Block','LeafBlock']:void 0x0;_0x1b69fd['push'](NodeType['define']({'id':_0x1502b2,'name':_0x435abd,'props':_0x3a1e45&&[[NodeProp['group'],_0x3a1e45]]})),_0xba7d81&&(_0x17e814||(_0x17e814={}),Array['isArray'](_0xba7d81)||_0xba7d81 instanceof Tag?_0x17e814[_0x435abd]=_0xba7d81:Object['assign'](_0x17e814,_0xba7d81));}_0x2b3f5d=new NodeSet(_0x1b69fd),_0x17e814&&(_0x2b3f5d=_0x2b3f5d['extend'](styleTags(_0x17e814)));}if(nonEmpty(_0x5d97c9['props'])&&(_0x2b3f5d=_0x2b3f5d['extend'](..._0x5d97c9['props'])),nonEmpty(_0x5d97c9['remove']))for(let _0x2c725f of _0x5d97c9['remove']){let _0x11806d=this['blockNames']['indexOf'](_0x2c725f),_0x3732a7=this['inlineNames']['indexOf'](_0x2c725f);_0x11806d>-0x1&&(_0x5f21f5[_0x11806d]=_0x2cf44c[_0x11806d]=void 0x0),_0x3732a7>-0x1&&(_0x191a41[_0x3732a7]=void 0x0);}if(nonEmpty(_0x5d97c9['parseBlock']))for(let _0x60b309 of _0x5d97c9['parseBlock']){let _0x2d133a=_0x31b8c7['indexOf'](_0x60b309['name']);if(_0x2d133a>-0x1)_0x5f21f5[_0x2d133a]=_0x60b309['parse'],_0x2cf44c[_0x2d133a]=_0x60b309['leaf'];else{let _0x3fe2f9=_0x60b309['before']?findName(_0x31b8c7,_0x60b309['before']):_0x60b309['after']?findName(_0x31b8c7,_0x60b309['after'])+0x1:_0x31b8c7['length']-0x1;_0x5f21f5['splice'](_0x3fe2f9,0x0,_0x60b309['parse']),_0x2cf44c['splice'](_0x3fe2f9,0x0,_0x60b309['leaf']),_0x31b8c7['splice'](_0x3fe2f9,0x0,_0x60b309['name']);}_0x60b309['endLeaf']&&_0x2ea56c['push'](_0x60b309['endLeaf']);}if(nonEmpty(_0x5d97c9['parseInline']))for(let _0x3cf180 of _0x5d97c9['parseInline']){let _0x374137=_0x15a363['indexOf'](_0x3cf180['name']);if(_0x374137>-0x1)_0x191a41[_0x374137]=_0x3cf180['parse'];else{let _0x4c49a5=_0x3cf180['before']?findName(_0x15a363,_0x3cf180['before']):_0x3cf180['after']?findName(_0x15a363,_0x3cf180['after'])+0x1:_0x15a363['length']-0x1;_0x191a41['splice'](_0x4c49a5,0x0,_0x3cf180['parse']),_0x15a363['splice'](_0x4c49a5,0x0,_0x3cf180['name']);}}return _0x5d97c9['wrap']&&(_0x3ae877=_0x3ae877['concat'](_0x5d97c9['wrap'])),new MarkdownParser(_0x2b3f5d,_0x5f21f5,_0x2cf44c,_0x31b8c7,_0x2ea56c,_0x460de0,_0x191a41,_0x15a363,_0x3ae877);}['getNodeType'](_0x78f2b9){let _0x1fdb18=this['nodeTypes'][_0x78f2b9];if(null==_0x1fdb18)throw new RangeError('Unknown\x20node\x20type\x20\x27'+_0x78f2b9+'\x27');return _0x1fdb18;}['parseInline'](_0x36e7bc,_0x2941d2){let _0x12c049=new InlineContext(this,_0x36e7bc,_0x2941d2);t:for(let _0x584a5d=_0x2941d2;_0x584a5d<_0x12c049['end'];){let _0x2f4f39=_0x12c049['char'](_0x584a5d);for(let _0x3ff9a4 of this['inlineParsers'])if(_0x3ff9a4){let _0x2ad3ff=_0x3ff9a4(_0x12c049,_0x2f4f39,_0x584a5d);if(_0x2ad3ff>=0x0){_0x584a5d=_0x2ad3ff;continue t;}}_0x584a5d++;}return _0x12c049['resolveMarkers'](0x0);}}function nonEmpty(_0x15535c){return null!=_0x15535c&&_0x15535c['length']>0x0;}function resolveConfig(_0x16f7e3){if(!Array['isArray'](_0x16f7e3))return _0x16f7e3;if(0x0==_0x16f7e3['length'])return null;let _0x6c4ad6=resolveConfig(_0x16f7e3[0x0]);if(0x1==_0x16f7e3['length'])return _0x6c4ad6;let _0x58f8fe=resolveConfig(_0x16f7e3['slice'](0x1));if(!_0x58f8fe||!_0x6c4ad6)return _0x6c4ad6||_0x58f8fe;let _0x52821e=(_0x2cdb88,_0x1b55ad)=>(_0x2cdb88||none)['concat'](_0x1b55ad||none),_0x5f3c03=_0x6c4ad6['wrap'],_0x5207ad=_0x58f8fe['wrap'];return{'props':_0x52821e(_0x6c4ad6['props'],_0x58f8fe['props']),'defineNodes':_0x52821e(_0x6c4ad6['defineNodes'],_0x58f8fe['defineNodes']),'parseBlock':_0x52821e(_0x6c4ad6['parseBlock'],_0x58f8fe['parseBlock']),'parseInline':_0x52821e(_0x6c4ad6['parseInline'],_0x58f8fe['parseInline']),'remove':_0x52821e(_0x6c4ad6['remove'],_0x58f8fe['remove']),'wrap':_0x5f3c03?_0x5207ad?(_0x5a704a,_0x55a6a3,_0x42b30f,_0x1aa3dd)=>_0x5f3c03(_0x5207ad(_0x5a704a,_0x55a6a3,_0x42b30f,_0x1aa3dd),_0x55a6a3,_0x42b30f,_0x1aa3dd):_0x5f3c03:_0x5207ad};}function findName(_0x5068f4,_0x371f08){let _0xb96cc5=_0x5068f4['indexOf'](_0x371f08);if(_0xb96cc5<0x0)throw new RangeError('Position\x20specified\x20relative\x20to\x20unknown\x20parser\x20'+_0x371f08);return _0xb96cc5;}let nodeTypes=[NodeType['none']];for(let e=0x1,i;i=Type[e];e++)nodeTypes[e]=NodeType['define']({'id':e,'name':i,'props':e>=Type['Escape']?[]:[[NodeProp['group'],e in DefaultSkipMarkup?['Block','BlockContext']:['Block','LeafBlock']]],'top':'Document'==i});const none=[];let Buffer$1=class{constructor(_0x31a59e){this['nodeSet']=_0x31a59e,this['content']=[],this['nodes']=[];}['write'](_0x5b2b7d,_0x436012,_0x38ef9e,_0x14d661=0x0){return this['content']['push'](_0x5b2b7d,_0x436012,_0x38ef9e,0x4+0x4*_0x14d661),this;}['writeElements'](_0x44f5d6,_0x4bb9cd=0x0){for(let _0x45af90 of _0x44f5d6)_0x45af90['writeTo'](this,_0x4bb9cd);return this;}['finish'](_0x291306,_0x1bc34d){return Tree['build']({'buffer':this['content'],'nodeSet':this['nodeSet'],'reused':this['nodes'],'topID':_0x291306,'length':_0x1bc34d});}},Element$1=class{constructor(_0x4de888,_0x3c1dd1,_0x39e4a4,_0x47f5d1=none){this['type']=_0x4de888,this['from']=_0x3c1dd1,this['to']=_0x39e4a4,this['children']=_0x47f5d1;}['writeTo'](_0x22cb13,_0x36f1a3){let _0x347542=_0x22cb13['content']['length'];_0x22cb13['writeElements'](this['children'],_0x36f1a3),_0x22cb13['content']['push'](this['type'],this['from']+_0x36f1a3,this['to']+_0x36f1a3,_0x22cb13['content']['length']+0x4-_0x347542);}['toTree'](_0x58f071){return new Buffer$1(_0x58f071)['writeElements'](this['children'],-this['from'])['finish'](this['type'],this['to']-this['from']);}};class TreeElement{constructor(_0x5d26a6,_0x472906){this['tree']=_0x5d26a6,this['from']=_0x472906;}get['to'](){return this['from']+this['tree']['length'];}get['type'](){return this['tree']['type']['id'];}get['children'](){return none;}['writeTo'](_0x3cbf11,_0x562177){_0x3cbf11['nodes']['push'](this['tree']),_0x3cbf11['content']['push'](_0x3cbf11['nodes']['length']-0x1,this['from']+_0x562177,this['to']+_0x562177,-0x1);}['toTree'](){return this['tree'];}}function elt(_0x26651e,_0x1422aa,_0x5bedf0,_0x2ecaf6){return new Element$1(_0x26651e,_0x1422aa,_0x5bedf0,_0x2ecaf6);}const EmphasisUnderscore={'resolve':'Emphasis','mark':'EmphasisMark'},EmphasisAsterisk={'resolve':'Emphasis','mark':'EmphasisMark'},LinkStart={},ImageStart={};class InlineDelimiter{constructor(_0xe1287,_0x1f1b15,_0x53747e,_0x40b339){this['type']=_0xe1287,this['from']=_0x1f1b15,this['to']=_0x53747e,this['side']=_0x40b339;}}const Escapable='!\x22#$%&\x27()*+,-./:;<=>?@[\x5c]^_`{|}~';let Punctuation=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Punctuation=new RegExp('[\x5cp{S}|\x5cp{P}]','u');}catch(_0x424640){}const DefaultInline={'Escape'(_0x4e6bc4,_0x3c24f2,_0x353713){if(0x5c!=_0x3c24f2||_0x353713==_0x4e6bc4['end']-0x1)return-0x1;let _0x59ef0e=_0x4e6bc4['char'](_0x353713+0x1);for(let _0x3dc9f4=0x0;_0x3dc9f4<Escapable['length'];_0x3dc9f4++)if(Escapable['charCodeAt'](_0x3dc9f4)==_0x59ef0e)return _0x4e6bc4['append'](elt(Type['Escape'],_0x353713,_0x353713+0x2));return-0x1;},'Entity'(_0x5f40e2,_0xa91d2e,_0x40136d){if(0x26!=_0xa91d2e)return-0x1;let _0x5eb10e=/^(?:#\d+|#x[a-f\d]+|\w+);/i['exec'](_0x5f40e2['slice'](_0x40136d+0x1,_0x40136d+0x1f));return _0x5eb10e?_0x5f40e2['append'](elt(Type['Entity'],_0x40136d,_0x40136d+0x1+_0x5eb10e[0x0]['length'])):-0x1;},'InlineCode'(_0x40fdbc,_0x856b9d,_0x42ee6e){if(0x60!=_0x856b9d||_0x42ee6e&&0x60==_0x40fdbc['char'](_0x42ee6e-0x1))return-0x1;let _0x17cdbc=_0x42ee6e+0x1;for(;_0x17cdbc<_0x40fdbc['end']&&0x60==_0x40fdbc['char'](_0x17cdbc);)_0x17cdbc++;let _0x3f4e97=_0x17cdbc-_0x42ee6e,_0x3c1aca=0x0;for(;_0x17cdbc<_0x40fdbc['end'];_0x17cdbc++)if(0x60==_0x40fdbc['char'](_0x17cdbc)){if(_0x3c1aca++,_0x3c1aca==_0x3f4e97&&0x60!=_0x40fdbc['char'](_0x17cdbc+0x1))return _0x40fdbc['append'](elt(Type['InlineCode'],_0x42ee6e,_0x17cdbc+0x1,[elt(Type['CodeMark'],_0x42ee6e,_0x42ee6e+_0x3f4e97),elt(Type['CodeMark'],_0x17cdbc+0x1-_0x3f4e97,_0x17cdbc+0x1)]));}else _0x3c1aca=0x0;return-0x1;},'HTMLTag'(_0x9cb605,_0x4d8c60,_0x85dc90){if(0x3c!=_0x4d8c60||_0x85dc90==_0x9cb605['end']-0x1)return-0x1;let _0x11dbc1=_0x9cb605['slice'](_0x85dc90+0x1,_0x9cb605['end']),_0x326cff=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i['exec'](_0x11dbc1);if(_0x326cff)return _0x9cb605['append'](elt(Type['Autolink'],_0x85dc90,_0x85dc90+0x1+_0x326cff[0x0]['length'],[elt(Type['LinkMark'],_0x85dc90,_0x85dc90+0x1),elt(Type['URL'],_0x85dc90+0x1,_0x85dc90+_0x326cff[0x0]['length']),elt(Type['LinkMark'],_0x85dc90+_0x326cff[0x0]['length'],_0x85dc90+0x1+_0x326cff[0x0]['length'])]));let _0x480432=/^!--[^>](?:-[^-]|[^-])*?-->/i['exec'](_0x11dbc1);if(_0x480432)return _0x9cb605['append'](elt(Type['Comment'],_0x85dc90,_0x85dc90+0x1+_0x480432[0x0]['length']));let _0x5f401c=/^\?[^]*?\?>/['exec'](_0x11dbc1);if(_0x5f401c)return _0x9cb605['append'](elt(Type['ProcessingInstruction'],_0x85dc90,_0x85dc90+0x1+_0x5f401c[0x0]['length']));let _0x3a87dc=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/['exec'](_0x11dbc1);return _0x3a87dc?_0x9cb605['append'](elt(Type['HTMLTag'],_0x85dc90,_0x85dc90+0x1+_0x3a87dc[0x0]['length'])):-0x1;},'Emphasis'(_0x543afb,_0x1aedbe,_0x5169c3){if(0x5f!=_0x1aedbe&&0x2a!=_0x1aedbe)return-0x1;let _0x49180e=_0x5169c3+0x1;for(;_0x543afb['char'](_0x49180e)==_0x1aedbe;)_0x49180e++;let _0x1499b1=_0x543afb['slice'](_0x5169c3-0x1,_0x5169c3),_0x1e5b9a=_0x543afb['slice'](_0x49180e,_0x49180e+0x1),_0x237d52=Punctuation['test'](_0x1499b1),_0x482a47=Punctuation['test'](_0x1e5b9a),_0x3ae92b=/\s|^$/['test'](_0x1499b1),_0x115355=/\s|^$/['test'](_0x1e5b9a),_0x3e61a0=!_0x115355&&(!_0x482a47||_0x3ae92b||_0x237d52),_0x3f2b06=!_0x3ae92b&&(!_0x237d52||_0x115355||_0x482a47),_0x2a9eb6=_0x3e61a0&&(0x2a==_0x1aedbe||!_0x3f2b06||_0x237d52),_0x41fe90=_0x3f2b06&&(0x2a==_0x1aedbe||!_0x3e61a0||_0x482a47);return _0x543afb['append'](new InlineDelimiter(0x5f==_0x1aedbe?EmphasisUnderscore:EmphasisAsterisk,_0x5169c3,_0x49180e,(_0x2a9eb6?0x1:0x0)|(_0x41fe90?0x2:0x0)));},'HardBreak'(_0x55016f,_0x2b1721,_0x362f88){if(0x5c==_0x2b1721&&0xa==_0x55016f['char'](_0x362f88+0x1))return _0x55016f['append'](elt(Type['HardBreak'],_0x362f88,_0x362f88+0x2));if(0x20==_0x2b1721){let _0x3bda81=_0x362f88+0x1;for(;0x20==_0x55016f['char'](_0x3bda81);)_0x3bda81++;if(0xa==_0x55016f['char'](_0x3bda81)&&_0x3bda81>=_0x362f88+0x2)return _0x55016f['append'](elt(Type['HardBreak'],_0x362f88,_0x3bda81+0x1));}return-0x1;},'Link':(_0x44782e,_0x3dde40,_0x4d7c49)=>0x5b==_0x3dde40?_0x44782e['append'](new InlineDelimiter(LinkStart,_0x4d7c49,_0x4d7c49+0x1,0x1)):-0x1,'Image':(_0xbb4fc4,_0x452d3b,_0x3e0517)=>0x21==_0x452d3b&&0x5b==_0xbb4fc4['char'](_0x3e0517+0x1)?_0xbb4fc4['append'](new InlineDelimiter(ImageStart,_0x3e0517,_0x3e0517+0x2,0x1)):-0x1,'LinkEnd'(_0x2f36b7,_0x49c2d0,_0x3857a2){if(0x5d!=_0x49c2d0)return-0x1;for(let _0x521b2c=_0x2f36b7['parts']['length']-0x1;_0x521b2c>=0x0;_0x521b2c--){let _0x5c4d77=_0x2f36b7['parts'][_0x521b2c];if(_0x5c4d77 instanceof InlineDelimiter&&(_0x5c4d77['type']==LinkStart||_0x5c4d77['type']==ImageStart)){if(!_0x5c4d77['side']||_0x2f36b7['skipSpace'](_0x5c4d77['to'])==_0x3857a2&&!/[(\[]/['test'](_0x2f36b7['slice'](_0x3857a2+0x1,_0x3857a2+0x2)))return _0x2f36b7['parts'][_0x521b2c]=null,-0x1;let _0x2f6445=_0x2f36b7['takeContent'](_0x521b2c),_0x51fc6d=_0x2f36b7['parts'][_0x521b2c]=finishLink(_0x2f36b7,_0x2f6445,_0x5c4d77['type']==LinkStart?Type['Link']:Type['Image'],_0x5c4d77['from'],_0x3857a2+0x1);if(_0x5c4d77['type']==LinkStart)for(let _0x13111c=0x0;_0x13111c<_0x521b2c;_0x13111c++){let _0x4f0983=_0x2f36b7['parts'][_0x13111c];_0x4f0983 instanceof InlineDelimiter&&_0x4f0983['type']==LinkStart&&(_0x4f0983['side']=0x0);}return _0x51fc6d['to'];}}return-0x1;}};function finishLink(_0x47bb5c,_0xd29daf,_0x3e11eb,_0x27f6d2,_0x389cbd){let {text:_0x21dfad}=_0x47bb5c,_0xa8c736=_0x47bb5c['char'](_0x389cbd),_0x5c1fe6=_0x389cbd;if(_0xd29daf['unshift'](elt(Type['LinkMark'],_0x27f6d2,_0x27f6d2+(_0x3e11eb==Type['Image']?0x2:0x1))),_0xd29daf['push'](elt(Type['LinkMark'],_0x389cbd-0x1,_0x389cbd)),0x28==_0xa8c736){let _0x4c48e6,_0x263ed6=_0x47bb5c['skipSpace'](_0x389cbd+0x1),_0x2389cd=parseURL(_0x21dfad,_0x263ed6-_0x47bb5c['offset'],_0x47bb5c['offset']);_0x2389cd&&(_0x263ed6=_0x47bb5c['skipSpace'](_0x2389cd['to']),_0x263ed6!=_0x2389cd['to']&&(_0x4c48e6=parseLinkTitle(_0x21dfad,_0x263ed6-_0x47bb5c['offset'],_0x47bb5c['offset']),_0x4c48e6&&(_0x263ed6=_0x47bb5c['skipSpace'](_0x4c48e6['to'])))),0x29==_0x47bb5c['char'](_0x263ed6)&&(_0xd29daf['push'](elt(Type['LinkMark'],_0x389cbd,_0x389cbd+0x1)),_0x5c1fe6=_0x263ed6+0x1,_0x2389cd&&_0xd29daf['push'](_0x2389cd),_0x4c48e6&&_0xd29daf['push'](_0x4c48e6),_0xd29daf['push'](elt(Type['LinkMark'],_0x263ed6,_0x5c1fe6)));}else{if(0x5b==_0xa8c736){let _0x2dbaa6=parseLinkLabel(_0x21dfad,_0x389cbd-_0x47bb5c['offset'],_0x47bb5c['offset'],!0x1);_0x2dbaa6&&(_0xd29daf['push'](_0x2dbaa6),_0x5c1fe6=_0x2dbaa6['to']);}}return elt(_0x3e11eb,_0x27f6d2,_0x5c1fe6,_0xd29daf);}function parseURL(_0x47dcd4,_0xfaf725,_0x94ecab){if(0x3c==_0x47dcd4['charCodeAt'](_0xfaf725)){for(let _0x4427df=_0xfaf725+0x1;_0x4427df<_0x47dcd4['length'];_0x4427df++){let _0x4cee74=_0x47dcd4['charCodeAt'](_0x4427df);if(0x3e==_0x4cee74)return elt(Type['URL'],_0xfaf725+_0x94ecab,_0x4427df+0x1+_0x94ecab);if(0x3c==_0x4cee74||0xa==_0x4cee74)return!0x1;}return null;}{let _0x8d31ba=0x0,_0x53c2cc=_0xfaf725;for(let _0x5ac179=!0x1;_0x53c2cc<_0x47dcd4['length'];_0x53c2cc++){let _0x23c24d=_0x47dcd4['charCodeAt'](_0x53c2cc);if(space(_0x23c24d))break;if(_0x5ac179)_0x5ac179=!0x1;else{if(0x28==_0x23c24d)_0x8d31ba++;else{if(0x29==_0x23c24d){if(!_0x8d31ba)break;_0x8d31ba--;}else 0x5c==_0x23c24d&&(_0x5ac179=!0x0);}}}return _0x53c2cc>_0xfaf725?elt(Type['URL'],_0xfaf725+_0x94ecab,_0x53c2cc+_0x94ecab):_0x53c2cc==_0x47dcd4['length']&&null;}}function parseLinkTitle(_0x2f660f,_0x19eb59,_0x3af9c6){let _0x5929d1=_0x2f660f['charCodeAt'](_0x19eb59);if(0x27!=_0x5929d1&&0x22!=_0x5929d1&&0x28!=_0x5929d1)return!0x1;let _0x43ff09=0x28==_0x5929d1?0x29:_0x5929d1;for(let _0x2d3b80=_0x19eb59+0x1,_0x242f89=!0x1;_0x2d3b80<_0x2f660f['length'];_0x2d3b80++){let _0xcbbdbf=_0x2f660f['charCodeAt'](_0x2d3b80);if(_0x242f89)_0x242f89=!0x1;else{if(_0xcbbdbf==_0x43ff09)return elt(Type['LinkTitle'],_0x19eb59+_0x3af9c6,_0x2d3b80+0x1+_0x3af9c6);0x5c==_0xcbbdbf&&(_0x242f89=!0x0);}}return null;}function parseLinkLabel(_0x15f9ca,_0x56b338,_0x51094b,_0x1020b0){for(let _0x32c1cd=!0x1,_0x40b80c=_0x56b338+0x1,_0x17be1b=Math['min'](_0x15f9ca['length'],_0x40b80c+0x3e7);_0x40b80c<_0x17be1b;_0x40b80c++){let _0x361cec=_0x15f9ca['charCodeAt'](_0x40b80c);if(_0x32c1cd)_0x32c1cd=!0x1;else{if(0x5d==_0x361cec)return!_0x1020b0&&elt(Type['LinkLabel'],_0x56b338+_0x51094b,_0x40b80c+0x1+_0x51094b);if(_0x1020b0&&!space(_0x361cec)&&(_0x1020b0=!0x1),0x5b==_0x361cec)return!0x1;0x5c==_0x361cec&&(_0x32c1cd=!0x0);}}return null;}class InlineContext{constructor(_0x322763,_0x206578,_0x2e9bb2){this['parser']=_0x322763,this['text']=_0x206578,this['offset']=_0x2e9bb2,this['parts']=[];}['char'](_0x4d4fa7){return _0x4d4fa7>=this['end']?-0x1:this['text']['charCodeAt'](_0x4d4fa7-this['offset']);}get['end'](){return this['offset']+this['text']['length'];}['slice'](_0x2f0629,_0x34f8bd){return this['text']['slice'](_0x2f0629-this['offset'],_0x34f8bd-this['offset']);}['append'](_0x34763b){return this['parts']['push'](_0x34763b),_0x34763b['to'];}['addDelimiter'](_0x24d4c9,_0x597cd3,_0x4e01a0,_0x1eda80,_0x268996){return this['append'](new InlineDelimiter(_0x24d4c9,_0x597cd3,_0x4e01a0,(_0x1eda80?0x1:0x0)|(_0x268996?0x2:0x0)));}get['hasOpenLink'](){for(let _0x2d2744=this['parts']['length']-0x1;_0x2d2744>=0x0;_0x2d2744--){let _0x374d97=this['parts'][_0x2d2744];if(_0x374d97 instanceof InlineDelimiter&&(_0x374d97['type']==LinkStart||_0x374d97['type']==ImageStart))return!0x0;}return!0x1;}['addElement'](_0x4acb9f){return this['append'](_0x4acb9f);}['resolveMarkers'](_0x58efaa){for(let _0x3d2144=_0x58efaa;_0x3d2144<this['parts']['length'];_0x3d2144++){let _0x23f732=this['parts'][_0x3d2144];if(!(_0x23f732 instanceof InlineDelimiter&&_0x23f732['type']['resolve']&&0x2&_0x23f732['side']))continue;let _0xf11e6,_0x93ee93=_0x23f732['type']==EmphasisUnderscore||_0x23f732['type']==EmphasisAsterisk,_0x4c953b=_0x23f732['to']-_0x23f732['from'],_0x2d9210=_0x3d2144-0x1;for(;_0x2d9210>=_0x58efaa;_0x2d9210--){let _0x5a18a1=this['parts'][_0x2d9210];if(_0x5a18a1 instanceof InlineDelimiter&&0x1&_0x5a18a1['side']&&_0x5a18a1['type']==_0x23f732['type']&&!(_0x93ee93&&(0x1&_0x23f732['side']||0x2&_0x5a18a1['side'])&&(_0x5a18a1['to']-_0x5a18a1['from']+_0x4c953b)%0x3==0x0&&((_0x5a18a1['to']-_0x5a18a1['from'])%0x3||_0x4c953b%0x3))){_0xf11e6=_0x5a18a1;break;}}if(!_0xf11e6)continue;let _0x28f501=_0x23f732['type']['resolve'],_0x35587f=[],_0x10783d=_0xf11e6['from'],_0x5bab6a=_0x23f732['to'];if(_0x93ee93){let _0x19bcef=Math['min'](0x2,_0xf11e6['to']-_0xf11e6['from'],_0x4c953b);_0x10783d=_0xf11e6['to']-_0x19bcef,_0x5bab6a=_0x23f732['from']+_0x19bcef,_0x28f501=0x1==_0x19bcef?'Emphasis':'StrongEmphasis';}_0xf11e6['type']['mark']&&_0x35587f['push'](this['elt'](_0xf11e6['type']['mark'],_0x10783d,_0xf11e6['to']));for(let _0x49e819=_0x2d9210+0x1;_0x49e819<_0x3d2144;_0x49e819++)this['parts'][_0x49e819]instanceof Element$1&&_0x35587f['push'](this['parts'][_0x49e819]),this['parts'][_0x49e819]=null;_0x23f732['type']['mark']&&_0x35587f['push'](this['elt'](_0x23f732['type']['mark'],_0x23f732['from'],_0x5bab6a));let _0x2bd554=this['elt'](_0x28f501,_0x10783d,_0x5bab6a,_0x35587f);this['parts'][_0x2d9210]=_0x93ee93&&_0xf11e6['from']!=_0x10783d?new InlineDelimiter(_0xf11e6['type'],_0xf11e6['from'],_0x10783d,_0xf11e6['side']):null,(this['parts'][_0x3d2144]=_0x93ee93&&_0x23f732['to']!=_0x5bab6a?new InlineDelimiter(_0x23f732['type'],_0x5bab6a,_0x23f732['to'],_0x23f732['side']):null)?this['parts']['splice'](_0x3d2144,0x0,_0x2bd554):this['parts'][_0x3d2144]=_0x2bd554;}let _0x8ff957=[];for(let _0x35f47a=_0x58efaa;_0x35f47a<this['parts']['length'];_0x35f47a++){let _0xdb0554=this['parts'][_0x35f47a];_0xdb0554 instanceof Element$1&&_0x8ff957['push'](_0xdb0554);}return _0x8ff957;}['findOpeningDelimiter'](_0x42b01f){for(let _0x17d149=this['parts']['length']-0x1;_0x17d149>=0x0;_0x17d149--){let _0x21c271=this['parts'][_0x17d149];if(_0x21c271 instanceof InlineDelimiter&&_0x21c271['type']==_0x42b01f)return _0x17d149;}return null;}['takeContent'](_0x1a4f76){let _0x225aaf=this['resolveMarkers'](_0x1a4f76);return this['parts']['length']=_0x1a4f76,_0x225aaf;}['skipSpace'](_0x10ae37){return skipSpace(this['text'],_0x10ae37-this['offset'])+this['offset'];}['elt'](_0x271875,_0x38d2a5,_0x5d15d3,_0x1528f1){return'string'==typeof _0x271875?elt(this['parser']['getNodeType'](_0x271875),_0x38d2a5,_0x5d15d3,_0x1528f1):new TreeElement(_0x271875,_0x38d2a5);}}function injectMarks(_0x21288d,_0x2959b2){if(!_0x2959b2['length'])return _0x21288d;if(!_0x21288d['length'])return _0x2959b2;let _0x5b4cf6=_0x21288d['slice'](),_0x573fbd=0x0;for(let _0xf4b867 of _0x2959b2){for(;_0x573fbd<_0x5b4cf6['length']&&_0x5b4cf6[_0x573fbd]['to']<_0xf4b867['to'];)_0x573fbd++;if(_0x573fbd<_0x5b4cf6['length']&&_0x5b4cf6[_0x573fbd]['from']<_0xf4b867['from']){let _0x5a6484=_0x5b4cf6[_0x573fbd];_0x5a6484 instanceof Element$1&&(_0x5b4cf6[_0x573fbd]=new Element$1(_0x5a6484['type'],_0x5a6484['from'],_0x5a6484['to'],injectMarks(_0x5a6484['children'],[_0xf4b867])));}else _0x5b4cf6['splice'](_0x573fbd++,0x0,_0xf4b867);}return _0x5b4cf6;}const NotLast=[Type['CodeBlock'],Type['ListItem'],Type['OrderedList'],Type['BulletList']];class FragmentCursor{constructor(_0x50c7a0,_0x24d9fb){this['fragments']=_0x50c7a0,this['input']=_0x24d9fb,this['i']=0x0,this['fragment']=null,this['fragmentEnd']=-0x1,this['cursor']=null,_0x50c7a0['length']&&(this['fragment']=_0x50c7a0[this['i']++]);}['nextFragment'](){this['fragment']=this['i']<this['fragments']['length']?this['fragments'][this['i']++]:null,this['cursor']=null,this['fragmentEnd']=-0x1;}['moveTo'](_0x48026a,_0x3cb1a7){for(;this['fragment']&&this['fragment']['to']<=_0x48026a;)this['nextFragment']();if(!this['fragment']||this['fragment']['from']>(_0x48026a?_0x48026a-0x1:0x0))return!0x1;if(this['fragmentEnd']<0x0){let _0x42ae92=this['fragment']['to'];for(;_0x42ae92>0x0&&'\x0a'!=this['input']['read'](_0x42ae92-0x1,_0x42ae92);)_0x42ae92--;this['fragmentEnd']=_0x42ae92?_0x42ae92-0x1:0x0;}let _0x4bc7cd=this['cursor'];_0x4bc7cd||(_0x4bc7cd=this['cursor']=this['fragment']['tree']['cursor'](),_0x4bc7cd['firstChild']());let _0xc334d9=_0x48026a+this['fragment']['offset'];for(;_0x4bc7cd['to']<=_0xc334d9;)if(!_0x4bc7cd['parent']())return!0x1;for(;;){if(_0x4bc7cd['from']>=_0xc334d9)return this['fragment']['from']<=_0x3cb1a7;if(!_0x4bc7cd['childAfter'](_0xc334d9))return!0x1;}}['matches'](_0x547c3a){let _0x40d81d=this['cursor']['tree'];return _0x40d81d&&_0x40d81d['prop'](NodeProp['contextHash'])==_0x547c3a;}['takeNodes'](_0x4eae75){let _0x250285=this['cursor'],_0x18f432=this['fragment']['offset'],_0x261006=this['fragmentEnd']-(this['fragment']['openEnd']?0x1:0x0),_0xa90e76=_0x4eae75['absoluteLineStart'],_0x368f38=_0xa90e76,_0xc62f37=_0x4eae75['block']['children']['length'],_0x5c1fff=_0x368f38,_0x4cc7fd=_0xc62f37;for(;;){if(_0x250285['to']-_0x18f432>_0x261006){if(_0x250285['type']['isAnonymous']&&_0x250285['firstChild']())continue;break;}let _0x5ae8cf=toRelative(_0x250285['from']-_0x18f432,_0x4eae75['ranges']);if(_0x250285['to']-_0x18f432<=_0x4eae75['ranges'][_0x4eae75['rangeI']]['to'])_0x4eae75['addNode'](_0x250285['tree'],_0x5ae8cf);else{let _0x40b1e6=new Tree(_0x4eae75['parser']['nodeSet']['types'][Type['Paragraph']],[],[],0x0,_0x4eae75['block']['hashProp']);_0x4eae75['reusePlaceholders']['set'](_0x40b1e6,_0x250285['tree']),_0x4eae75['addNode'](_0x40b1e6,_0x5ae8cf);}if(_0x250285['type']['is']('Block')&&(NotLast['indexOf'](_0x250285['type']['id'])<0x0?(_0x368f38=_0x250285['to']-_0x18f432,_0xc62f37=_0x4eae75['block']['children']['length']):(_0x368f38=_0x5c1fff,_0xc62f37=_0x4cc7fd,_0x5c1fff=_0x250285['to']-_0x18f432,_0x4cc7fd=_0x4eae75['block']['children']['length'])),!_0x250285['nextSibling']())break;}for(;_0x4eae75['block']['children']['length']>_0xc62f37;)_0x4eae75['block']['children']['pop'](),_0x4eae75['block']['positions']['pop']();return _0x368f38-_0xa90e76;}}function toRelative(_0x533610,_0x10cb0b){let _0x48c2d4=_0x533610;for(let _0x27a5fe=0x1;_0x27a5fe<_0x10cb0b['length'];_0x27a5fe++){let _0x7d2b80=_0x10cb0b[_0x27a5fe-0x1]['to'],_0x8cf2a7=_0x10cb0b[_0x27a5fe]['from'];_0x7d2b80<_0x533610&&(_0x48c2d4-=_0x8cf2a7-_0x7d2b80);}return _0x48c2d4;}const markdownHighlighting=styleTags({'Blockquote/...':tags$1['quote'],'HorizontalRule':tags$1['contentSeparator'],'ATXHeading1/...\x20SetextHeading1/...':tags$1['heading1'],'ATXHeading2/...\x20SetextHeading2/...':tags$1['heading2'],'ATXHeading3/...':tags$1['heading3'],'ATXHeading4/...':tags$1['heading4'],'ATXHeading5/...':tags$1['heading5'],'ATXHeading6/...':tags$1['heading6'],'Comment\x20CommentBlock':tags$1['comment'],'Escape':tags$1['escape'],'Entity':tags$1['character'],'Emphasis/...':tags$1['emphasis'],'StrongEmphasis/...':tags$1['strong'],'Link/...\x20Image/...':tags$1['link'],'OrderedList/...\x20BulletList/...':tags$1['list'],'BlockQuote/...':tags$1['quote'],'InlineCode\x20CodeText':tags$1['monospace'],'URL\x20Autolink':tags$1['url'],'HeaderMark\x20HardBreak\x20QuoteMark\x20ListMark\x20LinkMark\x20EmphasisMark\x20CodeMark':tags$1['processingInstruction'],'CodeInfo\x20LinkLabel':tags$1['labelName'],'LinkTitle':tags$1['string'],'Paragraph':tags$1['content']}),parser=new MarkdownParser(new NodeSet(nodeTypes)['extend'](markdownHighlighting),Object['keys'](DefaultBlockParsers)['map'](_0x1a7ef9=>DefaultBlockParsers[_0x1a7ef9]),Object['keys'](DefaultBlockParsers)['map'](_0x2db2fc=>DefaultLeafBlocks[_0x2db2fc]),Object['keys'](DefaultBlockParsers),DefaultEndLeaf,DefaultSkipMarkup,Object['keys'](DefaultInline)['map'](_0x1f2ed7=>DefaultInline[_0x1f2ed7]),Object['keys'](DefaultInline),[]);function leftOverSpace(_0xdc1e06,_0x93a77d,_0x39e89e){let _0x93f0cd=[];for(let _0x13c5e1=_0xdc1e06['firstChild'],_0x1c96f7=_0x93a77d;;_0x13c5e1=_0x13c5e1['nextSibling']){let _0x531a7c=_0x13c5e1?_0x13c5e1['from']:_0x39e89e;if(_0x531a7c>_0x1c96f7&&_0x93f0cd['push']({'from':_0x1c96f7,'to':_0x531a7c}),!_0x13c5e1)break;_0x1c96f7=_0x13c5e1['to'];}return _0x93f0cd;}function parseCode(_0x29385d){let {codeParser:_0x15a5d4,htmlParser:_0xea3beb}=_0x29385d,_0x1229f9=parseMixed((_0xfed104,_0x5cd88d)=>{let _0x39551=_0xfed104['type']['id'];if(!_0x15a5d4||_0x39551!=Type['CodeBlock']&&_0x39551!=Type['FencedCode']){if(_0xea3beb&&(_0x39551==Type['HTMLBlock']||_0x39551==Type['HTMLTag']||_0x39551==Type['CommentBlock']))return{'parser':_0xea3beb,'overlay':leftOverSpace(_0xfed104['node'],_0xfed104['from'],_0xfed104['to'])};}else{let _0xc0574f='';if(_0x39551==Type['FencedCode']){let _0x233ec7=_0xfed104['node']['getChild'](Type['CodeInfo']);_0x233ec7&&(_0xc0574f=_0x5cd88d['read'](_0x233ec7['from'],_0x233ec7['to']));}let _0x1819f5=_0x15a5d4(_0xc0574f);if(_0x1819f5)return{'parser':_0x1819f5,'overlay':_0x1bcf35=>_0x1bcf35['type']['id']==Type['CodeText']};}return null;});return{'wrap':_0x1229f9};}const StrikethroughDelim={'resolve':'Strikethrough','mark':'StrikethroughMark'},Strikethrough={'defineNodes':[{'name':'Strikethrough','style':{'Strikethrough/...':tags$1['strikethrough']}},{'name':'StrikethroughMark','style':tags$1['processingInstruction']}],'parseInline':[{'name':'Strikethrough','parse'(_0x363553,_0x7367b6,_0x826e42){if(0x7e!=_0x7367b6||0x7e!=_0x363553['char'](_0x826e42+0x1)||0x7e==_0x363553['char'](_0x826e42+0x2))return-0x1;let _0x5d64ae=_0x363553['slice'](_0x826e42-0x1,_0x826e42),_0x2b1d92=_0x363553['slice'](_0x826e42+0x2,_0x826e42+0x3),_0x55e127=/\s|^$/['test'](_0x5d64ae),_0x484b68=/\s|^$/['test'](_0x2b1d92),_0x39f6aa=Punctuation['test'](_0x5d64ae),_0x31153f=Punctuation['test'](_0x2b1d92);return _0x363553['addDelimiter'](StrikethroughDelim,_0x826e42,_0x826e42+0x2,!_0x484b68&&(!_0x31153f||_0x55e127||_0x39f6aa),!_0x55e127&&(!_0x39f6aa||_0x484b68||_0x31153f));},'after':'Emphasis'}]};function parseRow(_0x3e9438,_0x136aee,_0x23d606=0x0,_0x5a1492,_0x2d15cd=0x0){let _0x56b1f9=0x0,_0x2b3cb0=!0x0,_0x50de75=-0x1,_0x3c89c7=-0x1,_0xc35443=!0x1,_0xd3fcde=()=>{_0x5a1492['push'](_0x3e9438['elt']('TableCell',_0x2d15cd+_0x50de75,_0x2d15cd+_0x3c89c7,_0x3e9438['parser']['parseInline'](_0x136aee['slice'](_0x50de75,_0x3c89c7),_0x2d15cd+_0x50de75)));};for(let _0x2102d4=_0x23d606;_0x2102d4<_0x136aee['length'];_0x2102d4++){let _0x34ffe8=_0x136aee['charCodeAt'](_0x2102d4);0x7c!=_0x34ffe8||_0xc35443?(_0xc35443||0x20!=_0x34ffe8&&0x9!=_0x34ffe8)&&(_0x50de75<0x0&&(_0x50de75=_0x2102d4),_0x3c89c7=_0x2102d4+0x1):((!_0x2b3cb0||_0x50de75>-0x1)&&_0x56b1f9++,_0x2b3cb0=!0x1,_0x5a1492&&(_0x50de75>-0x1&&_0xd3fcde(),_0x5a1492['push'](_0x3e9438['elt']('TableDelimiter',_0x2102d4+_0x2d15cd,_0x2102d4+_0x2d15cd+0x1))),_0x50de75=_0x3c89c7=-0x1),_0xc35443=!_0xc35443&&0x5c==_0x34ffe8;}return _0x50de75>-0x1&&(_0x56b1f9++,_0x5a1492&&_0xd3fcde()),_0x56b1f9;}function hasPipe(_0x868893,_0x1463fc){for(let _0x5912c2=_0x1463fc;_0x5912c2<_0x868893['length'];_0x5912c2++){let _0x5e6bbc=_0x868893['charCodeAt'](_0x5912c2);if(0x7c==_0x5e6bbc)return!0x0;0x5c==_0x5e6bbc&&_0x5912c2++;}return!0x1;}const delimiterLine=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class TableParser{constructor(){this['rows']=null;}['nextLine'](_0x2a6cb3,_0x189d28,_0x33a2d0){if(null==this['rows']){let _0x551137;if(this['rows']=!0x1,(0x2d==_0x189d28['next']||0x3a==_0x189d28['next']||0x7c==_0x189d28['next'])&&delimiterLine['test'](_0x551137=_0x189d28['text']['slice'](_0x189d28['pos']))){let _0x46d928=[];parseRow(_0x2a6cb3,_0x33a2d0['content'],0x0,_0x46d928,_0x33a2d0['start'])==parseRow(_0x2a6cb3,_0x551137,_0x189d28['pos'])&&(this['rows']=[_0x2a6cb3['elt']('TableHeader',_0x33a2d0['start'],_0x33a2d0['start']+_0x33a2d0['content']['length'],_0x46d928),_0x2a6cb3['elt']('TableDelimiter',_0x2a6cb3['lineStart']+_0x189d28['pos'],_0x2a6cb3['lineStart']+_0x189d28['text']['length'])]);}}else{if(this['rows']){let _0x57b2b8=[];parseRow(_0x2a6cb3,_0x189d28['text'],_0x189d28['pos'],_0x57b2b8,_0x2a6cb3['lineStart']),this['rows']['push'](_0x2a6cb3['elt']('TableRow',_0x2a6cb3['lineStart']+_0x189d28['pos'],_0x2a6cb3['lineStart']+_0x189d28['text']['length'],_0x57b2b8));}}return!0x1;}['finish'](_0x4cfce8,_0x22d65d){return!!this['rows']&&(_0x4cfce8['addLeafElement'](_0x22d65d,_0x4cfce8['elt']('Table',_0x22d65d['start'],_0x22d65d['start']+_0x22d65d['content']['length'],this['rows'])),!0x0);}}const Table={'defineNodes':[{'name':'Table','block':!0x0},{'name':'TableHeader','style':{'TableHeader/...':tags$1['heading']}},'TableRow',{'name':'TableCell','style':tags$1['content']},{'name':'TableDelimiter','style':tags$1['processingInstruction']}],'parseBlock':[{'name':'Table','leaf':(_0x232dec,_0x5143d0)=>hasPipe(_0x5143d0['content'],0x0)?new TableParser():null,'endLeaf'(_0x117323,_0x1d073a,_0x5924ae){if(_0x5924ae['parsers']['some'](_0x41aa37=>_0x41aa37 instanceof TableParser)||!hasPipe(_0x1d073a['text'],_0x1d073a['basePos']))return!0x1;let _0x382565=_0x117323['peekLine']();return delimiterLine['test'](_0x382565)&&parseRow(_0x117323,_0x1d073a['text'],_0x1d073a['basePos'])==parseRow(_0x117323,_0x382565,_0x1d073a['basePos']);},'before':'SetextHeading'}]};class TaskParser{['nextLine'](){return!0x1;}['finish'](_0x2f7651,_0x5c1ebe){return _0x2f7651['addLeafElement'](_0x5c1ebe,_0x2f7651['elt']('Task',_0x5c1ebe['start'],_0x5c1ebe['start']+_0x5c1ebe['content']['length'],[_0x2f7651['elt']('TaskMarker',_0x5c1ebe['start'],_0x5c1ebe['start']+0x3),..._0x2f7651['parser']['parseInline'](_0x5c1ebe['content']['slice'](0x3),_0x5c1ebe['start']+0x3)])),!0x0;}}const TaskList={'defineNodes':[{'name':'Task','block':!0x0,'style':tags$1['list']},{'name':'TaskMarker','style':tags$1['atom']}],'parseBlock':[{'name':'TaskList','leaf':(_0x5838d3,_0x41e239)=>/^\[[ xX]\][ \t]/['test'](_0x41e239['content'])&&'ListItem'==_0x5838d3['parentType']()['name']?new TaskParser():null,'after':'SetextHeading'}]},autolinkRE=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,urlRE=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,lastTwoDomainWords=/[\w-]+\.[\w-]+($|\/)/,emailRE=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,xmppResourceRE=/\/[a-zA-Z\d@.]+/gy;function count(_0x18e2ec,_0x20e69d,_0x31af06,_0x29a292){let _0x323bd3=0x0;for(let _0x4008af=_0x20e69d;_0x4008af<_0x31af06;_0x4008af++)_0x18e2ec[_0x4008af]==_0x29a292&&_0x323bd3++;return _0x323bd3;}function autolinkURLEnd(_0x658638,_0x24d897){urlRE['lastIndex']=_0x24d897;let _0x4b60c3=urlRE['exec'](_0x658638);if(!_0x4b60c3||lastTwoDomainWords['exec'](_0x4b60c3[0x0])[0x0]['indexOf']('_')>-0x1)return-0x1;let _0x48ea89=_0x24d897+_0x4b60c3[0x0]['length'];for(;;){let _0x595e77,_0x37f84f=_0x658638[_0x48ea89-0x1];if(/[?!.,:*_~]/['test'](_0x37f84f)||')'==_0x37f84f&&count(_0x658638,_0x24d897,_0x48ea89,')')>count(_0x658638,_0x24d897,_0x48ea89,'('))_0x48ea89--;else{if(';'!=_0x37f84f||!(_0x595e77=/&(?:#\d+|#x[a-f\d]+|\w+);$/['exec'](_0x658638['slice'](_0x24d897,_0x48ea89))))break;_0x48ea89=_0x24d897+_0x595e77['index'];}}return _0x48ea89;}function autolinkEmailEnd(_0x23cabd,_0xe6cb1a){emailRE['lastIndex']=_0xe6cb1a;let _0x52f38f=emailRE['exec'](_0x23cabd);if(!_0x52f38f)return-0x1;let _0x334db3=_0x52f38f[0x0][_0x52f38f[0x0]['length']-0x1];return'_'==_0x334db3||'-'==_0x334db3?-0x1:_0xe6cb1a+_0x52f38f[0x0]['length']-('.'==_0x334db3?0x1:0x0);}const Autolink={'parseInline':[{'name':'Autolink','parse'(_0x799360,_0x516afd,_0x110ff0){let _0x3f6524=_0x110ff0-_0x799360['offset'];if(_0x3f6524&&/\w/['test'](_0x799360['text'][_0x3f6524-0x1]))return-0x1;autolinkRE['lastIndex']=_0x3f6524;let _0x6e5693=autolinkRE['exec'](_0x799360['text']),_0x699e36=-0x1;if(!_0x6e5693)return-0x1;if(_0x6e5693[0x1]||_0x6e5693[0x2])(_0x699e36=autolinkURLEnd(_0x799360['text'],_0x3f6524+_0x6e5693[0x0]['length']),_0x699e36>-0x1&&_0x799360['hasOpenLink'])&&(_0x699e36=_0x3f6524+/([^\[\]]|\[[^\]]*\])*/['exec'](_0x799360['text']['slice'](_0x3f6524,_0x699e36))[0x0]['length']);else _0x6e5693[0x3]?_0x699e36=autolinkEmailEnd(_0x799360['text'],_0x3f6524):(_0x699e36=autolinkEmailEnd(_0x799360['text'],_0x3f6524+_0x6e5693[0x0]['length']),_0x699e36>-0x1&&'xmpp:'==_0x6e5693[0x0]&&(xmppResourceRE['lastIndex']=_0x699e36,_0x6e5693=xmppResourceRE['exec'](_0x799360['text']),_0x6e5693&&(_0x699e36=_0x6e5693['index']+_0x6e5693[0x0]['length'])));return _0x699e36<0x0?-0x1:(_0x799360['addElement'](_0x799360['elt']('URL',_0x110ff0,_0x699e36+_0x799360['offset'])),_0x699e36+_0x799360['offset']);}}]},GFM=[Table,TaskList,Strikethrough,Autolink];function parseSubSuper(_0x484acf,_0x5efa64,_0x1df444){return(_0x553ad9,_0x2d91aa,_0x47dd58)=>{if(_0x2d91aa!=_0x484acf||_0x553ad9['char'](_0x47dd58+0x1)==_0x484acf)return-0x1;let _0x223913=[_0x553ad9['elt'](_0x1df444,_0x47dd58,_0x47dd58+0x1)];for(let _0x6a387a=_0x47dd58+0x1;_0x6a387a<_0x553ad9['end'];_0x6a387a++){let _0x4d7869=_0x553ad9['char'](_0x6a387a);if(_0x4d7869==_0x484acf)return _0x553ad9['addElement'](_0x553ad9['elt'](_0x5efa64,_0x47dd58,_0x6a387a+0x1,_0x223913['concat'](_0x553ad9['elt'](_0x1df444,_0x6a387a,_0x6a387a+0x1))));if(0x5c==_0x4d7869&&_0x223913['push'](_0x553ad9['elt']('Escape',_0x6a387a,0x2+_0x6a387a++)),space(_0x4d7869))break;}return-0x1;};}const Superscript={'defineNodes':[{'name':'Superscript','style':tags$1['special'](tags$1['content'])},{'name':'SuperscriptMark','style':tags$1['processingInstruction']}],'parseInline':[{'name':'Superscript','parse':parseSubSuper(0x5e,'Superscript','SuperscriptMark')}]},Subscript={'defineNodes':[{'name':'Subscript','style':tags$1['special'](tags$1['content'])},{'name':'SubscriptMark','style':tags$1['processingInstruction']}],'parseInline':[{'name':'Subscript','parse':parseSubSuper(0x7e,'Subscript','SubscriptMark')}]},Emoji={'defineNodes':[{'name':'Emoji','style':tags$1['character']}],'parseInline':[{'name':'Emoji','parse'(_0x3c4b55,_0x316e1d,_0x3d6240){let _0x719047;return 0x3a==_0x316e1d&&(_0x719047=/^[a-zA-Z_0-9]+:/['exec'](_0x3c4b55['slice'](_0x3d6240+0x1,_0x3c4b55['end'])))?_0x3c4b55['addElement'](_0x3c4b55['elt']('Emoji',_0x3d6240,_0x3d6240+0x1+_0x719047[0x0]['length'])):-0x1;}}]},data=defineLanguageFacet({'commentTokens':{'block':{'open':'<!--','close':'-->'}}}),headingProp=new NodeProp(),commonmark=parser['configure']({'props':[foldNodeProp['add'](_0x400fbf=>!_0x400fbf['is']('Block')||_0x400fbf['is']('Document')||null!=isHeading(_0x400fbf)||isList(_0x400fbf)?void 0x0:(_0x56fae2,_0x4ba473)=>({'from':_0x4ba473['doc']['lineAt'](_0x56fae2['from'])['to'],'to':_0x56fae2['to']})),headingProp['add'](isHeading),indentNodeProp['add']({'Document':()=>null}),languageDataProp['add']({'Document':data})]});function isHeading(_0x580316){let _0x4c9091=/^(?:ATX|Setext)Heading(\d)$/['exec'](_0x580316['name']);return _0x4c9091?+_0x4c9091[0x1]:void 0x0;}function isList(_0x4ebdd2){return'OrderedList'==_0x4ebdd2['name']||'BulletList'==_0x4ebdd2['name'];}function findSectionEnd(_0x4ab96d,_0x5550be){let _0x4ebd11=_0x4ab96d;for(;;){let _0x236874,_0x485428=_0x4ebd11['nextSibling'];if(!_0x485428||null!=(_0x236874=isHeading(_0x485428['type']))&&_0x236874<=_0x5550be)break;_0x4ebd11=_0x485428;}return _0x4ebd11['to'];}const headerIndent=foldService['of']((_0x1a56eb,_0x4c543c,_0xa5edf8)=>{for(let _0x4b272e=syntaxTree(_0x1a56eb)['resolveInner'](_0xa5edf8,-0x1);_0x4b272e&&!(_0x4b272e['from']<_0x4c543c);_0x4b272e=_0x4b272e['parent']){let _0x244ec0=_0x4b272e['type']['prop'](headingProp);if(null==_0x244ec0)continue;let _0x1dcb1d=findSectionEnd(_0x4b272e,_0x244ec0);if(_0x1dcb1d>_0xa5edf8)return{'from':_0xa5edf8,'to':_0x1dcb1d};}return null;});function mkLang(_0x194dcc){return new Language(data,_0x194dcc,[headerIndent],'markdown');}const commonmarkLanguage=mkLang(commonmark),extended=commonmark['configure']([GFM,Subscript,Superscript,Emoji,{'props':[foldNodeProp['add']({'Table':(_0x40294,_0x3dae0c)=>({'from':_0x3dae0c['doc']['lineAt'](_0x40294['from'])['to'],'to':_0x40294['to']})})]}]),markdownLanguage=mkLang(extended);function getCodeParser(_0x3c49ae,_0x4c1463){return _0x5890a8=>{if(_0x5890a8&&_0x3c49ae){let _0x26861a=null;if(_0x5890a8=/\S*/['exec'](_0x5890a8)[0x0],_0x26861a='function'==typeof _0x3c49ae?_0x3c49ae(_0x5890a8):LanguageDescription['matchLanguageName'](_0x3c49ae,_0x5890a8,!0x0),_0x26861a instanceof LanguageDescription)return _0x26861a['support']?_0x26861a['support']['language']['parser']:ParseContext['getSkippingParser'](_0x26861a['load']());if(_0x26861a)return _0x26861a['parser'];}return _0x4c1463?_0x4c1463['parser']:null;};}class Context{constructor(_0x5a895c,_0x37b7da,_0x1590fe,_0x4d72ce,_0x25db5a,_0xf20138,_0x16e360){this['node']=_0x5a895c,this['from']=_0x37b7da,this['to']=_0x1590fe,this['spaceBefore']=_0x4d72ce,this['spaceAfter']=_0x25db5a,this['type']=_0xf20138,this['item']=_0x16e360;}['blank'](_0x498670,_0x6ffa4c=!0x0){let _0xd5a0aa=this['spaceBefore']+('Blockquote'==this['node']['name']?'>':'');if(null!=_0x498670){for(;_0xd5a0aa['length']<_0x498670;)_0xd5a0aa+='\x20';return _0xd5a0aa;}for(let _0x312917=this['to']-this['from']-_0xd5a0aa['length']-this['spaceAfter']['length'];_0x312917>0x0;_0x312917--)_0xd5a0aa+='\x20';return _0xd5a0aa+(_0x6ffa4c?this['spaceAfter']:'');}['marker'](_0x245607,_0x4452a1){let _0x4c91dc='OrderedList'==this['node']['name']?String(+itemNumber(this['item'],_0x245607)[0x2]+_0x4452a1):'';return this['spaceBefore']+_0x4c91dc+this['type']+this['spaceAfter'];}}function getContext(_0x3bbfeb,_0x33ffac){let _0x4bb892=[],_0xf53129=[];for(let _0x1fbe0f=_0x3bbfeb;_0x1fbe0f;_0x1fbe0f=_0x1fbe0f['parent']){if('FencedCode'==_0x1fbe0f['name'])return _0xf53129;'ListItem'!=_0x1fbe0f['name']&&'Blockquote'!=_0x1fbe0f['name']||_0x4bb892['push'](_0x1fbe0f);}for(let _0x1d76d0=_0x4bb892['length']-0x1;_0x1d76d0>=0x0;_0x1d76d0--){let _0x579182,_0x25f107=_0x4bb892[_0x1d76d0],_0x5ecaab=_0x33ffac['lineAt'](_0x25f107['from']),_0x5ce137=_0x25f107['from']-_0x5ecaab['from'];if('Blockquote'==_0x25f107['name']&&(_0x579182=/^ *>( ?)/['exec'](_0x5ecaab['text']['slice'](_0x5ce137))))_0xf53129['push'](new Context(_0x25f107,_0x5ce137,_0x5ce137+_0x579182[0x0]['length'],'',_0x579182[0x1],'>',null));else{if('ListItem'==_0x25f107['name']&&'OrderedList'==_0x25f107['parent']['name']&&(_0x579182=/^( *)\d+([.)])( *)/['exec'](_0x5ecaab['text']['slice'](_0x5ce137)))){let _0x279e7e=_0x579182[0x3],_0x3a4713=_0x579182[0x0]['length'];_0x279e7e['length']>=0x4&&(_0x279e7e=_0x279e7e['slice'](0x0,_0x279e7e['length']-0x4),_0x3a4713-=0x4),_0xf53129['push'](new Context(_0x25f107['parent'],_0x5ce137,_0x5ce137+_0x3a4713,_0x579182[0x1],_0x279e7e,_0x579182[0x2],_0x25f107));}else{if('ListItem'==_0x25f107['name']&&'BulletList'==_0x25f107['parent']['name']&&(_0x579182=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/['exec'](_0x5ecaab['text']['slice'](_0x5ce137)))){let _0x5e7bef=_0x579182[0x4],_0x18d294=_0x579182[0x0]['length'];_0x5e7bef['length']>0x4&&(_0x5e7bef=_0x5e7bef['slice'](0x0,_0x5e7bef['length']-0x4),_0x18d294-=0x4);let _0x4097af=_0x579182[0x2];_0x579182[0x3]&&(_0x4097af+=_0x579182[0x3]['replace'](/[xX]/,'\x20')),_0xf53129['push'](new Context(_0x25f107['parent'],_0x5ce137,_0x5ce137+_0x18d294,_0x579182[0x1],_0x5e7bef,_0x4097af,_0x25f107));}}}}return _0xf53129;}function itemNumber(_0x455066,_0x32233f){return/^(\s*)(\d+)(?=[.)])/['exec'](_0x32233f['sliceString'](_0x455066['from'],_0x455066['from']+0xa));}function renumberList(_0x7b3837,_0x2090de,_0x51d432,_0x396b7f=0x0){for(let _0x53c520=-0x1,_0x5395f8=_0x7b3837;;){if('ListItem'==_0x5395f8['name']){let _0xef1aa5=itemNumber(_0x5395f8,_0x2090de),_0xbdfddd=+_0xef1aa5[0x2];if(_0x53c520>=0x0){if(_0xbdfddd!=_0x53c520+0x1)return;_0x51d432['push']({'from':_0x5395f8['from']+_0xef1aa5[0x1]['length'],'to':_0x5395f8['from']+_0xef1aa5[0x0]['length'],'insert':String(_0x53c520+0x2+_0x396b7f)});}_0x53c520=_0xbdfddd;}let _0x12abd8=_0x5395f8['nextSibling'];if(!_0x12abd8)break;_0x5395f8=_0x12abd8;}}function normalizeIndent(_0x305586,_0x19d845){let _0x5613bf=/^[ \t]*/['exec'](_0x305586)[0x0]['length'];if(!_0x5613bf||'\x09'!=_0x19d845['facet'](indentUnit))return _0x305586;let _0x329700='';for(let _0x392d36=countColumn(_0x305586,0x4,_0x5613bf);_0x392d36>0x0;)_0x392d36>=0x4?(_0x329700+='\x09',_0x392d36-=0x4):(_0x329700+='\x20',_0x392d36--);return _0x329700+_0x305586['slice'](_0x5613bf);}const insertNewlineContinueMarkup=({state:_0x5bf036,dispatch:_0x3f498a})=>{let _0x34d4ea=syntaxTree(_0x5bf036),{doc:_0x33077d}=_0x5bf036,_0x3f69f0=null,_0x2903fb=_0x5bf036['changeByRange'](_0x49c9ef=>{if(!_0x49c9ef['empty']||!markdownLanguage['isActiveAt'](_0x5bf036,_0x49c9ef['from'],0x0))return _0x3f69f0={'range':_0x49c9ef};let _0x331199=_0x49c9ef['from'],_0x19327d=_0x33077d['lineAt'](_0x331199),_0x43e08c=getContext(_0x34d4ea['resolveInner'](_0x331199,-0x1),_0x33077d);for(;_0x43e08c['length']&&_0x43e08c[_0x43e08c['length']-0x1]['from']>_0x331199-_0x19327d['from'];)_0x43e08c['pop']();if(!_0x43e08c['length'])return _0x3f69f0={'range':_0x49c9ef};let _0x5aac95=_0x43e08c[_0x43e08c['length']-0x1];if(_0x5aac95['to']-_0x5aac95['spaceAfter']['length']>_0x331199-_0x19327d['from'])return _0x3f69f0={'range':_0x49c9ef};let _0x25c361=_0x331199>=_0x5aac95['to']-_0x5aac95['spaceAfter']['length']&&!/\S/['test'](_0x19327d['text']['slice'](_0x5aac95['to']));if(_0x5aac95['item']&&_0x25c361){let _0x4e0706=_0x5aac95['node']['firstChild'],_0x3b4930=_0x5aac95['node']['getChild']('ListItem','ListItem');if(_0x4e0706['to']>=_0x331199||_0x3b4930&&_0x3b4930['to']<_0x331199||_0x19327d['from']>0x0&&!/[^\s>]/['test'](_0x33077d['lineAt'](_0x19327d['from']-0x1)['text'])){let _0x514839,_0xfffba8=_0x43e08c['length']>0x1?_0x43e08c[_0x43e08c['length']-0x2]:null,_0x28aed9='';_0xfffba8&&_0xfffba8['item']?(_0x514839=_0x19327d['from']+_0xfffba8['from'],_0x28aed9=_0xfffba8['marker'](_0x33077d,0x1)):_0x514839=_0x19327d['from']+(_0xfffba8?_0xfffba8['to']:0x0);let _0x416824=[{'from':_0x514839,'to':_0x331199,'insert':_0x28aed9}];return'OrderedList'==_0x5aac95['node']['name']&&renumberList(_0x5aac95['item'],_0x33077d,_0x416824,-0x2),_0xfffba8&&'OrderedList'==_0xfffba8['node']['name']&&renumberList(_0xfffba8['item'],_0x33077d,_0x416824),{'range':EditorSelection['cursor'](_0x514839+_0x28aed9['length']),'changes':_0x416824};}{let _0x409486=blankLine(_0x43e08c,_0x5bf036,_0x19327d);return{'range':EditorSelection['cursor'](_0x331199+_0x409486['length']+0x1),'changes':{'from':_0x19327d['from'],'insert':_0x409486+_0x5bf036['lineBreak']}};}}if('Blockquote'==_0x5aac95['node']['name']&&_0x25c361&&_0x19327d['from']){let _0x2026d1=_0x33077d['lineAt'](_0x19327d['from']-0x1),_0x1d6641=/>\s*$/['exec'](_0x2026d1['text']);if(_0x1d6641&&_0x1d6641['index']==_0x5aac95['from']){let _0x220be4=_0x5bf036['changes']([{'from':_0x2026d1['from']+_0x1d6641['index'],'to':_0x2026d1['to']},{'from':_0x19327d['from']+_0x5aac95['from'],'to':_0x19327d['to']}]);return{'range':_0x49c9ef['map'](_0x220be4),'changes':_0x220be4};}}let _0x552d74=[];'OrderedList'==_0x5aac95['node']['name']&&renumberList(_0x5aac95['item'],_0x33077d,_0x552d74);let _0x31f3b6=_0x5aac95['item']&&_0x5aac95['item']['from']<_0x19327d['from'],_0x5a4d4a='';if(!_0x31f3b6||/^[\s\d.)\-+*>]*/['exec'](_0x19327d['text'])[0x0]['length']>=_0x5aac95['to']){for(let _0x49e3b7=0x0,_0x296ba4=_0x43e08c['length']-0x1;_0x49e3b7<=_0x296ba4;_0x49e3b7++)_0x5a4d4a+=_0x49e3b7!=_0x296ba4||_0x31f3b6?_0x43e08c[_0x49e3b7]['blank'](_0x49e3b7<_0x296ba4?countColumn(_0x19327d['text'],0x4,_0x43e08c[_0x49e3b7+0x1]['from'])-_0x5a4d4a['length']:null):_0x43e08c[_0x49e3b7]['marker'](_0x33077d,0x1);}let _0x2e1c9a=_0x331199;for(;_0x2e1c9a>_0x19327d['from']&&/\s/['test'](_0x19327d['text']['charAt'](_0x2e1c9a-_0x19327d['from']-0x1));)_0x2e1c9a--;return _0x5a4d4a=normalizeIndent(_0x5a4d4a,_0x5bf036),nonTightList(_0x5aac95['node'],_0x5bf036['doc'])&&(_0x5a4d4a=blankLine(_0x43e08c,_0x5bf036,_0x19327d)+_0x5bf036['lineBreak']+_0x5a4d4a),_0x552d74['push']({'from':_0x2e1c9a,'to':_0x331199,'insert':_0x5bf036['lineBreak']+_0x5a4d4a}),{'range':EditorSelection['cursor'](_0x2e1c9a+_0x5a4d4a['length']+0x1),'changes':_0x552d74};});return!_0x3f69f0&&(_0x3f498a(_0x5bf036['update'](_0x2903fb,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0);};function isMark(_0x1fff8b){return'QuoteMark'==_0x1fff8b['name']||'ListMark'==_0x1fff8b['name'];}function nonTightList(_0x2fbc98,_0x99b101){if('OrderedList'!=_0x2fbc98['name']&&'BulletList'!=_0x2fbc98['name'])return!0x1;let _0x28929b=_0x2fbc98['firstChild'],_0x57f571=_0x2fbc98['getChild']('ListItem','ListItem');if(!_0x57f571)return!0x1;let _0x5dba61=_0x99b101['lineAt'](_0x28929b['to']),_0xc35995=_0x99b101['lineAt'](_0x57f571['from']),_0x573eb1=/^[\s>]*$/['test'](_0x5dba61['text']);return _0x5dba61['number']+(_0x573eb1?0x0:0x1)<_0xc35995['number'];}function blankLine(_0x34e90a,_0x432fbe,_0x5cf7c8){let _0x70be52='';for(let _0x22ad60=0x0,_0x145ddd=_0x34e90a['length']-0x2;_0x22ad60<=_0x145ddd;_0x22ad60++)_0x70be52+=_0x34e90a[_0x22ad60]['blank'](_0x22ad60<_0x145ddd?countColumn(_0x5cf7c8['text'],0x4,Math['min'](_0x5cf7c8['text']['length'],_0x34e90a[_0x22ad60+0x1]['from']))-_0x70be52['length']:null,_0x22ad60<_0x145ddd);return normalizeIndent(_0x70be52,_0x432fbe);}function contextNodeForDelete(_0x5c1946,_0x58f773){let _0x276295=_0x5c1946['resolveInner'](_0x58f773,-0x1),_0x516a4a=_0x58f773;isMark(_0x276295)&&(_0x516a4a=_0x276295['from'],_0x276295=_0x276295['parent']);for(let _0x561e5c;_0x561e5c=_0x276295['childBefore'](_0x516a4a);)if(isMark(_0x561e5c))_0x516a4a=_0x561e5c['from'];else{if('OrderedList'!=_0x561e5c['name']&&'BulletList'!=_0x561e5c['name'])break;_0x276295=_0x561e5c['lastChild'],_0x516a4a=_0x276295['to'];}return _0x276295;}const deleteMarkupBackward=({state:_0x44349f,dispatch:_0x3801d3})=>{let _0x2342a1=syntaxTree(_0x44349f),_0x127117=null,_0x39a4ea=_0x44349f['changeByRange'](_0x1964cf=>{let _0x9ec1ae=_0x1964cf['from'],{doc:_0x4ed5db}=_0x44349f;if(_0x1964cf['empty']&&markdownLanguage['isActiveAt'](_0x44349f,_0x1964cf['from'])){let _0x1a10da=_0x4ed5db['lineAt'](_0x9ec1ae),_0x5a9663=getContext(contextNodeForDelete(_0x2342a1,_0x9ec1ae),_0x4ed5db);if(_0x5a9663['length']){let _0x589b83=_0x5a9663[_0x5a9663['length']-0x1],_0x38133c=_0x589b83['to']-_0x589b83['spaceAfter']['length']+(_0x589b83['spaceAfter']?0x1:0x0);if(_0x9ec1ae-_0x1a10da['from']>_0x38133c&&!/\S/['test'](_0x1a10da['text']['slice'](_0x38133c,_0x9ec1ae-_0x1a10da['from'])))return{'range':EditorSelection['cursor'](_0x1a10da['from']+_0x38133c),'changes':{'from':_0x1a10da['from']+_0x38133c,'to':_0x9ec1ae}};if(_0x9ec1ae-_0x1a10da['from']==_0x38133c&&(!_0x589b83['item']||_0x1a10da['from']<=_0x589b83['item']['from']||!/\S/['test'](_0x1a10da['text']['slice'](0x0,_0x589b83['to'])))){let _0x4efaeb=_0x1a10da['from']+_0x589b83['from'];if(_0x589b83['item']&&_0x589b83['node']['from']<_0x589b83['item']['from']&&/\S/['test'](_0x1a10da['text']['slice'](_0x589b83['from'],_0x589b83['to']))){let _0x3ca7c2=_0x589b83['blank'](countColumn(_0x1a10da['text'],0x4,_0x589b83['to'])-countColumn(_0x1a10da['text'],0x4,_0x589b83['from']));return _0x4efaeb==_0x1a10da['from']&&(_0x3ca7c2=normalizeIndent(_0x3ca7c2,_0x44349f)),{'range':EditorSelection['cursor'](_0x4efaeb+_0x3ca7c2['length']),'changes':{'from':_0x4efaeb,'to':_0x1a10da['from']+_0x589b83['to'],'insert':_0x3ca7c2}};}if(_0x4efaeb<_0x9ec1ae)return{'range':EditorSelection['cursor'](_0x4efaeb),'changes':{'from':_0x4efaeb,'to':_0x9ec1ae}};}}}return _0x127117={'range':_0x1964cf};});return!_0x127117&&(_0x3801d3(_0x44349f['update'](_0x39a4ea,{'scrollIntoView':!0x0,'userEvent':'delete'})),!0x0);},markdownKeymap=[{'key':'Enter','run':insertNewlineContinueMarkup},{'key':'Backspace','run':deleteMarkupBackward}],htmlNoMatch=html({'matchClosingTags':!0x1});function markdown(_0xe3e6b5={}){let {codeLanguages:_0x56234a,defaultCodeLanguage:_0x1d8c77,addKeymap:_0x585e19=!0x0,base:{parser:_0x27c1e1}=commonmarkLanguage,completeHTMLTags:_0x3c177e=!0x0,htmlTagLanguage:_0x156e25=htmlNoMatch}=_0xe3e6b5;if(!(_0x27c1e1 instanceof MarkdownParser))throw new RangeError('Base\x20parser\x20provided\x20to\x20`markdown`\x20should\x20be\x20a\x20Markdown\x20parser');let _0x105286,_0x4ec263=_0xe3e6b5['extensions']?[_0xe3e6b5['extensions']]:[],_0x5e5ccd=[_0x156e25['support']];_0x1d8c77 instanceof LanguageSupport?(_0x5e5ccd['push'](_0x1d8c77['support']),_0x105286=_0x1d8c77['language']):_0x1d8c77&&(_0x105286=_0x1d8c77);let _0x1a8681=_0x56234a||_0x105286?getCodeParser(_0x56234a,_0x105286):void 0x0;_0x4ec263['push'](parseCode({'codeParser':_0x1a8681,'htmlParser':_0x156e25['language']['parser']})),_0x585e19&&_0x5e5ccd['push'](Prec['high'](keymap['of'](markdownKeymap)));let _0x45f52d=mkLang(_0x27c1e1['configure'](_0x4ec263));return _0x3c177e&&_0x5e5ccd['push'](_0x45f52d['data']['of']({'autocomplete':htmlTagCompletion})),new LanguageSupport(_0x45f52d,_0x5e5ccd);}function htmlTagCompletion(_0x26217e){let {state:_0x55a740,pos:_0x36b1d5}=_0x26217e,_0x398d5e=/<[:\-\.\w\u00b7-\uffff]*$/['exec'](_0x55a740['sliceDoc'](_0x36b1d5-0x19,_0x36b1d5));if(!_0x398d5e)return null;let _0x439b20=syntaxTree(_0x55a740)['resolveInner'](_0x36b1d5,-0x1);for(;_0x439b20&&!_0x439b20['type']['isTop'];){if('CodeBlock'==_0x439b20['name']||'FencedCode'==_0x439b20['name']||'ProcessingInstructionBlock'==_0x439b20['name']||'CommentBlock'==_0x439b20['name']||'Link'==_0x439b20['name']||'Image'==_0x439b20['name'])return null;_0x439b20=_0x439b20['parent'];}return{'from':_0x36b1d5-_0x398d5e[0x0]['length'],'to':_0x36b1d5,'options':htmlTagCompletions(),'validFor':/^<[:\-\.\w\u00b7-\uffff]*$/};}let _tagCompletions=null;function htmlTagCompletions(){if(_tagCompletions)return _tagCompletions;let _0x1ac25a=htmlCompletionSource(new CompletionContext(EditorState['create']({'extensions':htmlNoMatch}),0x0,!0x0));return _tagCompletions=_0x1ac25a?_0x1ac25a['options']:[];}const chalky='#e5c07b',coral='#e06c75',cyan='#56b6c2',invalid='#ffffff',ivory='#abb2bf',stone='#7d8799',malibu='#61afef',sage='#98c379',whiskey='#d19a66',violet='#c678dd',darkBackground='#21252b',highlightBackground='#2c313a',background='#282c34',tooltipBackground='#353a42',selection='#3E4451',cursor='#528bff',oneDarkTheme=EditorView['theme']({'&':{'color':ivory,'backgroundColor':background},'.cm-content':{'caretColor':cursor},'.cm-cursor,\x20.cm-dropCursor':{'borderLeftColor':cursor},'&.cm-focused\x20>\x20.cm-scroller\x20>\x20.cm-selectionLayer\x20.cm-selectionBackground,\x20.cm-selectionBackground,\x20.cm-content\x20::selection':{'backgroundColor':selection},'.cm-panels':{'backgroundColor':darkBackground,'color':ivory},'.cm-panels.cm-panels-top':{'borderBottom':'2px\x20solid\x20black'},'.cm-panels.cm-panels-bottom':{'borderTop':'2px\x20solid\x20black'},'.cm-searchMatch':{'backgroundColor':'#72a1ff59','outline':'1px\x20solid\x20#457dff'},'.cm-searchMatch.cm-searchMatch-selected':{'backgroundColor':'#6199ff2f'},'.cm-activeLine':{'backgroundColor':'#6699ff0b'},'.cm-selectionMatch':{'backgroundColor':'#aafe661a'},'&.cm-focused\x20.cm-matchingBracket,\x20&.cm-focused\x20.cm-nonmatchingBracket':{'backgroundColor':'#bad0f847'},'.cm-gutters':{'backgroundColor':background,'color':stone,'border':'none'},'.cm-activeLineGutter':{'backgroundColor':highlightBackground},'.cm-foldPlaceholder':{'backgroundColor':'transparent','border':'none','color':'#ddd'},'.cm-tooltip':{'border':'none','backgroundColor':tooltipBackground},'.cm-tooltip\x20.cm-tooltip-arrow:before':{'borderTopColor':'transparent','borderBottomColor':'transparent'},'.cm-tooltip\x20.cm-tooltip-arrow:after':{'borderTopColor':tooltipBackground,'borderBottomColor':tooltipBackground},'.cm-tooltip-autocomplete':{'&\x20>\x20ul\x20>\x20li[aria-selected]':{'backgroundColor':highlightBackground,'color':ivory}}},{'dark':!0x0}),oneDarkHighlightStyle=HighlightStyle['define']([{'tag':tags$1['keyword'],'color':violet},{'tag':[tags$1['name'],tags$1['deleted'],tags$1['character'],tags$1['propertyName'],tags$1['macroName']],'color':coral},{'tag':[tags$1['function'](tags$1['variableName']),tags$1['labelName']],'color':malibu},{'tag':[tags$1['color'],tags$1['constant'](tags$1['name']),tags$1['standard'](tags$1['name'])],'color':whiskey},{'tag':[tags$1['definition'](tags$1['name']),tags$1['separator']],'color':ivory},{'tag':[tags$1['typeName'],tags$1['className'],tags$1['number'],tags$1['changed'],tags$1['annotation'],tags$1['modifier'],tags$1['self'],tags$1['namespace']],'color':chalky},{'tag':[tags$1['operator'],tags$1['operatorKeyword'],tags$1['url'],tags$1['escape'],tags$1['regexp'],tags$1['link'],tags$1['special'](tags$1['string'])],'color':cyan},{'tag':[tags$1['meta'],tags$1['comment']],'color':stone},{'tag':tags$1['strong'],'fontWeight':'bold'},{'tag':tags$1['emphasis'],'fontStyle':'italic'},{'tag':tags$1['strikethrough'],'textDecoration':'line-through'},{'tag':tags$1['link'],'color':stone,'textDecoration':'underline'},{'tag':tags$1['heading'],'fontWeight':'bold','color':coral},{'tag':[tags$1['atom'],tags$1['bool'],tags$1['special'](tags$1['variableName'])],'color':whiskey},{'tag':[tags$1['processingInstruction'],tags$1['string'],tags$1['inserted']],'color':sage},{'tag':tags$1['invalid'],'color':invalid}]),oneDark=[oneDarkTheme,syntaxHighlighting(oneDarkHighlightStyle)];function createCodeMirrorEditor(_0x5c2782){const _0xcc8407=getDefaultExtensions(),_0x11492b=new Compartment();_0xcc8407['push'](_0x11492b['of'](EditorView['editable']['of'](!0x0))),'html'===_0x5c2782['syntaxLanguage']?_0xcc8407['push'](html()):_0xcc8407['push'](markdown());const _0x24dedb=normalizeTheme(_0x5c2782['theme']);_0x24dedb&&_0xcc8407['push'](_0x24dedb),_0xcc8407['push'](...getKeybindings());const _0x27e565=new EditorView({'extensions':_0xcc8407,'parent':_0x5c2782['parent']});return toggleTabFocusMode(_0x27e565),{'focus':()=>{_0x27e565['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x27e565['focus']();},'getData':()=>_0x27e565['state']['doc']['toString'](),'setData':_0x234fe6=>{_0x27e565['dispatch']({'changes':{'from':0x0,'to':_0x27e565['state']['doc']['length'],'insert':_0x234fe6},'annotations':Transaction['addToHistory']['of'](!0x1)});},'setReadOnly':_0x50c5ab=>{_0x27e565['dispatch']({'effects':[_0x11492b['reconfigure'](EditorView['editable']['of'](!_0x50c5ab))]});},'destroy':()=>{_0x27e565['destroy']();},'instance':_0x27e565};}function normalizeTheme(_0x37f566){return _0x37f566&&'default'!==_0x37f566?'dark'===_0x37f566?oneDark:_0x37f566:null;}function getKeybindings(){return[keymap['of']([...closeBracketsKeymap,...defaultKeymap,...historyKeymap,...foldKeymap,...completionKeymap,{'key':'Tab','run':indentMore,'shift':indentLess,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':redo,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':redo,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':undo,'preventDefault':!0x0,'stopPropagation':!0x0}])];}function getDefaultExtensions(){return[EditorView['lineWrapping'],autocompletion(),bracketMatching(),closeBrackets(),crosshairCursor(),drawSelection(),dropCursor(),lineNumbers(),foldGutter(),highlightActiveLine(),highlightActiveLineGutter(),highlightSpecialChars(),history(),indentOnInput(),rectangularSelection(),syntaxHighlighting(defaultHighlightStyle,{'fallback':!0x0})];}class CodeEditorView extends View{['_codeEditorApi']=null;['_options'];constructor(_0x4a73f2,_0x10a180){super(_0x4a73f2),this['_options']=_0x10a180,this['set']('isReadOnly',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-code-editor'],'tabindex':-0x1}});}['render'](){super['render'](),this['_codeEditorApi']=createCodeMirrorEditor({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x56b680,_0x7ccae8,_0x5cb74a)=>{this['setReadOnly'](_0x5cb74a);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x23ea4c){this['_codeEditorApi']['setData'](_0x23ea4c);}['setReadOnly'](_0x69176b){this['_codeEditorApi']['setReadOnly'](_0x69176b);}}const COMMAND_FORCE_DISABLE_ID='SourceEditingEnhancedMode';class EditSourceCommand extends _0x142ccd{constructor(_0xfa1d2a){super(_0xfa1d2a),this['affectsData']=!0x1,this['editor']['plugins']['get'](PendingActions)['on']('change:hasAny',(_0x328aed,_0x225f1a,_0x31e228)=>{_0x31e228?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x37e23b=this['editor'];for(const _0x58f181 of _0x37e23b['commands']['names']())['replaceSource','editSource']['includes'](_0x58f181)||_0x37e23b['commands']['get'](_0x58f181)['forceDisabled'](COMMAND_FORCE_DISABLE_ID);}['_enableCommands'](){const _0x15d788=this['editor'];for(const _0x3856c3 of _0x15d788['commands']['commands']())_0x3856c3['clearForceDisabled'](COMMAND_FORCE_DISABLE_ID);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4c942f=this['editor'],_0x48a252=_0x4c942f['locale'],_0x2a3907=_0x4c942f['plugins']['get']('Dialog'),_0x47124c=getActiveRootName(_0x4c942f),_0x5b8951=formatSource(_0x4c942f['data']['get']({'rootName':_0x47124c})),_0x1a9f0c=new CodeEditorView(_0x48a252,{'syntaxLanguage':_0x4c942f['plugins']['has']('Markdown')?'markdown':'html','theme':_0x4c942f['config']['get']('sourceEditingEnhanced.theme')});let _0x4b4b91=!0x0;const _0x572a63=_0x3bd04a=>{if(!_0x4b4b91)return;return unformatSource(_0x1a9f0c['getData']())!==unformatSource(_0x5b8951)?window['confirm'](getTranslation$3(_0x48a252,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x3bd04a['stop']():void 0x0;};_0x2a3907['show']({'id':'sourceEditingEnhanced','title':getTranslation$3(_0x48a252,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x1a9f0c,'actionButtons':[{'label':getTranslation$3(_0x48a252,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x2a3907['hide']();}},{'label':getTranslation$3(_0x48a252,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x372ddb=unformatSource(_0x1a9f0c['getData']())!==unformatSource(_0x5b8951);(_0x372ddb&&_0x4c942f['execute']('replaceSource',_0x1a9f0c['getData']()),_0x4b4b91=!0x1,_0x2a3907['hide'](),_0x372ddb&&'editables'in _0x4c942f['ui']['view'])&&_0x4c942f['ui']['view']['editables'][_0x47124c]['element']['focus']();},'onCreate':_0x2d2bd7=>{_0x2d2bd7['set']('isEnabled',!_0x4c942f['isReadOnly']),_0x2d2bd7['bind']('isEnabled')['to'](_0x4c942f,'isReadOnly',this,'isEnabled',(_0x363e61,_0x266f20)=>!_0x363e61&&_0x266f20);}}],'onHide':()=>{this['_enableCommands'](),_0x2a3907['off']('hide',_0x572a63),_0x1a9f0c['destroy']();},'onShow':()=>{_0x1a9f0c['bind']('isReadOnly')['to'](_0x4c942f,'isReadOnly',this,'isEnabled',(_0x4507d9,_0x42317c)=>_0x4507d9||!_0x42317c),_0x1a9f0c['setData'](_0x5b8951),_0x1a9f0c['focus'](),_0x2a3907['on']('hide',_0x572a63,{'priority':'highest'}),this['_disableCommands']();}});}}class SourceEditingEnhancedUI extends Plugin{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[PendingActions];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x562755=this['editor'],_0x434c1d=_0x562755['locale'],_0x5eb782=new EditSourceCommand(_0x562755);_0x562755['commands']['add']('editSource',_0x5eb782),_0x562755['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x39dfc5=this['_createButton'](ButtonView,_0x5eb782);return _0x39dfc5['set']({'label':getTranslation$3(_0x434c1d,'Source'),'icon':IconSource,'tooltip':getTranslation$3(_0x434c1d,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x39dfc5;}),_0x562755['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x197678=this['_createButton'](MenuBarMenuListItemButtonView,_0x5eb782,!0x0);return _0x197678['set']({'label':getTranslation$3(_0x434c1d,'Edit\x20source\x20modal\x20label'),'icon':IconSource,'role':'menuitemcheckbox'}),_0x197678;}),this['_registerKeybindings']();}['afterInit'](){checkLicense$3(this);}['_createButton'](_0x150b26,_0x1c3d28,_0x1b4d55=!0x1){const _0x30783e=new _0x150b26(this['editor']['locale']);return _0x30783e['set']({'withText':_0x1b4d55,'isToggleable':!0x1}),_0x30783e['bind']('isEnabled')['to'](_0x1c3d28,'isEnabled'),this['listenTo'](_0x30783e,'execute',()=>_0x1c3d28['execute']()),_0x30783e;}['_registerKeybindings'](){const _0x31c290=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':getTranslation$3(_0x31c290,'Source\x20Editing\x20Enhanced')});const _0x132588=env['isMac']||env['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':getTranslation$3(_0x31c290,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':getTranslation$3(_0x31c290,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':getTranslation$3(_0x31c290,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':getTranslation$3(_0x31c290,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':getTranslation$3(_0x31c290,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':getTranslation$3(_0x31c290,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':getTranslation$3(_0x31c290,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x132588?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':getTranslation$3(_0x31c290,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':getTranslation$3(_0x31c290,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':getTranslation$3(_0x31c290,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':getTranslation$3(_0x31c290,'Select\x20line'),'keystroke':_0x132588?'Ctrl!+L':'Alt+L'},{'label':getTranslation$3(_0x31c290,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x132588?'Alt+Shift+M':'Ctrl+M'},{'label':getTranslation$3(_0x31c290,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':getTranslation$3(_0x31c290,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':getTranslation$3(_0x31c290,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':getTranslation$3(_0x31c290,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':getTranslation$3(_0x31c290,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x132588?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}async function checkLicense$3(_0x3093ca){const _0x5367ef=_0x489a73([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0x4c51fc=window[_0x489a73([0x44,0x61,0x74,0x65])][_0x489a73([0x6e,0x6f,0x77])](),_0xe7b20e=_0x3093ca[_0x489a73([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x329b4d=new window[(_0x489a73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51a375=>{_0xe7b20e[_0x489a73([0x6f,0x6e,0x63,0x65])](_0x489a73([0x72,0x65,0x61,0x64,0x79]),_0x51a375);}),_0x4a5b95={[_0x489a73([0x6b,0x74,0x79])]:_0x489a73([0x45,0x43]),[_0x489a73([0x75,0x73,0x65])]:_0x489a73([0x73,0x69,0x67]),[_0x489a73([0x63,0x72,0x76])]:_0x489a73([0x50,0x2d,0x32,0x35,0x36]),[_0x489a73([0x78])]:_0x489a73([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x489a73([0x79])]:_0x489a73([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x489a73([0x61,0x6c,0x67])]:_0x489a73([0x45,0x53,0x32,0x35,0x36])},_0x3da181=_0xe7b20e[_0x489a73([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x489a73([0x67,0x65,0x74])](_0x489a73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x690c37=await(async function(){let _0x50adb6,_0x56d186=null,_0x4e42a2=null;try{if(_0x3da181==_0x489a73([0x47,0x50,0x4c]))return _0x489a73([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50adb6=(function(){const _0x55267f=_0x3da181[_0x489a73([0x73,0x70,0x6c,0x69,0x74])](_0x489a73([0x2e]));if(0x3!=_0x55267f[_0x489a73([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0xbf58d=_0x55267f[0x1];return _0x3af51e(_0xbf58d);function _0x3af51e(_0x233a27){const _0x18312e=_0x76bbcf(_0x233a27);return _0x18312e&&_0x4828b9()?_0x18312e:null;function _0x4828b9(){const _0x2fcc6b=_0x18312e[_0x489a73([0x6a,0x74,0x69])],_0x55bceb=window[_0x489a73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fcc6b[_0x489a73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2fcc6b[_0x489a73([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c3122={..._0x18312e,[_0x489a73([0x6a,0x74,0x69])]:_0x2fcc6b[_0x489a73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2fcc6b[_0x489a73([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c3122[_0x489a73([0x76,0x63])],_0x38582a(_0x5c3122)==_0x55bceb;}}}()),!_0x50adb6)return _0x489a73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x50adb6[_0x489a73([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e42a2=function(_0x25dff0,_0x27ef99){return new window[(_0x489a73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c7a05=>{if(_0x2e718b())return _0x3c7a05(_0x489a73([0x56,0x61,0x6c,0x69,0x64]));_0x445db4(),_0xe7b20e[_0x489a73([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x489a73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xaea36f=!0x1;const _0x282e11=uid();function _0x45f15f(_0x2c2b01){return!!_0x2c2b01&&(typeof _0x2c2b01===_0x489a73([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2c2b01===_0x489a73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2c2b01[_0x489a73([0x74,0x68,0x65,0x6e])]===_0x489a73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2c2b01[_0x489a73([0x63,0x61,0x74,0x63,0x68])]===_0x489a73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x44a824(_0x478b6b){_0x247d78(_0x478b6b)[_0x489a73([0x74,0x68,0x65,0x6e])](_0x2b645b=>{if(!_0x2b645b||_0x2b645b[_0x489a73([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x489a73([0x6f,0x6b]))return _0x489a73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x314f73(_0x38582a(_0x282e11+_0x27ef99))!=_0x2b645b[_0x489a73([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x489a73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x489a73([0x56,0x61,0x6c,0x69,0x64]);})[_0x489a73([0x74,0x68,0x65,0x6e])](_0x2c437f=>(_0x49e6c0(),_0x2c437f),()=>{const _0x842766=_0x430c2b();return null==_0x842766?(_0x49e6c0(),_0x489a73([0x56,0x61,0x6c,0x69,0x64])):_0x489a73(_0x4c51fc-_0x842766>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x489a73([0x74,0x68,0x65,0x6e])](_0x3c7a05)[_0x489a73([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c7a05(_0x489a73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1717a1=0x36ee80;function _0x49e6c0(){const _0x29312c=_0x489a73([0x6c,0x6c,0x63,0x74,0x2d])+_0x314f73(_0x38582a(_0x25dff0)),_0x2bbd89=_0x55d7b3(_0x314f73(window[_0x489a73([0x4d,0x61,0x74,0x68])][_0x489a73([0x63,0x65,0x69,0x6c])](_0x4c51fc/_0x1717a1)));window[_0x489a73([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x489a73([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29312c,_0x2bbd89);}function _0x430c2b(){const _0x1d4fc7=_0x489a73([0x6c,0x6c,0x63,0x74,0x2d])+_0x314f73(_0x38582a(_0x25dff0)),_0x37ff63=window[_0x489a73([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x489a73([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d4fc7);return _0x37ff63?window[_0x489a73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55d7b3(_0x37ff63),0x10)*_0x1717a1:null;}function _0x247d78(_0x178211){return new window[(_0x489a73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d7886,_0x51d97e)=>{_0x178211[_0x489a73([0x74,0x68,0x65,0x6e])](_0x5d7886,_0x51d97e),window[_0x489a73([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51d97e,0x1d4c0);});}}_0xe7b20e[_0x489a73([0x6f,0x6e])](_0x489a73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4bd5ce,_0xf3db05)=>{if(_0xf3db05[0x0]!=_0x25dff0)return _0x3c7a05(_0x489a73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xf3db05[0x1]={..._0xf3db05[0x1],[_0x489a73([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x282e11};},{[_0x489a73([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x489a73([0x68,0x69,0x67,0x68])}),_0xe7b20e[_0x489a73([0x6f,0x6e])](_0x489a73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1d1693=>{_0x45f15f(_0x1d1693[_0x489a73([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xaea36f=!0x0,_0x44a824(_0x1d1693[_0x489a73([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x489a73([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x489a73([0x6c,0x6f,0x77])}),_0x329b4d[_0x489a73([0x74,0x68,0x65,0x6e])](()=>{_0xaea36f||_0x3c7a05(_0x489a73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e718b(){return _0xe7b20e[_0x489a73([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x489a73([0x76,0x69,0x65,0x77])][_0x489a73([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x489a73([0x61,0x75,0x74,0x6f]);}function _0x445db4(){_0xe7b20e[_0x489a73([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x489a73([0x76,0x69,0x65,0x77])][_0x489a73([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x489a73([0x61,0x75,0x74,0x6f]);}}(_0x50adb6[_0x489a73([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50adb6[_0x489a73([0x6a,0x74,0x69])]));const _0x5f5cd8=await(async function(){let _0x27a22f=!0x0;try{const _0x4a238b=_0x3da181[_0x489a73([0x73,0x70,0x6c,0x69,0x74])](_0x489a73([0x2e])),[_0x5d53df,_0x8e4ed2,_0x5181e9]=_0x4a238b;return _0x391f94(_0x5d53df),await _0x14a629(_0x5d53df,_0x8e4ed2,_0x5181e9),_0x27a22f;}catch{return!0x1;}function _0x391f94(_0x12c9eb){const _0x1a65f9=_0x76bbcf(_0x12c9eb);_0x1a65f9&&_0x1a65f9[_0x489a73([0x61,0x6c,0x67])]==_0x489a73([0x45,0x53,0x32,0x35,0x36])||(_0x27a22f=!0x1);}async function _0x14a629(_0x35bc0e,_0x4f43b8,_0x5cc9a2){const _0x1cf50b=window[_0x489a73([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x489a73([0x66,0x72,0x6f,0x6d])](_0x4bad97(_0x5cc9a2),_0x29d906=>_0x29d906[_0x489a73([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x362e4f=new window[(_0x489a73([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x489a73([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35bc0e+_0x489a73([0x2e])+_0x4f43b8),_0x59103d=window[_0x489a73([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x489a73([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59103d)return;const _0x1fa4b4=await _0x59103d[_0x489a73([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x489a73([0x6a,0x77,0x6b]),_0x4a5b95,{[_0x489a73([0x6e,0x61,0x6d,0x65])]:_0x489a73([0x45,0x43,0x44,0x53,0x41]),[_0x489a73([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x489a73([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x489a73([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59103d[_0x489a73([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x489a73([0x6e,0x61,0x6d,0x65])]:_0x489a73([0x45,0x43,0x44,0x53,0x41]),[_0x489a73([0x68,0x61,0x73,0x68])]:{[_0x489a73([0x6e,0x61,0x6d,0x65])]:_0x489a73([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1fa4b4,_0x1cf50b,_0x362e4f)||(_0x27a22f=!0x1);}}());return _0x5f5cd8?(function(){const _0x2a2acf=_0x50adb6[_0x489a73([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2a2acf)return!0x1;if(_0x2a2acf[_0x489a73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489a73([0x2a])))return!0x0;if(_0x2a2acf[_0x489a73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489a73([0x53,0x45,0x45])))return!0x0;return!0x1;}())?(function(){const _0x268c53=[_0x489a73([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x489a73([0x74,0x72,0x69,0x61,0x6c])][_0x489a73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50adb6[_0x489a73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c51fc/0x3e8:0x68f03580;return _0x50adb6[_0x489a73([0x65,0x78,0x70])]<_0x268c53;}())?_0x489a73([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x225936=_0x50adb6[_0x489a73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x225936||0x0==_0x225936[_0x489a73([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1fd66d}=new URL(window[_0x489a73([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x225936[_0x489a73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fd66d))return!0x0;const _0x58f415=_0x1fd66d[_0x489a73([0x73,0x70,0x6c,0x69,0x74])](_0x489a73([0x2e]));return _0x225936[_0x489a73([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7303c4=>_0x7303c4[_0x489a73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489a73([0x2a])))[_0x489a73([0x6d,0x61,0x70])](_0x4559dd=>_0x4559dd[_0x489a73([0x73,0x70,0x6c,0x69,0x74])](_0x489a73([0x2e])))[_0x489a73([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xdc3727=>_0xdc3727[_0x489a73([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x58f415[_0x489a73([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x489a73([0x6d,0x61,0x70])](_0x14926c=>Array(_0x58f415[_0x489a73([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x14926c[_0x489a73([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x489a73([0x66,0x69,0x6c,0x6c])](_0x14926c[0x0]===_0x489a73([0x2a])?_0x489a73([0x2a]):'')[_0x489a73([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x14926c))[_0x489a73([0x73,0x6f,0x6d,0x65])](_0x15b4c6=>_0x58f415[_0x489a73([0x65,0x76,0x65,0x72,0x79])]((_0x1c6eb7,_0x5711fd)=>_0x15b4c6[_0x5711fd]===_0x1c6eb7||_0x15b4c6[_0x5711fd]===_0x489a73([0x2a])));}())?(_0x50adb6[_0x489a73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x489a73([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x56d186=_0x1459fd(_0x489a73([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50adb6[_0x489a73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x489a73([0x74,0x72,0x69,0x61,0x6c])&&(_0x56d186=_0x1459fd(_0x489a73([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x56d186&&_0x4e42a2)return new window[(_0x489a73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56c506,_0x345c3b)=>{_0x56d186[_0x489a73([0x74,0x68,0x65,0x6e])](_0x56c506,_0x345c3b),_0x4e42a2[_0x489a73([0x74,0x68,0x65,0x6e])](_0x2a3059=>{_0x2a3059!=_0x489a73([0x56,0x61,0x6c,0x69,0x64])&&_0x56c506(_0x2a3059);},_0x345c3b);});return _0x56d186||_0x4e42a2||_0x489a73([0x56,0x61,0x6c,0x69,0x64]);}())):_0x489a73([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x489a73([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x489a73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x489a73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x1459fd(_0x12001a){const _0x3d7ee4=[new window[(_0x489a73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27e2bc=>setTimeout(_0x27e2bc,0x93ecc)),_0x329b4d[_0x489a73([0x74,0x68,0x65,0x6e])](()=>new window[(_0x489a73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x566ef4=>{let _0x1dea1b=0x0;_0xe7b20e[_0x489a73([0x6d,0x6f,0x64,0x65,0x6c])][_0x489a73([0x6f,0x6e])](_0x489a73([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x332bc5,_0x1213a2)=>{_0x1213a2[0x0][_0x489a73([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1dea1b++,0x1f8==_0x1dea1b&&(_0x566ef4(),_0x332bc5[_0x489a73([0x6f,0x66,0x66])]());});}))];return window[_0x489a73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x489a73([0x72,0x61,0x63,0x65])](_0x3d7ee4)[_0x489a73([0x74,0x68,0x65,0x6e])](()=>_0x12001a);}function _0x76bbcf(_0x111089){return _0x111089[_0x489a73([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x489a73([0x65,0x79]))?JSON[_0x489a73([0x70,0x61,0x72,0x73,0x65])](_0x4bad97(_0x111089)):null;}function _0x4bad97(_0x4a2ab4){return window[_0x489a73([0x61,0x74,0x6f,0x62])](_0x4a2ab4[_0x489a73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x489a73([0x2b]))[_0x489a73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x489a73([0x2f])));}function _0x38582a(_0x5dfd90){let _0x4962ba=0x1505;function _0x4cdf7c(_0x5198be){for(let _0x4f6755=0x0;_0x4f6755<_0x5198be[_0x489a73([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f6755++){const _0x1010c1=_0x5198be[_0x489a73([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f6755);_0x4962ba=(_0x4962ba<<0x5)+_0x4962ba+_0x1010c1,_0x4962ba&=_0x4962ba;}}return function _0x2d7b74(_0x1cdbfc){Array[_0x489a73([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1cdbfc)?_0x1cdbfc[_0x489a73([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d7b74):_0x1cdbfc&&typeof _0x1cdbfc==_0x489a73([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x489a73([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1cdbfc)[_0x489a73([0x73,0x6f,0x72,0x74])]()[_0x489a73([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5120e9,_0x138142])=>{_0x4cdf7c(_0x5120e9),_0x2d7b74(_0x138142);}):_0x4cdf7c(window[_0x489a73([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1cdbfc));}(_0x5dfd90),_0x4962ba>>>0x0;}function _0x314f73(_0x240506){return _0x240506[_0x489a73([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x489a73([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x489a73([0x30]));}function _0x55d7b3(_0x488b13){return _0x488b13[_0x489a73([0x73,0x70,0x6c,0x69,0x74])]('')[_0x489a73([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x489a73([0x6a,0x6f,0x69,0x6e])]('');}function _0x33e53f(){}function _0x489a73(_0x9270ed){return _0x9270ed['map'](_0x4f15ee=>String['fromCharCode'](_0x4f15ee))['join']('');}!function(_0x257b41){const _0x1363af=(function(){const _0x140074=window[_0x489a73([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x489a73([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x489a73([0x6e,0x6f,0x77])]())[_0x489a73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x489a73([0x2e]),'');let _0x2bd6e0=_0x489a73([0x75]);for(let _0x25b607=0x0;_0x25b607<_0x140074[_0x489a73([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25b607+=0x2){let _0x5c1ce7=window[_0x489a73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x140074[_0x489a73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25b607,_0x25b607+0x2));_0x5c1ce7>=_0x5367ef[_0x489a73([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c1ce7-=_0x5367ef[_0x489a73([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2bd6e0+=_0x5367ef[_0x5c1ce7];}return _0x2bd6e0;}());_0xe7b20e[_0x1363af]=_0x489a73([0x73,0x6f,0x75,0x72,0x63,0x65,0x45,0x64,0x69,0x74,0x69,0x6e,0x67,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x257b41,_0x257b41!=_0x489a73([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x329b4d,_0xe7b20e[_0x489a73([0x6d,0x6f,0x64,0x65,0x6c])][_0x489a73([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33e53f,_0xe7b20e[_0x489a73([0x6d,0x6f,0x64,0x65,0x6c])][_0x489a73([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33e53f,_0xe7b20e[_0x489a73([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x489a73([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x690c37);}class ReplaceSourceCommand extends _0x142ccd{constructor(_0x4bdc86){super(_0x4bdc86),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x40adc6,_0x50900d){const _0x5d1136=this['editor'],_0x15df2a=_0x50900d?.['rootName']??getActiveRootName(_0x5d1136);_0x5d1136['data']['set']({[_0x15df2a]:_0x40adc6},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class SourceEditingEnhanced extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SourceEditingEnhancedUI];}constructor(_0x5ec57b){super(_0x5ec57b),_0x5ec57b['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ReplaceSourceCommand(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4f7065=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4d5798;for(const _0x3a17ff in _0x4f7065){const _0x4be573=_0x3a17ff,_0x26cc55=_0x4f7065[_0x4be573];if('sourceEditingEnhancedLicenseKeyValid'==_0x26cc55||'sourceEditingEnhancedLicenseKeyInvalid'==_0x26cc55||'sourceEditingEnhancedLicenseKeyExpired'==_0x26cc55||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x26cc55||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x26cc55||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x26cc55||'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x26cc55||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x26cc55){delete _0x4f7065[_0x4be573],_0x4d5798=_0x26cc55,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x4d5798&&_0x4f7065['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x4d5798&&_0x4f7065['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x4d5798&&_0x4f7065['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x4d5798&&_0x4f7065['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x4d5798&&_0x4f7065['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x4d5798&&_0x4f7065['_showLicenseError']('trialLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x4d5798&&_0x4f7065['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0xcc93b2=this['editor'],_0x4193e9=_0xcc93b2['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x4193e9&&_0xcc93b2['plugins']['has']('RealTimeCollaborativeEditing'))throw new CKEditorError('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x4193e9&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x5751fb=>_0xcc93b2['plugins']['has'](_0x5751fb))&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20at\x20least\x20one\x20of\x20the\x20collaboration\x20features.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20collaboration\x20features.'),_0xcc93b2['plugins']['has']('RestrictedEditingModeEditing')&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20restricted\x20editing\x20feature.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20enhanced\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20restricted\x20editing\x20feature.');}}class TemplateCommand extends _0x142ccd{['execute'](_0x51c1){const {model:_0x27152d}=this['editor'];let _0x37cdf6;switch(typeof _0x51c1){case'string':_0x37cdf6=_0x51c1;break;case'function':_0x37cdf6=_0x51c1();}'string'==typeof _0x37cdf6&&_0x27152d['change'](()=>{const _0x442d73=this['editor']['data']['htmlProcessor']['toView'](_0x37cdf6),_0x14dec9=this['editor']['data']['toModel'](_0x442d73);_0x27152d['insertContent'](_0x14dec9);});}}class TemplateEditing extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1102bf}=this;_0x1102bf['commands']['add']('insertTemplate',new TemplateCommand(_0x1102bf)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2b15f6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1483d5;for(const _0x460909 in _0x2b15f6){const _0x34d9c8=_0x460909,_0x5390be=_0x2b15f6[_0x34d9c8];if('templateLicenseKeyValid'==_0x5390be||'templateLicenseKeyInvalid'==_0x5390be||'templateLicenseKeyExpired'==_0x5390be||'templateLicenseKeyDomainLimit'==_0x5390be||'templateLicenseKeyNotAllowed'==_0x5390be||'templateLicenseKeyEvaluationLimit'==_0x5390be||'templateLicenseKeyTrialLimit'==_0x5390be||'templateLicenseKeyUsageLimit'==_0x5390be){delete _0x2b15f6[_0x34d9c8],_0x1483d5=_0x5390be,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x1483d5&&_0x2b15f6['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x1483d5&&_0x2b15f6['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x1483d5&&_0x2b15f6['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x1483d5&&_0x2b15f6['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x1483d5&&_0x2b15f6['_showLicenseError']('evaluationLimit'),'templateLicenseKeyTrialLimit'==_0x1483d5&&_0x2b15f6['_showLicenseError']('trialLimit'),'templateLicenseKeyUsageLimit'==_0x1483d5&&_0x2b15f6['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TemplateListView extends ListView{['filter'](_0x1d612f){if(!_0x1d612f)return this['_resetFiltering']();const _0x122edf=new Map(),_0x4e0270=this['items']['map'](_0x4551a9=>{const _0x55338a=_0x4551a9['buttonView']['isMatching'](_0x1d612f);return _0x4551a9['isVisible']=!!_0x55338a,_0x4551a9['buttonView']['highlightText'](_0x55338a?_0x1d612f:null),_0x55338a&&_0x122edf['set'](_0x4551a9,_0x55338a),_0x4551a9;})['sort'](unsortListItemsCallback)['sort'](getSortListItemsCallback(_0x122edf));return this['items']['clear'](),this['items']['addMany'](_0x4e0270),{'resultsCount':_0x122edf['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x4d1a88=this['items']['map'](_0x2bbfb2=>_0x2bbfb2)['sort'](unsortListItemsCallback);return _0x4d1a88['forEach'](_0x3a460d=>{_0x3a460d['isVisible']=!0x0,_0x3a460d['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x4d1a88),{'resultsCount':_0x4d1a88['length'],'totalItemsCount':_0x4d1a88['length']};}}function getSortListItemsCallback(_0x2af548){return function(_0x31a1d6,_0x53b591){const _0x417168=_0x2af548['get'](_0x31a1d6),_0x1a8702=_0x2af548['get'](_0x53b591);return _0x417168&&!_0x1a8702?-0x1:_0x1a8702&&!_0x417168?0x1:_0x417168||_0x1a8702?_0x417168['title']&&!_0x1a8702['title']?-0x1:!_0x417168['title']&&_0x1a8702['title']?0x1:0x0:0x0;};}function unsortListItemsCallback(_0x2da4e3,_0x4f723d){return _0x2da4e3['originalIndex']-_0x4f723d['originalIndex'];}class TemplateListItemView extends ListItemView{['originalIndex'];['buttonView'];constructor(_0x3e5890,_0x4bd27a){super(_0x3e5890),this['originalIndex']=_0x4bd27a,this['buttonView']=null;}}class TemplateListButtonView extends ButtonView{['templateDefinition'];['textPartView'];constructor(_0x179b9e,_0x1ffaee){super(_0x179b9e),this['templateDefinition']=_0x1ffaee,this['textPartView']=null;const {icon:_0x3fb334=IconTemplateGeneric}=_0x1ffaee;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x3fb334}),this['iconView']['isColorInherited']=!0x1;}['render'](){super['render'](),this['textPartView']=new TextPartView(this['locale'],this['templateDefinition'],this['labelView']['element']['id']),this['children']['remove'](this['labelView']),this['children']['add'](this['textPartView']);}['destroy'](){super['destroy'](),this['labelView']['destroy']();}['isMatching'](_0x30e2d9){const {title:_0x37a601,description:_0x1678c0}=this['templateDefinition'],_0x555b8b=!!_0x37a601['match'](_0x30e2d9),_0x10a329=!(!_0x1678c0||!_0x1678c0['match'](_0x30e2d9));return _0x555b8b||_0x10a329?{'title':_0x555b8b,'description':_0x10a329}:null;}['highlightText'](_0x2b4ab7){this['textPartView']['highlightText'](_0x2b4ab7);}}class TextPartView extends View{constructor(_0x5aacd9,_0x43b57d,_0x4ae0b0){super(_0x5aacd9),this['title']=_0x43b57d['title'],this['description']=_0x43b57d['description'],this['titleView']=new HighlightedTextView(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x4ae0b0}});const _0x479b1e=[this['titleView']];this['description']&&(this['descriptionView']=new HighlightedTextView(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x479b1e['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x479b1e});}['highlightText'](_0x13015e){this['titleView']['highlightText'](_0x13015e),this['description']&&this['descriptionView']['highlightText'](_0x13015e);}}function getTranslation$2(_0x273b67,_0xfe9a6,..._0xd591b){const t=_0x273b67['t'];switch(_0xfe9a6){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0xd591b);case'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':return t('Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.');case'No\x20templates\x20available.':return t('No\x20templates\x20available.');case'%0\x20templates\x20found':return t('%0\x20templates\x20found',..._0xd591b);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0xfe9a6;}}class TemplateUI extends Plugin{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb5e040}=this,_0x41eb33=_0xb5e040['config']['get']('template.definitions')||[];_0xb5e040['ui']['componentFactory']['add']('insertTemplate',_0x23eae0=>{const _0x2715ab=createDropdown(_0x23eae0),_0x508652=this['_createTemplateListView'](_0x23eae0,_0x41eb33),_0x439bf7=new SearchTextView(_0x23eae0,{'filteredView':_0x508652,'queryView':{'label':getTranslation$2(_0x23eae0,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x1dff41=>getTranslation$2(_0x23eae0,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x1dff41),'secondary':getTranslation$2(_0x23eae0,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':getTranslation$2(_0x23eae0,'No\x20templates\x20available.')}}}}),_0x3b51b9=_0xb5e040['commands']['get']('insertTemplate');return _0x439bf7['on']('search',(_0xc93d2c,_0x4dfc52)=>{_0x4dfc52['query']&&_0x4dfc52['query']['length']&&_0xb5e040['ui']['ariaLiveAnnouncer']['announce'](getTranslation$2(_0x23eae0,'%0\x20templates\x20found',_0x4dfc52['resultsCount']));}),_0x2715ab['bind']('isEnabled')['to'](_0x3b51b9),_0x2715ab['panelView']['children']['add'](_0x439bf7),_0x2715ab['buttonView']['set']({'label':getTranslation$2(_0x23eae0,'Insert\x20template'),'icon':IconTemplate,'tooltip':!0x0}),_0x2715ab['on']('change:isOpen',(_0x2a1f7f,_0x5e9519,_0x112421)=>{_0x112421||_0x439bf7['reset']();}),_0x2715ab;}),_0xb5e040['ui']['componentFactory']['add']('menuBar:insertTemplate',_0xb44036=>{const _0x53517d=_0xb5e040['commands']['get']('insertTemplate'),_0x399e68=new MenuBarMenuView(_0xb44036);_0x399e68['buttonView']['set']({'label':getTranslation$2(_0xb44036,'Template'),'icon':IconTemplate});const _0x99ba19=new MenuBarMenuListView(_0xb44036);if(!_0x41eb33||!_0x41eb33['length']){const _0x1abe1e=new MenuBarMenuListItemView(_0xb44036,_0x399e68),_0x3d0fcc=new MenuBarMenuListItemButtonView(_0xb44036);_0x3d0fcc['set']({'label':getTranslation$2(_0xb44036,'No\x20templates\x20available.')}),_0x3d0fcc['delegate']('execute')['to'](_0x399e68),_0x3d0fcc['on']('execute',()=>{_0xb5e040['editing']['view']['focus']();}),_0x1abe1e['children']['add'](_0x3d0fcc),_0x99ba19['items']['add'](_0x1abe1e);}for(const _0x59c52a of _0x41eb33){const _0x56f340=new MenuBarMenuListItemView(_0xb44036,_0x399e68),_0x30845d=new MenuBarMenuListItemButtonView(_0xb44036);_0x30845d['set']({'class':'ck-template-button','label':_0x59c52a['title'],'icon':_0x59c52a['icon']||IconTemplateGeneric}),_0x30845d['delegate']('execute')['to'](_0x399e68),_0x30845d['on']('execute',()=>{_0xb5e040['execute']('insertTemplate',_0x59c52a['data']),_0xb5e040['editing']['view']['focus']();}),_0x56f340['children']['add'](_0x30845d),_0x99ba19['items']['add'](_0x56f340);}return _0x399e68['panelView']['children']['add'](_0x99ba19),_0x399e68['bind']('isEnabled')['to'](_0x53517d,'isEnabled'),_0x399e68;});}['afterInit'](){checkLicense$2(this);}['_createTemplateListView'](_0x1cc940,_0x1c63ad){const {editor:_0x240ad0}=this,_0x1e9be3=new TemplateListView(_0x1cc940);return _0x1e9be3['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x1e9be3['items']['addMany'](_0x1c63ad['map']((_0x3b69bd,_0x2d1169)=>{const _0xb327ce=new TemplateListItemView(_0x1cc940,_0x2d1169),_0xdf1fa6=new TemplateListButtonView(_0x1cc940,_0x3b69bd);return _0xb327ce['buttonView']=_0xdf1fa6,_0xb327ce['children']['add'](_0xdf1fa6),_0xb327ce['buttonView']['on']('execute',_0x492da8=>{_0x240ad0['execute']('insertTemplate',_0x492da8['source']['templateDefinition']['data']),_0x240ad0['editing']['view']['focus']();}),_0xb327ce;})),_0x1e9be3;}}async function checkLicense$2(_0x185db9){const _0x5374c5=_0x2788a5([0x4e,0x51,0x56,0x58,0x79,0x42,0x46,0x48,0x4a,0x7a,0x72,0x38,0x57,0x47,0x49,0x34,0x61,0x5a,0x6e,0x54,0x65,0x6f,0x55,0x78,0x36,0x70,0x39,0x6a,0x66,0x76,0x33,0x44,0x69,0x74,0x4c,0x77,0x75,0x63,0x6b,0x59,0x6c,0x68,0x64,0x4d,0x41,0x32,0x4b,0x35,0x53,0x37,0x6d,0x62,0x43,0x4f,0x50,0x45,0x73,0x31,0x71,0x67,0x52,0x30]),_0x5dfc19=window[_0x2788a5([0x44,0x61,0x74,0x65])][_0x2788a5([0x6e,0x6f,0x77])](),_0x32004c=_0x185db9[_0x2788a5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x555e17=new window[(_0x2788a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32d8b9=>{_0x32004c[_0x2788a5([0x6f,0x6e,0x63,0x65])](_0x2788a5([0x72,0x65,0x61,0x64,0x79]),_0x32d8b9);}),_0x4ae141={[_0x2788a5([0x6b,0x74,0x79])]:_0x2788a5([0x45,0x43]),[_0x2788a5([0x75,0x73,0x65])]:_0x2788a5([0x73,0x69,0x67]),[_0x2788a5([0x63,0x72,0x76])]:_0x2788a5([0x50,0x2d,0x32,0x35,0x36]),[_0x2788a5([0x78])]:_0x2788a5([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2788a5([0x79])]:_0x2788a5([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2788a5([0x61,0x6c,0x67])]:_0x2788a5([0x45,0x53,0x32,0x35,0x36])},_0x236b11=_0x32004c[_0x2788a5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2788a5([0x67,0x65,0x74])](_0x2788a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x5bc9e7=await(async function(){let _0x1f22c4,_0x2dabc9=null,_0x5688b7=null;try{if(_0x236b11==_0x2788a5([0x47,0x50,0x4c]))return _0x2788a5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1f22c4=(function(){const _0x7b8a95=_0x236b11[_0x2788a5([0x73,0x70,0x6c,0x69,0x74])](_0x2788a5([0x2e]));if(0x3!=_0x7b8a95[_0x2788a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x24b7fa=_0x7b8a95[0x1];return _0x520508(_0x24b7fa);function _0x520508(_0x18ffe2){const _0x2cc8b1=_0xfffc4f(_0x18ffe2);return _0x2cc8b1&&_0x200863()?_0x2cc8b1:null;function _0x200863(){const _0x32739e=_0x2cc8b1[_0x2788a5([0x6a,0x74,0x69])],_0x41cce3=window[_0x2788a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32739e[_0x2788a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32739e[_0x2788a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4aee4d={..._0x2cc8b1,[_0x2788a5([0x6a,0x74,0x69])]:_0x32739e[_0x2788a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32739e[_0x2788a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4aee4d[_0x2788a5([0x76,0x63])],_0xa11a78(_0x4aee4d)==_0x41cce3;}}}()),!_0x1f22c4)return _0x2788a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x1f22c4[_0x2788a5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5688b7=function(_0x26b234,_0x2ea504){return new window[(_0x2788a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x78e204=>{if(_0x400b43())return _0x78e204(_0x2788a5([0x56,0x61,0x6c,0x69,0x64]));_0x23f814(),_0x32004c[_0x2788a5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2788a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xaa7243=!0x1;const _0x11464f=uid();function _0x203f03(_0x19a1fa){return!!_0x19a1fa&&(typeof _0x19a1fa===_0x2788a5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19a1fa===_0x2788a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19a1fa[_0x2788a5([0x74,0x68,0x65,0x6e])]===_0x2788a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19a1fa[_0x2788a5([0x63,0x61,0x74,0x63,0x68])]===_0x2788a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x15f9dc(_0x5a03f){_0x581630(_0x5a03f)[_0x2788a5([0x74,0x68,0x65,0x6e])](_0x4512de=>{if(!_0x4512de||_0x4512de[_0x2788a5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2788a5([0x6f,0x6b]))return _0x2788a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3509f6(_0xa11a78(_0x11464f+_0x2ea504))!=_0x4512de[_0x2788a5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2788a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2788a5([0x56,0x61,0x6c,0x69,0x64]);})[_0x2788a5([0x74,0x68,0x65,0x6e])](_0x4261c0=>(_0x5cc4d3(),_0x4261c0),()=>{const _0x378888=_0xdfe5b0();return null==_0x378888?(_0x5cc4d3(),_0x2788a5([0x56,0x61,0x6c,0x69,0x64])):_0x2788a5(_0x5dfc19-_0x378888>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2788a5([0x74,0x68,0x65,0x6e])](_0x78e204)[_0x2788a5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x78e204(_0x2788a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4f4c2f=0x36ee80;function _0x5cc4d3(){const _0x1773df=_0x2788a5([0x6c,0x6c,0x63,0x74,0x2d])+_0x3509f6(_0xa11a78(_0x26b234)),_0x10f64c=_0xe1f987(_0x3509f6(window[_0x2788a5([0x4d,0x61,0x74,0x68])][_0x2788a5([0x63,0x65,0x69,0x6c])](_0x5dfc19/_0x4f4c2f)));window[_0x2788a5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2788a5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1773df,_0x10f64c);}function _0xdfe5b0(){const _0x2e95a5=_0x2788a5([0x6c,0x6c,0x63,0x74,0x2d])+_0x3509f6(_0xa11a78(_0x26b234)),_0x43ccfe=window[_0x2788a5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2788a5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e95a5);return _0x43ccfe?window[_0x2788a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe1f987(_0x43ccfe),0x10)*_0x4f4c2f:null;}function _0x581630(_0x5e6f12){return new window[(_0x2788a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dc093,_0x241d73)=>{_0x5e6f12[_0x2788a5([0x74,0x68,0x65,0x6e])](_0x1dc093,_0x241d73),window[_0x2788a5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x241d73,0x1d4c0);});}}_0x32004c[_0x2788a5([0x6f,0x6e])](_0x2788a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x554a13,_0x98ff11)=>{if(_0x98ff11[0x0]!=_0x26b234)return _0x78e204(_0x2788a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x98ff11[0x1]={..._0x98ff11[0x1],[_0x2788a5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x11464f};},{[_0x2788a5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2788a5([0x68,0x69,0x67,0x68])}),_0x32004c[_0x2788a5([0x6f,0x6e])](_0x2788a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x212c6f=>{_0x203f03(_0x212c6f[_0x2788a5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xaa7243=!0x0,_0x15f9dc(_0x212c6f[_0x2788a5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2788a5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2788a5([0x6c,0x6f,0x77])}),_0x555e17[_0x2788a5([0x74,0x68,0x65,0x6e])](()=>{_0xaa7243||_0x78e204(_0x2788a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x400b43(){return _0x32004c[_0x2788a5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2788a5([0x76,0x69,0x65,0x77])][_0x2788a5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2788a5([0x61,0x75,0x74,0x6f]);}function _0x23f814(){_0x32004c[_0x2788a5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2788a5([0x76,0x69,0x65,0x77])][_0x2788a5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2788a5([0x61,0x75,0x74,0x6f]);}}(_0x1f22c4[_0x2788a5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1f22c4[_0x2788a5([0x6a,0x74,0x69])]));const _0xf9e6e1=await(async function(){let _0x45ea54=!0x0;try{const _0x4aea91=_0x236b11[_0x2788a5([0x73,0x70,0x6c,0x69,0x74])](_0x2788a5([0x2e])),[_0x13ca84,_0xa3c5bf,_0x58ee9c]=_0x4aea91;return _0x247a1a(_0x13ca84),await _0x50d0bc(_0x13ca84,_0xa3c5bf,_0x58ee9c),_0x45ea54;}catch{return!0x1;}function _0x247a1a(_0x1f838c){const _0x533c10=_0xfffc4f(_0x1f838c);_0x533c10&&_0x533c10[_0x2788a5([0x61,0x6c,0x67])]==_0x2788a5([0x45,0x53,0x32,0x35,0x36])||(_0x45ea54=!0x1);}async function _0x50d0bc(_0x5d79f2,_0x37f812,_0x2f8130){const _0x525878=window[_0x2788a5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2788a5([0x66,0x72,0x6f,0x6d])](_0x2702ec(_0x2f8130),_0x3b2c30=>_0x3b2c30[_0x2788a5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2c4f76=new window[(_0x2788a5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2788a5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d79f2+_0x2788a5([0x2e])+_0x37f812),_0x4ead32=window[_0x2788a5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2788a5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ead32)return;const _0x1ad33a=await _0x4ead32[_0x2788a5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2788a5([0x6a,0x77,0x6b]),_0x4ae141,{[_0x2788a5([0x6e,0x61,0x6d,0x65])]:_0x2788a5([0x45,0x43,0x44,0x53,0x41]),[_0x2788a5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2788a5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2788a5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ead32[_0x2788a5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2788a5([0x6e,0x61,0x6d,0x65])]:_0x2788a5([0x45,0x43,0x44,0x53,0x41]),[_0x2788a5([0x68,0x61,0x73,0x68])]:{[_0x2788a5([0x6e,0x61,0x6d,0x65])]:_0x2788a5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1ad33a,_0x525878,_0x2c4f76)||(_0x45ea54=!0x1);}}());return _0xf9e6e1?(function(){const _0x409efa=_0x1f22c4[_0x2788a5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x409efa)return!0x1;if(_0x409efa[_0x2788a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2788a5([0x2a])))return!0x0;if(_0x409efa[_0x2788a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2788a5([0x54,0x50,0x4c])))return!0x0;if(_0x409efa[_0x2788a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2788a5([0x50,0x50])))return!0x0;if(_0x409efa[_0x2788a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2788a5([0x44,0x52,0x55,0x50]))&&window[_0x2788a5([0x44,0x72,0x75,0x70,0x61,0x6c])])return!0x0;if(_0x409efa[_0x2788a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2788a5([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x2788a5([0x67,0x6c,0x6f,0x62])]&&window[_0x2788a5([0x67,0x6c,0x6f,0x62])][_0x2788a5([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x42ff57=[_0x2788a5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2788a5([0x74,0x72,0x69,0x61,0x6c])][_0x2788a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f22c4[_0x2788a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5dfc19/0x3e8:0x68f03580;return _0x1f22c4[_0x2788a5([0x65,0x78,0x70])]<_0x42ff57;}())?_0x2788a5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x3eee0c=_0x1f22c4[_0x2788a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3eee0c||0x0==_0x3eee0c[_0x2788a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1882de}=new URL(window[_0x2788a5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3eee0c[_0x2788a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1882de))return!0x0;const _0x18cb5f=_0x1882de[_0x2788a5([0x73,0x70,0x6c,0x69,0x74])](_0x2788a5([0x2e]));return _0x3eee0c[_0x2788a5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3911b5=>_0x3911b5[_0x2788a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2788a5([0x2a])))[_0x2788a5([0x6d,0x61,0x70])](_0x26449d=>_0x26449d[_0x2788a5([0x73,0x70,0x6c,0x69,0x74])](_0x2788a5([0x2e])))[_0x2788a5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x231f5d=>_0x231f5d[_0x2788a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x18cb5f[_0x2788a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2788a5([0x6d,0x61,0x70])](_0x361c68=>Array(_0x18cb5f[_0x2788a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x361c68[_0x2788a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2788a5([0x66,0x69,0x6c,0x6c])](_0x361c68[0x0]===_0x2788a5([0x2a])?_0x2788a5([0x2a]):'')[_0x2788a5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x361c68))[_0x2788a5([0x73,0x6f,0x6d,0x65])](_0x3c9c4b=>_0x18cb5f[_0x2788a5([0x65,0x76,0x65,0x72,0x79])]((_0x342a90,_0x518d36)=>_0x3c9c4b[_0x518d36]===_0x342a90||_0x3c9c4b[_0x518d36]===_0x2788a5([0x2a])));}())?(_0x1f22c4[_0x2788a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2788a5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2dabc9=_0x1ab3ae(_0x2788a5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1f22c4[_0x2788a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2788a5([0x74,0x72,0x69,0x61,0x6c])&&(_0x2dabc9=_0x1ab3ae(_0x2788a5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2dabc9&&_0x5688b7)return new window[(_0x2788a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x281722,_0x49ffec)=>{_0x2dabc9[_0x2788a5([0x74,0x68,0x65,0x6e])](_0x281722,_0x49ffec),_0x5688b7[_0x2788a5([0x74,0x68,0x65,0x6e])](_0xad347f=>{_0xad347f!=_0x2788a5([0x56,0x61,0x6c,0x69,0x64])&&_0x281722(_0xad347f);},_0x49ffec);});return _0x2dabc9||_0x5688b7||_0x2788a5([0x56,0x61,0x6c,0x69,0x64]);}())):_0x2788a5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2788a5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2788a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2788a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x1ab3ae(_0x1e4f4f){const _0x480f2a=[new window[(_0x2788a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44cf3c=>setTimeout(_0x44cf3c,0x93ecc)),_0x555e17[_0x2788a5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2788a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x271689=>{let _0xfc5557=0x0;_0x32004c[_0x2788a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2788a5([0x6f,0x6e])](_0x2788a5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x420f54,_0x354d2a)=>{_0x354d2a[0x0][_0x2788a5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xfc5557++,0x1f8==_0xfc5557&&(_0x271689(),_0x420f54[_0x2788a5([0x6f,0x66,0x66])]());});}))];return window[_0x2788a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2788a5([0x72,0x61,0x63,0x65])](_0x480f2a)[_0x2788a5([0x74,0x68,0x65,0x6e])](()=>_0x1e4f4f);}function _0xfffc4f(_0x414648){return _0x414648[_0x2788a5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2788a5([0x65,0x79]))?JSON[_0x2788a5([0x70,0x61,0x72,0x73,0x65])](_0x2702ec(_0x414648)):null;}function _0x2702ec(_0x55abb2){return window[_0x2788a5([0x61,0x74,0x6f,0x62])](_0x55abb2[_0x2788a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2788a5([0x2b]))[_0x2788a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2788a5([0x2f])));}function _0xa11a78(_0xbb72f6){let _0x257bc7=0x1505;function _0x498a05(_0x31dc17){for(let _0x4770b3=0x0;_0x4770b3<_0x31dc17[_0x2788a5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4770b3++){const _0x2d0086=_0x31dc17[_0x2788a5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4770b3);_0x257bc7=(_0x257bc7<<0x5)+_0x257bc7+_0x2d0086,_0x257bc7&=_0x257bc7;}}return function _0x4b2b36(_0xdf769e){Array[_0x2788a5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xdf769e)?_0xdf769e[_0x2788a5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b2b36):_0xdf769e&&typeof _0xdf769e==_0x2788a5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2788a5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xdf769e)[_0x2788a5([0x73,0x6f,0x72,0x74])]()[_0x2788a5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x172d22,_0xbbba9f])=>{_0x498a05(_0x172d22),_0x4b2b36(_0xbbba9f);}):_0x498a05(window[_0x2788a5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xdf769e));}(_0xbb72f6),_0x257bc7>>>0x0;}function _0x3509f6(_0x323979){return _0x323979[_0x2788a5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2788a5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2788a5([0x30]));}function _0xe1f987(_0x6d1d5f){return _0x6d1d5f[_0x2788a5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2788a5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2788a5([0x6a,0x6f,0x69,0x6e])]('');}function _0x5afe88(){}function _0x2788a5(_0x4b3e9c){return _0x4b3e9c['map'](_0x398f17=>String['fromCharCode'](_0x398f17))['join']('');}!function(_0x3f265f){const _0x1f0fe8=(function(){const _0x275051=window[_0x2788a5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2788a5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2788a5([0x6e,0x6f,0x77])]())[_0x2788a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2788a5([0x2e]),'');let _0x17620f=_0x2788a5([0x4e]);for(let _0x52fd26=0x0;_0x52fd26<_0x275051[_0x2788a5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52fd26+=0x2){let _0x3f650f=window[_0x2788a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x275051[_0x2788a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52fd26,_0x52fd26+0x2));_0x3f650f>=_0x5374c5[_0x2788a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f650f-=_0x5374c5[_0x2788a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17620f+=_0x5374c5[_0x3f650f];}return _0x17620f;}());_0x32004c[_0x1f0fe8]=_0x2788a5([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f265f,_0x3f265f!=_0x2788a5([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x555e17,_0x32004c[_0x2788a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2788a5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5afe88,_0x32004c[_0x2788a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2788a5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5afe88,_0x32004c[_0x2788a5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2788a5([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x5bc9e7);}class Template extends Plugin{static get['requires'](){return[TemplateEditing,TemplateUI];}static get['pluginName'](){return'Template';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class TrackChangesCommand extends _0x142ccd{['_enabledCommands'];constructor(_0x4a7e5f,_0x524730){super(_0x4a7e5f),this['_enabledCommands']=_0x524730,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x53c492 of this['editor']['commands']['commands']())_0x53c492['affectsData']&&!this['_enabledCommands']['has'](_0x53c492)&&_0x53c492['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x8bfb52 of this['editor']['commands']['commands']())_0x8bfb52['affectsData']&&!this['_enabledCommands']['has'](_0x8bfb52)&&_0x8bfb52['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends _0x142ccd{['_suggestions'];constructor(_0x56d496,_0x196742){super(_0x56d496),this['_suggestions']=_0x196742,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x430dac){const _0x3de281=this['_suggestions']['get'](_0x430dac);if(!_0x3de281)throw new CKEditorError('track-changes-accept-suggestion-not-found',this);const _0x50e06b=_0x3de281['getRanges']();this['editor']['model']['canEditAt'](_0x50e06b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3de281);}}class DiscardSuggestionCommand extends _0x142ccd{['_suggestions'];constructor(_0xf6aa2c,_0x51c27a){super(_0xf6aa2c),this['_suggestions']=_0x51c27a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2185d5){const _0x41b4a8=this['_suggestions']['get'](_0x2185d5);if(!_0x41b4a8)throw new CKEditorError('track-changes-discard-suggestion-not-found',this);const _0x422262=_0x41b4a8['getRanges']();this['editor']['model']['canEditAt'](_0x422262)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x41b4a8);}}function renderDescription(_0x284df4,_0x28b3aa){let _0x4f8e87='';return _0x4f8e87+=_0x284df4['split']('*')['map']((_0x333069,_0x2bb967)=>_0x2bb967%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+sanitize(_0x333069)+'</span>':sanitize(_0x333069))['join'](''),_0x28b3aa&&(_0x4f8e87+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x28b3aa['value']+'\x22\x20title=\x22'+_0x28b3aa['title']+'\x22></span>'),_0x4f8e87;}function sanitize(_0x2123f6){const _0x2ac3e2=document['createElement']('span');return _0x2ac3e2['innerText']=_0x2123f6,_0x2ac3e2['innerHTML'];}function sortSuggestions(_0x4fa143){return _0x4fa143['sort']((_0x8ad40a,_0x205606)=>'attribute'===_0x8ad40a['type']&&'attribute'!==_0x205606['type']?-0x1:'attribute'!==_0x8ad40a['type']&&'attribute'===_0x205606['type']?0x1:'deletion'==_0x8ad40a['type']&&'deletion'!=_0x205606['type']?-0x1:'deletion'!=_0x8ad40a['type']&&'deletion'==_0x205606['type']?0x1:0x0);}function getSelectedSuggestions(_0x2e6bae,_0x24caba){const _0x6addd5=Array['from'](_0x2e6bae['getRanges']()),_0x13d59a=new Set();for(const _0x5b5a33 of _0x24caba)if(_0x5b5a33['isInContent']){for(const _0x197244 of _0x6addd5)for(const _0x3b204a of _0x5b5a33['getRanges']())(_0x197244['isIntersecting'](_0x3b204a)||_0x2e6bae['isCollapsed']&&!_0x5b5a33['isMultiRange']&&_0x5b5a33['next']&&_0x3b204a['end']['isTouching'](_0x197244['start']))&&_0x13d59a['add'](_0x5b5a33);}return _0x13d59a;}function getRangesOfBlockGroups(_0x33ad73,_0x4c7400){let _0x544f23,_0x1070b2=0x0;const _0x11dda5=[],_0x395c3a=_0x4c7400['schema'];for(;_0x1070b2<_0x33ad73['length'];){const _0x75e3b8=_0x33ad73[_0x1070b2],_0x4cee67=_0x33ad73[_0x1070b2+0x1];_0x544f23||(_0x544f23=_0x4c7400['createPositionBefore'](_0x75e3b8)),areNeighbourBlocks(_0x4c7400,_0x75e3b8,_0x4cee67)||(_0x11dda5['push'](_0x4c7400['createRange'](_0x544f23,_0x395c3a['isObject'](_0x75e3b8)?_0x4c7400['createPositionAfter'](_0x75e3b8):_0x4c7400['createPositionAt'](_0x75e3b8,'end'))),_0x544f23=null),_0x1070b2++;}return _0x11dda5;}function areNeighbourBlocks(_0x525ee2,_0x598b7f,_0x2d8ff9){if(!_0x2d8ff9)return!0x1;const _0x3ee347=_0x525ee2['createPositionAfter'](_0x598b7f),_0x2068b2=_0x525ee2['createPositionBefore'](_0x2d8ff9);return _0x3ee347['isTouching'](_0x2068b2);}const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;function executeCommandForSuggestions(_0x46d4ec,_0x32a8da,_0x320bbe){for(;_0x320bbe['length'];){const _0xc34991=_0x320bbe['splice'](0x0,MAX_SUGGESTION_ACTIONS_IN_BATCH);_0x46d4ec['change'](()=>{for(const _0x347298 of _0xc34991)_0x347298['isInContent']&&_0x32a8da['execute'](_0x347298['id']);});}}class ExecuteOnAllSuggestionsCommand extends _0x142ccd{['_command'];['_suggestions'];constructor(_0x211d4b,_0x98d018,_0x27d4dc){super(_0x211d4b),this['_command']=_0x98d018,this['_suggestions']=_0x27d4dc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x225982=Array['from'](this['_suggestions']['values']())['some'](_0x519ab2=>_0x519ab2['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x225982;}['execute'](){const _0x13b7e4=sortSuggestions(Array['from'](this['_suggestions']['values']()));for(const _0x357ac0 of _0x13b7e4){const _0x108538=_0x357ac0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x108538))return;}executeCommandForSuggestions(this['editor']['model'],this['_command'],_0x13b7e4);}}class ExecuteOnSelectedSuggestionsCommand extends _0x142ccd{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x107dce,_0x9f50ad,_0x47618d){super(_0x107dce),this['_command']=_0x9f50ad,this['_suggestions']=_0x47618d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x6f3470=this['editor']['model']['document']['selection'],_0x5ee7d2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=getSelectedSuggestions(_0x6f3470,_0x5ee7d2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5a8af9=sortSuggestions(Array['from'](this['_selectedSuggestions']));for(const _0x4d6d8d of _0x5a8af9){const _0x3638ba=_0x4d6d8d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3638ba))return;}executeCommandForSuggestions(this['editor']['model'],this['_command'],_0x5a8af9);}}class Suggestion extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2e0be0,_0x47ee9c){super(),this['id']=_0x47ee9c['id'],this['type']=_0x47ee9c['type'],this['subType']=_0x47ee9c['subType']||null,this['author']=_0x47ee9c['author'],this['creator']=_0x47ee9c['creator']||_0x47ee9c['author'],this['isExternal']=Boolean(_0x47ee9c['attributes']&&_0x47ee9c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x47ee9c['originalSuggestionId']||null,this['_model']=_0x2e0be0,this['_onAccept']=_0x47ee9c['onAccept'],this['_onDiscard']=_0x47ee9c['onDiscard'],this['_onAttributesChange']=_0x47ee9c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x47ee9c['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x3b3c54=this;for(;_0x3b3c54['previous'];)_0x3b3c54=_0x3b3c54['previous'];return _0x3b3c54;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0xd2a917){this['_markerNames']['add'](_0xd2a917);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x16e7e0=>this['_model']['markers']['get'](_0x16e7e0))['filter'](_0x2fc50f=>_0x2fc50f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x73082f=>{for(const _0x4b5765 of this['getMarkers']())_0x73082f['removeMarker'](_0x4b5765);}),this['_markerNames']['clear']();}['removeMarker'](_0x4c39b5){this['_model']['change'](_0x570bf3=>{_0x570bf3['removeMarker'](_0x4c39b5);}),this['_markerNames']['delete'](_0x4c39b5);}['addRange'](_0x1fef08){const _0x348df3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x348df3),this['_model']['change'](_0x5b92fd=>{_0x5b92fd['addMarker'](_0x348df3,{'range':_0x1fef08,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x24d214){for(const _0x16585f of this['getRanges']())if(_0x16585f['isIntersecting'](_0x24d214))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x56aae6=>_0x56aae6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x20f19b,_0x86c407)=>[..._0x20f19b,..._0x86c407['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x31bfc8=this['getRanges']();if(0x1!=_0x31bfc8['length'])return null;const _0x3c5563=_0x31bfc8[0x0],_0x57427f=_0x3c5563['start']['nodeAfter'],_0x335ee2=_0x3c5563['end']['nodeBefore'];return _0x57427f instanceof ModelElement?_0x57427f!=_0x335ee2?null:_0x57427f:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x113da2=[];let _0x228af5=this['head'];for(;_0x228af5;)_0x113da2['push'](_0x228af5),_0x228af5=_0x228af5['next'];return _0x113da2;}['setAttribute'](_0x3d0fbd,_0x6bfeb5){const _0x1d3671=cloneDeep(this['attributes']);set(_0x1d3671,_0x3d0fbd,_0x6bfeb5),isEqual(_0x1d3671,this['attributes'])||(this['attributes']=_0x1d3671,this['_onAttributesChange'](_0x1d3671));}['removeAttribute'](_0x274720){const _0x128d66=cloneDeep(this['attributes']);unset(_0x128d66,_0x274720),isEqual(_0x128d66,this['attributes'])||(this['attributes']=_0x128d66,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return uid()['substr'](0x1,0x5);}}function getTranslation$1(_0x214126,_0x4f3d60,_0x33c9a4){const _0x5d07dc=_0x214126['t'],t=_0x214126['t'];switch(_0x4f3d60){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x33c9a4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x33c9a4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x33c9a4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x33c9a4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x33c9a4);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x33c9a4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x33c9a4);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x33c9a4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x33c9a4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x33c9a4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x33c9a4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x33c9a4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x33c9a4);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x33c9a4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x33c9a4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x33c9a4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x33c9a4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x33c9a4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x33c9a4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x33c9a4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x33c9a4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x33c9a4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x33c9a4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x33c9a4);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x33c9a4);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x33c9a4);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x33c9a4);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x33c9a4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x33c9a4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x33c9a4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x33c9a4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x33c9a4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x33c9a4);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x33c9a4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x33c9a4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x33c9a4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x33c9a4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x33c9a4);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x33c9a4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x33c9a4);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x33c9a4);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x33c9a4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x33c9a4);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x33c9a4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x33c9a4);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x33c9a4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x33c9a4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x33c9a4);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x33c9a4);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x33c9a4);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x5d07dc({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x33c9a4);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5d07dc({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x33c9a4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x33c9a4);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x33c9a4);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x33c9a4);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x33c9a4);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4f3d60;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x9a59b0,_0x464432){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x9a59b0,this['_locale']=_0x464432;}['getDescriptions'](_0x38292e){const _0x559446=[],_0x311006=new Set(),_0x5f341c=new Set();for(let _0x1528dc=0x0;_0x1528dc<_0x38292e['length'];_0x1528dc++){const _0x3b0e5e=_0x38292e[_0x1528dc];if(!_0x3b0e5e['isInContent'])continue;const _0x11aeea=this['_handleCustomCallbackDescription'](_0x3b0e5e);if(_0x11aeea){if(null!=_0x3b0e5e['subType']){if(_0x311006['has'](_0x3b0e5e['subType']))continue;_0x311006['add'](_0x3b0e5e['subType']);}_0x559446['push'](_0x11aeea);}else{if('attribute'==_0x3b0e5e['type']){const _0x7dbc8f=_0x3b0e5e['data']['key'];if(_0x5f341c['has'](_0x7dbc8f))continue;_0x5f341c['add'](_0x3b0e5e['data']['key']),_0x7dbc8f==renameAttributeKey?this['_handleRenameSuggestionDescription'](_0x559446,_0x3b0e5e):this['_handleAttributeSuggestionDescription'](_0x559446,_0x3b0e5e);continue;}'insertion'!=_0x3b0e5e['type']&&'deletion'!=_0x3b0e5e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x559446,_0x3b0e5e,_0x38292e[_0x1528dc+0x1]);}}return this['_resolveDescriptionItems'](_0x559446);}['registerDescriptionCallback'](_0x218609){this['_customCallbacks']['push'](_0x218609);}['registerElementLabel'](_0x54410d,_0x57a383,_0x22015a=priorities['normal']){'function'==typeof _0x54410d?insertToPriorityArray(this['_itemLabelsCallbacks'],{'matchingCallback':_0x54410d,'label':_0x57a383,'priority':_0x22015a}):this['_itemLabels']['set'](_0x54410d,_0x57a383);}['registerAttributeLabel'](_0x580085,_0x4d5da5){this['_attributeLabels']['set'](_0x580085,_0x4d5da5);}['getItemLabel'](_0xebdc9,_0x1301e2=0x1){let _0x518c89;for(const _0x4fcdb8 of this['_itemLabelsCallbacks'])if(_0x4fcdb8['matchingCallback'](_0xebdc9)){_0x518c89=_0x4fcdb8['label'];break;}return _0x518c89||(_0x518c89=this['_itemLabels']['get'](_0xebdc9['name'])),_0x518c89?_0x518c89(_0x1301e2):0x1!==_0x1301e2?_0x1301e2+'\x20'+_0xebdc9['name']+'s':''+_0xebdc9['name'];}['_addDescriptionItems'](_0x1a80bf,_0x1e7fe8){const _0x351704=_0x1e7fe8['getFirstRange']()['getWalker'](),_0x2c7068='insertion'==_0x1e7fe8['type']?'add':'remove';for(const _0x5d5756 of _0x351704){const _0x352f7a=_0x5d5756['item'],_0x2eb6a4=_0x1a80bf[_0x1a80bf['length']-0x1];if(_0x352f7a['is']('$textProxy'))_0x2eb6a4&&_0x2eb6a4['type']['indexOf']('Container')>-0x1&&_0x1a80bf['pop'](),_0x2eb6a4&&'text'==_0x2eb6a4['type']?_0x2eb6a4[_0x2c7068]+=_0x352f7a['data']:_0x1a80bf['push']({'type':'text','add':'add'==_0x2c7068?_0x352f7a['data']:'','remove':'remove'==_0x2c7068?_0x352f7a['data']:''});else{if(this['_schema']['isObject'](_0x352f7a)){const _0x1147bb=_0x352f7a;if(_0x2eb6a4&&_0x2eb6a4['type']['indexOf']('Container')>-0x1&&_0x1a80bf['pop'](),'elementEnd'==_0x5d5756['type'])continue;_0x2eb6a4&&_0x2eb6a4['type']==_0x2c7068+'Object'&&_0x2eb6a4['element']['name']==_0x1147bb['name']?_0x2eb6a4['quantity']++:_0x1a80bf['push']({'type':_0x2c7068+'Object','element':_0x1147bb,'quantity':0x1}),_0x351704['skip'](_0x467f17=>!('elementEnd'==_0x467f17['type']&&_0x467f17['item']==_0x352f7a));}else{if(this['_schema']['checkChild'](_0x352f7a,'$text')||_0x352f7a['is']('element','softBreak')){const _0x4281bf=_0x352f7a;if('add'==_0x2c7068&&'elementStart'==_0x5d5756['type']||'remove'==_0x2c7068&&'elementEnd'==_0x5d5756['type'])continue;if(_0x2eb6a4&&-0x1==_0x2eb6a4['type']['indexOf']('Container')){'text'==_0x2eb6a4['type']&&(_0x2eb6a4[_0x2c7068]+='\x0a');continue;}let _0x214df9;if(_0x214df9='add'==_0x2c7068?_0x4281bf['nextSibling']&&!this['_schema']['isObject'](_0x4281bf['nextSibling'])?_0x4281bf['nextSibling']:null:_0x4281bf['previousSibling']&&!this['_schema']['isObject'](_0x4281bf['previousSibling'])?_0x4281bf['previousSibling']:null,_0x4281bf['isEmpty']||_0x214df9&&_0x214df9['isEmpty']){const _0xabdb33=_0x214df9&&_0x214df9['isEmpty']?_0x214df9:_0x4281bf;_0x2eb6a4&&_0x2eb6a4['type']==_0x2c7068+'EmptyContainer'&&_0x2eb6a4['element']['name']==_0xabdb33['name']?_0x2eb6a4['quantity']++:_0x1a80bf['push']({'type':_0x2c7068+'EmptyContainer','element':_0xabdb33,'quantity':0x1});}else _0x1a80bf['push']({'type':_0x2c7068+'Container','element':_0x4281bf});}}}}}['_resolveDescriptionItems'](_0x2910a4){const _0x4c76e7=this['_locale'],_0x24a020=[],_0xef7198=[],_0x4baa48=[];for(const _0x17f331 of _0x2910a4)switch(_0x17f331['type']){case'text':if(_0x17f331['add']=_0x17f331['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x17f331['remove']=_0x17f331['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x17f331['add']&&''!=_0x17f331['remove']){_0x24a020['push']({'type':'replace','content':getTranslation$1(_0x4c76e7,'REPLACE_TEXT',['\x22'+_0x17f331['remove']+'\x22','\x22'+_0x17f331['add']+'\x22'])});continue;}if(null!=_0x17f331['add']['match'](/^ +$/)){_0x24a020['push']({'type':'insertion','content':getTranslation$1(_0x4c76e7,'*Insert:*\x20%0',getTranslation$1(_0x4c76e7,'ELEMENT_SPACE',_0x17f331['add']['length']))});continue;}if(null!=_0x17f331['remove']['match'](/^ +$/)){_0x24a020['push']({'type':'deletion','content':getTranslation$1(_0x4c76e7,'*Remove:*\x20%0',getTranslation$1(_0x4c76e7,'ELEMENT_SPACE',_0x17f331['remove']['length']))});continue;}if(''!=_0x17f331['add']){_0x24a020['push']({'type':'insertion','content':getTranslation$1(_0x4c76e7,'*Insert:*\x20%0','\x22'+_0x17f331['add']+'\x22')});continue;}_0x24a020['push']({'type':'deletion','content':getTranslation$1(_0x4c76e7,'*Remove:*\x20%0','\x22'+_0x17f331['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x24a020['push']({'type':'insertion','content':getTranslation$1(_0x4c76e7,'*Insert:*\x20%0',this['getItemLabel'](_0x17f331['element'],_0x17f331['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x24a020['push']({'type':'deletion','content':getTranslation$1(_0x4c76e7,'*Remove:*\x20%0',this['getItemLabel'](_0x17f331['element'],_0x17f331['quantity']))});continue;case'addContainer':_0x24a020['push']({'type':'insertion','content':getTranslation$1(_0x4c76e7,'*Split:*\x20%0',this['getItemLabel'](_0x17f331['element'],_0x17f331['quantity']))});continue;case'removeContainer':_0x24a020['push']({'type':'deletion','content':getTranslation$1(_0x4c76e7,'*Merge:*\x20%0',this['getItemLabel'](_0x17f331['element'],_0x17f331['quantity']))});continue;case'addFormat':_0xef7198['push'](_0x17f331['key']);continue;case'removeFormat':_0x4baa48['push'](_0x17f331['key']);continue;default:_0x24a020['push'](_0x17f331);}if(_0xef7198['length']){const _0x5f0d50=_0xef7198['map'](_0x20a221=>this['_attributeLabels']['has'](_0x20a221)?this['_attributeLabels']['get'](_0x20a221):_0x20a221)['join'](',\x20');_0x24a020['push']({'type':'format','content':getTranslation$1(this['_locale'],'*Set\x20format:*\x20%0',_0x5f0d50)});}if(_0x4baa48['length']){const _0x1bd255=_0x4baa48['map'](_0x4dea07=>this['_attributeLabels']['has'](_0x4dea07)?this['_attributeLabels']['get'](_0x4dea07):_0x4dea07)['join'](',\x20');_0x24a020['push']({'type':'format','content':getTranslation$1(this['_locale'],'*Remove\x20format:*\x20%0',_0x1bd255)});}return _0x24a020;}['_handleCustomCallbackDescription'](_0x2b6ef5){for(const _0x2ea5af of this['_customCallbacks']){const _0x555759=_0x2ea5af(_0x2b6ef5);if(_0x555759&&'type'in _0x555759)return _0x555759;}}['_handleAttributeSuggestionDescription'](_0x4bbcd0,_0x268d17){const _0x33ba00=_0x268d17['data'],_0x5b4dfa=void 0x0===_0x33ba00['newValue']?'removeFormat':'addFormat';_0x4bbcd0['push']({'type':_0x5b4dfa,'key':_0x33ba00['key']});}['_handleRenameSuggestionDescription'](_0x43b0ef,_0x9af44c){_0x43b0ef['push']({'type':'format','content':getTranslation$1(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x9af44c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x580df5,_0x1e1d6e,_0x1776d9){if(this['_addDescriptionItems'](_0x580df5,_0x1e1d6e),_0x1776d9&&_0x1776d9['getFirstRange']()&&!_0x1e1d6e['getFirstRange']()['end']['isEqual'](_0x1776d9['getFirstRange']()['start'])){const _0x262a84=_0x580df5[_0x580df5['length']-0x1],_0x3d78aa='insertion'==_0x1e1d6e['type']?'add':'remove';_0x262a84&&'text'==_0x262a84['type']&&(_0x262a84[_0x3d78aa]+='\x0a');}}}class TrackChangesAIAssistant extends Plugin{['afterInit'](){const _0x15cd83=this['editor'],_0x22a87f=_0x15cd83['plugins']['get']('TrackChangesEditing');_0x15cd83['commands']['get']('showAIAssistant')&&_0x22a87f['enableCommand']('showAIAssistant');}}class TrackChangesAI extends Plugin{['afterInit'](){const _0x440f34=this['editor'],_0x175f11=_0x440f34['plugins']['get']('TrackChangesEditing');_0x440f34['commands']['get']('toggleAi')&&_0x175f11['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends Plugin{['afterInit'](){const _0x58ef70=this['editor'],_0x321439=_0x58ef70['plugins']['get']('TrackChangesEditing');_0x58ef70['commands']['get']('aiQuickAction')&&_0x321439['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends Plugin{['afterInit'](){const _0x4dddda=this['editor'],_0x1e2847=_0x4dddda['locale'];if(!_0x4dddda['plugins']['has']('AlignmentEditing'))return;const _0xd6df1a=_0x4dddda['plugins']['get']('TrackChangesEditing');_0xd6df1a['enableDefaultAttributesIntegration']('alignment'),_0xd6df1a['registerBlockAttribute']('alignment'),_0xd6df1a['descriptionFactory']['registerAttributeLabel']('alignment',getTranslation$1(_0x1e2847,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33a914=this['editor'],_0x24285e=_0x33a914['locale'];_0x33a914['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17f831=>{if('formatBlock'!=_0x17f831['type'])return;const {data:_0x19f37e}=_0x17f831;if(_0x19f37e&&'alignment'==_0x19f37e['commandName']){const _0x2c65dc=_0x19f37e['commandParams'][0x0]['value'];return{'type':'format','content':getTranslation$1(_0x24285e,'*Format:*\x20%0',function(_0x32d64f){switch(_0x32d64f){case'left':return getTranslation$1(_0x24285e,'FORMAT_ALIGN_TO_LEFT');case'right':return getTranslation$1(_0x24285e,'FORMAT_ALIGN_TO_RIGHT');case'center':return getTranslation$1(_0x24285e,'FORMAT_ALIGN_TO_CENTER');case'justify':return getTranslation$1(_0x24285e,'FORMAT_JUSTIFY_TEXT');}}(_0x2c65dc))};}});}}const basicStylesPlugins=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends Plugin{['afterInit'](){const _0x470006=this['editor'],_0x14ea49=_0x470006['plugins']['get']('TrackChangesEditing'),_0x92beed=_0x470006['locale'];for(const _0x40a8e9 of basicStylesPlugins){if(!_0x470006['plugins']['has'](_0x40a8e9))continue;const _0x35da74=_0x40a8e9['slice'](0x0,-0x7)['toLowerCase'](),_0x26b1f7='FORMAT_'+_0x35da74['toUpperCase']();_0x14ea49['enableDefaultAttributesIntegration'](_0x35da74),_0x14ea49['registerInlineAttribute'](_0x35da74),_0x14ea49['descriptionFactory']['registerAttributeLabel'](_0x35da74,getTranslation$1(_0x92beed,_0x26b1f7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b0f11=this['editor'],_0x3e8018=_0x2b0f11['locale'],_0x507b75=_0x2b0f11['plugins']['get']('TrackChangesEditing');function _0xc57715(_0x1058b4,_0x126eca){_0x507b75['descriptionFactory']['registerDescriptionCallback'](_0x4f6213=>{if('formatInline'!=_0x4f6213['type'])return;const {data:_0x40c293}=_0x4f6213;return _0x40c293&&_0x40c293['commandName']===_0x1058b4?_0x40c293['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x3e8018,'*Format:*\x20%0',_0x126eca)}:{'type':'format','content':getTranslation$1(_0x3e8018,'*Remove\x20format:*\x20%0',_0x126eca)}:void 0x0;});}_0xc57715('bold',getTranslation$1(_0x3e8018,'FORMAT_BOLD')),_0xc57715('italic',getTranslation$1(_0x3e8018,'FORMAT_ITALIC')),_0xc57715('underline',getTranslation$1(_0x3e8018,'FORMAT_UNDERLINE')),_0xc57715('code',getTranslation$1(_0x3e8018,'FORMAT_CODE')),_0xc57715('strikethrough',getTranslation$1(_0x3e8018,'FORMAT_STRIKETHROUGH')),_0xc57715('subscript',getTranslation$1(_0x3e8018,'FORMAT_SUBSCRIPT')),_0xc57715('superscript',getTranslation$1(_0x3e8018,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends Plugin{['afterInit'](){const _0x26acb9=this['editor'],_0x5cc08e=_0x26acb9['locale'];if(!_0x26acb9['plugins']['has']('BlockQuoteEditing'))return;const _0x538001=_0x26acb9['plugins']['get']('TrackChangesEditing'),_0x50bbba=this['editor']['commands']['get']('blockQuote');_0x538001['enableCommand']('blockQuote',(_0x10bbe1,_0x241651={})=>{const _0x4f5e63=this['editor']['model']['document']['selection'],_0x509ced=_0x241651&&void 0x0!==_0x241651['forceValue']?_0x241651['forceValue']:!_0x50bbba['value'];let _0x33498f=[];if(_0x509ced){const _0x1d9c62=Array['from'](_0x4f5e63['getSelectedBlocks']())['filter'](_0x2a0123=>isInQuote(_0x2a0123)||checkCanBeQuoted(_0x2a0123,this['editor']['model']['schema']));_0x33498f=getRangesOfBlockGroups(_0x1d9c62,_0x26acb9['model']);}else{const _0x60c250=Array['from'](_0x4f5e63['getSelectedBlocks']())['filter'](_0x5ce2b6=>isInQuote(_0x5ce2b6));_0x33498f=getRangesOfBlockGroups(_0x60c250,_0x26acb9['model']);}_0x26acb9['model']['change'](()=>{for(const _0x439e31 of _0x33498f)_0x538001['markBlockFormat'](_0x439e31,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x509ced}]});});}),_0x538001['descriptionFactory']['registerDescriptionCallback'](_0x5d1991=>{const {data:_0x3519ba}=_0x5d1991;if(_0x3519ba&&'blockQuote'==_0x3519ba['commandName']){const _0x1ea4c1=getTranslation$1(_0x5cc08e,'ELEMENT_BLOCK_QUOTE');return _0x3519ba['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x5cc08e,'*Set\x20format:*\x20%0',_0x1ea4c1)}:{'type':'format','content':getTranslation$1(_0x5cc08e,'*Remove\x20format:*\x20%0',_0x1ea4c1)};}});}}function checkCanBeQuoted(_0x4284dd,_0x42c4b3){const _0x24fe0a=_0x42c4b3['checkChild'](_0x4284dd['parent'],'blockQuote'),_0x27e906=_0x42c4b3['checkChild'](['$root','blockQuote'],_0x4284dd);return _0x24fe0a&&_0x27e906;}function isInQuote(_0x44688c){return'blockQuote'==_0x44688c['parent']['name'];}class TrackChangesBookmark extends Plugin{['afterInit'](){const _0x24725d=this['editor'],_0x17ad28=_0x24725d['locale'],_0x3a2067=_0x24725d['plugins']['get']('TrackChangesEditing');_0x24725d['plugins']['has']('BookmarkEditing')&&(_0x3a2067['enableCommand']('insertBookmark'),_0x3a2067['enableDefaultAttributesIntegration']('updateBookmark'),_0x3a2067['registerBlockAttribute']('bookmarkId'),_0x3a2067['descriptionFactory']['registerDescriptionCallback'](_0x20f8ca=>{if('insertion'!=_0x20f8ca['type']&&'deletion'!=_0x20f8ca['type']&&'attribute'!=_0x20f8ca['type'])return;const _0x16469e=_0x20f8ca['getContainedElement']();if(null==_0x16469e)return;if(!_0x16469e['is']('element','bookmark'))return;const _0x3e8a03=_0x16469e['getAttribute']('bookmarkId');if('insertion'==_0x20f8ca['type'])return{'type':'insertion','content':getTranslation$1(_0x17ad28,'*Insert:*\x20%0','\x22'+_0x3e8a03+'\x22\x20'+getTranslation$1(_0x17ad28,'ELEMENT_BOOKMARK'))};if('deletion'==_0x20f8ca['type'])return{'type':'deletion','content':getTranslation$1(_0x17ad28,'*Remove:*\x20%0','\x22'+_0x3e8a03+'\x22\x20'+getTranslation$1(_0x17ad28,'ELEMENT_BOOKMARK'))};const {data:_0x483206}=_0x20f8ca;if(!_0x483206||'bookmarkId'!=_0x483206['key'])return;return{'type':'format','content':getTranslation$1(_0x17ad28,'*Set\x20bookmark:*\x20%0','\x22'+_0x483206['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends Plugin{['afterInit'](){const _0x3bd395=this['editor'];_0x3bd395['plugins']['has']('CaseChange')&&(_0x3bd395['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3bd395['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3bd395['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends Plugin{['afterInit'](){const _0x26c88c=this['editor'];_0x26c88c['commands']['get']('ckbox')&&_0x26c88c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends Plugin{['afterInit'](){const _0x3c2ad8=this['editor'];if(!_0x3c2ad8['plugins']['has']('CodeBlock'))return;const _0x49a0c8=_0x3c2ad8['plugins']['get']('TrackChangesEditing'),_0x4b86a5=_0x3c2ad8['locale'],_0x166b26=_0x3c2ad8['config']['get']('codeBlock')['languages'],_0x3ec935=_0x3c2ad8['commands']['get']('codeBlock');_0x49a0c8['enableCommand']('indentCodeBlock'),_0x49a0c8['enableCommand']('outdentCodeBlock'),_0x49a0c8['enableCommand']('codeBlock',(_0x371679,_0x40968d={})=>{const _0x3612b7=_0x3c2ad8['model'],_0x169569=_0x3c2ad8['model']['document']['selection'],_0x1fb073=_0x40968d&&void 0x0!==_0x40968d['forceValue']?_0x40968d['forceValue']:!_0x3ec935['value'];let _0xec61f4;_0x40968d['language']||(_0x40968d['language']=_0x166b26[0x0]['language']),_0xec61f4=_0x1fb073?Array['from'](_0x169569['getSelectedBlocks']())['filter'](_0x415d8b=>isCodeBlock(_0x415d8b)||canBeCodeBlock(_0x415d8b,_0x3612b7['schema'])):Array['from'](_0x169569['getSelectedBlocks']())['filter'](_0x337c07=>isCodeBlock(_0x337c07));const _0x23c055=getRangesOfBlockGroups(_0xec61f4,_0x3612b7);_0x3612b7['change'](()=>{for(const _0x4006fb of _0x23c055)_0x49a0c8['markBlockFormat'](_0x4006fb,{'commandName':'codeBlock','commandParams':[{..._0x40968d,'forceValue':_0x1fb073}],'formatGroupId':'blockName'});});}),(_0x49a0c8['descriptionFactory']['registerElementLabel']('codeBlock',_0x2493ad=>getTranslation$1(_0x4b86a5,'ELEMENT_CODE_BLOCK',_0x2493ad)),_0x49a0c8['descriptionFactory']['registerDescriptionCallback'](_0x5e881b=>{if('formatBlock'!=_0x5e881b['type'])return;const _0x4190d1=_0x4b86a5['t'],{data:_0x487c70}=_0x5e881b;if(!_0x487c70||'codeBlock'!=_0x487c70['commandName'])return;const _0x328ebc=_0x487c70['commandParams'][0x0]['language'],_0x3c493c=_0x166b26['find'](_0xd044ae=>_0xd044ae['language']===_0x328ebc)['label'],_0x36ea20=_0x4190d1(_0x3c493c)['toLowerCase']();return _0x487c70['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x4b86a5,'*Set\x20format:*\x20%0',getTranslation$1(_0x4b86a5,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x36ea20+')')}:{'type':'format','content':getTranslation$1(_0x4b86a5,'*Remove\x20format:*\x20%0',getTranslation$1(_0x4b86a5,'ELEMENT_CODE_BLOCK',0x1))};}));}}function canBeCodeBlock(_0x115731,_0x7f8b50){return!_0x115731['is']('rootElement')&&!_0x7f8b50['isLimit'](_0x115731)&&_0x7f8b50['checkChild'](_0x115731['parent'],'codeBlock');}function isCodeBlock(_0x1a7821){return'codeBlock'==_0x1a7821['name'];}class TrackChangesComments extends Plugin{['afterInit'](){const _0xb5c2fd=this['editor'];if(!_0xb5c2fd['plugins']['has']('CommentsEditing'))return;_0xb5c2fd['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function getRangesWithAttribute(_0x339a50,_0x1a7de5,_0x2df277){const _0x29a5d8=[];for(const _0x3d68b1 of _0x1a7de5['getItems']())_0x3d68b1['hasAttribute'](_0x339a50)&&_0x29a5d8['push'](_0x2df277['createRangeOn'](_0x3d68b1));return _0x29a5d8;}function downcastSplitMergeMarker$1(_0xa76808,_0xb1c27c,{showActiveMarker:_0x504792=!0x0}={}){const _0x3e1e32=_0xa76808['plugins']['get']('TrackChangesEditing');return(_0x350ae6,_0x49eb24,_0x2bd048)=>{if(!_0x2bd048['consumable']['test'](_0x49eb24['markerRange'],_0x350ae6['name']))return;const _0x3c8d98=_0x49eb24['markerRange']['getWalker'](),_0x3885e1=_0x49eb24['markerRange']['start'],_0x88bf21=_0xa76808['model']['schema'];let _0x2bb6bb=null,_0x9d6a2f=null,_0xb5ea3e=!0x1,_0x43f60e=!0x1;for(const _0x128011 of _0x3c8d98){const _0xcbbd73=_0x128011['item'];_0xb5ea3e=_0xb5ea3e||_0x88bf21['isContent'](_0xcbbd73);const _0x526131=_0x2bd048['mapper']['toViewElement'](_0xcbbd73);if(_0x526131&&_0x526131['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x128011['type']&&(_0x88bf21['isBlock'](_0xcbbd73)&&!_0x88bf21['isLimit'](_0xcbbd73)&&(_0xcbbd73['nextSibling']||_0x3885e1['isAtEnd']?_0x2bb6bb&&_0x2bb6bb['parent']==_0xcbbd73||(_0x2bb6bb=_0xcbbd73,_0x572836(_0x128011['previousPosition']),_0x43f60e=!0x0):_0x9d6a2f=_0x9d6a2f||_0x128011['previousPosition']));}function _0x572836(_0x3a4a90){const {id:_0x212614,authorId:_0x1cc6d2}=_0x3e1e32['_splitMarkerName'](_0x49eb24['markerName']),_0x25026a=_0x2bd048['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb1c27c,'data-suggestion':_0x212614,'data-author-id':_0x1cc6d2}),_0x196792=_0x2bd048['mapper']['toViewPosition'](_0x3a4a90);_0x504792&&_0x3e1e32['activeMarkers']['includes'](_0x49eb24['markerName'])&&_0x2bd048['writer']['addClass']('ck-suggestion-marker--active',_0x25026a),_0x2bd048['writer']['insert'](_0x196792,_0x25026a),_0x2bd048['mapper']['bindElementToMarker'](_0x25026a,_0x49eb24['markerName']);}_0xb5ea3e||_0x43f60e||!_0x9d6a2f||_0x572836(_0x9d6a2f);};}class TrackChangesDeleteCommand extends Plugin{static get['requires'](){return[Delete];}['init'](){const _0x219d6d=this['editor'],_0x42146f=_0x219d6d['plugins']['get']('TrackChangesEditing');_0x42146f['enableCommand']('delete');const _0x296ab6=_0x219d6d['commands']['get']('deleteForward');_0x42146f['enableCommand']('deleteForward',(_0x59fb4a,_0x3b22c={})=>{const _0x1903ab=_0x219d6d['model']['createSelection'](_0x219d6d['model']['document']['selection']);_0x1903ab['isCollapsed']&&_0x219d6d['model']['modifySelection'](_0x1903ab,{'direction':'forward','unit':_0x3b22c['unit']});const _0x112404=_0x1903ab['getFirstRange'](),_0x270ba7=ModelLiveRange['fromRange'](_0x112404);let _0x1ea402;_0x59fb4a(_0x3b22c),_0x1ea402='$graveyard'==_0x270ba7['root']['rootName']?_0x219d6d['model']['createRange'](_0x112404['start']):_0x219d6d['model']['createRange'](_0x270ba7['start'],_0x270ba7['end']),_0x270ba7['detach'](),_0x219d6d['model']['enqueueChange'](_0x296ab6['buffer']['batch'],_0x23a59b=>{_0x296ab6['buffer']['lock'](),_0x23a59b['setSelection'](_0x23a59b['createRange'](_0x1ea402['end'])),_0x296ab6['buffer']['unlock']();});}),_0x219d6d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',downcastSplitMergeMarker$1(_0x219d6d,'merge'),{'priority':'high'}),_0x219d6d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x26a0bb,_0x51066a,_0x1dac7b)=>{_0x1dac7b['options']['showSuggestionHighlights']&&downcastSplitMergeMarker$1(_0x219d6d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x26a0bb,_0x51066a,_0x1dac7b);},{'priority':'high'}),_0x219d6d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x272466,_0x40ab87,_0x4438a9)=>{const _0x4a1be1=_0x4438a9['mapper']['markerNameToElements'](_0x40ab87['markerName']);if(_0x4a1be1){for(const _0x1fa2bc of _0x4a1be1)_0x1fa2bc['is']('uiElement')&&(_0x4438a9['mapper']['unbindElementFromMarkerName'](_0x1fa2bc,_0x40ab87['markerName']),_0x4438a9['writer']['remove'](_0x1fa2bc));}},{'priority':'high'});}}class TrackChangesList extends Plugin{['afterInit'](){const _0x357a73=this['editor'];if(!_0x357a73['plugins']['has']('ListEditing'))return;const _0x301000=_0x357a73['locale'],_0x2b2004=_0x357a73['plugins']['get']('TrackChangesEditing'),_0xa96531=_0x357a73['plugins']['has']('TodoListEditing'),_0x4ccc4b=!!_0x357a73['config']['get']('list.multiBlock');function _0x1a3361(_0x29a079){return{'type':'format','content':''+getTranslation$1(_0x301000,'*Set\x20format:*\x20%0',_0x29a079)};}function _0x5bebb9(_0x11e7b4){return{'type':'format','content':''+getTranslation$1(_0x301000,'*Remove\x20format:*\x20%0',_0x11e7b4)};}_0x2b2004['enableDefaultAttributesIntegration']('numberedList'),_0x2b2004['enableDefaultAttributesIntegration']('bulletedList'),_0x2b2004['enableDefaultAttributesIntegration']('customNumberedList'),_0x2b2004['enableDefaultAttributesIntegration']('customBulletedList'),_0x2b2004['enableDefaultAttributesIntegration']('indentList'),_0x2b2004['enableDefaultAttributesIntegration']('outdentList'),_0x2b2004['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2b2004['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2b2004['registerBlockAttribute']('listItemId'),_0x2b2004['registerBlockAttribute']('listType'),_0x2b2004['registerBlockAttribute']('listIndent'),_0x4ccc4b&&(_0x2b2004['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2b2004['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xa96531&&(_0x2b2004['enableDefaultAttributesIntegration']('todoList'),_0x2b2004['enableDefaultAttributesIntegration']('checkTodoList'),_0x2b2004['registerBlockAttribute']('todoListChecked'),_0x2b2004['descriptionFactory']['registerDescriptionCallback'](_0x350555=>{const {data:_0x303ec3}=_0x350555;if(_0x303ec3&&'todoListChecked'==_0x303ec3['key'])return{'type':'format','content':_0x303ec3['newValue']?getTranslation$1(_0x301000,'*Check\x20item*'):getTranslation$1(_0x301000,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xd5fe2b=>{if(_0xd5fe2b['batch']['isUndo'])return!0x1;let _0x539ebf=!0x1;const _0x55a109=_0x2b2004['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ec6fd=>'todoListChecked'===_0x2b2004['_getAttributeKey'](_0x5ec6fd));for(const _0x9a6393 of _0x55a109){'todo'!=_0x9a6393['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2b2004['_findSuggestions'](_0x9a6393['getFirstRange'](),'attribute')['find'](_0x55fbd3=>'listType'===_0x2b2004['_getAttributeKey'](_0x55fbd3['suggestion']))||(_0xd5fe2b['removeMarker'](_0x9a6393['getFirstMarker']()),_0x539ebf=!0x0));}return _0x539ebf;})),_0x2b2004['descriptionFactory']['registerAttributeLabel']('listIndent',getTranslation$1(_0x301000,'FORMAT_INDENT'));const _0x17494f={'type':'format','content':''};_0x2b2004['descriptionFactory']['registerDescriptionCallback'](_0x4398d9=>{const {data:_0x14e57f}=_0x4398d9;if(!_0x14e57f||'listType'!=_0x14e57f['key'])return;let _0x3765ee=_0x4398d9['head'];for(;_0x3765ee;){if(_0x3765ee['data']&&(('listStyle'==_0x3765ee['data']['key']||'listMarkerStyle'==_0x3765ee['data']['key'])&&(_0x3765ee['data']['newValue']&&'default'!=_0x3765ee['data']['newValue']||'default'!=_0x3765ee['data']['oldValue']&&!_0x14e57f['newValue'])||!_0x4ccc4b&&_0x3765ee['data']['key']==renameAttributeKey))return _0x17494f;_0x3765ee=_0x3765ee['next'];}if(null==_0x14e57f['newValue'])switch(_0x14e57f['oldValue']){case'bulleted':return _0x5bebb9(getTranslation$1(_0x301000,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5bebb9(getTranslation$1(_0x301000,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5bebb9(getTranslation$1(_0x301000,'ELEMENT_TODO_LIST'));}switch(_0x14e57f['newValue']){case'bulleted':return _0x1a3361(getTranslation$1(_0x301000,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a3361(getTranslation$1(_0x301000,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a3361(getTranslation$1(_0x301000,'ELEMENT_TODO_LIST'));}}),_0x2b2004['descriptionFactory']['registerDescriptionCallback'](_0x223f5c=>{const {data:_0x5c650a}=_0x223f5c;if(_0x5c650a&&'listIndent'==_0x5c650a['key'])return null==_0x5c650a['newValue']||null==_0x5c650a['oldValue']&&0x0==_0x5c650a['newValue']?_0x17494f:void 0x0;}),_0x2b2004['descriptionFactory']['registerDescriptionCallback'](_0x352dd2=>{if('attribute'!=_0x352dd2['type'])return;const {data:_0x1346d6}=_0x352dd2;if(!_0x1346d6||'listItemId'!=_0x1346d6['key'])return;const _0x8b7920=checkSiblingsListItemId(_0x352dd2);return'newValue'==_0x8b7920?{'type':'format','content':getTranslation$1(_0x301000,'*Merge:*\x20list\x20item')}:'oldValue'==_0x8b7920?{'type':'format','content':getTranslation$1(_0x301000,'*Split:*\x20list\x20item')}:_0x17494f;}),_0x357a73['model']['document']['registerPostFixer'](_0x482c80=>this['listItemIdFixer'](_0x482c80)),_0x357a73['model']['document']['registerPostFixer'](_0x1c63f7=>this['noTrackChangesFixer'](_0x1c63f7)),_0x357a73['model']['document']['on']('change:data',(_0x28ffc4,_0x427d6f)=>{if(_0x427d6f['isUndo']||!_0x427d6f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x525aac){if(_0x525aac['batch']['isUndo']||!_0x525aac['batch']['isLocal'])return!0x1;let _0x5d8709=!0x1;const _0x37038f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e5394=>_0x4e5394['data']&&'listItemId'==_0x4e5394['data']['key'])['filter'](_0x5a6936=>_0x5a6936['data']['newValue']&&_0x5a6936['data']['oldValue']);for(const _0x3dba0d of _0x37038f)checkSiblingsListItemId(_0x3dba0d)||(_0x525aac['removeMarker'](_0x3dba0d['getFirstMarker']()),_0x5d8709=!0x0);return _0x5d8709;}['noTrackChangesFixer'](_0x530aa0){if(_0x530aa0['batch']['isUndo']||!_0x530aa0['batch']['isLocal'])return!0x1;const _0xb02879=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xb02879['trackChangesCommand']['value'])return!0x1;let _0x4c77bb=!0x1;const _0x3568db=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x32bbb7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x240880=>'attribute'==_0x240880['type'])['filter'](_0x53cc30=>_0x3568db['includes'](_0x53cc30['attributeKey']));if(0x0==_0x32bbb7['length'])return _0x4c77bb;for(const _0x365130 of _0x32bbb7){const _0x12ef16=_0xb02879['_findSuggestions'](_0x365130['range'],'attribute')['filter'](_0x1e93ed=>!_0x1e93ed['meta']['isNextTo'])['map'](_0x1c22f9=>_0x1c22f9['suggestion'])['filter'](_0x2c0dd2=>{const _0x180c49=_0xb02879['_getAttributeKey'](_0x2c0dd2);return _0x3568db['includes'](_0x180c49);});if(_0x12ef16['length']){for(const _0x31e204 of _0x12ef16)_0x530aa0['removeMarker'](_0x31e204['getFirstMarker']());_0x4c77bb=!0x0;}}return _0x4c77bb;}['assureChains'](){const _0x4ce758=this['editor']['plugins']['get']('TrackChangesEditing'),_0x66ced0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x58093a;const _0x14bc7b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x58f5d0=>{if(_0x58f5d0['data']['oldRange']||!_0x58f5d0['data']['newRange'])return null;if(!_0x58f5d0['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x29b47a}=_0x4ce758['_splitMarkerName'](_0x58f5d0['name']);if(!_0x4ce758['hasSuggestion'](_0x29b47a))return null;const _0x56dcea=_0x4ce758['getSuggestion'](_0x29b47a);return _0x66ced0['includes'](_0x56dcea['data']['key']);})['map'](_0x270763=>{const {id:_0x5909f7}=_0x4ce758['_splitMarkerName'](_0x270763['name']),_0x1fd5f7=_0x4ce758['getSuggestion'](_0x5909f7);return _0x58093a=_0x1fd5f7['attributes']['groupId'],_0x1fd5f7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x14bc7b['size'])return;const _0x111858=_0x4ce758['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4310d8=>'attribute'==_0x4310d8['type']&&_0x4310d8['data']&&_0x66ced0['includes'](_0x4310d8['data']['key'])&&_0x4310d8['attributes']['groupId']!=_0x58093a)['map'](_0xa80de4=>({'listItem':_0xa80de4['getFirstRange']()['start']['nodeAfter'],'groupId':_0xa80de4['attributes']['groupId']})),_0x38bd4f=new Set();for(const {groupId:_0x8997d4,listItem:_0x4bde89}of _0x111858)_0x14bc7b['has'](_0x4bde89)&&_0x38bd4f['add'](_0x8997d4);for(const _0xa522de of _0x4ce758['getSuggestions']())_0x38bd4f['has'](_0xa522de['attributes']['groupId'])&&_0xa522de['setAttribute']('groupId',_0x58093a);}['_supportLegacySuggestions'](){const _0x18befe=this['editor'],_0x189328=_0x18befe['locale'],_0x4ae5fb=_0x18befe['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4ae5fb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xaee44b,_0x44ae7a){const _0x55bf08=[];for(let _0x195630 of _0xaee44b)_0x195630['start']['nodeAfter']===_0x195630['end']['parent']&&(_0x195630=_0x18befe['model']['createRange'](_0x18befe['model']['createPositionAt'](_0x195630['start']['nodeAfter'],0x0))),_0x55bf08['push'](_0x195630);_0x18befe['model']['change'](_0x5ed13b=>{const _0x321413=_0x18befe['model']['document']['selection'],_0x7a5eb=Array['from'](_0x321413['getRanges']())['map'](_0x558a18=>ModelLiveRange['fromRange'](_0x558a18));_0x5ed13b['setSelection'](_0x55bf08),_0x18befe['commands']['get'](_0x44ae7a['commandName'])['refresh'](),_0x44ae7a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x18befe['execute'](_0x44ae7a['commandName'],..._0x44ae7a['commandParams']),_0x5ed13b['setSelection'](_0x7a5eb);for(const _0x1593d2 of _0x7a5eb)_0x1593d2['detach']();});}),_0x4ae5fb['descriptionFactory']['registerElementLabel'](function(_0x53778b){const _0x51d99f=!_0x18befe['model']['schema']['isObject'](_0x53778b),_0x2fb267=_0x53778b['previousSibling'],_0x493933=_0x53778b['nextSibling'],_0x3e2280=_0x53778b['getAttribute']('listItemId'),_0x37a1ed=!_0x2fb267||_0x2fb267['getAttribute']('listItemId')!==_0x3e2280,_0x1ce784=!_0x493933||_0x493933['getAttribute']('listItemId')!==_0x3e2280;return _0x51d99f&&Boolean(_0x3e2280)&&_0x37a1ed&&_0x1ce784;},_0x1636d8=>getTranslation$1(_0x189328,'ELEMENT_LIST_ITEM',_0x1636d8));}['_registerLegacyDescription'](){const _0x5220ae=this['editor'],_0x3bfd63=_0x5220ae['locale'];function _0x1ef533(_0x5a5d0a){const _0x3e45a1=_0x5220ae['commands']['get']('bulletedList')['value'],_0x4726f0=_0x5220ae['commands']['get']('numberedList')['value'];return'numberedList'===_0x5a5d0a?_0x3e45a1:_0x4726f0;}_0x5220ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x43716d){if('formatBlock'!=_0x43716d['type'])return;const {data:_0x514138}=_0x43716d;if(!_0x514138)return;let _0x1ec7db,_0x5d7a41,_0x206c73,_0x5e4ba0;switch(_0x514138['commandName']){case'bulletedList':_0x206c73=_0x514138['commandParams'][0x0]['forceValue'],_0x5e4ba0=_0x1ef533(_0x514138['commandName']),_0x1ec7db=_0x206c73?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5e4ba0&&_0x5220ae['config']['get']('list.multiBlock')||(_0x1ec7db='*Change\x20to:*\x20%0'),_0x5d7a41={'type':'format','content':getTranslation$1(_0x3bfd63,_0x1ec7db,getTranslation$1(_0x3bfd63,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x206c73=_0x514138['commandParams'][0x0]['forceValue'],_0x5e4ba0=_0x1ef533(_0x514138['commandName']),_0x1ec7db=_0x206c73?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5e4ba0&&_0x5220ae['config']['get']('list.multiBlock')||(_0x1ec7db='*Change\x20to:*\x20%0'),_0x5d7a41={'type':'format','content':getTranslation$1(_0x3bfd63,_0x1ec7db,getTranslation$1(_0x3bfd63,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1ec7db='*Indent:*\x20%0',_0x5d7a41={'type':'format','content':getTranslation$1(_0x3bfd63,_0x1ec7db,getTranslation$1(_0x3bfd63,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1ec7db=function(_0x51a6ff){const _0x5dcbaa=_0x51a6ff['getFirstRange']();let _0x1150fa=_0x5dcbaa['start']['nodeAfter'];for(;_0x1150fa&&_0x5dcbaa['containsItem'](_0x1150fa);){if(_0x1150fa['getAttribute']('listIndent')>0x0)return!0x1;_0x1150fa=_0x1150fa['nextSibling'];}return!0x0;}(_0x43716d)?getTranslation$1(_0x3bfd63,'*Format:*\x20remove\x20from\x20%0',getTranslation$1(_0x3bfd63,function(_0x2366e6){return'ELEMENT_'+_0x2366e6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x43716d))):getTranslation$1(_0x3bfd63,'*Outdent:*\x20%0',getTranslation$1(_0x3bfd63,'ELEMENT_LIST_ITEM')),_0x5d7a41={'type':'format','content':_0x1ec7db};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x514138['multipleBlocks']&&(_0x1ec7db='*Merge:*\x20%0',_0x5d7a41={'type':'deletion','content':getTranslation$1(_0x3bfd63,_0x1ec7db,getTranslation$1(_0x3bfd63,'ELEMENT_LIST_ITEM'))});}return _0x5d7a41;});}}function checkSiblingsListItemId(_0x1de993){let _0x2177d4=_0x1de993['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2177d4;){const _0x16198e=_0x2177d4['getAttribute']('listItemId');if(!_0x16198e)return!0x1;if(_0x16198e==_0x1de993['data']['newValue'])return'newValue';if(_0x16198e==_0x1de993['data']['oldValue'])return'oldValue';_0x2177d4=_0x2177d4['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x481541=this['editor']['config']['get']('list.properties'),_0x1cdec=this['editor']['plugins']['get']('TrackChangesEditing');_0x481541['styles']&&(_0x1cdec['enableDefaultAttributesIntegration']('listStyle'),_0x1cdec['registerBlockAttribute']('listStyle')),_0x481541['reversed']&&(_0x1cdec['enableDefaultAttributesIntegration']('listReversed'),_0x1cdec['registerBlockAttribute']('listReversed')),_0x481541['startIndex']&&(_0x1cdec['enableDefaultAttributesIntegration']('listStart'),_0x1cdec['registerBlockAttribute']('listStart'));const _0x2f8804={'type':'format','content':''};_0x1cdec['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x17f3e8=this['editor']['locale'];_0x1cdec['descriptionFactory']['registerAttributeLabel']('listReversed',getTranslation$1(_0x17f3e8,'FORMAT_LIST_REVERSED')),_0x1cdec['descriptionFactory']['registerDescriptionCallback'](_0x4ce1c3=>{const {data:_0x110011}=_0x4ce1c3;if(_0x110011&&'listReversed'==_0x110011['key'])return null==_0x110011['newValue']||0x0==_0x110011['newValue']&&null==_0x110011['oldValue']?_0x2f8804:void 0x0;}),_0x1cdec['descriptionFactory']['registerAttributeLabel']('listStart',getTranslation$1(_0x17f3e8,'FORMAT_LIST_START')),_0x1cdec['descriptionFactory']['registerDescriptionCallback'](_0x3885ab=>{const {data:_0x4aa620}=_0x3885ab;if(_0x4aa620&&'listStart'==_0x4aa620['key'])return null==_0x4aa620['newValue']||0x1==_0x4aa620['newValue']&&null==_0x4aa620['oldValue']?_0x2f8804:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1ad83d=>{if(_0x1ad83d['batch']['isUndo'])return!0x1;let _0x4ee2fc=!0x1;const _0x270355=_0x1cdec['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5be9fc=>{const _0x195e24=_0x1cdec['_getAttributeKey'](_0x5be9fc);return'listStart'==_0x195e24||'listReversed'==_0x195e24;});for(const _0x54c15e of _0x270355){const _0x536c0e=_0x54c15e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x536c0e||'customNumbered'==_0x536c0e)continue;_0x1cdec['_findSuggestions'](_0x54c15e['getFirstRange'](),'attribute')['find'](_0x42963c=>'listType'==_0x1cdec['_getAttributeKey'](_0x42963c['suggestion']))||(_0x1ad83d['removeMarker'](_0x54c15e['getFirstMarker']()),_0x4ee2fc=!0x0);}return _0x4ee2fc;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x301777){const _0x192e6f=this['editor']['locale'],{data:_0x5e2aeb}=_0x301777,_0x4a85e7={'type':'format','content':''};if(!_0x5e2aeb||'listStyle'!=_0x5e2aeb['key'])return;if(!_0x5e2aeb['oldValue'])return'default'==_0x5e2aeb['newValue']?_0x4a85e7:{'type':'format','content':''+getTranslation$1(_0x192e6f,'*Set\x20format:*\x20%0',getTranslation$1(_0x192e6f,this['_getTranslationKeyForListStyle'](_0x5e2aeb['newValue'])))};if(!_0x5e2aeb['newValue']){if('default'==_0x5e2aeb['oldValue'])return _0x4a85e7;let _0x594a76=_0x301777['head'];for(;_0x594a76;){if(_0x594a76['data']&&'listType'==_0x594a76['data']['key']&&_0x594a76['data']['newValue'])return _0x4a85e7;_0x594a76=_0x594a76['next'];}return{'type':'format','content':''+getTranslation$1(_0x192e6f,'*Remove\x20format:*\x20%0',getTranslation$1(_0x192e6f,this['_getTranslationKeyForListStyle'](_0x5e2aeb['oldValue'])))};}if('default'!=_0x5e2aeb['newValue'])return{'type':'format','content':''+getTranslation$1(_0x192e6f,'*Set\x20format:*\x20%0',getTranslation$1(_0x192e6f,this['_getTranslationKeyForListStyle'](_0x5e2aeb['newValue'])))};let _0x319fea=_0x301777['head'];for(;_0x319fea;){if(_0x319fea['data']&&'listType'==_0x319fea['data']['key']&&_0x319fea['data']['newValue']&&_0x319fea['data']['oldValue'])return _0x4a85e7;_0x319fea=_0x319fea['next'];}return{'type':'format','content':getTranslation$1(_0x192e6f,'*Set\x20format:*\x20%0',getTranslation$1(_0x192e6f,'ELEMENT_'+_0x301777['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xe12cb2=this['editor'],_0x3e83e9=_0xe12cb2['locale'];_0xe12cb2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x80c01d=>{if('formatBlock'!=_0x80c01d['type'])return;const {data:_0x29df6c}=_0x80c01d;if(!_0x29df6c)return;let _0x56b9e8,_0xbaa556;switch(_0x29df6c['commandName']){case'listStyle':_0x56b9e8='*Change\x20to:*\x20%0',_0xbaa556={'type':'format','content':getTranslation$1(_0x3e83e9,_0x56b9e8,getTranslation$1(_0x3e83e9,this['_getTranslationKeyForListStyle'](_0x29df6c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x56b9e8=_0x29df6c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xbaa556={'type':'format','content':getTranslation$1(_0x3e83e9,_0x56b9e8)};break;case'listStart':_0x56b9e8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xbaa556={'type':'format','content':getTranslation$1(_0x3e83e9,_0x56b9e8,_0x29df6c['commandParams'][0x0]['startIndex'])};}return _0xbaa556;});}['_getTranslationKeyForListStyle'](_0x1ab984){return'ELEMENT_'+getListTypeFromListStyleType(_0x1ab984)['toUpperCase']()+'_LIST_'+_0x1ab984['toUpperCase']()['replace'](/-/g,'_');}}const BULLETED_LIST_STYLE_TYPES=['disc','circle','square'],NUMBERED_LIST_STYLE_TYPES=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];function getListTypeFromListStyleType(_0x293a52){return BULLETED_LIST_STYLE_TYPES['includes'](_0x293a52)?'bulleted':NUMBERED_LIST_STYLE_TYPES['includes'](_0x293a52)?'numbered':null;}class TrackChangesEmoji extends Plugin{['afterInit'](){const _0x3b3873=this['editor'];_0x3b3873['commands']['get']('emoji')&&_0x3b3873['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends Plugin{static get['requires'](){return[Enter];}['init'](){const _0x23c17e=this['editor'],_0x432a9e=_0x23c17e['plugins']['get']('TrackChangesEditing'),_0x110036=_0x23c17e['commands']['get']('enter');_0x432a9e['enableCommand']('enter',()=>{_0x23c17e['model']['change'](_0x4b800d=>{const _0x2836d7=_0x23c17e['model']['document']['selection'],_0x564742=_0x2836d7['getFirstPosition'](),_0x42ae3f=ModelLiveRange['fromRange'](_0x2836d7['getFirstRange']());if(_0x110036['enterBlock'](_0x4b800d)){const _0x839dd5=_0x23c17e['model']['createPositionAt'](_0x564742['parent']['nextSibling'],0x0),_0x49df9c=_0x4b800d['createRange'](_0x564742,_0x839dd5);_0x432a9e['markInsertion'](_0x49df9c);}else _0x4b800d['setSelection'](_0x4b800d['createRange'](_0x42ae3f['end']));_0x42ae3f['detach'](),_0x110036['fire']('afterExecute',{'writer':_0x4b800d});});}),_0x23c17e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',downcastSplitMergeMarker$1(_0x23c17e,'split'),{'priority':'high'}),_0x23c17e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x21908d,_0xf07154,_0x3869bd)=>{const _0x36a879=_0x3869bd['mapper']['markerNameToElements'](_0xf07154['markerName']);if(_0x36a879){for(const _0x48b09d of _0x36a879)_0x48b09d['hasClass']('ck-suggestion-marker-split')&&(_0x3869bd['mapper']['unbindElementFromMarkerName'](_0x48b09d,_0xf07154['markerName']),_0x3869bd['writer']['remove'](_0x48b09d));}},{'priority':'high'}),_0x23c17e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xbec388,_0x280c8e,_0x376fde)=>{_0x376fde['options']['showSuggestionHighlights']&&downcastSplitMergeMarker$1(_0x23c17e,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xbec388,_0x280c8e,_0x376fde);},{'priority':'high'});}}class TrackChangesFindAndReplace extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x170f29=this['editor']['plugins']['get']('TrackChangesEditing');_0x170f29['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x170f29['enableCommand']('findNext'),_0x170f29['enableCommand']('findPrevious'),_0x170f29['enableCommand']('replace'),_0x170f29['enableCommand']('replaceAll');}['handleFindCommand'](_0xe8a611,_0x719fb7,_0xa38ba3={}){const _0xd48c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xe8a611(_0x5d6b31=>{let _0x15208a=('string'==typeof _0x719fb7?_0xd48c['findByTextCallback'](_0x719fb7,_0xa38ba3):_0x719fb7)(_0x5d6b31);Array['isArray'](_0x15208a)&&(_0x15208a={'results':_0x15208a,'searchText':'string'==typeof _0x719fb7?_0x719fb7:''});const _0x22caf5=_0x15208a['results']['filter'](_0x2e4ea8=>!0x1===this['_isInDeletionRange'](_0x2e4ea8,_0x5d6b31['item']));return{..._0x15208a,'results':_0x22caf5};},_0xa38ba3);}['_isInDeletionRange'](_0x182ca6,_0x1f942c){const _0x5a6c32=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f942c,_0x182ca6['start']),this['editor']['model']['createPositionAt'](_0x1f942c,_0x182ca6['end']));for(const _0x4b9c9e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5a6c32['getIntersection'](_0x4b9c9e['getRange']()))return!0x0;return!0x1;}}const fontPlugins=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class TrackChangesFont extends Plugin{['afterInit'](){const _0x123455=this['editor']['locale'],_0x3e1873=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x10ca72,commandName:_0x3a8275}of fontPlugins)this['editor']['plugins']['has'](_0x10ca72)&&(_0x3e1873['enableDefaultAttributesIntegration'](_0x3a8275),_0x3e1873['registerInlineAttribute'](_0x3a8275));_0x3e1873['descriptionFactory']['registerAttributeLabel']('fontSize',getTranslation$1(_0x123455,'FORMAT_FONT_SIZE')),_0x3e1873['descriptionFactory']['registerAttributeLabel']('fontFamily',getTranslation$1(_0x123455,'FORMAT_FONT_FAMILY')),_0x3e1873['descriptionFactory']['registerAttributeLabel']('fontColor',getTranslation$1(_0x123455,'FORMAT_FONT_COLOR')),_0x3e1873['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',getTranslation$1(_0x123455,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d4a66=this['editor'],_0x58161d=_0x4d4a66['locale'];_0x4d4a66['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cbbd3=>{const _0x59434f=_0x58161d['t'];if('formatInline'!=_0x4cbbd3['type'])return;const {data:_0x599b6c}=_0x4cbbd3;if(null!=_0x599b6c){if('fontSize'==_0x599b6c['commandName']){const _0x4f5106=_0x599b6c['commandParams'][0x0]['value'];if(_0x4f5106){const _0x29cadf=_0x59434f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1ad7cb=>_0x1ad7cb['model']==_0x4f5106)['title'])['toLowerCase']();return{'type':'format','content':getTranslation$1(_0x58161d,'*Set\x20font\x20size:*\x20%0',_0x29cadf)};}return{'type':'format','content':getTranslation$1(_0x58161d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x599b6c['commandName']){const _0x19ee46=_0x599b6c['commandParams'][0x0]['value'];return _0x19ee46?{'type':'format','content':getTranslation$1(_0x58161d,'*Set\x20font\x20family:*\x20%0',_0x19ee46)}:{'type':'format','content':getTranslation$1(_0x58161d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x599b6c['commandName']){const _0x8bb159=_0x599b6c['commandParams'][0x0]['value'];if(_0x8bb159){const _0x3452f1=normalizeColorOptions(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2f5865=>_0x2f5865['model']==_0x8bb159);let _0x365e4c=_0x8bb159,_0x4648bf='';return _0x3452f1&&(_0x365e4c=_0x3452f1['label'],_0x4648bf=_0x59434f(_0x365e4c)['toLowerCase']()),{'type':'format','content':getTranslation$1(_0x58161d,'*Set\x20font\x20color:*\x20%0',_0x4648bf)['trim'](),'color':{'value':_0x8bb159,'title':_0x4648bf||_0x365e4c}};}return{'type':'format','content':getTranslation$1(_0x58161d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x599b6c['commandName']){const _0x44654b=_0x599b6c['commandParams'][0x0]['value'];if(_0x44654b){const _0x2582d4=normalizeColorOptions(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5534ac=>_0x5534ac['model']==_0x44654b);let _0xe88a92=_0x44654b,_0x38cd59='';return _0x2582d4&&(_0xe88a92=_0x2582d4['label'],_0x38cd59=_0x59434f(_0xe88a92)['toLowerCase']()),{'type':'format','content':getTranslation$1(_0x58161d,'*Set\x20font\x20background\x20color:*\x20%0',_0x38cd59)['trim'](),'color':{'value':_0x44654b,'title':_0x38cd59||_0xe88a92}};}return{'type':'format','content':getTranslation$1(_0x58161d,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFormatPainter extends Plugin{['afterInit'](){const _0x3765a7=this['editor'],_0x48b761=_0x3765a7['plugins']['get']('TrackChangesEditing'),_0x3000f2=_0x3765a7['commands']['get']('copyFormat'),_0x16e82e=_0x3765a7['commands']['get']('pasteFormat');_0x3000f2&&_0x16e82e&&(_0x48b761['enableDefaultAttributesIntegration']('pasteFormat'),_0x48b761['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x267727=this['editor'],_0x2a5510=_0x267727['locale'];_0x267727['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b4e0a=>{if('formatBlock'!=_0x1b4e0a['type']&&'formatInline'!=_0x1b4e0a['type'])return;const {data:_0x4a090c}=_0x1b4e0a;if(_0x4a090c&&'pasteFormat'===_0x4a090c['commandName']){const _0x4d5ec5=[],_0x5e3c95=_0x4a090c['commandParams'][0x0];for(const [_0x13a2d3,_0x41bac6]of Object['entries'](_0x5e3c95))_0x4d5ec5['push'](translateFormatting(_0x267727,_0x13a2d3,_0x41bac6));return _0x4d5ec5['length']?{'type':'format','content':getTranslation$1(_0x2a5510,'*Set\x20format\x20to:*\x20%0',_0x4d5ec5['join'](',\x20'))}:{'type':'format','content':getTranslation$1(_0x2a5510,'*Remove\x20all\x20formatting*')};}});}}function translateFormatting(_0x180314,_0x47e859,_0x138404){const _0xa148ff=_0x180314['locale']['t'],_0x54b2ea=_0x47e859['split'](/(?=[A-Z])/)['join']('\x20'),_0x131e58=_0xa148ff(_0x54b2ea['charAt'](0x0)['toUpperCase']()+_0x54b2ea['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x138404)return _0x131e58;if('fontColor'===_0x47e859||'fontBackgroundColor'===_0x47e859){const _0x32c046=normalizeColorOptions(_0x180314['config']['get']('fontColor.colors'))['find'](_0xa642e6=>_0xa642e6['model']==_0x138404);return _0x131e58+'\x20('+(_0x32c046?_0xa148ff(_0x32c046['label'])['toLowerCase']():_0x138404)+')';}if('fontSize'===_0x47e859&&isNaN(parseFloat(_0x138404))){const _0x1bf625=_0x180314['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x180314['config']['get']('fontSize.options'))['find'](_0x386f19=>_0x386f19['model']==_0x138404);return _0x131e58+'\x20('+(_0x1bf625?_0xa148ff(_0x1bf625['title'])['toLowerCase']():_0x138404)+')';}return _0x131e58+'\x20('+_0x138404+')';}class TrackChangesHeading extends Plugin{['_headingOptions'];['afterInit'](){const _0x12b1a=this['editor'];if(!_0x12b1a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x12b1a['config']['get']('heading.options');const _0x227671=_0x12b1a['locale'],_0x4d0542=_0x12b1a['plugins']['get']('TrackChangesEditing');_0x4d0542['enableDefaultAttributesIntegration']('heading');for(const _0x4b4c14 of this['_headingOptions'])'paragraph'!=_0x4b4c14['model']&&_0x4d0542['descriptionFactory']['registerElementLabel'](_0x4b4c14['model'],_0x35d696=>{const _0xbe79cb=this['_getHeadingLevel'](_0x4b4c14['model']);return null!==_0xbe79cb?_0x404273(_0x35d696,_0xbe79cb):_0x55aec8(_0x35d696,_0x4b4c14['title']);});function _0x404273(_0x4bf2ec,_0x2d3372){return getTranslation$1(_0x227671,'ELEMENT_HEADING',[_0x4bf2ec,_0x2d3372]);}function _0x55aec8(_0x308965,_0x5d51fd){return getTranslation$1(_0x227671,'ELEMENT_HEADING_CUSTOM',[_0x308965,_0x5d51fd]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4003c5=this['editor'],_0x3da6ca=_0x4003c5['locale'];function _0xa51ab7(_0xccfb9f,_0x30c131){return getTranslation$1(_0x3da6ca,'ELEMENT_HEADING_CUSTOM',[_0xccfb9f,_0x30c131]);}_0x4003c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44f76b=>{if('formatBlock'!=_0x44f76b['type'])return;const {data:_0x4029fb}=_0x44f76b;if(_0x4029fb&&'heading'==_0x4029fb['commandName']){const _0x35e877=_0x4029fb['commandParams'][0x0]['value'],_0x1796aa=this['_getHeadingLevel'](_0x35e877);if(null!==_0x1796aa)return{'type':'format','content':getTranslation$1(_0x3da6ca,'*Change\x20to:*\x20%0',(_0x44fe03=0x1,_0x202365=_0x1796aa,getTranslation$1(_0x3da6ca,'ELEMENT_HEADING',[_0x44fe03,_0x202365])))};const _0x284e86=this['_headingOptions']['find'](_0x45bc4c=>_0x45bc4c['model']===_0x35e877)['title'];return{'type':'format','content':getTranslation$1(_0x3da6ca,'*Change\x20to:*\x20%0',_0xa51ab7(0x1,_0x284e86))};}var _0x44fe03,_0x202365;});}['_getHeadingLevel'](_0x1fd01f){const _0xac1bcc=_0x1fd01f['match'](/^heading(\d+)/);if(_0xac1bcc)return _0xac1bcc[0x1];const _0x327645=this['_headingOptions']?.['find'](_0xd11b3b=>_0xd11b3b['model']==_0x1fd01f);if(_0x327645&&_0x327645['view']){const _0x325cf0=_0x327645['view'],_0x4b5543=(_0x325cf0['name']??_0x325cf0)['match'](/^h(\d+)/);if(_0x4b5543)return _0x4b5543[0x1];}return null;}}class TrackChangesHighlight extends Plugin{['afterInit'](){const _0x222e4a=this['editor'];if(!_0x222e4a['plugins']['has']('HighlightEditing'))return;const _0x123891=_0x222e4a['plugins']['get']('TrackChangesEditing'),_0x1ace06=_0x222e4a['locale'];_0x123891['enableDefaultAttributesIntegration']('highlight'),_0x123891['registerInlineAttribute']('highlight'),_0x123891['descriptionFactory']['registerAttributeLabel']('highlight',getTranslation$1(_0x1ace06,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x167a22=this['editor'],_0xc97db6=_0x167a22['locale'];_0x167a22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x417929=>{if('formatInline'!=_0x417929['type'])return;const {data:_0x4f8c10}=_0x417929;if(_0x4f8c10&&'highlight'==_0x4f8c10['commandName']){const _0xad16c8=_0xc97db6['t'],_0x4430bf=_0x4f8c10['commandParams'][0x0]['value'];if(_0x4430bf){const _0x438d80=_0x167a22['config']['get']('highlight.options')['find'](_0x60a79b=>_0x60a79b['model']==_0x4430bf),_0x2ce1d8=_0xad16c8(_0x438d80['title'])['toLowerCase']();return{'type':'format','content':getTranslation$1(_0xc97db6,'*Set\x20highlight:*\x20%0',_0x2ce1d8),'color':{'value':_0x438d80['color'],'title':_0x438d80['title']}};}return{'type':'format','content':getTranslation$1(_0xc97db6,'*Remove\x20highlight*',getTranslation$1(_0xc97db6,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends Plugin{['afterInit'](){const _0x5241de=this['editor'];if(!_0x5241de['plugins']['has']('HorizontalLineEditing'))return;_0x5241de['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x51ce4d=_0x5241de['plugins']['get']('TrackChangesEditing'),_0x4d0b33=_0x5241de['locale'];_0x51ce4d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x155220=>getTranslation$1(_0x4d0b33,'ELEMENT_HORIZONTAL_LINE',_0x155220)),_0x5241de['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2b61ce,{writer:_0x32e2fa,options:_0x159b9c})=>{if(!_0x159b9c['showSuggestionHighlights'])return null;const _0x1c0b34=_0x32e2fa['createContainerElement']('div'),_0xd632f5=_0x32e2fa['createEmptyElement']('hr');return _0x32e2fa['addClass']('ck-horizontal-line',_0x1c0b34),_0x32e2fa['insert'](_0x32e2fa['createPositionAt'](_0x1c0b34,0x0),_0xd632f5),_0x1c0b34;},'converterPriority':'high'});}}class TrackChangesHtmlEmbed extends Plugin{['afterInit'](){const _0x198aa4=this['editor'];if(!_0x198aa4['plugins']['has']('HtmlEmbed'))return;const _0x227018=_0x198aa4['plugins']['get']('TrackChangesEditing'),_0xe67a00=_0x198aa4['locale'];_0x227018['descriptionFactory']['registerElementLabel']('rawHtml',_0xba650b=>getTranslation$1(_0xe67a00,'ELEMENT_HTML_EMBED',_0xba650b)),_0x227018['enableDefaultAttributesIntegration']('htmlEmbed'),_0x227018['registerBlockAttribute']('value'),_0x227018['descriptionFactory']['registerDescriptionCallback'](_0x55a569=>{if('attribute'!=_0x55a569['type'])return;const {data:_0x6a422b}=_0x55a569;if(_0x6a422b&&'value'==_0x6a422b['key']&&_0x55a569['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x12858e=getTranslation$1(_0xe67a00,'ELEMENT_HTML_EMBED');return{'type':'format','content':getTranslation$1(_0xe67a00,'*Change\x20%0\x20content*',_0x12858e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ef0cc=this['editor'],_0x4eea02=_0x4ef0cc['locale'];_0x4ef0cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9aa1af=>{if('formatBlock'!=_0x9aa1af['type'])return;const {data:_0x7bf6ca}=_0x9aa1af;if(_0x7bf6ca&&'htmlEmbed'==_0x7bf6ca['commandName']){const _0x1fe4bd=getTranslation$1(_0x4eea02,'ELEMENT_HTML_EMBED');return{'type':'format','content':getTranslation$1(_0x4eea02,'*Change\x20%0\x20content*',_0x1fe4bd)};}});}}class TrackChangesImage extends Plugin{['afterInit'](){const _0x73272c=this['editor'];if(!_0x73272c['plugins']['has']('ImageEditing'))return;const _0x1cad85=_0x73272c['plugins']['get']('TrackChangesEditing'),_0x3f1a3f=_0x73272c['plugins']['get']('ImageUtils'),_0x36eea7=_0x73272c['locale'];_0x1cad85['enableCommand']('insertImage'),_0x1cad85['descriptionFactory']['registerElementLabel']('imageBlock',_0xb8211a=>getTranslation$1(_0x36eea7,'ELEMENT_IMAGE',_0xb8211a)),_0x1cad85['descriptionFactory']['registerElementLabel']('imageInline',_0x13fe42=>getTranslation$1(_0x36eea7,'ELEMENT_INLINE_IMAGE',_0x13fe42)),_0x1cad85['descriptionFactory']['registerElementLabel']('caption',()=>getTranslation$1(_0x36eea7,'ELEMENT_CAPTION')),_0x73272c['plugins']['has']('ImageUploadEditing')&&_0x1cad85['enableCommand']('uploadImage'),_0x73272c['plugins']['has']('ImageBlockEditing')&&_0x73272c['plugins']['has']('ImageInlineEditing')&&(_0x1cad85['enableCommand']('imageTypeInline',(_0x422c9f,_0x5d72d4)=>{const _0x2ec53e=_0x3f1a3f['getClosestSelectedImageElement'](_0x73272c['model']['document']['selection']);_0x73272c['model']['change'](()=>{_0x1cad85['markBlockFormat'](_0x2ec53e,{'commandName':'imageTypeInline','commandParams':[_0x5d72d4]},[],'convertBlockImageToInline');});}),_0x1cad85['enableCommand']('imageTypeBlock',(_0x190528,_0x48bb68)=>{_0x73272c['model']['change'](_0x83a48a=>{let _0x3a3594=_0x3f1a3f['getClosestSelectedImageElement'](_0x73272c['model']['document']['selection']),_0x21fec6=_0x83a48a['createRangeOn'](_0x3a3594);const _0x5aaa72=ModelLivePosition['fromPosition'](_0x21fec6['start'],'toPrevious'),_0x2b7aff=ModelLivePosition['fromPosition'](_0x21fec6['end'],'toNext');_0x1cad85['forceDefaultExecution'](()=>_0x190528(_0x48bb68)),_0x3a3594=_0x3f1a3f['getClosestSelectedImageElement'](_0x73272c['model']['document']['selection']),_0x21fec6=_0x83a48a['createRangeOn'](_0x3a3594);const _0x30e651=_0x83a48a['createRange'](_0x5aaa72,_0x2b7aff);_0x5aaa72['detach'](),_0x2b7aff['detach'](),_0x1cad85['markBlockFormat'](_0x3a3594,{'commandName':'imageTypeInline','commandParams':[_0x48bb68]},[],'convertInlineImageToBlock'),_0x30e651['start']['isBefore'](_0x21fec6['start'])&&_0x1cad85['markInsertion'](_0x83a48a['createRange'](_0x30e651['start'],_0x21fec6['start']),'convertInlineImageToBlock'),_0x21fec6['end']['isBefore'](_0x30e651['end'])&&_0x1cad85['markInsertion'](_0x83a48a['createRange'](_0x21fec6['end'],_0x30e651['end']),'convertInlineImageToBlock');});}),_0x1cad85['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1cad85['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1cad85['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1cad85['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1cad85['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1cad85['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2c337f])=>{const _0x2c2b9d=_0x1cad85['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3b94f3=_0x2c337f['start'],_0x5eb2ec=_0x2c337f['end'];const _0x3e73f4=_0x73272c['model']['schema']['getNearestSelectionRange'](_0x3b94f3,'backward'),_0x398c51=_0x73272c['model']['schema']['getNearestSelectionRange'](_0x5eb2ec,'forward');_0x3e73f4['isCollapsed']&&(_0x3b94f3=_0x3e73f4['start']),_0x398c51['isCollapsed']&&(_0x5eb2ec=_0x398c51['end']),_0x2c2b9d([_0x73272c['model']['createRange'](_0x3b94f3,_0x5eb2ec)]);}),_0x1cad85['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2659aa),_0x1cad85['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2659aa)),_0x73272c['plugins']['has']('ImageCaptionEditing')&&(_0x1cad85['enableCommand']('toggleImageCaption',(_0x31fcfc,_0x221432)=>{const _0x40b776=_0x73272c['plugins']['get']('ImageCaptionUtils');let _0x3c9990=_0x3f1a3f['getClosestSelectedImageElement'](_0x73272c['model']['document']['selection']),_0x365f42=_0x40b776['getCaptionFromImageModelElement'](_0x3c9990);_0x73272c['model']['change'](()=>{if(_0x365f42)return void _0x1cad85['markDeletion'](_0x73272c['model']['createRangeOn'](_0x365f42));const _0x47efc5=_0x3f1a3f['isBlockImage'](_0x3c9990);_0x31fcfc(_0x221432),_0x3c9990=_0x3f1a3f['getClosestSelectedImageElement'](_0x73272c['model']['document']['selection']),_0x365f42=_0x40b776['getCaptionFromImageModelElement'](_0x3c9990),_0x1cad85['markInsertion'](_0x73272c['model']['createRangeOn'](_0x365f42),_0x47efc5?null:'imageCaption');});}),_0x1cad85['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2659aa));const _0x49caf8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x133831(_0x158f5a,_0x3db441){const _0x6eafc6=_0x49caf8['findIndex'](({type:_0x17057b,subType:_0x5a754b})=>_0x158f5a['type']==_0x17057b&&_0x158f5a['subType']==_0x5a754b),_0x59d1b8=_0x49caf8['findIndex'](({type:_0x137104,subType:_0x2e77b4})=>_0x3db441['type']==_0x137104&&_0x3db441['subType']==_0x2e77b4);if(_0x6eafc6<0x0||_0x59d1b8<0x0)return!0x1;const _0x5e3b79=_0x158f5a['getFirstRange'](),_0x559329=_0x3db441['getFirstRange']();if((0x0==_0x6eafc6||0x1==_0x6eafc6)&&0x2==_0x59d1b8&&_0x5e3b79['isIntersecting'](_0x559329))return!0x0;if(0x2==_0x6eafc6&&0x3==_0x59d1b8){const _0x4c1ede=_0x1cad85['_findSuggestions'](_0x5e3b79,'insertion')['filter'](({suggestion:_0x2455f5,meta:_0x75e447})=>_0x75e447['isOwn']&&'convertInlineImageToBlock'==_0x2455f5['subType']);if(_0x4c1ede['length']>0x1&&_0x559329['end']['isEqual'](_0x5e3b79['start']))return!0x0;if(0x1==_0x4c1ede['length']&&(_0x5e3b79['start']['isEqual'](_0x559329['end'])||_0x5e3b79['end']['isEqual'](_0x559329['start'])))return!0x0;}if(0x3==_0x6eafc6&&0x3==_0x59d1b8&&_0x5e3b79['start']['isBefore'](_0x559329['start'])){const _0x470ecc=_0x5e3b79['end']['nodeAfter'],_0x274c68=_0x559329['start']['nodeBefore'];return _0x3f1a3f['isBlockImage'](_0x470ecc)&&_0x470ecc===_0x274c68;}return!0x1;}function _0x2659aa(_0x1e1791,_0x2afbc7){return _0x133831(_0x1e1791,_0x2afbc7)?[_0x1e1791,_0x2afbc7]:_0x133831(_0x2afbc7,_0x1e1791)?[_0x2afbc7,_0x1e1791]:null;}_0x73272c['plugins']['has']('ImageResize')&&(_0x1cad85['enableDefaultAttributesIntegration']('resizeImage'),_0x1cad85['registerBlockAttribute']('resizedWidth'),_0x1cad85['descriptionFactory']['registerAttributeLabel']('resizedWidth',getTranslation$1(_0x36eea7,'FORMAT_IMAGE_SIZE'))),_0x73272c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1cad85['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1cad85['registerBlockAttribute']('alt')),_0x73272c['plugins']['has']('PictureEditing')&&(_0x1cad85['registerBlockAttribute']('sources'),_0x1cad85['descriptionFactory']['registerDescriptionCallback'](_0xac7c93=>{if('attribute'!=_0xac7c93['type'])return;const {data:_0x254912}=_0xac7c93;return _0x254912&&'sources'==_0x254912['key']?{'type':'format','content':''}:void 0x0;})),_0x73272c['plugins']['has']('ImageSizeAttributes')&&(_0x1cad85['registerBlockAttribute']('width'),_0x1cad85['registerBlockAttribute']('height'),_0x1cad85['descriptionFactory']['registerDescriptionCallback'](_0x2bd1c0=>{if('attribute'!=_0x2bd1c0['type'])return;const {data:_0x429906}=_0x2bd1c0;return!_0x429906||'width'!=_0x429906['key']&&'height'!=_0x429906['key']?void 0x0:{'type':'format','content':''};})),_0x1cad85['descriptionFactory']['registerDescriptionCallback'](_0xd96e2b=>{if(!!_0x49caf8['find'](({type:_0x594b9e,subType:_0x48b895})=>_0xd96e2b['type']==_0x594b9e&&_0xd96e2b['subType']==_0x48b895))return _0xd96e2b['previous']?{}:void 0x0;}),_0x1cad85['descriptionFactory']['registerDescriptionCallback'](_0x17d571=>{if('insertion'==_0x17d571['type']||'deletion'==_0x17d571['type']){const _0x4bde9e=_0x17d571['getContainedElement']();if(_0x4bde9e&&_0x4bde9e['is']('element','caption'))return{'type':'insertion'==_0x17d571['type']?'addObject':'removeObject','element':_0x4bde9e,'quantity':0x1};}}),_0x1cad85['descriptionFactory']['registerDescriptionCallback'](_0x5555bf=>'formatBlock'==_0x5555bf['type']&&'convertInlineImageToBlock'==_0x5555bf['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5555bf['type']&&'convertBlockImageToInline'==_0x5555bf['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1cad85['descriptionFactory']['registerDescriptionCallback'](_0x9819a1=>{if('attribute'!=_0x9819a1['type'])return;const {data:_0x5303c1}=_0x9819a1;if(!_0x5303c1||'alt'!=_0x5303c1['key'])return;const _0xd08682=_0x5303c1['newValue'];return _0xd08682?{'type':'format','content':getTranslation$1(_0x36eea7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xd08682+'\x22')}:{'type':'format','content':getTranslation$1(_0x36eea7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x429d11=this['editor'],_0x3b4512=_0x429d11['locale'];_0x429d11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59d95e=>{if('formatBlock'!=_0x59d95e['type']&&'formatInline'!=_0x59d95e['type'])return;const {data:_0x153803}=_0x59d95e;if(_0x153803){if('imageTextAlternative'==_0x153803['commandName']){const _0x4b227f=_0x153803['commandParams'][0x0]['newValue'];return _0x4b227f?{'type':'format','content':getTranslation$1(_0x3b4512,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4b227f+'\x22')}:{'type':'format','content':getTranslation$1(_0x3b4512,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x153803['commandName']){const _0x3664ef=_0x153803['commandParams'][0x0]['width'];return _0x3664ef?{'type':'format','content':getTranslation$1(_0x3b4512,'*Set\x20image\x20width:*\x20%0',_0x3664ef)}:{'type':'format','content':getTranslation$1(_0x3b4512,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2c7faa=this['editor']['locale'],_0x344aeb=this['editor']['plugins']['get']('TrackChangesEditing');_0x344aeb['enableDefaultAttributesIntegration']('replaceImageSource'),_0x344aeb['registerBlockAttribute']('src'),_0x344aeb['descriptionFactory']['registerDescriptionCallback'](_0x59d62c=>{if('attribute'!=_0x59d62c['type'])return;const {data:_0x4532ac}=_0x59d62c;return _0x4532ac&&'src'==_0x4532ac['key']?_0x4532ac['newValue']&&_0x4532ac['oldValue']?{'type':'format','content':getTranslation$1(_0x2c7faa,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3a7871=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a7871['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3a7871['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a7871['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3a7871['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56593b=this['editor'],_0x4167fb=_0x56593b['locale'];_0x56593b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd6d8b5=>{if('formatBlock'!=_0xd6d8b5['type']&&'formatInline'!=_0xd6d8b5['type'])return;const {data:_0x327af3}=_0xd6d8b5;if(!_0x327af3||'replaceImageSource'!=_0x327af3['commandName'])return;return{'type':'format','content':getTranslation$1(_0x4167fb,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends Plugin{['afterInit'](){const _0x4b7f44=this['editor'];if(!_0x4b7f44['plugins']['has']('ImageStyleEditing'))return;const _0x720545=_0x4b7f44['plugins']['get']('TrackChangesEditing'),_0x4eeffb=_0x4b7f44['plugins']['get']('ImageUtils'),_0x42e00b={};_0x720545['enableCommand']('imageStyle',(_0x5c10c5,_0x210c1e)=>{const _0x169979=_0x4b7f44['plugins']['get']('Users')['me'],_0x10e30a=_0x4b7f44['commands']['get']('imageStyle');let _0x188cf1=_0x4eeffb['getClosestSelectedImageElement'](_0x4b7f44['model']['document']['selection']),_0x3ac55d=_0x4b7f44['model']['createRangeOn'](_0x188cf1),_0x32d538=_0x10e30a['value'];if(_0x32d538==_0x210c1e['value'])return;const _0x183932={'commandName':'imageStyle','commandParams':[_0x210c1e],'formatGroupId':uid()};_0x4b7f44['model']['change'](()=>{if(_0x720545['getSuggestions']()['filter'](_0x3f0cb9=>_0x3f0cb9['isInContent']&&_0x169979==_0x3f0cb9['author']&&('formatBlock'==_0x3f0cb9['type']||'formatInline'==_0x3f0cb9['type'])&&('imageStylePreApply'==_0x3f0cb9['subType']||'imageStylePostApply'==_0x3f0cb9['subType'])&&_0x3f0cb9['getFirstRange']()['isEqual'](_0x3ac55d))['forEach'](_0x563625=>_0x720545['discardSuggestion'](_0x563625['head'])),_0x188cf1=_0x4eeffb['getClosestSelectedImageElement'](_0x4b7f44['model']['document']['selection']),_0x3ac55d=_0x4b7f44['model']['createRangeOn'](_0x188cf1),_0x10e30a['refresh'](),_0x4b7f44['commands']['get']('imageTypeInline')['refresh'](),_0x4b7f44['commands']['get']('imageTypeBlock')['refresh'](),_0x32d538=_0x10e30a['value'],_0x32d538!=_0x210c1e['value'])return _0x4eeffb['isInlineImage'](_0x188cf1)&&_0x10e30a['shouldConvertImageType'](_0x210c1e['value'],_0x188cf1)?(_0x5c10c5({..._0x210c1e,'setImageSizes':!0x1}),_0x188cf1=_0x4eeffb['getClosestSelectedImageElement'](_0x4b7f44['model']['document']['selection']),void _0x720545['markBlockFormat'](_0x188cf1,{..._0x183932,'commandReversedParams':[{'value':_0x32d538||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4eeffb['isBlockImage'](_0x188cf1)?_0x720545['markBlockFormat'](_0x188cf1,_0x183932,[],'imageStylePostApply'):_0x720545['markInlineFormat'](_0x3ac55d,_0x183932,'imageStylePostApply'));});});for(const _0x59f843 of _0x4b7f44['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x42e00b[_0x59f843['name']]=_0x59f843['title']['toLowerCase']();_0x720545['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x720545['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x720545['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x720545['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3943f6])=>{_0x4eeffb['setImageNaturalSizeAttributes'](_0x3943f6['getContainedElement']());}),_0x720545['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xf82870,_0x2e5a97)=>{_0x720545['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xf82870,{'commandName':_0x2e5a97['commandName'],'commandParams':_0x2e5a97['commandReversedParams']});}),_0x720545['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x393a6f,_0x3de54b){if(_0x4e41b4(_0x393a6f,_0x3de54b))return[_0x393a6f,_0x3de54b];if(_0x4e41b4(_0x3de54b,_0x393a6f))return[_0x3de54b,_0x393a6f];return null;});const _0x38fde6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4e41b4(_0x3e6cb0,_0x3392ec){const _0x25a46f=_0x38fde6['findIndex'](({type:_0x514074,subType:_0x1f36cf})=>_0x3e6cb0['type']==_0x514074&&_0x3e6cb0['subType']==_0x1f36cf),_0x4200fe=_0x38fde6['findIndex'](({type:_0x243b16,subType:_0x3cd64d})=>_0x3392ec['type']==_0x243b16&&_0x3392ec['subType']==_0x3cd64d);if(_0x25a46f<0x0||_0x4200fe<0x0)return!0x1;const _0x4bba65=_0x3e6cb0['getFirstRange'](),_0x3aa6d2=_0x3392ec['getFirstRange']();if((0x0==_0x25a46f||0x1==_0x25a46f)&&0x2==_0x4200fe&&_0x4bba65['isIntersecting'](_0x3aa6d2))return!0x0;if(0x2==_0x25a46f&&0x3==_0x4200fe){const _0x39fee5=_0x720545['_findSuggestions'](_0x4bba65,'insertion')['filter'](({suggestion:_0x355f1a,meta:_0x1dbb8f})=>_0x1dbb8f['isOwn']&&'convertInlineImageToBlock'==_0x355f1a['subType']);if(_0x39fee5['length']>0x1&&_0x3aa6d2['end']['isEqual'](_0x4bba65['start']))return!0x0;if(0x1==_0x39fee5['length']&&(_0x4bba65['start']['isEqual'](_0x3aa6d2['end'])||_0x4bba65['end']['isEqual'](_0x3aa6d2['start'])))return!0x0;}if(0x3==_0x25a46f&&0x3==_0x4200fe&&_0x4bba65['start']['isBefore'](_0x3aa6d2['start'])){const _0x227bce=_0x4bba65['end']['nodeAfter'],_0x46fcc0=_0x3aa6d2['start']['nodeBefore'];return _0x4eeffb['isBlockImage'](_0x227bce)&&_0x227bce===_0x46fcc0;}return!0x1;}_0x4b7f44['model']['document']['registerPostFixer'](()=>{let _0x8ac65b=!0x1;const _0x514a71=Array['from'](_0x4b7f44['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x29ced7,data:_0x159ecd}of _0x514a71){const {group:_0x58a2cc,type:_0x4c3adb,subType:_0x4dc2c2,id:_0x215173}=_0x720545['_splitMarkerName'](_0x29ced7);if('suggestion'==_0x58a2cc&&_0x720545['hasSuggestion'](_0x215173)){if('formatBlock'==_0x4c3adb&&('imageStylePreApply'==_0x4dc2c2||'imageStylePostApply'==_0x4dc2c2)){const _0x45a90a=_0x720545['getSuggestion'](_0x215173);if(_0x159ecd['newRange']){const _0x4514ca=_0x45a90a['getFirstRange']()['getContainedElement']();if(_0x4eeffb['isBlockImage'](_0x4514ca))continue;_0x720545['discardSuggestion'](_0x45a90a),_0x8ac65b=!0x0;}}if('insertion'==_0x4c3adb&&'imageCaption'==_0x4dc2c2&&!_0x159ecd['newRange']){const _0x3baaac=_0x720545['getSuggestion'](_0x215173);_0x3baaac['next']&&_0x3baaac['next']['isInContent']&&(_0x720545['discardSuggestion'](_0x3baaac['next']),_0x8ac65b=!0x0);}}}return _0x8ac65b;}),this['_registerLegacyDescription'](_0x42e00b);}['_registerLegacyDescription'](_0x409e93){const _0x2d6443=this['editor'],_0x23321c=_0x2d6443['locale'];_0x2d6443['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e3e1c=>{if('formatBlock'!=_0x3e3e1c['type']&&'formatInline'!=_0x3e3e1c['type'])return;const {data:_0x210e16}=_0x3e3e1c;if(!_0x210e16||'imageStyle'!=_0x210e16['commandName'])return;const _0x4a9ec7=_0x210e16['commandParams'][0x0]['value'];return _0x2f5f1c('side'===_0x4a9ec7?getTranslation$1(_0x23321c,'FORMAT_SIDE_IMAGE'):_0x409e93[_0x4a9ec7]||_0x4a9ec7);function _0x2f5f1c(_0x3ffdb7){return{'type':'format','content':getTranslation$1(_0x23321c,'*Format:*\x20%0',_0x3ffdb7)};}});}}class TrackChangesImportWord extends Plugin{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4518c6){super(_0x4518c6),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x56de78=this['editor'],_0xaf4a97=_0x56de78['commands']['get']('importWord'),_0x384369=_0x56de78['commands']['get']('trackChanges');_0xaf4a97&&(_0xaf4a97['on']('execute',(_0x178ce9,[,_0x2350d8])=>{this['_trackChangesValueDuringImport']=_0x384369['value'],_0x2350d8['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xaf4a97,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xaf4a97,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x384369['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x56de78['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x37e6a5,_0x650b9e){const {suggestions:_0x2ee779}=_0x650b9e,_0x43b63b=this['editor']['commands']['get']('trackChanges'),_0x30fbea=_0x43b63b['value'];this['_trackChangesValueDuringImport']!==_0x30fbea&&(_0x43b63b['execute'](),this['_trackChangesExecuted']=!0x0),_0x2ee779&&_0x2ee779['forEach'](({id:_0x5cdba0,type:_0x4895ac,author:_0x137e46,created_at:_0x5330f8})=>{const _0x1629d4={'id':_0x5cdba0,'type':_0x4895ac,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x137e46,'createdAt':_0x5330f8?new Date(_0x5330f8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1629d4);});}}class TrackChangesIndent extends Plugin{['afterInit'](){const _0x539cc2=this['editor'],_0x193779=_0x539cc2['plugins']['get']('TrackChangesEditing');if(_0x539cc2['plugins']['has']('IndentEditing')&&(_0x193779['enableCommand']('indent'),_0x193779['enableCommand']('outdent')),_0x539cc2['plugins']['has']('IndentBlock')){for(const _0x3a5b4a of['indentBlock','outdentBlock'])_0x193779['enableDefaultAttributesIntegration'](_0x3a5b4a);}const _0x5d38d5=_0x539cc2['locale'];_0x193779['registerBlockAttribute']('blockIndent'),_0x193779['descriptionFactory']['registerAttributeLabel']('blockIndent',getTranslation$1(_0x5d38d5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e6765=this['editor'],_0x2059bb=_0x2e6765['locale'],_0x5e9b92=_0x2e6765['plugins']['get']('TrackChangesEditing');_0x5e9b92['descriptionFactory']['registerDescriptionCallback'](_0x2f56fb=>{if('formatBlock'!=_0x2f56fb['type'])return;const {data:_0x4ef1e1}=_0x2f56fb;if(!_0x4ef1e1)return;if('indentBlock'!=_0x4ef1e1['commandName']&&'outdentBlock'!=_0x4ef1e1['commandName'])return;const _0x4ac361=_0x2f56fb['getItems']()[0x0],_0x1e9041=_0x5e9b92['descriptionFactory']['getItemLabel'](_0x4ac361);return'indentBlock'==_0x4ef1e1['commandName']?{'type':'format','content':getTranslation$1(_0x2059bb,'*Indent:*\x20%0',_0x1e9041)}:'outdentBlock'==_0x4ef1e1['commandName']?{'type':'format','content':getTranslation$1(_0x2059bb,'*Outdent:*\x20%0',_0x1e9041)}:void 0x0;});}}class TrackChangesInputCommand extends Plugin{static get['requires'](){return[Input];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends Plugin{['afterInit'](){const _0x11eaf=this['editor'];if(!_0x11eaf['plugins']['has']('LinkEditing'))return;const _0x33f10a=_0x11eaf['plugins']['get']('TrackChangesEditing'),_0x1451ce=_0x11eaf['commands']['get']('link');_0x33f10a['enableDefaultAttributesIntegration']('link'),_0x33f10a['enableDefaultAttributesIntegration']('unlink'),_0x33f10a['registerInlineAttribute']('linkHref');for(const _0x445be4 of _0x1451ce['manualDecorators'])_0x33f10a['registerInlineAttribute'](_0x445be4['id']),_0x33f10a['descriptionFactory']['registerAttributeLabel'](_0x445be4['id'],'link\x20('+_0x445be4['label']['toLowerCase']()+')');_0x33f10a['descriptionFactory']['registerDescriptionCallback'](_0x3395a9=>{if('attribute'!=_0x3395a9['type'])return;const {data:_0x567065}=_0x3395a9;if(!_0x567065||'linkHref'!=_0x567065['key'])return;const _0x3601b8=_0x567065['newValue'],_0x21cb6b=_0x11eaf['locale'];return{'type':'format','content':null==_0x3601b8?getTranslation$1(_0x21cb6b,'*Remove\x20link*'):getTranslation$1(_0x21cb6b,'*Set\x20link:*\x20%0','\x22'+_0x3601b8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x290920=this['editor'],_0x35e423=_0x290920['locale'];_0x290920['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b6528=>{if('formatInline'!=_0x1b6528['type'])return;const {data:_0x383e10}=_0x1b6528;if(_0x383e10){if('link'==_0x383e10['commandName']){const _0x516d1d=_0x383e10['commandParams'][0x0];return{'type':'format','content':getTranslation$1(_0x35e423,'*Set\x20link:*\x20%0','\x22'+_0x516d1d+'\x22')};}return'unlink'==_0x383e10['commandName']?{'type':'format','content':getTranslation$1(_0x35e423,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends Plugin{['afterInit'](){const _0x5e693d=this['editor'],_0x2d7372=_0x5e693d['locale'];if(!_0x5e693d['plugins']['has']('LegacyListEditing'))return;const _0x552bba=_0x5e693d['plugins']['get']('TrackChangesEditing'),_0x2f4baf=_0x5e693d['plugins']['has']('LegacyTodoListEditing');function _0x1a8533(_0x5f4d06){return()=>{const _0x48ecb4=_0x5e693d['model']['document']['selection'],_0x3716f3=_0x5e693d['commands']['get'](_0x5f4d06);if(_0x3716f3['value'])return void _0x5e693d['execute']('paragraph',{});const _0x45729f=_0x5f4d06['slice'](0x0,-0x4),_0xa12ecf=getBlocksToMarkForListTypeChange(_0x48ecb4['getSelectedBlocks'](),_0x45729f,_0x5e693d['model']['schema']);_0x5e693d['model']['change'](()=>{for(const _0x4aa6c7 of _0xa12ecf)_0x552bba['markBlockFormat'](_0x4aa6c7,{'commandName':_0x5f4d06,'commandParams':[{'forceValue':!_0x3716f3['value']}],'formatGroupId':'blockName'},getBlocksAffectedByListTypeChange(_0x4aa6c7));});};}function _0x4635aa(_0x982199){return()=>{const _0x229173=getBlocksToMarkForIndentChange(_0x5e693d['model']['document']['selection']['getSelectedBlocks']()),_0x89a996=_0x5e693d['model']['createRange'](_0x5e693d['model']['createPositionAt'](_0x229173[0x0],'before'),_0x5e693d['model']['createPositionAt'](_0x229173[_0x229173['length']-0x1],'end'));_0x5e693d['model']['change'](()=>{_0x552bba['markBlockFormat'](_0x89a996,{'commandName':_0x982199,'commandParams':[],'formatGroupId':'listIndent'},getBlocksAffectedByIndent(_0x229173));});};}_0x552bba['enableCommand']('numberedList',_0x1a8533('numberedList')),_0x552bba['enableCommand']('bulletedList',_0x1a8533('bulletedList')),_0x2f4baf&&_0x552bba['enableCommand']('todoList',_0x1a8533('todoList')),_0x552bba['enableCommand']('indentList',_0x4635aa('indentList')),_0x552bba['enableCommand']('outdentList',_0x4635aa('outdentList')),_0x2f4baf&&_0x552bba['enableCommand']('checkTodoList',()=>{const _0x4161e4=_0x5e693d['commands']['get']('checkTodoList'),_0x71cbef=Array['from'](_0x4161e4['_selectedElements']);_0x71cbef['filter'](_0xa02816=>_0xa02816['getAttribute']('todoListChecked')!=_0x4161e4['value']),_0x5e693d['model']['change'](()=>{for(const _0x4ce7d0 of _0x71cbef)_0x552bba['markBlockFormat'](_0x4ce7d0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4161e4['value']}]});});}),_0x552bba['descriptionFactory']['registerElementLabel']('listItem',_0x15b141=>getTranslation$1(_0x2d7372,'ELEMENT_LIST_ITEM',_0x15b141)),_0x552bba['descriptionFactory']['registerDescriptionCallback'](_0x1e4735=>{if('formatBlock'!=_0x1e4735['type']&&'formatInline'!=_0x1e4735['type'])return;const {data:_0x137562}=_0x1e4735;if(_0x137562){if('numberedList'==_0x137562['commandName']||'bulletedList'==_0x137562['commandName']||'todoList'==_0x137562['commandName'])switch(_0x137562['commandName']['replace']('List','')){case'bulleted':return _0x527690(getTranslation$1(_0x2d7372,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x527690(getTranslation$1(_0x2d7372,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x527690(getTranslation$1(_0x2d7372,'ELEMENT_TODO_LIST'));}if('indentList'==_0x137562['commandName'])return{'type':'format','content':getTranslation$1(_0x2d7372,'*Indent:*\x20%0',getTranslation$1(_0x2d7372,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x137562['commandName'])return{'type':'format','content':getTranslation$1(_0x2d7372,'*Outdent:*\x20%0',getTranslation$1(_0x2d7372,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x137562['commandName'])return _0x137562['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x2d7372,'*Check\x20item*')}:{'type':'format','content':getTranslation$1(_0x2d7372,'*Uncheck\x20item*')};}function _0x527690(_0x1c806c){return{'type':'format','content':getTranslation$1(_0x2d7372,'*Change\x20to:*\x20%0',_0x1c806c)};}});}}function getBlocksToMarkForListTypeChange(_0x296675,_0x26293f,_0x95c28f){let _0x185fee=Array['from'](_0x296675)['filter'](_0x5054ac=>checkCanBecomeListItem(_0x5054ac,_0x95c28f));_0x185fee=_0x185fee['filter'](_0xf79e93=>!_0xf79e93['is']('element','listItem')||_0xf79e93['getAttribute']('listType')!=_0x26293f);const _0x584987=new Set();for(const _0x5c338e of _0x185fee)_0x5c338e['is']('element','listItem')?_0x584987['add'](getListHead(_0x5c338e)):_0x584987['add'](_0x5c338e);return Array['from'](_0x584987);}function checkCanBecomeListItem(_0x5de173,_0x1e24b1){return _0x1e24b1['checkChild'](_0x5de173['parent'],'listItem')&&!_0x1e24b1['isObject'](_0x5de173);}function getBlocksToMarkForIndentChange(_0x6168a8){let _0x1faa61=Array['from'](_0x6168a8);const _0x22ac93=_0x1faa61['findIndex'](_0x42afae=>'listItem'!=_0x42afae['name']);return _0x22ac93>-0x1&&(_0x1faa61=_0x1faa61['slice'](0x0,_0x22ac93)),_0x1faa61;}function getListHead(_0x151179){const _0x1021d5=_0x151179['getAttribute']('listIndent');if(0x0==_0x1021d5)return _0x151179;let _0x5d1656=_0x151179;for(;_0x151179['previousSibling']&&_0x151179['previousSibling']['is']('element','listItem');){const _0x5b957f=_0x151179['previousSibling']['getAttribute']('listIndent');if(_0x5b957f==_0x1021d5)_0x5d1656=_0x151179['previousSibling'];else{if(_0x5b957f<_0x1021d5)break;}_0x151179=_0x151179['previousSibling'];}return _0x5d1656;}function getBlocksAffectedByListTypeChange(_0x19e7d1){const _0x2e49f0=[];if(_0x19e7d1['is']('element','listItem')&&_0x19e7d1['getAttribute']('listIndent')>0x0){let _0x554ee8=_0x19e7d1['nextSibling'];for(;_0x554ee8&&'listItem'==_0x554ee8['name']&&_0x554ee8['getAttribute']('listIndent')==_0x19e7d1['getAttribute']('listIndent');)_0x2e49f0['push'](_0x554ee8),_0x554ee8=_0x554ee8['nextSibling'];}return _0x2e49f0;}function getBlocksAffectedByIndent(_0xd03502){const _0x1537e6=new Set();for(const _0x59fb37 of _0xd03502){let _0x4458d0=_0x59fb37['nextSibling'];for(;_0x4458d0&&_0x4458d0['getAttribute']('listIndent')>_0x59fb37['getAttribute']('listIndent');)_0x1537e6['add'](_0x4458d0),_0x4458d0=_0x4458d0['nextSibling'];}return Array['from'](_0x1537e6);}class TrackChangesLegacyListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x39bc42=this['editor']['config']['get']('list.properties'),_0x29923a=this['editor']['plugins']['get']('TrackChangesEditing');_0x39bc42['styles']&&_0x29923a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x39bc42['reversed']&&_0x29923a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x39bc42['startIndex']&&_0x29923a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x29923a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x262144,_0x522d33={}){const _0x357de0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33dec8=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x357de0['markMultiRangeBlockFormat'](_0x33dec8,{'commandName':'listStyle','commandParams':[{'type':_0x522d33['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5ae7da,_0x10680b={}){const _0x32e8a9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14f5b8=this['_getSuggestionBlocks'](_0x5011e0=>_0x5011e0['is']('element','listItem')&&'numbered'===_0x5011e0['getAttribute']('listType'));if(_0x14f5b8['length']<0x1)return;const _0xa160d=_0x14f5b8['map'](_0x2496f7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2496f7,'before'),this['editor']['model']['createPositionAt'](_0x2496f7,0x0)));this['editor']['model']['change'](()=>{_0x32e8a9['markMultiRangeBlockFormat'](_0xa160d,{'commandName':'listReversed','commandParams':[{'reversed':_0x10680b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xb4b82d,_0x1842a7={}){const _0x3ef5a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26d544=this['_getSuggestionBlocks'](_0x384545=>_0x384545['is']('element','listItem')&&'numbered'===_0x384545['getAttribute']('listType'));if(_0x26d544['length']<0x1)return;const _0x1e2e36=_0x26d544['map'](_0x35713a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x35713a,'before'),this['editor']['model']['createPositionAt'](_0x35713a,0x0)));this['editor']['model']['change'](()=>{_0x3ef5a6['markMultiRangeBlockFormat'](_0x1e2e36,{'commandName':'listStart','commandParams':[{'startIndex':_0x1842a7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5b1236){if('formatBlock'!=_0x5b1236['type']&&'formatInline'!=_0x5b1236['type'])return;const _0x5c19be=this['editor']['locale'],{data:_0xae5873}=_0x5b1236;if(!_0xae5873)return;let _0xe1feb3,_0x8b1c6a;switch(_0xae5873['commandName']){case'listStyle':_0xe1feb3='*Change\x20to:*\x20%0',_0x8b1c6a={'type':'format','content':getTranslation$1(_0x5c19be,_0xe1feb3,getTranslation$1(_0x5c19be,this['_getTranslationKeyForListStyle'](_0xae5873['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe1feb3=_0xae5873['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x8b1c6a={'type':'format','content':getTranslation$1(_0x5c19be,_0xe1feb3)};break;case'listStart':_0xe1feb3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x8b1c6a={'type':'format','content':getTranslation$1(_0x5c19be,_0xe1feb3,_0xae5873['commandParams'][0x0]['startIndex'])};}return _0x8b1c6a;}['_getSuggestionBlocksForListStyle'](){const _0x12e382=this['editor']['plugins']['get']('LegacyListUtils');let _0x3cd31e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3cd31e[0x0]?.['is']('element','listItem')&&_0x3cd31e['unshift'](..._0x12e382['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3cd31e[_0x3cd31e['length']-0x1]?.['is']('element','listItem')&&_0x3cd31e['push'](..._0x12e382['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3cd31e=[...new Set(_0x3cd31e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3cd31e=_0x3cd31e['filter'](_0x435eb5=>_0x435eb5['is']('element','listItem'))),_0x3cd31e;}['_getSuggestionBlocks'](_0x3d55fb){const _0xf67277=this['editor']['plugins']['get']('LegacyListUtils');let _0x2cd923=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3d55fb)['map'](_0x4c25af=>{const _0x5a9dc4=this['editor']['model']['createPositionAt'](_0x4c25af,0x0);return[..._0xf67277['getSiblingNodes'](_0x5a9dc4,'backward'),..._0xf67277['getSiblingNodes'](_0x5a9dc4,'forward')];})['flat']();return _0x2cd923=[...new Set(_0x2cd923)],_0x2cd923;}['_getTranslationKeyForListStyle'](_0x508f35){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x508f35)||'default')['toUpperCase']()+'_LIST_'+_0x508f35['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends Plugin{['afterInit'](){const _0x37b9fc=this['editor'];if(!_0x37b9fc['plugins']['has']('MediaEmbedEditing'))return;const _0x3a1e37=_0x37b9fc['plugins']['get']('TrackChangesEditing'),_0x3d92e9=_0x37b9fc['locale'];_0x3a1e37['enableCommand']('mediaEmbed'),_0x3a1e37['descriptionFactory']['registerElementLabel']('media',_0x35e031=>getTranslation$1(_0x3d92e9,'ELEMENT_MEDIA',_0x35e031)),_0x37b9fc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2aeb90,{writer:_0xfdedb2,options:_0x6feb0d})=>{if(_0x6feb0d['showSuggestionHighlights'])return _0xfdedb2['createEmptyElement']('div');},'converterPriority':'high'}),_0x37b9fc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x15fad8,_0x5953d6,_0x156f16)=>{_0x156f16['options']['showSuggestionHighlights']&&_0x15fad8['stop']();},{'priority':'high'});}}class TrackChangesMention extends Plugin{['afterInit'](){const _0x379a31=this['editor'];_0x379a31['plugins']['has']('MentionEditing')&&_0x379a31['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends Plugin{['afterInit'](){const _0x5b1f6d=this['editor'];if(!_0x5b1f6d['plugins']['has']('MergeFieldsEditing'))return;const _0x3d60f2=_0x5b1f6d['plugins']['get']('TrackChangesEditing'),_0x4af878=_0x5b1f6d['locale'];_0x3d60f2['enableCommand']('insertMergeField'),_0x3d60f2['enableCommand']('insertMergeFieldBlock'),_0x3d60f2['enableCommand']('insertMergeFieldImage'),_0x3d60f2['descriptionFactory']['registerElementLabel']('mergeField',_0xbad5f7=>getTranslation$1(_0x4af878,'ELEMENT_MERGE_FIELD',_0xbad5f7)),_0x3d60f2['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2bbf6d=>getTranslation$1(_0x4af878,'ELEMENT_MERGE_FIELD',_0x2bbf6d)),_0x3d60f2['descriptionFactory']['registerDescriptionCallback'](_0x220dc6=>{if('insertion'!=_0x220dc6['type']&&'deletion'!=_0x220dc6['type'])return;const _0x48bb81=_0x220dc6['getContainedElement']();if(null==_0x48bb81)return;const _0xf48aaa=_0x5b1f6d['plugins']['get']('MergeFieldsEditing');let _0x14065c;switch(_0xf48aaa['getMergeFieldType'](_0x48bb81)){case null:return;case'image':{const _0x4f7cc4=_0xf48aaa['unwrapAffixes'](_0x48bb81['getAttribute']('src'));_0x14065c=_0xf48aaa['getLabel'](_0x4f7cc4)||_0x4f7cc4;break;}default:{const _0x3578ed=_0x48bb81['getAttribute']('id');_0x14065c=_0xf48aaa['getLabel'](_0x3578ed)||_0x3578ed;break;}}return'insertion'==_0x220dc6['type']?{'type':'insertion','content':getTranslation$1(_0x4af878,'*Insert:*\x20%0','\x22'+_0x14065c+'\x22\x20'+getTranslation$1(_0x4af878,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':getTranslation$1(_0x4af878,'*Remove:*\x20%0','\x22'+_0x14065c+'\x22\x20'+getTranslation$1(_0x4af878,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends Plugin{['afterInit'](){const _0x359bae=this['editor'],_0x2c1275=_0x359bae['plugins']['get']('TrackChangesEditing');_0x359bae['plugins']['has']('MultiLevelList')&&(_0x2c1275['enableDefaultAttributesIntegration']('multiLevelList'),_0x2c1275['registerBlockAttribute']('listMarkerStyle'),_0x2c1275['descriptionFactory']['registerDescriptionCallback'](_0x3e966e=>this['handleDescriptions'](_0x3e966e)));}['handleDescriptions'](_0x561b0d){const _0x6716a4=this['editor']['locale'],{data:_0x2a5906}=_0x561b0d,_0x61a81f={'type':'format','content':''};if(_0x2a5906&&'listMarkerStyle'==_0x2a5906['key']){if(!_0x2a5906['oldValue'])return{'type':'format','content':getTranslation$1(_0x6716a4,'*Set\x20format:*\x20%0',getTranslation$1(_0x6716a4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2a5906['newValue']+')'};if(!_0x2a5906['newValue']){let _0x470924=_0x561b0d['head'];for(;_0x470924;){if(_0x470924['data']&&'listType'==_0x470924['data']['key']&&_0x470924['data']['newValue'])return _0x61a81f;_0x470924=_0x470924['next'];}return{'type':'format','content':getTranslation$1(_0x6716a4,'*Remove\x20format:*\x20%0',getTranslation$1(_0x6716a4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2a5906['oldValue']+')'};}}}}class TrackChangesPageBreak extends Plugin{['afterInit'](){const _0x5f2f4a=this['editor'];if(!_0x5f2f4a['plugins']['has']('PageBreakEditing'))return;_0x5f2f4a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x14f0df=_0x5f2f4a['plugins']['get']('TrackChangesEditing'),_0x4e2f47=_0x5f2f4a['locale'];_0x14f0df['descriptionFactory']['registerElementLabel']('pageBreak',_0x166bba=>getTranslation$1(_0x4e2f47,'ELEMENT_PAGE_BREAK',_0x166bba));}}class TrackChangesParagraph extends Plugin{['afterInit'](){const _0x5f20fa=this['editor'];if(!_0x5f20fa['plugins']['has']('Paragraph'))return;const _0x54b73b=_0x5f20fa['locale'],_0x1037c2=_0x5f20fa['plugins']['get']('TrackChangesEditing');_0x1037c2['descriptionFactory']['registerElementLabel']('paragraph',_0x5e293e=>getTranslation$1(_0x54b73b,'ELEMENT_PARAGRAPH',_0x5e293e)),_0x1037c2['enableDefaultAttributesIntegration']('paragraph'),_0x1037c2['enableCommand']('insertParagraph'),_0x5f20fa['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',downcastInsertSplitMarkerSuggestion(_0x5f20fa),{'priority':'highest'}),_0x5f20fa['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x28f5e8,_0x42c7f0,_0x46f3b0)=>{_0x46f3b0['options']['showSuggestionHighlights']&&downcastInsertSplitMarkerSuggestion(_0x5f20fa,{'showActiveMarker':!0x1})(_0x28f5e8,_0x42c7f0,_0x46f3b0);},{'priority':'highest'});const _0x2726cc=_0x1037c2['descriptionFactory'];_0x2726cc['registerDescriptionCallback'](_0x59d8d1=>{if('insertion'!==_0x59d8d1['type'])return;const {start:_0x4aa0ac,end:_0x486def}=_0x59d8d1['getFirstRange']();if(!_0x4aa0ac['isTouching'](_0x486def)||!_0x4aa0ac['nodeAfter'])return;const _0x2851a8=_0x5f20fa['model']['schema'],_0x31c77b=_0x4aa0ac['nodeAfter'];return _0x2851a8['isBlock'](_0x31c77b)&&!_0x2851a8['isLimit'](_0x31c77b)&&_0x2851a8['checkChild'](_0x31c77b,'$text')?{'type':'insertion','content':getTranslation$1(_0x54b73b,'*Insert:*\x20%0',_0x2726cc['getItemLabel'](_0x31c77b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ffc0e=this['editor'],_0x6cfec9=_0x2ffc0e['locale'];_0x2ffc0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e1ad5=>{if('formatBlock'!=_0x2e1ad5['type'])return;const {data:_0x322f9c}=_0x2e1ad5;return _0x322f9c&&'paragraph'==_0x322f9c['commandName']?{'type':'format','content':getTranslation$1(_0x6cfec9,'*Change\x20to:*\x20%0',getTranslation$1(_0x6cfec9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function downcastInsertSplitMarkerSuggestion(_0xa52dc6,{showActiveMarker:_0xa0f951=!0x0}={}){return(_0x152494,_0x810c7e,_0x4b0826)=>{const _0x156c7e=_0xa52dc6['plugins']['get']('TrackChangesEditing'),_0x173b11=_0x810c7e['markerRange']['start'],_0x37b2d5=_0x810c7e['markerRange']['end'],_0x54e818=_0xa52dc6['model']['schema'];if(!_0x173b11['isTouching'](_0x37b2d5)||!_0x173b11['nodeAfter'])return;const _0x167191=_0x173b11['nodeAfter'];if(_0x54e818['isBlock'](_0x167191)&&!_0x54e818['isLimit'](_0x167191)&&_0x54e818['checkChild'](_0x167191,'$text')){if(!_0x4b0826['consumable']['consume'](_0x810c7e['markerRange'],_0x152494['name']))return;const {id:_0x122fb0,authorId:_0x20deee}=_0x156c7e['_splitMarkerName'](_0x810c7e['markerName']),_0x490359=_0x4b0826['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x122fb0,'data-author-id':_0x20deee}),_0xe3dcd6=_0x4b0826['mapper']['toViewPosition'](_0x37b2d5);_0xa0f951&&_0x156c7e['activeMarkers']['includes'](_0x810c7e['markerName'])&&_0x4b0826['writer']['addClass']('ck-suggestion-marker--active',_0x490359),_0x4b0826['writer']['insert'](_0xe3dcd6,_0x490359),_0x4b0826['mapper']['bindElementToMarker'](_0x490359,_0x810c7e['markerName']);}};}class TrackChangesReplaceSourceCommand extends Plugin{['afterInit'](){const _0x498830=this['editor'];_0x498830['commands']['get']('replaceSource')&&_0x498830['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends Plugin{['afterInit'](){const _0x2eb8b3=this['editor'];if(!_0x2eb8b3['plugins']['has']('RemoveFormatEditing'))return;_0x2eb8b3['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24bdfa=this['editor'];_0x24bdfa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x227c81=>{if('formatBlock'!=_0x227c81['type']&&'formatInline'!=_0x227c81['type'])return;const {data:_0x5a62dd}=_0x227c81;return _0x5a62dd&&'removeFormat'==_0x5a62dd['commandName']?{'type':'format','content':getTranslation$1(_0x24bdfa['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends Plugin{['afterInit'](){const _0x45d2ac=this['editor'];if(!_0x45d2ac['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x18bcd2=_0x45d2ac['plugins']['get']('TrackChangesEditing');_0x18bcd2['enableCommand']('goToPreviousRestrictedEditingException'),_0x18bcd2['enableCommand']('goToNextRestrictedEditingException');const _0x436a96=_0x45d2ac['plugins']['get']('RestrictedEditingModeEditing');_0x436a96['enableCommand']('trackChanges'),_0x436a96['enableCommand']('acceptSuggestion'),_0x436a96['enableCommand']('discardSuggestion'),_0x436a96['enableCommand']('acceptAllSuggestions'),_0x436a96['enableCommand']('discardAllSuggestions'),_0x436a96['enableCommand']('acceptSelectedSuggestions'),_0x436a96['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends Plugin{['afterInit'](){const _0x92e088=this['editor'];if(!_0x92e088['plugins']['has']('ShiftEnter'))return;const _0x5c88ae=_0x92e088['plugins']['get']('TrackChangesEditing');_0x5c88ae['enableCommand']('shiftEnter'),_0x92e088['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',downcastSplitMergeMarker(_0x92e088),{'priority':'high'}),_0x92e088['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',downcastSplitMergeMarker(_0x92e088),{'priority':'high'}),_0x92e088['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x159edc,_0x4cc1f9,_0x2308c3)=>{_0x2308c3['options']['showSuggestionHighlights']&&downcastSplitMergeMarker(_0x92e088,{'showActiveMarker':!0x1})(_0x159edc,_0x4cc1f9,_0x2308c3);}),_0x5c88ae['descriptionFactory']['registerElementLabel']('softBreak',_0x431326=>getTranslation$1(_0x92e088['locale'],'ELEMENT_LINE_BREAK',_0x431326));}}function downcastSplitMergeMarker(_0x242024,{showActiveMarker:_0x175f2d=!0x0}={}){return(_0x2f627d,_0x20c6b2,_0x4b435b)=>{const _0x6c6598=_0x242024['plugins']['get']('TrackChangesEditing');if(!_0x4b435b['consumable']['test'](_0x20c6b2['markerRange'],_0x2f627d['name']))return;const _0x46673d=_0x242024['model'];for(const _0x1ec7bd of _0x20c6b2['markerRange']['getItems']()){if(!_0x1ec7bd['is']('element','softBreak'))continue;const _0x3c5773='deletion'==_0x20c6b2['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x8f7b12,authorId:_0x188858}=_0x6c6598['_splitMarkerName'](_0x20c6b2['markerName']),_0x5e441a=_0x4b435b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3c5773,'data-suggestion':_0x8f7b12,'data-author-id':_0x188858}),_0x29e6ba=_0x4b435b['mapper']['toViewPosition'](_0x46673d['createPositionBefore'](_0x1ec7bd));_0x175f2d&&_0x6c6598['activeMarkers']['includes'](_0x20c6b2['markerName'])&&_0x4b435b['writer']['addClass']('ck-suggestion-marker--active',_0x5e441a),_0x4b435b['writer']['insert'](_0x29e6ba,_0x5e441a),_0x4b435b['mapper']['bindElementToMarker'](_0x5e441a,_0x20c6b2['markerName']);}};}class TrackChangesStandardEditingMode extends Plugin{['afterInit'](){const _0x4e8965=this['editor'],_0x35af32=_0x4e8965['model'],_0x40ab7c=_0x4e8965['locale'];if(!_0x4e8965['plugins']['has']('StandardEditingModeEditing'))return;const _0x1fc8e0=_0x4e8965['plugins']['get']('TrackChangesEditing'),_0x505238='restrictedEditingException',_0x565324=_0x4e8965['commands']['get'](_0x505238);_0x1fc8e0['enableCommand'](_0x505238,(_0xd80e8,_0x122a89={})=>{const _0x227938=_0x35af32['document']['selection'];if(_0x227938['isCollapsed'])return void _0xd80e8(_0x122a89);const _0x149d92=void 0x0!==_0x122a89['forceValue']?_0x122a89['forceValue']:!_0x565324['value'];_0x35af32['change'](()=>{const _0x529af2=Array['from'](_0x227938['getRanges']());for(const _0x4458aa of _0x529af2){const _0x2eec30=_0x149d92?[_0x4458aa]:getRangesWithAttribute(_0x505238,_0x4458aa,_0x35af32);for(const _0x699dab of _0x2eec30)_0x1fc8e0['markInlineFormat'](_0x699dab,{'commandName':_0x505238,'commandParams':[{'forceValue':_0x149d92}]});}});}),_0x1fc8e0['descriptionFactory']['registerDescriptionCallback'](_0xcc802b=>{if('formatBlock'!=_0xcc802b['type']&&'formatInline'!=_0xcc802b['type'])return;const {data:_0x39fd46}=_0xcc802b;return _0x39fd46&&_0x39fd46['commandName']==_0x505238?_0x39fd46['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x40ab7c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':getTranslation$1(_0x40ab7c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class TrackChangesStylesDropdown extends Plugin{['afterInit'](){const _0x277367=this['editor'];if(!_0x277367['plugins']['has']('Style')||!_0x277367['plugins']['has']('DataSchema'))return;const _0x5e36c4=_0x277367['plugins']['get']('TrackChangesEditing'),_0xbbf351=_0x277367['locale'],_0x211ada=_0x277367['config']['get']('style')||{},_0x4df2b6=_0x277367['plugins']['get']('GeneralHtmlSupport'),_0x3e3f10=_0x277367['plugins']['get']('StyleUtils')['normalizeConfig'](_0x277367['plugins']['get']('DataSchema'),_0x211ada['definitions']);_0x5e36c4['enableDefaultAttributesIntegration']('style');const _0x1faa7e=new Set();for(const _0x26d7a9 of _0x3e3f10['block']){const _0x1d44e6=_0x4df2b6['getGhsAttributeNameForElement'](_0x26d7a9['element']);_0x1faa7e['add'](_0x1d44e6);}const _0x491758=new Set();for(const _0x1073e0 of _0x3e3f10['inline']){const _0x21037e=_0x4df2b6['getGhsAttributeNameForElement'](_0x1073e0['element']);_0x491758['add'](_0x21037e);for(const _0x177e10 of _0x1073e0['ghsAttributes'])_0x491758['add'](_0x177e10);}for(const _0x37c54d of _0x1faa7e)_0x5e36c4['registerBlockAttribute'](_0x37c54d),_0x5e36c4['descriptionFactory']['registerAttributeLabel'](_0x37c54d,getTranslation$1(_0xbbf351,'FORMAT_STYLE'));for(const _0x48fd90 of _0x491758)_0x5e36c4['registerInlineAttribute'](_0x48fd90),_0x5e36c4['descriptionFactory']['registerAttributeLabel'](_0x48fd90,getTranslation$1(_0xbbf351,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x202e2d=this['editor'],_0x59bc90=_0x202e2d['locale'];_0x202e2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x95ed84=>{if('formatBlock'!=_0x95ed84['type']&&'formatInline'!=_0x95ed84['type'])return;const {data:_0x12b8f7}=_0x95ed84;return _0x12b8f7&&'style'===_0x12b8f7['commandName']?_0x12b8f7['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x59bc90,'*Set\x20format:*\x20%0',_0x12b8f7['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':getTranslation$1(_0x59bc90,'*Remove\x20format:*\x20%0',_0x12b8f7['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends Plugin{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3273a7){super(_0x3273a7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1e0e8f=this['editor'],_0x1e5dbf=_0x1e0e8f['model']['document']['selection'];if(!_0x1e0e8f['plugins']['has']('TableEditing'))return;const _0x6b184=_0x1e0e8f['locale'],_0x5dd145=_0x1e0e8f['plugins']['get']('TrackChangesEditing'),_0x17790d=_0x1e0e8f['plugins']['get']('TableUtils');_0x5dd145['descriptionFactory']['registerElementLabel']('table',_0x5182ff=>getTranslation$1(_0x6b184,'ELEMENT_TABLE',_0x5182ff)),this['_setupColumnsRowsFixing'](),_0x5dd145['enableCommand']('insertTable'),_0x5dd145['enableCommand']('selectTableRow'),_0x5dd145['enableCommand']('selectTableColumn');for(const _0x96a15d of['insertTableRowAbove','insertTableRowBelow']){const _0x10c84a=_0x1e0e8f['commands']['get'](_0x96a15d);_0x5dd145['enableCommand'](_0x96a15d,_0x2bdc3a=>{_0x1e0e8f['model']['change'](_0x212131=>{_0x2bdc3a();const _0x56978b='above'===_0x10c84a['order'],_0x21eba5=_0x17790d['getSelectionAffectedTableCells'](_0x1e5dbf),_0x410bb0=_0x17790d['getRowIndexes'](_0x21eba5),_0x1d679e=_0x56978b?_0x410bb0['first']-0x1:_0x410bb0['last']+0x1,_0x356942=_0x21eba5[0x0]['findAncestor']('table'),_0x719770=_0x17790d['createTableWalker'](_0x356942,{'startRow':_0x1d679e,'endRow':_0x1d679e}),_0x1ea7a6=Array['from'](_0x719770)['map'](_0x1ab497=>_0x212131['createRangeOn'](_0x1ab497['cell']));_0x5dd145['markMultiRangeInsertion'](_0x1ea7a6,'tableRow');});});}for(const _0x48c52b of['insertTableColumnLeft','insertTableColumnRight']){const _0x575196=_0x1e0e8f['commands']['get'](_0x48c52b);_0x5dd145['enableCommand'](_0x48c52b,_0x580487=>{_0x1e0e8f['model']['change'](_0x1c45ff=>{_0x580487();const _0x5e174d='left'===_0x575196['order'],_0x2aa4f2=_0x17790d['getSelectionAffectedTableCells'](_0x1e5dbf),_0x3e78ea=_0x17790d['getColumnIndexes'](_0x2aa4f2),_0x593d01=_0x5e174d?_0x3e78ea['first']-0x1:_0x3e78ea['last']+0x1,_0x4d98af=_0x2aa4f2[0x0]['findAncestor']('table'),_0x70b59f=_0x17790d['createTableWalker'](_0x4d98af,{'startRow':0x0,'column':_0x593d01,'includeAllSlots':!0x1}),_0x1f3313=Array['from'](_0x70b59f)['map'](_0x100c3a=>_0x1c45ff['createRangeOn'](_0x100c3a['cell']));_0x5dd145['markMultiRangeInsertion'](_0x1f3313,'tableColumn');});});}for(const _0x4f2ea3 of['removeTableRow','removeTableColumn']){const _0x8930a5=_0x4f2ea3['substr'](0xb),_0x5e7834=_0x8930a5['toLowerCase'](),_0x484be2=_0x5e7834['substr'](0x0,0x3)+'span',_0x14ac54='table'+_0x8930a5,_0x168f1b='min'+_0x8930a5,_0x9f3fd7='max'+_0x8930a5;_0x5dd145['enableCommand'](_0x4f2ea3,()=>{_0x1e0e8f['model']['change'](_0x1298c4=>{const _0x33b568=_0x17790d['getSelectionAffectedTableCells'](_0x1e5dbf),_0x1f088f=_0x33b568[0x0]['findAncestor']('table');let _0x55b0c0;if('removeTableRow'==_0x4f2ea3){const _0x125764=_0x17790d['getRowIndexes'](_0x33b568);_0x55b0c0={'startRow':_0x125764['first'],'endRow':_0x125764['last'],'includeAllSlots':!0x0};}else{const _0x4be868=_0x17790d['getColumnIndexes'](_0x33b568);_0x55b0c0={'startColumn':_0x4be868['first'],'endColumn':_0x4be868['last'],'includeAllSlots':!0x0};}const _0x1fcccf=_0x17790d['createTableWalker'](_0x1f088f,_0x55b0c0),_0x34a9a4=Array['from'](_0x1fcccf)['map'](({cell:_0x3e958b})=>_0x3e958b),_0x39da62=uniqueValues(_0x34a9a4['filter'](_0x12f89a=>_0x12f89a['hasAttribute'](_0x484be2))),_0x59b8d4=uniqueValues(_0x34a9a4['filter'](_0x2099d3=>!_0x2099d3['hasAttribute'](_0x484be2)))['map'](_0x15f10f=>_0x1298c4['createRangeOn'](_0x15f10f)),_0x3e83ca=_0x5dd145['markMultiRangeDeletion'](_0x59b8d4,_0x14ac54);if(_0x3e83ca&&('tableRow'==_0x3e83ca['subType']||'tableColumn'==_0x3e83ca['subType'])){const _0x46e663=this['_getSuggestionCoords'](_0x3e83ca);for(const _0x2b9891 of _0x39da62){const _0x3c1481=_0x1298c4['createRangeOn'](_0x2b9891),_0x3ec126=_0x17790d['getCellLocation'](_0x2b9891),_0x31dc12=_0x2b9891['getAttribute'](_0x484be2)-0x1,_0x44614f=_0x46e663[_0x168f1b],_0x190c13=_0x46e663[_0x9f3fd7];_0x44614f<=_0x3ec126[_0x5e7834]&&_0x3ec126[_0x5e7834]+_0x31dc12<=_0x190c13&&_0x3e83ca['addRange'](_0x3c1481);}}});});}function _0x36cd82(_0xc74d87){const _0x5aa9b8=Array['from'](_0x1e5dbf['getRanges']())['map'](_0xe67dea=>ModelLiveRange['fromRange'](_0xe67dea));_0x1e0e8f['model']['change'](_0x1c3b87=>{const _0x4ac594=_0x1c3b87['batch'];_0xc74d87=_0xc74d87['filter'](_0x74dc38=>'$graveyard'!=_0x74dc38['root']['rootName']),_0x1c3b87['setSelection'](_0xc74d87),_0x1e0e8f['commands']['get']('removeTableRow')['refresh'](),_0x1e0e8f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1e0e8f['model']['enqueueChange'](()=>{_0x1e0e8f['model']['enqueueChange'](_0x4ac594,_0x41a5a9=>{const _0x35c9e0=_0x5aa9b8['filter'](_0x202a66=>'$graveyard'!=_0x202a66['root']['rootName']);_0x35c9e0['length']>0x0&&_0x41a5a9['setSelection'](_0x35c9e0);for(const _0x5b79c3 of _0x5aa9b8)_0x5b79c3['detach']();});});});}function _0x229081(_0x217140){_0x1e0e8f['model']['change'](_0x25499f=>{const _0x535c82=Array['from'](_0x1e5dbf['getRanges']())['map'](_0x57b952=>ModelLiveRange['fromRange'](_0x57b952)),_0xe6c231=[];for(const _0x309976 of _0x217140)for(const _0x1c8341 of _0x309976['getItems']({'shallow':!0x0}))_0xe6c231['push'](_0x1c8341);for(const _0x28e7e4 of _0xe6c231)'$graveyard'!=_0x28e7e4['root']['rootName']&&(_0x25499f['setSelection'](_0x25499f['createPositionAt'](_0x28e7e4,0x0)),_0x1e0e8f['commands']['get']('removeTableColumn')['refresh'](),_0x1e0e8f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x58f3be=_0x535c82['filter'](_0x58b456=>'$graveyard'!=_0x58b456['root']['rootName']);_0x58f3be['length']>0x0&&_0x25499f['setSelection'](_0x58f3be);for(const _0x22d259 of _0x535c82)_0x22d259['detach']();});}function _0x392fdb(_0x58c600,_0x3e4e9a){return _0x3e4e9a['every'](_0x5cb94c=>_0x58c600['some'](_0x37149a=>_0x37149a['end']['isEqual'](_0x5cb94c['start'])||_0x5cb94c['end']['isEqual'](_0x37149a['start'])));}function _0x3b5d5e(_0xaae9fb,_0x21ea76){return!_0xaae9fb['some'](_0x441a93=>_0x21ea76['some'](_0x4fa702=>_0x441a93['isIntersecting'](_0x4fa702)))&&_0xaae9fb['some'](_0x16ab24=>_0x21ea76['some'](_0x509cf5=>_0x16ab24['end']['isTouching'](_0x509cf5['start'])));}_0x1e0e8f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x18c334,_0x4e23d6,_0x1881b1)=>{if(!_0x1881b1['options']['showSuggestionHighlights'])return;const _0x4bf4cd=_0x4e23d6['item'];if(!_0x4bf4cd||!_0x4bf4cd['is']('element','tableCell'))return;const _0x385e99=_0x1881b1['mapper']['toViewElement'](_0x4bf4cd);if(_0x385e99){const {id:_0x9c0149,authorId:_0x5cee71}=_0x5dd145['_splitMarkerName'](_0x4e23d6['markerName']);setHighlightHandling(_0x385e99,_0x1881b1['writer'],(_0x15deee,_0x984a91,_0x2ad57c)=>{_0x2ad57c['addClass'](toArray$1(_0x984a91['classes']),_0x15deee),_0x2ad57c['setAttribute']('data-suggestion-id',_0x9c0149,_0x15deee),_0x2ad57c['setAttribute']('data-author-id',_0x5cee71,_0x15deee);},(_0x4bf77a,_0x4385d0,_0xaa5b84)=>{_0xaa5b84['removeClass'](toArray$1(_0x4385d0['classes']),_0x4bf77a),_0xaa5b84['removeAttribute']('data-suggestion-id',_0x4bf77a),_0xaa5b84['removeAttribute']('data-author-id',_0x4bf77a);});}},{'priority':'highest'}),_0x5dd145['descriptionFactory']['registerDescriptionCallback'](_0x35d079=>{if('insertion'!=_0x35d079['type']&&'deletion'!=_0x35d079['type'])return;const _0x434295=_0x35d079['getContainedElement']();if(null!=_0x434295&&_0x434295['is']('element','table')){if('insertion'==_0x35d079['type']){const _0x5c1b02=_0x35d079['getItems']()['filter'](_0x38246f=>_0x38246f['is']('$textProxy'))['map'](_0x3fc41a=>_0x3fc41a['data']);if(_0x5c1b02['length'])return{'type':'insertion','content':getTranslation$1(_0x6b184,'*Insert:*\x20%0',getTranslation$1(_0x6b184,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5c1b02['join']('\x20')+'\x22'))};}if('deletion'==_0x35d079['type']){const _0x58c86e=_0x35d079['getItems']()['filter'](_0x46f665=>_0x46f665['is']('$textProxy'))['map'](_0x2e8d0d=>_0x2e8d0d['data']);if(_0x58c86e['length'])return{'type':'deletion','content':getTranslation$1(_0x6b184,'*Remove:*\x20%0',getTranslation$1(_0x6b184,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x58c86e['join']('\x20')+'\x22'))};}}}),_0x5dd145['descriptionFactory']['registerDescriptionCallback'](_0x4b756f=>{if('tableRow'==_0x4b756f['subType']){const _0x3c2b1d=_0x4b756f['getItems']()['filter'](_0x1f3d11=>_0x1f3d11['is']('$textProxy'))['map'](_0x506da6=>_0x506da6['data']),_0xe94934=this['_getSuggestionCoords'](_0x4b756f),_0x30a058=_0xe94934['maxRow']-_0xe94934['minRow']+0x1;if('insertion'==_0x4b756f['type'])return _0x3c2b1d['length']?{'type':'insertion','content':getTranslation$1(_0x6b184,'*Insert:*\x20%0',getTranslation$1(_0x6b184,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x30a058,'\x22'+_0x3c2b1d['join']('\x20')+'\x22']))}:{'type':'insertion','content':getTranslation$1(_0x6b184,'*Insert:*\x20%0',getTranslation$1(_0x6b184,'ELEMENT_TABLE_ROW',_0x30a058))};if('deletion'==_0x4b756f['type'])return _0x3c2b1d['length']?{'type':'deletion','content':getTranslation$1(_0x6b184,'*Remove:*\x20%0',getTranslation$1(_0x6b184,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x30a058,'\x22'+_0x3c2b1d['join']('\x20')+'\x22']))}:{'type':'deletion','content':getTranslation$1(_0x6b184,'*Remove:*\x20%0',getTranslation$1(_0x6b184,'ELEMENT_TABLE_ROW',_0x30a058))};}if('tableColumn'==_0x4b756f['subType']){const _0x3e368a=_0x4b756f['getItems']()['filter'](_0x1dfdbf=>_0x1dfdbf['is']('$textProxy'))['map'](_0x190984=>_0x190984['data']),_0x13a39e=this['_getSuggestionCoords'](_0x4b756f),_0x5123b1=_0x13a39e['maxColumn']-_0x13a39e['minColumn']+0x1;if('insertion'==_0x4b756f['type'])return _0x3e368a['length']?{'type':'insertion','content':getTranslation$1(_0x6b184,'*Insert:*\x20%0',getTranslation$1(_0x6b184,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5123b1,'\x22'+_0x3e368a['join']('\x20')+'\x22']))}:{'type':'insertion','content':getTranslation$1(_0x6b184,'*Insert:*\x20%0',getTranslation$1(_0x6b184,'ELEMENT_TABLE_COLUMN',_0x5123b1))};if('deletion'==_0x4b756f['type'])return _0x3e368a['length']?{'type':'deletion','content':getTranslation$1(_0x6b184,'*Remove:*\x20%0',getTranslation$1(_0x6b184,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5123b1,'\x22'+_0x3e368a['join']('\x20')+'\x22']))}:{'type':'deletion','content':getTranslation$1(_0x6b184,'*Remove:*\x20%0',getTranslation$1(_0x6b184,'ELEMENT_TABLE_COLUMN',_0x5123b1))};}}),_0x5dd145['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x36cd82),_0x5dd145['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x36cd82),_0x5dd145['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x229081),_0x5dd145['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x229081),_0x5dd145['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x392fdb),_0x5dd145['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x392fdb),_0x5dd145['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3b5d5e),_0x5dd145['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3b5d5e);}['_acceptFormatSuggestionCallbackFactory'](){const _0xe04f43=this['editor'],_0x17c1f3=_0xe04f43['model']['document']['selection'];return(_0x42679c,_0xf0b03b)=>{_0xe04f43['model']['change'](_0xf46bfb=>{const {commandName:_0x40f051,commandParams:_0x3ed60b}=_0xf0b03b;let _0x50dca6=_0x42679c[0x0]['end']['nodeBefore'];_0x3ed60b&&_0x3ed60b[0x0]&&!0x1===_0x3ed60b[0x0]['forceValue']&&(_0x50dca6=_0x42679c[0x0]['start']['nodeAfter']);const _0x53ccd7=_0xf46bfb['createRangeIn'](_0x50dca6);if('$graveyard'==_0x53ccd7['root']['rootName'])return;const _0x43859b=Array['from'](_0x17c1f3['getRanges']())['map'](_0x410853=>ModelLiveRange['fromRange'](_0x410853));_0xf46bfb['setSelection'](_0x53ccd7),_0xe04f43['commands']['get'](_0x40f051)['refresh'](),_0x3ed60b['push']({'forceDefaultExecution':!0x0}),_0xe04f43['execute'](_0x40f051,..._0x3ed60b);const _0x1f2c8a=_0x43859b['filter'](_0x19cb58=>'$graveyard'!=_0x19cb58['root']['rootName']);_0x1f2c8a['length']>0x0&&_0xf46bfb['setSelection'](_0x1f2c8a);for(const _0x2fe2c7 of _0x43859b)_0x2fe2c7['detach']();});};}['_getCoordsForCells'](_0x44f576){const _0x23198b=this['editor']['plugins']['get']('TableUtils');let _0x4d14bc=Number['MAX_SAFE_INTEGER'],_0x17cdea=Number['MIN_SAFE_INTEGER'],_0x24f6f2=Number['MAX_SAFE_INTEGER'],_0x4104f7=Number['MIN_SAFE_INTEGER'];for(const _0x177945 of _0x44f576){if('$graveyard'==_0x177945['root']['rootName'])continue;const {row:_0x16d88c,column:_0x46ff81}=_0x23198b['getCellLocation'](_0x177945),_0x217d8d=_0x177945['hasAttribute']('rowspan')?_0x177945['getAttribute']('rowspan')-0x1:0x0,_0x18d16b=_0x177945['hasAttribute']('colspan')?_0x177945['getAttribute']('colspan')-0x1:0x0;_0x4d14bc=_0x16d88c<_0x4d14bc?_0x16d88c:_0x4d14bc,_0x17cdea=_0x16d88c+_0x217d8d>_0x17cdea?_0x16d88c+_0x217d8d:_0x17cdea,_0x24f6f2=_0x46ff81<_0x24f6f2?_0x46ff81:_0x24f6f2,_0x4104f7=_0x46ff81+_0x18d16b>_0x4104f7?_0x46ff81+_0x18d16b:_0x4104f7;}return{'minRow':_0x4d14bc,'maxRow':_0x17cdea,'minColumn':_0x24f6f2,'maxColumn':_0x4104f7};}['_setupColumnsRowsFixing'](){const _0x19de91=this['editor'],_0x25848a=_0x19de91['plugins']['get']('TrackChangesEditing'),_0xaafcb7=_0x19de91['plugins']['get']('TableUtils');_0x19de91['model']['document']['on']('change:data',()=>{const _0x3385f9=Array['from'](_0x19de91['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f502b,data:_0x3b7aec}of _0x3385f9){const {group:_0x549166,id:_0x58dc6a,subType:_0x1b9ad1}=_0x25848a['_splitMarkerName'](_0x2f502b);if('suggestion'!=_0x549166)continue;if(null!=_0x3b7aec['oldRange'])continue;const _0x4a9e30=_0x25848a['getSuggestion'](_0x58dc6a);this['_tablePostFixingSubtypes']['includes'](_0x1b9ad1)&&this['_tableSuggestions']['add'](_0x4a9e30);}},{'priority':'low'});const _0x45d300=(_0x1b6b48,_0x50e0aa)=>{let _0x1bce06=!0x1;const _0x2213d8=_0x50e0aa['createRangeOn'](_0x1b6b48),_0xe99463=_0x1b6b48['findAncestor']('table'),_0x182480=_0xaafcb7['getCellLocation'](_0x1b6b48);for(const _0x6be4a1 of this['_tableSuggestions']){const _0x1068fc=_0x6be4a1['subType'],_0x569723=_0x1068fc['startsWith']('tablePaste'),_0x4f1ef4=_0x1068fc['substr'](_0x569723?0xa:0x5),_0x5e38b8=_0x4f1ef4['toLowerCase'](),_0x58a640=_0x5e38b8['substr'](0x0,0x3)+'span',_0x2b71e3='min'+_0x4f1ef4,_0x3a3d8e='max'+_0x4f1ef4;if(!_0x6be4a1['isInContent'])continue;if(_0xe99463!=_0x6be4a1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x6be4a1['isIntersectingWithRange'](_0x2213d8))continue;const _0x48cd2c=_0x1b6b48['hasAttribute'](_0x58a640)?_0x1b6b48['getAttribute'](_0x58a640)-0x1:0x0,_0x53074e=this['_getSuggestionCoords'](_0x6be4a1),_0xfc175b=_0x53074e[_0x2b71e3],_0x4114c9=_0x53074e[_0x3a3d8e];_0xfc175b<=_0x182480[_0x5e38b8]&&_0x182480[_0x5e38b8]+_0x48cd2c<=_0x4114c9&&(_0x6be4a1['addRange'](_0x2213d8),_0x1bce06=!0x0);}return _0x1bce06;};_0x19de91['model']['document']['registerPostFixer'](_0x559d90=>{let _0x43972c=!0x1;for(const _0x161f74 of _0x19de91['model']['document']['differ']['getChanges']())if('insert'==_0x161f74['type']){if('tableRow'==_0x161f74['name']){for(const _0xa0dd39 of _0x161f74['position']['nodeAfter']['getChildren']())_0x43972c=_0x43972c||_0x45d300(_0xa0dd39,_0x559d90);}else'tableCell'==_0x161f74['name']&&(_0x43972c=_0x43972c||_0x45d300(_0x161f74['position']['nodeAfter'],_0x559d90));}return _0x43972c;});}['_getSuggestionCoords'](_0x914206){return this['_getCoordsForCells'](_0x914206['getRanges']()['map'](_0x2c0f07=>_0x2c0f07['start']['nodeAfter']));}}function uniqueValues(_0x57cb9b){return Array['from'](new Set(_0x57cb9b)['values']());}class TrackChangesTableMergeSplit extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x809a5c=this['editor'],_0x20ab4f=_0x809a5c['model']['document']['selection'],_0x45e8cf=_0x809a5c['locale'];if(!_0x809a5c['plugins']['has']('TableEditing'))return;const _0x154984=_0x809a5c['plugins']['get']('TrackChangesEditing'),_0x51368c=_0x809a5c['plugins']['get']('TableUtils'),_0x54bdc3=_0x809a5c['plugins']['get'](TrackChangesTable);_0x54bdc3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x154984['enableCommand']('mergeTableCells',()=>{const _0x5b5746=_0x51368c['getSelectionAffectedTableCells'](_0x809a5c['model']['document']['selection']);_0x809a5c['model']['change'](()=>{_0x154984['markMultiRangeBlockFormat'](_0x5b5746,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x809a5c['commands']['get']('mergeTableCells')['on']('execute',(_0x177b04,_0x355925)=>{_0x809a5c['commands']['get']('trackChanges')['value']&&(_0x355925['length']>0x0&&_0x355925[_0x355925['length']-0x1]&&_0x355925[_0x355925['length']-0x1]['forceDefaultExecution']||_0x154984['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x177b04['stop']());},{'priority':'highest'});for(const _0x4c7594 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x6058cb=_0x809a5c['commands']['get'](_0x4c7594);_0x154984['enableCommand'](_0x4c7594,()=>{const _0xc5f78b=_0x809a5c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x25a81a=>_0x25a81a['is']('element','tableCell')),_0x18b1c6=_0x6058cb['value'];_0x809a5c['model']['change'](()=>{_0x154984['markMultiRangeBlockFormat']([_0xc5f78b,_0x18b1c6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x12e750 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x64f006=_0x809a5c['commands']['get'](_0x12e750);_0x154984['enableCommand'](_0x12e750,()=>{const _0x3ab946=_0x51368c['getSelectionAffectedTableCells'](_0x809a5c['model']['document']['selection'])[0x0],_0xa13e3d=_0x3ab946['findAncestor']('table'),{column:_0x2c9659,row:_0x510ee0}=_0x51368c['getCellLocation'](_0x3ab946);let _0x5d1619=[];if('horizontally'==_0x64f006['direction']){const _0x5860c0=_0x51368c['createTableWalker'](_0xa13e3d,{'startRow':_0x510ee0,'endRow':_0x510ee0,'includeAllSlots':!0x0});_0x5d1619=Array['from'](_0x5860c0)['map'](_0x3cec09=>_0x3cec09['cell']);}else{const _0x2fbd87=_0x51368c['createTableWalker'](_0xa13e3d,{'column':_0x2c9659,'includeAllSlots':!0x0});_0x5d1619=Array['from'](_0x2fbd87)['map'](_0x53e744=>_0x53e744['cell']);}_0x809a5c['model']['change'](_0x37731f=>{_0x154984['markBlockFormat'](_0x37731f['createRangeOn'](_0x3ab946),{'commandName':_0x12e750,'commandParams':[]},_0x5d1619,_0x12e750);});});}_0x154984['descriptionFactory']['registerDescriptionCallback'](_0x500d5a=>{if('formatBlock'!=_0x500d5a['type']&&'formatInline'!=_0x500d5a['type'])return;const {data:_0x2c6d50}=_0x500d5a;return _0x2c6d50&&'mergeTableCells'==_0x2c6d50['commandName']?{'type':'format','content':getTranslation$1(_0x45e8cf,'*Merge\x20cells*')}:void 0x0;}),_0x154984['descriptionFactory']['registerDescriptionCallback'](_0x581800=>{if('formatBlock'!=_0x581800['type']&&'formatInline'!=_0x581800['type'])return;const {data:_0x5a154f}=_0x581800;return _0x5a154f?'splitTableCellVertically'==_0x5a154f['commandName']?{'type':'format','content':getTranslation$1(_0x45e8cf,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5a154f['commandName']?{'type':'format','content':getTranslation$1(_0x45e8cf,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5a5a2b=_0x54bdc3['_acceptFormatSuggestionCallbackFactory']();for(const _0x32a391 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x154984['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x32a391,'accept',_0x5a5a2b);for(const _0x4e03f7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x154984['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e03f7,'accept',_0x5a5a2b);_0x154984['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3fe59d=>{_0x809a5c['model']['change'](_0x4de155=>{const _0x160cc0=Array['from'](_0x20ab4f['getRanges']())['map'](_0x47f12c=>ModelLiveRange['fromRange'](_0x47f12c));_0x4de155['setSelection'](_0x3fe59d),_0x809a5c['commands']['get']('mergeTableCells')['refresh'](),_0x809a5c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xcc6429=_0x160cc0['filter'](_0x4b83af=>'$graveyard'!=_0x4b83af['root']['rootName']);_0xcc6429['length']>0x0&&_0x4de155['setSelection'](_0xcc6429);for(const _0x6834d6 of _0x160cc0)_0x6834d6['detach']();});});for(const _0x48766e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x11f299=_0x809a5c['commands']['get'](_0x48766e);_0x11f299['on']('set:isEnabled',(_0x4cbbbb,_0x18199d,_0x5036f1)=>{if(_0x5036f1){const _0xbcb53=_0x809a5c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x364dd=>_0x364dd['is']('element','tableCell'));this['_areMergableCells'](_0x11f299['value'],_0xbcb53)||(_0x4cbbbb['return']=!0x1,_0x4cbbbb['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3aa839=this['editor']['commands']['get']('mergeTableCells'),_0x5233af=this['editor']['plugins']['get']('TableUtils');if(!_0x3aa839['isEnabled'])return!0x1;const _0x165fbc=_0x5233af['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x152857 of _0x165fbc)for(const _0x34cd76 of _0x165fbc)if(_0x152857!=_0x34cd76&&!this['_areMergableCells'](_0x152857,_0x34cd76))return!0x1;return!0x0;}['_areMergableCells'](_0x391f1e,_0x33bfa8){const _0x5a7845=this['editor']['plugins']['get']('TrackChangesEditing'),_0x157e57=this['editor']['model']['createRangeOn'](_0x391f1e),_0x41e428=this['editor']['model']['createRangeOn'](_0x33bfa8),_0x16af57=new Set(),_0x38870b=new Set();for(const _0x3f2b6f of _0x5a7845['getSuggestions']())if(('insertion'==_0x3f2b6f['type']||'deletion'==_0x3f2b6f['type']||'mergeTableCells'==_0x3f2b6f['subType'])&&_0x3f2b6f['isInContent']){for(const _0x5c1321 of _0x3f2b6f['getRanges']())_0x5c1321['containsRange'](_0x157e57,!0x0)&&_0x16af57['add'](_0x3f2b6f['type']+':'+_0x3f2b6f['author']['id']),_0x5c1321['containsRange'](_0x41e428,!0x0)&&_0x38870b['add'](_0x3f2b6f['type']+':'+_0x3f2b6f['author']['id']);}if(_0x16af57['size']!=_0x38870b['size'])return!0x1;for(const _0x93a84a of _0x16af57)if(!_0x38870b['has'](_0x93a84a))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x3dcb7f=this['editor'];if(!_0x3dcb7f['plugins']['has']('TableEditing'))return;const _0xf1e1e9=_0x3dcb7f['locale'],_0x2e37f9=_0x3dcb7f['plugins']['get']('TrackChangesEditing');_0x2e37f9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2e37f9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2e37f9['registerBlockAttribute']('headingRows'),_0x2e37f9['registerBlockAttribute']('headingColumns'),_0x2e37f9['descriptionFactory']['registerAttributeLabel']('headingRows',getTranslation$1(_0xf1e1e9,'FORMAT_HEADER_ROW')),_0x2e37f9['descriptionFactory']['registerAttributeLabel']('headingColumns',getTranslation$1(_0xf1e1e9,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x183d85=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcd0567=this['editor']['plugins']['get']('TableUtils'),_0x16ee4e=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();function _0xe1496e({showActiveMarker:_0x15f0d1=!0x0,setDataAttribute:_0x432489=!0x0}={}){return(_0x146e08,_0x288875,_0x1ee1b4)=>{const {type:_0x1d828c,id:_0x29994f}=_0x183d85['_splitMarkerName'](_0x288875['markerName']);if(!_0x183d85['hasSuggestion'](_0x29994f))return;const _0x5ea1aa=_0x183d85['getSuggestion'](_0x29994f),_0x53541d=_0x5ea1aa['data'];if('formatBlock'!=_0x5ea1aa['type']||!_0x53541d||'setTableColumnHeader'!=_0x53541d['commandName'])return;if(_0x288875['item'])return void _0x146e08['stop']();if(!_0x1ee1b4['consumable']['consume'](_0x288875['markerRange'],_0x146e08['name']))return;const _0x215928=_0x288875['markerRange']['start']['nodeAfter'],_0x212d21=_0x288875['markerRange']['end']['nodeBefore'],_0x1feb82=_0x215928['parent']['parent'],{column:_0x1b8ccb}=_0xcd0567['getCellLocation'](_0x215928),{column:_0x256e2f}=_0xcd0567['getCellLocation'](_0x212d21);for(let _0x370fc2=_0x1b8ccb;_0x370fc2<=_0x256e2f;_0x370fc2++){const _0x5a8994=_0xcd0567['createTableWalker'](_0x1feb82,{'column':_0x370fc2,'includeAllSlots':!0x1});for(const _0x32cd96 of _0x5a8994){const _0x2a908a=_0x32cd96['cell'],_0x34d30e=_0x1ee1b4['mapper']['toViewElement'](_0x2a908a);_0x1ee1b4['writer']['addClass']('ck-suggestion-marker-'+_0x1d828c,_0x34d30e),_0x432489&&_0x1ee1b4['writer']['setAttribute']('data-suggestion',_0x29994f,_0x34d30e),_0x1ee1b4['mapper']['bindElementToMarker'](_0x34d30e,_0x288875['markerName']),_0x15f0d1&&(_0x183d85['activeMarkers']['includes'](_0x288875['markerName'])?_0x1ee1b4['writer']['addClass']('ck-suggestion-marker--active',_0x34d30e):_0x1ee1b4['writer']['removeClass']('ck-suggestion-marker--active',_0x34d30e));}}};}_0x183d85['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x16ee4e),_0x183d85['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x16ee4e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xe1496e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3e463c,_0x377e10,_0x5f4f03)=>{_0x5f4f03['options']['showSuggestionHighlights']&&_0xe1496e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3e463c,_0x377e10,_0x5f4f03);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x588b46,_0x218c9d,_0x5e8b7f)=>{const {type:_0x4af233,id:_0x3d1366}=_0x183d85['_splitMarkerName'](_0x218c9d['markerName']);if(!_0x183d85['hasSuggestion'](_0x3d1366))return;const _0x22bcb7=_0x183d85['getSuggestion'](_0x3d1366),_0x4c92ac=_0x22bcb7['data'];if('formatBlock'!=_0x22bcb7['type']||!_0x4c92ac||'setTableColumnHeader'!=_0x4c92ac['commandName'])return;const _0x383534=_0x5e8b7f['mapper']['markerNameToElements'](_0x218c9d['markerName']);if(_0x383534){for(const _0x22b40f of _0x383534)_0x5e8b7f['writer']['removeClass']('ck-suggestion-marker-'+_0x4af233,_0x22b40f),_0x5e8b7f['writer']['removeClass']('ck-suggestion-marker--active',_0x22b40f),_0x5e8b7f['writer']['removeAttribute']('data-suggestion',_0x22b40f),_0x5e8b7f['mapper']['unbindElementFromMarkerName'](_0x22b40f,_0x218c9d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ea2ea=this['editor'],_0x2634d4=_0x2ea2ea['locale'];function _0x59b7b6(_0x49d011){return{'type':'format','content':getTranslation$1(_0x2634d4,'*Format:*\x20%0',_0x49d011)};}_0x2ea2ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xae1be4=>{if('formatBlock'!=_0xae1be4['type'])return;const {data:_0x2b8733}=_0xae1be4;if(_0x2b8733){if('setTableRowHeader'==_0x2b8733['commandName']){const _0x498868=_0x2b8733['commandParams'][0x0]['forceValue'];return _0x59b7b6(getTranslation$1(_0x2634d4,_0x498868?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2b8733['commandName']){const _0x570d0f=_0x2b8733['commandParams'][0x0]['forceValue'];return _0x59b7b6(getTranslation$1(_0x2634d4,_0x570d0f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableLayout extends Plugin{['afterInit'](){const _0x183b55=this['editor'],_0x4bdbdc=_0x183b55['locale'],_0x1e1bb6=_0x183b55['plugins']['get']('TrackChangesEditing');function _0x1c02af(_0x3c31b5){return{'type':'format','content':''+getTranslation$1(_0x4bdbdc,'*Set\x20table\x20type:*\x20%0',_0x3c31b5)};}_0x183b55['plugins']['has']('TableLayout')&&(_0x1e1bb6['enableCommand']('insertTableLayout'),_0x1e1bb6['enableDefaultAttributesIntegration']('tableType'),_0x1e1bb6['registerBlockAttribute']('tableType'),_0x1e1bb6['descriptionFactory']['registerElementLabel'](_0x638473=>_0x638473['is']('element','table')&&'layout'===_0x638473['getAttribute']('tableType'),_0x4dc516=>getTranslation$1(_0x4bdbdc,'ELEMENT_LAYOUT_TABLE',_0x4dc516)),_0x1e1bb6['descriptionFactory']['registerDescriptionCallback'](_0x565d10=>{const {data:_0x2125f6}=_0x565d10;if(_0x2125f6&&'tableType'==_0x2125f6['key'])switch(_0x2125f6['newValue']){case'layout':return _0x1c02af(getTranslation$1(_0x4bdbdc,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1c02af(getTranslation$1(_0x4bdbdc,'ELEMENT_CONTENT_TABLE'));}}));}}const tableCellStyleAttributeNames=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],tableCellStyleAttributesObject=/* #__PURE__ -- @preserve */
Object['fromEntries'](tableCellStyleAttributeNames['map'](_0x213f0d=>[_0x213f0d,null]));class TrackChangesTableClipboard extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x2ea375=this['editor'];if(!_0x2ea375['plugins']['has']('TableClipboard'))return;const _0x1fd563=_0x2ea375['plugins']['get']('TrackChangesEditing'),_0x3bb02f=_0x2ea375['plugins']['get']('TableUtils'),_0x23b049=_0x2ea375['plugins']['get'](TrackChangesTable),_0x3bcec1=_0x2ea375['plugins']['get']('TableClipboard'),_0x4a3e12=_0x2ea375['plugins']['get']('TableSelection'),_0x1cf033=_0x2ea375['plugins']['get'](ClipboardPipeline);_0x23b049['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2ea375['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2ea375['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x531a73=null,_0x4277c0=!0x1;_0x1cf033['on']('contentInsertion',(_0x4d8b3a,_0x3302ac)=>{_0x4277c0='paste'===_0x3302ac['method'];}),_0x2ea375['model']['on']('insertContent',(_0x2f01cf,_0x3d97d2)=>{if(!_0x4277c0&&null===_0x4a3e12['getSelectedTableCells']())return;const [_0x258624,_0x249f95]=_0x3d97d2,_0xaffd1d=_0x3d97d2[_0x3d97d2['length']-0x1];_0xaffd1d&&_0xaffd1d['forceDefaultExecution']||_0x1fd563['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&isPasteTableIntoTable(_0x258624,_0x249f95,_0x2ea375['model'],_0x3bb02f,_0x3bcec1)&&(_0x2f01cf['stop'](),_0x531a73={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2ea375['model']['change'](()=>{_0x2ea375['model']['insertContent'](_0x3d97d2[0x0],_0x3d97d2[0x1],_0x3d97d2[0x2],{'forceDefaultExecution':!0x0});const _0x31fa3a=uid(),{rowInsertionRanges:_0x441bb9,columnInsertionRanges:_0x50855e,insertionRanges:_0x5b2d59,deletionRanges:_0x1836ca,cells:_0x3c3171}=_0x531a73;_0x441bb9['length']&&_0x1fd563['markMultiRangeInsertion'](_0x441bb9,'tablePasteRow',{'tablePasteChainId':_0x31fa3a}),_0x50855e['length']&&_0x1fd563['markMultiRangeInsertion'](_0x50855e,'tablePasteColumn',{'tablePasteChainId':_0x31fa3a}),_0x5b2d59['length']&&(_0x1fd563['markMultiRangeInsertion'](_0x5b2d59,'tablePaste',{'tablePasteChainId':_0x31fa3a,'skipNestingCheck':!0x0}),_0x5b2d59['forEach'](_0x46ee0c=>_0x46ee0c['detach']?.())),_0x1836ca['length']&&(_0x1fd563['markMultiRangeDeletion'](_0x1836ca,'tablePaste',{'tablePasteChainId':_0x31fa3a,'skipNestingCheck':!0x0}),_0x1836ca['forEach'](_0xd62d95=>_0xd62d95['detach']?.()));const _0x34cecb=_0x1fd563['markMultiRangeBlockFormat'](_0x3c3171['map'](({element:_0x496349})=>_0x496349),{'formatGroupId':uid()},[],'tablePasteCell',{'tablePasteChainId':_0x31fa3a});if(_0x34cecb){const _0x51f329=_0x34cecb['getMarkers'](),_0x3a2ce8=[];for(const {element:_0x2c9f99,attributes:_0x571f1d}of _0x3c3171){if(!_0x571f1d)continue;const _0x108f97=_0x2ea375['model']['createRangeOn'](_0x2c9f99),_0xea4935=_0x51f329['find'](_0x159f40=>_0x159f40['getRange']()['isEqual'](_0x108f97));_0xea4935&&_0x3a2ce8['push']([_0xea4935['name'],_0x571f1d]);}_0x3a2ce8['length']&&_0x34cecb['setAttribute']('markerAttributes',Object['fromEntries'](_0x3a2ce8));}_0x531a73=null;}));},{'priority':priorities['high']+0xa}),_0x1cf033['on']('contentInsertion',()=>{_0x4277c0=!0x1;},{'priority':'lowest'}),_0x2ea375['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x39d531,_0x18a5dc)=>{const [_0x5b585c,_0x299dcf,,_0x29064e]=_0x18a5dc;if(!_0x531a73)return;_0x39d531['stop']();const _0x276774=_0x5b585c['cell'],_0x39aa69=_0x299dcf,_0x2ddb3c=isEmpty(_0x276774),_0x567bc3=isEmpty(_0x39aa69);_0x39d531['return']=_0x276774;let _0x5bd9a8=null,_0x5a311c=null;if(_0x567bc3||_0x2ddb3c){if(_0x2ddb3c&&!_0x567bc3){_0x29064e['remove'](_0x276774['getChild'](0x0));for(const _0x42e999 of Array['from'](_0x39aa69['getChildren']()))_0x29064e['insert'](_0x42e999,_0x276774,'end');const _0x52cbfb=_0x531a73['rowInsertionIndexes']['includes'](_0x5b585c['row']),_0x17dc80=_0x531a73['columnInsertionIndexes']['includes'](_0x5b585c['column']);_0x52cbfb||_0x17dc80||(_0x5bd9a8=ModelLiveRange['fromRange'](_0x29064e['createRangeIn'](_0x276774)));}else _0x567bc3&&!_0x2ddb3c&&(_0x5a311c=_0x29064e['createRangeIn'](_0x276774));}else{const _0x1529b8=_0x29064e['createElement']('tableCellSuggestion'),_0x349953=_0x29064e['createElement']('tableCellSuggestion');_0x29064e['wrap'](_0x29064e['createRangeIn'](_0x276774),_0x349953),_0x29064e['insert'](_0x1529b8,_0x276774,0x0);for(const _0x48294b of Array['from'](_0x39aa69['getChildren']()))_0x29064e['insert'](_0x48294b,_0x1529b8,'end');_0x5bd9a8=ModelLiveRange['fromRange'](_0x29064e['createRangeOn'](_0x1529b8)),_0x5a311c=ModelLiveRange['fromRange'](_0x29064e['createRangeOn'](_0x349953));}const _0x56ea75=Array['from'](_0x39aa69['getAttributes']())['filter'](([_0x5a0851])=>tableCellStyleAttributeNames['includes'](_0x5a0851));_0x531a73['cells']['push']({'element':_0x276774,'attributes':_0x56ea75['length']?Object['fromEntries'](_0x56ea75):null}),_0x5bd9a8&&_0x531a73['insertionRanges']['push'](_0x5bd9a8),_0x5a311c&&_0x531a73['deletionRanges']['push'](_0x5a311c);},{'priority':'high'}),_0x3bb02f['on']('insertColumns',(_0x1923d3,_0x5bc059)=>{const [_0x2c6b0d,_0x29362a={}]=_0x5bc059;if(!_0x531a73)return;const _0x4c820a=_0x29362a['at']||0x0,_0xa7ee40=_0x29362a['columns']||0x1;_0x531a73['columnInsertionIndexes']=new Array(_0xa7ee40)['fill'](_0x4c820a)['map']((_0x1870f7,_0x2b2863)=>_0x1870f7+_0x2b2863);for(const {cell:_0x525280}of _0x3bb02f['createTableWalker'](_0x2c6b0d,{'startColumn':_0x4c820a,'endColumn':_0x4c820a+_0xa7ee40-0x1}))_0x531a73['columnInsertionRanges']['push'](_0x2ea375['model']['createRangeOn'](_0x525280));},{'priority':'low'}),_0x3bb02f['on']('insertRows',(_0x1d1db5,_0x202350)=>{const [_0x17a5c6,_0x588563={}]=_0x202350;if(!_0x531a73)return;const _0x41c731=_0x588563['at']||0x0,_0x150126=_0x588563['rows']||0x1;_0x531a73['rowInsertionIndexes']=new Array(_0x150126)['fill'](_0x41c731)['map']((_0x2c49a4,_0x142bb2)=>_0x2c49a4+_0x142bb2);for(const {cell:_0x17f654}of _0x3bb02f['createTableWalker'](_0x17a5c6,{'startRow':_0x41c731,'endRow':_0x41c731+_0x150126-0x1}))_0x531a73['rowInsertionRanges']['push'](_0x2ea375['model']['createRangeOn'](_0x17f654));},{'priority':'low'}),_0x1fd563['descriptionFactory']['registerDescriptionCallback'](_0x3732f8=>{if(_0x3732f8['subType']&&_0x3732f8['subType']['startsWith']('tablePaste'))return _0x3732f8['previous']?{}:{'type':'insertion','content':getTranslation$1(_0x2ea375['locale'],'*Replace\x20table\x20cells*')};});const _0x3efe09=()=>!0x1;for(const _0x482751 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1fd563['_suggestionFactory']['registerCustomCallback']('insertion',_0x482751,'join',_0x3efe09),_0x1fd563['_suggestionFactory']['registerCustomCallback']('deletion',_0x482751,'join',_0x3efe09),_0x1fd563['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x482751,'join',_0x3efe09);_0x1fd563['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3efe09),_0x1fd563['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x597c9e,_0x57cd2f,_0x58c963)=>{const _0x4a7b73=_0x597c9e['map'](_0x2bdf26=>_0x2bdf26['getContainedElement']())['filter'](_0x1a2855=>_0x1a2855),_0x1d824a=new Map(_0x4a7b73['map'](_0x123061=>[_0x123061,null]));if(_0x531a73){for(const {element:_0x4ca693,attributes:_0x1798a0}of _0x531a73['cells'])_0x1798a0&&_0x1d824a['set'](_0x4ca693,_0x1798a0);}else{if(_0x58c963&&_0x58c963['markerAttributes'])for(const [_0x1a4054,_0x104e18]of Object['entries'](_0x58c963['markerAttributes'])){const _0x238798=_0x2ea375['model']['markers']['get'](_0x1a4054),_0x98aa75=_0x238798?_0x238798['getRange']()['getContainedElement']():null;_0x98aa75&&_0x1d824a['set'](_0x98aa75,_0x104e18);}}_0x2ea375['model']['change'](_0x870266=>{for(const [_0xe76ec6,_0x4e8289]of _0x1d824a)_0x870266['setAttributes']({...tableCellStyleAttributesObject,..._0x4e8289},_0xe76ec6);});});const _0x467597=(_0x1d478b,_0x2370b7)=>{_0x1fd563['_suggestionFactory']['registerCustomCallback'](_0x1d478b,'tablePaste',_0x2370b7,(_0x1c90d7,_0x552959,_0xd1853d)=>{_0x2ea375['model']['change'](_0x54dd28=>{const _0xcb2810=[];for(const _0x44d4fc of _0x1c90d7){const _0x40a5b2=_0x44d4fc['start']['nodeAfter'];_0x40a5b2['is']('element','tableCellSuggestion')&&_0xcb2810['push'](_0x40a5b2);}_0x1fd563['_suggestionFactory']['getSuggestionCallback'](_0x1d478b,null,_0x2370b7)(_0x1c90d7,_0x552959,_0xd1853d);for(const _0x241b2d of _0xcb2810)'$graveyard'!=_0x241b2d['root']['rootName']&&_0x54dd28['unwrap'](_0x241b2d);});});};_0x467597('insertion','accept'),_0x467597('insertion','discard'),_0x467597('deletion','accept'),_0x467597('deletion','discard'),_0x1fd563['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x14841a=>{const _0x251a05=_0x14841a['map'](_0x1fc7ba=>_0x1fc7ba['getContainedElement']()),_0x1b27fa=_0x251a05[0x0]['findAncestor']('table'),{minRow:_0xb75225,maxRow:_0x24463b}=_0x23b049['_getCoordsForCells'](_0x251a05);_0x3bb02f['removeRows'](_0x1b27fa,{'at':_0xb75225,'rows':_0x24463b-_0xb75225+0x1});}),_0x1fd563['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3755b7=>{const _0x13c4f6=_0x3755b7['map'](_0x443197=>_0x443197['getContainedElement']()),_0xd7cd0e=_0x13c4f6[0x0]['findAncestor']('table'),{minColumn:_0x5e17bc,maxColumn:_0xf7ebc5}=_0x23b049['_getCoordsForCells'](_0x13c4f6);_0x3bb02f['removeColumns'](_0xd7cd0e,{'at':_0x5e17bc,'columns':_0xf7ebc5-_0x5e17bc+0x1});});const _0x3f54f6=(_0x416c87,_0x1c9664)=>{if(!_0x1c9664['subType']||!_0x1c9664['subType']['startsWith']('tablePaste'))return;const _0x5ed8df=_0x1c9664['attributes']['tablePasteChainId'],_0x53fd81=_0x1fd563['getSuggestions']()['filter'](_0x21f4ba=>_0x21f4ba['isInContent']&&_0x21f4ba['attributes']&&_0x21f4ba['attributes']['tablePasteChainId']==_0x5ed8df);_0x53fd81['length']&&_0x1c9664['getAllAdjacentSuggestions']()['length']!=_0x53fd81['length']&&_0x53fd81['reduce']((_0x1a5a4e,_0x5671a9)=>(_0x1a5a4e['next']=_0x5671a9,_0x5671a9['previous']=_0x1a5a4e,_0x5671a9));};function _0x150b32(_0xac3b4e,_0x133a82=!0x0){const {id:_0x117ec8,authorId:_0x3e2f2f}=_0x1fd563['_splitMarkerName'](_0xac3b4e['markerName']),_0x2aeb37=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4ec8dc=_0x1fd563['activeMarkers']['includes'](_0xac3b4e['markerName']);return _0x4ec8dc&&_0x2aeb37['push']('ck-suggestion-marker--active'),{'classes':_0x2aeb37,'attributes':{'data-suggestion':_0x117ec8,'data-author-id':_0x3e2f2f},'priority':_0x4ec8dc&&_0x133a82?0xbc2:0xbb8};}_0x1fd563['on']('suggestionLoaded',_0x3f54f6,{'priority':'high'}),_0x1fd563['on']('suggestionUnloaded',_0x3f54f6,{'priority':'high'}),_0x2ea375['model']['document']['registerPostFixer'](()=>{let _0x4b1308=!0x1;const _0x45bb25=Array['from'](_0x2ea375['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x278f6c,data:_0x111548}of _0x45bb25){const {group:_0x5e4b27,type:_0x71e39e,id:_0x25f5eb}=_0x1fd563['_splitMarkerName'](_0x278f6c);if('suggestion'!=_0x5e4b27||'deletion'!=_0x71e39e||_0x111548['oldRange'])continue;if(!_0x1fd563['hasSuggestion'](_0x25f5eb))continue;const _0x6aa6b2=_0x1fd563['getSuggestion'](_0x25f5eb)['getRanges'](),_0x541ede=_0x2ea375['plugins']['get']('Users')['me'];for(const _0x375c3b of _0x1fd563['getSuggestions']()){if(!_0x375c3b['isInContent']||_0x375c3b['author']!=_0x541ede)continue;if('formatBlock'!=_0x375c3b['type']||'tablePasteCell'!=_0x375c3b['subType'])continue;if(_0x375c3b['getRanges']()['every'](_0x2af1d2=>_0x6aa6b2['some'](_0x482483=>_0x482483['containsRange'](_0x2af1d2,!0x0)))){for(const _0xe09962 of _0x375c3b['getAllAdjacentSuggestions']())_0xe09962['isInContent']&&(_0xe09962['discard'](),_0x4b1308=!0x0);}}}return _0x4b1308;}),_0x2ea375['model']['document']['registerPostFixer'](_0x2e0102=>{const _0x129a5a=_0x2ea375['commands']['get']('redo');if(!_0x129a5a||!_0x129a5a['_createdBatches']['has'](_0x2e0102['batch']))return!0x1;let _0x4eb56a=!0x1;const _0x5e4d35=_0x2ea375['plugins']['get']('Users')['me'],_0x3be76b=_0x2ea375['model']['document']['differ']['getChanges'](),_0x434248=Array['from'](_0x2ea375['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x307d95,data:_0xff319a})=>{const {group:_0x430b46,subType:_0xe4e1ff,authorId:_0x3c0ed3}=_0x1fd563['_splitMarkerName'](_0x307d95);return'suggestion'==_0x430b46&&'tablePaste'==_0xe4e1ff&&_0x3c0ed3==_0x5e4d35['id']&&!_0xff319a['oldRange'];});for(const _0x3535f1 of _0x3be76b){if('insert'!=_0x3535f1['type']||'tableCellSuggestion'!=_0x3535f1['name']||0x1!=_0x3535f1['length'])continue;const _0x35fb6c=_0x2e0102['createRange'](_0x3535f1['position'],_0x3535f1['position']['getShiftedBy'](0x1)),_0x4ee244=_0x434248['find'](({data:_0x5823e5})=>_0x5823e5['newRange']['isEqual'](_0x35fb6c));if(!_0x4ee244){for(const {name:_0x1bcbb4,data:_0x5b2d92}of _0x434248)if(_0x35fb6c['containsRange'](_0x5b2d92['newRange'])){_0x2e0102['updateMarker'](_0x1bcbb4,{'range':_0x35fb6c}),_0x4eb56a=!0x0;break;}}}return _0x4eb56a;}),_0x2ea375['model']['document']['registerPostFixer'](_0x115a0e=>{let _0x3515ac=!0x1;const _0x303db0=_0x2ea375['plugins']['get']('Users')['me'],_0x3fbf14=_0x1fd563['getSuggestions']()['filter'](_0x181eb0=>_0x181eb0['isInContent']&&_0x181eb0['author']==_0x303db0),_0x14d201=new Set(),_0x22ecc7=new Set();for(const _0x170315 of _0x3fbf14)if('tablePaste'==_0x170315['subType'])for(const _0xb86014 of _0x170315['getMarkers']()){const _0x232d5e=_0xb86014['getRange']()['getContainedElement']();if(_0x232d5e){if(_0x232d5e['is']('element','tableCellSuggestion')&&isEmpty(_0x232d5e)){_0x170315['removeMarker'](_0xb86014['name']),_0x14d201['add'](_0x232d5e),_0x3515ac=!0x0;const _0x4a011b=_0x232d5e['nextSibling'],_0x46acf9=_0x232d5e['previousSibling'],_0x2d00a=_0x4a011b&&_0x4a011b['is']('element','tableCellSuggestion'),_0x25b781=_0x46acf9&&_0x46acf9['is']('element','tableCellSuggestion');_0x2d00a&&!_0x14d201['has'](_0x4a011b)&&_0x22ecc7['add'](_0x4a011b),_0x25b781&&!_0x14d201['has'](_0x46acf9)&&_0x22ecc7['add'](_0x46acf9);}else _0x232d5e['is']('element','paragraph')&&_0x232d5e['isEmpty']&&(_0x170315['removeMarker'](_0xb86014['name']),_0x3515ac=!0x0);}}else{if('tablePasteCell'==_0x170315['subType']){if(!_0x170315['attributes']||!_0x170315['attributes']['tablePasteChainId'])continue;const _0x2b3ce8=_0x170315['attributes']['markerAttributes'];if(_0x2b3ce8&&Object['keys'](_0x2b3ce8)['length'])continue;const _0x20a98e=_0x170315['attributes']['tablePasteChainId'];let _0x2a84b3=!0x0,_0x276874=!0x0;for(const _0x3042ec of _0x3fbf14)if(_0x3042ec['subType']&&_0x3042ec['subType']['startsWith']('tablePaste')){if(!_0x3042ec['attributes']['tablePasteChainId']){_0x276874=!0x1;break;}if(_0x3042ec['id']!=_0x170315['id']&&_0x3042ec['attributes']['tablePasteChainId']==_0x20a98e){_0x2a84b3=!0x1;break;}}_0x276874&&_0x2a84b3&&(_0x170315['removeMarkers'](),_0x3515ac=!0x0);}}for(const _0x56050d of _0x14d201)_0x115a0e['remove'](_0x56050d);for(const _0x7ec9d4 of _0x22ecc7)_0x115a0e['unwrap'](_0x7ec9d4);return _0x3515ac;}),_0x2ea375['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x166e8b=>_0x150b32(_0x166e8b),'converterPriority':'high'}),_0x2ea375['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5a7478,_0x3650c1)=>_0x3650c1['options']['showSuggestionHighlights']?_0x150b32(_0x5a7478,!0x1):null,'converterPriority':'high'});const _0x1be678=_0x2ea375['editing']['view'];this['listenTo'](_0x1be678['document'],'clipboardOutput',(_0x58d0d4,_0x47dfea)=>{const _0x57556d=[];for(const _0x38b94a of _0x1be678['createRangeIn'](_0x47dfea['content'])['getItems']())_0x38b94a['is']('element','suggestion-td')&&_0x57556d['push'](_0x38b94a);_0x1be678['change'](_0x304961=>{for(const _0x1ffbba of _0x57556d)_0x304961['move'](_0x304961['createRangeIn'](_0x1ffbba),_0x304961['createPositionBefore'](_0x1ffbba)),_0x304961['remove'](_0x1ffbba);});});}}function isEmpty(_0x3761a3){if(_0x3761a3['isEmpty'])return!0x0;const _0x357827=_0x3761a3['getChild'](0x0);return _0x357827['is']('element','paragraph')&&_0x357827['isEmpty'];}function isPasteTableIntoTable(_0x128e6d,_0x2b196c,_0x108fdd,_0x47a5a3,_0xf94e0a){if(_0x2b196c&&!_0x2b196c['is']('documentSelection'))return!0x1;const _0xe7252=_0xf94e0a['getTableIfOnlyTableInContent'](_0x128e6d,_0x108fdd);if(!_0xe7252||!isPlainTable(_0xe7252,void 0x0,_0x47a5a3))return!0x1;const _0x1da5bd=_0x47a5a3['getSelectionAffectedTableCells'](_0x108fdd['document']['selection']);if(!_0x1da5bd['length'])return!0x1;const _0x487b83=_0x1da5bd[0x0]['findAncestor']('table'),_0x128f68=_0x47a5a3['getRowIndexes'](_0x1da5bd),_0x39b3f7=_0x47a5a3['getColumnIndexes'](_0x1da5bd),_0xf6819d={'startRow':_0x128f68['first'],'endRow':_0x128f68['last'],'startColumn':_0x39b3f7['first'],'endColumn':_0x39b3f7['last']};return 0x1==_0x1da5bd['length']&&(_0xf6819d['endRow']+=_0x47a5a3['getRows'](_0xe7252)-0x1,_0xf6819d['endColumn']+=_0x47a5a3['getColumns'](_0xe7252)-0x1),isPlainTable(_0x487b83,_0xf6819d,_0x47a5a3);}function isPlainTable(_0x80b34c,_0x1e4981={},_0x510015){for(const {isAnchor:_0x392735,cellHeight:_0x11a620,cellWidth:_0x4f43f4}of _0x510015['createTableWalker'](_0x80b34c,{'includeAllSlots':!0x0,..._0x1e4981}))if(!_0x392735||0x1!=_0x11a620||0x1!=_0x4f43f4)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xf47d67=this['editor']['plugins']['get']('TrackChangesEditing');_0xf47d67['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xf47d67['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xf47d67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf47d67['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xf47d67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xf47d67['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1bf1c7,_0x1f2bec){const _0x3be787=this['editor']['plugins']['get']('TrackChangesEditing'),_0x273203=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3130b6=_0x1f2bec['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x18525b=_0x273203['getColumnGroupElement'](_0x3130b6);let _0x59651a=_0x18525b?_0x273203['getTableColumnsWidths'](_0x18525b):null,_0x9e1ec8=_0x3130b6['getAttribute']('tableWidth')||null;const _0x16f411=_0x1f2bec['tableWidth']||_0x9e1ec8,_0xdbf2ed=_0x1f2bec['columnWidths']||_0x59651a,_0x122ab8=this['editor']['plugins']['get']('Users')['me'];for(const _0x37cb20 of _0x3be787['getSuggestions']()){const _0x4441c6=_0x37cb20['getContainedElement']();if('resizeTable'===_0x37cb20['subType']&&_0x4441c6===_0x3130b6){_0x37cb20['author']!==_0x122ab8&&_0x37cb20['discard']();const _0x340ee2=_0x37cb20['data']['commandParams'];_0x9e1ec8=_0x340ee2[0x0]['tableWidth'],_0x59651a=_0x340ee2[0x0]['columnWidths'];break;}}_0x1bf1c7({'table':_0x3130b6,'tableWidth':_0x16f411,'columnWidths':_0xdbf2ed}),_0x3be787['markBlockFormat'](_0x3130b6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x9e1ec8,'columnWidths':_0x59651a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x443040){if('formatBlock'!=_0x443040['type']&&'formatInline'!=_0x443040['type'])return;const {data:_0xb13834}=_0x443040;if(_0xb13834&&'resizeTable'===_0xb13834['formatGroupId']){const _0x60d54d='*Format:*\x20resize\x20table';return{'type':'format','content':getTranslation$1(this['editor']['locale'],_0x60d54d)};}}}class TrackChangesTemplate extends Plugin{['afterInit'](){const _0x2f9da2=this['editor'];_0x2f9da2['plugins']['has']('Template')&&_0x2f9da2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends Plugin{['afterInit'](){const _0x3d4fe1=this['editor'];if(!_0x3d4fe1['commands']['get']('insertTableOfContents'))return;_0x3d4fe1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1508f1=_0x3d4fe1['plugins']['get']('TrackChangesEditing'),_0x474f54=_0x3d4fe1['locale'];_0x1508f1['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4610fd=>getTranslation$1(_0x474f54,'ELEMENT_TABLE_OF_CONTENTS',_0x4610fd));}}class TrackChangesTitle extends Plugin{['afterInit'](){const _0x307f1e=this['editor'];if(!_0x307f1e['plugins']['has']('Title'))return;const _0x9c0c89=_0x307f1e['plugins']['get']('TrackChangesEditing');_0x9c0c89['descriptionFactory']['registerElementLabel']('title-content',()=>getTranslation$1(_0x307f1e['locale'],'ELEMENT_TITLE')),_0x307f1e['model']['document']['registerPostFixer'](_0x10ded7=>{let _0x3f7295=!0x1;const _0x39a6bb=Array['from'](_0x307f1e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10e426,data:_0x515375}of _0x39a6bb){const {group:_0x1eda2d}=_0x9c0c89['_splitMarkerName'](_0x10e426);if('suggestion'!==_0x1eda2d||!_0x515375['newRange'])continue;const _0x3de9ae=_0x515375['newRange'],_0x1ac4f9=_0x3de9ae['end']['nodeBefore'];if(!_0x1ac4f9||!_0x1ac4f9['is']('element','title-content'))continue;if(!_0x3de9ae['start']['isTouching'](_0x3de9ae['end']))continue;const _0x1bfe67=_0x307f1e['model']['schema']['getNearestSelectionRange'](_0x3de9ae['end'],'forward');if(_0x1bfe67&&_0x1bfe67['isCollapsed']){const _0x4ddc9f=_0x10ded7['createRange'](_0x3de9ae['start'],_0x1bfe67['start']);_0x4ddc9f['isEqual'](_0x3de9ae)||(_0x10ded7['updateMarker'](_0x10e426,{'range':_0x4ddc9f}),_0x3f7295=!0x0);}_0x3f7295||(_0x10ded7['removeMarker'](_0x10e426),_0x3f7295=!0x0);}return _0x3f7295;});}}class TrackChangesUploadcare extends Plugin{['afterInit'](){const _0x9ea4ec=this['editor'],_0x5f2989=_0x9ea4ec['plugins']['get']('TrackChangesEditing');_0x9ea4ec['plugins']['has']('Uploadcare')&&(_0x5f2989['enableCommand']('uploadcare'),_0x9ea4ec['plugins']['has']('UploadcareImageEdit')&&(_0x5f2989['enableCommand']('uploadcareImageEdit'),_0x5f2989['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5f2989['registerBlockAttribute']('uploadcareImageId'),_0x5f2989['descriptionFactory']['registerDescriptionCallback'](_0xe77e03=>{if('attribute'!=_0xe77e03['type'])return;const {data:_0x4d3820}=_0xe77e03;return _0x4d3820&&'uploadcareImageId'==_0x4d3820['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends Plugin{['afterInit'](){const _0x44cbb6=this['editor'],_0x2931d1=_0x44cbb6['plugins']['get']('TrackChangesEditing');_0x44cbb6['plugins']['has']('UndoEditing')&&(_0x2931d1['enableCommand']('undo'),_0x2931d1['enableCommand']('redo'));}}class TrackChangesTableCaption extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0xb75b61=this['editor'];if(!_0xb75b61['plugins']['has']('TableCaptionEditing'))return;_0xb75b61['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends Plugin{['tableProperties'];['tableCellProperties'];constructor(_0x480771){super(_0x480771),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x477d30=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4ebe74 of this['tableProperties'])_0x477d30['enableCommand'](_0x4ebe74,(_0x114214,_0x1d9589)=>{const _0x5c162a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4ebe74,[_0x5c162a],this['tableProperties'],'tableProperties',_0x114214,_0x1d9589);});_0x477d30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x477d30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x477d30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x48ac2e,_0x2fa5eb)=>this['handleDiscardAction'](this['tableProperties'],_0x48ac2e,_0x2fa5eb)),_0x477d30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3e19d0 of this['tableCellProperties'])_0x477d30['enableCommand'](_0x3e19d0,(_0x4e6b78,_0x585d14)=>{const _0x44ed37=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3e19d0,_0x44ed37,this['tableCellProperties'],'tableCellProperties',_0x4e6b78,_0x585d14);});_0x477d30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x477d30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x477d30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4e2614,_0x283e64)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4e2614,_0x283e64)),_0x477d30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x477d30['descriptionFactory']['registerDescriptionCallback'](_0x333a74=>this['handleSuggestionDescription'](_0x333a74)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x43be7f,_0x17f44f,_0x509acb,_0x26d9fe,_0x154a39,_0x5ebb9c){const _0x1d2d24=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5ebb9c['batch'],()=>{for(const _0x423074 of _0x17f44f){if(this['_getSuggestion'](_0x423074,_0x26d9fe))_0x154a39(_0x5ebb9c);else{const _0xfe6bfa={};for(const _0x2cb02e of _0x509acb){const _0x2caf27=_0x423074['getAttribute'](_0x2cb02e);void 0x0!==_0x2caf27&&(_0xfe6bfa[_0x2cb02e]=_0x2caf27);}_0x154a39(_0x5ebb9c),_0x1d2d24['markBlockFormat'](_0x423074,{'commandParams':[_0xfe6bfa]},[],_0x26d9fe);}}});}['handleDiscardAction'](_0x516f78,_0x63f37d,_0x419aab){const _0x4e0a72=_0x63f37d[0x0]['start']['nodeAfter'],_0x71d220=_0x419aab['commandParams'][0x0];this['editor']['model']['change'](_0x568c60=>{for(const _0x182cd5 of _0x516f78)void 0x0!==_0x71d220[_0x182cd5]?_0x568c60['setAttribute'](_0x182cd5,_0x71d220[_0x182cd5],_0x4e0a72):_0x568c60['removeAttribute'](_0x182cd5,_0x4e0a72);});}['handleSuggestionDescription'](_0x1f352d){if(_0x1f352d['data'])switch(_0x1f352d['subType']){case'tableProperties':return{'type':'format','content':getTranslation$1(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':getTranslation$1(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x348fbe,_0x16b50b){const _0x25b9f2=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3ab141 of _0x25b9f2['getSuggestions']({'skipNotAttached':!0x0})){const _0x699f51=_0x3ab141['getContainedElement']();if(_0x3ab141['subType']===_0x16b50b&&_0x699f51===_0x348fbe)return _0x3ab141;}return null;}['_registerTablePropertiesAttributes'](){const _0x29dee0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16f1f8=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x61ddf5 of _0x16f1f8){const _0x536e9c=_0x61ddf5['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x29dee0['registerBlockAttribute'](_0x61ddf5),_0x29dee0['descriptionFactory']['registerAttributeLabel'](_0x61ddf5,getTranslation$1(this['editor']['locale'],'FORMAT_'+_0x536e9c));}}}class TrackChangesLineHeight extends Plugin{['afterInit'](){const _0x149cf3=this['editor'];if(!_0x149cf3['plugins']['has']('LineHeight'))return;const _0x3c4681=_0x149cf3['plugins']['get']('TrackChangesEditing'),_0x4bb520=_0x149cf3['locale'];_0x3c4681['enableDefaultAttributesIntegration']('lineHeight'),_0x3c4681['registerBlockAttribute']('lineHeight'),_0x3c4681['descriptionFactory']['registerAttributeLabel']('lineHeight',getTranslation$1(_0x4bb520,'FORMAT_LINE_HEIGHT'));}}const renameAttributeKey='$elementName';class TrackChangesEditing extends Plugin{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Users,PendingActions,DocumentCompare,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFormatPainter,TrackChangesHeading,TrackChangesHighlight,TrackChangesHorizontalLine,TrackChangesHtmlEmbed,TrackChangesImage,TrackChangesImageStyle,TrackChangesImageReplace,TrackChangesImportWord,TrackChangesIndent,TrackChangesInputCommand,TrackChangesLegacyList,TrackChangesLegacyListProperties,TrackChangesMultiLevelList,TrackChangesLink,TrackChangesList,TrackChangesLineHeight,TrackChangesDocumentListProperties,TrackChangesMediaEmbed,TrackChangesMention,TrackChangesMergeFields,TrackChangesPageBreak,TrackChangesParagraph,TrackChangesReplaceSourceCommand,TrackChangesRemoveFormat,TrackChangesRestrictedEditingMode,TrackChangesShiftEnterCommand,TrackChangesStandardEditingMode,TrackChangesStylesDropdown,TrackChangesTable,TrackChangesTableMergeSplit,TrackChangesTableHeadings,TrackChangesTableLayout,TrackChangesTableCaption,TrackChangesTableClipboard,TrackChangesTableColumnResize,TrackChangesTableOfContents,TrackChangesTableProperties,TrackChangesTemplate,TrackChangesTitle,TrackChangesUploadcare,TrackChangesUndo];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x320fbe){super(_0x320fbe),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x19f54d,_0x9228bd,_0x1f38d2,_0x1a958e)=>{this['_model']['change'](()=>{for(const _0x39f34d of[..._0x1a958e,..._0x1f38d2])this['_model']['markers']['has'](_0x39f34d)&&_0x320fbe['editing']['reconvertMarker'](_0x39f34d);});}),this['descriptionFactory']=new SuggestionDescriptionFactory(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x320fbe['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([renameAttributeKey]),this['_inlineAttributeKeys']=new Set(),_0x320fbe['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x320fbe['config']['get']('trackChanges.trackFormatChanges'),_0x320fbe['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x320fbe['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x320fbe,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x55b92d=this['editor'],_0x2faa9a=(_0x53699d,_0x465807)=>{if('attribute'!=_0x53699d)return'ck-suggestion-marker-'+_0x53699d;const _0x488a5c=_0x465807['split']('|')[0x0];return this['_isBlockAttribute'](_0x488a5c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x55b92d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1d7d19=>{const {id:_0x4c723d,authorId:_0x1b5fba,type:_0x30ebc2,subType:_0x45f04d}=this['_splitMarkerName'](_0x1d7d19['markerName']),_0x53cf36=['ck-suggestion-marker',_0x2faa9a(_0x30ebc2,_0x45f04d)];let _0x369339=0xbb8;return this['activeMarkers']['includes'](_0x1d7d19['markerName'])&&(_0x53cf36['push']('ck-suggestion-marker--active'),_0x369339=0xbc2),'deletion'==_0x30ebc2&&(_0x369339+=0x5),{'classes':_0x53cf36,'attributes':{'data-suggestion':_0x4c723d,'data-author-id':_0x1b5fba},'priority':_0x369339};}}),_0x55b92d['conversion']['for']('dataDowncast')['add'](_0x541944=>{_0x541944['on']('addMarker:suggestion',(_0x3a895b,_0x559c3f,_0x13f0c6)=>{if(!_0x13f0c6['options']['showSuggestionHighlights'])return;const _0x46f2c7=_0x559c3f['item'];if(!_0x46f2c7)return;const _0x547c97=_0x13f0c6['mapper']['toViewElement'](_0x46f2c7);_0x55b92d['model']['schema']['isObject'](_0x46f2c7)&&_0x547c97&&!_0x547c97['getCustomProperty']('widget')&&_0x547c97['is']('containerElement')&&toWidget(_0x547c97,_0x13f0c6['writer']);},{'priority':'high'});}),_0x55b92d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x46ed1a,_0x58633b)=>{if(!_0x58633b['options']['showSuggestionHighlights'])return null;const {id:_0xabee04,authorId:_0x5ecfeb,type:_0x3fd5f5,subType:_0x38198e}=this['_splitMarkerName'](_0x46ed1a['markerName']);return{'classes':['ck-suggestion-marker',_0x2faa9a(_0x3fd5f5,_0x38198e)],'priority':0xbb8,'attributes':{'data-suggestion':_0xabee04,'data-author-id':_0x5ecfeb}};}});const _0xc42106=({showActiveMarkers:_0x4806a3=!0x0,isAttributeSuggestion:_0x48371f=!0x1}={})=>(_0x2da300,_0x4909ff,_0x407e64)=>{if(!_0x4909ff['item'])return;const {id:_0x5a97b4,authorId:_0x2601c8,subType:_0x3576f5}=this['_splitMarkerName'](_0x4909ff['markerName']);if(_0x48371f){const _0x5c94f9=_getAttributeKeyFromSubType(_0x3576f5);if(!this['_isBlockAttribute'](_0x5c94f9))return;}if(_0x4909ff['item']['is']('selection'))return void _0x407e64['consumable']['consume'](_0x4909ff['item'],_0x2da300['name']);const _0x56db9d=_0x407e64['mapper']['toViewElement'](_0x4909ff['item']);if(_0x4909ff['item']['is']('element')&&_0x55b92d['model']['schema']['isBlock'](_0x4909ff['item'])&&!_0x56db9d['getCustomProperty']('addHighlight')){_0x407e64['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x56db9d),_0x407e64['writer']['setAttribute']('data-suggestion',_0x5a97b4,_0x56db9d),_0x407e64['writer']['setAttribute']('data-author-id',_0x2601c8,_0x56db9d),_0x407e64['mapper']['bindElementToMarker'](_0x56db9d,_0x4909ff['markerName']),_0x4806a3&&(this['activeMarkers']['includes'](_0x4909ff['markerName'])?_0x407e64['writer']['addClass']('ck-suggestion-marker--active',_0x56db9d):_0x407e64['writer']['removeClass']('ck-suggestion-marker--active',_0x56db9d));for(const _0x4f372f of _0x55b92d['model']['createRangeIn'](_0x4909ff['item'])['getItems']())_0x407e64['consumable']['consume'](_0x4f372f,_0x2da300['name']);_0x407e64['consumable']['consume'](_0x4909ff['item'],_0x2da300['name']);}};_0x55b92d['conversion']['for']('dataDowncast')['add'](_0x108da7=>{_0x108da7['on']('addMarker:suggestion:formatBlock',(_0x2fe7dc,_0x1912c4,_0x3b690e)=>{_0x3b690e['options']['showSuggestionHighlights']&&_0xc42106({'showActiveMarkers':!0x1})(_0x2fe7dc,_0x1912c4,_0x3b690e);},{'priority':'highest'});}),_0x55b92d['conversion']['for']('dataDowncast')['add'](_0x55198e=>{_0x55198e['on']('addMarker:suggestion:attribute',(_0x59c45a,_0x2735ba,_0x39f604)=>{_0x39f604['options']['showSuggestionHighlights']&&_0xc42106({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x59c45a,_0x2735ba,_0x39f604);},{'priority':'highest'});}),_0x55b92d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x27a869,_0x395013)=>{if(_0x395013['options']['showSuggestionHighlights']){const {id:_0x301f1e,authorId:_0x5768fc}=this['_splitMarkerName'](_0x27a869);return _0x27a869['includes'](':split')||_0x27a869['includes'](':merge')?{'group':'suggestion','name':_0x27a869['substr'](0xb),'attributes':{'data-suggestion':_0x301f1e,'data-author-id':_0x5768fc}}:null;}return{'group':'suggestion','name':_0x27a869['substr'](0xb)};}}),_0x55b92d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xeb0154,{writer:_0x5dfb90})=>{let _0x383a4a='suggestion:'+_0xeb0154['getAttribute']('suggestion-type')+':'+_0xeb0154['getAttribute']('id');return _0xeb0154['getAttribute']('marker-count')&&(_0x383a4a+=':'+_0xeb0154['getAttribute']('marker-count')),_0x5dfb90['createElement']('$marker',{'data-name':_0x383a4a});}}),_0x55b92d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x55b92d['conversion']['for']('editingDowncast')['add'](_0x7885e9=>{_0x7885e9['on']('addMarker:suggestion:formatBlock',_0xc42106(),{'priority':'high'});}),_0x55b92d['conversion']['for']('editingDowncast')['add'](_0x158c14=>{_0x158c14['on']('addMarker:suggestion:attribute',_0xc42106({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x55b92d['conversion']['for']('editingDowncast')['add'](_0x115e53=>{_0x115e53['on']('removeMarker:suggestion:formatBlock',(_0x3f4227,_0x58c115,_0x5819ae)=>{const _0x248b5b=_0x5819ae['mapper']['markerNameToElements'](_0x58c115['markerName']);if(_0x248b5b){for(const _0x1d72ac of _0x248b5b)_0x1d72ac['getCustomProperty']('addHighlight')||(_0x5819ae['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1d72ac),_0x5819ae['writer']['removeAttribute']('data-suggestion',_0x1d72ac),_0x5819ae['writer']['removeAttribute']('data-author-id',_0x1d72ac),_0x5819ae['mapper']['unbindElementFromMarkerName'](_0x1d72ac,_0x58c115['markerName']));}},{'priority':'high'});}),_0x55b92d['conversion']['for']('editingDowncast')['add'](_0x29dbc4=>{_0x29dbc4['on']('removeMarker:suggestion:attribute',(_0x31a30b,_0x342ae5,_0x243394)=>{const _0x31091e=_0x243394['mapper']['markerNameToElements'](_0x342ae5['markerName']);if(!_0x31091e)return;const {subType:_0x4b58ad}=this['_splitMarkerName'](_0x342ae5['markerName']),_0x47a9a8=_getAttributeKeyFromSubType(_0x4b58ad);if(this['_isBlockAttribute'](_0x47a9a8)){for(const _0x199e23 of _0x31091e)_0x199e23['getCustomProperty']('addHighlight')||(_0x243394['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x199e23),_0x243394['writer']['removeAttribute']('data-suggestion',_0x199e23),_0x243394['writer']['removeAttribute']('data-author-id',_0x199e23),_0x243394['mapper']['unbindElementFromMarkerName'](_0x199e23,_0x342ae5['markerName']));}},{'priority':'high'});}),_0x55b92d['model']['document']['registerPostFixer'](_0x514164=>{let _0x639474=!0x1;const _0x701741=Array['from'](_0x55b92d['model']['document']['differ']['getChangedMarkers']()),_0x4711a3=new Set();for(const {name:_0x45224c,data:_0x3aada5}of _0x701741){const {group:_0x367d00,type:_0x48c5d4,subType:_0x247d2a,id:_0x3d661c}=this['_splitMarkerName'](_0x45224c);if('suggestion'!==_0x367d00)continue;const _0x4ca1bb=_0x247d2a?'suggestion:'+_0x48c5d4+':'+_0x247d2a+':'+_0x3d661c:'suggestion:'+_0x48c5d4+':'+_0x3d661c,_0x4d1f60=_0x55b92d['model']['markers']['getMarkersGroup'](_0x4ca1bb),_0x2d0dd3=_0x55b92d['model']['markers']['get'](_0x45224c),_0x284265=this['_suggestions']['get'](_0x3d661c);if(null!=_0x3aada5['newRange']){'formatInline'==_0x48c5d4&&(_0x639474=_0x639474||trimFormatInlineSuggestionRange(_0x3aada5['newRange'],_0x45224c,_0x514164,_0x55b92d['model']['schema']));const _0x1a3a9f='attribute'==_0x48c5d4&&this['_isBlockAttribute'](_0x247d2a['split']('|')[0x0]),_0x426535='attribute'==_0x48c5d4&&this['_isInlineAttribute'](_0x247d2a['split']('|')[0x0]);if(_0x3aada5['newRange']['isCollapsed']||'$graveyard'==_0x3aada5['newRange']['root']['rootName']||'formatBlock'==_0x48c5d4&&!isCorrectFormatBlockSuggestionRange(_0x3aada5['newRange'])||_0x1a3a9f&&!isCorrectFormatBlockSuggestionRange(_0x3aada5['newRange'])||_0x426535&&isEmptyRange(_0x3aada5['newRange'])||'deletion'==_0x48c5d4&&isEmptyRange(_0x3aada5['newRange'])||_0x2d0dd3&&isIntersectingWithOtherMarkers(_0x2d0dd3,_0x4d1f60))_0x514164['removeMarker'](_0x45224c),_0x639474=!0x0;else{if(!_0x284265||!_0x284265['isInContent'])continue;if(_0x3aada5['newRange']&&_0x3aada5['oldRange']&&_0x3aada5['newRange']['isEqual'](_0x3aada5['oldRange']))continue;_0x4711a3['add'](_0x284265);}}}return _0x4711a3['size']>0x0&&(_0x639474=!!this['_joinWithAdjacentSuggestions'](_0x4711a3)||_0x639474),_0x639474;}),_0x55b92d['model']['document']['registerPostFixer'](_0x5141ab=>{let _0x3e7cb0=!0x1;for(const _0xd37484 of _0x55b92d['model']['document']['differ']['getChanges']())if('insert'==_0xd37484['type'])for(const _0x55b420 of this['_suggestions']['values']()){if(_0x55b420['isMultiRange']||!_0x55b420['isInContent'])continue;const _0x132afa='formatBlock'==_0x55b420['type'],_0x5783d3=this['_getAttributeKey'](_0x55b420),_0x36c51c=_0x5783d3&&this['_isBlockAttribute'](_0x5783d3);if(!_0x132afa&&!_0x36c51c)continue;const _0x5cac03=_0x55b420['getFirstRange']();if(_0x5cac03['start']['parent']!=_0x5cac03['end']['parent']&&!_0x5cac03['end']['isAtEnd']){const _0x256e7c=_0x55b92d['model']['createPositionAt'](_0x5cac03['start']['nodeAfter'],'end'),_0x54306f=_0x55b92d['model']['createRange'](_0x5cac03['start'],_0x256e7c);_0x5141ab['updateMarker'](_0x55b420['getFirstMarker'](),{'range':_0x54306f}),_0x3e7cb0=!0x0;}}return _0x3e7cb0;}),_0x55b92d['model']['document']['registerPostFixer'](_0x55491f=>this['_processAttributeChanges'](_0x55491f)),_0x55b92d['model']['document']['registerPostFixer'](_0xf41a6f=>!_0xf41a6f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xf41a6f)),_0x55b92d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x55b92d['model']['document']['on']('change:data',(_0x7e1895,_0x3c69e6)=>{if(!_0x3c69e6['isLocal']||_0x3c69e6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1b1499=_0x55b92d['model']['document']['differ']['getChanges']();if(0x0==_0x1b1499['length'])return;const _0x4d8e41=[],_0x5835a7=_0x1b1499['filter'](_0x2e8f42=>'attribute'==_0x2e8f42['type']),_0x34b511=_0x1b1499['filter'](_0x16ef48=>'insert'==_0x16ef48['type']&&'$text'!=_0x16ef48['name']);for(const _0x35c7d7 of _0x5835a7)this['_isRegisteredAttribute'](_0x35c7d7['attributeKey'])&&_0x4d8e41['push']({'key':_0x35c7d7['attributeKey'],'newValue':_0x35c7d7['attributeNewValue'],'oldValue':_0x35c7d7['attributeOldValue'],'range':fixAttributeSuggestionRange(_0x35c7d7['range'],_0x55b92d['model'])});for(const _0x367762 of _0x34b511){if('rename'!=_0x367762['action']&&'refresh'!=_0x367762['action'])continue;const _0x1ecffd=createBlockFormatRangeForElement(_0x367762['position']['nodeAfter'],_0x55b92d['model']),_0xb8fc18=_0x367762['before'];'rename'==_0x367762['action']&&_0x4d8e41['push']({'key':renameAttributeKey,'newValue':_0x367762['name'],'oldValue':_0xb8fc18['name'],'range':_0x1ecffd});for(const [_0x5aac6c,_0x3227a3]of _0xb8fc18['attributes']){if(!this['_isRegisteredAttribute'](_0x5aac6c))continue;const _0x411409=_0x367762['attributes']['get'](_0x5aac6c);_0x3227a3!==_0x411409&&_0x4d8e41['push']({'key':_0x5aac6c,'newValue':_0x411409,'oldValue':_0x3227a3,'range':_0x1ecffd});}for(const [_0x298b60,_0x2e79d1]of _0x367762['attributes'])this['_isRegisteredAttribute'](_0x298b60)&&(_0xb8fc18['attributes']['has'](_0x298b60)||_0x4d8e41['push']({'key':_0x298b60,'newValue':_0x2e79d1,'oldValue':null,'range':_0x1ecffd}));}0x0!=_0x4d8e41['length']&&_0x55b92d['model']['enqueueChange'](_0x3c69e6,_0x3657e1=>{const _0x312830=uid();for(const {range:_0x517f7f,key:_0xcb6b4b,oldValue:_0x99c021,newValue:_0x277485}of _0x4d8e41)this['markAttributeChange'](_0x517f7f,_0xcb6b4b,_0x99c021,_0x277485,{'groupId':_0x312830});this['_reduceExistingSuggestions'](_0x3657e1,_0x4d8e41);});},{'priority':'lowest'}),_0x55b92d['model']['markers']['on']('update:suggestion',(_0x24da8a,_0x358b42,_0x371ab5)=>{if(null==_0x371ab5){const {id:_0x533a85}=this['_splitMarkerName'](_0x358b42['name']),_0xe61162=this['_suggestions']['get'](_0x533a85);_0xe61162&&_0xe61162['addMarkerName'](_0x358b42['name']);}}),_0x55b92d['model']['document']['on']('change:data',()=>{const _0xf6c039=Array['from'](_0x55b92d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x49271f=>'suggestion'===this['_splitMarkerName'](_0x49271f['name'])['group']);if(0x0===_0xf6c039['length'])return;_0xf6c039['sort']((_0x2694fb,_0x34134f)=>{const _0x7d2bbc=_0x2694fb['data']['oldRange'],_0xae7ef1=_0x34134f['data']['oldRange'];return null===_0x7d2bbc&&null===_0xae7ef1?0x0:null===_0x7d2bbc&&null!==_0xae7ef1?-0x1:null!==_0x7d2bbc&&null===_0xae7ef1?0x1:_0x7d2bbc['start']['isBefore'](_0xae7ef1['start'])?-0x1:0x1;});const _0x2491c2=new Set(),_0x4403c8=new Set();for(const {name:_0x13a566,data:_0x2b8360}of _0xf6c039){const {id:_0x40c390}=this['_splitMarkerName'](_0x13a566);if(null===_0x2b8360['oldRange']){const _0x3f7c35=this['_handleNewSuggestionMarker'](_0x13a566);_0x4403c8['add'](_0x3f7c35);}else{const _0x1a5b28=this['_suggestions']['get'](_0x40c390);null!==_0x2b8360['newRange']||_0x1a5b28['isInContent']?(_0x2491c2['add'](_0x1a5b28['head']),_0x4403c8['add'](_0x1a5b28)):this['_removeSuggestion'](_0x1a5b28);}}_0x4403c8['size']>0x0&&this['_refreshSuggestionsChain'](_0x4403c8);for(const _0x358b6e of _0x2491c2)this['fire']('suggestionChanged',_0x358b6e);}),_0x55b92d['model']['on']('applyOperation',(_0x35e408,_0x17dc40)=>{const _0xf727b0=_0x17dc40[0x0];if(!this['_suggestions']['size'])return;if(!_0xf727b0['isDocumentOperation'])return;if(_0xf727b0['batch']['isUndo']||!_0xf727b0['batch']['isLocal'])return;let _0x1a3154,_0x5e5f76;switch(_0xf727b0['type']){case'insert':_0x1a3154=_0x55b92d['model']['createPositionAt'](_0xf727b0['position']),_0x5e5f76=_0x1a3154['getShiftedBy'](_0xf727b0['howMany']);break;case'split':_0x1a3154=_0x55b92d['model']['createPositionAt'](_0xf727b0['splitPosition']),_0x5e5f76=_0x55b92d['model']['createPositionAt'](_0xf727b0['moveTargetPosition']);break;case'move':_0x1a3154=_0x55b92d['model']['createPositionAt'](_0xf727b0['targetPosition']),_0x5e5f76=_0x1a3154['getShiftedBy'](_0xf727b0['howMany']);break;default:return;}const _0x429161=_0x55b92d['model']['createRange'](_0x1a3154,_0x5e5f76);_0x55b92d['model']['change'](()=>{for(const {suggestion:_0x194ce6,meta:_0x55ca9c}of this['_findSuggestions'](_0x429161)){if(_0x194ce6['isMultiRange'])continue;if('formatInline'==_0x194ce6['type'])continue;const _0x1a23c5=this['_getAttributeKey'](_0x194ce6);if(_0x1a23c5&&this['_isBlockAttribute'](_0x1a23c5)&&'split'!=_0xf727b0['type'])continue;const _0x1adecd=_0x194ce6['data']&&_0x194ce6['data']['multipleBlocks'];('formatBlock'!=_0x194ce6['type']||'split'==_0xf727b0['type']&&!_0x1adecd)&&(_0x55ca9c['containsRangeInObject']||'insertion'==_0x194ce6['type']&&_0x55ca9c['isOwn']||_0x194ce6['getFirstRange']()['containsRange'](_0x429161)&&this['_breakSuggestionMarker'](_0x194ce6,_0x1a3154,_0x5e5f76));}});},{'priority':'lowest'}),_0x55b92d['model']['on']('deleteContent',(_0x1d87c1,_0x586a36)=>{const _0x51cb88=_0x586a36[0x0],_0x18f55c=_0x586a36[0x1];if(_0x18f55c&&_0x18f55c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x51cb88['isCollapsed'])return;const _0x4ae305=_0x55b92d['model']['schema'],{start:_0x15b398,end:_0x30370c}=_0x51cb88['getFirstRange'](),_0x245a5b=_0x15b398['nodeAfter']&&_0x4ae305['isLimit'](_0x15b398['nodeAfter'])?null:_0x4ae305['getNearestSelectionRange'](_0x15b398,'forward'),_0x136f57=_0x30370c['nodeBefore']&&_0x4ae305['isLimit'](_0x30370c['nodeBefore'])?null:_0x4ae305['getNearestSelectionRange'](_0x30370c,'backward'),_0x147097=_0x55b92d['model']['createRange'](_0x245a5b?_0x245a5b['start']:_0x15b398,_0x136f57?_0x136f57['end']:_0x30370c);_0x55b92d['model']['change'](_0x16c0a6=>{this['markDeletion'](_0x147097);const _0x3bd9d3=_0x55b92d['model']['schema']['getNearestSelectionRange'](_0x147097['start']);_0x51cb88['is']('documentSelection')?_0x16c0a6['setSelection'](_0x3bd9d3):_0x51cb88['setTo'](_0x3bd9d3);}),_0x1d87c1['stop']();},{'priority':priorities['normal']+0xa}),_0x55b92d['model']['on']('insertContent',(_0x32baa7,_0x1c6c68)=>{const _0x4c47fa=_0x1c6c68[_0x1c6c68['length']-0x1];_0x4c47fa&&_0x4c47fa['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x55b92d['model']['change'](()=>{let _0x3f86c4=_0x55b92d['model']['insertContent'](_0x1c6c68[0x0],_0x1c6c68[0x1],_0x1c6c68[0x2],{'forceDefaultExecution':!0x0});if(!_0x3f86c4)return;_0x32baa7['return']=_0x3f86c4['clone']();const _0x40145a=_0x3f86c4['end']['nodeBefore'],_0x2fd266=_0x55b92d['model']['schema'];_0x40145a&&_0x2fd266['isBlock'](_0x40145a)&&!_0x2fd266['isObject'](_0x40145a)&&(_0x3f86c4=_0x55b92d['model']['createRange'](_0x3f86c4['start'],_0x55b92d['model']['createPositionAt'](_0x40145a,'end'))),this['markInsertion'](_0x3f86c4);}),_0x32baa7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x14af60=new AcceptSuggestionCommand(_0x55b92d,this['_suggestions']);_0x55b92d['commands']['add']('acceptSuggestion',_0x14af60),this['enableCommand']('acceptSuggestion');const _0x3ef82c=new DiscardSuggestionCommand(_0x55b92d,this['_suggestions']);_0x55b92d['commands']['add']('discardSuggestion',_0x3ef82c),this['enableCommand']('discardSuggestion'),_0x55b92d['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x55b92d,_0x14af60,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x55b92d['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x55b92d,_0x3ef82c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x55b92d['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x55b92d,_0x14af60,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x55b92d['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x55b92d,_0x3ef82c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5abc2d=_0x55b92d['plugins']['get']('CommentsRepository');this['listenTo'](_0x5abc2d,'addComment',(_0x1d0648,{threadId:_0x57aa51})=>{const _0x4991c0=this['_suggestions']['get'](_0x57aa51);_0x4991c0&&_0x4991c0['commentThread']&&0x1===_0x4991c0['commentThread']['length']&&this['_updateSuggestionData'](_0x57aa51,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5abc2d,'removeComment',(_0x3ffac8,{threadId:_0x57ff62})=>{const _0x28054b=this['_suggestions']['get'](_0x57ff62);_0x28054b&&_0x28054b['commentThread']&&!_0x28054b['commentThread']['length']&&this['_updateSuggestionData'](_0x57ff62,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){checkLicense$1(this);}set['adapter'](_0x3ca95a){if(this['_adapter'])throw new CKEditorError('track-changes-adapter-already-set',this);this['_adapter']=_0x3ca95a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1690ac=!0x1,toJSON:_0x36593e=!0x1}={}){const _0x14226c=[];for(const _0x4ddc69 of this['_suggestions']['values']())_0x1690ac&&!_0x4ddc69['isInContent']||_0x14226c['push'](_0x4ddc69);return _0x36593e?_0x14226c['map'](_0x257000=>_0x257000['toJSON']()):_0x14226c;}['getSuggestion'](_0x3a4579){const _0x421bce=this['_suggestions']['get'](_0x3a4579);if(!_0x421bce)throw new CKEditorError('track-changes-suggestion-not-found',this);return _0x421bce;}['hasSuggestion'](_0x2be70b){return this['_suggestions']['has'](_0x2be70b);}['addSuggestionData'](_0x2cba2c){const {authorId:_0x4583f8,id:_0x3c2c7b,originalSuggestionId:_0x3daff0,attributes:_0x153fa0}=_0x2cba2c,[_0x1320c4,_0x49ca77]=_0x2cba2c['type']['split'](':'),_0x37b3f3=this['_suggestions']['get'](_0x3c2c7b)||this['_createSuggestion'](_0x1320c4,_0x49ca77,_0x3c2c7b,_0x4583f8,_0x153fa0,_0x3daff0);if(this['_addThreadToSuggestion'](_0x37b3f3),this['_checkSuggestionCorrectness'](_0x37b3f3,_0x1320c4,_0x49ca77||null,_0x4583f8),_0x37b3f3['createdAt']=_0x2cba2c['createdAt'],_0x37b3f3['_isDataLoaded']=!0x0,_0x153fa0&&_0x153fa0['@external']){const _0x3d2297=_0x153fa0['@external'],_0x23b199=this['_getExternalAuthor'](_0x3d2297['authorName']);_0x37b3f3['authoredAt']=_0x3d2297['createdAt'],_0x37b3f3['author']=_0x23b199,_0x37b3f3['isExternal']=!0x0;}else _0x37b3f3['authoredAt']=_0x2cba2c['createdAt'];switch(_0x2cba2c['data']&&(_0x37b3f3['data']=_0x2cba2c['data']),_0x2cba2c['attributes']&&(_0x37b3f3['attributes']=_0x2cba2c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x37b3f3['_saved']=!0x0),this['_suggestionState']['get'](_0x37b3f3)){case'notReady':this['_suggestionState']['set'](_0x37b3f3,'dataReady');break;case'markerReady':_0x37b3f3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x37b3f3])),this['_refreshSuggestionsChain'](new Set([_0x37b3f3])),this['_suggestionState']['set'](_0x37b3f3,'ready'),this['fire']('suggestionLoaded',_0x37b3f3)):this['_suggestionState']['set'](_0x37b3f3,'removed');}return _0x37b3f3;}['acceptSuggestion'](_0x18f2e6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x146fad of _0x18f2e6['getAllAdjacentSuggestions']())_0x146fad['accept']();});});}['discardSuggestion'](_0x4f40b0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x506c14 of _0x4f40b0['getAllAdjacentSuggestions']())_0x506c14['discard']();});});}['enableCommand'](_0x4e0182,_0x40f567){const _0x64ed57=this['editor']['commands']['get'](_0x4e0182);if(!_0x64ed57)throw new CKEditorError('track-changes-command-not-found',this,{'commandName':_0x4e0182});if(this['_enabledCommands']['has'](_0x64ed57))throw new CKEditorError('track-changes-enable-command-twice',this,{'commandName':_0x4e0182});this['_enabledCommands']['add'](_0x64ed57),_0x40f567&&_0x64ed57['on']('execute',(_0x12eaf6,_0x53770a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x53770a['length']>0x0&&_0x53770a[_0x53770a['length']-0x1]&&_0x53770a[_0x53770a['length']-0x1]['forceDefaultExecution']?_0x53770a['pop']():(_0x12eaf6['return']=_0x40f567((..._0x387b0a)=>_0x64ed57['execute'](..._0x387b0a,{'forceDefaultExecution':!0x0}),..._0x53770a),_0x12eaf6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2cd80f){let _0x4e750b,_0x3e220e;const _0x7ce858=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4e750b=_0x2cd80f();}catch(_0x26e5a8){_0x3e220e=_0x26e5a8;}return _0x7ce858||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3e220e&&CKEditorError['rethrowUnexpectedError'](_0x3e220e,this),_0x4e750b;}['markInsertion'](_0x36a932,_0x357ff8=null,_0x35fab3={}){if(_0x36a932['isCollapsed'])return null;const _0x43eeb9=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x35fab3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1e37a0,meta:_0x34f6b1}of this['_findSuggestions'](_0x36a932,'insertion'))if(_0x34f6b1['isOwn']){if(!_0x34f6b1['isNextTo']){if(_0x34f6b1['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!_areSimilarAttributes(_0x1e37a0,_0x35fab3))continue;return _0x1e37a0;}if(_areSimilarAttributes(_0x1e37a0,_0x35fab3))return _0x1e37a0;this['_breakSuggestionMarker'](_0x1e37a0,_0x36a932['start'],_0x36a932['end']);break;}if(_0x357ff8==_0x1e37a0['subType']&&_areSimilarAttributes(_0x1e37a0,_0x35fab3)){const _0xfecd6f=_0x1e37a0['getFirstRange']();return _0xfecd6f['start']['isEqual'](_0x36a932['end'])?this['_setSuggestionRange'](_0x1e37a0,this['_model']['createRange'](_0x36a932['start'],_0xfecd6f['end'])):this['_setSuggestionRange'](_0x1e37a0,this['_model']['createRange'](_0xfecd6f['start'],_0x36a932['end'])),_0x1e37a0;}}const _0x37e9b2=uid(),_0x53e98a=_0x43eeb9['id'],_0x252819=_0x357ff8?'insertion:'+_0x357ff8:'insertion',_0x34af87=this['_setSuggestionData']({'id':_0x37e9b2,'type':_0x252819,'createdAt':new Date(),'authorId':_0x53e98a,'attributes':_0x35fab3});return this['_addSuggestionMarker'](_0x252819,_0x37e9b2,_0x53e98a,_0x36a932),_0x34af87;}['markMultiRangeInsertion'](_0x240609,_0x116327='multi',_0xabbd8f={}){const _0xf947a5=this['editor']['plugins']['get']('Users')['me'],_0x2711e2=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x116327,'join');this['_trackingSessionId']&&(_0xabbd8f['trackingSessionId']=this['_trackingSessionId']);for(const _0x1fd454 of this['getSuggestions']())if(_0x1fd454['author']['id']==_0xf947a5['id']&&'insertion'==_0x1fd454['type']&&_0x1fd454['subType']==_0x116327&&_areSimilarAttributes(_0x1fd454,_0xabbd8f)&&(_0x2711e2(_0x1fd454['getRanges'](),_0x240609)||_0x2711e2(_0x240609,_0x1fd454['getRanges']()))){for(const _0x2e1ba3 of _0x240609)_0x1fd454['addRange'](_0x2e1ba3);return _0x1fd454;}for(const {suggestion:_0x4f1165,meta:_0x5133eb}of this['_findSuggestions'](_0x240609,'insertion')){if(!_0x5133eb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5133eb['containsRangeInObject'])continue;if(!_areSimilarAttributes(_0x4f1165,_0xabbd8f))continue;let _0x5b81b2=!0x0;for(const _0x1853b4 of _0x4f1165['getRanges']())for(const _0xe2e86b of _0x240609)if(!_0x1853b4['containsRange'](_0xe2e86b)){_0x5b81b2=!0x1;break;}if(_0x5b81b2)return _0x4f1165;}const _0x19866d=uid(),_0x2aaa25=_0xf947a5['id'],_0x5f3a28='insertion:'+_0x116327,_0x1bd34c=this['_setSuggestionData']({'id':_0x19866d,'type':_0x5f3a28,'createdAt':new Date(),'authorId':_0x2aaa25,'attributes':_0xabbd8f});for(const _0x22117c of _0x240609)this['_addSuggestionMarker'](_0x5f3a28,_0x19866d,_0x2aaa25,_0x22117c,Suggestion['getMultiRangeId']());return _0x1bd34c;}['markInlineFormat'](_0x5e35c5,_0x26bed1,_0x14f6d4=null,_0x211383={}){if(_0x14f6d4=_0x14f6d4||createFormatSubType(_0x26bed1),_0x5e35c5['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x211383['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x498233=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x14f6d4,'accept');return this['forceDefaultExecution'](()=>_0x498233([_0x5e35c5],_0x26bed1,_0x211383)),null;}const _0x290f5a=this['editor']['plugins']['get']('Users')['me'],_0x943839=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x515156,meta:_0x3662de}of this['_findSuggestions'](_0x5e35c5,'insertion'))_0x3662de['isOwn']&&!_0x3662de['isInsideObject']&&_0x943839['push'](..._0x515156['getRanges']());}const _0x4ea1f2=getIntersectionsWithMultipleRanges(_0x5e35c5,_0x943839),_0x24fc05=getDifferencesWithMultipleRanges(_0x5e35c5,_0x943839);_0x4ea1f2['length']&&this['_model']['change'](()=>{for(const _0x3b90ff of _0x4ea1f2){const _0x40ebe2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x14f6d4,'accept');this['forceDefaultExecution'](()=>_0x40ebe2([_0x3b90ff],_0x26bed1,_0x211383));}});for(const _0x5e3cbc of _0x24fc05){let _0x499832=null,_0x5a29f9=_0x5e3cbc['start'],_0x4179ff=_0x5e3cbc['end'];for(const {suggestion:_0x157d47,meta:_0x59d558}of this['_findSuggestions'](_0x5e3cbc,'formatInline')){if(!_0x59d558['isOwn'])continue;if(_0x157d47['subType']!=_0x14f6d4)continue;if(!_areSimilarAttributes(_0x157d47,_0x211383))continue;const _0xf7c57e=_0x157d47['getFirstRange']();if(_0xf7c57e['containsRange'](_0x5e3cbc,!0x0))return null;_0x5a29f9=_0x5a29f9['isBefore'](_0xf7c57e['start'])?_0x5a29f9:_0xf7c57e['start'],_0x4179ff=_0x4179ff['isAfter'](_0xf7c57e['end'])?_0x4179ff:_0xf7c57e['end'],_0x499832?_0xf7c57e['start']['isBefore'](_0x499832['getFirstRange']()['start'])?(_0x499832['removeMarkers'](),_0x499832=_0x157d47):_0x157d47['removeMarkers']():_0x499832=_0x157d47;}const _0x56889c=this['_model']['createRange'](_0x5a29f9,_0x4179ff);if(_0x499832)this['_setSuggestionRange'](_0x499832,_0x56889c);else{const _0x665022=uid(),_0x1eddfe=_0x290f5a['id'];this['_setSuggestionData']({'id':_0x665022,'type':'formatInline:'+_0x14f6d4,'data':_0x26bed1,'createdAt':new Date(),'authorId':_0x1eddfe,'attributes':_0x211383}),this['_addSuggestionMarker']('formatInline:'+_0x14f6d4,_0x665022,_0x1eddfe,_0x56889c);}}return null;}['markBlockFormat'](_0x3468f1,_0x2bb448,_0xd2b2f1=[],_0x5d77a1=null,_0x78c92a={}){_0x2bb448['formatGroupId']||(_0x2bb448['formatGroupId']=_0x2bb448['commandName']),_0x2bb448['multipleBlocks']=_0x3468f1['is']('range'),_0x5d77a1=_0x5d77a1||createFormatSubType(_0x2bb448);const _0x568e76=_0xd2b2f1['map'](_0x1e6199=>createBlockFormatRangeForElement(_0x1e6199,this['_model'])),_0x4f6889=_0x3468f1['is']('range')?_0x3468f1:createBlockFormatRangeForElement(_0x3468f1,this['_model']);if(this['_trackingSessionId']&&(_0x78c92a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x44394e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d77a1,'accept');return this['forceDefaultExecution'](()=>_0x44394e([_0x4f6889],_0x2bb448,_0x78c92a)),null;}_0x568e76['push'](_0x4f6889);let _0x4fcae4=!0x0;for(const _0x51352c of _0x568e76)if(!this['_rangeIsInLocalUserInsertion'](_0x51352c)){_0x4fcae4=!0x1;break;}if(_0x4fcae4&&'always'!==this['_trackFormatChanges']){const _0x457e38=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d77a1,'accept');return this['forceDefaultExecution'](()=>_0x457e38([_0x4f6889],_0x2bb448,_0x78c92a)),null;}let _0x533e90=null,_0x25a627=_0x4f6889['start'],_0x174309=_0x4f6889['end'];for(const {suggestion:_0x1b6d6f,meta:_0x5cb9da}of this['_findSuggestions'](_0x4f6889,'formatBlock')){if(!_0x5cb9da['isOwn'])continue;if(_0x5cb9da['isNextTo']||_0x5cb9da['containsRangeInObject']||_0x5cb9da['isInsideObject'])continue;if(_0x1b6d6f['data']['formatGroupId']!=_0x2bb448['formatGroupId'])continue;if(!_areSimilarAttributes(_0x1b6d6f,_0x78c92a))continue;const _0x1c6945=_0x1b6d6f['getFirstRange']();if(_0x1b6d6f['subType']==_0x5d77a1){if(_0x1c6945['containsRange'](_0x4f6889,!0x0))return null;_0x25a627=_0x25a627['isBefore'](_0x1c6945['start'])?_0x25a627:_0x1c6945['start'],_0x174309=_0x174309['isAfter'](_0x1c6945['end'])?_0x174309:_0x1c6945['end'],_0x533e90?_0x1c6945['start']['isBefore'](_0x533e90['getFirstRange']()['start'])?(_0x533e90['removeMarkers'](),_0x533e90=_0x1b6d6f):_0x1b6d6f['removeMarkers']():_0x533e90=_0x1b6d6f;}else{const _0xd7a85a=_0x4f6889['getIntersection'](_0x1c6945);this['_cutOutSuggestionMarker'](_0x1b6d6f,_0xd7a85a);}}const _0x4481ca=this['editor']['plugins']['get']('Users')['me'],_0x3cd1b7=uid(),_0x3fdff9=_0x4481ca['id'];if(_0x533e90)return this['_setSuggestionRange'](_0x533e90,this['_model']['createRange'](_0x25a627,_0x174309)),_0x533e90;{const _0x570393=this['_setSuggestionData']({'id':_0x3cd1b7,'type':'formatBlock:'+_0x5d77a1,'data':_0x2bb448,'createdAt':new Date(),'authorId':_0x3fdff9,'attributes':_0x78c92a});return this['_addSuggestionMarker']('formatBlock:'+_0x5d77a1,_0x3cd1b7,_0x3fdff9,this['_model']['createRange'](_0x25a627,_0x174309)),_0x570393;}}['markMultiRangeBlockFormat'](_0x2858e6,_0x304f9d,_0x63f647=[],_0x1bd817=null,_0x36adac={}){_0x304f9d['formatGroupId']||(_0x304f9d['formatGroupId']=_0x304f9d['commandName']);const _0x5e9bed=_0x2858e6[0x0];_0x304f9d['multipleBlocks']=_0x5e9bed['is']('range'),_0x1bd817=_0x1bd817||createFormatSubType(_0x304f9d);const _0x430978=_0x63f647['map'](_0x4a0961=>createBlockFormatRangeForElement(_0x4a0961,this['_model'])),_0x4aa219=_0x5e9bed['is']('range')?_0x2858e6:_0x2858e6['map'](_0x30d870=>createBlockFormatRangeForElement(_0x30d870,this['_model']));if(this['_trackingSessionId']&&(_0x36adac['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4aa34c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1bd817,'accept');return this['forceDefaultExecution'](()=>_0x4aa34c(_0x4aa219,_0x304f9d,_0x36adac)),null;}_0x430978['push'](..._0x4aa219);let _0x4ea3e7=!0x0;for(const _0x32a3bf of _0x430978)if(!this['_rangeIsInLocalUserInsertion'](_0x32a3bf)){_0x4ea3e7=!0x1;break;}if(_0x4ea3e7&&'always'!==this['_trackFormatChanges']){const _0x3a2cb9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1bd817,'accept');return this['forceDefaultExecution'](()=>_0x3a2cb9(_0x4aa219,_0x304f9d,_0x36adac)),null;}const _0x43dd87=this['editor']['plugins']['get']('Users')['me'];for(const _0x1cee92 of this['getSuggestions']()){const _0x77df2f=_0x1cee92['data'];if(_0x1cee92['author']['id']!=_0x43dd87['id'])continue;if('formatBlock'!=_0x1cee92['type']||_0x77df2f['formatGroupId']!=_0x304f9d['formatGroupId'])continue;if(!_areSimilarAttributes(_0x1cee92,_0x36adac))continue;const _0x44c0d9=_0x1cee92['subType']==_0x1bd817;for(let _0x59ee9f=0x0;_0x59ee9f<_0x4aa219['length'];_0x59ee9f++){const _0x373500=_0x4aa219[_0x59ee9f];for(const _0x1a64f2 of _0x1cee92['getMarkers']()){const _0x1370b3=_0x1a64f2['getRange']();if(_0x373500['isEqual'](_0x1370b3)){_0x44c0d9?(_0x4aa219['splice'](_0x59ee9f,0x1),_0x59ee9f--):_0x1cee92['removeMarker'](_0x1a64f2['name']);break;}}}}if(0x0==_0x4aa219['length'])return null;const _0x5059fc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1bd817,'join');for(const _0x463f76 of this['getSuggestions']()){const _0x2bf089=_0x463f76['data'];if(_0x463f76['author']['id']==_0x43dd87['id']&&('formatBlock'==_0x463f76['type']&&_0x2bf089['formatGroupId']==_0x304f9d['formatGroupId']&&_0x463f76['subType']==_0x1bd817&&_areSimilarAttributes(_0x463f76,_0x36adac)&&(_0x5059fc(_0x463f76['getRanges'](),_0x4aa219)||_0x5059fc(_0x4aa219,_0x463f76['getRanges']())))){for(const _0x2a0832 of _0x4aa219)_0x463f76['addRange'](_0x2a0832);return _0x463f76;}}const _0x535340=uid(),_0x3a9f1d=_0x43dd87['id'],_0x3430ef='formatBlock:'+_0x1bd817,_0x5528ed=this['_setSuggestionData']({'id':_0x535340,'type':_0x3430ef,'data':_0x304f9d,'createdAt':new Date(),'authorId':_0x3a9f1d,'attributes':_0x36adac});for(const _0x1a720b of _0x4aa219)this['_addSuggestionMarker'](_0x3430ef,_0x535340,_0x3a9f1d,_0x1a720b,Suggestion['getMultiRangeId']());return _0x5528ed;}['markDeletion'](_0x201c6d,_0x353a90=null,_0x5b8e41={}){if(_0x201c6d['isCollapsed'])return null;const _0x470f8e=this['editor']['plugins']['get']('Users')['me'],_0x5988ef=new ModelLiveRange(_0x201c6d['start'],_0x201c6d['end']);this['_trackingSessionId']&&(_0x5b8e41['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x95a60b,meta:_0x23ed97}of this['_findSuggestions'](_0x5988ef,'insertion'))if(_0x23ed97['isOwn']&&!_0x23ed97['isNextTo']){if(_0x95a60b['isMultiRange']){const _0x53b72e=_0x95a60b['getRanges']()['filter'](_0x1439b8=>'$graveyard'!=_0x1439b8['root']['rootName']);_0x53b72e['every'](_0x26d58c=>_0x5988ef['containsRange'](_0x26d58c,!0x0))&&_0x95a60b['discard']();if(_0x53b72e['some'](_0x2fd7cb=>_0x2fd7cb['containsRange'](_0x5988ef,!0x0))){const _0x12e084=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x353a90,'accept');return this['forceDefaultExecution'](()=>_0x12e084([_0x5988ef],null,_0x5b8e41)),null;}}else{const _0x59fecd=_0x5988ef['getIntersection'](_0x95a60b['getFirstRange']());null!==_0x59fecd&&_0x95a60b['_onDiscard']([_0x59fecd],null,_0x5b8e41);}}if(_0x5988ef['detach'](),_0x5988ef['isCollapsed']||'$graveyard'==_0x5988ef['root']['rootName'])return null;let _0x3246fb=null,_0x490fb1=_0x5988ef['start'],_0x574db7=_0x5988ef['end'];const _0x5e165e=this['_findSuggestions'](_0x5988ef,'deletion');for(const {suggestion:_0x17f38d,meta:_0x272c7f}of _0x5e165e){const _0x5e30df=this['_model']['createRange'](_0x490fb1,_0x574db7);if(_0x272c7f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x272c7f['containsRangeInObject']&&!_0x272c7f['isInsideObject'])){if(_0x17f38d['isMultiRange']){if(!_areSimilarAttributes(_0x17f38d,_0x5b8e41))continue;let _0xf4daa0=!0x0;for(const _0xb190e8 of _0x17f38d['getRanges']()){if(_0xb190e8['containsRange'](_0x5e30df,!0x0))return _0x17f38d;_0x5e30df['containsRange'](_0xb190e8)||(_0xf4daa0=!0x1);}_0xf4daa0&&_0x17f38d['discard']();}else{const _0x4b9477=_0x17f38d['getFirstRange']();if(_0x4b9477['containsRange'](_0x5e30df,!0x0))return _0x17f38d;if(!_areSimilarAttributes(_0x17f38d,_0x5b8e41)){_0x5e30df['containsRange'](_0x4b9477)?_0x17f38d['removeMarkers']():_0x4b9477['containsPosition'](_0x490fb1)?_0x490fb1=_0x4b9477['end']:_0x4b9477['containsPosition'](_0x574db7)&&(_0x574db7=_0x4b9477['start']);continue;}_0x490fb1=_0x490fb1['isBefore'](_0x4b9477['start'])?_0x490fb1:_0x4b9477['start'],_0x574db7=_0x574db7['isAfter'](_0x4b9477['end'])?_0x574db7:_0x4b9477['end'],_0x5b8e41=Object['assign']({},_0x17f38d['attributes']),_0x3246fb?_0x4b9477['start']['isBefore'](_0x3246fb['getFirstRange']()['start'])?(_0x3246fb['removeMarkers'](),_0x3246fb=_0x17f38d):_0x17f38d['removeMarkers']():_0x3246fb=_0x17f38d;}}}if(_0x3246fb)return this['_setSuggestionRange'](_0x3246fb,this['_model']['createRange'](_0x490fb1,_0x574db7)),_0x3246fb;{const _0x33ad08=uid(),_0x48bfcd=this['_model']['createRange'](_0x490fb1,_0x574db7),_0x52498e=_0x470f8e['id'],_0x263d1b=_0x353a90?'deletion:'+_0x353a90:'deletion',_0x27c946=this['_setSuggestionData']({'id':_0x33ad08,'type':_0x263d1b,'createdAt':new Date(),'authorId':_0x52498e,'attributes':_0x5b8e41});return this['_addSuggestionMarker'](_0x263d1b,_0x33ad08,_0x52498e,_0x48bfcd),_0x27c946;}}['markMultiRangeDeletion'](_0x5758c1,_0xe743f7='multi',_0x5c6d74={}){const _0x46c2dd=this['editor']['plugins']['get']('Users')['me'],_0xc4cc90=_0x5758c1['map'](_0x5ae214=>new ModelLiveRange(_0x5ae214['start'],_0x5ae214['end'])),_0x2639c8=new Set();this['_trackingSessionId']&&(_0x5c6d74['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x34dde6,meta:_0x5e226f}of this['_findSuggestions'](_0xc4cc90,'insertion'))_0x5e226f['isOwn']&&!_0x5e226f['isNextTo']&&_0x2639c8['add'](_0x34dde6);for(const _0x492c1c of _0x2639c8)if(_0x492c1c['isMultiRange']){const _0x14dc7b=_0x492c1c['getRanges']();(!_0x492c1c['attributes']||!_0x492c1c['attributes']['skipNestingCheck'])&&(_0x14dc7b['every'](_0xbab991=>_0xc4cc90['some'](_0x16e850=>_0x16e850['containsRange'](_0xbab991,!0x0)))&&_0x492c1c['discard']());if(_0xc4cc90['every'](_0x4ee6bd=>_0x14dc7b['some'](_0x204bc8=>_0x204bc8['containsRange'](_0x4ee6bd,!0x0)))){const _0x4eb660=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xe743f7,'accept');return this['forceDefaultExecution'](()=>_0x4eb660(_0x5758c1,null,_0x5c6d74)),null;}}else{const _0x3aead1=_0x492c1c['getFirstRange']();_0xc4cc90['some'](_0x115a91=>_0x115a91['containsRange'](_0x3aead1,!0x0))&&_0x492c1c['discard']();if(_0xc4cc90['every'](_0x14d485=>_0x3aead1['containsRange'](_0x14d485,!0x0))){const _0x4058ac=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xe743f7,'accept');return this['forceDefaultExecution'](()=>_0x4058ac(_0xc4cc90,null,_0x5c6d74)),null;}}const _0x411258=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xe743f7,'join');let _0x3676de=null;for(const _0x529366 of this['getSuggestions']())if(_0x529366['author']['id']==_0x46c2dd['id']&&_0x529366['isInContent']&&'deletion'==_0x529366['type']&&_0x529366['subType']==_0xe743f7&&_areSimilarAttributes(_0x529366,_0x5c6d74)&&(_0x411258(_0x529366['getRanges'](),_0xc4cc90)||_0x411258(_0xc4cc90,_0x529366['getRanges']()))){if(_0x3676de){if(_0x529366['commentThread']&&_0x529366['commentThread']['length'])continue;for(const _0x1a43de of _0x529366['getRanges']())_0x3676de['isIntersectingWithRange'](_0x1a43de)||_0x3676de['addRange'](_0x1a43de);_0x529366['removeMarkers']();}else{_0x3676de=_0x529366;for(const _0x45b84b of _0xc4cc90)_0x529366['isIntersectingWithRange'](_0x45b84b)||_0x529366['addRange'](_0x45b84b);}}if(_0x3676de)return _0x3676de;_0x2639c8['clear']();for(const {suggestion:_0x3dcc48,meta:_0x229b73}of this['_findSuggestions'](_0xc4cc90,'deletion'))_0x229b73['isOwn']&&(this['_mergeNestedSuggestions']||!_0x229b73['containsRangeInObject']&&!_0x229b73['isInsideObject'])&&_areSimilarAttributes(_0x3dcc48,_0x5c6d74)&&_0x2639c8['add'](_0x3dcc48);for(const _0xb613f2 of _0x2639c8){const _0x1b11b0=_0xb613f2['getRanges']();if(!_0x5c6d74||!_0x5c6d74['skipNestingCheck']){if(_0xc4cc90['every'](_0x25709b=>_0x1b11b0['some'](_0x4a029e=>_0x4a029e['containsRange'](_0x25709b,!0x0))))return _0xb613f2;}(!_0xb613f2['attributes']||!_0xb613f2['attributes']['skipNestingCheck'])&&(_0x1b11b0['every'](_0x1a9840=>_0xc4cc90['some'](_0x186f64=>_0x186f64['containsRange'](_0x1a9840,!0x0)))&&_0xb613f2['discard']());}const _0xb1765d=uid(),_0xc383ce=_0x46c2dd['id'],_0x30db6f='deletion:'+_0xe743f7,_0x4ee1e4=this['_setSuggestionData']({'id':_0xb1765d,'type':_0x30db6f,'createdAt':new Date(),'authorId':_0xc383ce,'attributes':_0x5c6d74});for(const _0x19d85a of _0xc4cc90)_0x19d85a['detach'](),_0x19d85a['isCollapsed']||'$graveyard'==_0x19d85a['root']['rootName']||this['_addSuggestionMarker'](_0x30db6f,_0xb1765d,_0xc383ce,_0x19d85a,Suggestion['getMultiRangeId']());return _0x4ee1e4;}['markAttributeChange'](_0x3802a3,_0x51d05b,_0x43535c,_0x5936af,_0x47570d){if(_0x3802a3['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x36b9e1=this['editor']['plugins']['get']('Users')['me']['id'],_0x12efbc=Array['from'](this['_suggestions']['values']())['filter'](_0x63f5b=>'attribute'==_0x63f5b['type']&&_0x63f5b['data']['key']==_0x51d05b&&_0x63f5b['isIntersectingWithRange'](_0x3802a3));if(this['_trackingSessionId']&&(_0x47570d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5e7a33=this['_findSuggestions'](_0x3802a3,'insertion')['filter'](({meta:_0x3cb5ce})=>_0x3cb5ce['isOwn']&&!_0x3cb5ce['isInsideObject']&&!_0x3cb5ce['isNextTo'])['map'](({suggestion:_0x171346})=>_0x171346);_0x12efbc['unshift'](..._0x5e7a33);}const _0x7ce9ae=new Map([[_0x3802a3,_0x43535c]]);for(const _0x3d5511 of _0x12efbc){const _0x1490d9='attribute'==_0x3d5511['type']?_0x3d5511['data']['oldValue']:void 0x0,_0x57f897=_0x3d5511['getFirstRange'](),_0x555d1d=Array['from'](_0x7ce9ae['keys']())['find'](_0x268b86=>_0x268b86['isIntersecting'](_0x57f897));if(!_0x555d1d)continue;const _0x2cc9e8=_0x555d1d['getDifference'](_0x57f897);this['_isBlockAttribute'](_0x51d05b)&&'insertion'==_0x3d5511['type']&&0x0!=_0x2cc9e8['length']||(_0x7ce9ae['delete'](_0x555d1d),_0x2cc9e8['forEach'](_0x496504=>{_0x7ce9ae['set'](_0x496504,_0x43535c);}),'insertion'!=_0x3d5511['type']&&_0x1490d9!=_0x5936af&&_0x7ce9ae['set'](_0x555d1d['getIntersection'](_0x57f897),_0x1490d9));}const _0x137ce7=[];for(const [_0x2139b3,_0x34428f]of _0x7ce9ae){const _0x585e05=uid(),_0x28ad11={'key':_0x51d05b,'oldValue':_0x34428f,'newValue':_0x5936af};_0x51d05b['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x51d05b});const _0x4bc71f=('attribute:'+(_0x51d05b+'|'+createFormatSubType({'newValue':_0x5936af})))['substring'](0x0,0x3c),_0x333b4c=this['_setSuggestionData']({'id':_0x585e05,'type':_0x4bc71f,'data':_0x28ad11,'createdAt':new Date(),'authorId':_0x36b9e1,'attributes':_0x47570d});_0x137ce7['push'](_0x333b4c),this['_addSuggestionMarker'](_0x4bc71f,_0x585e05,_0x36b9e1,_0x2139b3);}return _0x137ce7;}['enableDefaultAttributesIntegration'](_0x36b943){this['enableCommand'](_0x36b943,(_0x13e281,..._0x454b74)=>{this['recordAttributeChanges'](()=>{_0x13e281(..._0x454b74);});});}['registerBlockAttribute'](_0x243635){this['_blockAttributeKeys']['add'](_0x243635);}['registerInlineAttribute'](_0x49ad52){this['_inlineAttributeKeys']['add'](_0x49ad52);}['startTrackingSession'](_0x17f961){return this['_trackingSessionId']=void 0x0!==_0x17f961?_0x17f961:uid(),this['_trackingSessionId'];}['_getAttributeKey'](_0xe6dbb5){return'attribute'==_0xe6dbb5['type']?_getAttributeKeyFromSubType(_0xe6dbb5['subType']):null;}['_applyOperationsAsSuggestions'](_0xc3f7c6){if(0x0==_0xc3f7c6['length'])return;const _0x193596=this['editor'],_0x3706c9=_0x193596['plugins']['get'](DocumentCompare);let _0x536fdd,_0x2fe3f3=!0x0;for(const _0x148039 in _0xc3f7c6[0x0]){const _0x49c4b5=_0xc3f7c6[0x0][_0x148039];if((_0x49c4b5 instanceof ModelPosition||_0x49c4b5 instanceof ModelRange)&&_0x49c4b5['root']['is']('documentFragment')){_0x2fe3f3=!0x1,_0x536fdd=_0x49c4b5['root'];break;}}_0x193596['model']['change'](_0x301a95=>{const _0x2ba5ab=new Set();for(let _0x587001=0x0;_0x587001<_0xc3f7c6['length'];_0x587001++){const _0x519f24=_0xc3f7c6[_0x587001];if(_0x519f24['baseVersion']=_0x2fe3f3?_0x193596['model']['document']['version']:null,_0x519f24['isDocumentOperation']=_0x2fe3f3,_0x3706c9['isMarkedRemoveOperation'](_0x519f24)){const _0x469375=fixElementSuggestionRange(_0x519f24['newRange'],_0x193596['model']);if(_0x2fe3f3)this['markDeletion'](_0x469375);else{const _0xa8f0b2='suggestion:deletion:'+uid()+':$aiSuggestion';_0x536fdd['markers']['set'](_0xa8f0b2,_0x469375);}}else switch(_0x519f24['type']){case'rename':{const _0x259583=_0x519f24['oldName'],_0x3ed2b9=_0x519f24['newName'];if(_0x259583==_0x3ed2b9)break;_0x301a95['batch']['addOperation'](_0x519f24),_0x193596['model']['applyOperation'](_0x519f24);const _0x4578c5='$elementName',_0x324fa0=_0x519f24['position'],_0x3ef5d9=_0x193596['model']['createRange'](_0x324fa0,_0x193596['model']['createPositionAt'](_0x324fa0['nodeAfter'],'end'));if(_0x2fe3f3)this['markAttributeChange'](_0x3ef5d9,_0x4578c5,_0x259583,_0x3ed2b9,{'groupId':uid()});else{const _0xc9e719='suggestion:attribute:'+_0x4578c5+':'+uid()+':$aiSuggestion';_0x536fdd['markers']['set'](_0xc9e719,_0x3ef5d9);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1c29ab=_0x519f24['oldValue'],_0xc5f496=_0x519f24['newValue'];if(_0x1c29ab==_0xc5f496)break;_0x301a95['batch']['addOperation'](_0x519f24),_0x193596['model']['applyOperation'](_0x519f24);const _0x13965b=_0x519f24['key'];if(!this['_isRegisteredAttribute'](_0x13965b))break;const _0x5a6332=fixElementSuggestionRange(_0x519f24['range'],_0x193596['model']);if(_0x2fe3f3)this['markAttributeChange'](_0x5a6332,_0x13965b,_0x1c29ab,_0xc5f496,{'groupId':uid()});else{const _0x3776a4='suggestion:attribute:'+_0x13965b+':'+uid()+':$aiSuggestion';_0x536fdd['markers']['set'](_0x3776a4,_0x5a6332);}break;}case'insert':{_0x301a95['batch']['addOperation'](_0x519f24),_0x193596['model']['applyOperation'](_0x519f24);const _0xfed56a=_0xc3f7c6[_0x587001+0x1]&&'move'==_0xc3f7c6[_0x587001+0x1]['type'];if(!_0x2fe3f3&&_0xfed56a&&transformMarkers(_0x536fdd,_0x519f24),_0xfed56a)break;const _0x5acc7f=_0x519f24['position'],_0x1e2333=_0x519f24['howMany'],_0x2f7345=fixElementSuggestionRange(_0x193596['model']['createRange'](_0x5acc7f,_0x5acc7f['getShiftedBy'](_0x1e2333)),_0x193596['model']);if(_0x2fe3f3)this['markInsertion'](_0x2f7345);else{const _0x1221cb='suggestion:insertion:'+uid()+':$aiSuggestion';_0x536fdd['markers']['set'](_0x1221cb,_0x2f7345);}break;}case'split':{_0x301a95['batch']['addOperation'](_0x519f24),_0x193596['model']['applyOperation'](_0x519f24);const _0xed5e15=_0x519f24['splitPosition'],_0x3984ae=_0x519f24['moveTargetPosition'],_0x2e1c56=_0x193596['model']['createRange'](_0xed5e15,_0x3984ae);if(_0x2fe3f3)this['markInsertion'](_0x193596['model']['createRange'](_0xed5e15,_0x3984ae));else{const _0x1d7c22='suggestion:insertion:'+uid()+':$aiSuggestion';_0x536fdd['markers']['set'](_0x1d7c22,_0x2e1c56);}break;}case'move':if(_0x301a95['batch']['addOperation'](_0x519f24),_0x193596['model']['applyOperation'](_0x519f24),!_0x2fe3f3&&_0xc3f7c6[_0x587001-0x1]&&'insert'==_0xc3f7c6[_0x587001-0x1]['type']&&transformMarkers(_0x536fdd,_0x519f24),!_0x2fe3f3){const _0x2580d3=_0x519f24['getMovedRangeStart'](),_0x3ac8e5=_0x519f24['howMany'];for(let _0x34f549=0x0;_0x34f549<_0x3ac8e5;_0x34f549++){const _0x339a3e=_0x2580d3['getShiftedBy'](_0x34f549)['nodeAfter'];_0x2ba5ab['add'](_0x339a3e);}}break;case'remove':if(_0x2fe3f3)_0x301a95['batch']['addOperation'](_0x519f24),_0x193596['model']['applyOperation'](_0x519f24);else{const _0xa876ba=_0x519f24['sourcePosition'],_0x477f1b=_0x519f24['howMany'],_0x53742f=new _DetachOperation(_0xa876ba,_0x477f1b);_0x301a95['batch']['addOperation'](_0x53742f),_0x193596['model']['applyOperation'](_0x53742f);}}}for(const _0x473471 of _0x2ba5ab){const _0x30152f=_0x193596['model']['createRangeOn'](_0x473471),_0x45aff9='suggestion:formatBlock:$fakeWrap:'+uid()+':$aiSuggestion';_0x536fdd['markers']['set'](_0x45aff9,fixElementSuggestionRange(_0x30152f,_0x193596['model']));}});}['_setSuggestionRange'](_0x5bebcd,_0x27e26f){const _0xa1225d=_0x5bebcd['getFirstMarker']();this['_model']['change'](_0xac5a87=>{_0xac5a87['updateMarker'](_0xa1225d,{'range':_0x27e26f});});}['_addThreadToSuggestion'](_0x1f9776){const _0x324c22=_0x1f9776['id'],_0x2cd7c1=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x324c22)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2cd7c1,'threadId':_0x324c22,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x15137a=this['_commentsRepository']['getCommentThread'](_0x324c22);_0x15137a['unbind']('isRemovable'),_0x15137a['isRemovable']=!0x1,_0x1f9776['commentThread']=_0x15137a;}['_checkSuggestionCorrectness'](_0x3a37e2,_0xce2878,_0xf5fe28,_0x519dd5){if(_0x3a37e2['type']!=_0xce2878||_0x3a37e2['subType']!=_0xf5fe28||_0x3a37e2['creator']['id']!=_0x519dd5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new CKEditorError('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5ca4ca,_0x596500){const _0x448e3a=_0x5ca4ca['getFirstRange']();if(_0x596500['isEqual'](_0x448e3a))_0x5ca4ca['removeMarkers']();else{if(_0x448e3a['containsRange'](_0x596500)){const _0x223fb5=this['_model']['createPositionAt'](_0x596500['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5ca4ca,this['_model']['createRange'](_0x448e3a['start'],_0x223fb5));const _0x4ac8e2=uid(),_0x5d7114=_0x5ca4ca['creator']['id'],_0x4c2822=_0x5ca4ca['type']+':'+_0x5ca4ca['subType'];this['_setSuggestionData']({'id':_0x4ac8e2,'type':_0x4c2822,'createdAt':new Date(),'authorId':_0x5d7114,'data':_0x5ca4ca['data'],'attributes':_0x5ca4ca['attributes']});const _0x2bbedf=this['_model']['createPositionAt'](_0x596500['end']['parent'],'after'),_0x4d3d0b=this['_model']['createRange'](_0x2bbedf,_0x448e3a['end']);this['_addSuggestionMarker'](_0x4c2822,_0x4ac8e2,_0x5d7114,_0x4d3d0b);}else{if(_0x448e3a['containsPosition'](_0x596500['start'])){const _0x90698c=this['_model']['createPositionAt'](_0x596500['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5ca4ca,this['_model']['createRange'](_0x448e3a['start'],_0x90698c));}else{const _0x5b3451=this['_model']['createPositionAt'](_0x596500['end']['parent'],'after');this['_setSuggestionRange'](_0x5ca4ca,this['_model']['createRange'](_0x5b3451,_0x448e3a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x899fd7){for(const {suggestion:_0x41fccb,meta:_0x3df7f8}of this['_findSuggestions'](_0x899fd7,'insertion')){if(!_0x3df7f8['isOwn'])continue;const _0x5aebb2=_0x41fccb['getRanges']();for(const _0x33dfe4 of _0x5aebb2)if(!_0x899fd7['getDifference'](_0x33dfe4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x224433){return this['editor']['plugins']['get']('Users')['getUser'](_0x224433);}['_getExternalAuthor'](_0x4a9d74){const _0x49da7c=this['editor']['plugins']['get']('Users'),_0x1be64b=hashObject('external:'+_0x4a9d74),_0x4ad0ee=_0x49da7c['getUser'](_0x1be64b);return _0x4ad0ee||_0x49da7c['addUser']({'id':_0x1be64b,'name':_0x4a9d74});}['_createSuggestion'](_0x30095b,_0x4757b1,_0x3f080f,_0x3bbe1a,_0x286bd6,_0x4d72df){const _0x257e7a=this['_getAuthorFromId'](_0x3bbe1a);if(!_0x257e7a)throw new CKEditorError('track-changes-user-not-found',this,{'authorId':_0x3bbe1a,'suggestionId':_0x3f080f});const _0xdc6757=this['_suggestionFactory']['buildSuggestion'](_0x30095b,_0x4757b1,_0x3f080f,_0x257e7a,_0x286bd6,_0x2d9b68=>{this['_updateSuggestionData'](_0x3f080f,{'attributes':_0x2d9b68});const _0x58a29e=this['getSuggestion'](_0x3f080f);this['_joinWithAdjacentSuggestions'](new Set([_0x58a29e])),this['_refreshSuggestionsChain'](new Set([_0x58a29e]));},_0x4d72df);return this['listenTo'](_0xdc6757,'accept',()=>{this['_updateSuggestionData'](_0x3f080f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xdc6757,'discard',()=>{this['_updateSuggestionData'](_0x3f080f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3f080f,_0xdc6757),this['_suggestionState']['set'](_0xdc6757,'notReady'),_0xdc6757;}['_splitMarkerName'](_0x2e1fae){const _0x233849=_0x2e1fae['split'](':');return{'group':_0x233849[0x0],'type':_0x233849[0x1],'subType':_0x233849['length']>=0x5?_0x233849[0x2]:null,'id':_0x233849['length']<0x5?_0x233849[0x2]:_0x233849[0x3],'authorId':_0x233849['length']<0x5?_0x233849[0x3]:_0x233849[0x4],'markerCount':0x6==_0x233849['length']?_0x233849[0x5]:null};}['_breakSuggestionMarker'](_0x925259,_0x3a89b7,_0x23f2c1){const _0x2dc739=_0x925259['getFirstRange'](),_0x2034cc=_0x2dc739['start'],_0x54072a=_0x2dc739['end'];this['_setSuggestionRange'](_0x925259,this['_model']['createRange'](_0x2034cc,_0x3a89b7));const _0x5e9cc8=uid(),_0x38fb57=_0x925259['creator']['id'],_0x22fe5f=_0x925259['type']+(_0x925259['subType']?':'+_0x925259['subType']:'');this['_setSuggestionData']({'id':_0x5e9cc8,'type':_0x22fe5f,'createdAt':new Date(),'authorId':_0x38fb57,'originalSuggestionId':_0x925259['_originalSuggestionId']||_0x925259['id'],'attributes':_0x925259['attributes'],'data':_0x925259['data']});const _0x53e96f=this['_getAttributeKey'](_0x925259);('formatBlock'==_0x925259['type']||_0x53e96f&&this['_isBlockAttribute'](_0x53e96f))&&(_0x23f2c1=this['_model']['createPositionBefore'](_0x23f2c1['parent'])),this['_addSuggestionMarker'](_0x22fe5f,_0x5e9cc8,_0x38fb57,this['_model']['createRange'](_0x23f2c1,_0x54072a));}['_findSuggestions'](_0x23984b,_0x5a2253=null){const _0x2f2ac5=[],_0x51cef5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x23984b)||(_0x23984b=[_0x23984b]);for(const _0x7c1257 of this['getSuggestions']()){if(!_0x7c1257['isInContent'])continue;if(_0x5a2253&&_0x7c1257['type']!=_0x5a2253)continue;let _0x3bd93d=!0x1;for(const _0x10d758 of _0x7c1257['getRanges']()){for(const _0x34bebf of _0x23984b){const _0x3f68f2=_0x34bebf['start']['isEqual'](_0x10d758['end'])||_0x34bebf['end']['isEqual'](_0x10d758['start']);if(_0x3f68f2||_0x34bebf['getIntersection'](_0x10d758)){const _0x14a909=_0x34bebf['containsRange'](_0x10d758)&&_isInObject(this['_model']['schema'],_0x10d758['start'],_0x34bebf),_0x16fd40=_0x10d758['containsRange'](_0x34bebf)&&_isInObject(this['_model']['schema'],_0x34bebf['start'],_0x10d758);_0x2f2ac5['push']({'suggestion':_0x7c1257,'meta':{'isOwn':_0x51cef5==_0x7c1257['author'],'isNextTo':_0x3f68f2,'isInsideObject':_0x14a909,'containsRangeInObject':_0x16fd40}}),_0x3bd93d=!0x0;break;}}if(_0x3bd93d)break;}}return _0x2f2ac5;}['_addSuggestionMarker'](_0x277ab4,_0x591bff,_0x12c524,_0x5eaa4e,_0xdb6fc8){this['_model']['change'](_0x1d6773=>{let _0x3f14c3='suggestion:'+_0x277ab4+':'+_0x591bff+':'+_0x12c524;_0xdb6fc8&&(_0x3f14c3=_0x3f14c3+':'+_0xdb6fc8),_0x1d6773['addMarker'](_0x3f14c3,{'range':_0x5eaa4e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2e61d9){const _0x1b66b5=_0x2e61d9['previous'],_0x4676ae=_0x2e61d9['next'];_0x2e61d9['previous']=null,_0x2e61d9['next']=null,null!=_0x1b66b5&&_0x1b66b5['next']==_0x2e61d9&&(_0x1b66b5['next']=_0x4676ae),null!=_0x4676ae&&_0x4676ae['previous']==_0x2e61d9&&(_0x4676ae['previous']=_0x1b66b5),'ready'==this['_suggestionState']['get'](_0x2e61d9)&&(this['_suggestionState']['set'](_0x2e61d9,'removed'),this['fire']('suggestionUnloaded',_0x2e61d9,_0x1b66b5,_0x4676ae));}['_setSuggestionData'](_0x564c28){const _0x5c11a2=_0x564c28['id'],_0x2372ba=this['addSuggestionData'](_0x564c28);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xdfaa67=this['editor']['plugins']['get']('PendingActions'),_0x1e940e=_0x2372ba['hasComments'],_0xe97145=_0x2372ba['subType']?_0x2372ba['type']+':'+_0x2372ba['subType']:_0x2372ba['type'],_0x2e61e2=this['editor']['locale'],_0x3846bc=_0xdfaa67['add'](getTranslation$1(_0x2e61e2,'PENDING_ACTION_SUGGESTION')),_0x4182de={'id':_0x5c11a2,'type':_0xe97145,'hasComments':_0x1e940e,'data':_0x564c28['data']||null,'originalSuggestionId':_0x564c28['originalSuggestionId']||null,'attributes':_0x2372ba['attributes']};this['_adapter']['addSuggestion'](_0x4182de)['then'](_0x38e9bc=>{_0x2372ba['_saved']=!0x0,_0xdfaa67['remove'](_0x3846bc),_0x38e9bc&&_0x38e9bc['createdAt']&&(this['_suggestions']['get'](_0x5c11a2)['createdAt']=_0x38e9bc['createdAt']);})['catch'](_0x3e6486=>{throw logWarning('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2372ba['discard']();}),_0x2372ba['stopListening'](),this['_suggestions']['delete'](_0x2372ba['id']),this['_suggestionState']['delete'](_0x2372ba),_0x3e6486;});}return _0x2372ba;}['_isBlockAttribute'](_0x3f44e5){return this['_blockAttributeKeys']['has'](_0x3f44e5);}['_isInlineAttribute'](_0x47906c){return this['_inlineAttributeKeys']['has'](_0x47906c);}['_updateSuggestionData'](_0x394ecf,_0x1f1309){const _0x2c93ba=this['editor']['plugins']['get']('PendingActions'),_0x2721b4=this['getSuggestion'](_0x394ecf);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2721b4['_saved']){const _0x2aca28=_0x2c93ba['add'](getTranslation$1(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x394ecf,_0x1f1309)['then'](()=>{_0x2c93ba['remove'](_0x2aca28);});}else _0x2721b4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x394ecf,_0x1f1309);});}}['_getSuggestionData'](_0x5d2146){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new CKEditorError('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5d2146);}['_handleNewSuggestionMarker'](_0x5b74a0){const {id:_0x548fcb,type:_0x1b7549,subType:_0x35f5f6,authorId:_0x53c073}=this['_splitMarkerName'](_0x5b74a0),_0x97eafb=this['_suggestions']['get'](_0x548fcb)||this['_createSuggestion'](_0x1b7549,_0x35f5f6,_0x548fcb,_0x53c073,{});switch(this['_checkSuggestionCorrectness'](_0x97eafb,_0x1b7549,_0x35f5f6,_0x53c073),this['_suggestionState']['get'](_0x97eafb)){case'notReady':this['_getSuggestionData'](_0x548fcb)['then'](_0x1e998a=>{let _0x143364=Promise['resolve']();_0x1e998a['hasComments']&&(_0x143364=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x548fcb})),_0x143364['then'](()=>{this['addSuggestionData'](_0x1e998a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x97eafb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x548fcb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x97eafb,'ready'),this['fire']('suggestionLoaded',_0x97eafb);break;case'ready':this['fire']('suggestionChanged',_0x97eafb);}return _0x97eafb['addMarkerName'](_0x5b74a0),_0x97eafb;}['_refreshSuggestionsChain'](_0x4ee74b){const _0x104f51=Array['from'](_0x4ee74b),_0x3f9f61=_0x104f51['filter'](_0x1395f7=>'attribute'==_0x1395f7['type']);this['_refreshAttributeSuggestionsChain'](_0x3f9f61);const _0x41ebac=_0x104f51['filter'](_0x822a26=>!_0x822a26['isMultiRange']&&'attribute'!=_0x822a26['type']),_0x3d3a5f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x522099=>!_0x522099['isMultiRange']&&'attribute'!=_0x522099['type']),_0xe24a58=_0x3d3a5f['filter'](_0x1227eb=>!_0x4ee74b['has'](_0x1227eb)),_0x3b4825=new Map(_0x3d3a5f['map'](_0x13f50b=>[_0x13f50b,this['_suggestionFactory']['getSuggestionCallback'](_0x13f50b['type'],_0x13f50b['subType'],'chain')])),_0x244734=new Map(_0x3d3a5f['map'](_0x295d05=>[_0x295d05,_0x295d05['getFirstRange']()])),_0x845c71=new Set(),_0x4ff2b7=new Set();for(let _0x50597b=0x0;_0x50597b<_0x41ebac['length'];_0x50597b++)_0x2cd483(_0x41ebac[_0x50597b],_0x41ebac,_0x50597b+0x1);for(let _0x20c159=0x0;_0x20c159<_0x41ebac['length'];_0x20c159++)_0x2cd483(_0x41ebac[_0x20c159],_0xe24a58,0x0);const _0x31a076=new Set();for(let _0x4370e7=0x0;_0x4370e7<_0x41ebac['length'];_0x4370e7++){const _0x421813=_0x41ebac[_0x4370e7];!_0x4ff2b7['has'](_0x421813)&&_0x421813['previous']&&(_0x31a076['add'](_0x421813['previous']),_0x421813['previous']['next']===_0x421813&&(_0x421813['previous']['next']=null),_0x421813['previous']=null),!_0x845c71['has'](_0x421813)&&_0x421813['next']&&(_0x31a076['add'](_0x421813['next']),_0x421813['next']['previous']===_0x421813&&(_0x421813['next']['previous']=null),_0x421813['next']=null);}function _0x2cd483(_0x419dd1,_0x4ba605,_0x2d1013){for(let _0x47598a=_0x2d1013;_0x47598a<_0x4ba605['length'];_0x47598a++){const _0x23aab0=_0x349767(_0x419dd1,_0x4ba605[_0x47598a]);_0x23aab0&&(_0x23aab0[0x0]['next']=_0x23aab0[0x1],_0x23aab0[0x1]['previous']=_0x23aab0[0x0],_0x845c71['add'](_0x23aab0[0x0]),_0x4ff2b7['add'](_0x23aab0[0x1]));}}function _0x349767(_0x20deed,_0x5cbd62){if(_0x20deed['author']['id']!==_0x5cbd62['author']['id'])return null;const _0x214dc3=_0x3b4825['get'](_0x20deed)(_0x20deed,_0x5cbd62,_0x244734['get'](_0x20deed),_0x244734['get'](_0x5cbd62));if(!_0x214dc3)return null;return _0x3b4825['get'](_0x5cbd62)(_0x20deed,_0x5cbd62,_0x244734['get'](_0x20deed),_0x244734['get'](_0x5cbd62))?_0x214dc3[0x1]['commentThread']&&_0x214dc3[0x1]['commentThread']['length']?null:_0x214dc3:null;}_0x31a076['size']&&this['_refreshSuggestionsChain'](_0x31a076);}['_refreshAttributeSuggestionsChain'](_0x593287){if(0x0==_0x593287['length'])return;const _0x143493=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f7b50=>'attribute'==_0x3f7b50['type']&&_0x3f7b50['_isDataLoaded']),_0x49dc0f=[],_0x349605=new Map();for(const _0x2fe5e2 of _0x143493){const _0x47d66d=hashObject(_0x2fe5e2['attributes']);_0x349605['has'](_0x47d66d)||(_0x349605['set'](_0x47d66d,_0x49dc0f['length']),_0x49dc0f['push']([]));const _0x233e71=_0x349605['get'](_0x47d66d);_0x49dc0f[_0x233e71]['push'](_0x2fe5e2);}!(function(){_0x49dc0f['sort']((_0x11fd3e,_0x59dc4e)=>{const _0x33db9b=_0x11fd3e[0x0]['createdAt'],_0x52c341=_0x59dc4e[0x0]['createdAt'];return _0x33db9b==_0x52c341?_0x11fd3e[0x0]['attributes']['groupId']<_0x59dc4e[0x0]['attributes']['groupId']?-0x1:0x1:_0x33db9b<_0x52c341?-0x1:0x1;});for(const _0xd3e40a of _0x49dc0f)_0xd3e40a['sort']((_0x5aad36,_0x28e213)=>_0x5aad36['id']<_0x28e213['id']?-0x1:0x1);}());for(let _0x502ce1=0x0;_0x502ce1<_0x49dc0f['length'];_0x502ce1++){if(0x0==_0x49dc0f[_0x502ce1]['length'])continue;const _0x4c47ca=[];for(let _0x5be09a=_0x502ce1+0x1;_0x5be09a<_0x49dc0f['length'];_0x5be09a++)0x0!=_0x49dc0f[_0x5be09a]['length']&&_0x1e22e7(_0x49dc0f[_0x502ce1],_0x49dc0f[_0x5be09a])&&_0x4c47ca['push'](_0x5be09a);for(const _0x8c7d75 of _0x4c47ca)_0x49dc0f[_0x502ce1]=_0x49dc0f[_0x502ce1]['concat'](_0x49dc0f[_0x8c7d75]),_0x49dc0f[_0x8c7d75]=[];}for(const _0x336df2 of _0x49dc0f)for(let _0x364731=0x0;_0x364731<_0x336df2['length'];_0x364731++){const _0x23f2ea=_0x336df2[_0x364731+0x1]||null;_0x336df2[_0x364731]['next']!==_0x23f2ea&&(_0x336df2[_0x364731]['next']=_0x23f2ea);}for(const _0x297035 of _0x49dc0f)for(let _0x1ac1f3=0x0;_0x1ac1f3<_0x297035['length'];_0x1ac1f3++){const _0xe74733=_0x297035[_0x1ac1f3-0x1]||null;_0x297035[_0x1ac1f3]['previous']!==_0xe74733&&(_0x297035[_0x1ac1f3]['previous']=_0xe74733);}function _0x1e22e7(_0x28fc86,_0x1b5035){if(_0x28fc86[0x0]['attributes']['groupId']!==_0x1b5035[0x0]['attributes']['groupId']&&_0x28fc86[0x0]['author']!==_0x1b5035[0x0]['author'])return!0x1;if(!function(_0x28cd13,_0x178fe7){if(!_0x28cd13['hasComments']&&!_0x178fe7['hasComments'])return!0x0;if(_0x28cd13['hasComments']&&_0x178fe7['hasComments'])return!0x1;if(_0x28cd13['hasComments']&&_0x178fe7['createdAt']<_0x28cd13['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x178fe7['hasComments']&&_0x28cd13['createdAt']<_0x178fe7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x28fc86[0x0],_0x1b5035[0x0]))return!0x1;if(!isEqual(omit(_0x28fc86[0x0]['attributes'],['groupId','trackingSessionId']),omit(_0x1b5035[0x0]['attributes'],['groupId','trackingSessionId'])))return!0x1;if(_0x28fc86[0x0]['attributes']['groupId']==_0x1b5035[0x0]['attributes']['groupId'])return!0x0;if(_0x28fc86[0x0]['attributes']['trackingSessionId']!==_0x1b5035[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x28fc86['every'](_0x214dde=>_0x1b5035['some'](_0x1dbd60=>_0x214dde['getFirstRange']()['isEqual'](_0x1dbd60['getFirstRange']())))&&_0x1b5035['every'](_0x13ba1c=>_0x28fc86['some'](_0x16d96b=>_0x13ba1c['getFirstRange']()['isEqual'](_0x16d96b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x432671){const _0x9cb171=Array['from'](_0x432671),_0x50d1a3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x336ed1=_0x50d1a3['filter'](_0x3ff54c=>!_0x432671['has'](_0x3ff54c)),_0x31d7b6=new Map(_0x9cb171['map'](_0x5bdafe=>[_0x5bdafe,this['_suggestionFactory']['getSuggestionCallback'](_0x5bdafe['type'],_0x5bdafe['subType'],'join')])),_0x4b9f27=new Map(_0x50d1a3['map'](_0x2e1f60=>[_0x2e1f60,_0x2e1f60['getRanges']()]));for(let _0x1a3fc8=0x0;_0x1a3fc8<_0x9cb171['length'];_0x1a3fc8++){if(_0x1ae759(this,_0x9cb171[_0x1a3fc8],_0x9cb171,_0x1a3fc8+0x1))return!0x0;}for(let _0x3dea42=0x0;_0x3dea42<_0x9cb171['length'];_0x3dea42++){if(_0x1ae759(this,_0x9cb171[_0x3dea42],_0x336ed1,0x0))return!0x0;}return!0x1;function _0x1ae759(_0x3d656f,_0x14b577,_0x2817e4,_0x2d9774){for(let _0x5f0f91=_0x2d9774;_0x5f0f91<_0x2817e4['length'];_0x5f0f91++){const _0x483563=_0x2817e4[_0x5f0f91];if(_0x483563['type']!==_0x14b577['type']||_0x483563['author']['id']!==_0x14b577['author']['id']||_0x483563['subType']!==_0x14b577['subType'])continue;if(!_haveSameAttributes(_0x14b577,_0x483563))continue;if('attribute'==_0x14b577['type']&&_0x14b577['data']['oldValue']!=_0x483563['data']['oldValue'])continue;if('attribute'==_0x14b577['type']&&_0x3d656f['_isBlockAttribute'](_0x14b577['data']['key']))continue;if('formatBlock'==_0x14b577['type']){const _0x3c704b=_0x3d656f['editor']['model'],_0x15362c=_0x14b577['getContainedElement']();if(_0x15362c&&(_0x3c704b['schema']['isObject'](_0x15362c)||_0x3c704b['schema']['isLimit'](_0x15362c)))continue;}const _0x192b50=_0x31d7b6['get'](_0x14b577),_0x1ac9f6=_0x4b9f27['get'](_0x14b577),_0x385920=_0x4b9f27['get'](_0x483563),_0x6de4d3=_0x14b577['commentThread']&&_0x14b577['commentThread']['length'],_0x16b68f=_0x483563['commentThread']&&_0x483563['commentThread']['length'];if(!_0x6de4d3&&_0x192b50(_0x385920,_0x1ac9f6))return _0x3d656f['_joinSuggestions'](_0x483563,_0x14b577),_0x4b9f27['delete'](_0x14b577),!0x0;if(!_0x16b68f&&_0x192b50(_0x1ac9f6,_0x385920))return _0x3d656f['_joinSuggestions'](_0x14b577,_0x483563),_0x4b9f27['delete'](_0x483563),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4b9245,_0x22d4ad){if(_0x4b9245['isMultiRange']){for(const _0x56d6d3 of _0x22d4ad['getRanges']())_0x4b9245['addRange'](_0x56d6d3);}else{const _0x16dac9=_0x22d4ad['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4b9245,this['_model']['createRange'](_0x4b9245['getFirstRange']()['start'],_0x16dac9));}_0x22d4ad['removeMarkers']();}['_getMarkerAnnouncementText'](_0x56c0d9,_0x226050,_0x506236){const _0x529250=_0x56c0d9['startsWith']('format')||_0x56c0d9['startsWith']('attribute')?'FORMATTING':_0x56c0d9['toUpperCase']();return getTranslation$1(this['editor']['locale'],_0x226050+'_'+_0x529250+'_SUGGESTION_ANNOUNCEMENT',_0x506236);}['_initAriaMarkerChangeAnnouncements'](){const _0x36a950=this['editor'];if(!_0x36a950['ui'])return;const {ariaLiveAnnouncer:_0xb7102a}=_0x36a950['ui'];surroundingMarkersDetector(this['_model'],({left:_0x27c8c3,entered:_0x59bf0e})=>{for(const _0x2835ef of _0x27c8c3){const {group:_0x4f0ae5,type:_0x507f23}=this['_splitMarkerName'](_0x2835ef['name']);if('suggestion'===_0x4f0ae5){_0xb7102a['announce'](this['_getMarkerAnnouncementText'](_0x507f23,'LEAVE'));break;}}for(const _0x484412 of _0x59bf0e){const {group:_0x50d04a,type:_0x56f1a0}=this['_splitMarkerName'](_0x484412['name']);if('suggestion'===_0x50d04a){_0xb7102a['announce'](this['_getMarkerAnnouncementText'](_0x56f1a0,'ENTER',getEnvKeystrokeText(FOCUS_ANNOTATION_KEYSTROKE)));break;}}});}['_processAttributeChanges'](_0x1a4731){if(this['_recordAttributeSuggestions'])return!0x1;const _0x144c14=this['editor'],_0x137d3f=_0x144c14['model']['document']['differ']['getChanges']();if(0x0==_0x137d3f['length'])return!0x1;const _0x141009=[],_0x4a0d44=_0x137d3f['filter'](_0x584b92=>'attribute'==_0x584b92['type']),_0x4d707e=_0x137d3f['filter'](_0x2ded12=>'insert'==_0x2ded12['type']&&'$text'!=_0x2ded12['name']),_0x552de6=_0x137d3f['filter'](_0x2922d7=>'remove'==_0x2922d7['type']&&'$text'!=_0x2922d7['name']);for(const _0x456d60 of _0x4a0d44)_0x141009['push']({'key':_0x456d60['attributeKey'],'newValue':_0x456d60['attributeNewValue'],'oldValue':_0x456d60['attributeOldValue'],'range':fixAttributeSuggestionRange(_0x456d60['range'],_0x144c14['model'])});for(const _0x90d5f7 of _0x4d707e){const _0x15a9b6=_0x552de6['find'](_0x227371=>_0x227371['position']['isEqual'](_0x90d5f7['position']));_0x15a9b6&&_0x141009['push']({'key':renameAttributeKey,'newValue':_0x90d5f7['name'],'oldValue':_0x15a9b6['name'],'range':_0x144c14['model']['createRangeOn'](_0x90d5f7['position']['nodeAfter'])});}return 0x0!=_0x141009['length']&&this['_reduceExistingSuggestions'](_0x1a4731,_0x141009);}['_processAttributeSuggestions'](_0x11400f){let _0x202e6a=!0x1;const _0x386127=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x344429=>_0x344429['data']['newRange']&&_0x344429['name']['startsWith']('suggestion:attribute:'));for(const _0x4e6fcb of _0x386127){const {subType:_0x275d4e,id:_0x507e30}=this['_splitMarkerName'](_0x4e6fcb['name']),_0x25cee0=_0x275d4e['split']('|')[0x0];for(const _0x48b15a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x48b15a['id']!=_0x507e30&&'attribute'==_0x48b15a['type']&&_0x48b15a['data']&&_0x48b15a['data']['key']==_0x25cee0&&_0x48b15a['getFirstRange']()['isIntersecting'](_0x4e6fcb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x48b15a,_0x4e6fcb['data']['newRange'],_0x11400f),_0x202e6a=!0x0);}return _0x202e6a;}['recordAttributeChanges'](_0x27a8b0){this['_recordAttributeSuggestions']=!0x0,_0x27a8b0();}['_isRegisteredAttribute'](_0x35b53a){const _0x5b4290=this['_isBlockAttribute'](_0x35b53a),_0x154298=this['_isInlineAttribute'](_0x35b53a);return _0x5b4290||_0x154298;}['_reduceExistingSuggestions'](_0x69b031,_0x3aed34){if(0x0==_0x3aed34['length'])return!0x1;let _0x358484=!0x1;for(const _0x215206 of _0x3aed34){const _0x13058a=this['_findSuggestions'](_0x215206['range'],'attribute')['filter'](_0x56c0fd=>!_0x56c0fd['meta']['isNextTo'])['map'](_0x64dff5=>_0x64dff5['suggestion']),_0x351f20=hashObject({'newValue':_0x215206['newValue']});_0x13058a['filter'](_0x4cc8c8=>{const [_0x2f9c04,_0x31acfb]=_0x4cc8c8['subType']['split']('|');return _0x2f9c04==_0x215206['key']&&_0x31acfb!=_0x351f20;})['forEach'](_0x38a18a=>{this['_reduceSuggestionAttributeRange'](_0x38a18a,_0x215206['range'],_0x69b031),_0x358484=!0x0;});}return _0x358484;}['_reduceSuggestionAttributeRange'](_0x2de750,_0x2c361a,_0x3cef21){const _0x7c11f3=_0x2de750['getFirstRange']()['getDifference'](_0x2c361a);0x0!==_0x7c11f3['length']?0x1!==_0x7c11f3['length']?this['_breakSuggestionMarker'](_0x2de750,_0x2c361a['start'],_0x2c361a['end']):this['_setSuggestionRange'](_0x2de750,_0x7c11f3[0x0]):_0x3cef21['removeMarker'](_0x2de750['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x495dc7){this['_editor']=_0x495dc7,this['_model']=_0x495dc7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x24918b,_0x5b1b9e,_0xd46bf4,_0x35d370,_0x5c9015,_0x5cc3bd,_0x1fe8f6){return new Suggestion(this['_model'],{'type':_0x24918b,'subType':_0x5b1b9e,'id':_0xd46bf4,'originalSuggestionId':_0x1fe8f6,'author':_0x35d370,'creator':_0x35d370,'attributes':_0x5c9015,'onAttributesChange':_0x5cc3bd,'onAccept':(..._0x21a607)=>this['getSuggestionCallback'](_0x24918b,_0x5b1b9e,'accept')(..._0x21a607),'onDiscard':(..._0x3a89b8)=>this['getSuggestionCallback'](_0x24918b,_0x5b1b9e,'discard')(..._0x3a89b8)});}['registerCustomCallback'](_0x560d45,_0x3dd3f1,_0x42208c,_0x12ba89){const _0x47a726=_0x560d45+':'+_0x3dd3f1+':'+_0x42208c;this['_customCallbacks']['set'](_0x47a726,_0x12ba89);}['getSuggestionCallback'](_0x1f42b8,_0x5abf23,_0x45475b){const _0x176ede=_0x1f42b8+':'+_0x5abf23+':'+_0x45475b;return this['_customCallbacks']['get'](_0x176ede)||this['_defaultCallbacks']['get'](_0x1f42b8+':'+_0x45475b);}['_registerDefaultCallbacks'](){const _0x567542=()=>!0x1,_0x56f101=_0x42000a=>{_0x42000a['sort']((_0x55961b,_0x579d69)=>_0x55961b['start']['isBefore'](_0x579d69['start'])?0x1:-0x1),this['_model']['change'](_0x382644=>{for(const _0x1dcbb7 of _0x42000a){let _0x3cce36;_0x3cce36=_0x1dcbb7['end']['isAtEnd']&&_0x1dcbb7['end']['parent']==_0x1dcbb7['start']['nodeAfter']?_0x382644['createSelection'](_0x1dcbb7['start']['nodeAfter'],'on'):_0x382644['createSelection'](_0x1dcbb7),this['_model']['deleteContent'](_0x3cce36,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3e43bb=(_0x21377c,_0x3b386c)=>{_0x3b386c&&this['_model']['change'](_0x25c855=>{const {commandName:_0x357698,commandParams:_0x3ad55a=[]}=_0x3b386c,_0x32e385=_0x21377c['map'](_0x5b21b1=>(rangeOnOpeningTag(_0x5b21b1)&&(_0x5b21b1=this['_model']['createRange'](_0x5b21b1['end'])),_0x5b21b1))['filter'](_0x58ab74=>'$graveyard'!==_0x58ab74['root']['rootName']);if(_0x32e385['length']<0x1)return;const _0x4ef82e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4ec1e1=>ModelLiveRange['fromRange'](_0x4ec1e1));_0x25c855['setSelection'](_0x32e385);for(const _0x3323e8 of this['_editor']['commands']['commands']())_0x3323e8['refresh']();_0x3ad55a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x357698,..._0x3ad55a);const _0xcfe0d8=_0x4ef82e['filter'](_0x59c81b=>'$graveyard'!=_0x59c81b['root']['rootName']);_0xcfe0d8['length']>0x0&&_0x25c855['setSelection'](_0xcfe0d8);for(const _0x1742c9 of _0x4ef82e)_0x1742c9['detach']();});},_0x5f2cad=(_0x1fa7ca,_0x52aedb)=>0x1==_0x1fa7ca['length']&&0x1==_0x52aedb['length']&&_0x1fa7ca[0x0]['end']['isEqual'](_0x52aedb[0x0]['start']),_0x349327=(_0x5386cb,_0x1d2f2b,_0x3b5ae5,_0x4fc527)=>canChainSuggestions(_0x5386cb,_0x1d2f2b,_0x3b5ae5,_0x4fc527)?[_0x5386cb,_0x1d2f2b]:canChainSuggestions(_0x1d2f2b,_0x5386cb,_0x4fc527,_0x3b5ae5)?[_0x1d2f2b,_0x5386cb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x567542),this['_defaultCallbacks']['set']('insertion:discard',_0x56f101),this['_defaultCallbacks']['set']('insertion:join',_0x5f2cad),this['_defaultCallbacks']['set']('insertion:chain',_0x349327),this['_defaultCallbacks']['set']('deletion:accept',_0x56f101),this['_defaultCallbacks']['set']('deletion:discard',_0x567542),this['_defaultCallbacks']['set']('deletion:join',_0x5f2cad),this['_defaultCallbacks']['set']('deletion:chain',_0x349327),this['_defaultCallbacks']['set']('formatInline:accept',_0x3e43bb),this['_defaultCallbacks']['set']('formatInline:discard',_0x567542),this['_defaultCallbacks']['set']('formatInline:join',_0x5f2cad),this['_defaultCallbacks']['set']('formatInline:chain',_0x567542),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3e43bb),this['_defaultCallbacks']['set']('formatBlock:discard',_0x567542),this['_defaultCallbacks']['set']('formatBlock:join',_0x5f2cad),this['_defaultCallbacks']['set']('formatBlock:chain',_0x567542),this['_defaultCallbacks']['set']('attribute:accept',_0x567542),this['_defaultCallbacks']['set']('attribute:discard',(_0x1bd292,_0xabd751)=>{if(!_0xabd751)return;const _0x2d9712=this['_editor']['plugins']['get'](TrackChangesEditing);this['_model']['change'](_0x461148=>{if(_0xabd751['key']==renameAttributeKey)for(const _0x450c45 of _0x1bd292){const _0x356bea=_0x450c45['start']['nodeAfter'],_0x2a7796=_0xabd751['oldValue'];_0x461148['rename'](_0x356bea,_0x2a7796);}else{if(_0x2d9712['_isBlockAttribute'](_0xabd751['key'])){for(const _0x384add of _0x1bd292)void 0x0!==_0xabd751['oldValue']?_0x461148['setAttribute'](_0xabd751['key'],_0xabd751['oldValue'],_0x384add['start']['nodeAfter']):_0x461148['removeAttribute'](_0xabd751['key'],_0x384add['start']['nodeAfter']);}else{for(const _0x2fc92c of _0x1bd292)_0xabd751['oldValue']?_0x461148['setAttribute'](_0xabd751['key'],_0xabd751['oldValue'],_0x2fc92c):_0x461148['removeAttribute'](_0xabd751['key'],_0x2fc92c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5f2cad);}}function getIntersectionsWithMultipleRanges(_0xe0eb2e,_0xe74ac3){const _0x4efb38=[];for(const _0x180108 of _0xe74ac3){const _0x3b2c4d=_0xe0eb2e['getIntersection'](_0x180108);_0x3b2c4d&&_0x4efb38['push'](_0x3b2c4d);}return _0x4efb38;}function getDifferencesWithMultipleRanges(_0x4049b2,_0x39e53b){const _0x5c21e6=[_0x4049b2];for(const _0x2df29b of _0x39e53b){let _0x30bfd6=0x0;for(;_0x30bfd6<_0x5c21e6['length'];){const _0x355d79=_0x5c21e6[_0x30bfd6]['getDifference'](_0x2df29b);_0x5c21e6['splice'](_0x30bfd6,0x1,..._0x355d79),_0x30bfd6+=_0x355d79['length'];}}return _0x5c21e6;}function _isInObject(_0x4ada7,_0x3a3b58,_0x11da78){for(const _0xbf32c4 of _0x3a3b58['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xbf32c4['root']==_0xbf32c4)return!0x1;if(!_0x11da78['containsItem'](_0xbf32c4))return!0x1;if(_0x4ada7['isObject'](_0xbf32c4)||_0x4ada7['isLimit'](_0xbf32c4))return!0x0;}return!0x1;}function rangeOnOpeningTag(_0x7df6be){return _0x7df6be['end']['parent']==_0x7df6be['start']['nodeAfter']&&_0x7df6be['end']['isAtStart'];}function rangeOnClosingTag(_0x199475){return _0x199475['start']['parent']==_0x199475['end']['nodeBefore']&&_0x199475['start']['isAtEnd'];}function trimFormatInlineSuggestionRange(_0x1c9d3c,_0x469bb8,_0x3bc524,_0x46582c){const _0x239e53=_0x23946d=>!_0x23946d['item']['is']('$textProxy')&&!_0x46582c['isObject'](_0x23946d['item']),_0xbc5d77=_0x1c9d3c['start']['getLastMatchingPosition'](_0x239e53),_0x12fcf3=_0x1c9d3c['end']['getLastMatchingPosition'](_0x239e53,{'direction':'backward'});return(!_0x1c9d3c['start']['isEqual'](_0xbc5d77)||!_0x1c9d3c['end']['isEqual'](_0x12fcf3))&&(_0xbc5d77['isBefore'](_0x12fcf3)?_0x3bc524['updateMarker'](_0x469bb8,{'range':_0x3bc524['createRange'](_0xbc5d77,_0x12fcf3)}):_0x3bc524['removeMarker'](_0x469bb8),!0x0);}function createFormatSubType(_0x12f986){return hashObject(_0x12f986);}function isCorrectFormatBlockSuggestionRange(_0x139d70){const _0x3281dc=_0x139d70['start']['nodeAfter'];return _0x3281dc&&_0x3281dc['is']('element');}function isEmptyRange(_0x4f11ca){return rangeOnOpeningTag(_0x4f11ca)||rangeOnClosingTag(_0x4f11ca);}function isIntersectingWithOtherMarkers(_0x42e8a3,_0x5bec5b){try{const _0x1c8244=_0x42e8a3['getRange']();for(const _0x2e8e88 of _0x5bec5b)if(_0x42e8a3!==_0x2e8e88&&_0x1c8244&&_0x1c8244['isIntersecting'](_0x2e8e88['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function fixElementSuggestionRange(_0x54e2c4,_0x43390f){const _0xf412ae=_0x54e2c4['end']['nodeBefore'];if(_0xf412ae&&_0xf412ae['is']('element')&&_0x43390f['schema']['isBlock'](_0xf412ae)&&!_0x43390f['schema']['isObject'](_0xf412ae)){const _0x3959fc=_0x43390f['createPositionAt'](_0xf412ae,'end');return _0x43390f['createRange'](_0x54e2c4['start'],_0x3959fc);}return _0x54e2c4;}function fixAttributeSuggestionRange(_0x384dde,_0x278037){return null==_0x384dde['end']['nodeBefore']&&_0x384dde['end']['parent']==_0x384dde['start']['nodeAfter']?createBlockFormatRangeForElement(_0x384dde['start']['nodeAfter'],_0x278037):_0x384dde;}function createBlockFormatRangeForElement(_0x2e9b07,_0x1527da){const _0x57cb16=_0x1527da['schema']['isObject'](_0x2e9b07)||_0x1527da['schema']['isSelectable'](_0x2e9b07);return _0x1527da['createRange'](_0x1527da['createPositionAt'](_0x2e9b07,'before'),_0x57cb16?_0x1527da['createPositionAfter'](_0x2e9b07):_0x1527da['createPositionAt'](_0x2e9b07,'end'));}function canChainSuggestions(_0x22cbf6,_0x1abc52,_0x3c6315,_0x3c3d75){return!!_haveSameAttributes(_0x22cbf6,_0x1abc52)&&_0x3c6315['end']['isEqual'](_0x3c3d75['start']);}function _haveSameAttributes(_0x5debe5,_0x4e1beb){if(!_0x5debe5['_isDataLoaded']||!_0x4e1beb['_isDataLoaded'])return!0x1;const _0x76b514=new Set(Object['keys'](_0x5debe5['attributes'])),_0x59fd75=new Set(Object['keys'](_0x4e1beb['attributes']));if(_0x76b514['delete']('groupId'),_0x59fd75['delete']('groupId'),0x0==_0x76b514['size']&&0x0==_0x59fd75['size'])return!0x0;if(_0x76b514['size']!=_0x59fd75['size'])return!0x1;const _0x3841a2={..._0x5debe5['attributes']},_0x4491f5={..._0x4e1beb['attributes']};return delete _0x3841a2['groupId'],delete _0x4491f5['groupId'],JSON['stringify'](_0x3841a2)==JSON['stringify'](_0x4491f5);}function _areSimilarAttributes(_0x353341,_0x299eeb){const _0x37e227=_cleanUpAttributes(_0x353341['attributes']),_0x468556=_cleanUpAttributes(_0x299eeb);if(!_0x353341['_isDataLoaded'])return!0x1;for(const _0x52c1ab of Object['keys'](_0x468556))if(!isEqual(_0x37e227[_0x52c1ab],_0x468556[_0x52c1ab]))return!0x1;return!0x0;}function _cleanUpAttributes(_0x5457ff){const _0x10b212=Object['assign']({},_0x5457ff);return delete _0x10b212['skipNestingCheck'],delete _0x10b212['tablePasteChainId'],_0x10b212;}function _getAttributeKeyFromSubType(_0x221e00){return _0x221e00['split']('|')[0x0];}function transformMarkers(_0x54b11d,_0x53a0dc){for(const [_0x57af77,_0xaae456]of _0x54b11d['markers']){const _0x2db272=ModelRange['_createFromRanges'](_0xaae456['getTransformedByOperation'](_0x53a0dc));_0x54b11d['markers']['set'](_0x57af77,_0x2db272);}}async function checkLicense$1(_0x460a16){const _0x4c9caa=_0x5f4c40([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x1446b3=window[_0x5f4c40([0x44,0x61,0x74,0x65])][_0x5f4c40([0x6e,0x6f,0x77])](),_0x28e14b=_0x460a16[_0x5f4c40([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f73fc=new window[(_0x5f4c40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d689b=>{_0x28e14b[_0x5f4c40([0x6f,0x6e,0x63,0x65])](_0x5f4c40([0x72,0x65,0x61,0x64,0x79]),_0x2d689b);}),_0x19e006={[_0x5f4c40([0x6b,0x74,0x79])]:_0x5f4c40([0x45,0x43]),[_0x5f4c40([0x75,0x73,0x65])]:_0x5f4c40([0x73,0x69,0x67]),[_0x5f4c40([0x63,0x72,0x76])]:_0x5f4c40([0x50,0x2d,0x32,0x35,0x36]),[_0x5f4c40([0x78])]:_0x5f4c40([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x5f4c40([0x79])]:_0x5f4c40([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x5f4c40([0x61,0x6c,0x67])]:_0x5f4c40([0x45,0x53,0x32,0x35,0x36])},_0x1ee14a=_0x28e14b[_0x5f4c40([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f4c40([0x67,0x65,0x74])](_0x5f4c40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x1d65b9=await(async function(){let _0x144d25,_0x226e79=null,_0x377edd=null;try{if(_0x1ee14a==_0x5f4c40([0x47,0x50,0x4c]))return _0x5f4c40([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x144d25=(function(){const _0x48cce6=_0x1ee14a[_0x5f4c40([0x73,0x70,0x6c,0x69,0x74])](_0x5f4c40([0x2e]));if(0x3!=_0x48cce6[_0x5f4c40([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5ecc37=_0x48cce6[0x1];return _0x1d9e83(_0x5ecc37);function _0x1d9e83(_0x163dcc){const _0x525493=_0x31335f(_0x163dcc);return _0x525493&&_0x305db3()?_0x525493:null;function _0x305db3(){const _0xeced3a=_0x525493[_0x5f4c40([0x6a,0x74,0x69])],_0x1999df=window[_0x5f4c40([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xeced3a[_0x5f4c40([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xeced3a[_0x5f4c40([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36fcbb={..._0x525493,[_0x5f4c40([0x6a,0x74,0x69])]:_0xeced3a[_0x5f4c40([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xeced3a[_0x5f4c40([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36fcbb[_0x5f4c40([0x76,0x63])],_0x2277d1(_0x36fcbb)==_0x1999df;}}}()),!_0x144d25)return _0x5f4c40([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x144d25[_0x5f4c40([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x377edd=function(_0x2d42ea,_0x40179c){return new window[(_0x5f4c40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x406c00=>{if(_0x29de99())return _0x406c00(_0x5f4c40([0x56,0x61,0x6c,0x69,0x64]));_0x4d99d1(),_0x28e14b[_0x5f4c40([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f4c40([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5499e5=!0x1;const _0x1b41f4=uid();function _0x5793ff(_0x43e369){return!!_0x43e369&&(typeof _0x43e369===_0x5f4c40([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x43e369===_0x5f4c40([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x43e369[_0x5f4c40([0x74,0x68,0x65,0x6e])]===_0x5f4c40([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x43e369[_0x5f4c40([0x63,0x61,0x74,0x63,0x68])]===_0x5f4c40([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3555bd(_0x3aae8a){_0x53e473(_0x3aae8a)[_0x5f4c40([0x74,0x68,0x65,0x6e])](_0x52b57a=>{if(!_0x52b57a||_0x52b57a[_0x5f4c40([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f4c40([0x6f,0x6b]))return _0x5f4c40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35c890(_0x2277d1(_0x1b41f4+_0x40179c))!=_0x52b57a[_0x5f4c40([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f4c40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f4c40([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f4c40([0x74,0x68,0x65,0x6e])](_0x565742=>(_0xb35607(),_0x565742),()=>{const _0x369247=_0x446f23();return null==_0x369247?(_0xb35607(),_0x5f4c40([0x56,0x61,0x6c,0x69,0x64])):_0x5f4c40(_0x1446b3-_0x369247>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f4c40([0x74,0x68,0x65,0x6e])](_0x406c00)[_0x5f4c40([0x63,0x61,0x74,0x63,0x68])](()=>{_0x406c00(_0x5f4c40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5258b2=0x36ee80;function _0xb35607(){const _0x3356bb=_0x5f4c40([0x6c,0x6c,0x63,0x74,0x2d])+_0x35c890(_0x2277d1(_0x2d42ea)),_0x3c0ae9=_0x52d0af(_0x35c890(window[_0x5f4c40([0x4d,0x61,0x74,0x68])][_0x5f4c40([0x63,0x65,0x69,0x6c])](_0x1446b3/_0x5258b2)));window[_0x5f4c40([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f4c40([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3356bb,_0x3c0ae9);}function _0x446f23(){const _0x1ff405=_0x5f4c40([0x6c,0x6c,0x63,0x74,0x2d])+_0x35c890(_0x2277d1(_0x2d42ea)),_0x2160f6=window[_0x5f4c40([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f4c40([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ff405);return _0x2160f6?window[_0x5f4c40([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52d0af(_0x2160f6),0x10)*_0x5258b2:null;}function _0x53e473(_0x24b84a){return new window[(_0x5f4c40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11ce0f,_0x19ff14)=>{_0x24b84a[_0x5f4c40([0x74,0x68,0x65,0x6e])](_0x11ce0f,_0x19ff14),window[_0x5f4c40([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19ff14,0x1d4c0);});}}_0x28e14b[_0x5f4c40([0x6f,0x6e])](_0x5f4c40([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a13ed,_0x51e150)=>{if(_0x51e150[0x0]!=_0x2d42ea)return _0x406c00(_0x5f4c40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x51e150[0x1]={..._0x51e150[0x1],[_0x5f4c40([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b41f4};},{[_0x5f4c40([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f4c40([0x68,0x69,0x67,0x68])}),_0x28e14b[_0x5f4c40([0x6f,0x6e])](_0x5f4c40([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x519b3d=>{_0x5793ff(_0x519b3d[_0x5f4c40([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5499e5=!0x0,_0x3555bd(_0x519b3d[_0x5f4c40([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f4c40([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f4c40([0x6c,0x6f,0x77])}),_0x2f73fc[_0x5f4c40([0x74,0x68,0x65,0x6e])](()=>{_0x5499e5||_0x406c00(_0x5f4c40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x29de99(){return _0x28e14b[_0x5f4c40([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f4c40([0x76,0x69,0x65,0x77])][_0x5f4c40([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f4c40([0x61,0x75,0x74,0x6f]);}function _0x4d99d1(){_0x28e14b[_0x5f4c40([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f4c40([0x76,0x69,0x65,0x77])][_0x5f4c40([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f4c40([0x61,0x75,0x74,0x6f]);}}(_0x144d25[_0x5f4c40([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x144d25[_0x5f4c40([0x6a,0x74,0x69])]));const _0x3c2177=await(async function(){let _0x5c3b26=!0x0;try{const _0x122d16=_0x1ee14a[_0x5f4c40([0x73,0x70,0x6c,0x69,0x74])](_0x5f4c40([0x2e])),[_0x406bbb,_0x347cc5,_0x1db8c6]=_0x122d16;return _0x3578cc(_0x406bbb),await _0x4b4637(_0x406bbb,_0x347cc5,_0x1db8c6),_0x5c3b26;}catch{return!0x1;}function _0x3578cc(_0x31ad11){const _0x259b90=_0x31335f(_0x31ad11);_0x259b90&&_0x259b90[_0x5f4c40([0x61,0x6c,0x67])]==_0x5f4c40([0x45,0x53,0x32,0x35,0x36])||(_0x5c3b26=!0x1);}async function _0x4b4637(_0x2069fe,_0xd2f4af,_0xba92b4){const _0x1cfa9e=window[_0x5f4c40([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f4c40([0x66,0x72,0x6f,0x6d])](_0x8d0327(_0xba92b4),_0x3c8b45=>_0x3c8b45[_0x5f4c40([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x232178=new window[(_0x5f4c40([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f4c40([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2069fe+_0x5f4c40([0x2e])+_0xd2f4af),_0x49b911=window[_0x5f4c40([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f4c40([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x49b911)return;const _0x219960=await _0x49b911[_0x5f4c40([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f4c40([0x6a,0x77,0x6b]),_0x19e006,{[_0x5f4c40([0x6e,0x61,0x6d,0x65])]:_0x5f4c40([0x45,0x43,0x44,0x53,0x41]),[_0x5f4c40([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f4c40([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f4c40([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x49b911[_0x5f4c40([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f4c40([0x6e,0x61,0x6d,0x65])]:_0x5f4c40([0x45,0x43,0x44,0x53,0x41]),[_0x5f4c40([0x68,0x61,0x73,0x68])]:{[_0x5f4c40([0x6e,0x61,0x6d,0x65])]:_0x5f4c40([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x219960,_0x1cfa9e,_0x232178)||(_0x5c3b26=!0x1);}}());return _0x3c2177?(function(){const _0x80e2c=_0x144d25[_0x5f4c40([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x80e2c)return!0x1;if(_0x80e2c[_0x5f4c40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f4c40([0x2a])))return!0x0;if(_0x80e2c[_0x5f4c40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f4c40([0x54,0x43])))return!0x0;if(_0x80e2c[_0x5f4c40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f4c40([0x52,0x54,0x43]))){if(_0x14fb26(_0x5f4c40([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&(_0x37d55d=_0x5f4c40([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]),_0x28e14b[_0x5f4c40([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f4c40([0x67,0x65,0x74])](_0x37d55d))[_0x5f4c40([0x73,0x74,0x61,0x74,0x65])]==_0x5f4c40([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0x14fb26(_0x5f4c40([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]))||_0x14fb26(_0x5f4c40([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72])))return!0x0;}var _0x37d55d;return!0x1;}())?(function(){const _0x12c05a=[_0x5f4c40([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f4c40([0x74,0x72,0x69,0x61,0x6c])][_0x5f4c40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x144d25[_0x5f4c40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1446b3/0x3e8:0x68f03580;return _0x144d25[_0x5f4c40([0x65,0x78,0x70])]<_0x12c05a;}())?_0x5f4c40([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x3a4c48=_0x144d25[_0x5f4c40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a4c48||0x0==_0x3a4c48[_0x5f4c40([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x47d313}=new URL(window[_0x5f4c40([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3a4c48[_0x5f4c40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47d313))return!0x0;const _0xf107c1=_0x47d313[_0x5f4c40([0x73,0x70,0x6c,0x69,0x74])](_0x5f4c40([0x2e]));return _0x3a4c48[_0x5f4c40([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3eda1a=>_0x3eda1a[_0x5f4c40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f4c40([0x2a])))[_0x5f4c40([0x6d,0x61,0x70])](_0x3c98fd=>_0x3c98fd[_0x5f4c40([0x73,0x70,0x6c,0x69,0x74])](_0x5f4c40([0x2e])))[_0x5f4c40([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x160930=>_0x160930[_0x5f4c40([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf107c1[_0x5f4c40([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5f4c40([0x6d,0x61,0x70])](_0x24194b=>Array(_0xf107c1[_0x5f4c40([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x24194b[_0x5f4c40([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5f4c40([0x66,0x69,0x6c,0x6c])](_0x24194b[0x0]===_0x5f4c40([0x2a])?_0x5f4c40([0x2a]):'')[_0x5f4c40([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x24194b))[_0x5f4c40([0x73,0x6f,0x6d,0x65])](_0x5ccbec=>_0xf107c1[_0x5f4c40([0x65,0x76,0x65,0x72,0x79])]((_0x4b24ef,_0x127393)=>_0x5ccbec[_0x127393]===_0x4b24ef||_0x5ccbec[_0x127393]===_0x5f4c40([0x2a])));}())?(_0x144d25[_0x5f4c40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f4c40([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x226e79=_0x4c5a6f(_0x5f4c40([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x144d25[_0x5f4c40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f4c40([0x74,0x72,0x69,0x61,0x6c])&&(_0x226e79=_0x4c5a6f(_0x5f4c40([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x226e79&&_0x377edd)return new window[(_0x5f4c40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c4c3b,_0x5cd7a2)=>{_0x226e79[_0x5f4c40([0x74,0x68,0x65,0x6e])](_0x4c4c3b,_0x5cd7a2),_0x377edd[_0x5f4c40([0x74,0x68,0x65,0x6e])](_0x19597a=>{_0x19597a!=_0x5f4c40([0x56,0x61,0x6c,0x69,0x64])&&_0x4c4c3b(_0x19597a);},_0x5cd7a2);});return _0x226e79||_0x377edd||_0x5f4c40([0x56,0x61,0x6c,0x69,0x64]);}())):_0x5f4c40([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f4c40([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f4c40([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5f4c40([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x4c5a6f(_0x1565e4){const _0x29b2be=[new window[(_0x5f4c40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4619ff=>setTimeout(_0x4619ff,0x93ecc)),_0x2f73fc[_0x5f4c40([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f4c40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19bf0d=>{let _0x2a166f=0x0;_0x28e14b[_0x5f4c40([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f4c40([0x6f,0x6e])](_0x5f4c40([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d57dc,_0x26ba73)=>{_0x26ba73[0x0][_0x5f4c40([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a166f++,0x1f8==_0x2a166f&&(_0x19bf0d(),_0x5d57dc[_0x5f4c40([0x6f,0x66,0x66])]());});}))];return window[_0x5f4c40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f4c40([0x72,0x61,0x63,0x65])](_0x29b2be)[_0x5f4c40([0x74,0x68,0x65,0x6e])](()=>_0x1565e4);}function _0x31335f(_0x42ffe1){return _0x42ffe1[_0x5f4c40([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f4c40([0x65,0x79]))?JSON[_0x5f4c40([0x70,0x61,0x72,0x73,0x65])](_0x8d0327(_0x42ffe1)):null;}function _0x8d0327(_0x1caf56){return window[_0x5f4c40([0x61,0x74,0x6f,0x62])](_0x1caf56[_0x5f4c40([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f4c40([0x2b]))[_0x5f4c40([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f4c40([0x2f])));}function _0x2277d1(_0x214ae4){let _0x24309d=0x1505;function _0x482097(_0x73b1f9){for(let _0x2d472f=0x0;_0x2d472f<_0x73b1f9[_0x5f4c40([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d472f++){const _0x4ca623=_0x73b1f9[_0x5f4c40([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2d472f);_0x24309d=(_0x24309d<<0x5)+_0x24309d+_0x4ca623,_0x24309d&=_0x24309d;}}return function _0x2b5461(_0x533679){Array[_0x5f4c40([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x533679)?_0x533679[_0x5f4c40([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b5461):_0x533679&&typeof _0x533679==_0x5f4c40([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f4c40([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x533679)[_0x5f4c40([0x73,0x6f,0x72,0x74])]()[_0x5f4c40([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5884f7,_0x2a12bc])=>{_0x482097(_0x5884f7),_0x2b5461(_0x2a12bc);}):_0x482097(window[_0x5f4c40([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x533679));}(_0x214ae4),_0x24309d>>>0x0;}function _0x35c890(_0x5c9839){return _0x5c9839[_0x5f4c40([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f4c40([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f4c40([0x30]));}function _0x52d0af(_0x2fcc7a){return _0x2fcc7a[_0x5f4c40([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f4c40([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f4c40([0x6a,0x6f,0x69,0x6e])]('');}function _0x14fb26(_0x50d2f0){return _0x28e14b[_0x5f4c40([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f4c40([0x68,0x61,0x73])](_0x50d2f0);}function _0xac1f81(){}function _0x5f4c40(_0x5850b8){return _0x5850b8['map'](_0x523b7e=>String['fromCharCode'](_0x523b7e))['join']('');}!function(_0x1c0651){const _0x122b59=(function(){const _0x4e080e=window[_0x5f4c40([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f4c40([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f4c40([0x6e,0x6f,0x77])]())[_0x5f4c40([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f4c40([0x2e]),'');let _0x4abe63=_0x5f4c40([0x67]);for(let _0x4325fc=0x0;_0x4325fc<_0x4e080e[_0x5f4c40([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4325fc+=0x2){let _0x3964e9=window[_0x5f4c40([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e080e[_0x5f4c40([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4325fc,_0x4325fc+0x2));_0x3964e9>=_0x4c9caa[_0x5f4c40([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3964e9-=_0x4c9caa[_0x5f4c40([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4abe63+=_0x4c9caa[_0x3964e9];}return _0x4abe63;}());_0x28e14b[_0x122b59]=_0x5f4c40([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c0651,_0x1c0651!=_0x5f4c40([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x2f73fc,_0x28e14b[_0x5f4c40([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f4c40([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xac1f81,_0x28e14b[_0x5f4c40([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f4c40([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xac1f81,_0x28e14b[_0x5f4c40([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f4c40([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x1d65b9);}class SuggestionController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x14b8e8,_0xda1c44,_0x5ef0ac,_0xfe765){super(),this['model']=_0xda1c44,this['view']=_0x5ef0ac,this['commentThreadController']=_0xfe765,this['_editor']=_0x14b8e8,this['_acceptCommand']=_0x14b8e8['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x14b8e8['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3da6eb,_0x3eb801)=>_0x3da6eb||_0x3eb801),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x210aae=>_0x210aae&&this['_editor']['model']['canEditAt'](_0xda1c44['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x30f716=>_0x30f716&&this['_editor']['model']['canEditAt'](_0xda1c44['getRanges']())),this['_pendingAction']=null,_0x5ef0ac['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5ef0ac,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5ef0ac,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5ef0ac,'change:isDirty',()=>{_0x5ef0ac['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x26e654=getTranslation$1(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x26e654);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends View{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4b5239,_0x18a746,_0x3ce3cd,_0x1a2943){super(_0x4b5239),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new AriaDescriptionView(_0x4b5239,getTranslation$1(_0x4b5239,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x18a746['authoredAt']),this['bind']('authoredAt')['to'](_0x18a746),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x18a746,'authoredAt',this,'descriptionParts',(_0x4b1dc9,_0x34e5c9,_0x4f96af)=>{const _0x893f95=_0x4f96af['map'](_0x568857=>renderDescription(_0x568857['content']))['join']('.\x20')+'.';return getTranslation$1(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4b1dc9-0x1,_0x18a746['author']['name'],_0x34e5c9?_0x1a2943['formatDateTime'](_0x34e5c9):'',new DOMParser()['parseFromString'](_0x893f95,'text/html')['body']['textContent']]);}),this['focusables']=new ViewCollection(),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3257db=>_0x3257db['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x18a746,this['_localUser']=_0x3ce3cd,this['_config']=_0x1a2943,_0x1a2943['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),setupThreadKeyboardNavigation(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x111a0b}=this['_config'];this['commentsListView']=new _0x111a0b(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x4ca4d0=>_0x4ca4d0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2e82b0,_0x4b9ca2)=>_0x2e82b0||!!_0x4b9ca2);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5c773b}=this['_config'],_0x526fe4=new _0x5c773b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x343006=_0x526fe4['commentInputView'];return _0x526fe4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x343006,'value',(_0x342360,_0x433b84,_0x4e5c43)=>!!_0x4e5c43||_0x342360&&!_0x433b84),_0x343006['on']('submit',(_0x5a0cb5,_0x31d840)=>{this['fire']('addComment',_0x31d840),_0x343006['editor']['setData']('');}),_0x343006['on']('cancel',()=>this['focus']()),_0x343006['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x526fe4;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x58a1c5,_0x346ed2,_0xfb2c0d,_0x3cd240){super(_0x58a1c5,_0x346ed2,_0xfb2c0d,_0x3cd240),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5ccb95=>_0x5ccb95&&_0x5ccb95[0x0]?_0x5ccb95[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x34a5a3,_0xecfcb9)=>{let _0x31de64='';for(const _0x3d9703 of _0x34a5a3)_0x31de64+='<p>'+renderDescription(_0x3d9703['content'],_0x3d9703['color'])+'</p>';return _0xecfcb9?_0x31de64:trimHtml(_0x31de64,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3cd240['SuggestionView'](_0x58a1c5,_0x346ed2,{'formatDateTime':_0x3cd240['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2da8ab=this['bindTemplate'],_0x22ac7d=[this['suggestionView']];this['commentsListView']&&_0x22ac7d['push'](this['commentsListView']),this['commentThreadInputView']&&_0x22ac7d['push'](this['commentThreadInputView']),_0x22ac7d['push'](this['ariaDescriptionView']);const _0x4ea342={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2da8ab['if']('isActive','ck-suggestion-wrapper--active'),_0x2da8ab['to']('type',_0x6b6bbf=>'ck-suggestion-'+_0x6b6bbf),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x2da8ab['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x22ac7d};return _0x4ea342;}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class SuggestionView extends View{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4df398,_0x1255e4,_0x577197){super(_0x4df398),this['_model']=_0x1255e4,this['_config']=_0x577197,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1255e4),this['acceptButton']=this['_createButton'](getTranslation$1(_0x4df398,'Accept\x20suggestion'),IconCheck,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](getTranslation$1(_0x4df398,'Discard\x20suggestion'),IconCancel,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new UserView(_0x4df398,_0x1255e4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new ViewCollection([this['acceptButton'],this['discardButton']]),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1204aa=>_0x1204aa['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xb57fff=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xb57fff['innerHTML']=this['description'],this['on']('change:description',(_0xbc687d,_0x16cb58,_0x296329)=>{_0xb57fff['innerHTML']=_0x296329;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x31dda6=this['bindTemplate'],_0x3822bd=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x31dda6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x31dda6['to']('authoredAt',_0x1f88e5=>this['_config']['formatDateTime'](_0x1f88e5))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x3822bd['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x3822bd}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?getTranslation$1(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):getTranslation$1(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?getTranslation$1(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):getTranslation$1(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x502364,_0xe13129,_0x5416cb,_0x23ae3f,_0x9d180e){const _0xf0815a=new LateFocusButtonView(this['locale']);return _0xf0815a['set']({'label':_0x502364,'icon':_0xe13129,'tooltip':!0x0,'tooltipPosition':_0x9d180e}),_0xf0815a['extendTemplate']({'attributes':{'class':_0x5416cb}}),_0xf0815a['on']('execute',()=>{this['fire'](_0x23ae3f,this['_model']['id']);}),_0xf0815a;}['_setupKeyboardNavigation'](){const _0x30d947=this['element'];this['keystrokes']['listenTo'](_0x30d947);for(const _0x4c2106 of this['focusables'])this['focusTracker']['add'](_0x4c2106['element']),this['keystrokes']['listenTo'](_0x4c2106['element']);this['keystrokes']['set']('enter',(_0x39af7f,_0x146219)=>{_0x30d947===_0x39af7f['target']&&(this['focusCycler']['focusFirst'](),_0x146219());}),this['keystrokes']['set']('esc',(_0x35c016,_0x347b9e)=>{_0x30d947!==_0x35c016['target']&&(this['focus'](),_0x347b9e());});}}class TrackChangesUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,Users,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x441865){super(_0x441865),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x48ef60=this['editor']['config'];_0x48ef60['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x48ef60['define']('trackChanges.SuggestionView',SuggestionView),_0x48ef60['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x48ef60['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x578a64,_0x5ce2c3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1d328a,_0x3074a8]of this['_handleControllerBuffer']){const _0x1aefeb=this['_suggestionToController']['has'](_0x1d328a);_0x1aefeb||_0x3074a8?_0x1aefeb&&_0x3074a8&&this['_destroyController'](_0x1d328a):this['_initializeController'](_0x1d328a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x578a64,_0x5ce2c3);}['init'](){const _0x127f0d=this['editor'],_0x55949d=_0x127f0d['plugins']['get']('TrackChangesEditing'),_0x204cbd=_0x127f0d['plugins']['get']('Annotations'),_0x1d171a=_0x127f0d['plugins']['get']('EditorAnnotations'),_0xd47bf6=_0x127f0d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1d171a['addSourceCollector'](()=>{const _0x1ccd86=[];for(const [_0x1f0439,_0x4ec975]of Array['from'](this['_suggestionToController'])){const _0x3c8f00=_0x1f0439['getAllAdjacentSuggestions'](),_0x566fd2=[];for(const _0x48474d of _0x3c8f00){if(!_0x48474d['isInContent'])continue;if(_0x48474d['isMultiRange']){_0x566fd2['push'](..._0x48474d['getRanges']());continue;}const _0x2f06e4=_0x48474d['getFirstRange']();if(_0x566fd2['length']>0x0){const _0x5491f2=_0x566fd2[0x0]['getJoined'](_0x2f06e4);if(_0x5491f2){_0x566fd2[0x0]=_0x5491f2;continue;}}_0x566fd2['push'](_0x2f06e4);}_0x1ccd86['push']([_0x4ec975['view'],_0x566fd2]);}return _0x1ccd86;}),this['listenTo'](_0x55949d,'suggestionLoaded',(_0x5318bc,_0x3c0e31)=>{this['listenTo'](_0x3c0e31,'change:previous',(_0x384fbc,_0xe9a22b,_0x151e9a,_0x4cccea)=>{_0x3c0e31['isInContent']&&(null==_0x151e9a?(this['_updateController'](_0x4cccea['head']),this['_handleSuggestionControllerDelayed'](_0x3c0e31,!0x1)):(this['_updateController'](_0x151e9a['head']),null==_0x4cccea&&this['_handleSuggestionControllerDelayed'](_0x3c0e31,!0x0)));}),null!==_0x3c0e31['previous']?this['_updateController'](_0x3c0e31['head']):this['_handleSuggestionControllerDelayed'](_0x3c0e31,!0x1);}),this['listenTo'](_0x55949d,'suggestionUnloaded',(_0x3d8dcc,_0x417c3e,_0xef4536)=>{this['stopListening'](_0x417c3e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x417c3e),this['_suggestionToController']['has'](_0x417c3e)&&this['_destroyController'](_0x417c3e),_0xef4536&&this['_updateController'](_0xef4536['head']);}),this['listenTo'](_0x55949d,'suggestionChanged',(_0x1baf4b,_0x1cce91)=>{this['_updateController'](_0x1cce91);}),this['listenTo'](_0x204cbd,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xd47bf6,'addComment',(_0x297823,{threadId:_0x1b314f,isFromAdapter:_0x26bdc5})=>{if(_0x26bdc5||!_0x55949d['hasSuggestion'](_0x1b314f))return;const _0x52b350=_0x55949d['getSuggestion'](_0x1b314f);this['_suggestionToController']['get'](_0x52b350)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x452c60=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4d52f0;for(const _0x25f667 in _0x452c60){const _0x56daaf=_0x25f667,_0x832dfd=_0x452c60[_0x56daaf];if('trackChangesLicenseKeyValid'==_0x832dfd||'trackChangesLicenseKeyInvalid'==_0x832dfd||'trackChangesLicenseKeyExpired'==_0x832dfd||'trackChangesLicenseKeyDomainLimit'==_0x832dfd||'trackChangesLicenseKeyNotAllowed'==_0x832dfd||'trackChangesLicenseKeyEvaluationLimit'==_0x832dfd||'trackChangesLicenseKeyTrialLimit'==_0x832dfd||'trackChangesLicenseKeyUsageLimit'==_0x832dfd){delete _0x452c60[_0x56daaf],_0x4d52f0=_0x832dfd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4d52f0&&_0x452c60['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4d52f0&&_0x452c60['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4d52f0&&_0x452c60['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4d52f0&&_0x452c60['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4d52f0&&_0x452c60['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4d52f0&&_0x452c60['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4d52f0&&_0x452c60['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x335203){const _0x20bc2e=this['_suggestionToController']['get'](_0x335203);if(!_0x20bc2e)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x20bc2e['view'])||null;}['getSuggestionForAnnotation'](_0x1a28e9){const _0x5d6c5e=this['_viewToController']['get'](_0x1a28e9['innerView']);return _0x5d6c5e?_0x5d6c5e['model']:null;}['_refreshActiveMarkers'](){const _0x812d67=this['editor']['plugins']['get']('Annotations'),_0x3d6c06=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30e6eb=Array['from'](_0x812d67['activeAnnotations'],_0x293057=>_0x293057['innerView'])['filter'](_0x2b2c0a=>this['_viewToController']['has'](_0x2b2c0a)),_0xe9efde=[];for(const _0x466545 of _0x30e6eb){const _0x163c34=this['_viewToController']['get'](_0x466545)['model']['getAllAdjacentSuggestions']();_0xe9efde['push'](..._0x163c34['reduce']((_0xd483ec,_0x3895db)=>[..._0xd483ec,..._0x3895db['getMarkerNames']()],[]));}_0x3d6c06['activeMarkers']=_0xe9efde;}['_addUIComponentsToFactory'](){const _0x2d5f8e=this['editor'],_0x218bd9=_0x2d5f8e['locale'],_0x1ac74d=getTranslation$1(_0x218bd9,'Track\x20changes'),_0x4cdb9a=new Collection([{'type':'switchbutton','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':_0x1ac74d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x218bd9,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x218bd9,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x218bd9,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x218bd9,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2d5f8e['plugins']['has']('TrackChangesPreview')&&_0x4cdb9a['addMany']([{'type':'separator'},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x218bd9,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x121c27 of _0x4cdb9a)if(isListDropdownButtonDefinition(_0x121c27)){const _0x5b66d1=_0x2d5f8e['commands']['get'](_0x121c27['model']['commandName']);_0x121c27['model']['bind']('isOn','isEnabled')['to'](_0x5b66d1,'value','isEnabled');}_0x2d5f8e['ui']['componentFactory']['add']('trackChanges',_0x50e353=>this['_createToolbarButton'](_0x50e353,_0x4cdb9a,_0x1ac74d)),_0x2d5f8e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x342354=>this['_createMenuBarMenu'](_0x342354,_0x4cdb9a,_0x1ac74d));}['_createToolbarButton'](_0x5dd0ac,_0x1b9dc3,_0x5e597a){const _0x2fb707=createDropdown(_0x5dd0ac,SplitButtonView),_0x27ad5e=this['editor']['commands']['get']('trackChanges');_0x2fb707['buttonView']['set']({'tooltip':_0x5e597a,'label':_0x5e597a,'icon':IconTrackChanges}),_0x2fb707['buttonView']['bind']('isOn')['to'](_0x27ad5e,'value'),_0x2fb707['buttonView']['on']('execute',()=>{_0x27ad5e['execute'](),this['editor']['editing']['view']['focus']();}),addListToDropdown(_0x2fb707,_0x1b9dc3,{'role':'menu'});const _0x4141de=[];for(const _0x3da41d of _0x1b9dc3)isListDropdownButtonDefinition(_0x3da41d)&&_0x4141de['push'](this['editor']['commands']['get'](_0x3da41d['model']['commandName']));const _0x1f47a2=_0x2fb707['buttonView'];return _0x1f47a2['actionView']['unbind']('isEnabled'),_0x1f47a2['arrowView']['unbind']('isEnabled'),_0x1f47a2['actionView']['bind']('isEnabled')['to'](_0x27ad5e,'isEnabled'),_0x1f47a2['arrowView']['bind']('isEnabled')['toMany'](_0x4141de,'isEnabled',(..._0x56ab58)=>_0x56ab58['some'](_0x28bbc2=>_0x28bbc2)),_0x2fb707['on']('execute',_0x2b6e0a=>{this['editor']['execute'](_0x2b6e0a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2fb707;}['_createMenuBarMenu'](_0x350c60,_0x1c26e4,_0x27b0a7){const _0x27b21d=new MenuBarMenuView(_0x350c60),_0x71cfce=this['editor']['commands']['get']('trackChanges');_0x27b21d['buttonView']['set']({'label':_0x27b0a7,'icon':IconTrackChanges});const _0x39f0c9=new MenuBarMenuListView(_0x350c60);for(const _0x6a6440 of _0x1c26e4){if('separator'==_0x6a6440['type']){_0x39f0c9['items']['add'](new ListSeparatorView(_0x350c60));continue;}const _0x5c4e61=new MenuBarMenuListItemView(_0x350c60,_0x27b21d),_0x3eb728=new MenuBarMenuListItemButtonView(_0x350c60),_0x462e78=_0x6a6440['model'];_0x3eb728['bind'](...Object['keys'](_0x462e78))['to'](_0x462e78),_0x3eb728['delegate']('execute')['to'](_0x27b21d),_0x3eb728['on']('execute',()=>{this['editor']['execute'](_0x462e78['commandName']),this['editor']['editing']['view']['focus']();}),_0x5c4e61['children']['add'](_0x3eb728),_0x39f0c9['items']['add'](_0x5c4e61);}return _0x27b21d['bind']('isEnabled')['to'](_0x71cfce,'isEnabled'),_0x27b21d['panelView']['children']['add'](_0x39f0c9),_0x27b21d;}['_initializeController'](_0x367bcf){const _0x4f2197=this['editor'],_0x8beb51=_0x4f2197['config'],_0x45cad8=_0x4f2197['plugins']['get']('Annotations'),_0x2cc8a5=_0x4f2197['plugins']['get']('CommentsRepository'),_0x332d32=_0x4f2197['plugins']['get']('EditorAnnotations'),_0x21bcab=_0x4f2197['plugins']['get'](Users)['me'],_0x56b5bb=_0x8beb51['get']('trackChanges')['SuggestionThreadView'],_0x45d261=_0x8beb51['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xe9bb68,CommentThreadInputView:_0x17126b}=_0x4f2197['plugins']['get']('CommentsUI');let _0x545994,_0x25034d,_0x41bde4;this['_annotationViews']['has'](_0x367bcf['id'])?(_0x25034d=this['_annotationViews']['get'](_0x367bcf['id']),_0x545994=_0x25034d['mainView']):(_0x545994=new _0x56b5bb(_0x4f2197['locale'],_0x367bcf,_0x21bcab,{'disableComments':this['_disableComments'],'editorConfig':{..._0x8beb51['get']('comments.editorConfig'),'licenseKey':_0x8beb51['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x8beb51['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x8beb51['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x8beb51['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':getDateTimeFormatter(_0x8beb51['get']('locale'),_0x4f2197['locale']),'CommentView':_0x8beb51['get']('comments')['CommentView'],'CommentsListView':_0xe9bb68,'CommentThreadInputView':_0x17126b,'SuggestionView':_0x45d261}),_0x545994['suggestionView']['acceptButton']['on']('execute',()=>{_0x4f2197['editing']['view']['focus']();}),_0x545994['suggestionView']['discardButton']['on']('execute',()=>{_0x4f2197['editing']['view']['focus']();}),_0x25034d=_0x45cad8['createAnnotationView'](this['editor']['locale'],_0x545994),_0x25034d['bind']('isDirty')['to'](_0x545994,'isDirty'),_0x25034d['bind']('length')['to'](_0x545994),_0x25034d['bind']('type')['to'](_0x545994,'type',_0x2e1074=>'suggestion-'+_0x2e1074),_0x545994['on']('escape',()=>{_0x41bde4['fire']('escape');}),this['_annotationViews']['set'](_0x367bcf['id'],_0x25034d));const _0x5b268d=_0x2cc8a5['createCommentThreadController'](_0x367bcf['commentThread'],_0x545994),_0x241547=new SuggestionController(_0x4f2197,_0x367bcf,_0x545994,_0x5b268d),_0x1efd92=_0x367bcf['getAllAdjacentSuggestions']()['filter'](_0xb67d1c=>_0xb67d1c['isInContent']);_0x545994['descriptionParts']=_0x4f2197['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1efd92),this['_suggestionToController']['set'](_0x367bcf,_0x241547),this['_viewToController']['set'](_0x545994,_0x241547);const _0x4e312c=()=>{const _0x170472=[],_0x4cabef=_0x367bcf['getAllAdjacentSuggestions']()['filter'](_0x59fe70=>_0x59fe70['isInContent']);for(const _0x5027fe of _0x4cabef)_0x170472['push'](..._0x5027fe['getMarkers']());return getAllMarkersDomElementsSorted(_0x4f2197['editing'],_0x170472);};_0x41bde4=_0x45cad8['createAnnotation']({'view':_0x25034d,'target':_0x4e312c,'type':()=>'suggestion-'+_0x241547['view']['type'],'isVisible':!!_0x4e312c()}),_0x2cc8a5['_bindAnnotationToEditors'](_0x545994,_0x41bde4),_0x45cad8['add'](_0x41bde4),_0x332d32['registerAnnotation'](_0x41bde4);}['_destroyController'](_0x50bdbd){const _0x3df53c=this['editor']['plugins']['get']('CommentsRepository'),_0x2ef365=this['editor']['plugins']['get']('Annotations'),_0x378a62=this['_suggestionToController']['get'](_0x50bdbd),_0xa263e0=_0x378a62['view'],_0xdb05e4=_0x2ef365['getByInnerView'](_0xa263e0);_0x3df53c['_unbindEditors'](_0xa263e0),_0xdb05e4&&_0x2ef365['remove'](_0xdb05e4),this['_suggestionToController']['delete'](_0x50bdbd),this['_viewToController']['delete'](_0xa263e0),_0x378a62['destroy']();}['_updateController'](_0x50e554){if(!_0x50e554['isInContent']||!this['_suggestionToController']['has'](_0x50e554))return;const _0x282ea4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f8d0c=this['_suggestionToController']['get'](_0x50e554),_0x139fd7=_0x50e554['getAllAdjacentSuggestions']();_0x1f8d0c['view']['descriptionParts']=_0x282ea4['descriptionFactory']['getDescriptions'](_0x139fd7);}['destroy'](){for(const _0x21249e of this['_suggestionToController']['keys']())this['_destroyController'](_0x21249e);for(const _0x22399a of this['_annotationViews']['values']())_0x22399a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function isListDropdownButtonDefinition(_0x420e08){return'model'in _0x420e08;}class TrackChanges extends Plugin{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2689d7){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x2689d7;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x41d5b0){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x41d5b0);}['getSuggestions']({skipNotAttached:_0x2cdfbb=!0x1,toJSON:_0x2b62ff=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x2cdfbb,'toJSON':_0x2b62ff});}['getSuggestion'](_0x4950e4){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x4950e4);}}const blackListedPlugins=['Pagination'];class TrackChangesData extends Plugin{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x36dae7=this['editor'];if(_0x36dae7['config']['define']('trackChangesData.editorCreator',_0x330dc6=>{const _0x46d876=_0x36dae7['model']['document']['getRootNames']()['reduce']((_0x12933d,_0x8bdfdf)=>(_0x12933d[_0x8bdfdf]='',_0x12933d),{});return _0x36dae7['constructor']['create'](_0x46d876,_0x330dc6);}),'function'!=typeof _0x36dae7['config']['get']('trackChangesData')['editorCreator'])throw new CKEditorError('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x586b4f){return getTrackChangesData(this['editor'],!0x0,_0x586b4f);}['getDataWithDiscardedSuggestions'](_0x4e7031){return getTrackChangesData(this['editor'],!0x1,_0x4e7031);}}class TrackChangesDataGetter extends Plugin{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12bc17){function _0x37121d(_0x5ccb45){return _0x5ccb45['map'](_0x53525e=>String['fromCharCode'](_0x53525e))['join']('');}super(_0x12bc17),this['result']='end',_0x12bc17[_0x37121d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37121d([0x76,0x69,0x65,0x77])][_0x37121d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37121d([0x61,0x75,0x74,0x6f]),_0x12bc17[_0x37121d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x37121d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37121d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x37121d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x37121d([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function isMultiRootEditor$1(_0x21c895){return void 0x0!==_0x21c895['getRootsAttributes'];}async function getTrackChangesData(_0x495ddc,_0x2c3f57,_0x258f8d){const _0x1b6f74=sanitizeEditorConfig(_0x495ddc,blackListedPlugins);_0x1b6f74['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),_0x1b6f74['rootsAttributes']=isMultiRootEditor$1(_0x495ddc)?_0x495ddc['getRootsAttributes']():void 0x0;const _0x4cb711=document['createDocumentFragment'](),_0x550eb5=_0x495ddc['config']['get']('trackChangesData')['editorCreator'],_0x2d8800=await _0x550eb5(_0x1b6f74,()=>createAttachedElement(_0x4cb711));copyEditorData(_0x495ddc,_0x2d8800),_0x2d8800['execute'](_0x2c3f57?'acceptAllSuggestions':'discardAllSuggestions');const _0x32e8b4=isMultiRootEditor$1(_0x2d8800)?_0x2d8800['getFullData'](_0x258f8d):_0x2d8800['data']['get'](_0x258f8d);return await _0x2d8800['destroy'](),_0x32e8b4;}function copyEditorData(_0x259783,_0x57a78a){const _0x300719=_0x259783['model']['document']['getRootNames']()['reduce']((_0x4722be,_0x23e785)=>(_0x4722be[_0x23e785]=_0x259783['data']['get']({'rootName':_0x23e785}),_0x4722be),{}),_0xddd070=_0x259783['plugins']['get']('Users')['users']['map'](_0x45de8e=>({'id':_0x45de8e['id'],'name':_0x45de8e['name']})),_0x44584c=_0x259783['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x190f63=_0x259783['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4490ad=_0x57a78a['plugins']['get']('Users'),_0x55319f=_0x57a78a['plugins']['get']('TrackChangesEditing'),_0x4b030f=_0x57a78a['plugins']['get']('CommentsRepository');for(const _0x5aca25 of _0x4b030f['getCommentThreads']())_0x5aca25['remove']();for(const _0x3c375a of _0xddd070)_0x4490ad['getUser'](_0x3c375a['id'])||_0x4490ad['addUser'](_0x3c375a);_0x4490ad['me']||_0x4490ad['useAnonymousUser']();for(const _0x2d7a0e of _0x190f63)_0x4b030f['addCommentThread'](_0x2d7a0e);for(const _0x293739 of _0x44584c)_0x55319f['addSuggestionData'](_0x293739);_0x57a78a['data']['set'](_0x300719);}function createAttachedElement(_0x2cbadb){const _0x21a552=document['createElement']('div');return _0x2cbadb['appendChild'](_0x21a552),_0x21a552;}class TrackChangesPreviewView extends View{['options'];constructor(_0x161eaf,_0x223ac2){super(_0x161eaf),this['options']=_0x223ac2,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0xb519d5,_0x1c5727){if(!this['element'])return;const _0x5dad0d=[];for(const [_0x594040,_0x15ff73]of _0xb519d5){const _0xbe5fbf=document['createElement']('div');_0xbe5fbf['setAttribute']('data-ck-root-name',_0x594040),_0xbe5fbf['className']=_0x15ff73['classes']+'\x20ck-track-changes-preview__root-container',_0xbe5fbf['innerHTML']=_0x15ff73['content'],_0x5dad0d['push'](_0xbe5fbf);}_0x1c5727(this['element'],_0x5dad0d),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x142ccd{constructor(_0x1c8cd3){super(_0x1c8cd3),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x39b42a=this['editor'],_0x2d3278=_0x39b42a['locale'],_0x358017=_0x39b42a['plugins']['get']('Dialog');let _0x524c25;const _0x529abf=getEditables(_0x39b42a),_0x3e9ed9=calculateDialogRects(_0x529abf);_0x358017['show']({'id':'finalContentPreview','title':getTranslation$1(_0x2d3278,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x2d3278,{'dialogRects':_0x3e9ed9}),'onHide':()=>{_0x524c25['detachFromDom']();},'onShow':()=>{_0x39b42a['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3072ff=>{const _0x5c76b9=this['_standarizeRootsData'](_0x3072ff,_0x39b42a,_0x529abf);_0x358017['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5c76b9,_0x39b42a['config']['get']('trackChanges.preview.renderFunction'));}),_0x524c25=new BodyCollection(_0x2d3278,[_0x358017['view']]),_0x524c25['attachToDom'](),_0x524c25['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x39b42a['once']('destroy',()=>{_0x524c25['detachFromDom']();});const _0x5c8663=_0x358017['view']['headerView']['class'];_0x358017['view']['headerView']['class']=_0x5c8663?_0x5c8663+'\x20ck-reset_all':'ck-reset_all',_0x358017['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x358017['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x9bcb8a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x31a41e=_0x9bcb8a['previewMode'],_0x482c8a={};if('$labels'===_0x31a41e){for(const _0x16a4e9 of _0x9bcb8a['getMergeFieldsIds']())_0x482c8a[_0x16a4e9]=_0x9bcb8a['getLabel'](_0x16a4e9)||_0x16a4e9;}else{const _0x46219e='$defaultValues'===_0x31a41e?_0x9bcb8a['getDefaultValues']():_0x9bcb8a['getDataSetValues'](_0x31a41e,!0x0);for(const _0x3d2343 of Object['entries'](_0x46219e)){const [_0x10f0ee,_0x4f045b]=_0x3d2343;_0x482c8a[_0x10f0ee]=null!==_0x4f045b?_0x4f045b:_0x9bcb8a['getLabel'](_0x10f0ee)||_0x10f0ee;}}return{'mergeFieldsData':_0x482c8a};}['_standarizeRootsData'](_0x49503a,_0x32151b,_0x46322a){let _0x16f2eb;if('string'==typeof _0x49503a){const _0x246f12=_0x32151b['model']['document']['getRootNames']()[0x0];_0x16f2eb={[_0x246f12]:_0x49503a};}else _0x16f2eb=_0x49503a;const _0xdffe37=this['_fixMediaEmbeds'](_0x16f2eb,_0x32151b);return addEditableClasses(this['_sortRoots'](_0x32151b)['reduce']((_0x578d68,_0x5caa28)=>(_0x578d68['push']([_0x5caa28,{'content':_0xdffe37[_0x5caa28],'classes':''}]),_0x578d68),[]),_0x46322a);}['_fixMediaEmbeds'](_0x5a8682,_0x45c1d4){if(!_0x45c1d4['plugins']['has']('MediaEmbedEditing'))return _0x5a8682;const _0x1c0ba0=_0x45c1d4['plugins']['get']('MediaEmbedEditing');for(const [_0x10e84a,_0x4e8276]of Object['entries'](_0x5a8682)){const _0x1bda57=document['createElement']('div');_0x1bda57['innerHTML']=_0x4e8276,(_0x1bda57['querySelectorAll']('figure.media')['forEach'](_0x1d744f=>{const _0x1efbbc=_0x1d744f['querySelector']('oembed');if(_0x1efbbc){const _0x599044=_0x1efbbc['getAttribute']('url');if(_0x599044){const _0xd4b1bc=_0x1c0ba0['registry']['getMediaViewElement'](new ViewDowncastWriter(_0x45c1d4['editing']['view']['document']),_0x599044,{'elementName':'','renderForEditingView':!0x0}),_0x14e69d=document['createElement']('div');_0x14e69d['classList']['add']('ck-media__wrapper'),_0xd4b1bc['render'](_0x14e69d,_0x45c1d4['editing']['view']['domConverter']),_0x1efbbc['replaceWith'](_0x14e69d);}}}),_0x5a8682[_0x10e84a]=_0x1bda57['innerHTML']);}return _0x5a8682;}['_sortRoots'](_0x5e1f26){if(!isMultiRootEditor(_0x5e1f26))return _0x5e1f26['model']['document']['getRootNames']();const _0x5a2995=[],_0x31637e=new Map();for(const _0x26f3de of _0x5e1f26['model']['document']['getRootNames']()){const _0x22f59c=_0x5e1f26['editing']['view']['getDomRoot'](_0x26f3de)['getClientRects']()['item'](0x0);_0x5a2995['push'](_0x26f3de),_0x31637e['set'](_0x26f3de,_0x22f59c);}return _0x5a2995['sort']((_0x276380,_0x2a0af5)=>{const _0x3ca4b9=_0x31637e['get'](_0x276380),_0x154257=_0x31637e['get'](_0x2a0af5);return _0x3ca4b9['y']-_0x154257['y']||_0x3ca4b9['x']-_0x154257['x'];}),_0x5a2995;}}function getEditables(_0x8ccb6e){const _0x1db86d={};if('editables'in _0x8ccb6e['ui']['view']){for(const [_0x13ad42,_0x429e29]of Object['entries'](_0x8ccb6e['ui']['view']['editables']))_0x1db86d[_0x13ad42]=_0x429e29['element'];}else _0x1db86d[_0x8ccb6e['model']['document']['getRootNames']()[0x0]]=_0x8ccb6e['ui']['view']['editable']['element'];return _0x1db86d;}function calculateDialogRects(_0x43173e){let _0x21400c=0x0;for(const _0x59c213 of Object['values'](_0x43173e))_0x21400c=Math['max'](_0x21400c,_0x59c213['getBoundingClientRect']()['width']);let _0x21afd4=0x0;for(const _0x50f4d6 of Object['values'](_0x43173e))_0x21afd4+=_0x50f4d6['getBoundingClientRect']()['height'];const _0x393872=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x21400c,'height':Math['min'](_0x21afd4,_0x393872)};}function addEditableClasses(_0x33d810,_0x1a050a){for(const [_0x403320,_0x1d7c36]of _0x33d810)_0x1d7c36['classes']=_0x1a050a[_0x403320]['classList']['value']['replace']('ck-focused','');return _0x33d810;}function isMultiRootEditor(_0xe0172d){return void 0x0!==_0xe0172d['getRootsAttributes'];}class TrackChangesPreview extends Plugin{static get['requires'](){return[TrackChangesData,Dialog];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1814aa){super(_0x1814aa),_0x1814aa['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x1814aa['config']['define']('trackChanges.preview.renderFunction',(_0x25c356,_0x1c9501)=>{for(const _0x4d6e67 of _0x1c9501)_0x25c356['appendChild'](_0x4d6e67);});}}var UploadcareSource=function(_0x5142a0){return _0x5142a0['Local']='local',_0x5142a0['URL']='url',_0x5142a0['Dropbox']='dropbox',_0x5142a0['GDrive']='gdrive',_0x5142a0['Facebook']='facebook',_0x5142a0['GPhotos']='gphotos',_0x5142a0['OneDrive']='onedrive',_0x5142a0;}({});function getTranslation(_0x5dc69b,_0x3b1bf6,_0x525a9f){const t=_0x5dc69b['t'],_0x515227=_0x5dc69b['t'];switch(_0x3b1bf6){case UploadcareSource['Local']:return{'text':_0x515227('Insert'===_0x525a9f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x515227('From\x20computer')};case UploadcareSource['URL']:return{'text':'Insert'===_0x525a9f?_0x515227('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x515227('Via\x20URL')};case UploadcareSource['Dropbox']:return{'text':t('Insert'===_0x525a9f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case UploadcareSource['Facebook']:return{'text':t('Insert'===_0x525a9f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case UploadcareSource['GDrive']:return{'text':t('Insert'===_0x525a9f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case UploadcareSource['GPhotos']:return{'text':t('Insert'===_0x525a9f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case UploadcareSource['OneDrive']:return{'text':t('Insert'===_0x525a9f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3b1bf6;}}class UploadcareUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x44845e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x6d9f8f;for(const _0x17603f in _0x44845e){const _0x155c23=_0x17603f,_0x4e334a=_0x44845e[_0x155c23];if('uploadcareLicenseKeyValid'==_0x4e334a||'uploadcareLicenseKeyInvalid'==_0x4e334a||'uploadcareLicenseKeyExpired'==_0x4e334a||'uploadcareLicenseKeyDomainLimit'==_0x4e334a||'uploadcareLicenseKeyNotAllowed'==_0x4e334a||'uploadcareLicenseKeyEvaluationLimit'==_0x4e334a||'uploadcareLicenseKeyTrialLimit'==_0x4e334a||'uploadcareLicenseKeyUsageLimit'==_0x4e334a){delete _0x44845e[_0x155c23],_0x6d9f8f=_0x4e334a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x6d9f8f&&_0x44845e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x6d9f8f&&_0x44845e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x6d9f8f&&_0x44845e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x6d9f8f&&_0x44845e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x6d9f8f&&_0x44845e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x6d9f8f&&_0x44845e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x6d9f8f&&_0x44845e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1aa54a}=this,_0x195bce=_0x1aa54a['commands']['get']('uploadcare');if(!_0x195bce)return;const _0x27c2db=this['_normalizeConfigSourceList'](_0x1aa54a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4bcca7,_0x1d9f43)=>{const _0x1a3784=this['_getIntegrationKey'](_0x1d9f43['type']);return _0x4bcca7[_0x1a3784]||(_0x4bcca7[_0x1a3784]=[]),_0x4bcca7[_0x1a3784]['push'](_0x1d9f43),_0x4bcca7;},{});_0x1aa54a['plugins']['has']('ImageInsertUI')&&_0x1aa54a['commands']['get']('uploadcare')&&Object['entries'](_0x27c2db)['forEach'](([_0xff5c77,_0x566350])=>{_0x1aa54a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xff5c77,'observable':()=>_0x195bce,'buttonViewCreator':()=>this['_createToolbarButton'](_0x566350),'formViewCreator':()=>this['_createDropdownButtons'](_0x566350),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x566350),'override':'assetManager'!==_0xff5c77});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x76e44f){const {locale:_0x241357}=this['editor'];return _0x76e44f['map'](_0x180ca6=>{const _0x110810=getTranslation(_0x241357,_0x180ca6,'Insert');switch(_0x180ca6){case UploadcareSource['Local']:return{'icon':IconUploadcareImageUpload,'type':UploadcareSource['Local'],..._0x110810};case UploadcareSource['URL']:return{'icon':IconUploadcareLink,'type':UploadcareSource['URL'],..._0x110810};case UploadcareSource['Dropbox']:return{'icon':IconDropbox,'type':UploadcareSource['Dropbox'],..._0x110810};case UploadcareSource['Facebook']:return{'icon':IconFacebook,'type':UploadcareSource['Facebook'],..._0x110810};case UploadcareSource['GDrive']:return{'icon':IconGoogleDrive,'type':UploadcareSource['GDrive'],..._0x110810};case UploadcareSource['GPhotos']:return{'icon':IconGooglePhotos,'type':UploadcareSource['GPhotos'],..._0x110810};case UploadcareSource['OneDrive']:return{'icon':IconOneDrive,'type':UploadcareSource['OneDrive'],..._0x110810};}});}['_getIntegrationKey'](_0x3446c3){switch(_0x3446c3){case UploadcareSource['Local']:return'upload';case UploadcareSource['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x116d72,_0x3e100f){const _0xce171f=this['editor'],_0x2b0884=new _0x116d72(_0xce171f['locale']),_0x1ca20f=_0xce171f['commands']['get']('uploadcare');return _0x2b0884['bind']('isEnabled')['to'](_0x1ca20f),_0x2b0884['on']('execute',()=>{_0x1ca20f['execute'](_0x3e100f);}),_0x2b0884;}['_createToolbarButton'](_0x10a788){const {locale:_0x5da3a2}=this['editor'],_0x209d15=this['editor']['plugins']['get']('ImageInsertUI'),_0xc69760=_0x10a788[0x0],_0x382890=this['_createButton'](ButtonView,_0xc69760['type']);return _0x382890['icon']=_0xc69760['icon'],_0x382890['bind']('label')['to'](_0x209d15,'isImageSelected',_0x42f108=>getTranslation(_0x5da3a2,_0xc69760['type'],_0x42f108?'Replace':'Insert')['text']),_0x382890['tooltip']=!0x0,_0x382890;}['_createDropdownButtons'](_0xbe3d32){const {locale:_0x5dd99c}=this['editor'],_0x46d446=this['editor']['plugins']['get']('ImageInsertUI');return _0xbe3d32['map'](_0x56d1fe=>{const _0x3c9019=this['_createButton'](ButtonView,_0x56d1fe['type']);return _0x3c9019['withText']=!0x0,_0x3c9019['icon']=_0x56d1fe['icon'],_0x3c9019['bind']('label')['to'](_0x46d446,'isImageSelected',_0x53322e=>getTranslation(_0x5dd99c,_0x56d1fe['type'],_0x53322e?'Replace':'Insert')['text']),_0x3c9019;});}['_createMenuBarButtons'](_0x1f69e0){return _0x1f69e0['map'](_0x462827=>{const _0x10ff85=this['_createButton'](MenuBarMenuListItemButtonView,_0x462827['type']);return _0x10ff85['icon']=_0x462827['icon'],_0x10ff85['label']=_0x462827['shortText'],_0x10ff85;});}}class DialogFocusManagerView extends View{['focusTracker'];['focusCycler'];constructor(_0x1c42ec){super(_0x1c42ec),this['focusTracker']=new FocusTracker(),this['focusCycler']=new FocusCycler({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class UploadcareFormView extends DialogFocusManagerView{constructor(_0x3be2ac,_0x18b6a0){super(_0x3be2ac),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x18b6a0}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function createEditabilityChecker(_0x1616eb){const _0x551805=createUrlChecker(_0x1616eb);return _0x4235c9=>!(!_0x4235c9||!_0x4235c9['is']('element','imageBlock')&&!_0x4235c9['is']('element','imageInline'))&&(!!_0x4235c9['hasAttribute']('uploadcareImageId')||!!_0x4235c9['hasAttribute']('src')&&_0x551805(_0x4235c9['getAttribute']('src')));}function getImageUrls(_0x316c81,_0x4f8202){const _0x2dd6b6=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5e2e3d=>_0x5e2e3d<=_0x4f8202)['map'](_0x51a64a=>_0x316c81['replace'](/\/$/,'')+'/-/resize/'+_0x51a64a+'x/\x20'+_0x51a64a+'w');return{'imageFallbackUrl':_0x316c81,'imageSources':[{'srcset':_0x2dd6b6['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4f8202+'px)\x20100vw,\x20'+_0x4f8202+'px','type':'image/webp'}]};}function getImageDimension(_0x20e7b7,_0x10fcf0,_0x5e3dbf){const _0xf57e73=_0x20e7b7['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xf57e73?parseInt(_0xf57e73[0x1],0xa):_0x10fcf0,'height':_0xf57e73?parseInt(_0xf57e73[0x2],0xa):_0x5e3dbf};}function showImageProcessingIndicator(_0x3084a3,_0x33a152){const _0x252408=new(DomEmitterMixin())(),_0x2f8d35=_0x3084a3['plugins']['get']('ImageUtils'),_0x5c9bab=_0x3084a3['editing']['mapper']['toViewElement'](_0x33a152),_0x372a17=_0x2f8d35['findViewImgElement'](_0x5c9bab),_0x33ec18=_0x3084a3['editing']['view']['domConverter']['viewToDom'](_0x372a17),_0x4e6451=_0x33a152['getAttribute']('width'),_0x509a57=_0x33a152['getAttribute']('height'),_0x45198e='image-processing';_0x3084a3['editing']['view']['change'](_0x2eeaf2=>{_0x2eeaf2['addClass'](_0x45198e,_0x5c9bab),_0x2eeaf2['setStyle']('aspect-ratio',_0x4e6451+'/'+_0x509a57,_0x372a17);}),_0x252408['listenTo'](_0x33ec18,'load',()=>{_0x252408['stopListening'](_0x33ec18,'load'),_0x3084a3['editing']['view']['change'](_0x59337d=>{_0x59337d['removeClass'](_0x45198e,_0x5c9bab),_0x59337d['removeStyle']('aspect-ratio',_0x372a17);});});}function createUrlChecker(_0x258f3f){if(Array['isArray'](_0x258f3f)){const _0x20d840=_0x258f3f['map'](createUrlChecker);return _0x23b406=>_0x20d840['some'](_0x269ff4=>_0x269ff4(_0x23b406));}if('origin'==_0x258f3f){const _0x2034fb=_0xd4e5e['window']['location']['origin'];return _0x2969df=>new URL(_0x2969df,_0xd4e5e['document']['baseURI'])['origin']==_0x2034fb;}return'function'==typeof _0x258f3f?_0x258f3f:_0x258f3f instanceof RegExp?_0x1e0c67=>!(!_0x1e0c67['match'](_0x258f3f)&&!_0x1e0c67['replace'](/^https?:\/\//,'')['match'](_0x258f3f)):()=>!0x1;}function isAncestor(_0x4ce8a1,_0xef669e){return getAncestors(_0x4ce8a1['target'])['includes'](_0xef669e);}class UploadcareController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1eb100,_0x381ee4,_0x156fdc){super(),this['_editor']=_0x1eb100,this['_editing']=_0x381ee4,this['_dialog']=_0x1eb100['plugins']['get'](Dialog),this['_api']=_0x381ee4['ctxElement']['getAPI'](),this['_type']=_0x156fdc,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x51e200,model:_0x4785c4}=this['_editor'],_0x2a64bb=_0x4785c4['document']['selection']['getSelectedElement'](),_0x5614b9=_0x2a64bb&&(_0x2a64bb['is']('element','imageBlock')||_0x2a64bb['is']('element','imageInline'));this['_formView']=new UploadcareFormView(_0x51e200,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':IconUploadcareImageUpload,'title':getTranslation(_0x51e200,this['_type'],_0x5614b9?'Replace':'Insert')['text'],'content':this['_formView'],'position':DialogViewPosition['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x49ba34=>!isAncestor(_0x49ba34,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x9dd535}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x449aa9=>{const _0x1a5ca5=_0x9dd535['length'];for(const _0x110b4c of _0x9dd535){const _0x1ba41a=_0x110b4c===_0x9dd535[_0x1a5ca5-0x1],{cdnUrl:_0x35dc4e,fileInfo:_0x1da26d}=_0x110b4c;if(!_0x35dc4e||!_0x1da26d)continue;const {width:_0x392626,height:_0x51e554}=_0x1da26d['imageInfo'],_0x2e9e59=getImageDimension(_0x35dc4e,_0x392626,_0x51e554),_0xf87fab=getImageUrls(_0x35dc4e,_0x2e9e59['width']),_0x4c4b1b={'id':_0x1da26d['uuid'],'type':'image','attributes':{'imageDimension':_0x2e9e59,..._0xf87fab}};this['_insertAsset'](_0x4c4b1b,_0x1ba41a,_0x449aa9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x577176=>{'idle'===_0x577176['detail']['status']&&!_0x577176['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===UploadcareSource['Local']?this['_api']['setCurrentActivity'](UploadcareSource['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4aa1ac,_0x179a85,_0x4b8278){const _0x4e4e99=this['_editor']['model']['document']['selection'],_0x23739a=_0x4e4e99['getSelectedElement'](),_0x5198f9=!(!_0x23739a||!_0x23739a['is']('element','imageInline'));_0x4b8278['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4aa1ac,_0x5198f9),_0x179a85||_0x4b8278['setSelection'](_0x4e4e99['getLastPosition']());}['_insertImage'](_0x57463c,_0x55e6db){const _0x3c3cfc=this['_editor'],{imageDimension:_0x4b9c89,imageFallbackUrl:_0x4a95e3,imageSources:_0x5f0e59}=_0x57463c['attributes'];_0x3c3cfc['execute']('insertImage',{'imageType':_0x55e6db?'imageInline':null,'source':{'uploadcareImageId':_0x57463c['id'],'src':_0x4a95e3,'sources':_0x5f0e59,..._0x4b9c89}});}}class UploadcareCommand extends _0x142ccd{['_editing'];['_controller']=null;static get['requires'](){return[Dialog,UploadcareEditing];}constructor(_0x413b52){super(_0x413b52),this['_editing']=_0x413b52['plugins']['get'](UploadcareEditing);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5a10da){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new UploadcareController(this['editor'],this['_editing'],_0x5a10da);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}function isObject$1(_0x25c044){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x25c044);}const SEPARATOR$1=/\W|_/g;function camelizeString$1(_0x409af9){return _0x409af9['split'](SEPARATOR$1)['map']((_0x25c8d2,_0x1f27f8)=>_0x25c8d2['charAt'](0x0)[_0x1f27f8>0x0?'toUpperCase':'toLowerCase']()+_0x25c8d2['slice'](0x1))['join']('');}function camelizeArrayItems$1(_0x1d1960,{ignoreKeys:_0x1ca64e}={'ignoreKeys':[]}){return Array['isArray'](_0x1d1960)?_0x1d1960['map'](_0x5cb7e0=>camelizeKeys$1(_0x5cb7e0,{'ignoreKeys':_0x1ca64e})):_0x1d1960;}function camelizeKeys$1(_0x41e2a3,{ignoreKeys:_0x2254b1}={'ignoreKeys':[]}){if(Array['isArray'](_0x41e2a3))return camelizeArrayItems$1(_0x41e2a3,{'ignoreKeys':_0x2254b1});if(!isObject$1(_0x41e2a3))return _0x41e2a3;const _0x188c26={};for(const _0x4612ef of Object['keys'](_0x41e2a3)){let _0x2c11b2=_0x41e2a3[_0x4612ef];_0x2254b1['includes'](_0x4612ef)?_0x188c26[_0x4612ef]=_0x2c11b2:(isObject$1(_0x2c11b2)?_0x2c11b2=camelizeKeys$1(_0x2c11b2,{'ignoreKeys':_0x2254b1}):Array['isArray'](_0x2c11b2)&&(_0x2c11b2=camelizeArrayItems$1(_0x2c11b2,{'ignoreKeys':_0x2254b1})),_0x188c26[camelizeString$1(_0x4612ef)]=_0x2c11b2);}return _0x188c26;}const delay$1=_0x10b551=>new Promise(_0x197391=>setTimeout(_0x197391,_0x10b551));function getUserAgent$1$1({libraryName:_0x3eb00f,libraryVersion:_0x48f5d1,userAgent:_0x4e35b5,publicKey:_0x1fbb4f='',integration:_0x34cadb=''}){const _0x257f9e='JavaScript';if('string'==typeof _0x4e35b5)return _0x4e35b5;if('function'==typeof _0x4e35b5)return _0x4e35b5({'publicKey':_0x1fbb4f,'libraryName':_0x3eb00f,'libraryVersion':_0x48f5d1,'languageName':_0x257f9e,'integration':_0x34cadb});return[_0x3eb00f,_0x48f5d1,_0x1fbb4f]['filter'](Boolean)['join']('/')+'\x20('+[_0x257f9e,_0x34cadb]['filter'](Boolean)['join'](';\x20')+')';}const defaultOptions$1={'factor':0x2,'time':0x64};function retrier$1(_0x32f19b,_0x45e4e0=defaultOptions$1){let _0x317d69=0x0;return function _0x216d55(_0x49087f){const _0x47a837=Math['round'](_0x45e4e0['time']*_0x45e4e0['factor']**_0x317d69);return _0x49087f({'attempt':_0x317d69,'retry':_0x1c82ab=>delay$1(_0x1c82ab??_0x47a837)['then'](()=>(_0x317d69+=0x1,_0x216d55(_0x49087f)))});}(_0x32f19b);}let UploadcareError$1=class extends Error{},NetworkError$1=class e extends UploadcareError$1{['originalProgressEvent'];constructor(_0x4de3b8){super(),this['name']='NetworkError',this['message']='Network\x20error',Object['setPrototypeOf'](this,e['prototype']),this['originalProgressEvent']=_0x4de3b8;}};const onCancel$1=(_0x280fe7,_0xaa7dca)=>{_0x280fe7&&(_0x280fe7['aborted']?Promise['resolve']()['then'](_0xaa7dca):_0x280fe7['addEventListener']('abort',()=>_0xaa7dca(),{'once':!0x0}));};let CancelError$1=class e extends UploadcareError$1{['isCancel']=!0x0;constructor(_0x1326ce='Request\x20canceled'){super(_0x1326ce),this['name']='CancelError',Object['setPrototypeOf'](this,e['prototype']);}};const DEFAULT_INTERVAL$1=0x1f4,poll$1=({check:_0xa97039,interval:_0x9ea5db=DEFAULT_INTERVAL$1,timeout:_0x2589da,signal:_0x5ed48d})=>new Promise((_0x3d821f,_0x19a343)=>{let _0x10c1c3,_0xc28f51;onCancel$1(_0x5ed48d,()=>{_0x10c1c3&&clearTimeout(_0x10c1c3),_0x19a343(new CancelError$1('Poll\x20cancelled'));}),_0x2589da&&(_0xc28f51=setTimeout(()=>{_0x10c1c3&&clearTimeout(_0x10c1c3),_0x19a343(new CancelError$1('Timed\x20out'));},_0x2589da));const _0x5162d3=()=>{try{Promise['resolve'](_0xa97039(_0x5ed48d))['then'](_0x261f2b=>{_0x261f2b?(_0xc28f51&&clearTimeout(_0xc28f51),_0x3d821f(_0x261f2b)):_0x10c1c3=setTimeout(_0x5162d3,_0x9ea5db);})['catch'](_0x44398b=>{_0xc28f51&&clearTimeout(_0xc28f51),_0x19a343(_0x44398b);});}catch(_0x2f3d0c){_0xc28f51&&clearTimeout(_0xc28f51),_0x19a343(_0x2f3d0c);}};_0x10c1c3=setTimeout(_0x5162d3,0x0);}),defaultSettings$1={'baseCDN':'https://ucarecdn.com','baseURL':'https://upload.uploadcare.com','retryThrottledRequestMaxTimes':0x1,'retryNetworkErrorMaxTimes':0x3,'multipartMinFileSize':0x1900000,'multipartChunkSize':0x500000,'maxConcurrentRequests':0x4,'pusherKey':'79ae88bd931ea68464d9'},defaultContentType$1='application/octet-stream',defaultFilename$1='original',request$1=({method:_0x3fa912,url:_0x27e819,data:_0xb44157,headers:_0x46271a={},signal:_0x21cb2d,onProgress:_0x3d4759})=>new Promise((_0x5a5f46,_0x14a294)=>{const _0x7301be=new XMLHttpRequest(),_0x4e7967=_0x3fa912?.['toUpperCase']()||'GET';let _0x201f5e=!0x1;_0x7301be['open'](_0x4e7967,_0x27e819,!0x0),_0x46271a&&Object['entries'](_0x46271a)['forEach'](_0x56c35f=>{const [_0x2fab33,_0x261dbd]=_0x56c35f;void 0x0!==_0x261dbd&&!Array['isArray'](_0x261dbd)&&_0x7301be['setRequestHeader'](_0x2fab33,_0x261dbd);}),_0x7301be['responseType']='text',onCancel$1(_0x21cb2d,()=>{_0x201f5e=!0x0,_0x7301be['abort'](),_0x14a294(new CancelError$1());}),_0x7301be['onload']=()=>{if(0xc8!=_0x7301be['status'])_0x14a294(new Error('Error\x20'+_0x7301be['status']+':\x20'+_0x7301be['statusText']));else{const _0xb4f8f4={'method':_0x4e7967,'url':_0x27e819,'data':_0xb44157,'headers':_0x46271a||void 0x0,'signal':_0x21cb2d,'onProgress':_0x3d4759},_0x5aa658=_0x7301be['getAllResponseHeaders']()['trim']()['split'](/[\r\n]+/),_0x461d77={};_0x5aa658['forEach'](function(_0x1945cc){const _0x5505da=_0x1945cc['split'](':\x20'),_0x3780cb=_0x5505da['shift'](),_0x4b2298=_0x5505da['join'](':\x20');_0x3780cb&&void 0x0!==_0x3780cb&&(_0x461d77[_0x3780cb]=_0x4b2298);});const _0x499c7f=_0x7301be['response'],_0x2da86f=_0x7301be['status'];_0x5a5f46({'request':_0xb4f8f4,'data':_0x499c7f,'headers':_0x461d77,'status':_0x2da86f});}},_0x7301be['onerror']=_0x22a5c=>{_0x201f5e||_0x14a294(new NetworkError$1(_0x22a5c));},_0x3d4759&&'function'==typeof _0x3d4759&&(_0x7301be['upload']['onprogress']=_0x46b5f0=>{_0x46b5f0['lengthComputable']?_0x3d4759({'isComputable':!0x0,'value':_0x46b5f0['loaded']/_0x46b5f0['total']}):_0x3d4759({'isComputable':!0x1});}),_0xb44157?_0x7301be['send'](_0xb44157):_0x7301be['send']();});function identity$1(_0x2e7815,..._0x412252){return _0x2e7815;}const getFileOptions$1=({name:_0x5db4c9})=>_0x5db4c9?[_0x5db4c9]:[],transformFile$1=identity$1;var getFormData$1=()=>new FormData();const isBuffer$1=_0x4d7c8d=>!0x1,isBlob$1=_0x5c0d48=>'undefined'!=typeof Blob&&_0x5c0d48 instanceof Blob,isFile$1=_0x4b5f27=>'undefined'!=typeof File&&_0x4b5f27 instanceof File,isReactNativeAsset$1=_0x5beb1b=>!!_0x5beb1b&&'object'==typeof _0x5beb1b&&!Array['isArray'](_0x5beb1b)&&'uri'in _0x5beb1b&&'string'==typeof _0x5beb1b['uri'],isFileData$1=_0x339311=>isBlob$1(_0x339311)||isFile$1(_0x339311)||isBuffer$1()||isReactNativeAsset$1(_0x339311),isSimpleValue$1=_0x19f4f3=>'string'==typeof _0x19f4f3||'number'==typeof _0x19f4f3||void 0x0===_0x19f4f3,isObjectValue$1=_0x109295=>!!_0x109295&&'object'==typeof _0x109295&&!Array['isArray'](_0x109295),isFileValue$1=_0x565c1c=>!!_0x565c1c&&'object'==typeof _0x565c1c&&'data'in _0x565c1c&&isFileData$1(_0x565c1c['data']);function collectParams$1(_0x3f0cfd,_0x5c7d74,_0x1f336b){if(Array['isArray'](_0x1f336b)){for(const _0x5bc45a of _0x1f336b)collectParams$1(_0x3f0cfd,_0x5c7d74+'[]',_0x5bc45a);}else{if(isFileValue$1(_0x1f336b)){const {name:_0xada025,contentType:_0x16ba7e}=_0x1f336b,_0x3798f2=transformFile$1(_0x1f336b['data'],_0xada025,_0x16ba7e??defaultContentType$1),_0x40c4e9=getFileOptions$1({'name':_0xada025});_0x3f0cfd['push']([_0x5c7d74,_0x3798f2,..._0x40c4e9]);}else{if(isObjectValue$1(_0x1f336b)){for(const [_0x43065b,_0x1c6d30]of Object['entries'](_0x1f336b))void 0x0!==_0x1c6d30&&_0x3f0cfd['push']([_0x5c7d74+'['+_0x43065b+']',String(_0x1c6d30)]);}else isSimpleValue$1(_0x1f336b)&&_0x1f336b&&_0x3f0cfd['push']([_0x5c7d74,_0x1f336b['toString']()]);}}}function getFormDataParams$1(_0x3728cf){const _0x11377f=[];for(const [_0x28e19e,_0x394334]of Object['entries'](_0x3728cf))collectParams$1(_0x11377f,_0x28e19e,_0x394334);return _0x11377f;}function buildFormData$1(_0x397f8a){const _0x2872e1=getFormData$1(),_0x7cc28d=getFormDataParams$1(_0x397f8a);for(const _0x28bef7 of _0x7cc28d){const [_0x50ed95,_0x217ad9,..._0x3a2579]=_0x28bef7;_0x2872e1['append'](_0x50ed95,_0x217ad9,..._0x3a2579);}return _0x2872e1;}let UploadError$1=class e extends UploadcareError$1{['code'];['request'];['response'];['headers'];constructor(_0xe7a744,_0x4f8daa,_0x4189db,_0x54ea65,_0x421ae0){super(),this['name']='UploadError',this['message']=_0xe7a744,this['code']=_0x4f8daa,this['request']=_0x4189db,this['response']=_0x54ea65,this['headers']=_0x421ae0,Object['setPrototypeOf'](this,e['prototype']);}};const buildSearchParams$1=_0x2b7479=>{const _0x375ef2=new URLSearchParams();for(const [_0x540845,_0x1bc43b]of Object['entries'](_0x2b7479))_0x1bc43b&&'object'==typeof _0x1bc43b&&!Array['isArray'](_0x1bc43b)?Object['entries'](_0x1bc43b)['filter'](_0x252440=>_0x252440[0x1]??!0x1)['forEach'](_0x22c8fd=>_0x375ef2['set'](_0x540845+'['+_0x22c8fd[0x0]+']',String(_0x22c8fd[0x1]))):Array['isArray'](_0x1bc43b)?_0x1bc43b['forEach'](_0x45cccc=>{_0x375ef2['append'](_0x540845+'[]',_0x45cccc);}):'string'==typeof _0x1bc43b&&_0x1bc43b?_0x375ef2['set'](_0x540845,_0x1bc43b):'number'==typeof _0x1bc43b&&_0x375ef2['set'](_0x540845,_0x1bc43b['toString']());return _0x375ef2['toString']();},getUrl$1=(_0x400e9b,_0x5b03f2,_0x1a1728)=>{const _0x3d554d=new URL(_0x400e9b);return _0x3d554d['pathname']=(_0x3d554d['pathname']+_0x5b03f2)['replace']('//','/'),_0x1a1728&&(_0x3d554d['search']=buildSearchParams$1(_0x1a1728)),_0x3d554d['toString']();};var version$1='6.14.3';const LIBRARY_NAME$1='UploadcareUploadClient',LIBRARY_VERSION$1=version$1;function getUserAgent$2(_0x4b2e6e){return getUserAgent$1$1({'libraryName':LIBRARY_NAME$1,'libraryVersion':LIBRARY_VERSION$1,..._0x4b2e6e});}const REQUEST_WAS_THROTTLED_CODE$1='RequestThrottledError',DEFAULT_RETRY_AFTER_TIMEOUT$1=0x3a98,DEFAULT_NETWORK_ERROR_TIMEOUT$1=0x3e8;function getTimeoutFromThrottledRequest$1(_0x3d76c4){const {headers:_0x18d6e3}=_0x3d76c4||{};if(!_0x18d6e3||'string'!=typeof _0x18d6e3['retry-after'])return DEFAULT_RETRY_AFTER_TIMEOUT$1;const _0x2e6f72=parseInt(_0x18d6e3['retry-after'],0xa);return Number['isFinite'](_0x2e6f72)?0x3e8*_0x2e6f72:DEFAULT_RETRY_AFTER_TIMEOUT$1;}function retryIfFailed$1(_0x534efe,_0x4fa778){const {retryThrottledRequestMaxTimes:_0x88b39a,retryNetworkErrorMaxTimes:_0x3b6f7f}=_0x4fa778;return retrier$1(({attempt:_0x4560d5,retry:_0x23c9d9})=>_0x534efe()['catch'](_0x198bfa=>{if('response'in _0x198bfa&&_0x198bfa?.['code']===REQUEST_WAS_THROTTLED_CODE$1&&_0x4560d5<_0x88b39a)return _0x23c9d9(getTimeoutFromThrottledRequest$1(_0x198bfa));if(_0x198bfa instanceof NetworkError$1&&_0x4560d5<_0x3b6f7f)return _0x23c9d9((_0x4560d5+0x1)*DEFAULT_NETWORK_ERROR_TIMEOUT$1);throw _0x198bfa;}));}const getContentType$1=_0x5003f7=>{let _0x733df5='';return(isBlob$1(_0x5003f7)||isFile$1(_0x5003f7)||isReactNativeAsset$1(_0x5003f7))&&(_0x733df5=_0x5003f7['type']),_0x733df5||defaultContentType$1;},getFileName$1=_0x244deb=>{let _0x29fda6='';return isFile$1(_0x244deb)&&_0x244deb['name']?_0x29fda6=_0x244deb['name']:isBlob$1(_0x244deb)||isBuffer$1()?_0x29fda6='':isReactNativeAsset$1(_0x244deb)&&_0x244deb['name']&&(_0x29fda6=_0x244deb['name']),_0x29fda6||defaultFilename$1;};function getStoreValue$1(_0x5988d4){return void 0x0===_0x5988d4||'auto'===_0x5988d4?'auto':_0x5988d4?'1':'0';}function base$1(_0x4b8657,{publicKey:_0x16a759,fileName:_0x5e35f1,contentType:_0x5a5889,baseURL:_0x4cce09=defaultSettings$1['baseURL'],secureSignature:_0x3dc702,secureExpire:_0x4e16a1,store:_0x487e35,signal:_0x35d7e7,onProgress:_0x503413,source:_0x2c06b1='local',integration:_0xae0a83,userAgent:_0x52482b,retryThrottledRequestMaxTimes:_0x1d1a5f=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x1db5ee=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0x572472}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0x4cce09,'/base/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x16a759,'integration':_0xae0a83,'userAgent':_0x52482b})},'data':buildFormData$1({'file':{'data':_0x4b8657,'name':_0x5e35f1||getFileName$1(_0x4b8657),'contentType':_0x5a5889||getContentType$1(_0x4b8657)},'UPLOADCARE_PUB_KEY':_0x16a759,'UPLOADCARE_STORE':getStoreValue$1(_0x487e35),'signature':_0x3dc702,'expire':_0x4e16a1,'source':_0x2c06b1,'metadata':_0x572472}),'signal':_0x35d7e7,'onProgress':_0x503413})['then'](({data:_0x2a0581,headers:_0x37def9,request:_0xd85667})=>{const _0x289893=camelizeKeys$1(JSON['parse'](_0x2a0581));if('error'in _0x289893)throw new UploadError$1(_0x289893['error']['content'],_0x289893['error']['errorCode'],_0xd85667,_0x289893,_0x37def9);return _0x289893;}),{'retryNetworkErrorMaxTimes':_0x1db5ee,'retryThrottledRequestMaxTimes':_0x1d1a5f});}var TypeEnum$1,Status$1;function fromUrl$1(_0x5f55e9,{publicKey:_0x106972,baseURL:_0x190efe=defaultSettings$1['baseURL'],store:_0x238bc3,fileName:_0x584d0a,checkForUrlDuplicates:_0x8649fa,saveUrlForRecurrentUploads:_0x110e10,secureSignature:_0x1dd5a9,secureExpire:_0x1b3836,source:_0x891c37='url',signal:_0x7d34b0,integration:_0x32f282,userAgent:_0x5a5b04,retryThrottledRequestMaxTimes:_0x3649c5=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x715459=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0x54dbd0}){return retryIfFailed$1(()=>request$1({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x106972,'integration':_0x32f282,'userAgent':_0x5a5b04})},'url':getUrl$1(_0x190efe,'/from_url/',{'jsonerrors':0x1,'pub_key':_0x106972,'source_url':_0x5f55e9,'store':getStoreValue$1(_0x238bc3),'filename':_0x584d0a,'check_URL_duplicates':_0x8649fa?0x1:void 0x0,'save_URL_duplicates':_0x110e10?0x1:void 0x0,'signature':_0x1dd5a9,'expire':_0x1b3836,'source':_0x891c37,'metadata':_0x54dbd0}),'signal':_0x7d34b0})['then'](({data:_0x5bad7c,headers:_0x1a3f99,request:_0x2739cc})=>{const _0x5538cf=camelizeKeys$1(JSON['parse'](_0x5bad7c));if('error'in _0x5538cf)throw new UploadError$1(_0x5538cf['error']['content'],_0x5538cf['error']['errorCode'],_0x2739cc,_0x5538cf,_0x1a3f99);return _0x5538cf;}),{'retryNetworkErrorMaxTimes':_0x715459,'retryThrottledRequestMaxTimes':_0x3649c5});}!function(_0x4fc056){_0x4fc056['Token']='token',_0x4fc056['FileInfo']='file_info';}(TypeEnum$1||(TypeEnum$1={})),function(_0x5f4b29){_0x5f4b29['Unknown']='unknown',_0x5f4b29['Waiting']='waiting',_0x5f4b29['Progress']='progress',_0x5f4b29['Error']='error',_0x5f4b29['Success']='success';}(Status$1||(Status$1={}));const isErrorResponse$1=_0x3dd4de=>'status'in _0x3dd4de&&_0x3dd4de['status']===Status$1['Error'];function fromUrlStatus$1(_0x3606c5,{publicKey:_0x4ea72c,baseURL:_0x510dd1=defaultSettings$1['baseURL'],signal:_0xf3a36e,integration:_0x387747,userAgent:_0x238eae,retryThrottledRequestMaxTimes:_0x466f8e=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x54535c=defaultSettings$1['retryNetworkErrorMaxTimes']}={}){return retryIfFailed$1(()=>request$1({'method':'GET','headers':_0x4ea72c?{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x4ea72c,'integration':_0x387747,'userAgent':_0x238eae})}:void 0x0,'url':getUrl$1(_0x510dd1,'/from_url/status/',{'jsonerrors':0x1,'token':_0x3606c5}),'signal':_0xf3a36e})['then'](({data:_0x2c7101,headers:_0xd85b5d,request:_0xa0470c})=>{const _0x46c968=camelizeKeys$1(JSON['parse'](_0x2c7101));if('error'in _0x46c968&&!isErrorResponse$1(_0x46c968))throw new UploadError$1(_0x46c968['error']['content'],_0x46c968['error']['errorCode'],_0xa0470c,_0x46c968,_0xd85b5d);return _0x46c968;}),{'retryNetworkErrorMaxTimes':_0x54535c,'retryThrottledRequestMaxTimes':_0x466f8e});}function info$1(_0xd17bd2,{publicKey:_0x3bc577,baseURL:_0xa1996=defaultSettings$1['baseURL'],signal:_0x342306,source:_0x12c6c8,integration:_0x2cbd42,userAgent:_0x5a07aa,retryThrottledRequestMaxTimes:_0x1c3a9a=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x2d6d37=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'GET','headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x3bc577,'integration':_0x2cbd42,'userAgent':_0x5a07aa})},'url':getUrl$1(_0xa1996,'/info/',{'jsonerrors':0x1,'pub_key':_0x3bc577,'file_id':_0xd17bd2,'source':_0x12c6c8}),'signal':_0x342306})['then'](({data:_0x215718,headers:_0x1f6ff6,request:_0x435e02})=>{const _0x445e8f=camelizeKeys$1(JSON['parse'](_0x215718));if('error'in _0x445e8f)throw new UploadError$1(_0x445e8f['error']['content'],_0x445e8f['error']['errorCode'],_0x435e02,_0x445e8f,_0x1f6ff6);return _0x445e8f;}),{'retryThrottledRequestMaxTimes':_0x1c3a9a,'retryNetworkErrorMaxTimes':_0x2d6d37});}function multipartStart$1(_0x408b55,{publicKey:_0x1515eb,contentType:_0x144016,fileName:_0x43db0e,multipartChunkSize:_0x5dcbcd=defaultSettings$1['multipartChunkSize'],baseURL:_0x1330ab='',secureSignature:_0x11bd08,secureExpire:_0x50900a,store:_0x43b487,signal:_0x23ad2b,source:_0x59e0fc='local',integration:_0xcb0d61,userAgent:_0x43d6f8,retryThrottledRequestMaxTimes:_0x4305d6=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x4239ea=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0x12d623}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0x1330ab,'/multipart/start/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x1515eb,'integration':_0xcb0d61,'userAgent':_0x43d6f8})},'data':buildFormData$1({'filename':_0x43db0e||defaultFilename$1,'size':_0x408b55,'content_type':_0x144016||defaultContentType$1,'part_size':_0x5dcbcd,'UPLOADCARE_STORE':getStoreValue$1(_0x43b487),'UPLOADCARE_PUB_KEY':_0x1515eb,'signature':_0x11bd08,'expire':_0x50900a,'source':_0x59e0fc,'metadata':_0x12d623}),'signal':_0x23ad2b})['then'](({data:_0x2b0abe,headers:_0x2037df,request:_0x22969a})=>{const _0xb361e8=camelizeKeys$1(JSON['parse'](_0x2b0abe));if('error'in _0xb361e8)throw new UploadError$1(_0xb361e8['error']['content'],_0xb361e8['error']['errorCode'],_0x22969a,_0xb361e8,_0x2037df);return _0xb361e8['parts']=Object['keys'](_0xb361e8['parts'])['map'](_0xb4ccb9=>_0xb361e8['parts'][Number(_0xb4ccb9)]),_0xb361e8;}),{'retryThrottledRequestMaxTimes':_0x4305d6,'retryNetworkErrorMaxTimes':_0x4239ea});}function multipartUpload$1(_0x542ef0,_0x181bc8,{contentType:_0x1fb1ef,signal:_0x4d5961,onProgress:_0x436cd9,retryThrottledRequestMaxTimes:_0x361f35=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x583611=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'PUT','url':_0x181bc8,'data':_0x542ef0,'onProgress':_0x436cd9,'signal':_0x4d5961,'headers':{'Content-Type':_0x1fb1ef||defaultContentType$1}})['then'](_0x23e366=>(_0x436cd9&&_0x436cd9({'isComputable':!0x0,'value':0x1}),_0x23e366))['then'](({status:_0xd2dea1})=>({'code':_0xd2dea1})),{'retryThrottledRequestMaxTimes':_0x361f35,'retryNetworkErrorMaxTimes':_0x583611});}function multipartComplete$1(_0x57d265,{publicKey:_0x5b96c5,baseURL:_0x28e53e=defaultSettings$1['baseURL'],source:_0x347689='local',signal:_0x2bd773,integration:_0x45dce0,userAgent:_0x497c5d,retryThrottledRequestMaxTimes:_0x885cab=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x4f44d5=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0x28e53e,'/multipart/complete/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x5b96c5,'integration':_0x45dce0,'userAgent':_0x497c5d})},'data':buildFormData$1({'uuid':_0x57d265,'UPLOADCARE_PUB_KEY':_0x5b96c5,'source':_0x347689}),'signal':_0x2bd773})['then'](({data:_0x13ce69,headers:_0x129228,request:_0xf5ea8d})=>{const _0x51757f=camelizeKeys$1(JSON['parse'](_0x13ce69));if('error'in _0x51757f)throw new UploadError$1(_0x51757f['error']['content'],_0x51757f['error']['errorCode'],_0xf5ea8d,_0x51757f,_0x129228);return _0x51757f;}),{'retryThrottledRequestMaxTimes':_0x885cab,'retryNetworkErrorMaxTimes':_0x4f44d5});}function isReadyPoll$1(_0x3907f2,{publicKey:_0x39575b,baseURL:_0x2a6de7,source:_0x4c0bbc,integration:_0x48a94b,userAgent:_0x42e476,retryThrottledRequestMaxTimes:_0x181ac5,retryNetworkErrorMaxTimes:_0x435590,signal:_0x2bc3c4,onProgress:_0x112c45}){return poll$1({'check':_0x293318=>info$1(_0x3907f2,{'publicKey':_0x39575b,'baseURL':_0x2a6de7,'signal':_0x293318,'source':_0x4c0bbc,'integration':_0x48a94b,'userAgent':_0x42e476,'retryThrottledRequestMaxTimes':_0x181ac5,'retryNetworkErrorMaxTimes':_0x435590})['then'](_0x341d06=>_0x341d06['isReady']?_0x341d06:(_0x112c45&&_0x112c45({'isComputable':!0x0,'value':0x1}),!0x1)),'signal':_0x2bc3c4});}function isGroupFileInfo$1(_0x5c66a0){return'defaultEffects'in _0x5c66a0;}let UploadcareFile$1=class{['uuid'];['name'];['size'];['isStored'];['isImage'];['mimeType'];['cdnUrl'];['s3Url'];['originalFilename'];['imageInfo'];['videoInfo'];['contentInfo'];['metadata'];['s3Bucket'];['defaultEffects']=null;constructor(_0x2361cd,{baseCDN:_0x5aadd3=defaultSettings$1['baseCDN'],fileName:_0x2050f1}={}){const {uuid:_0x5cfdf7,s3Bucket:_0x7f349c}=_0x2361cd,_0x5ab716=getUrl$1(_0x5aadd3,_0x5cfdf7+'/'),_0x589748=_0x7f349c?getUrl$1('https://'+_0x7f349c+'.s3.amazonaws.com/',_0x5cfdf7+'/'+_0x2361cd['filename']):null;this['uuid']=_0x5cfdf7,this['name']=_0x2050f1||_0x2361cd['filename'],this['size']=_0x2361cd['size'],this['isStored']=_0x2361cd['isStored'],this['isImage']=_0x2361cd['isImage'],this['mimeType']=_0x2361cd['mimeType'],this['cdnUrl']=_0x5ab716,this['originalFilename']=_0x2361cd['originalFilename'],this['imageInfo']=_0x2361cd['imageInfo'],this['videoInfo']=_0x2361cd['videoInfo'],this['contentInfo']=_0x2361cd['contentInfo'],this['metadata']=_0x2361cd['metadata']||null,this['s3Bucket']=_0x7f349c||null,this['s3Url']=_0x589748,isGroupFileInfo$1(_0x2361cd)&&(this['defaultEffects']=_0x2361cd['defaultEffects']);}};const uploadDirect$1=(_0x12aded,{publicKey:_0x3554af,fileName:_0x340dc3,baseURL:_0xb7b063,secureSignature:_0x1cdb00,secureExpire:_0x4d9d51,store:_0x40aae4,contentType:_0x4289e2,signal:_0x71c019,onProgress:_0x15be66,source:_0x5ad608,integration:_0x31bf53,userAgent:_0x5b369e,retryThrottledRequestMaxTimes:_0x104604,retryNetworkErrorMaxTimes:_0x4650b3,baseCDN:_0x34eb1f,metadata:_0x1601fc})=>base$1(_0x12aded,{'publicKey':_0x3554af,'fileName':_0x340dc3,'contentType':_0x4289e2,'baseURL':_0xb7b063,'secureSignature':_0x1cdb00,'secureExpire':_0x4d9d51,'store':_0x40aae4,'signal':_0x71c019,'onProgress':_0x15be66,'source':_0x5ad608,'integration':_0x31bf53,'userAgent':_0x5b369e,'retryThrottledRequestMaxTimes':_0x104604,'retryNetworkErrorMaxTimes':_0x4650b3,'metadata':_0x1601fc})['then'](({file:_0x5ad245})=>isReadyPoll$1(_0x5ad245,{'publicKey':_0x3554af,'baseURL':_0xb7b063,'source':_0x5ad608,'integration':_0x31bf53,'userAgent':_0x5b369e,'retryThrottledRequestMaxTimes':_0x104604,'retryNetworkErrorMaxTimes':_0x4650b3,'onProgress':_0x15be66,'signal':_0x71c019}))['then'](_0x36b849=>new UploadcareFile$1(_0x36b849,{'baseCDN':_0x34eb1f})),uploadFromUploaded$1=(_0x168a67,{publicKey:_0x2caebc,fileName:_0x4453b3,baseURL:_0x59c565,signal:_0x1898a6,onProgress:_0x370b3b,source:_0xbe29c5,integration:_0x388410,userAgent:_0x2e9e92,retryThrottledRequestMaxTimes:_0x437d3f,retryNetworkErrorMaxTimes:_0x214a2c,baseCDN:_0x1b4d5f})=>info$1(_0x168a67,{'publicKey':_0x2caebc,'baseURL':_0x59c565,'signal':_0x1898a6,'source':_0xbe29c5,'integration':_0x388410,'userAgent':_0x2e9e92,'retryThrottledRequestMaxTimes':_0x437d3f,'retryNetworkErrorMaxTimes':_0x214a2c})['then'](_0x5ceeff=>new UploadcareFile$1(_0x5ceeff,{'baseCDN':_0x1b4d5f,'fileName':_0x4453b3}))['then'](_0x378588=>(_0x370b3b&&_0x370b3b({'isComputable':!0x0,'value':0x1}),_0x378588)),race$1=(_0x489b94,{signal:_0x15f26c}={})=>{let _0x1b45d5=null,_0x4a2d73=null;const _0x4c0ca7=_0x489b94['map'](()=>new AbortController());return onCancel$1(_0x15f26c,()=>{_0x4c0ca7['forEach'](_0x136c25=>_0x136c25['abort']());}),Promise['all'](_0x489b94['map']((_0x39312c,_0x1bcf38)=>{const _0x188ede=(_0x3bfdb4=>()=>{_0x4a2d73=_0x3bfdb4,_0x4c0ca7['forEach']((_0x721424,_0x182ae4)=>_0x182ae4!==_0x3bfdb4&&_0x721424['abort']());})(_0x1bcf38);return Promise['resolve']()['then'](()=>_0x39312c({'stopRace':_0x188ede,'signal':_0x4c0ca7[_0x1bcf38]['signal']}))['then'](_0x2b89bb=>(_0x188ede(),_0x2b89bb))['catch'](_0x5ac9f3=>(_0x1b45d5=_0x5ac9f3,null));}))['then'](_0x32efad=>{if(null===_0x4a2d73)throw _0x1b45d5;return _0x32efad[_0x4a2d73];});};var WebSocket$1=window['WebSocket'];let Events$1=class{['events']=Object['create']({});['emit'](_0x5f07b5,_0x148733){this['events'][_0x5f07b5]?.['forEach'](_0x4e8109=>_0x4e8109(_0x148733));}['on'](_0x4f52c9,_0x48f30d){this['events'][_0x4f52c9]=this['events'][_0x4f52c9]||[],this['events'][_0x4f52c9]['push'](_0x48f30d);}['off'](_0x565662,_0x34065){this['events'][_0x565662]=_0x34065?this['events'][_0x565662]['filter'](_0xebe745=>_0xebe745!==_0x34065):[];}};const response$1=(_0x5bd2d3,_0x2f1ca6)=>'success'===_0x5bd2d3?{'status':Status$1['Success'],..._0x2f1ca6}:'progress'===_0x5bd2d3?{'status':Status$1['Progress'],..._0x2f1ca6}:{'status':Status$1['Error'],..._0x2f1ca6};let Pusher$1=class{['key'];['disconnectTime'];['ws']=void 0x0;['queue']=[];['isConnected']=!0x1;['subscribers']=0x0;['emmitter']=new Events$1();['disconnectTimeoutId']=null;constructor(_0x2dd0f5,_0x5ae283=0x7530){this['key']=_0x2dd0f5,this['disconnectTime']=_0x5ae283;}['connect'](){if(this['disconnectTimeoutId']&&clearTimeout(this['disconnectTimeoutId']),!this['isConnected']&&!this['ws']){const _0x43ed45='wss://ws.pusherapp.com/app/'+this['key']+'?protocol=5&client=js&version=1.12.2';this['ws']=new WebSocket$1(_0x43ed45),this['ws']['addEventListener']('error',_0x85412a=>{this['emmitter']['emit']('error',new Error(_0x85412a['message']));}),this['emmitter']['on']('connected',()=>{this['isConnected']=!0x0,this['queue']['forEach'](_0x3041c3=>this['send'](_0x3041c3['event'],_0x3041c3['data'])),this['queue']=[];}),this['ws']['addEventListener']('message',_0x4c6370=>{const _0x3c1610=JSON['parse'](_0x4c6370['data']['toString']());switch(_0x3c1610['event']){case'pusher:connection_established':this['emmitter']['emit']('connected',void 0x0);break;case'pusher:ping':this['send']('pusher:pong',{});break;case'progress':case'success':case'fail':this['emmitter']['emit'](_0x3c1610['channel'],response$1(_0x3c1610['event'],JSON['parse'](_0x3c1610['data'])));}});}}['disconnect'](){const _0x43d4fa=()=>{this['ws']?.['close'](),this['ws']=void 0x0,this['isConnected']=!0x1;};this['disconnectTime']?this['disconnectTimeoutId']=setTimeout(()=>{_0x43d4fa();},this['disconnectTime']):_0x43d4fa();}['send'](_0x1bbce0,_0x5aae22){const _0x2f9645=JSON['stringify']({'event':_0x1bbce0,'data':_0x5aae22});this['ws']?.['send'](_0x2f9645);}['subscribe'](_0x3df004,_0x510539){this['subscribers']+=0x1,this['connect']();const _0x2a4c93='task-status-'+_0x3df004,_0x23e6fb={'event':'pusher:subscribe','data':{'channel':_0x2a4c93}};this['emmitter']['on'](_0x2a4c93,_0x510539),this['isConnected']?this['send'](_0x23e6fb['event'],_0x23e6fb['data']):this['queue']['push'](_0x23e6fb);}['unsubscribe'](_0x5d3b78){this['subscribers']-=0x1;const _0x22d45f='task-status-'+_0x5d3b78,_0x5d945a={'event':'pusher:unsubscribe','data':{'channel':_0x22d45f}};this['emmitter']['off'](_0x22d45f),this['isConnected']?this['send'](_0x5d945a['event'],_0x5d945a['data']):this['queue']=this['queue']['filter'](_0x30f438=>_0x30f438['data']['channel']!==_0x22d45f),0x0===this['subscribers']&&this['disconnect']();}['onError'](_0x1c5956){return this['emmitter']['on']('error',_0x1c5956),()=>this['emmitter']['off']('error',_0x1c5956);}},pusher$1=null;const getPusher$1=_0x10fc46=>{if(!pusher$1){const _0x7795c1='undefined'==typeof window?0x0:0x7530;pusher$1=new Pusher$1(_0x10fc46,_0x7795c1);}return pusher$1;},preconnect$1=_0x29686d=>{getPusher$1(_0x29686d)['connect']();};function pollStrategy$1({token:_0x242b87,publicKey:_0x3ceab0,baseURL:_0x25b3a8,integration:_0x11adb5,userAgent:_0x46fbbe,retryThrottledRequestMaxTimes:_0x1574f2,retryNetworkErrorMaxTimes:_0x4ab1ac,onProgress:_0x517bfe,signal:_0x17ae84}){return poll$1({'check':_0x3b2362=>fromUrlStatus$1(_0x242b87,{'publicKey':_0x3ceab0,'baseURL':_0x25b3a8,'integration':_0x11adb5,'userAgent':_0x46fbbe,'retryThrottledRequestMaxTimes':_0x1574f2,'retryNetworkErrorMaxTimes':_0x4ab1ac,'signal':_0x3b2362})['then'](_0x344cbd=>{switch(_0x344cbd['status']){case Status$1['Error']:return new UploadError$1(_0x344cbd['error'],_0x344cbd['errorCode']);case Status$1['Waiting']:return!0x1;case Status$1['Unknown']:return new UploadError$1('Token\x20\x22'+_0x242b87+'\x22\x20was\x20not\x20found.');case Status$1['Progress']:return _0x517bfe&&('unknown'===_0x344cbd['total']?_0x517bfe({'isComputable':!0x1}):_0x517bfe({'isComputable':!0x0,'value':_0x344cbd['done']/_0x344cbd['total']})),!0x1;case Status$1['Success']:return _0x517bfe&&_0x517bfe({'isComputable':!0x0,'value':_0x344cbd['done']/_0x344cbd['total']}),_0x344cbd;default:throw new Error('Unknown\x20status');}}),'signal':_0x17ae84});}const pushStrategy$1=({token:_0x27e3e8,pusherKey:_0x2f4213,signal:_0x4a65b1,onProgress:_0x55f56f})=>new Promise((_0x1239b5,_0x43551f)=>{const _0x51650a=getPusher$1(_0x2f4213),_0x212f35=_0x51650a['onError'](_0x43551f),_0x3fb993=()=>{_0x212f35(),_0x51650a['unsubscribe'](_0x27e3e8);};onCancel$1(_0x4a65b1,()=>{_0x3fb993(),_0x43551f(new CancelError$1('pusher\x20cancelled'));}),_0x51650a['subscribe'](_0x27e3e8,_0x54dea5=>{switch(_0x54dea5['status']){case Status$1['Progress']:_0x55f56f&&('unknown'===_0x54dea5['total']?_0x55f56f({'isComputable':!0x1}):_0x55f56f({'isComputable':!0x0,'value':_0x54dea5['done']/_0x54dea5['total']}));break;case Status$1['Success']:_0x3fb993(),_0x55f56f&&_0x55f56f({'isComputable':!0x0,'value':_0x54dea5['done']/_0x54dea5['total']}),_0x1239b5(_0x54dea5);break;case Status$1['Error']:_0x3fb993(),_0x43551f(new UploadError$1(_0x54dea5['msg'],_0x54dea5['error_code']));}});}),uploadFromUrl$1=(_0x54957d,{publicKey:_0x835262,fileName:_0x3a577f,baseURL:_0x316298,baseCDN:_0x4389a1,checkForUrlDuplicates:_0x509c3a,saveUrlForRecurrentUploads:_0x533761,secureSignature:_0x4efbfe,secureExpire:_0x16f0d5,store:_0x218dbc,signal:_0x375e1b,onProgress:_0x2ffc2c,source:_0x4d769f,integration:_0x1686a7,userAgent:_0x5bb661,retryThrottledRequestMaxTimes:_0x315bc0,pusherKey:_0xfab3e3=defaultSettings$1['pusherKey'],metadata:_0x14b61f})=>Promise['resolve'](preconnect$1(_0xfab3e3))['then'](()=>fromUrl$1(_0x54957d,{'publicKey':_0x835262,'fileName':_0x3a577f,'baseURL':_0x316298,'checkForUrlDuplicates':_0x509c3a,'saveUrlForRecurrentUploads':_0x533761,'secureSignature':_0x4efbfe,'secureExpire':_0x16f0d5,'store':_0x218dbc,'signal':_0x375e1b,'source':_0x4d769f,'integration':_0x1686a7,'userAgent':_0x5bb661,'retryThrottledRequestMaxTimes':_0x315bc0,'metadata':_0x14b61f}))['catch'](_0x3d10d8=>{const _0x15d178=getPusher$1(_0xfab3e3);return _0x15d178?.['disconnect'](),Promise['reject'](_0x3d10d8);})['then'](_0x55de4d=>_0x55de4d['type']===TypeEnum$1['FileInfo']?_0x55de4d:race$1([({signal:_0x494ad6})=>pollStrategy$1({'token':_0x55de4d['token'],'publicKey':_0x835262,'baseURL':_0x316298,'integration':_0x1686a7,'userAgent':_0x5bb661,'retryThrottledRequestMaxTimes':_0x315bc0,'onProgress':_0x2ffc2c,'signal':_0x494ad6}),({signal:_0x87ab81})=>pushStrategy$1({'token':_0x55de4d['token'],'pusherKey':_0xfab3e3,'signal':_0x87ab81,'onProgress':_0x2ffc2c})],{'signal':_0x375e1b}))['then'](_0x250fa3=>{if(_0x250fa3 instanceof UploadError$1)throw _0x250fa3;return _0x250fa3;})['then'](_0x277f1e=>isReadyPoll$1(_0x277f1e['uuid'],{'publicKey':_0x835262,'baseURL':_0x316298,'integration':_0x1686a7,'userAgent':_0x5bb661,'retryThrottledRequestMaxTimes':_0x315bc0,'onProgress':_0x2ffc2c,'signal':_0x375e1b}))['then'](_0x1cb08d=>new UploadcareFile$1(_0x1cb08d,{'baseCDN':_0x4389a1})),memo$1=new WeakMap(),getBlobFromReactNativeAsset$1=async _0x34dafe=>{if(memo$1['has'](_0x34dafe))return memo$1['get'](_0x34dafe);const _0x43c0f4=await fetch(_0x34dafe['uri'])['then'](_0x1e36be=>_0x1e36be['blob']());return memo$1['set'](_0x34dafe,_0x43c0f4),_0x43c0f4;},getFileSize$1=async _0x28ce32=>{if(isFile$1(_0x28ce32)||isBlob$1(_0x28ce32))return _0x28ce32['size'];if(isReactNativeAsset$1(_0x28ce32))return(await getBlobFromReactNativeAsset$1(_0x28ce32))['size'];throw new Error('Unknown\x20file\x20type.\x20Cannot\x20determine\x20file\x20size.');},isMultipart$1=(_0x4627d3,_0x535f53=defaultSettings$1['multipartMinFileSize'])=>_0x4627d3>=_0x535f53,isUuid$1=_0x1aa99d=>{const _0x4855d9=new RegExp('[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}');return!isFileData$1(_0x1aa99d)&&_0x4855d9['test'](_0x1aa99d);},isUrl$1=_0x2a2174=>{const _0x4b9da2=new RegExp('^(?:\x5cw+:)?\x5c/\x5c/([^\x5cs\x5c.]+\x5c.\x5cS{2}|localhost[\x5c:?\x5cd]*)\x5cS*$');return!isFileData$1(_0x2a2174)&&_0x4b9da2['test'](_0x2a2174);},runWithConcurrency$1=(_0xd119c1,_0x2ab25c)=>new Promise((_0x3b2e42,_0x54a1c)=>{const _0x4f6a69=[];let _0x58556d=!0x1,_0x6c1d44=_0x2ab25c['length'];const _0x194ab1=[..._0x2ab25c],_0x1707bf=()=>{const _0x115282=_0x2ab25c['length']-_0x194ab1['length'],_0x1194b3=_0x194ab1['shift']();_0x1194b3&&_0x1194b3()['then'](_0x45419b=>{_0x58556d||(_0x4f6a69[_0x115282]=_0x45419b,_0x6c1d44-=0x1,_0x6c1d44?_0x1707bf():_0x3b2e42(_0x4f6a69));})['catch'](_0x486c03=>{_0x58556d=!0x0,_0x54a1c(_0x486c03);});};for(let _0x3cc1ad=0x0;_0x3cc1ad<_0xd119c1;_0x3cc1ad++)_0x1707bf();}),sliceChunk$1=(_0x3f2e7b,_0x1e1a81,_0xc3291d,_0x5c4d98)=>{const _0x50be96=_0x5c4d98*_0x1e1a81,_0x5a3f18=Math['min'](_0x50be96+_0x5c4d98,_0xc3291d);return _0x3f2e7b['slice'](_0x50be96,_0x5a3f18);},prepareChunks$1=async(_0x8a474f,_0x309f6d,_0xe43b18)=>_0xbfd336=>sliceChunk$1(_0x8a474f,_0xbfd336,_0x309f6d,_0xe43b18),uploadPart$1=(_0x19131e,_0x4cee26,{publicKey:_0x54f669,contentType:_0x42a418,onProgress:_0x47bef6,signal:_0x113383,integration:_0x3d0f52,retryThrottledRequestMaxTimes:_0x580f6a,retryNetworkErrorMaxTimes:_0x18d2de})=>multipartUpload$1(_0x19131e,_0x4cee26,{'contentType':_0x42a418,'onProgress':_0x47bef6,'signal':_0x113383,'retryThrottledRequestMaxTimes':_0x580f6a,'retryNetworkErrorMaxTimes':_0x18d2de}),uploadMultipart$1=async(_0x53920e,{publicKey:_0x4157a9,fileName:_0x1dab5d,fileSize:_0x3fe73a,baseURL:_0x3b2e3a,secureSignature:_0x1aa1a9,secureExpire:_0xe76e0,store:_0x543a52,signal:_0x365d9c,onProgress:_0x2e1775,source:_0x5ddd3b,integration:_0x1e967b,userAgent:_0x3c1f42,retryThrottledRequestMaxTimes:_0x3b3227,retryNetworkErrorMaxTimes:_0x201408,contentType:_0x1e477a,multipartChunkSize:_0x4ad13b=defaultSettings$1['multipartChunkSize'],maxConcurrentRequests:_0x25b3c7=defaultSettings$1['maxConcurrentRequests'],baseCDN:_0x31d32f,metadata:_0x44385f})=>{const _0x70bc0a=_0x3fe73a??await getFileSize$1(_0x53920e);let _0x494d6e;const _0x4d7ba2=(_0x1a5ff4,_0x446c26)=>{if(!_0x2e1775)return;_0x494d6e||(_0x494d6e=Array(_0x1a5ff4)['fill'](0x0));const _0xcab8f5=_0x4e4fd6=>_0x4e4fd6['reduce']((_0x3fe271,_0x4acd42)=>_0x3fe271+_0x4acd42,0x0);return _0x1ef252=>{_0x1ef252['isComputable']&&(_0x494d6e[_0x446c26]=_0x1ef252['value'],_0x2e1775({'isComputable':!0x0,'value':_0xcab8f5(_0x494d6e)/_0x1a5ff4}));};};return _0x1e477a||=getContentType$1(_0x53920e),multipartStart$1(_0x70bc0a,{'publicKey':_0x4157a9,'contentType':_0x1e477a,'fileName':_0x1dab5d||getFileName$1(_0x53920e),'baseURL':_0x3b2e3a,'secureSignature':_0x1aa1a9,'secureExpire':_0xe76e0,'store':_0x543a52,'signal':_0x365d9c,'source':_0x5ddd3b,'integration':_0x1e967b,'userAgent':_0x3c1f42,'retryThrottledRequestMaxTimes':_0x3b3227,'retryNetworkErrorMaxTimes':_0x201408,'metadata':_0x44385f,'multipartChunkSize':_0x4ad13b})['then'](async({uuid:_0x368960,parts:_0x4d2748})=>{const _0x28ae73=await prepareChunks$1(_0x53920e,_0x70bc0a,_0x4ad13b);return Promise['all']([_0x368960,runWithConcurrency$1(_0x25b3c7,_0x4d2748['map']((_0x323e59,_0x12f1ca)=>()=>uploadPart$1(_0x28ae73(_0x12f1ca),_0x323e59,{'publicKey':_0x4157a9,'contentType':_0x1e477a,'onProgress':_0x4d7ba2(_0x4d2748['length'],_0x12f1ca),'signal':_0x365d9c,'integration':_0x1e967b,'retryThrottledRequestMaxTimes':_0x3b3227,'retryNetworkErrorMaxTimes':_0x201408})))]);})['then'](([_0x5063ee])=>multipartComplete$1(_0x5063ee,{'publicKey':_0x4157a9,'baseURL':_0x3b2e3a,'source':_0x5ddd3b,'integration':_0x1e967b,'userAgent':_0x3c1f42,'retryThrottledRequestMaxTimes':_0x3b3227,'retryNetworkErrorMaxTimes':_0x201408}))['then'](_0x2ebb6e=>_0x2ebb6e['isReady']?_0x2ebb6e:isReadyPoll$1(_0x2ebb6e['uuid'],{'publicKey':_0x4157a9,'baseURL':_0x3b2e3a,'source':_0x5ddd3b,'integration':_0x1e967b,'userAgent':_0x3c1f42,'retryThrottledRequestMaxTimes':_0x3b3227,'retryNetworkErrorMaxTimes':_0x201408,'onProgress':_0x2e1775,'signal':_0x365d9c}))['then'](_0x17c5b6=>new UploadcareFile$1(_0x17c5b6,{'baseCDN':_0x31d32f}));};async function uploadFile$1(_0x49ea2d,{publicKey:_0x294c41,fileName:_0x43f7b6,baseURL:_0x2a08e8=defaultSettings$1['baseURL'],secureSignature:_0x307ced,secureExpire:_0x424325,store:_0x1b94e0,signal:_0xa3a7b2,onProgress:_0x21e325,source:_0x23bf4f,integration:_0x1fa660,userAgent:_0x4701c5,retryThrottledRequestMaxTimes:_0x43bb72,retryNetworkErrorMaxTimes:_0x3df654,contentType:_0x1f34e1,multipartMinFileSize:_0x253fde,multipartChunkSize:_0x34f073,maxConcurrentRequests:_0x4ce694,baseCDN:_0xc15414=defaultSettings$1['baseCDN'],checkForUrlDuplicates:_0x2a46a8,saveUrlForRecurrentUploads:_0x51f935,pusherKey:_0x527faf,metadata:_0x447035}){if(isFileData$1(_0x49ea2d)){const _0x57251a=await getFileSize$1(_0x49ea2d);return isMultipart$1(_0x57251a,_0x253fde)?uploadMultipart$1(_0x49ea2d,{'publicKey':_0x294c41,'contentType':_0x1f34e1,'multipartChunkSize':_0x34f073,'fileSize':_0x57251a,'fileName':_0x43f7b6,'baseURL':_0x2a08e8,'secureSignature':_0x307ced,'secureExpire':_0x424325,'store':_0x1b94e0,'signal':_0xa3a7b2,'onProgress':_0x21e325,'source':_0x23bf4f,'integration':_0x1fa660,'userAgent':_0x4701c5,'maxConcurrentRequests':_0x4ce694,'retryThrottledRequestMaxTimes':_0x43bb72,'retryNetworkErrorMaxTimes':_0x3df654,'baseCDN':_0xc15414,'metadata':_0x447035}):uploadDirect$1(_0x49ea2d,{'publicKey':_0x294c41,'fileName':_0x43f7b6,'contentType':_0x1f34e1,'baseURL':_0x2a08e8,'secureSignature':_0x307ced,'secureExpire':_0x424325,'store':_0x1b94e0,'signal':_0xa3a7b2,'onProgress':_0x21e325,'source':_0x23bf4f,'integration':_0x1fa660,'userAgent':_0x4701c5,'retryThrottledRequestMaxTimes':_0x43bb72,'retryNetworkErrorMaxTimes':_0x3df654,'baseCDN':_0xc15414,'metadata':_0x447035});}if(isUrl$1(_0x49ea2d))return uploadFromUrl$1(_0x49ea2d,{'publicKey':_0x294c41,'fileName':_0x43f7b6,'baseURL':_0x2a08e8,'baseCDN':_0xc15414,'checkForUrlDuplicates':_0x2a46a8,'saveUrlForRecurrentUploads':_0x51f935,'secureSignature':_0x307ced,'secureExpire':_0x424325,'store':_0x1b94e0,'signal':_0xa3a7b2,'onProgress':_0x21e325,'source':_0x23bf4f,'integration':_0x1fa660,'userAgent':_0x4701c5,'retryThrottledRequestMaxTimes':_0x43bb72,'pusherKey':_0x527faf,'metadata':_0x447035});if(isUuid$1(_0x49ea2d))return uploadFromUploaded$1(_0x49ea2d,{'publicKey':_0x294c41,'fileName':_0x43f7b6,'baseURL':_0x2a08e8,'signal':_0xa3a7b2,'onProgress':_0x21e325,'source':_0x23bf4f,'integration':_0x1fa660,'userAgent':_0x4701c5,'retryThrottledRequestMaxTimes':_0x43bb72,'retryNetworkErrorMaxTimes':_0x3df654,'baseCDN':_0xc15414});throw new TypeError('File\x20uploading\x20from\x20\x22'+_0x49ea2d+'\x22\x20is\x20not\x20supported');}class UploadUtils{static['upload']({file:_0x5f1f93,..._0x2c0731}){return uploadFile$1(_0x5f1f93,_0x2c0731);}static['getInfo'](_0x15fd8b,_0x528153){return info$1(_0x15fd8b,_0x528153);}}class UploadcareUploadAdapter extends Plugin{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',FileRepository,UploadcareEditing];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xb1f0a9=this['editor'];if(!!!_0xb1f0a9['config']['get']('uploadcare'))return;_0xb1f0a9['plugins']['get'](FileRepository)['createUploadAdapter']=_0x17f9a9=>new Adapter(_0x17f9a9,_0xb1f0a9),_0xb1f0a9['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x230204,{imageElement:_0x4be4fd,data:_0x280660})=>{_0xb1f0a9['model']['change'](_0x1c7985=>{_0x1c7985['setAttribute']('uploadcareImageId',_0x280660['uploadcareImageId'],_0x4be4fd);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x496912,_0x1dec28){this['loader']=_0x496912,this['editor']=_0x1dec28,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x313e9c=await this['loader']['file'];return UploadUtils['upload']({'file':_0x313e9c,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0xf2ea35=>{_0xf2ea35&&_0xf2ea35['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xf2ea35['value']);}})['then'](async _0x40662a=>{const {imageFallbackUrl:_0x4cbfb9,imageSources:_0xe1e4b6}=getImageUrls(_0x40662a['cdnUrl'],_0x40662a['imageInfo']['width']);return{'uploadcareImageId':_0x40662a['uuid'],'default':_0x4cbfb9,'sources':_0xe1e4b6};})['catch'](()=>{const _0x1bf9e6=t('Cannot\x20upload\x20file:')+('\x20'+_0x313e9c['name']+'.');return Promise['reject'](_0x1bf9e6);});}['abort'](){this['controller']['abort']();}}class UploadcareEditing extends Plugin{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',UploadcareUploadAdapter,Dialog];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x148b55){super(_0x148b55),this['ucContextId']=uid();}['init'](){const _0x2acdc3=this['editor'];_0x2acdc3['commands']['add']('uploadcare',new UploadcareCommand(_0x2acdc3));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x3a9b34=_0xd4e5e['document']['querySelector']('input[uploadcare-file-input]');_0x3a9b34&&_0x3a9b34['remove']();}),checkLicense(this);}['_initSchema'](){const _0x55f03a=this['editor']['model']['schema'];_0x55f03a['isRegistered']('imageBlock')&&_0x55f03a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x55f03a['isRegistered']('imageInline')&&_0x55f03a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x761b40=this['editor'];_0x761b40['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x761b40['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4875bc=>_0x4875bc['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x302ca2=_0x761b40['commands']['get']('replaceImageSource');_0x302ca2&&this['listenTo'](_0x302ca2,'cleanupImage',(_0x5d4d8f,[_0x403dfc,_0x33da0a])=>{_0x403dfc['removeAttribute']('uploadcareImageId',_0x33da0a);});}['_initConfig'](){const _0x52f5d9=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2a74e6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=createElement(_0xd4e5e['document'],'uc-config',{..._0x52f5d9,'pubkey':_0x2a74e6,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4af11e=>{if('closeMax'==_0x4af11e)return'#uc-icon-arrow-down';},_0xd4e5e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=createElement(_0xd4e5e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xd4e5e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1d169d=this['editor']['commands']['get']('insertImage');_0x1d169d&&this['listenTo'](_0x1d169d,'execute',()=>{const _0xc254e5=this['editor']['model']['document']['selection']['getSelectedElement']();_0xc254e5&&_0xc254e5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{showImageProcessingIndicator(this['editor'],_0xc254e5);});});const _0x32e2d6=this['editor']['commands']['get']('uploadcareImageReplace');_0x32e2d6&&this['listenTo'](_0x32e2d6,'execute',()=>{const _0x5aaa83=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5aaa83&&_0x5aaa83['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{showImageProcessingIndicator(this['editor'],_0x5aaa83);});});}}async function checkLicense(_0x56b612){const _0x3877c7=_0x9b5b02([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x365d9b=window[_0x9b5b02([0x44,0x61,0x74,0x65])][_0x9b5b02([0x6e,0x6f,0x77])](),_0x20454e=_0x56b612[_0x9b5b02([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x566458=new window[(_0x9b5b02([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a0bb6=>{_0x20454e[_0x9b5b02([0x6f,0x6e,0x63,0x65])](_0x9b5b02([0x72,0x65,0x61,0x64,0x79]),_0x1a0bb6);}),_0x50c7ae={[_0x9b5b02([0x6b,0x74,0x79])]:_0x9b5b02([0x45,0x43]),[_0x9b5b02([0x75,0x73,0x65])]:_0x9b5b02([0x73,0x69,0x67]),[_0x9b5b02([0x63,0x72,0x76])]:_0x9b5b02([0x50,0x2d,0x32,0x35,0x36]),[_0x9b5b02([0x78])]:_0x9b5b02([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x9b5b02([0x79])]:_0x9b5b02([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x9b5b02([0x61,0x6c,0x67])]:_0x9b5b02([0x45,0x53,0x32,0x35,0x36])},_0x4f636f=_0x20454e[_0x9b5b02([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9b5b02([0x67,0x65,0x74])](_0x9b5b02([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x50a025=await(async function(){let _0x3e4c2c,_0x2caeea=null,_0xc1f9c6=null;try{if(_0x4f636f==_0x9b5b02([0x47,0x50,0x4c]))return _0x9b5b02([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e4c2c=(function(){const _0x3f551c=_0x4f636f[_0x9b5b02([0x73,0x70,0x6c,0x69,0x74])](_0x9b5b02([0x2e]));if(0x3!=_0x3f551c[_0x9b5b02([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x1b1fb3=_0x3f551c[0x1];return _0x228290(_0x1b1fb3);function _0x228290(_0xdfc194){const _0x60255e=_0xb52f76(_0xdfc194);return _0x60255e&&_0x498a38()?_0x60255e:null;function _0x498a38(){const _0x32c182=_0x60255e[_0x9b5b02([0x6a,0x74,0x69])],_0x435636=window[_0x9b5b02([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32c182[_0x9b5b02([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32c182[_0x9b5b02([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x490a47={..._0x60255e,[_0x9b5b02([0x6a,0x74,0x69])]:_0x32c182[_0x9b5b02([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32c182[_0x9b5b02([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x490a47[_0x9b5b02([0x76,0x63])],_0x5649a4(_0x490a47)==_0x435636;}}}()),!_0x3e4c2c)return _0x9b5b02([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x3e4c2c[_0x9b5b02([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc1f9c6=function(_0x2207ba,_0xcf9510){return new window[(_0x9b5b02([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x647c51=>{if(_0x58bc75())return _0x647c51(_0x9b5b02([0x56,0x61,0x6c,0x69,0x64]));_0x169210(),_0x20454e[_0x9b5b02([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9b5b02([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x394b21=!0x1;const _0xdee6e7=uid();function _0x126d39(_0xa793ab){return!!_0xa793ab&&(typeof _0xa793ab===_0x9b5b02([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa793ab===_0x9b5b02([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa793ab[_0x9b5b02([0x74,0x68,0x65,0x6e])]===_0x9b5b02([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa793ab[_0x9b5b02([0x63,0x61,0x74,0x63,0x68])]===_0x9b5b02([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4a7053(_0x51dc8c){_0xd5ad80(_0x51dc8c)[_0x9b5b02([0x74,0x68,0x65,0x6e])](_0x38adc2=>{if(!_0x38adc2||_0x38adc2[_0x9b5b02([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9b5b02([0x6f,0x6b]))return _0x9b5b02([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a200a(_0x5649a4(_0xdee6e7+_0xcf9510))!=_0x38adc2[_0x9b5b02([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9b5b02([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9b5b02([0x56,0x61,0x6c,0x69,0x64]);})[_0x9b5b02([0x74,0x68,0x65,0x6e])](_0x3e0096=>(_0x2f88f6(),_0x3e0096),()=>{const _0x55c41a=_0x1640fe();return null==_0x55c41a?(_0x2f88f6(),_0x9b5b02([0x56,0x61,0x6c,0x69,0x64])):_0x9b5b02(_0x365d9b-_0x55c41a>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9b5b02([0x74,0x68,0x65,0x6e])](_0x647c51)[_0x9b5b02([0x63,0x61,0x74,0x63,0x68])](()=>{_0x647c51(_0x9b5b02([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x48b7ae=0x36ee80;function _0x2f88f6(){const _0xcc03ff=_0x9b5b02([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a200a(_0x5649a4(_0x2207ba)),_0xba7ea0=_0x51bf61(_0x2a200a(window[_0x9b5b02([0x4d,0x61,0x74,0x68])][_0x9b5b02([0x63,0x65,0x69,0x6c])](_0x365d9b/_0x48b7ae)));window[_0x9b5b02([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9b5b02([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcc03ff,_0xba7ea0);}function _0x1640fe(){const _0x401307=_0x9b5b02([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a200a(_0x5649a4(_0x2207ba)),_0x23d32c=window[_0x9b5b02([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9b5b02([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x401307);return _0x23d32c?window[_0x9b5b02([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51bf61(_0x23d32c),0x10)*_0x48b7ae:null;}function _0xd5ad80(_0x4b7bd2){return new window[(_0x9b5b02([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40ca82,_0x5578bc)=>{_0x4b7bd2[_0x9b5b02([0x74,0x68,0x65,0x6e])](_0x40ca82,_0x5578bc),window[_0x9b5b02([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5578bc,0x1d4c0);});}}_0x20454e[_0x9b5b02([0x6f,0x6e])](_0x9b5b02([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x131662,_0x466fdd)=>{if(_0x466fdd[0x0]!=_0x2207ba)return _0x647c51(_0x9b5b02([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x466fdd[0x1]={..._0x466fdd[0x1],[_0x9b5b02([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xdee6e7};},{[_0x9b5b02([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9b5b02([0x68,0x69,0x67,0x68])}),_0x20454e[_0x9b5b02([0x6f,0x6e])](_0x9b5b02([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4abe74=>{_0x126d39(_0x4abe74[_0x9b5b02([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x394b21=!0x0,_0x4a7053(_0x4abe74[_0x9b5b02([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9b5b02([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9b5b02([0x6c,0x6f,0x77])}),_0x566458[_0x9b5b02([0x74,0x68,0x65,0x6e])](()=>{_0x394b21||_0x647c51(_0x9b5b02([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x58bc75(){return _0x20454e[_0x9b5b02([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9b5b02([0x76,0x69,0x65,0x77])][_0x9b5b02([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9b5b02([0x61,0x75,0x74,0x6f]);}function _0x169210(){_0x20454e[_0x9b5b02([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9b5b02([0x76,0x69,0x65,0x77])][_0x9b5b02([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9b5b02([0x61,0x75,0x74,0x6f]);}}(_0x3e4c2c[_0x9b5b02([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e4c2c[_0x9b5b02([0x6a,0x74,0x69])]));const _0x27ff38=await(async function(){let _0x30d34b=!0x0;try{const _0x21a626=_0x4f636f[_0x9b5b02([0x73,0x70,0x6c,0x69,0x74])](_0x9b5b02([0x2e])),[_0x2e0fab,_0x2abd76,_0x8e4fae]=_0x21a626;return _0x502d98(_0x2e0fab),await _0x4348c7(_0x2e0fab,_0x2abd76,_0x8e4fae),_0x30d34b;}catch{return!0x1;}function _0x502d98(_0x5e3da7){const _0x2ee5fb=_0xb52f76(_0x5e3da7);_0x2ee5fb&&_0x2ee5fb[_0x9b5b02([0x61,0x6c,0x67])]==_0x9b5b02([0x45,0x53,0x32,0x35,0x36])||(_0x30d34b=!0x1);}async function _0x4348c7(_0x4e5c44,_0x3ecb5c,_0xf10d1c){const _0x18f3d7=window[_0x9b5b02([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9b5b02([0x66,0x72,0x6f,0x6d])](_0xf96ebc(_0xf10d1c),_0x734fb5=>_0x734fb5[_0x9b5b02([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x15d66a=new window[(_0x9b5b02([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9b5b02([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e5c44+_0x9b5b02([0x2e])+_0x3ecb5c),_0x5c31e3=window[_0x9b5b02([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9b5b02([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5c31e3)return;const _0x46b745=await _0x5c31e3[_0x9b5b02([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9b5b02([0x6a,0x77,0x6b]),_0x50c7ae,{[_0x9b5b02([0x6e,0x61,0x6d,0x65])]:_0x9b5b02([0x45,0x43,0x44,0x53,0x41]),[_0x9b5b02([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9b5b02([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9b5b02([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5c31e3[_0x9b5b02([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9b5b02([0x6e,0x61,0x6d,0x65])]:_0x9b5b02([0x45,0x43,0x44,0x53,0x41]),[_0x9b5b02([0x68,0x61,0x73,0x68])]:{[_0x9b5b02([0x6e,0x61,0x6d,0x65])]:_0x9b5b02([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46b745,_0x18f3d7,_0x15d66a)||(_0x30d34b=!0x1);}}());return _0x27ff38?(function(){const _0x1b4a39=_0x3e4c2c[_0x9b5b02([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1b4a39)return!0x1;if(_0x1b4a39[_0x9b5b02([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b5b02([0x2a])))return!0x0;if(_0x1b4a39[_0x9b5b02([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b5b02([0x55,0x50,0x4c,0x43])))return!0x0;return!0x1;}())?(function(){const _0xf33608=[_0x9b5b02([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9b5b02([0x74,0x72,0x69,0x61,0x6c])][_0x9b5b02([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e4c2c[_0x9b5b02([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x365d9b/0x3e8:0x68f03580;return _0x3e4c2c[_0x9b5b02([0x65,0x78,0x70])]<_0xf33608;}())?_0x9b5b02([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x2b06a7=_0x3e4c2c[_0x9b5b02([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b06a7||0x0==_0x2b06a7[_0x9b5b02([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2873a}=new URL(window[_0x9b5b02([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b06a7[_0x9b5b02([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2873a))return!0x0;const _0x2f7048=_0x2873a[_0x9b5b02([0x73,0x70,0x6c,0x69,0x74])](_0x9b5b02([0x2e]));return _0x2b06a7[_0x9b5b02([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20bd5e=>_0x20bd5e[_0x9b5b02([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b5b02([0x2a])))[_0x9b5b02([0x6d,0x61,0x70])](_0x464ada=>_0x464ada[_0x9b5b02([0x73,0x70,0x6c,0x69,0x74])](_0x9b5b02([0x2e])))[_0x9b5b02([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ae0b0=>_0x5ae0b0[_0x9b5b02([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2f7048[_0x9b5b02([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9b5b02([0x6d,0x61,0x70])](_0x576f86=>Array(_0x2f7048[_0x9b5b02([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x576f86[_0x9b5b02([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9b5b02([0x66,0x69,0x6c,0x6c])](_0x576f86[0x0]===_0x9b5b02([0x2a])?_0x9b5b02([0x2a]):'')[_0x9b5b02([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x576f86))[_0x9b5b02([0x73,0x6f,0x6d,0x65])](_0x161f57=>_0x2f7048[_0x9b5b02([0x65,0x76,0x65,0x72,0x79])]((_0x3dd7b3,_0x5e90d4)=>_0x161f57[_0x5e90d4]===_0x3dd7b3||_0x161f57[_0x5e90d4]===_0x9b5b02([0x2a])));}())?(_0x3e4c2c[_0x9b5b02([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9b5b02([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2caeea=_0x2b0df0(_0x9b5b02([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e4c2c[_0x9b5b02([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9b5b02([0x74,0x72,0x69,0x61,0x6c])&&(_0x2caeea=_0x2b0df0(_0x9b5b02([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2caeea&&_0xc1f9c6)return new window[(_0x9b5b02([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a6639,_0x2cdf49)=>{_0x2caeea[_0x9b5b02([0x74,0x68,0x65,0x6e])](_0x4a6639,_0x2cdf49),_0xc1f9c6[_0x9b5b02([0x74,0x68,0x65,0x6e])](_0x3061d7=>{_0x3061d7!=_0x9b5b02([0x56,0x61,0x6c,0x69,0x64])&&_0x4a6639(_0x3061d7);},_0x2cdf49);});return _0x2caeea||_0xc1f9c6||_0x9b5b02([0x56,0x61,0x6c,0x69,0x64]);}())):_0x9b5b02([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9b5b02([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9b5b02([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x9b5b02([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x2b0df0(_0x3a35df){const _0x17116f=[new window[(_0x9b5b02([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x448eb7=>setTimeout(_0x448eb7,0x93ecc)),_0x566458[_0x9b5b02([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9b5b02([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2916c5=>{let _0xf71bf9=0x0;_0x20454e[_0x9b5b02([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b5b02([0x6f,0x6e])](_0x9b5b02([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2ad522,_0x48112e)=>{_0x48112e[0x0][_0x9b5b02([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf71bf9++,0x1f8==_0xf71bf9&&(_0x2916c5(),_0x2ad522[_0x9b5b02([0x6f,0x66,0x66])]());});}))];return window[_0x9b5b02([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9b5b02([0x72,0x61,0x63,0x65])](_0x17116f)[_0x9b5b02([0x74,0x68,0x65,0x6e])](()=>_0x3a35df);}function _0xb52f76(_0x3d94b0){return _0x3d94b0[_0x9b5b02([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9b5b02([0x65,0x79]))?JSON[_0x9b5b02([0x70,0x61,0x72,0x73,0x65])](_0xf96ebc(_0x3d94b0)):null;}function _0xf96ebc(_0x41689c){return window[_0x9b5b02([0x61,0x74,0x6f,0x62])](_0x41689c[_0x9b5b02([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9b5b02([0x2b]))[_0x9b5b02([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9b5b02([0x2f])));}function _0x5649a4(_0x8c6e5){let _0x2b1c45=0x1505;function _0x3fbfa8(_0x4f4ac6){for(let _0x5f4714=0x0;_0x5f4714<_0x4f4ac6[_0x9b5b02([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f4714++){const _0x5dc50c=_0x4f4ac6[_0x9b5b02([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5f4714);_0x2b1c45=(_0x2b1c45<<0x5)+_0x2b1c45+_0x5dc50c,_0x2b1c45&=_0x2b1c45;}}return function _0x35cdad(_0x2b2034){Array[_0x9b5b02([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b2034)?_0x2b2034[_0x9b5b02([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35cdad):_0x2b2034&&typeof _0x2b2034==_0x9b5b02([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9b5b02([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b2034)[_0x9b5b02([0x73,0x6f,0x72,0x74])]()[_0x9b5b02([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2df0ab,_0x3e388e])=>{_0x3fbfa8(_0x2df0ab),_0x35cdad(_0x3e388e);}):_0x3fbfa8(window[_0x9b5b02([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b2034));}(_0x8c6e5),_0x2b1c45>>>0x0;}function _0x2a200a(_0x523e2e){return _0x523e2e[_0x9b5b02([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9b5b02([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9b5b02([0x30]));}function _0x51bf61(_0x48e92f){return _0x48e92f[_0x9b5b02([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9b5b02([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9b5b02([0x6a,0x6f,0x69,0x6e])]('');}function _0xe1276e(){}function _0x9b5b02(_0x545a76){return _0x545a76['map'](_0x472db7=>String['fromCharCode'](_0x472db7))['join']('');}!function(_0x277002){const _0x1a0a82=(function(){const _0x25cf05=window[_0x9b5b02([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9b5b02([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9b5b02([0x6e,0x6f,0x77])]())[_0x9b5b02([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9b5b02([0x2e]),'');let _0x3c863b=_0x9b5b02([0x52]);for(let _0xa2e21c=0x0;_0xa2e21c<_0x25cf05[_0x9b5b02([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa2e21c+=0x2){let _0xc957ec=window[_0x9b5b02([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25cf05[_0x9b5b02([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa2e21c,_0xa2e21c+0x2));_0xc957ec>=_0x3877c7[_0x9b5b02([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xc957ec-=_0x3877c7[_0x9b5b02([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c863b+=_0x3877c7[_0xc957ec];}return _0x3c863b;}());_0x20454e[_0x1a0a82]=_0x9b5b02([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x277002,_0x277002!=_0x9b5b02([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x566458,_0x20454e[_0x9b5b02([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b5b02([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe1276e,_0x20454e[_0x9b5b02([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b5b02([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe1276e,_0x20454e[_0x9b5b02([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9b5b02([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x50a025);}var __defProp=Object['defineProperty'],__defNormalProp=(_0x90b10,_0x8fa571,_0x462dea)=>_0x8fa571 in _0x90b10?__defProp(_0x90b10,_0x8fa571,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x462dea}):_0x90b10[_0x8fa571]=_0x462dea,__publicField=(_0x3a15a1,_0x48fa62,_0x5c634f)=>(__defNormalProp(_0x3a15a1,'symbol'!=typeof _0x48fa62?_0x48fa62+'':_0x48fa62,_0x5c634f),_0x5c634f);function cloneObj(_0x5ef430){let _0x2605c5=_0x13a027=>{var _0x151856;for(let _0x5f22a4 in _0x13a027)(null==(_0x151856=_0x13a027[_0x5f22a4])?void 0x0:_0x151856['constructor'])===Object&&(_0x13a027[_0x5f22a4]=_0x2605c5(_0x13a027[_0x5f22a4]));return{..._0x13a027};};return _0x2605c5(_0x5ef430);}var Data=class{constructor(_0x4b8fd5){_0x4b8fd5['constructor']===Object?this['store']=cloneObj(_0x4b8fd5):(this['_storeIsProxy']=!0x0,this['store']=_0x4b8fd5),this['callbackMap']=Object['create'](null);}static['warn'](_0xa89bc7,_0x51d4ad){console['warn']('Symbiote\x20Data:\x20cannot\x20'+_0xa89bc7+'.\x20Prop\x20name:\x20'+_0x51d4ad);}['read'](_0x535b22){return this['_storeIsProxy']||this['store']['hasOwnProperty'](_0x535b22)?this['store'][_0x535b22]:(Data['warn']('read',_0x535b22),null);}['has'](_0x59876e){return this['_storeIsProxy']?void 0x0!==this['store'][_0x59876e]:this['store']['hasOwnProperty'](_0x59876e);}['add'](_0x446611,_0x4e5bee,_0x3e25cb=!0x1){!_0x3e25cb&&Object['keys'](this['store'])['includes'](_0x446611)||(this['store'][_0x446611]=_0x4e5bee,this['notify'](_0x446611));}['pub'](_0x5bbd49,_0x5a92be){this['_storeIsProxy']||this['store']['hasOwnProperty'](_0x5bbd49)?(this['store'][_0x5bbd49]=_0x5a92be,this['notify'](_0x5bbd49)):Data['warn']('publish',_0x5bbd49);}['multiPub'](_0x21094f){for(let _0x316d8e in _0x21094f)this['pub'](_0x316d8e,_0x21094f[_0x316d8e]);}['notify'](_0x45055c){this['callbackMap'][_0x45055c]&&this['callbackMap'][_0x45055c]['forEach'](_0x713a6b=>{_0x713a6b(this['store'][_0x45055c]);});}['sub'](_0x4c3bb8,_0x22821a,_0x1c45b2=!0x0){return this['_storeIsProxy']||this['store']['hasOwnProperty'](_0x4c3bb8)?(this['callbackMap'][_0x4c3bb8]||(this['callbackMap'][_0x4c3bb8]=new Set()),this['callbackMap'][_0x4c3bb8]['add'](_0x22821a),_0x1c45b2&&_0x22821a(this['store'][_0x4c3bb8]),{'remove':()=>{this['callbackMap'][_0x4c3bb8]['delete'](_0x22821a),this['callbackMap'][_0x4c3bb8]['size']||delete this['callbackMap'][_0x4c3bb8];},'callback':_0x22821a}):(Data['warn']('subscribe',_0x4c3bb8),null);}static['registerCtx'](_0x158421,_0x3d9cc6=Symbol()){let _0x496689=Data['globalStore']['get'](_0x3d9cc6);return _0x496689?console['warn']('State:\x20context\x20UID\x20\x22'+_0x3d9cc6+'\x22\x20already\x20in\x20use'):(_0x496689=new Data(_0x158421),Data['globalStore']['set'](_0x3d9cc6,_0x496689)),_0x496689;}static['deleteCtx'](_0xbb3745){Data['globalStore']['delete'](_0xbb3745);}static['getCtx'](_0x581a83,_0x13ac90=!0x0){return Data['globalStore']['get'](_0x581a83)||(_0x13ac90&&console['warn']('State:\x20wrong\x20context\x20UID\x20-\x20\x22'+_0x581a83+'\x22'),null);}};Data['globalStore']=new Map();var DICT=Object['freeze']({'BIND_ATTR':'set','ATTR_BIND_PRFX':'@','EXT_DATA_CTX_PRFX':'*','NAMED_DATA_CTX_SPLTR':'/','CTX_NAME_ATTR':'ctx-name','CTX_OWNER_ATTR':'ctx-owner','CSS_CTX_PROP':'--ctx-name','EL_REF_ATTR':'ref','AUTO_TAG_PRFX':'sym','REPEAT_ATTR':'repeat','REPEAT_ITEM_TAG_ATTR':'repeat-item-tag','SET_LATER_KEY':'__toSetLater__','USE_TPL':'use-template','ROOT_STYLE_ATTR_NAME':'sym-component'}),CHARS='1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm',CHLENGTH=CHARS['length']-0x1,UID=class{static['generate'](_0x5533ca='XXXXXXXXX-XXX'){let _0x181c2e='';for(let _0xe288c7=0x0;_0xe288c7<_0x5533ca['length'];_0xe288c7++)_0x181c2e+='-'===_0x5533ca[_0xe288c7]?_0x5533ca[_0xe288c7]:CHARS['charAt'](Math['random']()*CHLENGTH);return _0x181c2e;}};function setNestedProp(_0x4017aa,_0x20ed05,_0x5efc48){let _0x52c9f7,_0x234e0e=!0x0,_0x255ddf=_0x20ed05['split']('.');return _0x255ddf['forEach']((_0x42f425,_0x293d12)=>{_0x293d12<_0x255ddf['length']-0x1?_0x4017aa=_0x4017aa[_0x42f425]:_0x52c9f7=_0x42f425;}),_0x4017aa?_0x4017aa[_0x52c9f7]=_0x5efc48:_0x234e0e=!0x1,_0x234e0e;}function kebabToCamel(_0x5b058c){return _0x5b058c['split']('-')['map']((_0xb7d325,_0x2db446)=>_0xb7d325&&_0x2db446?_0xb7d325[0x0]['toUpperCase']()+_0xb7d325['slice'](0x1):_0xb7d325)['join']('')['split']('_')['map']((_0x13fd9f,_0x3b3301)=>_0x13fd9f&&_0x3b3301?_0x13fd9f['toUpperCase']():_0x13fd9f)['join']('');}function repeatProcessor(_0x5a943e,_0x1509da){[..._0x5a943e['querySelectorAll']('['+DICT['REPEAT_ATTR']+']')]['forEach'](_0x2b93cd=>{let _0xa8ad97,_0x3d13be=_0x2b93cd['getAttribute'](DICT['REPEAT_ITEM_TAG_ATTR']);if(_0x3d13be&&(_0xa8ad97=window['customElements']['get'](_0x3d13be)),!_0xa8ad97){_0xa8ad97=class extends _0x1509da['BaseComponent']{constructor(){super(),_0x3d13be||(this['style']['display']='contents');}};let _0x30a759=_0x2b93cd['innerHTML'];_0xa8ad97['template']=_0x30a759,_0xa8ad97['reg'](_0x3d13be);}for(;_0x2b93cd['firstChild'];)_0x2b93cd['firstChild']['remove']();let _0x43eb4b=_0x2b93cd['getAttribute'](DICT['REPEAT_ATTR']);_0x1509da['sub'](_0x43eb4b,_0x3b1b79=>{if(!_0x3b1b79){for(;_0x2b93cd['firstChild'];)_0x2b93cd['firstChild']['remove']();return;}let _0x2d45b3,_0x43b391=[..._0x2b93cd['children']],_0x174868=_0x2488e4=>{_0x2488e4['forEach']((_0x36418b,_0x3bbde5)=>{if(_0x43b391[_0x3bbde5]){if(_0x43b391[_0x3bbde5]['set$'])setTimeout(()=>{_0x43b391[_0x3bbde5]['set$'](_0x36418b);});else{for(let _0x549590 in _0x36418b)_0x43b391[_0x3bbde5][_0x549590]=_0x36418b[_0x549590];}}else{_0x2d45b3||(_0x2d45b3=new DocumentFragment());let _0x33b366=new _0xa8ad97();Object['assign'](_0x33b366['init$'],_0x36418b),_0x2d45b3['appendChild'](_0x33b366);}}),_0x2d45b3&&_0x2b93cd['appendChild'](_0x2d45b3);let _0x481ead=_0x43b391['slice'](_0x2488e4['length'],_0x43b391['length']);for(let _0x5cefd8 of _0x481ead)_0x5cefd8['remove']();};if(_0x3b1b79['constructor']===Array)_0x174868(_0x3b1b79);else{if(_0x3b1b79['constructor']===Object){let _0x1308f5=[];for(let _0x20d463 in _0x3b1b79){let _0x4c58ff=_0x3b1b79[_0x20d463];Object['defineProperty'](_0x4c58ff,'_KEY_',{'value':_0x20d463,'enumerable':!0x0}),_0x1308f5['push'](_0x4c58ff);}_0x174868(_0x1308f5);}else console['warn']('Symbiote\x20repeat\x20data\x20type\x20error:'),console['log'](_0x3b1b79);}}),_0x2b93cd['removeAttribute'](DICT['REPEAT_ATTR']),_0x2b93cd['removeAttribute'](DICT['REPEAT_ITEM_TAG_ATTR']);});}var DEFAULT_SLOT_KEY='__default__';function slotProcessor(_0x27cbb9,_0x565107){if(_0x565107['shadowRoot'])return;let _0x27288a=[..._0x27cbb9['querySelectorAll']('slot')];if(!_0x27288a['length'])return;let _0xde61de={};_0x27288a['forEach'](_0x4d8295=>{let _0x2f004d=_0x4d8295['getAttribute']('name')||DEFAULT_SLOT_KEY;_0xde61de[_0x2f004d]={'slot':_0x4d8295,'fr':document['createDocumentFragment']()};}),_0x565107['initChildren']['forEach'](_0x3b934e=>{var _0x5c200e;let _0x154185=DEFAULT_SLOT_KEY;_0x3b934e instanceof Element&&_0x3b934e['hasAttribute']('slot')&&(_0x154185=_0x3b934e['getAttribute']('slot'),_0x3b934e['removeAttribute']('slot')),null==(_0x5c200e=_0xde61de[_0x154185])||_0x5c200e['fr']['appendChild'](_0x3b934e);}),Object['values'](_0xde61de)['forEach'](_0x450833=>{if(_0x450833['fr']['childNodes']['length'])_0x450833['slot']['parentNode']['replaceChild'](_0x450833['fr'],_0x450833['slot']);else{if(_0x450833['slot']['childNodes']['length']){let _0x4021f9=document['createDocumentFragment']();_0x4021f9['append'](..._0x450833['slot']['childNodes']),_0x450833['slot']['parentNode']['replaceChild'](_0x4021f9,_0x450833['slot']);}else _0x450833['slot']['remove']();}});}function refProcessor(_0x4ea299,_0x3b545b){[..._0x4ea299['querySelectorAll']('['+DICT['EL_REF_ATTR']+']')]['forEach'](_0x49e6d3=>{let _0x32fef3=_0x49e6d3['getAttribute'](DICT['EL_REF_ATTR']);_0x3b545b['ref'][_0x32fef3]=_0x49e6d3,_0x49e6d3['removeAttribute'](DICT['EL_REF_ATTR']);});}function domSetProcessor(_0x737119,_0x3d609d){[..._0x737119['querySelectorAll']('['+DICT['BIND_ATTR']+']')]['forEach'](_0x41bcbf=>{let _0x39bcbf=_0x41bcbf['getAttribute'](DICT['BIND_ATTR'])['split'](';');[..._0x41bcbf['attributes']]['forEach'](_0x288fac=>{if(_0x288fac['name']['startsWith']('-')&&_0x288fac['value']){let _0x51d0f3=kebabToCamel(_0x288fac['name']['replace']('-',''));_0x39bcbf['push'](_0x51d0f3+':'+_0x288fac['value']),_0x41bcbf['removeAttribute'](_0x288fac['name']);}}),_0x39bcbf['forEach'](_0x2803ee=>{if(!_0x2803ee)return;let _0x11c644,_0x132fea=_0x2803ee['split'](':')['map'](_0x260feb=>_0x260feb['trim']()),_0x58c8a3=_0x132fea[0x0];0x0===_0x58c8a3['indexOf'](DICT['ATTR_BIND_PRFX'])&&(_0x11c644=!0x0,_0x58c8a3=_0x58c8a3['replace'](DICT['ATTR_BIND_PRFX'],''));let _0x4231ea=_0x132fea[0x1]['split'](',')['map'](_0x57520c=>_0x57520c['trim']());for(let _0x38c14b of _0x4231ea){let _0x5d0ad9;_0x38c14b['startsWith']('!!')?(_0x5d0ad9='double',_0x38c14b=_0x38c14b['replace']('!!','')):_0x38c14b['startsWith']('!')&&(_0x5d0ad9='single',_0x38c14b=_0x38c14b['replace']('!','')),_0x3d609d['sub'](_0x38c14b,_0x4e5e09=>{'double'===_0x5d0ad9?_0x4e5e09=!!_0x4e5e09:'single'===_0x5d0ad9&&(_0x4e5e09=!_0x4e5e09),_0x11c644?(null==_0x4e5e09?void 0x0:_0x4e5e09['constructor'])===Boolean?_0x4e5e09?_0x41bcbf['setAttribute'](_0x58c8a3,''):_0x41bcbf['removeAttribute'](_0x58c8a3):_0x41bcbf['setAttribute'](_0x58c8a3,_0x4e5e09):setNestedProp(_0x41bcbf,_0x58c8a3,_0x4e5e09)||(_0x41bcbf[DICT['SET_LATER_KEY']]||(_0x41bcbf[DICT['SET_LATER_KEY']]=Object['create'](null)),_0x41bcbf[DICT['SET_LATER_KEY']][_0x58c8a3]=_0x4e5e09);});}}),_0x41bcbf['removeAttribute'](DICT['BIND_ATTR']);});}var OPEN_TOKEN$1='{{',CLOSE_TOKEN$1='}}',SKIP_ATTR='skip-text';function getTextNodesWithTokens(_0x2235a7){let _0x4b0ed8,_0x244800=[],_0x1219a8=document['createTreeWalker'](_0x2235a7,NodeFilter['SHOW_TEXT'],{'acceptNode':_0x4760ad=>{var _0x11d3b9;return!(null==(_0x11d3b9=_0x4760ad['parentElement'])?void 0x0:_0x11d3b9['hasAttribute'](SKIP_ATTR))&&_0x4760ad['textContent']['includes'](OPEN_TOKEN$1)&&_0x4760ad['textContent']['includes'](CLOSE_TOKEN$1)&&0x1;}});for(;_0x4b0ed8=_0x1219a8['nextNode']();)_0x244800['push'](_0x4b0ed8);return _0x244800;}var txtNodesProcessor=function(_0x874c6,_0xdd1b91){getTextNodesWithTokens(_0x874c6)['forEach'](_0x224c43=>{let _0x3a8168,_0x501e83=[];for(;_0x224c43['textContent']['includes'](CLOSE_TOKEN$1);)_0x224c43['textContent']['startsWith'](OPEN_TOKEN$1)?(_0x3a8168=_0x224c43['textContent']['indexOf'](CLOSE_TOKEN$1)+CLOSE_TOKEN$1['length'],_0x224c43['splitText'](_0x3a8168),_0x501e83['push'](_0x224c43)):(_0x3a8168=_0x224c43['textContent']['indexOf'](OPEN_TOKEN$1),_0x224c43['splitText'](_0x3a8168)),_0x224c43=_0x224c43['nextSibling'];_0x501e83['forEach'](_0x1289a6=>{let _0xb2bc4f=_0x1289a6['textContent']['replace'](OPEN_TOKEN$1,'')['replace'](CLOSE_TOKEN$1,'');_0x1289a6['textContent']='',_0xdd1b91['sub'](_0xb2bc4f,_0x574064=>{_0x1289a6['textContent']=_0x574064;});});});},tpl_processors_default=[repeatProcessor,slotProcessor,refProcessor,domSetProcessor,txtNodesProcessor],SINGLE_QUOTE='\x27',DOUBLE_QUOTE='\x22',ESCAPED_PATTERN=/\\([0-9a-fA-F]{1,6} ?)/g;function hasLeadingTrailingQuotes(_0x4258ae){return!(_0x4258ae[0x0]!==DOUBLE_QUOTE&&_0x4258ae[0x0]!==SINGLE_QUOTE||_0x4258ae[_0x4258ae['length']-0x1]!==DOUBLE_QUOTE&&_0x4258ae[_0x4258ae['length']-0x1]!==SINGLE_QUOTE);}function trimQuotes(_0x311b87){return _0x311b87[0x0]!==DOUBLE_QUOTE&&_0x311b87[0x0]!==SINGLE_QUOTE||(_0x311b87=_0x311b87['slice'](0x1)),_0x311b87[_0x311b87['length']-0x1]!==DOUBLE_QUOTE&&_0x311b87[_0x311b87['length']-0x1]!==SINGLE_QUOTE||(_0x311b87=_0x311b87['slice'](0x0,-0x1)),_0x311b87;}function escapeQuotes(_0x4383a5){let _0x49f075='',_0x5ddf61='';for(var _0x5f3cff=0x0;_0x5f3cff<_0x4383a5['length'];_0x5f3cff++){const _0x1712c1=_0x4383a5[_0x5f3cff+0x1];'\x5c'===_0x4383a5[_0x5f3cff]&&'\x22'===_0x1712c1?(_0x49f075+='\x5c\x22',_0x5f3cff++):'\x22'===_0x4383a5[_0x5f3cff]&&'\x5c'!==_0x5ddf61?_0x49f075+='\x5c\x22':_0x49f075+=_0x4383a5[_0x5f3cff],_0x5ddf61=_0x4383a5[_0x5f3cff];}return _0x49f075;}function parseCssPropertyValue(_0x3d0666){let _0x13a0b7=_0x3d0666;hasLeadingTrailingQuotes(_0x3d0666)&&(_0x13a0b7=trimQuotes(_0x13a0b7),_0x13a0b7=_0x13a0b7['replace'](ESCAPED_PATTERN,(_0x1f176e,_0x19cb96)=>String['fromCodePoint'](parseInt(_0x19cb96['trim'](),0x10))),_0x13a0b7=_0x13a0b7['replaceAll']('\x5c\x0a','\x5cn'),_0x13a0b7=escapeQuotes(_0x13a0b7),_0x13a0b7=DOUBLE_QUOTE+_0x13a0b7+DOUBLE_QUOTE);try{return JSON['parse'](_0x13a0b7);}catch(_0x1db3cf){throw new Error('Failed\x20to\x20parse\x20CSS\x20property\x20value:\x20'+_0x13a0b7+'.\x20Original\x20input:\x20'+_0x3d0666);}}var autoTagsCount=0x0,styleMutationObserver=null,styleMutationObserverCbList=null,_BaseComponent=class extends HTMLElement{constructor(){super(),__publicField(this,'updateCssData',()=>{var _0x5dea48;this['dropCssDataCache'](),null==(_0x5dea48=this['__boundCssProps'])||_0x5dea48['forEach'](_0x41f83e=>{let _0x57414e=this['getCssData'](this['__extractCssName'](_0x41f83e),!0x0);null!==_0x57414e&&this['$'][_0x41f83e]!==_0x57414e&&(this['$'][_0x41f83e]=_0x57414e);});}),this['init$']=Object['create'](null),this['cssInit$']=Object['create'](null),this['tplProcessors']=new Set(),this['ref']=Object['create'](null),this['allSubs']=new Set(),this['pauseRender']=!0x1,this['renderShadow']=!0x1,this['readyToDestroy']=!0x0,this['processInnerHtml']=!0x1,this['allowCustomTemplate']=!0x1,this['ctxOwner']=!0x1;}get['BaseComponent'](){return _BaseComponent;}['initCallback'](){}['__initCallback'](){var _0x531047;this['__initialized']||(this['__initialized']=!0x0,null==(_0x531047=this['initCallback'])||_0x531047['call'](this));}['render'](_0x9408e9,_0x13a43f=this['renderShadow']){let _0x54ec7;if(!_0x13a43f&&!this['constructor']['__shadowStylesUrl']||this['shadowRoot']||this['attachShadow']({'mode':'open'}),this['allowCustomTemplate']){let _0x425e13=this['getAttribute'](DICT['USE_TPL']);if(_0x425e13){let _0x2eba08=this['getRootNode'](),_0x3635a0=(null==_0x2eba08?void 0x0:_0x2eba08['querySelector'](_0x425e13))||document['querySelector'](_0x425e13);_0x3635a0?_0x9408e9=_0x3635a0['content']['cloneNode'](!0x0):console['warn']('Symbiote\x20template\x20\x22'+_0x425e13+'\x22\x20is\x20not\x20found...');}}if(this['processInnerHtml']){for(let _0x426311 of this['tplProcessors'])_0x426311(this,this);}if(_0x9408e9||this['constructor']['template']){if(this['constructor']['template']&&!this['constructor']['__tpl']&&(this['constructor']['__tpl']=document['createElement']('template'),this['constructor']['__tpl']['innerHTML']=this['constructor']['template']),(null==_0x9408e9?void 0x0:_0x9408e9['constructor'])===DocumentFragment)_0x54ec7=_0x9408e9;else{if((null==_0x9408e9?void 0x0:_0x9408e9['constructor'])===String){let _0x26b92b=document['createElement']('template');_0x26b92b['innerHTML']=_0x9408e9,_0x54ec7=_0x26b92b['content']['cloneNode'](!0x0);}else this['constructor']['__tpl']&&(_0x54ec7=this['constructor']['__tpl']['content']['cloneNode'](!0x0));}for(let _0x4a6a9b of this['tplProcessors'])_0x4a6a9b(_0x54ec7,this);}let _0x2f5fd7=()=>{_0x54ec7&&(_0x13a43f&&this['shadowRoot']['appendChild'](_0x54ec7)||this['appendChild'](_0x54ec7)),this['__initCallback']();};if(this['constructor']['__shadowStylesUrl']){_0x13a43f=!0x0;let _0x57d731=document['createElement']('link');_0x57d731['rel']='stylesheet',_0x57d731['href']=this['constructor']['__shadowStylesUrl'],_0x57d731['onload']=_0x2f5fd7,this['shadowRoot']['prepend'](_0x57d731);}else _0x2f5fd7();}['addTemplateProcessor'](_0x3671ef){this['tplProcessors']['add'](_0x3671ef);}get['autoCtxName'](){return this['__autoCtxName']||(this['__autoCtxName']=UID['generate'](),this['style']['setProperty'](DICT['CSS_CTX_PROP'],'\x27'+this['__autoCtxName']+'\x27')),this['__autoCtxName'];}get['cssCtxName'](){return this['getCssData'](DICT['CSS_CTX_PROP'],!0x0);}get['ctxName'](){var _0xa08d1b;let _0x2d5ecd=(null==(_0xa08d1b=this['getAttribute'](DICT['CTX_NAME_ATTR']))?void 0x0:_0xa08d1b['trim']())||this['cssCtxName']||this['__cachedCtxName']||this['autoCtxName'];return this['__cachedCtxName']=_0x2d5ecd,_0x2d5ecd;}get['localCtx'](){return this['__localCtx']||(this['__localCtx']=Data['registerCtx']({},this)),this['__localCtx'];}get['nodeCtx'](){return Data['getCtx'](this['ctxName'],!0x1)||Data['registerCtx']({},this['ctxName']);}static['__parseProp'](_0x4b17ae,_0x51c89b){let _0x230b22,_0x54b6fd;if(_0x4b17ae['startsWith'](DICT['EXT_DATA_CTX_PRFX']))_0x230b22=_0x51c89b['nodeCtx'],_0x54b6fd=_0x4b17ae['replace'](DICT['EXT_DATA_CTX_PRFX'],'');else{if(_0x4b17ae['includes'](DICT['NAMED_DATA_CTX_SPLTR'])){let _0x27586a=_0x4b17ae['split'](DICT['NAMED_DATA_CTX_SPLTR']);_0x230b22=Data['getCtx'](_0x27586a[0x0]),_0x54b6fd=_0x27586a[0x1];}else _0x230b22=_0x51c89b['localCtx'],_0x54b6fd=_0x4b17ae;}return{'ctx':_0x230b22,'name':_0x54b6fd};}['sub'](_0x112243,_0x1e2584,_0x262135=!0x0){let _0x5037e6=_0x472a13=>{this['isConnected']&&_0x1e2584(_0x472a13);},_0x3951d9=_BaseComponent['__parseProp'](_0x112243,this);_0x3951d9['ctx']['has'](_0x3951d9['name'])?this['allSubs']['add'](_0x3951d9['ctx']['sub'](_0x3951d9['name'],_0x5037e6,_0x262135)):window['setTimeout'](()=>{this['allSubs']['add'](_0x3951d9['ctx']['sub'](_0x3951d9['name'],_0x5037e6,_0x262135));});}['notify'](_0x36c894){let _0xe4980a=_BaseComponent['__parseProp'](_0x36c894,this);_0xe4980a['ctx']['notify'](_0xe4980a['name']);}['has'](_0x3b189e){let _0x41f2de=_BaseComponent['__parseProp'](_0x3b189e,this);return _0x41f2de['ctx']['has'](_0x41f2de['name']);}['add'](_0x1c3d6d,_0x2bbc25,_0x4119d9=!0x1){let _0x2a8e33=_BaseComponent['__parseProp'](_0x1c3d6d,this);_0x2a8e33['ctx']['add'](_0x2a8e33['name'],_0x2bbc25,_0x4119d9);}['add$'](_0x3042c8,_0x39a89c=!0x1){for(let _0x40924e in _0x3042c8)this['add'](_0x40924e,_0x3042c8[_0x40924e],_0x39a89c);}get['$'](){if(!this['__stateProxy']){let _0x396012=Object['create'](null);this['__stateProxy']=new Proxy(_0x396012,{'set':(_0x410c28,_0xfb0342,_0xcb47c)=>{let _0x132485=_BaseComponent['__parseProp'](_0xfb0342,this);return _0x132485['ctx']['pub'](_0x132485['name'],_0xcb47c),!0x0;},'get':(_0x13d17d,_0x4d680d)=>{let _0x322945=_BaseComponent['__parseProp'](_0x4d680d,this);return _0x322945['ctx']['read'](_0x322945['name']);}});}return this['__stateProxy'];}['set$'](_0x161701,_0x3ad0be=!0x1){for(let _0x2d9cd5 in _0x161701){let _0x5df1b1=_0x161701[_0x2d9cd5],_0x5a95ca=[String,Number,Boolean];(_0x3ad0be||!_0x5a95ca['includes'](null==_0x5df1b1?void 0x0:_0x5df1b1['constructor'])||this['$'][_0x2d9cd5]!==_0x5df1b1)&&(this['$'][_0x2d9cd5]=_0x5df1b1);}}get['__ctxOwner'](){return this['ctxOwner']||this['hasAttribute'](DICT['CTX_OWNER_ATTR'])&&'false'!==this['getAttribute'](DICT['CTX_OWNER_ATTR']);}['__initDataCtx'](){let _0x12b293=this['constructor']['__attrDesc'];if(_0x12b293){for(let _0x2ff2c4 of Object['values'](_0x12b293))Object['keys'](this['init$'])['includes'](_0x2ff2c4)||(this['init$'][_0x2ff2c4]='');}for(let _0x364bf1 in this['init$'])if(_0x364bf1['startsWith'](DICT['EXT_DATA_CTX_PRFX']))this['nodeCtx']['add'](_0x364bf1['replace'](DICT['EXT_DATA_CTX_PRFX'],''),this['init$'][_0x364bf1],this['__ctxOwner']);else{if(_0x364bf1['includes'](DICT['NAMED_DATA_CTX_SPLTR'])){let _0x367e14=_0x364bf1['split'](DICT['NAMED_DATA_CTX_SPLTR']),_0x202491=_0x367e14[0x0]['trim'](),_0x19b3a6=_0x367e14[0x1]['trim']();if(_0x202491&&_0x19b3a6){let _0x4243d4=Data['getCtx'](_0x202491,!0x1);_0x4243d4||(_0x4243d4=Data['registerCtx']({},_0x202491)),_0x4243d4['add'](_0x19b3a6,this['init$'][_0x364bf1]);}}else this['localCtx']['add'](_0x364bf1,this['init$'][_0x364bf1]);}for(let _0x1b728c in this['cssInit$'])this['bindCssData'](_0x1b728c,this['cssInit$'][_0x1b728c]);this['__dataCtxInitialized']=!0x0;}['connectedCallback'](){var _0x272afd;if(this['isConnected']){if(this['__disconnectTimeout']&&window['clearTimeout'](this['__disconnectTimeout']),!this['connectedOnce']){let _0x34d580=null==(_0x272afd=this['getAttribute'](DICT['CTX_NAME_ATTR']))?void 0x0:_0x272afd['trim']();if(_0x34d580&&this['style']['setProperty'](DICT['CSS_CTX_PROP'],'\x27'+_0x34d580+'\x27'),this['__initDataCtx'](),this[DICT['SET_LATER_KEY']]){for(let _0x3aa650 in this[DICT['SET_LATER_KEY']])setNestedProp(this,_0x3aa650,this[DICT['SET_LATER_KEY']][_0x3aa650]);delete this[DICT['SET_LATER_KEY']];}this['initChildren']=[...this['childNodes']];for(let _0x41d59d of tpl_processors_default)this['addTemplateProcessor'](_0x41d59d);if(this['pauseRender'])this['__initCallback']();else{if(this['constructor']['__rootStylesLink']){let _0x2429d9=this['getRootNode']();if(!_0x2429d9)return;if(null==_0x2429d9?void 0x0:_0x2429d9['querySelector']('link['+DICT['ROOT_STYLE_ATTR_NAME']+'=\x22'+this['constructor']['is']+'\x22]'))return void this['render']();let _0x56c980=this['constructor']['__rootStylesLink']['cloneNode'](!0x0);_0x56c980['setAttribute'](DICT['ROOT_STYLE_ATTR_NAME'],this['constructor']['is']),_0x56c980['onload']=()=>{this['render']();},_0x2429d9['nodeType']===Node['DOCUMENT_NODE']?_0x2429d9['head']['appendChild'](_0x56c980):_0x2429d9['prepend'](_0x56c980);}else this['render']();}}this['connectedOnce']=!0x0;}}['destroyCallback'](){}['disconnectedCallback'](){this['connectedOnce']&&(this['dropCssDataCache'](),this['readyToDestroy']&&(this['__disconnectTimeout']&&window['clearTimeout'](this['__disconnectTimeout']),this['__disconnectTimeout']=window['setTimeout'](()=>{this['destroyCallback']();for(let _0x4b7dad of this['allSubs'])_0x4b7dad['remove'](),this['allSubs']['delete'](_0x4b7dad);for(let _0x11de47 of this['tplProcessors'])this['tplProcessors']['delete'](_0x11de47);null==styleMutationObserverCbList||styleMutationObserverCbList['delete'](this['updateCssData']),(null==styleMutationObserverCbList?void 0x0:styleMutationObserverCbList['size'])||(null==styleMutationObserver||styleMutationObserver['disconnect'](),styleMutationObserver=null,styleMutationObserverCbList=null);},0x64)));}static['reg'](_0x8ecc38,_0x211225=!0x1){_0x8ecc38||(autoTagsCount++,_0x8ecc38=DICT['AUTO_TAG_PRFX']+'-'+autoTagsCount),this['__tag']=_0x8ecc38;let _0x5a5a7b=window['customElements']['get'](_0x8ecc38);_0x5a5a7b?_0x211225||_0x5a5a7b===this||console['warn'](['Element\x20with\x20tag\x20name\x20\x22'+_0x8ecc38+'\x22\x20already\x20registered.','You\x27re\x20trying\x20to\x20override\x20it\x20with\x20another\x20class\x20\x22'+this['name']+'\x22.','This\x20is\x20most\x20likely\x20a\x20mistake.','New\x20element\x20will\x20not\x20be\x20registered.']['join']('\x0a')):window['customElements']['define'](_0x8ecc38,_0x211225?class extends this{}:this);}static get['is'](){return this['__tag']||this['reg'](),this['__tag'];}static['bindAttributes'](_0x359e5a){this['observedAttributes']=Object['keys'](_0x359e5a),this['__attrDesc']=_0x359e5a;}['attributeChangedCallback'](_0x7a3d69,_0x1f284d,_0x53d2dd){var _0x5a73b6;if(_0x1f284d===_0x53d2dd)return;let _0x252f07=null==(_0x5a73b6=this['constructor']['__attrDesc'])?void 0x0:_0x5a73b6[_0x7a3d69];_0x252f07?this['__dataCtxInitialized']?this['$'][_0x252f07]=_0x53d2dd:this['init$'][_0x252f07]=_0x53d2dd:this[_0x7a3d69]=_0x53d2dd;}['getCssData'](_0x56a6f2,_0xe10674=!0x1){if(this['__cssDataCache']||(this['__cssDataCache']=Object['create'](null)),!Object['keys'](this['__cssDataCache'])['includes'](_0x56a6f2)){this['__computedStyle']||(this['__computedStyle']=window['getComputedStyle'](this));let _0x415ba5=this['__computedStyle']['getPropertyValue'](_0x56a6f2)['trim']();try{this['__cssDataCache'][_0x56a6f2]=parseCssPropertyValue(_0x415ba5);}catch(_0x526489){!_0xe10674&&console['warn']('CSS\x20Data\x20error:\x20'+_0x56a6f2),this['__cssDataCache'][_0x56a6f2]=null;}}return this['__cssDataCache'][_0x56a6f2];}['__extractCssName'](_0x2d42fe){return _0x2d42fe['split']('--')['map']((_0x22c029,_0x567b0a)=>0x0===_0x567b0a?'':_0x22c029)['join']('--');}['__initStyleAttrObserver'](){styleMutationObserverCbList||(styleMutationObserverCbList=new Set()),styleMutationObserverCbList['add'](this['updateCssData']),styleMutationObserver||(styleMutationObserver=new MutationObserver(_0x3bcf84=>{'attributes'===_0x3bcf84[0x0]['type']&&styleMutationObserverCbList['forEach'](_0x2d0ce3=>{_0x2d0ce3();});}))['observe'](document,{'childList':!0x0,'subtree':!0x0,'attributes':!0x0,'attributeFilter':['style']});}['bindCssData'](_0x4fb11c,_0x192718=''){this['__boundCssProps']||(this['__boundCssProps']=new Set()),this['__boundCssProps']['add'](_0x4fb11c);let _0x236ec7=this['getCssData'](this['__extractCssName'](_0x4fb11c),!0x0);null===_0x236ec7&&(_0x236ec7=_0x192718),this['add'](_0x4fb11c,_0x236ec7),this['__initStyleAttrObserver']();}['dropCssDataCache'](){this['__cssDataCache']=null,this['__computedStyle']=null;}['defineAccessor'](_0x28d065,_0x118f5b,_0x2a6eec){let _0x4bfcc9='__'+_0x28d065;this[_0x4bfcc9]=this[_0x28d065],Object['defineProperty'](this,_0x28d065,{'set':_0x33a548=>{this[_0x4bfcc9]=_0x33a548,_0x2a6eec?window['setTimeout'](()=>{null==_0x118f5b||_0x118f5b(_0x33a548);}):null==_0x118f5b||_0x118f5b(_0x33a548);},'get':()=>this[_0x4bfcc9]}),this[_0x28d065]=this[_0x4bfcc9];}static set['shadowStyles'](_0x3ea5cf){let _0x3e0198=new Blob([_0x3ea5cf],{'type':'text/css'});this['__shadowStylesUrl']=URL['createObjectURL'](_0x3e0198);}static set['rootStyles'](_0x3b92ce){if(!this['__rootStylesLink']){let _0x322d94=new Blob([_0x3b92ce],{'type':'text/css'}),_0x287338=URL['createObjectURL'](_0x322d94),_0x343560=document['createElement']('link');_0x343560['href']=_0x287338,_0x343560['rel']='stylesheet',this['__rootStylesLink']=_0x343560;}}},BaseComponent=_BaseComponent;function applyStyles(_0x31bd68,_0x25cf9c){for(let _0x2f0e93 in _0x25cf9c)_0x2f0e93['includes']('-')?_0x31bd68['style']['setProperty'](_0x2f0e93,_0x25cf9c[_0x2f0e93]):_0x31bd68['style'][_0x2f0e93]=_0x25cf9c[_0x2f0e93];}function applyAttributes(_0x2df7f7,_0x25260e){for(let _0x2a6841 in _0x25260e)_0x25260e[_0x2a6841]['constructor']===Boolean?_0x25260e[_0x2a6841]?_0x2df7f7['setAttribute'](_0x2a6841,''):_0x2df7f7['removeAttribute'](_0x2a6841):_0x2df7f7['setAttribute'](_0x2a6841,_0x25260e[_0x2a6841]);}function create(_0x489bd1={'tag':'div'}){let _0x1f86f4=document['createElement'](_0x489bd1['tag']);if(_0x489bd1['attributes']&&applyAttributes(_0x1f86f4,_0x489bd1['attributes']),_0x489bd1['styles']&&applyStyles(_0x1f86f4,_0x489bd1['styles']),_0x489bd1['properties']){for(let _0x5bfcec in _0x489bd1['properties'])_0x1f86f4[_0x5bfcec]=_0x489bd1['properties'][_0x5bfcec];}return _0x489bd1['processors']&&_0x489bd1['processors']['forEach'](_0x20a2e2=>{_0x20a2e2(_0x1f86f4);}),_0x489bd1['children']&&_0x489bd1['children']['forEach'](_0x262bf4=>{let _0x4e3943=create(_0x262bf4);_0x1f86f4['appendChild'](_0x4e3943);}),_0x1f86f4;}__publicField(BaseComponent,'template');var READY_EVENT_NAME='idb-store-ready',DEFAULT_DB_NAME='symbiote-db',UPD_EVENT_PREFIX='symbiote-idb-update_',DbInstance=class{['_notifyWhenReady'](_0x53688b=null){window['dispatchEvent'](new CustomEvent(READY_EVENT_NAME,{'detail':{'dbName':this['name'],'storeName':this['storeName'],'event':_0x53688b}}));}get['_updEventName'](){return UPD_EVENT_PREFIX+this['name'];}['_getUpdateEvent'](_0x2467ce){return new CustomEvent(this['_updEventName'],{'detail':{'key':this['name'],'newValue':_0x2467ce}});}['_notifySubscribers'](_0x48e3cf){window['localStorage']['removeItem'](this['name']),window['localStorage']['setItem'](this['name'],_0x48e3cf),window['dispatchEvent'](this['_getUpdateEvent'](_0x48e3cf));}constructor(_0x46d314,_0x3c9a12){this['name']=_0x46d314,this['storeName']=_0x3c9a12,this['version']=0x1,this['request']=window['indexedDB']['open'](this['name'],this['version']),this['request']['onupgradeneeded']=_0x348fd4=>{this['db']=_0x348fd4['target']['result'],this['objStore']=this['db']['createObjectStore'](_0x3c9a12,{'keyPath':'_key'}),this['objStore']['transaction']['oncomplete']=_0xd54bc3=>{this['_notifyWhenReady'](_0xd54bc3);};},this['request']['onsuccess']=_0xcaae38=>{this['db']=_0xcaae38['target']['result'],this['_notifyWhenReady'](_0xcaae38);},this['request']['onerror']=_0x30486e=>{console['error'](_0x30486e);},this['_subscriptionsMap']={},this['_updateHandler']=_0x3016ba=>{_0x3016ba['key']===this['name']&&this['_subscriptionsMap'][_0x3016ba['newValue']]&&this['_subscriptionsMap'][_0x3016ba['newValue']]['forEach'](async _0x4afbae=>{_0x4afbae(await this['read'](_0x3016ba['newValue']));});},this['_localUpdateHandler']=_0x1e4198=>{this['_updateHandler'](_0x1e4198['detail']);},window['addEventListener']('storage',this['_updateHandler']),window['addEventListener'](this['_updEventName'],this['_localUpdateHandler']);}['read'](_0x16f083){let _0x2594f8=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['get'](_0x16f083);return new Promise((_0x361c91,_0xb6ee49)=>{_0x2594f8['onsuccess']=_0x4e0a0f=>{var _0x16371f;(null==(_0x16371f=_0x4e0a0f['target']['result'])?void 0x0:_0x16371f['_value'])?_0x361c91(_0x4e0a0f['target']['result']['_value']):(_0x361c91(null),console['warn']('IDB:\x20cannot\x20read\x20\x22'+_0x16f083+'\x22'));},_0x2594f8['onerror']=_0x55b4c3=>{_0xb6ee49(_0x55b4c3);};});}['write'](_0x48376b,_0x46004c,_0x5d0709=!0x1){let _0x1d8660={'_key':_0x48376b,'_value':_0x46004c},_0x403e9a=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['put'](_0x1d8660);return new Promise((_0x50e51a,_0x329554)=>{_0x403e9a['onsuccess']=_0x1c992d=>{_0x5d0709||this['_notifySubscribers'](_0x48376b),_0x50e51a(_0x1c992d['target']['result']);},_0x403e9a['onerror']=_0x1119c9=>{_0x329554(_0x1119c9);};});}['delete'](_0xed6abc,_0x1d512f=!0x1){let _0x47e9d8=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['delete'](_0xed6abc);return new Promise((_0x16db27,_0x50e603)=>{_0x47e9d8['onsuccess']=_0x4d5355=>{_0x1d512f||this['_notifySubscribers'](_0xed6abc),_0x16db27(_0x4d5355);},_0x47e9d8['onerror']=_0x216c69=>{_0x50e603(_0x216c69);};});}['getAll'](){let _0x404606=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['getAll']();return new Promise((_0x2208d3,_0x686ef8)=>{_0x404606['onsuccess']=_0x38e077=>{let _0x4380be=_0x38e077['target']['result'];_0x2208d3(_0x4380be['map'](_0x1e41e6=>_0x1e41e6['_value']));},_0x404606['onerror']=_0x369669=>{_0x686ef8(_0x369669);};});}['subscribe'](_0x160d81,_0x1c1970){this['_subscriptionsMap'][_0x160d81]||(this['_subscriptionsMap'][_0x160d81]=new Set());let _0x1288f6=this['_subscriptionsMap'][_0x160d81];return _0x1288f6['add'](_0x1c1970),{'remove':()=>{_0x1288f6['delete'](_0x1c1970),_0x1288f6['size']||delete this['_subscriptionsMap'][_0x160d81];}};}['stop'](){window['removeEventListener']('storage',this['_updateHandler']),this['_subscriptionsMap']=null,IDB['clear'](this['name']);}},IDB=class{static get['readyEventName'](){return READY_EVENT_NAME;}static['open'](_0x5eab2c=DEFAULT_DB_NAME,_0x3a4929='store'){let _0x59873f=_0x5eab2c+'/'+_0x3a4929;return this['_reg'][_0x59873f]||(this['_reg'][_0x59873f]=new DbInstance(_0x5eab2c,_0x3a4929)),this['_reg'][_0x59873f];}static['clear'](_0x441654){window['indexedDB']['deleteDatabase'](_0x441654);for(let _0x743c38 in this['_reg'])_0x743c38['split']('/')[0x0]===_0x441654&&delete this['_reg'][_0x743c38];}};__publicField(IDB,'_reg',Object['create'](null));const normalizeCdnOperation=_0x364f48=>{if('string'!=typeof _0x364f48||!_0x364f48)return'';let _0x1a1c99=_0x364f48['trim']();return _0x1a1c99['startsWith']('-/')?_0x1a1c99=_0x1a1c99['slice'](0x2):_0x1a1c99['startsWith']('/')&&(_0x1a1c99=_0x1a1c99['slice'](0x1)),_0x1a1c99['endsWith']('/')&&(_0x1a1c99=_0x1a1c99['slice'](0x0,_0x1a1c99['length']-0x1)),_0x1a1c99;},joinCdnOperations=(..._0x4956ca)=>_0x4956ca['filter'](_0x5c3bcf=>'string'==typeof _0x5c3bcf&&_0x5c3bcf)['map'](_0x1ce814=>normalizeCdnOperation(_0x1ce814))['join']('/-/'),createCdnUrlModifiers=(..._0x52e71f)=>{let _0x1842f5=joinCdnOperations(..._0x52e71f);return _0x1842f5?'-/'+_0x1842f5+'/':'';};function extractFilename(_0x44c04d){let _0x591ad6=new URL(_0x44c04d),_0x4fa89a=_0x591ad6['pathname']+_0x591ad6['search']+_0x591ad6['hash'],_0x3505b7=_0x4fa89a['lastIndexOf']('http'),_0x66ac84=_0x4fa89a['lastIndexOf']('/'),_0x455cc6='';return _0x3505b7>=0x0?_0x455cc6=_0x4fa89a['slice'](_0x3505b7):_0x66ac84>=0x0&&(_0x455cc6=_0x4fa89a['slice'](_0x66ac84+0x1)),_0x455cc6;}function extractUuid(_0x11350e){let _0x5e9be8=new URL(_0x11350e),{pathname:_0x1dbe72}=_0x5e9be8;const _0x8acd51=_0x1dbe72['indexOf']('/'),_0x113987=_0x1dbe72['indexOf']('/',_0x8acd51+0x1);return _0x1dbe72['substring'](_0x8acd51+0x1,_0x113987);}function extractCdnUrlModifiers(_0xa512fb){let _0x42e7d1=trimFilename(_0xa512fb),_0x33e17c=new URL(_0x42e7d1),_0x1ce222=_0x33e17c['pathname']['indexOf']('/-/');return-0x1===_0x1ce222?'':_0x33e17c['pathname']['substring'](_0x1ce222)['slice'](0x1);}function extractOperations(_0x58b637){return extractCdnUrlModifiers(_0x58b637)['split']('/-/')['filter'](Boolean)['map'](_0x2874f5=>normalizeCdnOperation(_0x2874f5));}function trimFilename(_0x1c463b){let _0x271463=new URL(_0x1c463b),_0x62b2ca=extractFilename(_0x1c463b),_0x4da954=isFileUrl(_0x62b2ca)?splitFileUrl(_0x62b2ca)['pathname']:_0x62b2ca;return _0x271463['pathname']=_0x271463['pathname']['replace'](_0x4da954,''),_0x271463['search']='',_0x271463['hash']='',_0x271463['toString']();}function isFileUrl(_0x18786e){return _0x18786e['startsWith']('http');}function splitFileUrl(_0x42ccc3){let _0x10670c=new URL(_0x42ccc3);return{'pathname':_0x10670c['origin']+_0x10670c['pathname']||'','search':_0x10670c['search']||'','hash':_0x10670c['hash']||''};}const createCdnUrl=(_0x1af9d3,_0x44f596,_0x3199d9)=>{let _0x4e5ab5=new URL(trimFilename(_0x1af9d3));if(_0x3199d9=_0x3199d9||extractFilename(_0x1af9d3),_0x4e5ab5['pathname']['startsWith']('//')&&(_0x4e5ab5['pathname']=_0x4e5ab5['pathname']['replace']('//','/')),isFileUrl(_0x3199d9)){let _0xb7a991=splitFileUrl(_0x3199d9);_0x4e5ab5['pathname']=_0x4e5ab5['pathname']+(_0x44f596||'')+(_0xb7a991['pathname']||''),_0x4e5ab5['search']=_0xb7a991['search'],_0x4e5ab5['hash']=_0xb7a991['hash'];}else _0x4e5ab5['pathname']=_0x4e5ab5['pathname']+(_0x44f596||'')+(_0x3199d9||'');return _0x4e5ab5['toString']();},createOriginalUrl=(_0x2d130a,_0x141bd8)=>{let _0x5d4284=new URL(_0x2d130a);return _0x5d4284['pathname']=_0x141bd8+'/',_0x5d4284['toString']();},stringToArray=(_0x2fc4ad,_0x3616b7=',')=>_0x2fc4ad['trim']()['split'](_0x3616b7)['map'](_0x518ebc=>_0x518ebc['trim']())['filter'](_0x1d0399=>_0x1d0399['length']>0x0),OPERATIONS_DEFAULTS=Object['freeze']({'brightness':0x0,'exposure':0x0,'gamma':0x64,'contrast':0x0,'saturation':0x0,'vibrance':0x0,'warmth':0x0,'enhance':0x0,'filter':0x0,'rotate':0x0,'mirror':!0x1,'flip':!0x1,'crop':void 0x0}),SUPPORTED_OPERATIONS_ORDERED=['enhance','brightness','exposure','gamma','contrast','saturation','vibrance','warmth','filter','mirror','flip','rotate','crop'];function transformationToStr(_0x127a43,_0x56a944){if('number'==typeof _0x56a944){const _0x1ea7bb=_0x56a944;return OPERATIONS_DEFAULTS[_0x127a43]!==_0x1ea7bb?_0x127a43+'/'+_0x1ea7bb:'';}if('boolean'==typeof _0x56a944){const _0x4e8e56=_0x56a944;return OPERATIONS_DEFAULTS[_0x127a43]!==_0x4e8e56?''+_0x127a43:'';}if('filter'===_0x127a43&&_0x56a944){const {name:_0x36100f,amount:_0x28a007}=_0x56a944;return OPERATIONS_DEFAULTS['filter']===_0x28a007?'':_0x127a43+'/'+_0x36100f+'/'+_0x28a007;}if('crop'===_0x127a43&&_0x56a944){let {dimensions:_0x53d9f3,coords:_0x57fca7}=_0x56a944;return _0x127a43+'/'+_0x53d9f3['join']('x')+'/'+_0x57fca7['join'](',');}return'';}function transformationsToOperations(_0x1a3706){return joinCdnOperations(...SUPPORTED_OPERATIONS_ORDERED['filter'](_0x396c8d=>void 0x0!==_0x1a3706[_0x396c8d]&&null!==_0x1a3706[_0x396c8d])['map'](_0x2d0c8a=>transformationToStr(_0x2d0c8a,_0x1a3706[_0x2d0c8a]))['filter'](_0x330604=>!!_0x330604));}const COMMON_OPERATIONS=joinCdnOperations('format/auto','progressive/yes'),asNumber$1=([_0x19fd4d])=>void 0x0!==_0x19fd4d?Number(_0x19fd4d):void 0x0,asBoolean$1=()=>!0x0,asFilter=([_0x48a699,_0x4f3906])=>({'name':_0x48a699,'amount':void 0x0!==_0x4f3906?Number(_0x4f3906):0x64}),asCrop=([_0x5e2de2,_0x25e269])=>{if(!/\d+x\d+/['test'](_0x5e2de2)||!/\d+,\d+/['test'](_0x25e269))throw new Error('Crop\x20by\x20aspect\x20ratio,\x20percentage\x20or\x20alignment\x20shortcuts\x20is\x20not\x20supported.');return{'dimensions':stringToArray(_0x5e2de2,'x')['map'](Number),'coords':stringToArray(_0x25e269)['map'](Number)};},OPERATION_PROCESSORS=Object['freeze']({'enhance':asNumber$1,'brightness':asNumber$1,'exposure':asNumber$1,'gamma':asNumber$1,'contrast':asNumber$1,'saturation':asNumber$1,'vibrance':asNumber$1,'warmth':asNumber$1,'filter':asFilter,'mirror':asBoolean$1,'flip':asBoolean$1,'rotate':asNumber$1,'crop':asCrop});function operationsToTransformations(_0x56225d){const _0xcea3f5={};for(const _0x322fec of _0x56225d){const [_0x4a4f78,..._0x3b6e0a]=_0x322fec['split']('/');if(!SUPPORTED_OPERATIONS_ORDERED['includes'](_0x4a4f78))continue;const _0x25225e=_0x4a4f78,_0x397067=OPERATION_PROCESSORS[_0x25225e];try{const _0x793800=_0x397067(_0x3b6e0a);_0xcea3f5[_0x25225e]=_0x793800;}catch(_0x33ce87){console['warn'](['Failed\x20to\x20parse\x20URL\x20operation\x20\x22'+_0x322fec+'\x22.\x20It\x20will\x20be\x20ignored.',_0x33ce87 instanceof Error?'Error\x20message:\x20\x22'+_0x33ce87['message']+'\x22':_0x33ce87,'If\x20you\x20need\x20this\x20functionality,\x20please\x20feel\x20free\x20to\x20open\x20an\x20issue\x20at\x20https://github.com/uploadcare/blocks/issues/new']['join']('\x0a'));}}return _0xcea3f5;}const TabId=Object['freeze']({'CROP':'crop','TUNING':'tuning','FILTERS':'filters'}),ALL_TABS=[TabId['CROP'],TabId['TUNING'],TabId['FILTERS']],ALL_COLOR_OPERATIONS=['brightness','exposure','gamma','contrast','saturation','vibrance','warmth','enhance'],ALL_FILTERS=['adaris','briaril','calarel','carris','cynarel','cyren','elmet','elonni','enzana','erydark','fenralan','ferand','galen','gavin','gethriel','iorill','iothari','iselva','jadis','lavra','misiara','namala','nerion','nethari','pamaya','sarnar','sedis','sewen','sorahel','sorlen','tarian','thellassan','varriel','varven','vevera','virkas','yedis','yllara','zatvel','zevcen'],ALL_CROP_OPERATIONS=['rotate','mirror','flip'],COLOR_OPERATIONS_CONFIG=Object['freeze']({'brightness':{'zero':OPERATIONS_DEFAULTS['brightness'],'range':[-0x64,0x64],'keypointsNumber':0x2},'exposure':{'zero':OPERATIONS_DEFAULTS['exposure'],'range':[-0x1f4,0x1f4],'keypointsNumber':0x2},'gamma':{'zero':OPERATIONS_DEFAULTS['gamma'],'range':[0x0,0x3e8],'keypointsNumber':0x2},'contrast':{'zero':OPERATIONS_DEFAULTS['contrast'],'range':[-0x64,0x1f4],'keypointsNumber':0x2},'saturation':{'zero':OPERATIONS_DEFAULTS['saturation'],'range':[-0x64,0x1f4],'keypointsNumber':0x1},'vibrance':{'zero':OPERATIONS_DEFAULTS['vibrance'],'range':[-0x64,0x1f4],'keypointsNumber':0x1},'warmth':{'zero':OPERATIONS_DEFAULTS['warmth'],'range':[-0x64,0x64],'keypointsNumber':0x1},'enhance':{'zero':OPERATIONS_DEFAULTS['enhance'],'range':[0x0,0x64],'keypointsNumber':0x1},'filter':{'zero':OPERATIONS_DEFAULTS['filter'],'range':[0x0,0x64],'keypointsNumber':0x1}}),deserializeCsv=_0x2e89ee=>_0x2e89ee?_0x2e89ee['split'](',')['map'](_0x29d07f=>_0x29d07f['trim']())['filter'](Boolean):[],serializeCsv=_0x31432b=>_0x31432b?_0x31432b['join'](','):'',DEFAULT_CDN_CNAME='https://ucarecdn.com',DEFAULT_BASE_URL='https://upload.uploadcare.com',DEFAULT_SOCIAL_BASE_URL='https://social.uploadcare.com',DEFAULT_PREFIXED_CDN_BASE_DOMAIN='https://ucarecd.net',initialConfig={'pubkey':'','multiple':!0x0,'multipleMin':0x0,'multipleMax':Number['MAX_SAFE_INTEGER'],'confirmUpload':!0x1,'imgOnly':!0x1,'accept':'','externalSourcesPreferredTypes':'','externalSourcesEmbedCss':'','store':'auto','cameraMirror':!0x1,'cameraCapture':'','sourceList':'local,\x20url,\x20camera,\x20dropbox,\x20gdrive','topLevelOrigin':'','cloudImageEditorTabs':serializeCsv(ALL_TABS),'maxLocalFileSizeBytes':0x0,'thumbSize':0x4c,'showEmptyList':!0x1,'useLocalImageEditor':!0x1,'useCloudImageEditor':!0x0,'removeCopyright':!0x1,'cropPreset':'','imageShrink':'','modalScrollLock':!0x0,'modalBackdropStrokes':!0x1,'sourceListWrap':!0x0,'remoteTabSessionKey':'','cdnCname':DEFAULT_CDN_CNAME,'cdnCnamePrefixed':DEFAULT_PREFIXED_CDN_BASE_DOMAIN,'baseUrl':DEFAULT_BASE_URL,'socialBaseUrl':DEFAULT_SOCIAL_BASE_URL,'secureSignature':'','secureExpire':'','secureDeliveryProxy':'','retryThrottledRequestMaxTimes':0xa,'retryNetworkErrorMaxTimes':0x3,'multipartMinFileSize':0x1900000,'multipartChunkSize':0x500000,'maxConcurrentRequests':0xa,'multipartMaxConcurrentRequests':0x4,'multipartMaxAttempts':0x3,'checkForUrlDuplicates':!0x1,'saveUrlForRecurrentUploads':!0x1,'groupOutput':!0x1,'userAgentIntegration':'','debug':!0x1,'metadata':null,'localeName':'en','localeDefinitionOverride':null,'secureUploadsExpireThreshold':0x927c0,'secureUploadsSignatureResolver':null,'secureDeliveryProxyUrlResolver':null,'iconHrefResolver':null,'fileValidators':[],'collectionValidators':[],'cameraModes':'photo,\x20video','defaultCameraMode':null,'enableAudioRecording':!0x0,'enableVideoRecording':null,'maxVideoRecordingDuration':null,'mediaRecorderOptions':null,'filesViewMode':'list','gridShowFileNames':!0x1,'cloudImageEditorAutoOpen':!0x1,'cloudImageEditorMaskHref':null,'testMode':!0x1},DEFAULT_DEBOUNCE_TIMEOUT=0x14,EventType=Object['freeze']({'FILE_ADDED':'file-added','FILE_REMOVED':'file-removed','FILE_UPLOAD_START':'file-upload-start','FILE_UPLOAD_PROGRESS':'file-upload-progress','FILE_UPLOAD_SUCCESS':'file-upload-success','FILE_UPLOAD_FAILED':'file-upload-failed','FILE_URL_CHANGED':'file-url-changed','MODAL_OPEN':'modal-open','MODAL_CLOSE':'modal-close','DONE_CLICK':'done-click','UPLOAD_CLICK':'upload-click','ACTIVITY_CHANGE':'activity-change','COMMON_UPLOAD_START':'common-upload-start','COMMON_UPLOAD_PROGRESS':'common-upload-progress','COMMON_UPLOAD_SUCCESS':'common-upload-success','COMMON_UPLOAD_FAILED':'common-upload-failed','CHANGE':'change','GROUP_CREATED':'group-created'});class EventEmitter{['_timeoutStore']=new Map();['_targets']=new Set();['_debugPrint']=null;constructor(_0x33dcb4){this['_debugPrint']=_0x33dcb4;}['bindTarget'](_0x4ab7aa){this['_targets']['add'](_0x4ab7aa);}['unbindTarget'](_0x252ceb){this['_targets']['delete'](_0x252ceb);}['_dispatch'](_0x599ad7,_0x12e1b4){for(const _0x16b1e6 of this['_targets'])_0x16b1e6['dispatchEvent'](new CustomEvent(_0x599ad7,{'detail':_0x12e1b4}));this['_debugPrint']?.(()=>{const _0xde7aa4=_0x12e1b4&&'object'==typeof _0x12e1b4?{..._0x12e1b4}:_0x12e1b4;return['event\x20\x22'+_0x599ad7+'\x22',_0xde7aa4];});}['emit'](_0x194745,_0x5db39f,{debounce:_0x209e40}={}){if('number'!=typeof _0x209e40&&!_0x209e40)return void this['_dispatch'](_0x194745,'function'==typeof _0x5db39f?_0x5db39f():_0x5db39f);this['_timeoutStore']['has'](_0x194745)&&window['clearTimeout'](this['_timeoutStore']['get'](_0x194745));const _0x36297e='number'==typeof _0x209e40?_0x209e40:DEFAULT_DEBOUNCE_TIMEOUT,_0x26e221=window['setTimeout'](()=>{this['_dispatch'](_0x194745,'function'==typeof _0x5db39f?_0x5db39f():_0x5db39f),this['_timeoutStore']['delete'](_0x194745);},_0x36297e);this['_timeoutStore']['set'](_0x194745,_0x26e221);}}function debounce(_0x3cbaf2,_0x3ab0db){let _0x173117;const _0x4ef6bc=(..._0x2b1a2c)=>{clearTimeout(_0x173117),_0x173117=setTimeout(()=>_0x3cbaf2(..._0x2b1a2c),_0x3ab0db);};return _0x4ef6bc['cancel']=()=>{clearTimeout(_0x173117);},_0x4ef6bc;}const WINDOW_HEIGHT_TRACKER_PROPERTY='--uploadcare-blocks-window-height';class WindowHeightTracker{static ['clientsRegistry']=new Set();static ['flush']=debounce(()=>{document['documentElement']['style']['setProperty'](WINDOW_HEIGHT_TRACKER_PROPERTY,window['innerHeight']+'px');},0x64);static['registerClient'](_0x686508){0x0===this['clientsRegistry']['size']&&this['attachTracker'](),this['clientsRegistry']['add'](_0x686508);}static['unregisterClient'](_0x1c739b){this['clientsRegistry']['delete'](_0x1c739b),0x0===this['clientsRegistry']['size']&&this['detachTracker']();}static['attachTracker'](){window['addEventListener']('resize',this['flush'],{'passive':!0x0,'capture':!0x0}),this['flush']();}static['detachTracker'](){window['removeEventListener']('resize',this['flush'],{'capture':!0x0}),document['documentElement']['style']['removeProperty'](WINDOW_HEIGHT_TRACKER_PROPERTY);}}const getLocaleDirection=_0x15c1ce=>{const _0x1be31c=new Intl['Locale'](_0x15c1ce);let _0x21132a='ltr';return'function'==typeof _0x1be31c['getTextInfo']&&_0x1be31c['getTextInfo']()['direction']?_0x21132a=_0x1be31c['getTextInfo']()['direction']:'textInfo'in _0x1be31c&&_0x1be31c['textInfo']?.['direction']&&(_0x21132a=_0x1be31c['textInfo']['direction']),_0x21132a;},getPluralForm=(_0x47eacb,_0x3f304c)=>new Intl['PluralRules'](_0x47eacb)['select'](_0x3f304c),DEFAULT_TRANSFORMER=_0xf409b=>_0xf409b,OPEN_TOKEN='{{',CLOSE_TOKEN='}}',PLURAL_PREFIX='plural:';function applyTemplateData(_0x404898,_0x505a18,_0x3990a1={}){let {openToken:_0x381436=OPEN_TOKEN,closeToken:_0x448768=CLOSE_TOKEN,transform:_0x16c5df=DEFAULT_TRANSFORMER}=_0x3990a1;for(let _0x14a8bc in _0x505a18){let _0x101a63=_0x505a18[_0x14a8bc]?.['toString']();_0x404898=_0x404898['replaceAll'](_0x381436+_0x14a8bc+_0x448768,'string'==typeof _0x101a63?_0x16c5df(_0x101a63):_0x101a63);}return _0x404898;}function getPluralObjects(_0x9dd66b){const _0x3ce8e6=[];let _0x3e4511=_0x9dd66b['indexOf'](OPEN_TOKEN);for(;-0x1!==_0x3e4511;){const _0x337089=_0x9dd66b['indexOf'](CLOSE_TOKEN,_0x3e4511),_0x404396=_0x9dd66b['substring'](_0x3e4511+0x2,_0x337089);if(_0x404396['startsWith'](PLURAL_PREFIX)){const _0x3a80d3=_0x9dd66b['substring'](_0x3e4511+0x2,_0x337089)['replace'](PLURAL_PREFIX,''),_0x34023f=_0x3a80d3['substring'](0x0,_0x3a80d3['indexOf']('(')),_0x5302c1=_0x3a80d3['substring'](_0x3a80d3['indexOf']('(')+0x1,_0x3a80d3['indexOf'](')'));_0x3ce8e6['push']({'variable':_0x404396,'pluralKey':_0x34023f,'countVariable':_0x5302c1});}_0x3e4511=_0x9dd66b['indexOf'](OPEN_TOKEN,_0x337089);}return _0x3ce8e6;}const waitForAttribute=({element:_0x341e67,attribute:_0x21dc0d,onSuccess:_0x2244ef,onTimeout:_0x52971c,timeout:_0x5ec06c=0x12c})=>{const _0x3e058c=_0x341e67['getAttribute'](_0x21dc0d);if(null!==_0x3e058c)return void _0x2244ef(_0x3e058c);const _0x567a23=new MutationObserver(_0x4e0e0d=>{const _0x55666e=_0x4e0e0d[_0x4e0e0d['length']-0x1];_0x1f4ad9(_0x55666e);});_0x567a23['observe'](_0x341e67,{'attributes':!0x0,'attributeFilter':[_0x21dc0d]});const _0x1dcde5=setTimeout(()=>{_0x567a23['disconnect'](),_0x52971c();},_0x5ec06c),_0x1f4ad9=_0x337eb1=>{const _0x2eef5d=_0x341e67['getAttribute'](_0x21dc0d);'attributes'===_0x337eb1['type']&&_0x337eb1['attributeName']===_0x21dc0d&&null!==_0x2eef5d&&(clearTimeout(_0x1dcde5),_0x567a23['disconnect'](),_0x2244ef(_0x2eef5d));};};function isObject(_0x3c09a1){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x3c09a1);}const SEPARATOR=/\W|_/g;function camelizeString(_0x8b52fe){return _0x8b52fe['split'](SEPARATOR)['map']((_0x4c553a,_0xa2ee51)=>_0x4c553a['charAt'](0x0)[_0xa2ee51>0x0?'toUpperCase':'toLowerCase']()+_0x4c553a['slice'](0x1))['join']('');}function camelizeArrayItems(_0x1cbc0f,{ignoreKeys:_0x3a4c0b}={'ignoreKeys':[]}){return Array['isArray'](_0x1cbc0f)?_0x1cbc0f['map'](_0x309ada=>camelizeKeys(_0x309ada,{'ignoreKeys':_0x3a4c0b})):_0x1cbc0f;}function camelizeKeys(_0x28ae6f,{ignoreKeys:_0x531641}={'ignoreKeys':[]}){if(Array['isArray'](_0x28ae6f))return camelizeArrayItems(_0x28ae6f,{'ignoreKeys':_0x531641});if(!isObject(_0x28ae6f))return _0x28ae6f;const _0x275b89={};for(const _0x4b34a6 of Object['keys'](_0x28ae6f)){let _0xd5ddbb=_0x28ae6f[_0x4b34a6];_0x531641['includes'](_0x4b34a6)?_0x275b89[_0x4b34a6]=_0xd5ddbb:(isObject(_0xd5ddbb)?_0xd5ddbb=camelizeKeys(_0xd5ddbb,{'ignoreKeys':_0x531641}):Array['isArray'](_0xd5ddbb)&&(_0xd5ddbb=camelizeArrayItems(_0xd5ddbb,{'ignoreKeys':_0x531641})),_0x275b89[camelizeString(_0x4b34a6)]=_0xd5ddbb);}return _0x275b89;}const delay=_0x3689a8=>new Promise(_0x43f3d2=>setTimeout(_0x43f3d2,_0x3689a8));function getUserAgent$1({libraryName:_0x4a1808,libraryVersion:_0x1e4a11,userAgent:_0x4ce2a9,publicKey:_0x45c08d='',integration:_0x36d159=''}){const _0x30907e='JavaScript';if('string'==typeof _0x4ce2a9)return _0x4ce2a9;if('function'==typeof _0x4ce2a9)return _0x4ce2a9({'publicKey':_0x45c08d,'libraryName':_0x4a1808,'libraryVersion':_0x1e4a11,'languageName':_0x30907e,'integration':_0x36d159});return[_0x4a1808,_0x1e4a11,_0x45c08d]['filter'](Boolean)['join']('/')+'\x20('+[_0x30907e,_0x36d159]['filter'](Boolean)['join'](';\x20')+')';}const defaultOptions={'factor':0x2,'time':0x64};function retrier(_0x55c467,_0x51512d=defaultOptions){let _0x19e155=0x0;return function _0x46869d(_0x512b5c){const _0x5d481b=Math['round'](_0x51512d['time']*_0x51512d['factor']**_0x19e155);return _0x512b5c({'attempt':_0x19e155,'retry':_0x395ded=>delay(_0x395ded??_0x5d481b)['then'](()=>(_0x19e155+=0x1,_0x46869d(_0x512b5c)))});}(_0x55c467);}class UploadcareError extends Error{}class NetworkError extends UploadcareError{['originalProgressEvent'];constructor(_0x399387){super(),this['name']='NetworkError',this['message']='Network\x20error',Object['setPrototypeOf'](this,NetworkError['prototype']),this['originalProgressEvent']=_0x399387;}}const onCancel=(_0x67b12c,_0x5edd4f)=>{_0x67b12c&&(_0x67b12c['aborted']?Promise['resolve']()['then'](_0x5edd4f):_0x67b12c['addEventListener']('abort',()=>_0x5edd4f(),{'once':!0x0}));};class CancelError extends UploadcareError{['isCancel']=!0x0;constructor(_0x3e5335='Request\x20canceled'){super(_0x3e5335),this['name']='CancelError',Object['setPrototypeOf'](this,CancelError['prototype']);}}const DEFAULT_INTERVAL=0x1f4,poll=({check:_0x2cad3c,interval:_0x1a5d3d=DEFAULT_INTERVAL,timeout:_0x35512a,signal:_0x47dfd3})=>new Promise((_0x2eeccf,_0xca152e)=>{let _0x1d614e,_0x2502de;onCancel(_0x47dfd3,()=>{_0x1d614e&&clearTimeout(_0x1d614e),_0xca152e(new CancelError('Poll\x20cancelled'));}),_0x35512a&&(_0x2502de=setTimeout(()=>{_0x1d614e&&clearTimeout(_0x1d614e),_0xca152e(new CancelError('Timed\x20out'));},_0x35512a));const _0x145cb7=()=>{try{Promise['resolve'](_0x2cad3c(_0x47dfd3))['then'](_0x4cc18d=>{_0x4cc18d?(_0x2502de&&clearTimeout(_0x2502de),_0x2eeccf(_0x4cc18d)):_0x1d614e=setTimeout(_0x145cb7,_0x1a5d3d);})['catch'](_0x5e96c5=>{_0x2502de&&clearTimeout(_0x2502de),_0xca152e(_0x5e96c5);});}catch(_0xd410b){_0x2502de&&clearTimeout(_0x2502de),_0xca152e(_0xd410b);}};_0x1d614e=setTimeout(_0x145cb7,0x0);}),defaultSettings={'baseCDN':'https://ucarecdn.com','baseURL':'https://upload.uploadcare.com','retryThrottledRequestMaxTimes':0x1,'retryNetworkErrorMaxTimes':0x3,'multipartMinFileSize':0x1900000,'multipartChunkSize':0x500000,'maxConcurrentRequests':0x4,'pusherKey':'79ae88bd931ea68464d9'},defaultContentType='application/octet-stream',defaultFilename='original',request=({method:_0x37b9e3,url:_0x4d53f9,data:_0x151764,headers:_0x2f0188={},signal:_0x116dc0,onProgress:_0x5b80dc})=>new Promise((_0x52d082,_0x4e5386)=>{const _0x1c6c81=new XMLHttpRequest(),_0x3f0a00=_0x37b9e3?.['toUpperCase']()||'GET';let _0x4b0d63=!0x1;_0x1c6c81['open'](_0x3f0a00,_0x4d53f9,!0x0),_0x2f0188&&Object['entries'](_0x2f0188)['forEach'](_0xac9930=>{const [_0x5a6a15,_0x5201e2]=_0xac9930;void 0x0!==_0x5201e2&&!Array['isArray'](_0x5201e2)&&_0x1c6c81['setRequestHeader'](_0x5a6a15,_0x5201e2);}),_0x1c6c81['responseType']='text',onCancel(_0x116dc0,()=>{_0x4b0d63=!0x0,_0x1c6c81['abort'](),_0x4e5386(new CancelError());}),_0x1c6c81['onload']=()=>{if(0xc8!=_0x1c6c81['status'])_0x4e5386(new Error('Error\x20'+_0x1c6c81['status']+':\x20'+_0x1c6c81['statusText']));else{const _0x47924f={'method':_0x3f0a00,'url':_0x4d53f9,'data':_0x151764,'headers':_0x2f0188||void 0x0,'signal':_0x116dc0,'onProgress':_0x5b80dc},_0x39a7cf=_0x1c6c81['getAllResponseHeaders']()['trim']()['split'](/[\r\n]+/),_0x38f663={};_0x39a7cf['forEach'](function(_0x16c387){const _0xbe918a=_0x16c387['split'](':\x20'),_0x50c3f2=_0xbe918a['shift'](),_0x1c8e37=_0xbe918a['join'](':\x20');_0x50c3f2&&void 0x0!==_0x50c3f2&&(_0x38f663[_0x50c3f2]=_0x1c8e37);});const _0x2fc2f9=_0x1c6c81['response'],_0x287862=_0x1c6c81['status'];_0x52d082({'request':_0x47924f,'data':_0x2fc2f9,'headers':_0x38f663,'status':_0x287862});}},_0x1c6c81['onerror']=_0x510b70=>{_0x4b0d63||_0x4e5386(new NetworkError(_0x510b70));},_0x5b80dc&&'function'==typeof _0x5b80dc&&(_0x1c6c81['upload']['onprogress']=_0x4f4387=>{_0x4f4387['lengthComputable']?_0x5b80dc({'isComputable':!0x0,'value':_0x4f4387['loaded']/_0x4f4387['total']}):_0x5b80dc({'isComputable':!0x1});}),_0x151764?_0x1c6c81['send'](_0x151764):_0x1c6c81['send']();});function identity(_0xf889e9,..._0x6cbd16){return _0xf889e9;}const getFileOptions=({name:_0x372b9e})=>_0x372b9e?[_0x372b9e]:[],transformFile=identity;var getFormData=()=>new FormData();const isBuffer=_0x434107=>!0x1,isBlob=_0x3d91d0=>'undefined'!=typeof Blob&&_0x3d91d0 instanceof Blob,isFile=_0x1d0d4d=>'undefined'!=typeof File&&_0x1d0d4d instanceof File,isReactNativeAsset=_0x5be229=>!!_0x5be229&&'object'==typeof _0x5be229&&!Array['isArray'](_0x5be229)&&'uri'in _0x5be229&&'string'==typeof _0x5be229['uri'],isFileData=_0x360b07=>isBlob(_0x360b07)||isFile(_0x360b07)||isBuffer()||isReactNativeAsset(_0x360b07),isSimpleValue=_0x477513=>'string'==typeof _0x477513||'number'==typeof _0x477513||void 0x0===_0x477513,isObjectValue=_0x154c89=>!!_0x154c89&&'object'==typeof _0x154c89&&!Array['isArray'](_0x154c89),isFileValue=_0x5d1164=>!!_0x5d1164&&'object'==typeof _0x5d1164&&'data'in _0x5d1164&&isFileData(_0x5d1164['data']);function collectParams(_0x1148e3,_0x5c7373,_0x1a5569){if(Array['isArray'](_0x1a5569)){for(const _0x4b09b7 of _0x1a5569)collectParams(_0x1148e3,_0x5c7373+'[]',_0x4b09b7);}else{if(isFileValue(_0x1a5569)){const {name:_0x5059e6,contentType:_0x10508a}=_0x1a5569,_0x2a395f=transformFile(_0x1a5569['data'],_0x5059e6,_0x10508a??defaultContentType),_0x4c34d8=getFileOptions({'name':_0x5059e6});_0x1148e3['push']([_0x5c7373,_0x2a395f,..._0x4c34d8]);}else{if(isObjectValue(_0x1a5569)){for(const [_0x26f587,_0x51321d]of Object['entries'](_0x1a5569))void 0x0!==_0x51321d&&_0x1148e3['push']([_0x5c7373+'['+_0x26f587+']',String(_0x51321d)]);}else isSimpleValue(_0x1a5569)&&_0x1a5569&&_0x1148e3['push']([_0x5c7373,_0x1a5569['toString']()]);}}}function getFormDataParams(_0x5124eb){const _0x14f1f9=[];for(const [_0x4a4cf8,_0x5932f6]of Object['entries'](_0x5124eb))collectParams(_0x14f1f9,_0x4a4cf8,_0x5932f6);return _0x14f1f9;}function buildFormData(_0x21a566){const _0x5be615=getFormData(),_0x506624=getFormDataParams(_0x21a566);for(const _0x1ca4b8 of _0x506624){const [_0x38799f,_0x9b24bf,..._0xef249e]=_0x1ca4b8;_0x5be615['append'](_0x38799f,_0x9b24bf,..._0xef249e);}return _0x5be615;}class UploadError extends UploadcareError{['code'];['request'];['response'];['headers'];constructor(_0x51878c,_0x1a4d08,_0x4c325c,_0x37eed2,_0x4fb12d){super(),this['name']='UploadError',this['message']=_0x51878c,this['code']=_0x1a4d08,this['request']=_0x4c325c,this['response']=_0x37eed2,this['headers']=_0x4fb12d,Object['setPrototypeOf'](this,UploadError['prototype']);}}const buildSearchParams=_0x182daa=>{const _0x4b8588=new URLSearchParams();for(const [_0x3edfa4,_0x36678a]of Object['entries'](_0x182daa))_0x36678a&&'object'==typeof _0x36678a&&!Array['isArray'](_0x36678a)?Object['entries'](_0x36678a)['filter'](_0x4c4686=>_0x4c4686[0x1]??!0x1)['forEach'](_0x17a03b=>_0x4b8588['set'](_0x3edfa4+'['+_0x17a03b[0x0]+']',String(_0x17a03b[0x1]))):Array['isArray'](_0x36678a)?_0x36678a['forEach'](_0x5642e1=>{_0x4b8588['append'](_0x3edfa4+'[]',_0x5642e1);}):'string'==typeof _0x36678a&&_0x36678a?_0x4b8588['set'](_0x3edfa4,_0x36678a):'number'==typeof _0x36678a&&_0x4b8588['set'](_0x3edfa4,_0x36678a['toString']());return _0x4b8588['toString']();},getUrl=(_0xe1ba5f,_0x5a77f4,_0x5062cd)=>{const _0x45249e=new URL(_0xe1ba5f);return _0x45249e['pathname']=(_0x45249e['pathname']+_0x5a77f4)['replace']('//','/'),_0x5062cd&&(_0x45249e['search']=buildSearchParams(_0x5062cd)),_0x45249e['toString']();};var version='6.17.0';const LIBRARY_NAME='UploadcareUploadClient',LIBRARY_VERSION=version;function getUserAgent(_0x128ad5){return getUserAgent$1({'libraryName':LIBRARY_NAME,'libraryVersion':LIBRARY_VERSION,..._0x128ad5});}const REQUEST_WAS_THROTTLED_CODE='RequestThrottledError',DEFAULT_RETRY_AFTER_TIMEOUT=0x3a98,DEFAULT_NETWORK_ERROR_TIMEOUT=0x3e8;function getTimeoutFromThrottledRequest(_0x16b2ce){const {headers:_0x30ec44}=_0x16b2ce||{};if(!_0x30ec44||'string'!=typeof _0x30ec44['retry-after'])return DEFAULT_RETRY_AFTER_TIMEOUT;const _0x40e655=parseInt(_0x30ec44['retry-after'],0xa);return Number['isFinite'](_0x40e655)?0x3e8*_0x40e655:DEFAULT_RETRY_AFTER_TIMEOUT;}function retryIfFailed(_0x432c8a,_0x3eb6ff){const {retryThrottledRequestMaxTimes:_0x5420cd,retryNetworkErrorMaxTimes:_0x634d88}=_0x3eb6ff;return retrier(({attempt:_0x2c228,retry:_0x112dcd})=>_0x432c8a()['catch'](_0x1632c1=>{if('response'in _0x1632c1&&_0x1632c1?.['code']===REQUEST_WAS_THROTTLED_CODE&&_0x2c228<_0x5420cd)return _0x112dcd(getTimeoutFromThrottledRequest(_0x1632c1));if(_0x1632c1 instanceof NetworkError&&_0x2c228<_0x634d88)return _0x112dcd((_0x2c228+0x1)*DEFAULT_NETWORK_ERROR_TIMEOUT);throw _0x1632c1;}));}const getContentType=_0x45cecc=>{let _0xc229ab='';return(isBlob(_0x45cecc)||isFile(_0x45cecc)||isReactNativeAsset(_0x45cecc))&&(_0xc229ab=_0x45cecc['type']),_0xc229ab||defaultContentType;},getFileName=_0x567c26=>{let _0x4ca126='';return isFile(_0x567c26)&&_0x567c26['name']?_0x4ca126=_0x567c26['name']:isBlob(_0x567c26)||isBuffer()?_0x4ca126='':isReactNativeAsset(_0x567c26)&&_0x567c26['name']&&(_0x4ca126=_0x567c26['name']),_0x4ca126||defaultFilename;};function getStoreValue(_0x378339){return void 0x0===_0x378339||'auto'===_0x378339?'auto':_0x378339?'1':'0';}function base(_0x2acd90,{publicKey:_0x16e64e,fileName:_0x5df4b0,contentType:_0x34d13d,baseURL:_0xc98782=defaultSettings['baseURL'],secureSignature:_0x5b68bf,secureExpire:_0x2abec4,store:_0x221d22,signal:_0x4e4340,onProgress:_0xc6aac3,source:_0x333ed2='local',integration:_0x505738,userAgent:_0xa2f040,retryThrottledRequestMaxTimes:_0x18b053=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x4002f9=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x2c045a}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0xc98782,'/base/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x16e64e,'integration':_0x505738,'userAgent':_0xa2f040})},'data':buildFormData({'file':{'data':_0x2acd90,'name':_0x5df4b0||getFileName(_0x2acd90),'contentType':_0x34d13d||getContentType(_0x2acd90)},'UPLOADCARE_PUB_KEY':_0x16e64e,'UPLOADCARE_STORE':getStoreValue(_0x221d22),'signature':_0x5b68bf,'expire':_0x2abec4,'source':_0x333ed2,'metadata':_0x2c045a}),'signal':_0x4e4340,'onProgress':_0xc6aac3})['then'](({data:_0x32df06,headers:_0x328ff9,request:_0x52b085})=>{const _0x48aae7=camelizeKeys(JSON['parse'](_0x32df06));if('error'in _0x48aae7)throw new UploadError(_0x48aae7['error']['content'],_0x48aae7['error']['errorCode'],_0x52b085,_0x48aae7,_0x328ff9);return _0x48aae7;}),{'retryNetworkErrorMaxTimes':_0x4002f9,'retryThrottledRequestMaxTimes':_0x18b053});}var TypeEnum,Status;function fromUrl(_0x148e88,{publicKey:_0x58ffe6,baseURL:_0x1d2920=defaultSettings['baseURL'],store:_0x4d0545,fileName:_0x41b608,checkForUrlDuplicates:_0x49964a,saveUrlForRecurrentUploads:_0xaf2c2c,secureSignature:_0x479dd7,secureExpire:_0x16240d,source:_0x5520fd='url',signal:_0x56bf0a,integration:_0x4eb754,userAgent:_0x3dfaf6,retryThrottledRequestMaxTimes:_0x4ecde2=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0xd2ed54=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x302366}){return retryIfFailed(()=>request({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x58ffe6,'integration':_0x4eb754,'userAgent':_0x3dfaf6})},'url':getUrl(_0x1d2920,'/from_url/',{'jsonerrors':0x1,'pub_key':_0x58ffe6,'source_url':_0x148e88,'store':getStoreValue(_0x4d0545),'filename':_0x41b608,'check_URL_duplicates':_0x49964a?0x1:void 0x0,'save_URL_duplicates':_0xaf2c2c?0x1:void 0x0,'signature':_0x479dd7,'expire':_0x16240d,'source':_0x5520fd,'metadata':_0x302366}),'signal':_0x56bf0a})['then'](({data:_0x22111a,headers:_0x99b1bf,request:_0x229ad3})=>{const _0x35f811=camelizeKeys(JSON['parse'](_0x22111a));if('error'in _0x35f811)throw new UploadError(_0x35f811['error']['content'],_0x35f811['error']['errorCode'],_0x229ad3,_0x35f811,_0x99b1bf);return _0x35f811;}),{'retryNetworkErrorMaxTimes':_0xd2ed54,'retryThrottledRequestMaxTimes':_0x4ecde2});}!function(_0x479667){_0x479667['Token']='token',_0x479667['FileInfo']='file_info';}(TypeEnum||(TypeEnum={})),function(_0xd42a7a){_0xd42a7a['Unknown']='unknown',_0xd42a7a['Waiting']='waiting',_0xd42a7a['Progress']='progress',_0xd42a7a['Error']='error',_0xd42a7a['Success']='success';}(Status||(Status={}));const isErrorResponse=_0x290b14=>'status'in _0x290b14&&_0x290b14['status']===Status['Error'];function fromUrlStatus(_0x123d1d,{publicKey:_0x25b4e1,baseURL:_0x679a35=defaultSettings['baseURL'],signal:_0x1acb0f,integration:_0x3c4a64,userAgent:_0x3cfa45,retryThrottledRequestMaxTimes:_0x2cc3b4=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x4dcfd8=defaultSettings['retryNetworkErrorMaxTimes']}={}){return retryIfFailed(()=>request({'method':'GET','headers':_0x25b4e1?{'X-UC-User-Agent':getUserAgent({'publicKey':_0x25b4e1,'integration':_0x3c4a64,'userAgent':_0x3cfa45})}:void 0x0,'url':getUrl(_0x679a35,'/from_url/status/',{'jsonerrors':0x1,'token':_0x123d1d}),'signal':_0x1acb0f})['then'](({data:_0x11296a,headers:_0x5cb348,request:_0x3dcbd7})=>{const _0x59dd53=camelizeKeys(JSON['parse'](_0x11296a));if('error'in _0x59dd53&&!isErrorResponse(_0x59dd53))throw new UploadError(_0x59dd53['error']['content'],_0x59dd53['error']['errorCode'],_0x3dcbd7,_0x59dd53,_0x5cb348);return _0x59dd53;}),{'retryNetworkErrorMaxTimes':_0x4dcfd8,'retryThrottledRequestMaxTimes':_0x2cc3b4});}function group(_0x423571,{publicKey:_0x38b9c8,baseURL:_0x5529c2=defaultSettings['baseURL'],jsonpCallback:_0x588671,secureSignature:_0x2f87e1,secureExpire:_0x3fb77d,signal:_0x5b5d6d,source:_0x19ca66,integration:_0x101e48,userAgent:_0x37d4ee,retryThrottledRequestMaxTimes:_0x434ce0=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x114bd0=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x38b9c8,'integration':_0x101e48,'userAgent':_0x37d4ee})},'url':getUrl(_0x5529c2,'/group/',{'jsonerrors':0x1}),'data':buildFormData({'files':_0x423571,'callback':_0x588671,'pub_key':_0x38b9c8,'signature':_0x2f87e1,'expire':_0x3fb77d,'source':_0x19ca66}),'signal':_0x5b5d6d})['then'](({data:_0x377938,headers:_0x15e64b,request:_0x23bed9})=>{const _0xb85871=camelizeKeys(JSON['parse'](_0x377938));if('error'in _0xb85871)throw new UploadError(_0xb85871['error']['content'],_0xb85871['error']['errorCode'],_0x23bed9,_0xb85871,_0x15e64b);return _0xb85871;}),{'retryNetworkErrorMaxTimes':_0x114bd0,'retryThrottledRequestMaxTimes':_0x434ce0});}function info(_0x55b3b1,{publicKey:_0x285f52,baseURL:_0x161c50=defaultSettings['baseURL'],signal:_0x4f0caa,source:_0x4e9371,integration:_0xad757c,userAgent:_0x4f2828,retryThrottledRequestMaxTimes:_0x320389=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x411465=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'GET','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x285f52,'integration':_0xad757c,'userAgent':_0x4f2828})},'url':getUrl(_0x161c50,'/info/',{'jsonerrors':0x1,'pub_key':_0x285f52,'file_id':_0x55b3b1,'source':_0x4e9371}),'signal':_0x4f0caa})['then'](({data:_0x54fed5,headers:_0x2bb29e,request:_0x17e9bf})=>{const _0x31a02f=camelizeKeys(JSON['parse'](_0x54fed5));if('error'in _0x31a02f)throw new UploadError(_0x31a02f['error']['content'],_0x31a02f['error']['errorCode'],_0x17e9bf,_0x31a02f,_0x2bb29e);return _0x31a02f;}),{'retryThrottledRequestMaxTimes':_0x320389,'retryNetworkErrorMaxTimes':_0x411465});}function multipartStart(_0x2dfc67,{publicKey:_0x413ae1,contentType:_0x596173,fileName:_0x13128c,multipartChunkSize:_0x5b2d10=defaultSettings['multipartChunkSize'],baseURL:_0x43c166='',secureSignature:_0x4cc4ad,secureExpire:_0x2b69bd,store:_0x24123d,signal:_0x40ea61,source:_0x77ee31='local',integration:_0x171e6b,userAgent:_0x16a343,retryThrottledRequestMaxTimes:_0x102c26=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x4ee608=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x3ceebe}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0x43c166,'/multipart/start/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x413ae1,'integration':_0x171e6b,'userAgent':_0x16a343})},'data':buildFormData({'filename':_0x13128c||defaultFilename,'size':_0x2dfc67,'content_type':_0x596173||defaultContentType,'part_size':_0x5b2d10,'UPLOADCARE_STORE':getStoreValue(_0x24123d),'UPLOADCARE_PUB_KEY':_0x413ae1,'signature':_0x4cc4ad,'expire':_0x2b69bd,'source':_0x77ee31,'metadata':_0x3ceebe}),'signal':_0x40ea61})['then'](({data:_0x2f54d8,headers:_0x56573c,request:_0x41dadc})=>{const _0x276d1d=camelizeKeys(JSON['parse'](_0x2f54d8));if('error'in _0x276d1d)throw new UploadError(_0x276d1d['error']['content'],_0x276d1d['error']['errorCode'],_0x41dadc,_0x276d1d,_0x56573c);return _0x276d1d['parts']=Object['keys'](_0x276d1d['parts'])['map'](_0x3994de=>_0x276d1d['parts'][Number(_0x3994de)]),_0x276d1d;}),{'retryThrottledRequestMaxTimes':_0x102c26,'retryNetworkErrorMaxTimes':_0x4ee608});}function multipartUpload(_0x25d3c0,_0x9f5526,{contentType:_0x20ebe6,signal:_0x42a8bc,onProgress:_0x4d9b41,retryThrottledRequestMaxTimes:_0x4e3e7c=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x11035d=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'PUT','url':_0x9f5526,'data':_0x25d3c0,'onProgress':_0x4d9b41,'signal':_0x42a8bc,'headers':{'Content-Type':_0x20ebe6||defaultContentType}})['then'](_0x36ac93=>(_0x4d9b41&&_0x4d9b41({'isComputable':!0x0,'value':0x1}),_0x36ac93))['then'](({status:_0xfba119})=>({'code':_0xfba119})),{'retryThrottledRequestMaxTimes':_0x4e3e7c,'retryNetworkErrorMaxTimes':_0x11035d});}function multipartComplete(_0x3b96c2,{publicKey:_0x3d303b,baseURL:_0xe87013=defaultSettings['baseURL'],source:_0x110dcf='local',signal:_0x45c027,integration:_0x361eb2,userAgent:_0x715084,retryThrottledRequestMaxTimes:_0x51bd78=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x2e3ef5=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0xe87013,'/multipart/complete/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x3d303b,'integration':_0x361eb2,'userAgent':_0x715084})},'data':buildFormData({'uuid':_0x3b96c2,'UPLOADCARE_PUB_KEY':_0x3d303b,'source':_0x110dcf}),'signal':_0x45c027})['then'](({data:_0x1d155b,headers:_0x37dcc8,request:_0x2411ac})=>{const _0x634c0d=camelizeKeys(JSON['parse'](_0x1d155b));if('error'in _0x634c0d)throw new UploadError(_0x634c0d['error']['content'],_0x634c0d['error']['errorCode'],_0x2411ac,_0x634c0d,_0x37dcc8);return _0x634c0d;}),{'retryThrottledRequestMaxTimes':_0x51bd78,'retryNetworkErrorMaxTimes':_0x2e3ef5});}function isReadyPoll(_0x3283e0,{publicKey:_0x361bcd,baseURL:_0x5db23e,source:_0x41dc6a,integration:_0x2aa60d,userAgent:_0x414e59,retryThrottledRequestMaxTimes:_0x22c852,retryNetworkErrorMaxTimes:_0xf4db86,signal:_0x205024,onProgress:_0x29355c}){return poll({'check':_0x5dd5a8=>info(_0x3283e0,{'publicKey':_0x361bcd,'baseURL':_0x5db23e,'signal':_0x5dd5a8,'source':_0x41dc6a,'integration':_0x2aa60d,'userAgent':_0x414e59,'retryThrottledRequestMaxTimes':_0x22c852,'retryNetworkErrorMaxTimes':_0xf4db86})['then'](_0x180cb4=>_0x180cb4['isReady']?_0x180cb4:(_0x29355c&&_0x29355c({'isComputable':!0x0,'value':0x1}),!0x1)),'signal':_0x205024});}function isGroupFileInfo(_0x2fca9){return'defaultEffects'in _0x2fca9;}class UploadcareFile{['uuid'];['name'];['size'];['isStored'];['isImage'];['mimeType'];['cdnUrl'];['s3Url'];['originalFilename'];['imageInfo'];['videoInfo'];['contentInfo'];['metadata'];['s3Bucket'];['defaultEffects']=null;constructor(_0x37a75d,{baseCDN:_0x27d568=defaultSettings['baseCDN'],fileName:_0x5b25d0}={}){const {uuid:_0x529c8c,s3Bucket:_0x1387d6}=_0x37a75d,_0x242761=getUrl(_0x27d568,_0x529c8c+'/'),_0x4db46a=_0x1387d6?getUrl('https://'+_0x1387d6+'.s3.amazonaws.com/',_0x529c8c+'/'+_0x37a75d['filename']):null;this['uuid']=_0x529c8c,this['name']=_0x5b25d0||_0x37a75d['filename'],this['size']=_0x37a75d['size'],this['isStored']=_0x37a75d['isStored'],this['isImage']=_0x37a75d['isImage'],this['mimeType']=_0x37a75d['mimeType'],this['cdnUrl']=_0x242761,this['originalFilename']=_0x37a75d['originalFilename'],this['imageInfo']=_0x37a75d['imageInfo'],this['videoInfo']=_0x37a75d['videoInfo'],this['contentInfo']=_0x37a75d['contentInfo'],this['metadata']=_0x37a75d['metadata']||null,this['s3Bucket']=_0x1387d6||null,this['s3Url']=_0x4db46a,isGroupFileInfo(_0x37a75d)&&(this['defaultEffects']=_0x37a75d['defaultEffects']);}}const uploadDirect=(_0x397c3f,{publicKey:_0x4f074c,fileName:_0x2c17d6,baseURL:_0x4df76c,secureSignature:_0x2f2835,secureExpire:_0x34eccd,store:_0x3cea4e,contentType:_0xed3cf4,signal:_0x355b9b,onProgress:_0x279678,source:_0x38de6b,integration:_0x18b5e3,userAgent:_0x52bb99,retryThrottledRequestMaxTimes:_0x50ac41,retryNetworkErrorMaxTimes:_0x243bc0,baseCDN:_0x3502be,metadata:_0x2aedfb})=>base(_0x397c3f,{'publicKey':_0x4f074c,'fileName':_0x2c17d6,'contentType':_0xed3cf4,'baseURL':_0x4df76c,'secureSignature':_0x2f2835,'secureExpire':_0x34eccd,'store':_0x3cea4e,'signal':_0x355b9b,'onProgress':_0x279678,'source':_0x38de6b,'integration':_0x18b5e3,'userAgent':_0x52bb99,'retryThrottledRequestMaxTimes':_0x50ac41,'retryNetworkErrorMaxTimes':_0x243bc0,'metadata':_0x2aedfb})['then'](({file:_0xba9905})=>isReadyPoll(_0xba9905,{'publicKey':_0x4f074c,'baseURL':_0x4df76c,'source':_0x38de6b,'integration':_0x18b5e3,'userAgent':_0x52bb99,'retryThrottledRequestMaxTimes':_0x50ac41,'retryNetworkErrorMaxTimes':_0x243bc0,'onProgress':_0x279678,'signal':_0x355b9b}))['then'](_0x160310=>new UploadcareFile(_0x160310,{'baseCDN':_0x3502be})),uploadFromUploaded=(_0x323a5b,{publicKey:_0x37a1c0,fileName:_0x3d8e55,baseURL:_0x40dc6c,signal:_0x14f8ce,onProgress:_0x2b51b7,source:_0x3d7487,integration:_0x59a9b5,userAgent:_0x2ff1a0,retryThrottledRequestMaxTimes:_0x2392da,retryNetworkErrorMaxTimes:_0x8839c8,baseCDN:_0x458eda})=>info(_0x323a5b,{'publicKey':_0x37a1c0,'baseURL':_0x40dc6c,'signal':_0x14f8ce,'source':_0x3d7487,'integration':_0x59a9b5,'userAgent':_0x2ff1a0,'retryThrottledRequestMaxTimes':_0x2392da,'retryNetworkErrorMaxTimes':_0x8839c8})['then'](_0x28bd29=>new UploadcareFile(_0x28bd29,{'baseCDN':_0x458eda,'fileName':_0x3d8e55}))['then'](_0xac8c4=>(_0x2b51b7&&_0x2b51b7({'isComputable':!0x0,'value':0x1}),_0xac8c4)),race=(_0xebf9c7,{signal:_0x50ff5d}={})=>{let _0x21d151=null,_0x240da5=null;const _0x1d3f3a=_0xebf9c7['map'](()=>new AbortController());return onCancel(_0x50ff5d,()=>{_0x1d3f3a['forEach'](_0x51ed41=>_0x51ed41['abort']());}),Promise['all'](_0xebf9c7['map']((_0x2fdd45,_0xccd683)=>{const _0x262ed3=(_0x16fb91=>()=>{_0x240da5=_0x16fb91,_0x1d3f3a['forEach']((_0x3a173a,_0x307a5d)=>_0x307a5d!==_0x16fb91&&_0x3a173a['abort']());})(_0xccd683);return Promise['resolve']()['then'](()=>_0x2fdd45({'stopRace':_0x262ed3,'signal':_0x1d3f3a[_0xccd683]['signal']}))['then'](_0x2b454=>(_0x262ed3(),_0x2b454))['catch'](_0x2c98f8=>(_0x21d151=_0x2c98f8,null));}))['then'](_0x349ebd=>{if(null===_0x240da5)throw _0x21d151;return _0x349ebd[_0x240da5];});};var WebSocket=window['WebSocket'];class Events{['events']=Object['create']({});['emit'](_0x466317,_0x3c1ae4){this['events'][_0x466317]?.['forEach'](_0x14064b=>_0x14064b(_0x3c1ae4));}['on'](_0x1f52f0,_0x30e83a){this['events'][_0x1f52f0]=this['events'][_0x1f52f0]||[],this['events'][_0x1f52f0]['push'](_0x30e83a);}['off'](_0x29674f,_0x9ef517){this['events'][_0x29674f]=_0x9ef517?this['events'][_0x29674f]['filter'](_0x2f5e64=>_0x2f5e64!==_0x9ef517):[];}}const response=(_0x590670,_0x11f9d2)=>'success'===_0x590670?{'status':Status['Success'],..._0x11f9d2}:'progress'===_0x590670?{'status':Status['Progress'],..._0x11f9d2}:{'status':Status['Error'],..._0x11f9d2};class Pusher{['key'];['disconnectTime'];['ws']=void 0x0;['queue']=[];['isConnected']=!0x1;['subscribers']=0x0;['emmitter']=new Events();['disconnectTimeoutId']=null;constructor(_0xdb84fa,_0x413454=0x7530){this['key']=_0xdb84fa,this['disconnectTime']=_0x413454;}['connect'](){if(this['disconnectTimeoutId']&&clearTimeout(this['disconnectTimeoutId']),!this['isConnected']&&!this['ws']){const _0x275a20='wss://ws.pusherapp.com/app/'+this['key']+'?protocol=5&client=js&version=1.12.2';this['ws']=new WebSocket(_0x275a20),this['ws']['addEventListener']('error',_0x68e9d9=>{this['emmitter']['emit']('error',new Error(_0x68e9d9['message']));}),this['emmitter']['on']('connected',()=>{this['isConnected']=!0x0,this['queue']['forEach'](_0x22cdca=>this['send'](_0x22cdca['event'],_0x22cdca['data'])),this['queue']=[];}),this['ws']['addEventListener']('message',_0xa0f9d8=>{const _0x4e93b8=JSON['parse'](_0xa0f9d8['data']['toString']());switch(_0x4e93b8['event']){case'pusher:connection_established':this['emmitter']['emit']('connected',void 0x0);break;case'pusher:ping':this['send']('pusher:pong',{});break;case'progress':case'success':case'fail':this['emmitter']['emit'](_0x4e93b8['channel'],response(_0x4e93b8['event'],JSON['parse'](_0x4e93b8['data'])));}});}}['disconnect'](){const _0x34ef81=()=>{this['ws']?.['close'](),this['ws']=void 0x0,this['isConnected']=!0x1;};this['disconnectTime']?this['disconnectTimeoutId']=setTimeout(()=>{_0x34ef81();},this['disconnectTime']):_0x34ef81();}['send'](_0x5e9688,_0x30ea75){const _0x5e31b2=JSON['stringify']({'event':_0x5e9688,'data':_0x30ea75});this['ws']?.['send'](_0x5e31b2);}['subscribe'](_0x21fb33,_0x29440d){this['subscribers']+=0x1,this['connect']();const _0x36dd66='task-status-'+_0x21fb33,_0x190efd={'event':'pusher:subscribe','data':{'channel':_0x36dd66}};this['emmitter']['on'](_0x36dd66,_0x29440d),this['isConnected']?this['send'](_0x190efd['event'],_0x190efd['data']):this['queue']['push'](_0x190efd);}['unsubscribe'](_0x53c017){this['subscribers']-=0x1;const _0x284b96='task-status-'+_0x53c017,_0x3238bd={'event':'pusher:unsubscribe','data':{'channel':_0x284b96}};this['emmitter']['off'](_0x284b96),this['isConnected']?this['send'](_0x3238bd['event'],_0x3238bd['data']):this['queue']=this['queue']['filter'](_0x506eac=>_0x506eac['data']['channel']!==_0x284b96),0x0===this['subscribers']&&this['disconnect']();}['onError'](_0x158db3){return this['emmitter']['on']('error',_0x158db3),()=>this['emmitter']['off']('error',_0x158db3);}}let pusher=null;const getPusher=_0x403898=>{if(!pusher){const _0x43bad5='undefined'==typeof window?0x0:0x7530;pusher=new Pusher(_0x403898,_0x43bad5);}return pusher;},preconnect=_0x3341b1=>{getPusher(_0x3341b1)['connect']();};function pollStrategy({token:_0x8093db,publicKey:_0x5bc329,baseURL:_0x2943c2,integration:_0x342727,userAgent:_0x5b5a8,retryThrottledRequestMaxTimes:_0x1fbeb4,retryNetworkErrorMaxTimes:_0x1d5308,onProgress:_0x22a4d1,signal:_0x52faee}){return poll({'check':_0x5beb82=>fromUrlStatus(_0x8093db,{'publicKey':_0x5bc329,'baseURL':_0x2943c2,'integration':_0x342727,'userAgent':_0x5b5a8,'retryThrottledRequestMaxTimes':_0x1fbeb4,'retryNetworkErrorMaxTimes':_0x1d5308,'signal':_0x5beb82})['then'](_0x11aed1=>{switch(_0x11aed1['status']){case Status['Error']:return new UploadError(_0x11aed1['error'],_0x11aed1['errorCode']);case Status['Waiting']:return!0x1;case Status['Unknown']:return new UploadError('Token\x20\x22'+_0x8093db+'\x22\x20was\x20not\x20found.');case Status['Progress']:return _0x22a4d1&&('unknown'===_0x11aed1['total']?_0x22a4d1({'isComputable':!0x1}):_0x22a4d1({'isComputable':!0x0,'value':_0x11aed1['done']/_0x11aed1['total']})),!0x1;case Status['Success']:return _0x22a4d1&&_0x22a4d1({'isComputable':!0x0,'value':_0x11aed1['done']/_0x11aed1['total']}),_0x11aed1;default:throw new Error('Unknown\x20status');}}),'signal':_0x52faee});}const pushStrategy=({token:_0x3028f2,pusherKey:_0x3efc48,signal:_0x9791b1,onProgress:_0x5c077f})=>new Promise((_0xf42e17,_0x4ec117)=>{const _0x3ae584=getPusher(_0x3efc48),_0x4c67e3=_0x3ae584['onError'](_0x4ec117),_0xf10830=()=>{_0x4c67e3(),_0x3ae584['unsubscribe'](_0x3028f2);};onCancel(_0x9791b1,()=>{_0xf10830(),_0x4ec117(new CancelError('pusher\x20cancelled'));}),_0x3ae584['subscribe'](_0x3028f2,_0x342cfb=>{switch(_0x342cfb['status']){case Status['Progress']:_0x5c077f&&('unknown'===_0x342cfb['total']?_0x5c077f({'isComputable':!0x1}):_0x5c077f({'isComputable':!0x0,'value':_0x342cfb['done']/_0x342cfb['total']}));break;case Status['Success']:_0xf10830(),_0x5c077f&&_0x5c077f({'isComputable':!0x0,'value':_0x342cfb['done']/_0x342cfb['total']}),_0xf42e17(_0x342cfb);break;case Status['Error']:_0xf10830(),_0x4ec117(new UploadError(_0x342cfb['msg'],_0x342cfb['error_code']));}});}),uploadFromUrl=(_0x1dfc7c,{publicKey:_0x85a52c,fileName:_0x4d1a8f,baseURL:_0x4a77ac,baseCDN:_0x275d29,checkForUrlDuplicates:_0x264cfa,saveUrlForRecurrentUploads:_0x377be3,secureSignature:_0x49968d,secureExpire:_0x1238ec,store:_0x487f2a,signal:_0xc35ea3,onProgress:_0x230dd3,source:_0x5201cb,integration:_0x3db1ab,userAgent:_0x4a3766,retryThrottledRequestMaxTimes:_0x537e4b,pusherKey:_0x165f2d=defaultSettings['pusherKey'],metadata:_0x389ca3})=>Promise['resolve'](preconnect(_0x165f2d))['then'](()=>fromUrl(_0x1dfc7c,{'publicKey':_0x85a52c,'fileName':_0x4d1a8f,'baseURL':_0x4a77ac,'checkForUrlDuplicates':_0x264cfa,'saveUrlForRecurrentUploads':_0x377be3,'secureSignature':_0x49968d,'secureExpire':_0x1238ec,'store':_0x487f2a,'signal':_0xc35ea3,'source':_0x5201cb,'integration':_0x3db1ab,'userAgent':_0x4a3766,'retryThrottledRequestMaxTimes':_0x537e4b,'metadata':_0x389ca3}))['catch'](_0x10c9e6=>{const _0x153c6b=getPusher(_0x165f2d);return _0x153c6b?.['disconnect'](),Promise['reject'](_0x10c9e6);})['then'](_0x34d547=>_0x34d547['type']===TypeEnum['FileInfo']?_0x34d547:race([({signal:_0x507a22})=>pollStrategy({'token':_0x34d547['token'],'publicKey':_0x85a52c,'baseURL':_0x4a77ac,'integration':_0x3db1ab,'userAgent':_0x4a3766,'retryThrottledRequestMaxTimes':_0x537e4b,'onProgress':_0x230dd3,'signal':_0x507a22}),({signal:_0x4c1284})=>pushStrategy({'token':_0x34d547['token'],'pusherKey':_0x165f2d,'signal':_0x4c1284,'onProgress':_0x230dd3})],{'signal':_0xc35ea3}))['then'](_0xe3effd=>{if(_0xe3effd instanceof UploadError)throw _0xe3effd;return _0xe3effd;})['then'](_0x231b41=>isReadyPoll(_0x231b41['uuid'],{'publicKey':_0x85a52c,'baseURL':_0x4a77ac,'integration':_0x3db1ab,'userAgent':_0x4a3766,'retryThrottledRequestMaxTimes':_0x537e4b,'onProgress':_0x230dd3,'signal':_0xc35ea3}))['then'](_0xb4668a=>new UploadcareFile(_0xb4668a,{'baseCDN':_0x275d29})),memo=new WeakMap(),getBlobFromReactNativeAsset=async _0x2eb58d=>{if(memo['has'](_0x2eb58d))return memo['get'](_0x2eb58d);const _0x4cc237=await fetch(_0x2eb58d['uri'])['then'](_0x1439ec=>_0x1439ec['blob']());return memo['set'](_0x2eb58d,_0x4cc237),_0x4cc237;},getFileSize=async _0x8dc5cf=>{if(isFile(_0x8dc5cf)||isBlob(_0x8dc5cf))return _0x8dc5cf['size'];if(isReactNativeAsset(_0x8dc5cf))return(await getBlobFromReactNativeAsset(_0x8dc5cf))['size'];throw new Error('Unknown\x20file\x20type.\x20Cannot\x20determine\x20file\x20size.');},isMultipart=(_0x5d7fb0,_0x46405b=defaultSettings['multipartMinFileSize'])=>_0x5d7fb0>=_0x46405b,isUuid=_0x167a3e=>{const _0x426950=new RegExp('[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}');return!isFileData(_0x167a3e)&&_0x426950['test'](_0x167a3e);},isUrl=_0x3f970c=>{const _0x353e5b=new RegExp('^(?:\x5cw+:)?\x5c/\x5c/([^\x5cs\x5c.]+\x5c.\x5cS{2}|localhost[\x5c:?\x5cd]*)\x5cS*$');return!isFileData(_0x3f970c)&&_0x353e5b['test'](_0x3f970c);},runWithConcurrency=(_0x16deeb,_0x2124fe)=>new Promise((_0x52a4c2,_0x2f7f89)=>{const _0x7a134d=[];let _0x1347f8=!0x1,_0x4bc33b=_0x2124fe['length'];const _0x510111=[..._0x2124fe],_0x2b89fe=()=>{const _0x1b190b=_0x2124fe['length']-_0x510111['length'],_0x599bc8=_0x510111['shift']();_0x599bc8&&_0x599bc8()['then'](_0xbd012a=>{_0x1347f8||(_0x7a134d[_0x1b190b]=_0xbd012a,_0x4bc33b-=0x1,_0x4bc33b?_0x2b89fe():_0x52a4c2(_0x7a134d));})['catch'](_0x3020b1=>{_0x1347f8=!0x0,_0x2f7f89(_0x3020b1);});};for(let _0x2bdc0c=0x0;_0x2bdc0c<_0x16deeb;_0x2bdc0c++)_0x2b89fe();}),sliceChunk=(_0x14561d,_0x37eb50,_0x1721ca,_0x51bb53)=>{const _0x2dae9c=_0x51bb53*_0x37eb50,_0x41525b=Math['min'](_0x2dae9c+_0x51bb53,_0x1721ca);return _0x14561d['slice'](_0x2dae9c,_0x41525b);},prepareChunks=async(_0x318f8e,_0x27af24,_0x33354a)=>_0x49ad61=>sliceChunk(_0x318f8e,_0x49ad61,_0x27af24,_0x33354a),uploadPart=(_0x194328,_0x21f9da,{publicKey:_0xd0603,contentType:_0x395f7c,onProgress:_0x1096e6,signal:_0x516c3c,integration:_0x4260da,retryThrottledRequestMaxTimes:_0xabe48a,retryNetworkErrorMaxTimes:_0xbab098})=>multipartUpload(_0x194328,_0x21f9da,{'contentType':_0x395f7c,'onProgress':_0x1096e6,'signal':_0x516c3c,'retryThrottledRequestMaxTimes':_0xabe48a,'retryNetworkErrorMaxTimes':_0xbab098}),uploadMultipart=async(_0x61a939,{publicKey:_0xc73084,fileName:_0x51fcfc,fileSize:_0x52a7f4,baseURL:_0x10befe,secureSignature:_0x1bf6c9,secureExpire:_0x1c1c16,store:_0x28832f,signal:_0x15ce88,onProgress:_0x1762d9,source:_0x25b7a1,integration:_0x5b5d9c,userAgent:_0x317152,retryThrottledRequestMaxTimes:_0x4c28a8,retryNetworkErrorMaxTimes:_0x5a9a7b,contentType:_0xdcd3b9,multipartChunkSize:_0x506197=defaultSettings['multipartChunkSize'],maxConcurrentRequests:_0x453235=defaultSettings['maxConcurrentRequests'],baseCDN:_0xbdf5a6,metadata:_0x8c8caf})=>{const _0x3d6d1f=_0x52a7f4??await getFileSize(_0x61a939);let _0x2f475b;const _0x3c7d58=(_0x5d85f8,_0x2a05fa)=>{if(!_0x1762d9)return;_0x2f475b||(_0x2f475b=Array(_0x5d85f8)['fill'](0x0));const _0x3f164e=_0x1946dc=>_0x1946dc['reduce']((_0x14a450,_0x3e81e2)=>_0x14a450+_0x3e81e2,0x0);return _0x50abd4=>{_0x50abd4['isComputable']&&(_0x2f475b[_0x2a05fa]=_0x50abd4['value'],_0x1762d9({'isComputable':!0x0,'value':_0x3f164e(_0x2f475b)/_0x5d85f8}));};};return _0xdcd3b9||=getContentType(_0x61a939),multipartStart(_0x3d6d1f,{'publicKey':_0xc73084,'contentType':_0xdcd3b9,'fileName':_0x51fcfc||getFileName(_0x61a939),'baseURL':_0x10befe,'secureSignature':_0x1bf6c9,'secureExpire':_0x1c1c16,'store':_0x28832f,'signal':_0x15ce88,'source':_0x25b7a1,'integration':_0x5b5d9c,'userAgent':_0x317152,'retryThrottledRequestMaxTimes':_0x4c28a8,'retryNetworkErrorMaxTimes':_0x5a9a7b,'metadata':_0x8c8caf,'multipartChunkSize':_0x506197})['then'](async({uuid:_0x20c472,parts:_0x2e04b6})=>{const _0x632c08=await prepareChunks(_0x61a939,_0x3d6d1f,_0x506197);return Promise['all']([_0x20c472,runWithConcurrency(_0x453235,_0x2e04b6['map']((_0x43d2b1,_0x415324)=>()=>uploadPart(_0x632c08(_0x415324),_0x43d2b1,{'publicKey':_0xc73084,'contentType':_0xdcd3b9,'onProgress':_0x3c7d58(_0x2e04b6['length'],_0x415324),'signal':_0x15ce88,'integration':_0x5b5d9c,'retryThrottledRequestMaxTimes':_0x4c28a8,'retryNetworkErrorMaxTimes':_0x5a9a7b})))]);})['then'](([_0x224efe])=>multipartComplete(_0x224efe,{'publicKey':_0xc73084,'baseURL':_0x10befe,'source':_0x25b7a1,'integration':_0x5b5d9c,'userAgent':_0x317152,'retryThrottledRequestMaxTimes':_0x4c28a8,'retryNetworkErrorMaxTimes':_0x5a9a7b}))['then'](_0x230c59=>_0x230c59['isReady']?_0x230c59:isReadyPoll(_0x230c59['uuid'],{'publicKey':_0xc73084,'baseURL':_0x10befe,'source':_0x25b7a1,'integration':_0x5b5d9c,'userAgent':_0x317152,'retryThrottledRequestMaxTimes':_0x4c28a8,'retryNetworkErrorMaxTimes':_0x5a9a7b,'onProgress':_0x1762d9,'signal':_0x15ce88}))['then'](_0x2d1f93=>new UploadcareFile(_0x2d1f93,{'baseCDN':_0xbdf5a6}));};async function uploadFile(_0x558143,{publicKey:_0x54dc0c,fileName:_0x3fa87a,baseURL:_0x321220=defaultSettings['baseURL'],secureSignature:_0x24bc4c,secureExpire:_0x3adbc7,store:_0x5b1851,signal:_0x27839f,onProgress:_0x12ad62,source:_0x10a28e,integration:_0x274ec7,userAgent:_0x1dc92b,retryThrottledRequestMaxTimes:_0x2145da,retryNetworkErrorMaxTimes:_0x491c81,contentType:_0x2f7a25,multipartMinFileSize:_0x4841b8,multipartChunkSize:_0x541757,maxConcurrentRequests:_0x54c143,baseCDN:_0x4901e5=defaultSettings['baseCDN'],checkForUrlDuplicates:_0x14a385,saveUrlForRecurrentUploads:_0x434f53,pusherKey:_0x14bc2f,metadata:_0x21d2d3}){if(isFileData(_0x558143)){const _0x605798=await getFileSize(_0x558143);return isMultipart(_0x605798,_0x4841b8)?uploadMultipart(_0x558143,{'publicKey':_0x54dc0c,'contentType':_0x2f7a25,'multipartChunkSize':_0x541757,'fileSize':_0x605798,'fileName':_0x3fa87a,'baseURL':_0x321220,'secureSignature':_0x24bc4c,'secureExpire':_0x3adbc7,'store':_0x5b1851,'signal':_0x27839f,'onProgress':_0x12ad62,'source':_0x10a28e,'integration':_0x274ec7,'userAgent':_0x1dc92b,'maxConcurrentRequests':_0x54c143,'retryThrottledRequestMaxTimes':_0x2145da,'retryNetworkErrorMaxTimes':_0x491c81,'baseCDN':_0x4901e5,'metadata':_0x21d2d3}):uploadDirect(_0x558143,{'publicKey':_0x54dc0c,'fileName':_0x3fa87a,'contentType':_0x2f7a25,'baseURL':_0x321220,'secureSignature':_0x24bc4c,'secureExpire':_0x3adbc7,'store':_0x5b1851,'signal':_0x27839f,'onProgress':_0x12ad62,'source':_0x10a28e,'integration':_0x274ec7,'userAgent':_0x1dc92b,'retryThrottledRequestMaxTimes':_0x2145da,'retryNetworkErrorMaxTimes':_0x491c81,'baseCDN':_0x4901e5,'metadata':_0x21d2d3});}if(isUrl(_0x558143))return uploadFromUrl(_0x558143,{'publicKey':_0x54dc0c,'fileName':_0x3fa87a,'baseURL':_0x321220,'baseCDN':_0x4901e5,'checkForUrlDuplicates':_0x14a385,'saveUrlForRecurrentUploads':_0x434f53,'secureSignature':_0x24bc4c,'secureExpire':_0x3adbc7,'store':_0x5b1851,'signal':_0x27839f,'onProgress':_0x12ad62,'source':_0x10a28e,'integration':_0x274ec7,'userAgent':_0x1dc92b,'retryThrottledRequestMaxTimes':_0x2145da,'pusherKey':_0x14bc2f,'metadata':_0x21d2d3});if(isUuid(_0x558143))return uploadFromUploaded(_0x558143,{'publicKey':_0x54dc0c,'fileName':_0x3fa87a,'baseURL':_0x321220,'signal':_0x27839f,'onProgress':_0x12ad62,'source':_0x10a28e,'integration':_0x274ec7,'userAgent':_0x1dc92b,'retryThrottledRequestMaxTimes':_0x2145da,'retryNetworkErrorMaxTimes':_0x491c81,'baseCDN':_0x4901e5});throw new TypeError('File\x20uploading\x20from\x20\x22'+_0x558143+'\x22\x20is\x20not\x20supported');}class UploadcareGroup{['uuid'];['filesCount'];['totalSize'];['isStored'];['isImage'];['cdnUrl'];['files'];['createdAt'];['storedAt']=null;constructor(_0x158e4e,{baseCDN:_0x3154c3=defaultSettings['baseCDN']}={}){this['uuid']=_0x158e4e['id'],this['filesCount']=_0x158e4e['filesCount'];const _0x529188=_0x158e4e['files']['filter'](Boolean);this['totalSize']=Object['values'](_0x529188)['reduce']((_0x10fa3c,_0x2484cd)=>_0x10fa3c+_0x2484cd['size'],0x0),this['isStored']=!!_0x158e4e['datetimeStored'],this['isImage']=!!Object['values'](_0x529188)['filter'](_0x1eb733=>_0x1eb733['isImage'])['length'],this['cdnUrl']=_0x158e4e['cdnUrl'],this['files']=_0x529188['map'](_0x27194b=>new UploadcareFile(_0x27194b,{'baseCDN':_0x3154c3})),this['createdAt']=_0x158e4e['datetimeCreated'],this['storedAt']=_0x158e4e['datetimeStored'];}}const isFileDataArray=_0x173f63=>{for(const _0x26b4be of _0x173f63)if(!isFileData(_0x26b4be))return!0x1;return!0x0;},isUuidArray=_0x4d051e=>{for(const _0x13437c of _0x4d051e)if(!isUuid(_0x13437c))return!0x1;return!0x0;},isUrlArray=_0x43bb27=>{for(const _0x474974 of _0x43bb27)if(!isUrl(_0x474974))return!0x1;return!0x0;};function uploadFileGroup(_0x2bdd81,{publicKey:_0x58d8a4,fileName:_0x48580e,baseURL:_0x3ee4de=defaultSettings['baseURL'],secureSignature:_0x990b6f,secureExpire:_0x496337,store:_0x2c7399,signal:_0x1ef3ab,onProgress:_0x52bd7a,source:_0x4b643f,integration:_0x380169,userAgent:_0x184861,retryThrottledRequestMaxTimes:_0x1fb0c8,retryNetworkErrorMaxTimes:_0x32e7f0,contentType:_0x4816b4,multipartChunkSize:_0x657b38=defaultSettings['multipartChunkSize'],baseCDN:_0x318f72=defaultSettings['baseCDN'],checkForUrlDuplicates:_0x1e53e0,saveUrlForRecurrentUploads:_0x1252ca,jsonpCallback:_0x3990f6}){if(!isFileDataArray(_0x2bdd81)&&!isUrlArray(_0x2bdd81)&&!isUuidArray(_0x2bdd81))throw new TypeError('Group\x20uploading\x20from\x20\x22'+_0x2bdd81+'\x22\x20is\x20not\x20supported');let _0x1eaf81,_0x1e4c60=!0x0;const _0x1662b2=_0x2bdd81['length'],_0x3f1d71=(_0x11314e,_0x338a9b)=>{if(!_0x52bd7a)return;_0x1eaf81||(_0x1eaf81=Array(_0x11314e)['fill'](0x0));const _0x2e1d32=_0x33538e=>_0x33538e['reduce']((_0x17089c,_0x3c7ada)=>_0x17089c+_0x3c7ada)/_0x11314e;return _0x18e72d=>{if(!_0x18e72d['isComputable']||!_0x1e4c60)return _0x1e4c60=!0x1,void _0x52bd7a({'isComputable':!0x1});_0x1eaf81[_0x338a9b]=_0x18e72d['value'],_0x52bd7a({'isComputable':!0x0,'value':_0x2e1d32(_0x1eaf81)});};};return Promise['all'](_0x2bdd81['map']((_0x31f7e5,_0x287cff)=>isFileData(_0x31f7e5)||isUrl(_0x31f7e5)?uploadFile(_0x31f7e5,{'publicKey':_0x58d8a4,'fileName':_0x48580e,'baseURL':_0x3ee4de,'secureSignature':_0x990b6f,'secureExpire':_0x496337,'store':_0x2c7399,'signal':_0x1ef3ab,'onProgress':_0x3f1d71(_0x1662b2,_0x287cff),'source':_0x4b643f,'integration':_0x380169,'userAgent':_0x184861,'retryThrottledRequestMaxTimes':_0x1fb0c8,'retryNetworkErrorMaxTimes':_0x32e7f0,'contentType':_0x4816b4,'multipartChunkSize':_0x657b38,'baseCDN':_0x318f72,'checkForUrlDuplicates':_0x1e53e0,'saveUrlForRecurrentUploads':_0x1252ca})['then'](_0x24f446=>_0x24f446['uuid']):_0x31f7e5))['then'](_0x402923=>group(_0x402923,{'publicKey':_0x58d8a4,'baseURL':_0x3ee4de,'jsonpCallback':_0x3990f6,'secureSignature':_0x990b6f,'secureExpire':_0x496337,'signal':_0x1ef3ab,'source':_0x4b643f,'integration':_0x380169,'userAgent':_0x184861,'retryThrottledRequestMaxTimes':_0x1fb0c8,'retryNetworkErrorMaxTimes':_0x32e7f0})['then'](_0x176564=>new UploadcareGroup(_0x176564,{'baseCDN':_0x318f72}))['then'](_0x4c739d=>(_0x52bd7a&&_0x52bd7a({'isComputable':!0x0,'value':0x1}),_0x4c739d)));}class Queue{['_concurrency']=0x1;['_pending']=[];['_running']=0x0;['_resolvers']=new Map();['_rejectors']=new Map();constructor(_0x2f6dd8){this['_concurrency']=_0x2f6dd8;}['_run'](){const _0x2a7777=this['_concurrency']-this['_running'];for(let _0x51227d=0x0;_0x51227d<_0x2a7777;_0x51227d++){const _0x19169b=this['_pending']['shift']();if(!_0x19169b)return;const _0x44a2e6=this['_resolvers']['get'](_0x19169b),_0x4cc2e9=this['_rejectors']['get'](_0x19169b);if(!_0x44a2e6||!_0x4cc2e9)throw new Error('Unexpected\x20behavior:\x20resolver\x20or\x20rejector\x20is\x20undefined');this['_running']+=0x1,_0x19169b()['finally'](()=>{this['_resolvers']['delete'](_0x19169b),this['_rejectors']['delete'](_0x19169b),this['_running']-=0x1,this['_run']();})['then'](_0x51c438=>_0x44a2e6(_0x51c438))['catch'](_0x78962c=>_0x4cc2e9(_0x78962c));}}['add'](_0x17dc96){return new Promise((_0x1a4b1c,_0x475902)=>{this['_resolvers']['set'](_0x17dc96,_0x1a4b1c),this['_rejectors']['set'](_0x17dc96,_0x475902),this['_pending']['push'](_0x17dc96),this['_run']();});}get['pending'](){return this['_pending']['length'];}get['running'](){return this['_running'];}set['concurrency'](_0x3afa7f){this['_concurrency']=_0x3afa7f,this['_run']();}get['concurrency'](){return this['_concurrency'];}}const blockCtx=()=>({}),activityBlockCtx=_0x36a92d=>({...blockCtx(),'*currentActivity':null,'*currentActivityParams':{},'*history':[],'*historyBack':null,'*closeModal':()=>{_0x36a92d['modalManager']['close'](_0x36a92d['$']['*currentActivity']),_0x36a92d['set$']({'*currentActivity':null});}}),uploaderBlockCtx=_0x1859f1=>({...activityBlockCtx(_0x1859f1),'*commonProgress':0x0,'*uploadList':[],'*uploadQueue':new Queue(0x1),'*collectionErrors':[],'*collectionState':null,'*groupInfo':null,'*uploadTrigger':new Set(),'*secureUploadsManager':null});var en={'locale-id':'en','social-source-lang':'en','upload-file':'Upload\x20file','upload-files':'Upload\x20files','choose-file':'Choose\x20file','choose-files':'Choose\x20files','drop-files-here':'Drop\x20files\x20here','select-file-source':'Select\x20file\x20source','selected':'Selected','upload':'Upload','add-more':'Add\x20more','cancel':'Cancel','start-from-cancel':'Cancel','clear':'Clear','camera-shot':'Shot','upload-url':'Import','upload-url-placeholder':'Paste\x20link\x20here','edit-image':'Edit\x20image','edit-detail':'Details','back':'Back','done':'Done','ok':'Ok','remove-from-list':'Remove','no':'No','yes':'Yes','confirm-your-action':'Confirm\x20your\x20action','are-you-sure':'Are\x20you\x20sure?','selected-count':'{{count}}\x20of\x20{{total}}\x20selected','select-all':'Select\x20all','deselect-all':'Deselect\x20all','upload-error':'Upload\x20error','validation-error':'Validation\x20error','no-files':'No\x20files\x20selected','browse':'Browse','not-uploaded-yet':'Not\x20uploaded\x20yet...','file__one':'file','file__other':'files','error__one':'error','error__other':'errors','header-uploading':'Uploading\x20{{count}}\x20{{plural:file(count)}}','header-failed':'{{count}}\x20{{plural:error(count)}}','header-succeed':'{{count}}\x20{{plural:file(count)}}\x20uploaded','header-total':'{{count}}\x20{{plural:file(count)}}\x20selected','src-type-local':'From\x20device','src-type-from-url':'From\x20link','src-type-camera':'Camera','src-type-mobile-video-camera':'Video','src-type-mobile-photo-camera':'Photo','src-type-draw':'Draw','src-type-facebook':'Facebook','src-type-dropbox':'Dropbox','src-type-gdrive':'Google\x20Drive','src-type-ngdrive':'Google\x20Drive','src-type-gphotos':'Google\x20Photos','src-type-flickr':'Flickr','src-type-vk':'VK','src-type-evernote':'Evernote','src-type-box':'Box','src-type-onedrive':'Onedrive','src-type-huddle':'Huddle','src-type-other':'Other','caption-from-url':'Import\x20from\x20link','caption-camera':'Camera','caption-draw':'Draw','caption-edit-file':'Edit\x20file','file-no-name':'No\x20name...','toggle-fullscreen':'Toggle\x20fullscreen','toggle-guides':'Toggle\x20guides','rotate':'Rotate','flip-vertical':'Flip\x20vertical','flip-horizontal':'Flip\x20horizontal','apply':'Apply','brightness':'Brightness','contrast':'Contrast','saturation':'Saturation','exposure':'Exposure','gamma':'Gamma','vibrance':'Vibrance','warmth':'Warmth','enhance':'Enhance','original':'Original','resize':'Resize\x20image','crop':'Crop','select-color':'Select\x20color','text':'Text','draw':'Draw','cancel-edit':'Cancel\x20edit','tab-view':'Preview','tab-details':'Details','file-name':'Name','file-size':'Size','cdn-url':'CDN\x20URL','file-size-unknown':'Unknown','camera-permissions-denied':'Camera\x20access\x20denied','camera-permissions-prompt':'Please\x20allow\x20access\x20to\x20the\x20camera','camera-permissions-request':'Request\x20access','files-count-limit-error-title':'Files\x20count\x20limit\x20overflow','files-count-limit-error-too-few':'You’ve\x20chosen\x20{{total}}\x20{{plural:file(total)}}.\x20At\x20least\x20{{min}}\x20{{plural:file(min)}}\x20required.','files-count-limit-error-too-many':'You’ve\x20chosen\x20too\x20many\x20files.\x20{{max}}\x20{{plural:file(max)}}\x20is\x20maximum.','files-max-size-limit-error':'File\x20is\x20too\x20big.\x20Max\x20file\x20size\x20is\x20{{maxFileSize}}.','has-validation-errors':'File\x20validation\x20error\x20occurred.\x20Please,\x20check\x20your\x20files\x20before\x20upload.','images-only-accepted':'Only\x20image\x20files\x20are\x20accepted.','file-type-not-allowed':'Uploading\x20of\x20these\x20file\x20types\x20is\x20not\x20allowed.','some-files-were-not-uploaded':'Some\x20files\x20were\x20not\x20uploaded.','file-item-edit-button':'Edit','file-item-remove-button':'Remove','a11y-editor-tab-filters':'Filters','a11y-editor-tab-tuning':'Tuning','a11y-editor-tab-crop':'Crop','a11y-activity-header-button-close':'Close','flip':'Flip','mirror':'Mirror','a11y-cloud-editor-apply-filter':'Apply\x20{{name}}\x20filter','a11y-cloud-editor-apply-crop':'Apply\x20{{name}}\x20operation','a11y-cloud-editor-apply-tuning':'Apply\x20{{name}}\x20tuning','finished':'Finished','failed':'Failed','uploading':'Uploading','idle':'Idle','a11y-file-item-status':'File\x20{{fileName}}\x20in\x20status\x20{{status}}','waiting-for':'Waiting\x20for\x20{{source}}','queued':'Queued'};const localeRegistry=new Map(),localeResolvers=new Map(),defineLocaleSync=(_0x3cf7ee,_0xe3ae2d)=>{localeRegistry['has'](_0x3cf7ee)&&console['log']('Locale\x20'+_0x3cf7ee+'\x20is\x20already\x20defined.\x20Overwriting...'),localeRegistry['set'](_0x3cf7ee,{...en,..._0xe3ae2d});},defineLocaleAsync=(_0x4538a3,_0x21096d)=>{localeResolvers['set'](_0x4538a3,_0x21096d);},defineLocale=(_0x1135b3,_0x2e8556)=>{'function'==typeof _0x2e8556?defineLocaleAsync(_0x1135b3,_0x2e8556):defineLocaleSync(_0x1135b3,_0x2e8556);},resolveLocaleDefinition=async _0x523ee8=>{if(!localeRegistry['has'](_0x523ee8)){if(!localeResolvers['has'](_0x523ee8))throw new Error('Locale\x20'+_0x523ee8+'\x20is\x20not\x20defined');const _0x12415b=localeResolvers['get'](_0x523ee8),_0x331738=await _0x12415b();defineLocaleSync(_0x523ee8,_0x331738);}return localeRegistry['get'](_0x523ee8);};defineLocale('en',en);const localeStateKey=_0x2ca6c6=>'*l10n/'+_0x2ca6c6,DEFAULT_LOCALE='en';class LocaleManager{['_blockInstance']=null;['_localeName']='';['_callbacks']=new Set();['_boundBlocks']=new Map();constructor(_0x588a73){this['_blockInstance']=_0x588a73;for(let [_0x39f283,_0x20b794]of Object['entries'](en)){const _0x2a1207=!this['_blockInstance']['has'](localeStateKey(_0x39f283))||!this['_blockInstance']['$'][localeStateKey(_0x39f283)];this['_blockInstance']['add'](localeStateKey(_0x39f283),_0x20b794,_0x2a1207);}setTimeout(()=>{_0x588a73['subConfigValue']('localeName',async _0x530f26=>{if(!this['_blockInstance']||!_0x530f26)return;this['_localeName']=_0x530f26;const _0x12a515=await resolveLocaleDefinition(_0x530f26);if(_0x530f26!==DEFAULT_LOCALE&&this['_localeName']!==_0x530f26)return;const _0x5f722b=this['_blockInstance']['cfg']['localeDefinitionOverride']?.[_0x530f26];for(const [_0x4387b7,_0x4497d5]of Object['entries'](_0x12a515)){const _0x574f59=_0x5f722b?.[_0x4387b7];this['_blockInstance']['add'](localeStateKey(_0x4387b7),_0x574f59??_0x4497d5,!0x0);for(const _0x4cdcb5 of this['_callbacks'])_0x4cdcb5();}}),_0x588a73['subConfigValue']('localeDefinitionOverride',_0x25c29d=>{if(!_0x25c29d)return;const _0x4d8b59=_0x25c29d[this['_localeName']];if(_0x4d8b59)for(const [_0x3b4b65,_0x5e78b3]of Object['entries'](_0x4d8b59)){this['_blockInstance']?.['add'](localeStateKey(_0x3b4b65),_0x5e78b3,!0x0);for(const _0x36f0d0 of this['_callbacks'])_0x36f0d0();}});});}['onLocaleChange'](_0x790c67){const _0x244e89=debounce(_0x790c67,0x0);return this['_callbacks']['add'](_0x244e89),()=>{this['_callbacks']['delete'](_0x244e89);};}['bindL10n'](_0x5c90fd,_0x40f655,_0x15d882){_0x5c90fd['$'][_0x40f655]=_0x15d882(),this['_boundBlocks']['has'](_0x5c90fd)||this['_boundBlocks']['set'](_0x5c90fd,new Map()),this['_boundBlocks']['get'](_0x5c90fd)?.['get'](_0x40f655)?.();const _0x517304=this['onLocaleChange'](()=>{_0x5c90fd['$'][_0x40f655]=_0x15d882();});this['_boundBlocks']['get'](_0x5c90fd)?.['set'](_0x40f655,_0x517304);}['destroyL10nBindings'](_0x338fd7){const _0x397400=this['_boundBlocks']['get'](_0x338fd7);if(_0x397400){for(const _0x3e0d41 of _0x397400['values']())_0x3e0d41();this['_boundBlocks']['delete'](_0x338fd7);}}['destroy'](){this['_callbacks']['clear']();}}function l10nProcessor(_0x296a99,_0x44610d){[..._0x296a99['querySelectorAll']('[l10n]')]['forEach'](_0x2b08ed=>{let _0x515b4d=_0x2b08ed['getAttribute']('l10n');if(!_0x515b4d)return;const _0x30559e=_0x515b4d['split'](';');for(const _0x46aa1c of _0x30559e)_0x46aa1c&&locale(_0x2b08ed,_0x46aa1c,_0x44610d);});}const locale=(_0x2e76ca,_0xad37d2,_0x184952)=>{let _0x16a654='textContent',_0x234f3b=!0x1;if(_0xad37d2['includes'](':')){const _0x230184=_0xad37d2['split'](':');_0x16a654=_0x230184[0x0],_0xad37d2=_0x230184[0x1],_0x16a654['startsWith']('@')&&(_0x16a654=_0x16a654['slice'](0x1),_0x234f3b=!0x0);}const _0x3e36e6=_0xad37d2;_0x184952['has'](_0x3e36e6)&&_0x184952['sub'](_0x3e36e6,_0x2c3ad1=>{if(!_0x2c3ad1)return;_0x184952['l10nProcessorSubs']['has'](_0x3e36e6)||_0x184952['l10nProcessorSubs']['set'](_0x3e36e6,new Set());const _0x26d1d1=_0x184952['l10nProcessorSubs']['get'](_0x3e36e6);_0x26d1d1?.['forEach'](_0x43861d=>{_0x43861d['remove'](),_0x26d1d1['delete'](_0x43861d),_0x184952['allSubs']['delete'](_0x43861d);});const _0x1ffc1c=localeStateKey(_0x2c3ad1)['replace']('*','');_0x184952['nodeCtx']['has'](_0x1ffc1c)||_0x184952['nodeCtx']['add'](_0x1ffc1c,_0x2c3ad1);const _0x4b5ba6=_0x184952['nodeCtx']['sub'](_0x1ffc1c,()=>{_0x2e76ca[_0x16a654]=_0x184952['l10n'](_0x2c3ad1);});_0x26d1d1?.['add'](_0x4b5ba6),_0x184952['allSubs']['add'](_0x4b5ba6),_0x2e76ca['removeAttribute']('l10n');});const _0x513ce3=localeStateKey(_0xad37d2);_0x184952['has'](_0x513ce3)||_0x184952['add'](_0x513ce3,''),_0x184952['sub'](_0x513ce3,()=>{_0x234f3b?_0x2e76ca['setAttribute'](_0x16a654,_0x184952['l10n'](_0xad37d2)):_0x2e76ca[_0x16a654]=_0x184952['l10n'](_0xad37d2);}),_0x2e76ca['removeAttribute']('l10n');},sharedConfigKey=_0x3be294=>'*cfg/'+_0x3be294,ROLES={'button':['toolbar'],'checkbox':['toolbar'],'menuitem':['menu','menubar'],'option':['listbox'],'tab':['tablist']};function focus(_0x26380c,_0x4370dd){_0x4370dd['tabIndex']=0x0,_0x4370dd['focus'](),_0x26380c['tabIndex']=-0x1;}function findGroupNodeByEventTarget(_0x2ff6a0){let _0x5787f0=_0x2ff6a0['role']||_0x2ff6a0['type']||_0x2ff6a0['tagName'];if(!_0x5787f0)return null;let _0x51666d=ROLES[_0x5787f0['toLowerCase']()];if(!_0x51666d)return null;for(let _0x4abe3b of _0x51666d){let _0x1fe22e=_0x2ff6a0['closest']('[role='+_0x4abe3b+']');if(_0x1fe22e)return _0x1fe22e;}}function getItems(_0x8132f2,_0x10dff2){return'toolbar'===_0x10dff2['role']?getToolbarItems(_0x10dff2):_0x10dff2['querySelectorAll']('[role='+_0x8132f2['role']+']');}function getToolbarItems(_0x378da4){return[..._0x378da4['querySelectorAll']('*')]['filter'](_0x2bdf8c=>'button'===_0x2bdf8c['role']||'button'===_0x2bdf8c['type']||'checkbox'===_0x2bdf8c['role']||'checkbox'===_0x2bdf8c['type']);}function isHorizontalOrientation(_0x533ec3){let _0x2d86fe=_0x533ec3['getAttribute']('aria-orientation');if('vertical'===_0x2d86fe)return!0x1;if('horizontal'===_0x2d86fe)return!0x0;let _0x33ff36=_0x533ec3['role'];return'menubar'===_0x33ff36||'tablist'===_0x33ff36||'toolbar'===_0x33ff36;}function focusGroupKeyUX(_0x36b74f){return _0x27a02e=>{let _0x51397c=!0x1,_0x129921=0x0,_0x4d78d4='';function _0x5896a8(_0x58e498){let _0x447ba6=findGroupNodeByEventTarget(_0x58e498['target']);if(!_0x447ba6)return void _0x19c85c();let _0x36d9e1=getItems(_0x58e498['target'],_0x447ba6),_0x52d933=Array['from'](_0x36d9e1)['indexOf'](_0x58e498['target']),_0x10282f='ArrowDown',_0x4c4e7c='ArrowUp';if(isHorizontalOrientation(_0x447ba6)&&('rtl'===_0x27a02e['document']['dir']?(_0x10282f='ArrowLeft',_0x4c4e7c='ArrowRight'):(_0x10282f='ArrowRight',_0x4c4e7c='ArrowLeft')),_0x58e498['key']===_0x10282f)_0x58e498['preventDefault'](),focus(_0x58e498['target'],_0x36d9e1[_0x52d933+0x1]||_0x36d9e1[0x0]);else{if(_0x58e498['key']===_0x4c4e7c)_0x58e498['preventDefault'](),focus(_0x58e498['target'],_0x36d9e1[_0x52d933-0x1]||_0x36d9e1[_0x36d9e1['length']-0x1]);else{if('Home'===_0x58e498['key'])_0x58e498['preventDefault'](),focus(_0x58e498['target'],_0x36d9e1[0x0]);else{if('End'===_0x58e498['key'])_0x58e498['preventDefault'](),focus(_0x58e498['target'],_0x36d9e1[_0x36d9e1['length']-0x1]);else{if(0x1===_0x58e498['key']['length']&&'tablist'!==_0x447ba6['role']){let _0x13e555=Date['now']();_0x13e555-_0x129921<=0x12c?_0x4d78d4+=_0x58e498['key']['toLowerCase']():_0x4d78d4=_0x58e498['key']['toLowerCase'](),_0x129921=_0x13e555;let _0x53e8cd=Array['from'](_0x36d9e1)['find'](_0x5ec77b=>_0x5ec77b['textContent']?.['trim']()?.['toLowerCase']()?.['startsWith'](_0x4d78d4));_0x53e8cd&&(_0x58e498['preventDefault'](),focus(_0x58e498['target'],_0x53e8cd));}}}}}}function _0x19c85c(){_0x51397c=!0x1,_0x27a02e['removeEventListener']('keydown',_0x5896a8);}function _0x34fcdb(_0x5630c1){let _0x46ddff=findGroupNodeByEventTarget(_0x5630c1['target']);if(_0x46ddff){_0x51397c||(_0x51397c=!0x0,_0x27a02e['addEventListener']('keydown',_0x5896a8));let _0xa1b9f8=getItems(_0x5630c1['target'],_0x46ddff);for(let _0x32a3c8 of _0xa1b9f8)_0x32a3c8!==_0x5630c1['target']&&_0x32a3c8['setAttribute']('tabindex',-0x1);}else _0x51397c&&_0x19c85c();}function _0x48abee(_0x119a5c){_0x119a5c['relatedTarget']&&_0x119a5c['relatedTarget']!==_0x27a02e['document']||_0x19c85c();}function _0x212861(_0x1bcfc7){let _0x317594=findGroupNodeByEventTarget(_0x1bcfc7['target']);if(_0x317594){let _0x1e94de=getItems(_0x1bcfc7['target'],_0x317594);for(let _0x1af4db of _0x1e94de)_0x1af4db!==_0x1bcfc7['target']&&_0x1af4db['setAttribute']('tabindex',-0x1);_0x1bcfc7['target']['setAttribute']('tabindex',0x0);}}return _0x27a02e['addEventListener']('click',_0x212861),_0x27a02e['addEventListener']('focusin',_0x34fcdb),_0x27a02e['addEventListener']('focusout',_0x48abee),()=>{_0x19c85c(),_0x27a02e['removeEventListener']('click',_0x212861),_0x27a02e['removeEventListener']('focusin',_0x34fcdb),_0x27a02e['removeEventListener']('focusout',_0x48abee);};};}function hiddenKeyUX(){return _0x418309=>{let _0x18b2b0,_0x67bc3f;function _0x3a3784(_0x4d374b){if('true'===_0x4d374b['target']['getAttribute']('aria-hidden')){_0x18b2b0=_0x4d374b['target'],_0x18b2b0['setAttribute']('aria-hidden','false'),_0x67bc3f=_0x18b2b0['hidden'],_0x67bc3f&&(_0x18b2b0['hidden']=!0x1);let _0x5ed987=_0x4d374b['target']['querySelector']('a,\x20button,\x20select,\x20textarea,\x20input:not([type=radio]),\x20[type=radio]:checked,\x20[tabindex]:not([tabindex=\x22-1\x22])');_0x5ed987&&(_0x5ed987['tabIndex']=0x0);}}function _0x4a10e2(_0x38c542){!_0x18b2b0||!_0x18b2b0['contains'](_0x38c542['target'])||_0x38c542['relatedTarget']&&_0x18b2b0['contains'](_0x38c542['relatedTarget'])||(_0x38c542['target']['tabIndex']=-0x1,_0x18b2b0['setAttribute']('aria-hidden','true'),_0x67bc3f&&(_0x18b2b0['hidden']=!0x0),_0x18b2b0=null);}return _0x418309['addEventListener']('keyuxJump',_0x3a3784),_0x418309['addEventListener']('focusout',_0x4a10e2),()=>{_0x418309['removeEventListener']('keyuxJump',_0x3a3784),_0x418309['removeEventListener']('focusout',_0x4a10e2);};};}function jumpKeyUX(){return _0x567bc9=>{let _0x2f0dd0=[];function _0x458bdf(){let _0x558bae=_0x2f0dd0['pop']();if(!_0x558bae)return void _0x567bc9['document']['activeElement']['blur']();let _0x1cb6fc=_0x558bae['deref']();_0x1cb6fc&&_0x1cb6fc['isConnected']?_0x1cb6fc['focus']():_0x458bdf();}let _0x1d65e4,_0x26b95e=0x0;function _0x403c4a(_0x513373){clearInterval(_0x1d65e4);let _0x18bfa5=_0x513373['getAttribute']('aria-controls');_0x1d65e4=setInterval(()=>{if(_0x26b95e++>0x32)return void clearInterval(_0x1d65e4);let _0x39cf20=_0x567bc9['document']['getElementById'](_0x18bfa5);if(_0x39cf20){let _0x25555c=_0x39cf20['querySelector']('a,\x20button,\x20select,\x20textarea,\x20input:not([type=radio]),\x20[type=radio]:checked,\x20[tabindex]:not([tabindex=\x22-1\x22])');_0x25555c&&(clearInterval(_0x1d65e4),_0x39cf20['dispatchEvent'](new _0x567bc9['CustomEvent']('keyuxJump',{'bubbles':!0x0})),function(_0x440a60){let _0x4b6044=_0x567bc9['document']['activeElement'];_0x4b6044&&_0x4b6044!==_0x567bc9['document']['body']&&_0x2f0dd0['push'](new WeakRef(_0x4b6044)),_0x440a60['focus']({'focusVisible':!0x0});}(_0x25555c));}},0x32);}function _0x5286f4(_0x559ee6){_0x559ee6['target']['getAttribute']('aria-controls')&&'Enter'===_0x559ee6['key']&&_0x403c4a(_0x559ee6['target']),'Escape'===_0x559ee6['key']&&_0x458bdf();}return _0x567bc9['addEventListener']('keydown',_0x5286f4),()=>{_0x567bc9['removeEventListener']('keydown',_0x5286f4);};};}function pressKeyUX(_0x33768b){let _0x1a732c,_0x2e9fd4,_0x3eea21=_0x33768b['split']('\x20');function _0x51f771(_0x45d557){'Enter'!==_0x45d557['key']||'BUTTON'!==_0x45d557['target']['tagName']&&'A'!==_0x45d557['target']['tagName']||(_0x2e896d(),_0x45d557['target']['classList']['add'](..._0x3eea21),_0x1a732c=_0x45d557['target'],_0x2e9fd4=_0x45d557['target']);}function _0x2e896d(){_0x1a732c&&_0x1a732c['classList']['remove'](..._0x3eea21),_0x2e9fd4=null;}function _0x3a56a1(_0x15dd89){0x0===_0x15dd89['clientX']&&0x0===_0x15dd89['clientY']&&_0x2e9fd4!==_0x15dd89['target']&&(_0x2e896d(),_0x15dd89['target']['classList']['add'](..._0x3eea21),_0x1a732c=_0x15dd89['target']);}return _0x253359=>(_0x253359['addEventListener']('click',_0x3a56a1),_0x253359['addEventListener']('keydown',_0x51f771),_0x253359['addEventListener']('keyup',_0x2e896d),()=>{_0x253359['removeEventListener']('click',_0x3a56a1),_0x253359['removeEventListener']('keydown',_0x51f771),_0x253359['removeEventListener']('keyup',_0x2e896d);});}function startKeyUX(_0x553d33,_0x1d25b6){let _0x5cbd5b=_0x1d25b6['map'](_0x1abb44=>_0x1abb44(_0x553d33));return()=>{_0x5cbd5b['forEach'](_0x2b0914=>_0x2b0914());};}class ScopedMinimalWindow{['_listeners']=new Map();['_scope']=[];['addEventListener'](_0x2ba240,_0x350287){const _0x4bfc80=_0x1f5b62=>{const _0x450004=_0x1f5b62['target'];_0x450004&&this['_scope']['some'](_0x2578a8=>_0x2578a8===_0x1f5b62['target']||_0x2578a8['contains'](_0x450004))&&_0x350287(_0x1f5b62);};this['_listeners']['set'](_0x350287,_0x4bfc80),window['addEventListener'](_0x2ba240,_0x4bfc80);}['removeEventListener'](_0x238243,_0x471714){const _0x2b28da=this['_listeners']['get'](_0x471714);_0x2b28da&&window['removeEventListener'](_0x238243,_0x2b28da),this['_listeners']['delete'](_0x471714);}get['CustomEvent'](){return window['CustomEvent'];}get['document'](){return window['document'];}get['navigator'](){return window['navigator'];}['registerScope'](_0xe1d98d){this['_scope']['push'](_0xe1d98d);}['destroy'](){this['_scope']=[],this['_listeners']['forEach']((_0x43b94e,_0x3a4617)=>{window['removeEventListener']('keydown',_0x43b94e),window['removeEventListener']('keyup',_0x43b94e),this['_listeners']['delete'](_0x3a4617);});}}class A11y{['_destroyKeyUX'];['_scopedWindow'];constructor(){this['_scopedWindow']=new ScopedMinimalWindow(),this['_destroyKeyUX']=startKeyUX(this['_scopedWindow'],[focusGroupKeyUX(),pressKeyUX('is-pressed'),jumpKeyUX(),hiddenKeyUX()]);}['registerBlock'](_0x250ad6){this['_scopedWindow']['registerScope'](_0x250ad6);}['destroy'](){this['_destroyKeyUX']?.(),this['_scopedWindow']['destroy']();}}const ModalEvents=Object['freeze']({'ADD':'modal:add','DELETE':'modal:delete','OPEN':'modal:open','CLOSE':'modal:close','CLOSE_ALL':'modal:closeAll','DESTROY':'modal:destroy'});class ModalManager{['_modals']=new Map();['_activeModals']=new Set();['_subscribers']=new Map();constructor(_0x430608){this['_block']=_0x430608;}['_debugPrint'](..._0x3134a0){this['_block']['debugPrint']('[modal-manager]',..._0x3134a0);}['registerModal'](_0xb185dc,_0x5cc088){this['_modals']['set'](_0xb185dc,_0x5cc088),this['_notify'](ModalEvents['ADD'],{'id':_0xb185dc,'modal':_0x5cc088});}['deleteModal'](_0x4db383){if(!this['_modals']['has'](_0x4db383))return!0x1;const _0x5b0434=this['_modals']['get'](_0x4db383);return this['_modals']['delete'](_0x4db383),this['_activeModals']['delete'](_0x4db383),this['_notify'](ModalEvents['DELETE'],{'id':_0x4db383,'modal':_0x5b0434}),!0x0;}['open'](_0x39cdad){if(!this['_modals']['has'](_0x39cdad))return this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x39cdad+'\x22\x20not\x20found'),!0x1;const _0x265133=this['_modals']['get'](_0x39cdad);return this['_activeModals']['add'](_0x39cdad),this['_notify'](ModalEvents['OPEN'],{'modal':_0x265133,'id':_0x39cdad}),!0x0;}['close'](_0x4a7b4f){if(!this['_modals']['has'](_0x4a7b4f)||!this['_activeModals']['has'](_0x4a7b4f))return this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x4a7b4f+'\x22\x20not\x20found\x20or\x20not\x20active'),!0x1;const _0x6b6661=this['_modals']['get'](_0x4a7b4f);return this['_activeModals']['delete'](_0x4a7b4f),this['_notify'](ModalEvents['CLOSE'],{'id':_0x4a7b4f,'modal':_0x6b6661}),!0x0;}['toggle'](_0x1c428c){return this['_modals']['has'](_0x1c428c)?this['_activeModals']['has'](_0x1c428c)?this['close'](_0x1c428c):this['open'](_0x1c428c):(this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x1c428c+'\x22\x20not\x20found'),!0x1);}get['hasActiveModals'](){return this['_activeModals']['size']>0x0;}['back'](){if(0x0===this['_activeModals']['size'])return this['_debugPrint']('No\x20active\x20modals\x20to\x20go\x20back\x20from'),!0x1;const _0x118704=Array['from'](this['_activeModals'])['pop']();return this['close'](_0x118704);}['closeAll'](){const _0x1e1a8f=this['_activeModals']['size'];return this['_activeModals']['clear'](),this['_notify'](ModalEvents['CLOSE_ALL'],{}),_0x1e1a8f;}['subscribe'](_0x782263,_0x1cb90b){return this['_subscribers']['has'](_0x782263)||this['_subscribers']['set'](_0x782263,new Set()),this['_subscribers']['get'](_0x782263)?.['add'](_0x1cb90b),()=>this['unsubscribe'](_0x782263,_0x1cb90b);}['unsubscribe'](_0x23060f,_0x2d14db){this['_subscribers']['has'](_0x23060f)&&this['_subscribers']['get'](_0x23060f)?.['delete'](_0x2d14db);}['_notify'](_0x5afdce,_0x58d0c5){if(this['_subscribers']['has'](_0x5afdce)){for(const _0x5bce53 of this['_subscribers']['get'](_0x5afdce)??new Set())try{_0x5bce53(_0x58d0c5);}catch(_0x51f2bd){this['_debugPrint']('Error\x20in\x20modal\x20subscriber:',_0x51f2bd);}}}['destroy'](){this['closeAll'](),this['_modals']['clear'](),this['_subscribers']['clear'](),this['_notify'](ModalEvents['DESTROY'],{});}}function testModeProcessor(_0x3a6bfe,_0xd63e00){const _0xb68bd=_0x3a6bfe['querySelectorAll']('[data-testid]');if(0x0===_0xb68bd['length'])return;const _0x49dbef=new WeakMap();for(const _0x43ff7c of _0xb68bd){const _0x340cef=_0x43ff7c['getAttribute']('data-testid');_0x340cef&&_0x49dbef['set'](_0x43ff7c,_0x340cef);}_0xd63e00['subConfigValue']('testMode',_0x20a75f=>{if(!_0x20a75f){for(const _0x1dc4d6 of _0xb68bd)_0x1dc4d6['removeAttribute']('data-testid');return;}const _0x1c950e=_0xd63e00['testId'];for(const _0x33f14f of _0xb68bd){const _0x2423c6=_0x49dbef['get'](_0x33f14f);_0x2423c6&&_0x33f14f['setAttribute']('data-testid',_0x1c950e+'--'+_0x2423c6);}});}const TAG_PREFIX='uc-';class Block extends BaseComponent{static ['StateConsumerScope']=null;static ['styleAttrs']=[];['requireCtxName']=!0x1;['activityType']=null;['init$']=blockCtx();['l10n'](_0x531e97,_0x3bf1e8={}){if(!_0x531e97)return'';let _0x5d311a=this['$'][localeStateKey(_0x531e97)]||_0x531e97,_0x24b1db=getPluralObjects(_0x5d311a);for(let _0x41f2d1 of _0x24b1db)_0x3bf1e8[_0x41f2d1['variable']]=this['pluralize'](_0x41f2d1['pluralKey'],Number(_0x3bf1e8[_0x41f2d1['countVariable']]));return applyTemplateData(_0x5d311a,_0x3bf1e8);}['pluralize'](_0x47b853,_0x54bc8d){const _0x572ddc=this['l10n']('locale-id')||'en',_0x4798a4=getPluralForm(_0x572ddc,_0x54bc8d);return this['l10n'](_0x47b853+'__'+_0x4798a4);}['bindL10n'](_0x1ce6ed,_0x6eb592){this['localeManager']?.['bindL10n'](this,_0x1ce6ed,_0x6eb592);}constructor(){super(),this['l10nProcessorSubs']=new Map(),this['addTemplateProcessor'](l10nProcessor),this['addTemplateProcessor'](testModeProcessor);}['emit'](_0x324a7f,_0x285e68,_0x66d717){const _0x4be3e5=this['has']('*eventEmitter')&&this['$']['*eventEmitter'];_0x4be3e5&&_0x4be3e5['emit'](_0x324a7f,_0x285e68,_0x66d717);}['hasBlockInCtx'](_0x258b44){for(let _0x151ead of this['blocksRegistry'])if(_0x258b44(_0x151ead))return!0x0;return!0x1;}['setOrAddState'](_0x411d7,_0x840cb5){this['add$']({[_0x411d7]:_0x840cb5},!0x0);}['connectedCallback'](){this['constructor']['styleAttrs']['forEach'](_0x521d09=>{this['setAttribute'](_0x521d09,'');}),this['hasAttribute']('retpl')&&(this['constructor']['template']=null,this['processInnerHtml']=!0x0),this['requireCtxName']?waitForAttribute({'element':this,'attribute':'ctx-name','onSuccess':()=>{super['connectedCallback']();},'onTimeout':()=>{console['error']('Attribute\x20`ctx-name`\x20is\x20required\x20and\x20it\x20is\x20not\x20set.');}}):super['connectedCallback'](),WindowHeightTracker['registerClient'](this);}['disconnectedCallback'](){super['disconnectedCallback'](),WindowHeightTracker['unregisterClient'](this);}['initCallback'](){this['has']('*blocksRegistry')||this['add']('*blocksRegistry',new Set()),this['$']['*blocksRegistry']['add'](this),this['has']('*eventEmitter')||this['add']('*eventEmitter',new EventEmitter(this['debugPrint']['bind'](this))),this['has']('*localeManager')||this['add']('*localeManager',new LocaleManager(this)),this['has']('*a11y')||this['add']('*a11y',new A11y()),this['has']('*modalManager')||this['add']('*modalManager',new ModalManager(this)),this['sub'](localeStateKey('locale-id'),_0x2afb46=>{const _0x3b0043=getLocaleDirection(_0x2afb46);this['style']['direction']='ltr'===_0x3b0043?'':_0x3b0043;}),this['subConfigValue']('testMode',_0x10c059=>{_0x10c059&&this['testId']?this['setAttribute']('data-testid',this['testId']):this['removeAttribute']('data-testid');});}get['testId'](){return window['customElements']['getName'](this['constructor']);}get['modalManager'](){return this['has']('*modalManager')&&this['$']['*modalManager'];}get['localeManager'](){return this['has']('*localeManager')?this['$']['*localeManager']:null;}get['a11y'](){return this['has']('*a11y')?this['$']['*a11y']:null;}get['blocksRegistry'](){return this['$']['*blocksRegistry'];}['destroyCallback'](){super['destroyCallback']();let _0x379f7e=this['blocksRegistry'];_0x379f7e?.['delete'](this),this['localeManager']?.['destroyL10nBindings'](this),this['l10nProcessorSubs']=new Map(),Data['deleteCtx'](this),0x0===_0x379f7e?.['size']&&setTimeout(()=>{this['destroyCtxCallback']();},0x0);}['destroyCtxCallback'](){Data['deleteCtx'](this['ctxName']),this['localeManager']?.['destroy'](),this['modalManager']&&this['modalManager']?.['destroy']();}async['proxyUrl'](_0x5016dd){if(this['cfg']['secureDeliveryProxy']&&this['cfg']['secureDeliveryProxyUrlResolver']&&console['warn']('Both\x20secureDeliveryProxy\x20and\x20secureDeliveryProxyUrlResolver\x20are\x20set.\x20The\x20secureDeliveryProxyUrlResolver\x20will\x20be\x20used.'),this['cfg']['secureDeliveryProxyUrlResolver'])try{return await this['cfg']['secureDeliveryProxyUrlResolver'](_0x5016dd,{'uuid':extractUuid(_0x5016dd),'cdnUrlModifiers':extractCdnUrlModifiers(_0x5016dd),'fileName':extractFilename(_0x5016dd)});}catch(_0x43043d){return console['error']('Failed\x20to\x20resolve\x20secure\x20delivery\x20proxy\x20URL.\x20Falling\x20back\x20to\x20the\x20default\x20URL.',_0x43043d),_0x5016dd;}return this['cfg']['secureDeliveryProxy']?applyTemplateData(this['cfg']['secureDeliveryProxy'],{'previewUrl':_0x5016dd},{'transform':_0x402736=>window['encodeURIComponent'](_0x402736)}):_0x5016dd;}get['cfg'](){if(!this['__cfgProxy']){let _0x462ba2=Object['create'](null);this['__cfgProxy']=new Proxy(_0x462ba2,{'set':(_0x19355d,_0x17bc52,_0x2f2689)=>{if('string'!=typeof _0x17bc52)return!0x1;const _0xd1d2a6=sharedConfigKey(_0x17bc52);return this['has'](_0xd1d2a6)||this['add'](_0xd1d2a6,initialConfig[_0x17bc52]),this['$'][_0xd1d2a6]=_0x2f2689,!0x0;},'get':(_0x1756c1,_0x17944f)=>{const _0x533796=sharedConfigKey(_0x17944f);return this['has'](_0x533796)||this['add'](_0x533796,initialConfig[_0x17944f]),this['$'][sharedConfigKey(_0x17944f)];}});}return this['__cfgProxy'];}['subConfigValue'](_0x4317c3,_0xa6728f){const _0x2a8dad=sharedConfigKey(_0x4317c3);this['has'](_0x2a8dad)||this['add'](_0x2a8dad,initialConfig[_0x4317c3]),this['sub'](_0x2a8dad,_0xa6728f);}['debugPrint'](..._0x38a030){if(!this['cfg']['debug'])return;let _0x853bb6=_0x38a030;'function'==typeof _0x38a030?.[0x0]&&(_0x853bb6=(0x0,_0x38a030[0x0])()),console['log']('['+this['ctxName']+']',..._0x853bb6);}static['reg'](_0x5d518f){_0x5d518f?_0x5d518f['startsWith'](TAG_PREFIX)&&super['reg'](_0x5d518f):super['reg']();}}var svgIconsSprite$1='<svg\x20width=\x270\x27\x20height=\x270\x27\x20style=\x27position:absolute\x27><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-about\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11.152\x2014.12v.1h1.523v-.1c.007-.409.053-.752.138-1.028.086-.277.22-.517.405-.72.188-.202.434-.397.735-.586.32-.191.593-.412.82-.66.232-.249.41-.531.533-.847.125-.32.187-.678.187-1.076\x200-.579-.137-1.085-.41-1.518a2.717\x202.717\x200\x200\x200-1.14-1.018c-.49-.245-1.062-.367-1.715-.367-.597\x200-1.142.114-1.636.34-.49.228-.884.564-1.182\x201.008-.299.44-.46.98-.485\x201.619h1.62c.024-.377.118-.684.282-.922a1.48\x201.48\x200\x200\x201\x20.617-.532c.25-.114.51-.17.784-.17.301\x200\x20.575.063.82.191.248.124.447.302.597.533.149.23.223.504.223.82\x200\x20.263-.05.502-.149.72a1.91\x201.91\x200\x200\x201-.405.574\x203.48\x203.48\x200\x200\x201-.575.453\x204.22\x204.22\x200\x200\x200-.847.66c-.234.242-.415.558-.543.949-.125.39-.19.916-.197\x201.577Zm.053\x203.03c.21.206.46.31.75.31.196\x200\x20.374-.049.534-.144a1.1\x201.1\x200\x200\x200\x20.383-.384c.1-.163.15-.343.15-.538a1\x201\x200\x200\x200-.32-.746\x201.019\x201.019\x200\x200\x200-.746-.314c-.291\x200-.542.105-.751.314-.21.206-.314.455-.314.746\x200\x20.295.104.547.314.756ZM24\x2012c0\x206.627-5.373\x2012-12\x2012S0\x2018.627\x200\x2012\x205.373\x200\x2012\x200s12\x205.373\x2012\x2012Zm-1.5\x200c0\x205.799-4.701\x2010.5-10.5\x2010.5S1.5\x2017.799\x201.5\x2012\x206.201\x201.5\x2012\x201.5\x2022.5\x206.201\x2022.5\x2012Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-add\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M12.75\x2021a.75.75\x200\x200\x201-1.5\x200v-8.25H3a.75.75\x200\x200\x201\x200-1.5h8.25V3a.75.75\x200\x200\x201\x201.5\x200v8.25H21a.75.75\x200\x200\x201\x200\x201.5h-8.25V21Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-arrow-down\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11.5\x2023.03a.75.75\x200\x200\x200\x20.999\x200l9.29-8.276a.75.75\x200\x200\x200-.998-1.12l-8.042\x207.164V1.53a.75.75\x200\x200\x200-1.5\x200v19.267l-8.04-7.163a.75.75\x200\x200\x200-.998\x201.12z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-back\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M20.251\x2012a.75.75\x200\x200\x201-.75.75H6.067l5.72\x205.85a.75.75\x200\x201\x201-1.072\x201.05L4.136\x2012.92a1.292\x201.292\x200\x200\x201\x200-1.842l6.579-6.728a.75.75\x200\x201\x201\x201.072\x201.048l-5.72\x205.851H19.5a.75.75\x200\x200\x201\x20.75.75Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-badge-error\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M13.6\x2018.4a1.6\x201.6\x200\x201\x201-3.2\x200\x201.6\x201.6\x200\x200\x201\x203.2\x200zM12\x204.5A1.5\x201.5\x200\x200\x201\x2013.5\x206v7a1.5\x201.5\x200\x200\x201-3\x200V6A1.5\x201.5\x200\x200\x201\x2012\x204.5z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-badge-success\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27m10.5\x2018.204\x207.6-8.183a1.5\x201.5\x200\x200\x200-2.2-2.042l-5.4\x205.817-2.4-2.586a1.5\x201.5\x200\x201\x200-2.2\x202.041l4.6\x204.953Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-box\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M1.01\x204.148a.75.75\x200\x200\x201\x20.75.75v4.348a4.437\x204.437\x200\x200\x201\x202.988-1.153c1.734\x200\x203.23.992\x203.978\x202.438a4.478\x204.478\x200\x200\x201\x203.978-2.438c2.49\x200\x204.488\x202.044\x204.488\x204.543\x200\x202.5-1.999\x204.544-4.488\x204.544a4.478\x204.478\x200\x200\x201-3.978-2.438\x204.478\x204.478\x200\x200\x201-3.978\x202.438C2.26\x2017.18.26\x2015.135.26\x2012.636V4.898a.75.75\x200\x200\x201\x20.75-.75Zm.75\x208.488c0\x201.692\x201.348\x203.044\x202.988\x203.044s2.989-1.352\x202.989-3.044c0-1.691-1.349-3.043-2.989-3.043S1.76\x2010.945\x201.76\x2012.636Zm10.944-3.043c-1.64\x200-2.988\x201.352-2.988\x203.043\x200\x201.692\x201.348\x203.044\x202.988\x203.044s2.988-1.352\x202.988-3.044c0-1.69-1.348-3.043-2.988-3.043Zm4.328-1.23a.75.75\x200\x200\x201\x201.052.128l2.333\x202.983\x202.333-2.983a.75.75\x200\x200\x201\x201.181.924l-2.562\x203.277\x202.562\x203.276a.75.75\x200\x201\x201-1.181.924l-2.333-2.983-2.333\x202.983a.75.75\x200\x201\x201-1.181-.924l2.562-3.276-2.562-3.277a.75.75\x200\x200\x201\x20.129-1.052Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-camera\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M7.65\x202.55a.75.75\x200\x200\x201\x20.6-.3h7.5a.75.75\x200\x200\x201\x20.6.3l2.025\x202.7H21a3\x203\x200\x200\x201\x203\x203v10.5a3\x203\x200\x200\x201-3\x203H3a3\x203\x200\x200\x201-3-3V8.25a3\x203\x200\x200\x201\x203-3h2.625zm.975\x201.2L6.6\x206.45a.75.75\x200\x200\x201-.6.3H3a1.5\x201.5\x200\x200\x200-1.5\x201.5v10.5a1.5\x201.5\x200\x200\x200\x201.5\x201.5h18a1.5\x201.5\x200\x200\x200\x201.5-1.5V8.25a1.5\x201.5\x200\x200\x200-1.5-1.5h-3a.75.75\x200\x200\x201-.6-.3l-2.025-2.7zm3.375\x206a3.375\x203.375\x200\x201\x200\x200\x206.75\x203.375\x203.375\x200\x200\x200\x200-6.75zm-4.875\x203.375a4.875\x204.875\x200\x201\x201\x209.75\x200\x204.875\x204.875\x200\x200\x201-9.75\x200z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-camera-full\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill-rule=\x27evenodd\x27\x20clip-rule=\x27evenodd\x27\x20d=\x27M2\x204.667a2\x202\x200\x200\x200-2\x202V16a2\x202\x200\x200\x200\x202\x202h16a2\x202\x200\x200\x200\x202-2V6.667a2\x202\x200\x200\x200-2-2h-2.667l-2-2.667H6.667l-2\x202.667H2Zm8\x2010a3.667\x203.667\x200\x201\x200\x200-7.334\x203.667\x203.667\x200\x200\x200\x200\x207.334Z\x27\x20fill=\x27currentColor\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-close\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M4.604\x204.604a.75.75\x200\x200\x201\x201.06\x200L12\x2010.939l6.335-6.335a.75.75\x200\x201\x201\x201.061\x201.06L13.061\x2012l6.335\x206.335a.75.75\x200\x201\x201-1.06\x201.061L12\x2013.061l-6.335\x206.335a.75.75\x200\x200\x201-1.061-1.06L10.939\x2012\x204.604\x205.665a.75.75\x200\x200\x201\x200-1.061z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-collapse\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M3.116\x2012a.75.75\x200\x200\x201\x20.75-.75h16.268a.75.75\x200\x200\x201\x200\x201.5H3.866a.75.75\x200\x200\x201-.75-.75Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-default\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11.501.392a.75.75\x200\x200\x201\x20.998\x200l6.704\x205.972a.75.75\x200\x200\x201-.998\x201.12l-5.455-4.86v13.439a.75.75\x200\x200\x201-1.5\x200V2.625l-5.454\x204.86a.75.75\x200\x201\x201-.998-1.12zM.857\x2016.73a.75.75\x200\x200\x201\x20.75.75v4.914h20.786v-4.914a.75.75\x200\x200\x201\x201.5\x200v5.664a.75.75\x200\x200\x201-.75.75H.857a.75.75\x200\x200\x201-.75-.75v-5.664a.75.75\x200\x200\x201\x20.75-.75z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-dropbox\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M6.019\x201.92a.75.75\x200\x200\x201\x20.806\x200L12\x205.219l5.176-3.297a.75.75\x200\x200\x201\x20.806\x200l5.577\x203.553a.75.75\x200\x200\x201\x200\x201.265l-4.574\x202.914\x204.574\x202.914a.75.75\x200\x200\x201\x200\x201.265l-5.577\x203.554a.75.75\x200\x200\x201-.806\x200L12\x2014.089l-5.175\x203.297a.75.75\x200\x200\x201-.806\x200L.44\x2013.833a.75.75\x200\x200\x201\x200-1.266l4.575-2.914L.44\x206.74a.75.75\x200\x200\x201\x200-1.265zm.403\x208.616L2.24\x2013.2l4.182\x202.664\x204.181-2.664zm6.975\x202.664\x204.182\x202.664L21.76\x2013.2l-4.181-2.664zm2.776-3.547L12\x2012.311\x207.828\x209.653\x2012\x206.995zm1.406-.882\x204.181-2.664-4.181-2.664-4.182\x202.664zm-6.976-2.664L6.422\x203.443\x202.24\x206.107\x206.422\x208.77zM5.791\x2018.544a.75.75\x200\x200\x201\x201.035-.23l5.175\x203.297\x205.175-3.297a.75.75\x200\x201\x201\x20.806\x201.265l-5.578\x203.554a.75.75\x200\x200\x201-.806\x200L6.02\x2019.579a.75.75\x200\x200\x201-.23-1.035z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-edit-file\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M18.558\x202.804a.78.78\x200\x200\x200-.557.235l-.008.007-2.472\x202.46\x203.847\x203.848\x202.46-2.473.004-.003a.78.78\x200\x200\x200\x200-1.108l-.004-.003-2.712-2.728a.78.78\x200\x200\x200-.558-.235Zm-.248\x207.613-3.852-3.852-8.93\x208.887-1.516\x205.41\x205.41-1.515\x208.888-8.93Zm-.636-8.934a2.28\x202.28\x200\x200\x201\x202.512.505l2.702\x202.717.002.002a2.278\x202.278\x200\x200\x201\x200\x203.234l-.002.002-12.541\x2012.602a.75.75\x200\x200\x201-.33.193l-6.884\x201.928a.75.75\x200\x200\x201-.925-.924l1.928-6.885a.75.75\x200\x200\x201\x20.193-.33l12.603-12.54a2.28\x202.28\x200\x200\x201\x20.742-.504Z\x27\x20clip-rule=\x27evenodd\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-error\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M13\x2013h-2V7h2m0\x2010h-2v-2h2M12\x202A10\x2010\x200\x200\x200\x202\x2012a10\x2010\x200\x200\x200\x2010\x2010\x2010\x2010\x200\x200\x200\x2010-10A10\x2010\x200\x200\x200\x2012\x202Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-evernote\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M9.804\x202.27v-.048c.055-.263.313-.562.85-.562h.44c.142\x200\x20.325.014.526.033.066.009.124.023.267.06l.13.032h.002c.319.079.515.275.644.482a1.461\x201.461\x200\x200\x201\x20.16.356l.004.012a.75.75\x200\x200\x200\x20.603.577l1.191.207a1988.512\x201988.512\x200\x200\x200\x202.332.402c.512.083\x201.1.178\x201.665.442.64.3\x201.19.795\x201.376\x201.77.548\x202.931.657\x205.829.621\x208a39.233\x2039.233\x200\x200\x201-.125\x202.602\x2017.518\x2017.518\x200\x200\x201-.092.849.735.735\x200\x200\x200-.024.112c-.378\x202.705-1.269\x203.796-2.04\x204.27-.746.457-1.53.451-2.217.447h-.192c-.46\x200-1.073-.23-1.581-.635-.518-.412-.763-.87-.763-1.217\x200-.45.188-.688.355-.786.161-.095.436-.137.796.087a.75.75\x200\x201\x200\x20.792-1.274c-.766-.476-1.64-.52-2.345-.108-.7.409-1.098\x201.188-1.098\x202.08\x200\x20.996.634\x201.84\x201.329\x202.392.704.56\x201.638.96\x202.515.96l.185.002c.667.009\x201.874.025\x203.007-.67\x201.283-.786\x202.314-2.358\x202.733-5.276a4.213\x204.213\x200\x200\x200\x20.056-.335c.023-.184.051-.445.079-.772.055-.655.111-1.585.13-2.704.037-2.234-.074-5.239-.647-8.301v-.002c-.294-1.544-1.233-2.391-2.215-2.85-.777-.363-1.623-.496-2.129-.576a8.872\x208.872\x200\x200\x201-.25-.041l-.006-.001-1.99-.345-.761-.132a2.93\x202.93\x200\x200\x200-.182-.338A2.532\x202.532\x200\x200\x200\x2012.379.329l-.091-.023a3.967\x203.967\x200\x200\x200-.493-.103L11.769.2a7.846\x207.846\x200\x200\x200-.675-.04h-.44c-.733\x200-1.368.284-1.795.742L2.416\x207.431c-.468.428-.751\x201.071-.751\x201.81\x200\x20.02\x200\x20.041.003.062l.003.034c.017.21.038.468.096.796.107.715.275\x201.47.391\x201.994.029.13.055.245.075.342l.002.008c.258\x201.141.641\x201.94.978\x202.466.168.263.323.456.444.589a2.808\x202.808\x200\x200\x200\x20.192.194c1.536\x201.562\x203.713\x202.196\x205.731\x202.08.13-.005.35-.032.537-.073a2.627\x202.627\x200\x200\x200\x20.652-.24c.425-.26.75-.661.992-1.046.184-.294.342-.61.473-.915a3.8\x203.8\x200\x200\x200\x20.627.493\x205.022\x205.022\x200\x200\x200\x201.97.709l.023.002.018.003.11.016c.088.014.205.035.325.058l.056.014c.088.022.164.04.235.061a1.736\x201.736\x200\x200\x201\x20.145.048l.03.014c.765.34\x201.302\x201.09\x201.302\x201.871a.75.75\x200\x200\x200\x201.5\x200c0-1.456-.964-2.69-2.18-3.235a3.595\x203.595\x200\x200\x200-.679-.217l-.063-.015a10.616\x2010.616\x200\x200\x200-.606-.105l-.02-.003-.03-.003h-.002a3.542\x203.542\x200\x200\x201-1.331-.485c-.471-.298-.788-.692-.828-1.234a.75.75\x200\x200\x200-1.48-.106l-.001.003-.004.017a8.23\x208.23\x200\x200\x201-.092.352\x209.963\x209.963\x200\x200\x201-.298.892c-.132.34-.29.68-.47.966-.174.276-.339.454-.478.549a1.178\x201.178\x200\x200\x201-.221.072\x201.949\x201.949\x200\x200\x201-.241.036h-.013l-.032.002c-1.684.1-3.423-.437-4.604-1.65a.746.746\x200\x200\x200-.053-.05L4.84\x2014.6a1.348\x201.348\x200\x200\x201-.07-.073\x202.99\x202.99\x200\x200\x201-.293-.392c-.242-.379-.558-1.014-.778-1.985a54.1\x2054.1\x200\x200\x200-.083-.376\x2027.494\x2027.494\x200\x200\x201-.367-1.872l-.003-.02a6.791\x206.791\x200\x200\x201-.08-.67c.004-.277.086-.475.2-.609l.067-.067a.63.63\x200\x200\x201\x20.292-.145h.05c.18\x200\x201.095.055\x202.013.115l1.207.08.534.037a.747.747\x200\x200\x200\x20.052.002c.782\x200\x201.349-.206\x201.759-.585l.005-.005c.553-.52.622-1.225.622-1.76V6.24l-.026-.565A774.97\x20774.97\x200\x200\x201\x209.885\x204.4c-.042-.961-.081-1.939-.081-2.13ZM4.995\x206.953a251.126\x20251.126\x200\x200\x201\x202.102.137l.508.035c.48-.004.646-.122.715-.185.07-.068.146-.209.147-.649l-.024-.548a791.69\x20791.69\x200\x200\x201-.095-2.187L4.995\x206.953Zm16.122\x209.996Zm-5.479-5.323a.75.75\x200\x200\x200\x201.014.31\x202.04\x202.04\x200\x200\x201\x20.304-.089\x201.84\x201.84\x200\x200\x201\x20.544-.039c.215.023.321.06.37.085.033.016.039.026.047.04a.75.75\x200\x200\x200\x201.289-.767c-.337-.567-.906-.783-1.552-.85a3.334\x203.334\x200\x200\x200-1.002.062c-.27.056-.531.14-.705.234a.75.75\x200\x200\x200-.31\x201.014Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-expand\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27m12\x208.337-8.47\x208.47a.75.75\x200\x200\x201-1.06-1.06l8.605-8.606a1.29\x201.29\x200\x200\x201\x201.85\x200l8.605\x208.605a.75.75\x200\x201\x201-1.06\x201.06L12\x208.338Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-external-source-placeholder\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M6.341\x203.27a10.5\x2010.5\x200\x200\x201\x205.834-1.77.75.75\x200\x200\x200\x200-1.5\x2012\x2012\x200\x201\x200\x2012\x2012\x20.75.75\x200\x200\x200-1.5\x200A10.5\x2010.5\x200\x201\x201\x206.34\x203.27Zm14.145\x201.48a.75.75\x200\x201\x200-1.06-1.062L9.925\x2013.19V7.95a.75.75\x200\x201\x200-1.5\x200V15c0\x20.414.336.75.75.75h7.05a.75.75\x200\x200\x200\x200-1.5h-5.24l9.501-9.5Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-facebook\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M12\x201.5C6.201\x201.5\x201.5\x206.201\x201.5\x2012c0\x204.943\x203.416\x209.089\x208.016\x2010.204v-6.108H7.383a.75.75\x200\x200\x201-.75-.75v-3.281a.75.75\x200\x200\x201\x20.75-.75h2.133V9.393c0-.958.225-2.511\x201.38-3.65\x201.194-1.177\x203.174-1.718\x206.254-1.056a.75.75\x200\x200\x201\x20.592.733v2.754a.75.75\x200\x200\x201-.75.75c-.692\x200-1.203.026-1.584.082-.387.057-.578.137-.675.202-.109.073-.237.205-.237\x201.029v1.078h2.39a.75.75\x200\x200\x201\x20.742.866l-.516\x203.281a.75.75\x200\x200\x201-.74.634h-1.876v6.106C19.09\x2021.082\x2022.5\x2016.939\x2022.5\x2012c0-5.799-4.701-10.5-10.5-10.5zM0\x2012C0\x205.373\x205.373\x200\x2012\x200s12\x205.373\x2012\x2012c0\x205.995-4.395\x2010.961-10.138\x2011.856a.75.75\x200\x200\x201-.866-.74v-7.77a.75.75\x200\x200\x201\x20.75-.75h1.984l.28-1.781h-2.264a.75.75\x200\x200\x201-.75-.75v-1.828c0-.829.089-1.729.9-2.274.363-.244.807-.37\x201.293-.441a9.623\x209.623\x200\x200\x201\x201.053-.086V6.04c-2.41-.405-3.645.132-4.293.771-.737.728-.933\x201.793-.933\x202.582v2.672a.75.75\x200\x200\x201-.75.75H8.133v1.78h2.133a.75.75\x200\x200\x201\x20.75.75v7.772a.75.75\x200\x200\x201-.865.741C4.4\x2022.968\x200\x2018\x200\x2012z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-file\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M2.895\x201.201c0-.473.383-.857.857-.857h8.4c.227\x200\x20.445.09.606.251l8.4\x208.4c.16.16.25.379.25.606v13.2a.857.857\x200\x200\x201-.856.857h-16.8a.857.857\x200\x200\x201-.857-.857zm1.714.857v19.886h15.085V10.458h-7.542a.857.857\x200\x200\x201-.858-.857V2.058zm8.4\x201.213\x205.473\x205.473H13.01z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-flickr\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M5.959\x207.926c-2.298\x200-4.14\x201.834-4.14\x204.073\x200\x202.241\x201.842\x204.075\x204.14\x204.075\x202.302\x200\x204.145-1.834\x204.145-4.075\x200-2.238-1.843-4.073-4.145-4.073Zm-5.64\x204.073c0-3.086\x202.533-5.573\x205.64-5.573\x203.11\x200\x205.645\x202.486\x205.645\x205.573\x200\x203.089-2.535\x205.575-5.645\x205.575-3.107\x200-5.64-2.487-5.64-5.575Zm18.07-4.073c-2.301\x200-4.144\x201.835-4.144\x204.073\x200\x202.24\x201.843\x204.075\x204.145\x204.075\x202.299\x200\x204.141-1.834\x204.141-4.075\x200-2.239-1.842-4.073-4.141-4.073Zm-5.644\x204.073c0-3.087\x202.535-5.573\x205.645-5.573\x203.108\x200\x205.641\x202.487\x205.641\x205.573\x200\x203.088-2.533\x205.575-5.641\x205.575-3.11\x200-5.645-2.486-5.645-5.575Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-gdrive\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M7.736\x201.818a.75.75\x200\x200\x201\x20.647-.37h7.587a.75.75\x200\x200\x201\x20.655.383l7.233\x2012.946a.75.75\x200\x200\x201-.003.737l-3.794\x206.66a.75.75\x200\x200\x201-.651.378H4.59a.75.75\x200\x200\x201-.651-.378l-3.794-6.66a.75.75\x200\x200\x201\x20.005-.75zm.64\x201.876L1.663\x2015.148l2.93\x205.145\x206.655-11.581zm3.736\x206.526-2.398\x204.173H14.5zm4.116\x204.173h5.697L15.53\x202.947H9.677zm5.685\x201.5H8.852l-2.966\x205.16h13.088z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-gphotos\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M12.51\x200c-.702\x200-1.272.57-1.272\x201.273V7.35A6.381\x206.381\x200\x200\x200\x200\x2011.489c0\x20.703.57\x201.273\x201.273\x201.273H7.35A6.381\x206.381\x200\x200\x200\x2011.488\x2024c.704\x200\x201.274-.57\x201.274-1.273V16.65A6.381\x206.381\x200\x200\x200\x2024\x2012.51c0-.703-.57-1.273-1.273-1.273H16.65A6.381\x206.381\x200\x200\x200\x2012.511\x200Zm.252\x2011.232V1.53a4.857\x204.857\x200\x200\x201\x200\x209.702Zm-1.53.006H1.53a4.857\x204.857\x200\x200\x201\x209.702\x200Zm1.536\x201.524a4.857\x204.857\x200\x200\x200\x209.702\x200h-9.702Zm-6.136\x204.857c0-2.598\x202.04-4.72\x204.606-4.85v9.7a4.857\x204.857\x200\x200\x201-4.606-4.85Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-huddle\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M6.204\x202.002c-.252.23-.357.486-.357.67V21.07c0\x20.15.084.505.313.812.208.28.499.477.929.477.519\x200\x20.796-.174.956-.365.178-.212.286-.535.286-.924v-.013l.117-6.58c.004-1.725\x201.419-3.883\x203.867-3.883\x201.33\x200\x202.332.581\x202.987\x201.364.637.762.95\x201.717.95\x202.526v6.47c0\x20.392.11.751.305.995.175.22.468.41\x201.008.41.52\x200\x20.816-.198\x201.002-.437.207-.266.31-.633.31-.969V14.04c0-2.81-1.943-5.108-4.136-5.422a5.971\x205.971\x200\x200\x200-3.183.41c-.912.393-1.538.96-1.81\x201.489a.75.75\x200\x200\x201-1.417-.344v-7.5c0-.587-.47-1.031-1.242-1.031-.315\x200-.638.136-.885.36ZM5.194.892A2.844\x202.844\x200\x200\x201\x207.09.142c1.328\x200\x202.742.867\x202.742\x202.53v5.607a6.358\x206.358\x200\x200\x201\x201.133-.629\x207.47\x207.47\x200\x200\x201\x203.989-.516c3.056.436\x205.425\x203.482\x205.425\x206.906v6.914c0\x20.602-.177\x201.313-.627\x201.89-.47.605-1.204\x201.016-2.186\x201.016-.96\x200-1.698-.37-2.179-.973-.46-.575-.633-1.294-.633-1.933v-6.469c0-.456-.19-1.071-.602-1.563-.394-.471-.986-.827-1.836-.827-1.447\x200-2.367\x201.304-2.367\x202.39v.014l-.117\x206.58c-.001.64-.177\x201.333-.637\x201.881-.48.57-1.2.9-2.105.9-.995\x200-1.7-.5-2.132-1.081-.41-.552-.61-1.217-.61-1.708V2.672c0-.707.366-1.341.847-1.78Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-info\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11\x209h2V7h-2m1\x2013c-4.41\x200-8-3.59-8-8s3.59-8\x208-8\x208\x203.59\x208\x208-3.59\x208-8\x208m0-18A10\x2010\x200\x200\x200\x202\x2012a10\x2010\x200\x200\x200\x2010\x2010\x2010\x2010\x200\x200\x200\x2010-10A10\x2010\x200\x200\x200\x2012\x202m-1\x2015h2v-6h-2v6Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-local\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M3\x203.75a1.5\x201.5\x200\x200\x200-1.5\x201.5v13.5a1.5\x201.5\x200\x200\x200\x201.5\x201.5h18a1.5\x201.5\x200\x200\x200\x201.5-1.5V9A1.5\x201.5\x200\x200\x200\x2021\x207.5h-9a.75.75\x200\x200\x201-.643-.364L9.325\x203.75zm-3\x201.5a3\x203\x200\x200\x201\x203-3h6.75a.75.75\x200\x200\x201\x20.643.364L12.425\x206H21a3\x203\x200\x200\x201\x203\x203v9.75a3\x203\x200\x200\x201-3\x203H3a3\x203\x200\x200\x201-3-3z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-microphone\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20clip-rule=\x27evenodd\x27\x20d=\x27M7.5\x204.781a4.5\x204.5\x200\x200\x201\x209\x200v6.469a4.5\x204.5\x200\x201\x201-9\x200V4.781Zm4.5-3a3\x203\x200\x200\x200-3\x203v6.469a3\x203\x200\x201\x200\x206\x200V4.781a3\x203\x200\x200\x200-3-3Zm-8.156\x208.11a.75.75\x200\x200\x201\x20.75.75\x207.406\x207.406\x200\x201\x200\x2014.812\x200\x20.75.75\x200\x200\x201\x201.5\x200\x208.907\x208.907\x200\x200\x201-8.156\x208.875v2.703h3.258a.75.75\x200\x201\x201\x200\x201.5H7.992a.75.75\x200\x200\x201\x200-1.5h3.258v-2.703a8.907\x208.907\x200\x200\x201-8.156-8.875.75.75\x200\x200\x201\x20.75-.75Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-microphone-mute\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20clip-rule=\x27evenodd\x27\x20d=\x27M7.5\x204.781a4.5\x204.5\x200\x200\x201\x209\x200V6l3.524-3.524a.75.75\x200\x201\x201\x201.061\x201.06L5.036\x2019.585a.75.75\x200\x200\x201-1.06-1.06l1.656-1.657a8.88\x208.88\x200\x200\x201-2.538-6.227.75.75\x200\x200\x201\x201.5\x200c0\x202.009.8\x203.83\x202.1\x205.166l1.771-1.772A4.483\x204.483\x200\x200\x201\x207.5\x2011.25V4.781Zm2.037\x208.182L15\x207.5V4.781a3\x203\x200\x201\x200-6\x200v6.469c0\x20.637.198\x201.227.537\x201.713Zm10.62-3.072a.75.75\x200\x200\x201\x20.75.75\x208.907\x208.907\x200\x200\x201-8.157\x208.875v2.703h3.258a.75.75\x200\x201\x201\x200\x201.5H7.992a.75.75\x200\x200\x201\x200-1.5h3.258v-2.703a8.855\x208.855\x200\x200\x201-3.035-.811.75.75\x200\x201\x201\x20.638-1.358\x207.406\x207.406\x200\x200\x200\x2010.553-6.707.75.75\x200\x200\x201\x20.75-.75ZM15\x2010.81a.75.75\x200\x200\x201\x201.5\x200v.439a4.5\x204.5\x200\x200\x201-5\x204.473.75.75\x200\x201\x201\x20.166-1.491A3\x203\x200\x200\x200\x2015\x2011.25v-.44Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-mobile-photo-camera\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M7.65\x202.55a.75.75\x200\x200\x201\x20.6-.3h7.5a.75.75\x200\x200\x201\x20.6.3l2.025\x202.7H21a3\x203\x200\x200\x201\x203\x203v10.5a3\x203\x200\x200\x201-3\x203H3a3\x203\x200\x200\x201-3-3V8.25a3\x203\x200\x200\x201\x203-3h2.625zm.975\x201.2L6.6\x206.45a.75.75\x200\x200\x201-.6.3H3a1.5\x201.5\x200\x200\x200-1.5\x201.5v10.5a1.5\x201.5\x200\x200\x200\x201.5\x201.5h18a1.5\x201.5\x200\x200\x200\x201.5-1.5V8.25a1.5\x201.5\x200\x200\x200-1.5-1.5h-3a.75.75\x200\x200\x201-.6-.3l-2.025-2.7zm3.375\x206a3.375\x203.375\x200\x201\x200\x200\x206.75\x203.375\x203.375\x200\x200\x200\x200-6.75zm-4.875\x203.375a4.875\x204.875\x200\x201\x201\x209.75\x200\x204.875\x204.875\x200\x200\x201-9.75\x200z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-mobile-video-camera\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20clip-rule=\x27evenodd\x27\x20d=\x27M0\x206.75a3\x203\x200\x200\x201\x203-3h12a3\x203\x200\x200\x201\x203\x203v1.078L22.873\x205A.75.75\x200\x200\x201\x2024\x205.648v12.704a.75.75\x200\x200\x201-1.123.65L18\x2016.207v1.043a3\x203\x200\x200\x201-3\x203H3a3\x203\x200\x200\x201-3-3V6.75Zm18\x207.728\x204.5\x202.58V6.95L18\x209.562v4.916ZM16.5\x206.75a1.5\x201.5\x200\x200\x200-1.5-1.5H3a1.5\x201.5\x200\x200\x200-1.5\x201.5v10.5a1.5\x201.5\x200\x200\x200\x201.5\x201.5h12a1.5\x201.5\x200\x200\x200\x201.5-1.5V6.75Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-ngdrive\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M7.736\x201.818a.75.75\x200\x200\x201\x20.647-.37h7.587a.75.75\x200\x200\x201\x20.655.383l7.233\x2012.946a.75.75\x200\x200\x201-.003.737l-3.794\x206.66a.75.75\x200\x200\x201-.651.378H4.59a.75.75\x200\x200\x201-.651-.378l-3.794-6.66a.75.75\x200\x200\x201\x20.005-.75zm.64\x201.876L1.663\x2015.148l2.93\x205.145\x206.655-11.581zm3.736\x206.526-2.398\x204.173H14.5zm4.116\x204.173h5.697L15.53\x202.947H9.677zm5.685\x201.5H8.852l-2.966\x205.16h13.088z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-onedrive\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M13.616\x204.147a7.689\x207.689\x200\x200\x200-7.642\x203.285A6.299\x206.299\x200\x200\x200\x201.455\x2017.3c.684.894\x202.473\x202.658\x205.17\x202.658h12.141c.95\x200\x201.882-.256\x202.697-.743.815-.486\x201.514-1.247\x201.964-2.083a5.26\x205.26\x200\x200\x200-3.713-7.612\x207.69\x207.69\x200\x200\x200-6.098-5.373ZM3.34\x2017.15c.674.63\x201.761\x201.308\x203.284\x201.308h12.142a3.76\x203.76\x200\x200\x200\x202.915-1.383l-7.494-4.489L3.34\x2017.15Zm10.875-6.25\x202.47-1.038a5.239\x205.239\x200\x200\x201\x201.427-.389\x206.19\x206.19\x200\x200\x200-10.3-1.952\x206.338\x206.338\x200\x200\x201\x202.118.813l4.285\x202.567Zm4.55.033c-.512\x200-1.019.104-1.489.307l-.006.003-1.414.594\x206.521\x203.906a3.76\x203.76\x200\x200\x200-3.357-4.8l-.254-.01ZM4.097\x209.617A4.799\x204.799\x200\x200\x201\x206.558\x208.9c.9\x200\x201.84.25\x202.587.713l3.4\x202.037-10.17\x204.28a4.799\x204.799\x200\x200\x201\x201.721-6.312Z\x27/></symbol><symbol\x20fill=\x27none\x27\x20viewBox=\x270\x200\x2010\x2010\x27\x20id=\x27uc-icon-pause\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20d=\x27M1\x200h2.5v10H1zM6.5\x200H9v10H6.5z\x27/></symbol><symbol\x20fill=\x27none\x27\x20viewBox=\x270\x200\x2010\x2010\x27\x20id=\x27uc-icon-play\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20d=\x27m1\x200\x209\x205-9\x205V0Z\x27\x20fill=\x27currentColor\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-remove-file\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11.955\x203.3A2.969\x202.969\x200\x200\x200\x208.998\x206h5.914a2.97\x202.97\x200\x200\x200-2.957-2.7zM16.416\x206a4.47\x204.47\x200\x200\x200-8.922\x200h-2.32a.755.755\x200\x200\x200-.111.008H3.075a.75.75\x200\x201\x200\x200\x201.5h1.35V19.35a2.85\x202.85\x200\x200\x200\x202.85\x202.85h9.45a2.85\x202.85\x200\x200\x200\x202.85-2.85V7.508h1.35a.75.75\x200\x200\x200\x200-1.5h-1.989A.754.754\x200\x200\x200\x2018.825\x206zM5.925\x207.508V19.35a1.35\x201.35\x200\x200\x200\x201.35\x201.35h9.45a1.35\x201.35\x200\x200\x200\x201.35-1.35V7.508z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-select\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27m7\x2010\x205\x205\x205-5H7Z\x27/></symbol><symbol\x20fill=\x27none\x27\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-square\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><rect\x20width=\x2720\x27\x20height=\x2720\x27\x20rx=\x274\x27\x20fill=\x27#fff\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-upload\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11.501.392a.75.75\x200\x200\x201\x20.998\x200l6.704\x205.972a.75.75\x200\x200\x201-.998\x201.12l-5.455-4.86v13.439a.75.75\x200\x200\x201-1.5\x200V2.625l-5.454\x204.86a.75.75\x200\x201\x201-.998-1.12zM.857\x2016.73a.75.75\x200\x200\x201\x20.75.75v4.914h20.786v-4.914a.75.75\x200\x200\x201\x201.5\x200v5.664a.75.75\x200\x200\x201-.75.75H.857a.75.75\x200\x200\x201-.75-.75v-5.664a.75.75\x200\x200\x201\x20.75-.75z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-upload-error\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M13\x2013h-2V7h2m0\x2010h-2v-2h2M12\x202A10\x2010\x200\x200\x200\x202\x2012a10\x2010\x200\x200\x200\x2010\x2010\x2010\x2010\x200\x200\x200\x2010-10A10\x2010\x200\x200\x200\x2012\x202Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-url\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M19.11\x203.67c-1.71-1.709-4.578-1.682-6.408.148l-2.22\x202.22a.75.75\x200\x200\x201-1.062-1.06l2.222-2.221C14.018.381\x2017.836.276\x2020.17\x202.61l1.22\x201.22c2.335\x202.334\x202.23\x206.153-.147\x208.529l-2.22\x202.22a.75.75\x200\x200\x201-1.062-1.06l2.222-2.221c1.83-1.83\x201.856-4.698.147-6.408zm-3.36\x204.58a.75.75\x200\x200\x201\x200\x201.06l-6.439\x206.44a.75.75\x200\x200\x201-1.06-1.06l6.439-6.44a.75.75\x200\x200\x201\x201.06\x200zM6.04\x209.42a.75.75\x200\x200\x201\x200\x201.061l-2.222\x202.222c-1.83\x201.83-1.856\x204.698-.147\x206.407l1.22\x201.22c1.71\x201.71\x204.578\x201.683\x206.408-.147l2.221-2.221a.75.75\x200\x201\x201\x201.06\x201.06l-2.22\x202.222c-2.377\x202.376-6.195\x202.481-8.53.147l-1.22-1.22c-2.334-2.334-2.228-6.153.148-8.53l2.221-2.22a.75.75\x200\x200\x201\x201.06\x200z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-video-camera\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20clip-rule=\x27evenodd\x27\x20d=\x27M0\x206.75a3\x203\x200\x200\x201\x203-3h12a3\x203\x200\x200\x201\x203\x203v1.078L22.873\x205A.75.75\x200\x200\x201\x2024\x205.648v12.704a.75.75\x200\x200\x201-1.123.65L18\x2016.207v1.043a3\x203\x200\x200\x201-3\x203H3a3\x203\x200\x200\x201-3-3V6.75Zm18\x207.728\x204.5\x202.58V6.95L18\x209.562v4.916ZM16.5\x206.75a1.5\x201.5\x200\x200\x200-1.5-1.5H3a1.5\x201.5\x200\x200\x200-1.5\x201.5v10.5a1.5\x201.5\x200\x200\x200\x201.5\x201.5h12a1.5\x201.5\x200\x200\x200\x201.5-1.5V6.75Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-video-camera-full\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20d=\x27M2\x203.333a2\x202\x200\x200\x200-2\x202v9.334a2\x202\x200\x200\x200\x202\x202h10.938a2\x202\x200\x200\x200\x202-2v-2.013L20\x2015.646V4.354l-5.063\x203.03v-2.05a2\x202\x200\x200\x200-2-2H2Z\x27\x20fill=\x27currentColor\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-vk\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M6.341\x203.27a10.5\x2010.5\x200\x200\x201\x205.834-1.77.75.75\x200\x200\x200\x200-1.5\x2012\x2012\x200\x201\x200\x2012\x2012\x20.75.75\x200\x200\x200-1.5\x200A10.5\x2010.5\x200\x201\x201\x206.34\x203.27Zm14.145\x201.48a.75.75\x200\x201\x200-1.06-1.062L9.925\x2013.19V7.95a.75.75\x200\x201\x200-1.5\x200V15c0\x20.414.336.75.75.75h7.05a.75.75\x200\x200\x200\x200-1.5h-5.24l9.501-9.5Z\x27/></symbol></svg>';class SolutionBlock extends Block{static ['styleAttrs']=['uc-wgt-common'];['requireCtxName']=!0x0;['init$']=uploaderBlockCtx(this);['_template']=null;['initCallback'](){super['initCallback'](),this['a11y']?.['registerBlock'](this);}static set['template'](_0x17aa5a){this['_template']=svgIconsSprite$1+_0x17aa5a+'<slot></slot>';}static get['template'](){return this['_template'];}}const ACTIVE_ATTR='active',ACTIVE_PROP='___ACTIVITY_IS_ACTIVE___';class ActivityBlock extends Block{['historyTracked']=!0x1;['init$']=activityBlockCtx(this);['_debouncedHistoryFlush']=debounce(this['_historyFlush']['bind'](this),0xa);['_deactivate'](){let _0x494e8f=ActivityBlock['_activityCallbacks']['get'](this);this[ACTIVE_PROP]=!0x1,this['removeAttribute'](ACTIVE_ATTR),_0x494e8f?.['deactivateCallback']?.();}['_activate'](){let _0x42e7d9=ActivityBlock['_activityCallbacks']['get'](this);this['$']['*historyBack']=this['historyBack']['bind'](this),this[ACTIVE_PROP]=!0x0,this['setAttribute'](ACTIVE_ATTR,''),_0x42e7d9?.['activateCallback']?.(),this['_debouncedHistoryFlush'](),this['emit'](EventType['ACTIVITY_CHANGE'],{'activity':this['activityType']});}['initCallback'](){super['initCallback'](),this['activityType']&&(this['hasAttribute']('activity')||this['setAttribute']('activity',this['activityType']),this['sub']('*currentActivity',_0x12b375=>{try{this['activityType']!==_0x12b375&&this[ACTIVE_PROP]?this['_deactivate']():this['activityType']!==_0x12b375||this[ACTIVE_PROP]||this['_activate']();}catch(_0x39afaa){console['error']('Error\x20in\x20activity\x20\x22'+this['activityType']+'\x22.\x20',_0x39afaa),this['$']['*currentActivity']=this['$']['*history'][this['$']['*history']['length']-0x1]??null;}_0x12b375||(this['$']['*history']=[]);}));}['_historyFlush'](){let _0x4f693e=this['$']['*history'];_0x4f693e&&(_0x4f693e['length']>0xa&&(_0x4f693e=_0x4f693e['slice'](_0x4f693e['length']-0xb,_0x4f693e['length']-0x1)),this['historyTracked']&&_0x4f693e[_0x4f693e['length']-0x1]!==this['activityType']&&_0x4f693e['push'](this['activityType']),this['$']['*history']=_0x4f693e);}['_isActivityRegistered'](){return this['activityType']&&ActivityBlock['_activityCallbacks']['has'](this);}static ['_activityCallbacks']=new Map();get['isActivityActive'](){return this[ACTIVE_PROP];}get['couldOpenActivity'](){return!0x0;}['registerActivity'](_0x3f68fe,_0x568659={}){const {onActivate:_0x23bb0a,onDeactivate:_0x316714}=_0x568659;ActivityBlock['_activityCallbacks']['set'](this,{'activateCallback':_0x23bb0a,'deactivateCallback':_0x316714});}['unregisterActivity'](){this['isActivityActive']&&this['_deactivate'](),ActivityBlock['_activityCallbacks']['delete'](this);}['destroyCallback'](){super['destroyCallback'](),this['_isActivityRegistered']()&&this['unregisterActivity']();const _0x49e117=this['$']['*currentActivity'];!![...this['blocksRegistry']]['find'](_0x47eaba=>_0x47eaba instanceof ActivityBlock&&_0x47eaba['activityType']===_0x49e117)||(this['$']['*currentActivity']=null,this['modalManager']['closeAll']());}get['activityKey'](){return this['ctxName']+this['activityType'];}get['activityParams'](){return this['$']['*currentActivityParams'];}get['initActivity'](){return this['getCssData']('--cfg-init-activity');}get['doneActivity'](){return this['getCssData']('--cfg-done-activity');}['historyBack'](){let _0x171ea6=this['$']['*history'];if(_0x171ea6){let _0x594976=_0x171ea6['pop']();for(;_0x594976===this['activityType'];)_0x594976=_0x171ea6['pop']();let _0x15e466=!!_0x594976;if(_0x594976){const _0x5de63e=[...this['blocksRegistry']]['find'](_0x5764a0=>_0x5764a0['activityType']===_0x594976);_0x15e466=_0x5de63e?.['couldOpenActivity']??!0x1;}_0x594976=_0x15e466?_0x594976:void 0x0,_0x594976&&this['modalManager']['open'](_0x594976),this['$']['*currentActivity']=_0x594976,this['$']['*history']=_0x171ea6,_0x594976||this['modalManager']['closeAll']();}}}ActivityBlock['activities']=Object['freeze']({'START_FROM':'start-from','CAMERA':'camera','DRAW':'draw','UPLOAD_LIST':'upload-list','URL':'url','CLOUD_IMG_EDIT':'cloud-image-edit','EXTERNAL':'external'});const CROP_PADDING=0x14,THUMB_CORNER_SIZE=0x18,THUMB_SIDE_SIZE=0x22,THUMB_STROKE_WIDTH=0x3,THUMB_OFFSET=THUMB_STROKE_WIDTH/0x2,GUIDE_STROKE_WIDTH=0x1,GUIDE_THIRD=0x64/0x3,MIN_CROP_SIZE=0x1,MAX_INTERACTION_SIZE=0x18,MIN_INTERACTION_SIZE=0x6;function setSvgNodeAttrs(_0x26ba14,_0xe613ec){for(let _0xdd6041 in _0xe613ec)_0x26ba14['setAttributeNS'](null,_0xdd6041,_0xe613ec[_0xdd6041]['toString']());}function createSvgNode(_0x8c0c97,_0x3055e3={}){let _0x524710=document['createElementNS']('http://www.w3.org/2000/svg',_0x8c0c97);return setSvgNodeAttrs(_0x524710,_0x3055e3),_0x524710;}function cornerPath(_0x5c0617,_0x5d4104,_0x18309e){let {x:_0x372b29,y:_0x28d96d,width:_0x11f37e,height:_0x1937fc}=_0x5c0617,_0x32b08a=_0x5d4104['includes']('w')?0x0:0x1,_0x2a474e=_0x5d4104['includes']('n')?0x0:0x1,_0x30a58a=[-0x1,0x1][_0x32b08a],_0x3cbecf=[-0x1,0x1][_0x2a474e],_0x232965=[_0x372b29+_0x32b08a*_0x11f37e+THUMB_OFFSET*_0x30a58a,_0x28d96d+_0x2a474e*_0x1937fc+THUMB_OFFSET*_0x3cbecf-THUMB_CORNER_SIZE*_0x18309e*_0x3cbecf],_0x4dfdd6=[_0x372b29+_0x32b08a*_0x11f37e+THUMB_OFFSET*_0x30a58a,_0x28d96d+_0x2a474e*_0x1937fc+THUMB_OFFSET*_0x3cbecf],_0x51a0c0=[_0x372b29+_0x32b08a*_0x11f37e-THUMB_CORNER_SIZE*_0x18309e*_0x30a58a+THUMB_OFFSET*_0x30a58a,_0x28d96d+_0x2a474e*_0x1937fc+THUMB_OFFSET*_0x3cbecf];return{'d':'M\x20'+_0x232965[0x0]+'\x20'+_0x232965[0x1]+'\x20L\x20'+_0x4dfdd6[0x0]+'\x20'+_0x4dfdd6[0x1]+'\x20L\x20'+_0x51a0c0[0x0]+'\x20'+_0x51a0c0[0x1],'center':_0x4dfdd6};}function sidePath(_0xbd1e11,_0x450ba0,_0x1afe95){let _0x3337fe,_0x1c4d7d,{x:_0x3c21c8,y:_0x12d183,width:_0x1e7a7e,height:_0x559cdb}=_0xbd1e11,_0x56fae4=['n','s']['includes'](_0x450ba0)?0.5:{'w':0x0,'e':0x1}[_0x450ba0],_0x1b3bb8=['w','e']['includes'](_0x450ba0)?0.5:{'n':0x0,'s':0x1}[_0x450ba0],_0x2831c1=[-0x1,0x1][_0x56fae4],_0x38c92b=[-0x1,0x1][_0x1b3bb8];return['n','s']['includes'](_0x450ba0)?(_0x3337fe=[_0x3c21c8+_0x56fae4*_0x1e7a7e-THUMB_SIDE_SIZE*_0x1afe95/0x2,_0x12d183+_0x1b3bb8*_0x559cdb+THUMB_OFFSET*_0x38c92b],_0x1c4d7d=[_0x3c21c8+_0x56fae4*_0x1e7a7e+THUMB_SIDE_SIZE*_0x1afe95/0x2,_0x12d183+_0x1b3bb8*_0x559cdb+THUMB_OFFSET*_0x38c92b]):(_0x3337fe=[_0x3c21c8+_0x56fae4*_0x1e7a7e+THUMB_OFFSET*_0x2831c1,_0x12d183+_0x1b3bb8*_0x559cdb-THUMB_SIDE_SIZE*_0x1afe95/0x2],_0x1c4d7d=[_0x3c21c8+_0x56fae4*_0x1e7a7e+THUMB_OFFSET*_0x2831c1,_0x12d183+_0x1b3bb8*_0x559cdb+THUMB_SIDE_SIZE*_0x1afe95/0x2]),{'d':'M\x20'+_0x3337fe[0x0]+'\x20'+_0x3337fe[0x1]+'\x20L\x20'+_0x1c4d7d[0x0]+'\x20'+_0x1c4d7d[0x1],'center':[_0x1c4d7d[0x0]-(_0x1c4d7d[0x0]-_0x3337fe[0x0])/0x2,_0x1c4d7d[0x1]-(_0x1c4d7d[0x1]-_0x3337fe[0x1])/0x2]};}function thumbCursor(_0x38bc49){return''===_0x38bc49?'move':['e','w']['includes'](_0x38bc49)?'ew-resize':['n','s']['includes'](_0x38bc49)?'ns-resize':['nw','se']['includes'](_0x38bc49)?'nwse-resize':'nesw-resize';}function moveRect({rect:_0x1b683c,delta:[_0x4dca9a,_0x2b930b],imageBox:_0x46729d}){return constraintRect({..._0x1b683c,'x':_0x1b683c['x']+_0x4dca9a,'y':_0x1b683c['y']+_0x2b930b},_0x46729d);}function constraintRect(_0x75a98f,_0x244827){let {x:_0x4dcdaa}=_0x75a98f,{y:_0x540697}=_0x75a98f;return _0x75a98f['x']<_0x244827['x']?_0x4dcdaa=_0x244827['x']:_0x75a98f['x']+_0x75a98f['width']>_0x244827['x']+_0x244827['width']&&(_0x4dcdaa=_0x244827['x']+_0x244827['width']-_0x75a98f['width']),_0x75a98f['y']<_0x244827['y']?_0x540697=_0x244827['y']:_0x75a98f['y']+_0x75a98f['height']>_0x244827['y']+_0x244827['height']&&(_0x540697=_0x244827['y']+_0x244827['height']-_0x75a98f['height']),{..._0x75a98f,'x':_0x4dcdaa,'y':_0x540697};}function resizeNorth({rect:_0x9714f2,delta:_0x1330de,aspectRatio:_0x4fbfcd,imageBox:_0x11ec9c}){const [,_0x2ad277]=_0x1330de;let {y:_0x55c26a,width:_0x1b3428,height:_0x4873a7}=_0x9714f2;_0x55c26a+=_0x2ad277,_0x4873a7-=_0x2ad277,_0x4fbfcd&&(_0x1b3428=_0x4873a7*_0x4fbfcd);let _0x4d6a31=_0x9714f2['x']+_0x9714f2['width']/0x2-_0x1b3428/0x2;return _0x55c26a<=_0x11ec9c['y']&&(_0x55c26a=_0x11ec9c['y'],_0x4873a7=_0x9714f2['y']+_0x9714f2['height']-_0x55c26a,_0x4fbfcd&&(_0x1b3428=_0x4873a7*_0x4fbfcd,_0x4d6a31=_0x9714f2['x']+_0x9714f2['width']/0x2-_0x1b3428/0x2)),_0x4d6a31<=_0x11ec9c['x']&&(_0x4d6a31=_0x11ec9c['x'],_0x55c26a=_0x9714f2['y']+_0x9714f2['height']-_0x4873a7),_0x4d6a31+_0x1b3428>=_0x11ec9c['x']+_0x11ec9c['width']&&(_0x4d6a31=Math['max'](_0x11ec9c['x'],_0x11ec9c['x']+_0x11ec9c['width']-_0x1b3428),_0x1b3428=_0x11ec9c['x']+_0x11ec9c['width']-_0x4d6a31,_0x4fbfcd&&(_0x4873a7=_0x1b3428/_0x4fbfcd),_0x55c26a=_0x9714f2['y']+_0x9714f2['height']-_0x4873a7),_0x4873a7<MIN_CROP_SIZE&&(_0x4873a7=MIN_CROP_SIZE,_0x4fbfcd&&(_0x1b3428=_0x4873a7*_0x4fbfcd,_0x4d6a31=_0x9714f2['x']+_0x9714f2['width']/0x2-_0x1b3428/0x2),_0x55c26a=_0x9714f2['y']+_0x9714f2['height']-_0x4873a7),_0x1b3428<MIN_CROP_SIZE&&(_0x1b3428=MIN_CROP_SIZE,_0x4fbfcd&&(_0x4873a7=_0x1b3428/_0x4fbfcd,_0x4d6a31=_0x9714f2['x']+_0x9714f2['width']/0x2-_0x1b3428/0x2),_0x55c26a=_0x9714f2['y']+_0x9714f2['height']-_0x4873a7),{'x':_0x4d6a31,'y':_0x55c26a,'width':_0x1b3428,'height':_0x4873a7};}function resizeWest({rect:_0x50bfec,delta:_0x3b283d,aspectRatio:_0x25a3fc,imageBox:_0x1127cc}){const [_0x11ec85]=_0x3b283d;let {x:_0xc74f35,width:_0x15b7b7,height:_0x136001}=_0x50bfec;_0xc74f35+=_0x11ec85,_0x15b7b7-=_0x11ec85,_0x25a3fc&&(_0x136001=_0x15b7b7/_0x25a3fc);let _0x3161de=_0x50bfec['y']+_0x50bfec['height']/0x2-_0x136001/0x2;return _0xc74f35<=_0x1127cc['x']&&(_0xc74f35=_0x1127cc['x'],_0x15b7b7=_0x50bfec['x']+_0x50bfec['width']-_0xc74f35,_0x25a3fc&&(_0x136001=_0x15b7b7/_0x25a3fc,_0x3161de=_0x50bfec['y']+_0x50bfec['height']/0x2-_0x136001/0x2)),_0x3161de<=_0x1127cc['y']&&(_0x3161de=_0x1127cc['y'],_0xc74f35=_0x50bfec['x']+_0x50bfec['width']-_0x15b7b7),_0x3161de+_0x136001>=_0x1127cc['y']+_0x1127cc['height']&&(_0x3161de=Math['max'](_0x1127cc['y'],_0x1127cc['y']+_0x1127cc['height']-_0x136001),_0x136001=_0x1127cc['y']+_0x1127cc['height']-_0x3161de,_0x25a3fc&&(_0x15b7b7=_0x136001*_0x25a3fc),_0xc74f35=_0x50bfec['x']+_0x50bfec['width']-_0x15b7b7),_0x136001<MIN_CROP_SIZE&&(_0x136001=MIN_CROP_SIZE,_0x25a3fc&&(_0x15b7b7=_0x136001*_0x25a3fc),_0x3161de=_0x50bfec['y']+_0x50bfec['height']/0x2-_0x136001/0x2,_0xc74f35=_0x50bfec['x']+_0x50bfec['width']-_0x15b7b7),_0x15b7b7<MIN_CROP_SIZE&&(_0x15b7b7=MIN_CROP_SIZE,_0x25a3fc&&(_0x136001=_0x15b7b7/_0x25a3fc),_0x3161de=_0x50bfec['y']+_0x50bfec['height']/0x2-_0x136001/0x2,_0xc74f35=_0x50bfec['x']+_0x50bfec['width']-_0x15b7b7),{'x':_0xc74f35,'y':_0x3161de,'width':_0x15b7b7,'height':_0x136001};}function resizeSouth({rect:_0x120234,delta:_0x2bdada,aspectRatio:_0x55217f,imageBox:_0x1734db}){const [,_0x2d5aee]=_0x2bdada;let {y:_0x518f24,width:_0x42ca57,height:_0x5c1643}=_0x120234;_0x5c1643+=_0x2d5aee,_0x55217f&&(_0x42ca57=_0x5c1643*_0x55217f);let _0x5543ef=_0x120234['x']+_0x120234['width']/0x2-_0x42ca57/0x2;return _0x518f24+_0x5c1643>=_0x1734db['y']+_0x1734db['height']&&(_0x5c1643=_0x1734db['y']+_0x1734db['height']-_0x518f24,_0x55217f&&(_0x42ca57=_0x5c1643*_0x55217f),_0x5543ef=_0x120234['x']+_0x120234['width']/0x2-_0x42ca57/0x2),_0x5543ef<=_0x1734db['x']&&(_0x5543ef=_0x1734db['x'],_0x518f24=_0x120234['y']),_0x5543ef+_0x42ca57>=_0x1734db['x']+_0x1734db['width']&&(_0x5543ef=Math['max'](_0x1734db['x'],_0x1734db['x']+_0x1734db['width']-_0x42ca57),_0x42ca57=_0x1734db['x']+_0x1734db['width']-_0x5543ef,_0x55217f&&(_0x5c1643=_0x42ca57/_0x55217f),_0x518f24=_0x120234['y']),_0x5c1643<MIN_CROP_SIZE&&(_0x5c1643=MIN_CROP_SIZE,_0x55217f&&(_0x42ca57=_0x5c1643*_0x55217f),_0x5543ef=_0x120234['x']+_0x120234['width']/0x2-_0x42ca57/0x2),_0x42ca57<MIN_CROP_SIZE&&(_0x42ca57=MIN_CROP_SIZE,_0x55217f&&(_0x5c1643=_0x42ca57/_0x55217f),_0x5543ef=_0x120234['x']+_0x120234['width']/0x2-_0x42ca57/0x2),{'x':_0x5543ef,'y':_0x518f24,'width':_0x42ca57,'height':_0x5c1643};}function resizeEast({rect:_0x4505a0,delta:_0xa7e25b,aspectRatio:_0x20434f,imageBox:_0x578a7f}){const [_0x3afba5]=_0xa7e25b;let {x:_0x8de6e5,width:_0x275f03,height:_0x369e02}=_0x4505a0;_0x275f03+=_0x3afba5,_0x20434f&&(_0x369e02=_0x275f03/_0x20434f);let _0x25f7ea=_0x4505a0['y']+_0x4505a0['height']/0x2-_0x369e02/0x2;return _0x8de6e5+_0x275f03>=_0x578a7f['x']+_0x578a7f['width']&&(_0x275f03=_0x578a7f['x']+_0x578a7f['width']-_0x8de6e5,_0x20434f&&(_0x369e02=_0x275f03/_0x20434f),_0x25f7ea=_0x4505a0['y']+_0x4505a0['height']/0x2-_0x369e02/0x2),_0x25f7ea<=_0x578a7f['y']&&(_0x25f7ea=_0x578a7f['y'],_0x8de6e5=_0x4505a0['x']),_0x25f7ea+_0x369e02>=_0x578a7f['y']+_0x578a7f['height']&&(_0x25f7ea=Math['max'](_0x578a7f['y'],_0x578a7f['y']+_0x578a7f['height']-_0x369e02),_0x369e02=_0x578a7f['y']+_0x578a7f['height']-_0x25f7ea,_0x20434f&&(_0x275f03=_0x369e02*_0x20434f),_0x8de6e5=_0x4505a0['x']),_0x369e02<MIN_CROP_SIZE&&(_0x369e02=MIN_CROP_SIZE,_0x20434f&&(_0x275f03=_0x369e02*_0x20434f),_0x25f7ea=_0x4505a0['y']+_0x4505a0['height']/0x2-_0x369e02/0x2),_0x275f03<MIN_CROP_SIZE&&(_0x275f03=MIN_CROP_SIZE,_0x20434f&&(_0x369e02=_0x275f03/_0x20434f),_0x25f7ea=_0x4505a0['y']+_0x4505a0['height']/0x2-_0x369e02/0x2),{'x':_0x8de6e5,'y':_0x25f7ea,'width':_0x275f03,'height':_0x369e02};}function resizeNorthWest({rect:_0x1836cd,delta:_0x554e99,aspectRatio:_0x4f69f6,imageBox:_0x47e44c}){let [_0x70b873,_0xb140f9]=_0x554e99,{x:_0x13946c,y:_0x25221c,width:_0x3abd62,height:_0x4cf986}=_0x1836cd;return _0x13946c+_0x70b873<_0x47e44c['x']&&(_0x70b873=_0x47e44c['x']-_0x13946c),_0x25221c+_0xb140f9<_0x47e44c['y']&&(_0xb140f9=_0x47e44c['y']-_0x25221c),_0x13946c+=_0x70b873,_0x3abd62-=_0x70b873,_0x25221c+=_0xb140f9,_0x4cf986-=_0xb140f9,_0x4f69f6&&Math['abs'](_0x3abd62/_0x4cf986)>_0x4f69f6?(_0xb140f9=_0x3abd62/_0x4f69f6-_0x4cf986,_0x4cf986+=_0xb140f9,_0x25221c-=_0xb140f9,_0x25221c<=_0x47e44c['y']&&(_0x4cf986-=_0x47e44c['y']-_0x25221c,_0x3abd62=_0x4cf986*_0x4f69f6,_0x13946c=_0x1836cd['x']+_0x1836cd['width']-_0x3abd62,_0x25221c=_0x47e44c['y'])):_0x4f69f6&&(_0x70b873=_0x4cf986*_0x4f69f6-_0x3abd62,_0x3abd62+=_0x70b873,_0x13946c-=_0x70b873,_0x13946c<=_0x47e44c['x']&&(_0x3abd62-=_0x47e44c['x']-_0x13946c,_0x4cf986=_0x3abd62/_0x4f69f6,_0x13946c=_0x47e44c['x'],_0x25221c=_0x1836cd['y']+_0x1836cd['height']-_0x4cf986)),_0x4cf986<MIN_CROP_SIZE&&(_0x4cf986=MIN_CROP_SIZE,_0x4f69f6&&(_0x3abd62=_0x4cf986*_0x4f69f6),_0x13946c=_0x1836cd['x']+_0x1836cd['width']-_0x3abd62,_0x25221c=_0x1836cd['y']+_0x1836cd['height']-_0x4cf986),_0x3abd62<MIN_CROP_SIZE&&(_0x3abd62=MIN_CROP_SIZE,_0x4f69f6&&(_0x4cf986=_0x3abd62/_0x4f69f6),_0x13946c=_0x1836cd['x']+_0x1836cd['width']-_0x3abd62,_0x25221c=_0x1836cd['y']+_0x1836cd['height']-_0x4cf986),{'x':_0x13946c,'y':_0x25221c,'width':_0x3abd62,'height':_0x4cf986};}function resizeNorthEast({rect:_0xce15e8,delta:_0x53902f,aspectRatio:_0x582d89,imageBox:_0x348a9b}){let [_0x48f2f7,_0x168146]=_0x53902f,{x:_0x42f54c,y:_0x485a61,width:_0x457735,height:_0x292ef9}=_0xce15e8;return _0x42f54c+_0x457735+_0x48f2f7>_0x348a9b['x']+_0x348a9b['width']&&(_0x48f2f7=_0x348a9b['x']+_0x348a9b['width']-_0x42f54c-_0x457735),_0x485a61+_0x168146<_0x348a9b['y']&&(_0x168146=_0x348a9b['y']-_0x485a61),_0x457735+=_0x48f2f7,_0x485a61+=_0x168146,_0x292ef9-=_0x168146,_0x582d89&&Math['abs'](_0x457735/_0x292ef9)>_0x582d89?(_0x168146=_0x457735/_0x582d89-_0x292ef9,_0x292ef9+=_0x168146,_0x485a61-=_0x168146,_0x485a61<=_0x348a9b['y']&&(_0x292ef9-=_0x348a9b['y']-_0x485a61,_0x457735=_0x292ef9*_0x582d89,_0x42f54c=_0xce15e8['x'],_0x485a61=_0x348a9b['y'])):_0x582d89&&(_0x48f2f7=_0x292ef9*_0x582d89-_0x457735,_0x457735+=_0x48f2f7,_0x42f54c+_0x457735>=_0x348a9b['x']+_0x348a9b['width']&&(_0x457735=_0x348a9b['x']+_0x348a9b['width']-_0x42f54c,_0x292ef9=_0x457735/_0x582d89,_0x42f54c=_0x348a9b['x']+_0x348a9b['width']-_0x457735,_0x485a61=_0xce15e8['y']+_0xce15e8['height']-_0x292ef9)),_0x292ef9<MIN_CROP_SIZE&&(_0x292ef9=MIN_CROP_SIZE,_0x582d89&&(_0x457735=_0x292ef9*_0x582d89),_0x485a61=_0xce15e8['y']+_0xce15e8['height']-_0x292ef9),_0x457735<MIN_CROP_SIZE&&(_0x457735=MIN_CROP_SIZE,_0x582d89&&(_0x292ef9=_0x457735/_0x582d89),_0x485a61=_0xce15e8['y']+_0xce15e8['height']-_0x292ef9),{'x':_0x42f54c,'y':_0x485a61,'width':_0x457735,'height':_0x292ef9};}function resizeSouthWest({rect:_0x35af4d,delta:_0x46714d,aspectRatio:_0x4ac775,imageBox:_0x2e0211}){let [_0x3d3b9e,_0x509be1]=_0x46714d,{x:_0x180699,y:_0x47b900,width:_0x153f55,height:_0x29ac08}=_0x35af4d;return _0x180699+_0x3d3b9e<_0x2e0211['x']&&(_0x3d3b9e=_0x2e0211['x']-_0x180699),_0x47b900+_0x29ac08+_0x509be1>_0x2e0211['y']+_0x2e0211['height']&&(_0x509be1=_0x2e0211['y']+_0x2e0211['height']-_0x47b900-_0x29ac08),_0x180699+=_0x3d3b9e,_0x153f55-=_0x3d3b9e,_0x29ac08+=_0x509be1,_0x4ac775&&Math['abs'](_0x153f55/_0x29ac08)>_0x4ac775?(_0x509be1=_0x153f55/_0x4ac775-_0x29ac08,_0x29ac08+=_0x509be1,_0x47b900+_0x29ac08>=_0x2e0211['y']+_0x2e0211['height']&&(_0x29ac08=_0x2e0211['y']+_0x2e0211['height']-_0x47b900,_0x153f55=_0x29ac08*_0x4ac775,_0x180699=_0x35af4d['x']+_0x35af4d['width']-_0x153f55,_0x47b900=_0x2e0211['y']+_0x2e0211['height']-_0x29ac08)):_0x4ac775&&(_0x3d3b9e=_0x29ac08*_0x4ac775-_0x153f55,_0x153f55+=_0x3d3b9e,_0x180699-=_0x3d3b9e,_0x180699<=_0x2e0211['x']&&(_0x153f55-=_0x2e0211['x']-_0x180699,_0x29ac08=_0x153f55/_0x4ac775,_0x180699=_0x2e0211['x'],_0x47b900=_0x35af4d['y'])),_0x29ac08<MIN_CROP_SIZE&&(_0x29ac08=MIN_CROP_SIZE,_0x4ac775&&(_0x153f55=_0x29ac08*_0x4ac775),_0x180699=_0x35af4d['x']+_0x35af4d['width']-_0x153f55),_0x153f55<MIN_CROP_SIZE&&(_0x153f55=MIN_CROP_SIZE,_0x4ac775&&(_0x29ac08=_0x153f55/_0x4ac775),_0x180699=_0x35af4d['x']+_0x35af4d['width']-_0x153f55),{'x':_0x180699,'y':_0x47b900,'width':_0x153f55,'height':_0x29ac08};}function resizeSouthEast({rect:_0x20ad51,delta:_0x42ad65,aspectRatio:_0x524842,imageBox:_0x532058}){let [_0x5344a9,_0xcf52eb]=_0x42ad65,{x:_0x1b8ecd,y:_0x4b88a5,width:_0x58f328,height:_0x421adf}=_0x20ad51;return _0x1b8ecd+_0x58f328+_0x5344a9>_0x532058['x']+_0x532058['width']&&(_0x5344a9=_0x532058['x']+_0x532058['width']-_0x1b8ecd-_0x58f328),_0x4b88a5+_0x421adf+_0xcf52eb>_0x532058['y']+_0x532058['height']&&(_0xcf52eb=_0x532058['y']+_0x532058['height']-_0x4b88a5-_0x421adf),_0x58f328+=_0x5344a9,_0x421adf+=_0xcf52eb,_0x524842&&Math['abs'](_0x58f328/_0x421adf)>_0x524842?(_0xcf52eb=_0x58f328/_0x524842-_0x421adf,_0x421adf+=_0xcf52eb,_0x4b88a5+_0x421adf>=_0x532058['y']+_0x532058['height']&&(_0x421adf=_0x532058['y']+_0x532058['height']-_0x4b88a5,_0x58f328=_0x421adf*_0x524842,_0x1b8ecd=_0x20ad51['x'],_0x4b88a5=_0x532058['y']+_0x532058['height']-_0x421adf)):_0x524842&&(_0x5344a9=_0x421adf*_0x524842-_0x58f328,_0x58f328+=_0x5344a9,_0x1b8ecd+_0x58f328>=_0x532058['x']+_0x532058['width']&&(_0x58f328=_0x532058['x']+_0x532058['width']-_0x1b8ecd,_0x421adf=_0x58f328/_0x524842,_0x1b8ecd=_0x532058['x']+_0x532058['width']-_0x58f328,_0x4b88a5=_0x20ad51['y'])),_0x421adf<MIN_CROP_SIZE&&(_0x421adf=MIN_CROP_SIZE,_0x524842&&(_0x58f328=_0x421adf*_0x524842)),_0x58f328<MIN_CROP_SIZE&&(_0x58f328=MIN_CROP_SIZE,_0x524842&&(_0x421adf=_0x58f328/_0x524842)),{'x':_0x1b8ecd,'y':_0x4b88a5,'width':_0x58f328,'height':_0x421adf};}function resizeRect({direction:_0x57efd8,..._0x39104c}){switch(_0x57efd8){case'n':return resizeNorth(_0x39104c);case'w':return resizeWest(_0x39104c);case's':return resizeSouth(_0x39104c);case'e':return resizeEast(_0x39104c);case'nw':return resizeNorthWest(_0x39104c);case'ne':return resizeNorthEast(_0x39104c);case'sw':return resizeSouthWest(_0x39104c);case'se':return resizeSouthEast(_0x39104c);default:return _0x39104c['rect'];}}function rectContainsPoint(_0x38d57f,[_0xd48fc9,_0x493db8]){return _0x38d57f['x']<=_0xd48fc9&&_0xd48fc9<=_0x38d57f['x']+_0x38d57f['width']&&_0x38d57f['y']<=_0x493db8&&_0x493db8<=_0x38d57f['y']+_0x38d57f['height'];}function isRectInsideRect(_0x126192,_0x294bcd){return _0x126192['x']>=_0x294bcd['x']&&_0x126192['y']>=_0x294bcd['y']&&_0x126192['x']+_0x126192['width']<=_0x294bcd['x']+_0x294bcd['width']&&_0x126192['y']+_0x126192['height']<=_0x294bcd['y']+_0x294bcd['height'];}function isRectMatchesAspectRatio(_0x3bba26,_0x452efc){return Math['abs'](_0x3bba26['width']/_0x3bba26['height']-_0x452efc)<0.1;}function rotateSize({width:_0x5c2482,height:_0x24a354},_0x2ee1fd){let _0x139bc0=_0x2ee1fd/0x5a%0x2!=0x0;return{'width':_0x139bc0?_0x24a354:_0x5c2482,'height':_0x139bc0?_0x5c2482:_0x24a354};}function calculateMaxCenteredCropFrame(_0x8fff66,_0x46a73d,_0x3d8dcd){let _0x68dc89,_0x51e4ed;_0x8fff66/_0x46a73d>_0x3d8dcd?(_0x68dc89=Math['round'](_0x46a73d*_0x3d8dcd),_0x51e4ed=_0x46a73d):(_0x68dc89=_0x8fff66,_0x51e4ed=Math['round'](_0x8fff66/_0x3d8dcd));const _0x5694c8=Math['round']((_0x8fff66-_0x68dc89)/0x2),_0x4e328b=Math['round']((_0x46a73d-_0x51e4ed)/0x2);return _0x5694c8+_0x68dc89>_0x8fff66&&(_0x68dc89=_0x8fff66-_0x5694c8),_0x4e328b+_0x51e4ed>_0x46a73d&&(_0x51e4ed=_0x46a73d-_0x4e328b),{'x':_0x5694c8,'y':_0x4e328b,'width':_0x68dc89,'height':_0x51e4ed};}function roundRect(_0xf37047){return{'x':Math['round'](_0xf37047['x']),'y':Math['round'](_0xf37047['y']),'width':Math['round'](_0xf37047['width']),'height':Math['round'](_0xf37047['height'])};}function clamp(_0x33eea6,_0x593f63,_0x3ff067){return Math['min'](Math['max'](_0x33eea6,_0x593f63),_0x3ff067);}const parseCropPreset=_0x3dec09=>{if(!_0x3dec09)return[];const [_0x21c1b4,_0x4d720a]=_0x3dec09['split'](':')['map'](Number);if(!Number['isFinite'](_0x21c1b4)||!Number['isFinite'](_0x4d720a))return void console['error']('Invalid\x20crop\x20preset:\x20'+_0x3dec09);return[{'type':'aspect-ratio','width':_0x21c1b4,'height':_0x4d720a}];},PACKAGE_NAME='blocks',PACKAGE_VERSION='1.19.4';function customUserAgent(_0x3e0d2d){return getUserAgent$1({..._0x3e0d2d,'libraryName':PACKAGE_NAME,'libraryVersion':PACKAGE_VERSION});}const msToUnixTimestamp=_0xe8fbd1=>Math['floor'](_0xe8fbd1/0x3e8),isSecureTokenExpired=(_0x2bc00c,{threshold:_0x202561})=>{const {secureExpire:_0x46cbf3}=_0x2bc00c,_0x4527de=msToUnixTimestamp(Date['now']()),_0x3ab11c=Number(_0x46cbf3);return _0x4527de+msToUnixTimestamp(_0x202561)>=_0x3ab11c;};class SecureUploadsManager{['_block'];['_secureToken']=null;constructor(_0x2bb38a){this['_block']=_0x2bb38a;}['_debugPrint'](..._0x5f4c03){this['_block']['debugPrint']('[secure-uploads]',..._0x5f4c03);}async['getSecureToken'](){const {secureSignature:_0x50b07c,secureExpire:_0x34ed4f,secureUploadsSignatureResolver:_0x47ce7d}=this['_block']['cfg'];if((_0x50b07c||_0x34ed4f)&&_0x47ce7d&&console['warn']('Both\x20secureSignature/secureExpire\x20and\x20secureUploadsSignatureResolver\x20are\x20set.\x20secureUploadsSignatureResolver\x20will\x20be\x20used.'),_0x47ce7d){if(!this['_secureToken']||isSecureTokenExpired(this['_secureToken'],{'threshold':this['_block']['cfg']['secureUploadsExpireThreshold']})){this['_secureToken']?this['_debugPrint']('Secure\x20signature\x20is\x20expired.\x20Resolving\x20a\x20new\x20one...'):this['_debugPrint']('Secure\x20signature\x20is\x20not\x20set\x20yet.');try{const _0x487428=await _0x47ce7d();_0x487428?_0x487428['secureSignature']&&_0x487428['secureExpire']?(this['_debugPrint']('Secure\x20signature\x20resolved:',_0x487428),this['_debugPrint']('Secure\x20signature\x20will\x20expire\x20in',new Date(0x3e8*Number(_0x487428['secureExpire']))['toISOString']()),this['_secureToken']=_0x487428):console['error']('Secure\x20signature\x20resolver\x20returned\x20an\x20invalid\x20result:',_0x487428):(this['_debugPrint']('Secure\x20signature\x20resolver\x20returned\x20nothing.'),this['_secureToken']=null);}catch(_0x151269){console['error']('Secure\x20signature\x20resolving\x20failed.\x20Falling\x20back\x20to\x20the\x20previous\x20one.',_0x151269);}}return this['_secureToken'];}return _0x50b07c&&_0x34ed4f?(this['_debugPrint']('Secure\x20signature\x20and\x20expire\x20are\x20set.\x20Using\x20them...',{'secureSignature':_0x50b07c,'secureExpire':_0x34ed4f}),{'secureSignature':_0x50b07c,'secureExpire':_0x34ed4f}):null;}}const MSG_NAME='[Typed\x20State]\x20Wrong\x20property\x20name:\x20',MSG_TYPE='[Typed\x20State]\x20Wrong\x20property\x20type:\x20';class TypedData{constructor(_0x4cda34,_0x5ba9a9){this['__typedSchema']=_0x4cda34,this['__ctxId']=_0x5ba9a9||UID['generate'](),this['__schema']=Object['keys'](_0x4cda34)['reduce']((_0x1a7d13,_0x48f4b0)=>(_0x1a7d13[_0x48f4b0]=_0x4cda34[_0x48f4b0]['value'],_0x1a7d13),{}),this['__data']=Data['registerCtx'](this['__schema'],this['__ctxId']);}get['uid'](){return this['__ctxId'];}['setValue'](_0x5c76d5,_0x19ea0f){if(!this['__typedSchema']['hasOwnProperty'](_0x5c76d5))return void console['warn'](MSG_NAME+_0x5c76d5);let _0x3e3aed=this['__typedSchema'][_0x5c76d5],_0x3cb358=_0x19ea0f?.['constructor']===_0x3e3aed['type'],_0x5211c8=_0x19ea0f instanceof _0x3e3aed['type'],_0xb235a2=_0x3e3aed['nullable']&&null===_0x19ea0f;_0x3cb358||_0x5211c8||_0xb235a2?this['__data']['pub'](_0x5c76d5,_0x19ea0f):console['warn'](MSG_TYPE+_0x5c76d5);}['setMultipleValues'](_0x456f2f){for(let [_0x3c876f,_0x10df2d]of Object['entries'](_0x456f2f))this['setValue'](_0x3c876f,_0x10df2d);}['getValue'](_0x4d1c19){return this['__typedSchema']['hasOwnProperty'](_0x4d1c19)||console['warn'](MSG_NAME+_0x4d1c19),this['__data']['read'](_0x4d1c19);}['subscribe'](_0x4784e8,_0x4f4746){return this['__data']['sub'](_0x4784e8,_0x4f4746);}['remove'](){Data['deleteCtx'](this['__ctxId']);}}class TypedCollection{constructor(_0x26105f){this['__typedSchema']=_0x26105f['typedSchema'],this['__ctxId']=_0x26105f['ctxName']||UID['generate'](),this['__data']=Data['registerCtx']({},this['__ctxId']),this['__watchList']=_0x26105f['watchList']||[],this['__subsMap']=Object['create'](null),this['__propertyObservers']=new Set(),this['__collectionObservers']=new Set(),this['__items']=new Set(),this['__removed']=new Set(),this['__added']=new Set();let _0x92a850=Object['create'](null);this['__notifyObservers']=(_0x1bbc0c,_0x4949f5)=>{this['__observeTimeout']&&window['clearTimeout'](this['__observeTimeout']),_0x92a850[_0x1bbc0c]||(_0x92a850[_0x1bbc0c]=new Set()),_0x92a850[_0x1bbc0c]['add'](_0x4949f5),this['__observeTimeout']=window['setTimeout'](()=>{0x0!==Object['keys'](_0x92a850)['length']&&(this['__propertyObservers']['forEach'](_0x1dcb2b=>{_0x1dcb2b({..._0x92a850});}),_0x92a850=Object['create'](null));});};}['notify'](){this['__notifyTimeout']&&window['clearTimeout'](this['__notifyTimeout']),this['__notifyTimeout']=window['setTimeout'](()=>{let _0x267800=new Set(this['__added']),_0x36a16e=new Set(this['__removed']);this['__added']['clear'](),this['__removed']['clear']();for(const _0x4b072b of this['__collectionObservers'])_0x4b072b?.([...this['__items']],_0x267800,_0x36a16e);});}['observeCollection'](_0x20c1a0){return this['__collectionObservers']['add'](_0x20c1a0),this['__items']['size']>0x0&&this['notify'](),()=>{this['unobserveCollection'](_0x20c1a0);};}['unobserveCollection'](_0x33822d){this['__collectionObservers']?.['delete'](_0x33822d);}['add'](_0xa083ef){let _0x81e2f2=new TypedData(this['__typedSchema']);for(let [_0x47c0e8,_0xc969af]of Object['entries'](_0xa083ef))_0x81e2f2['setValue'](_0x47c0e8,_0xc969af);return this['__items']['add'](_0x81e2f2['uid']),this['notify'](),this['__data']['add'](_0x81e2f2['uid'],_0x81e2f2),this['__added']['add'](_0x81e2f2),this['__watchList']['forEach'](_0xadee6c=>{this['__subsMap'][_0x81e2f2['uid']]||(this['__subsMap'][_0x81e2f2['uid']]=[]),this['__subsMap'][_0x81e2f2['uid']]['push'](_0x81e2f2['subscribe'](_0xadee6c,()=>{this['__notifyObservers'](_0xadee6c,_0x81e2f2['uid']);}));}),_0x81e2f2['uid'];}['read'](_0x1c9be7){return this['__data']['read'](_0x1c9be7);}['readProp'](_0x5451c9,_0x2de312){let _0x5ae529=this['read'](_0x5451c9);return _0x5ae529?_0x5ae529['getValue'](_0x2de312):(console['warn']('Item\x20with\x20id\x20'+_0x5451c9+'\x20not\x20found'),null);}['publishProp'](_0xabba25,_0x53a96e,_0x17f159){let _0x1fce77=this['read'](_0xabba25);_0x1fce77?_0x1fce77['setValue'](_0x53a96e,_0x17f159):console['warn']('Item\x20with\x20id\x20'+_0xabba25+'\x20not\x20found');}['remove'](_0x585471){let _0x24edc0=this['read'](_0x585471);_0x24edc0&&this['__removed']['add'](_0x24edc0),this['__items']['delete'](_0x585471),this['notify'](),this['__data']['pub'](_0x585471,null),delete this['__subsMap'][_0x585471];}['clearAll'](){this['__items']['forEach'](_0x609c26=>{this['remove'](_0x609c26);});}['observeProperties'](_0x59062c){return this['__propertyObservers']['add'](_0x59062c),()=>{this['unobserveProperties'](_0x59062c);};}['unobserveProperties'](_0x36de70){this['__propertyObservers']?.['delete'](_0x36de70);}['findItems'](_0x1006a4){let _0x42b165=[];return this['__items']['forEach'](_0x20b541=>{let _0x42c2eb=this['read'](_0x20b541);_0x42c2eb&&_0x1006a4(_0x42c2eb)&&_0x42b165['push'](_0x20b541);}),_0x42b165;}['items'](){return[...this['__items']];}get['size'](){return this['__items']['size'];}['destroy'](){Data['deleteCtx'](this['__ctxId']),this['__propertyObservers']=new Set(),this['__collectionObservers']=new Set();for(let _0x427078 in this['__subsMap'])this['__subsMap'][_0x427078]['forEach'](_0x3a9f82=>{_0x3a9f82['remove']();}),delete this['__subsMap'][_0x427078];}}const CameraSourceTypes=Object['freeze']({'PHOTO':'photo','VIDEO':'video'}),CameraSourceEvents=Object['freeze']({'IDLE':'idle','SHOT':'shot','PLAY':'play','PAUSE':'pause','RESUME':'resume','STOP':'stop','RETAKE':'retake','ACCEPT':'accept'}),calcCameraModes=_0x17e0df=>({'isVideoRecordingEnabled':deserializeCsv(_0x17e0df['cameraModes'])['includes'](CameraSourceTypes['VIDEO']),'isPhotoEnabled':deserializeCsv(_0x17e0df['cameraModes'])['includes'](CameraSourceTypes['PHOTO'])}),ExternalUploadSource=Object['freeze']({'FACEBOOK':'facebook','DROPBOX':'dropbox','GDRIVE':'gdrive','GPHOTOS':'gphotos','FLICKR':'flickr','VK':'vk','EVERNOTE':'evernote','BOX':'box','ONEDRIVE':'onedrive','HUDDLE':'huddle'}),UploadSourceMobile=Object['freeze']({'MOBILE_VIDEO_CAMERA':'mobile-video-camera','MOBILE_PHOTO_CAMERA':'mobile-photo-camera'}),UploadSource=Object['freeze']({'LOCAL':'local','DROP_AREA':'drop-area','CAMERA':'camera','EXTERNAL':'external','API':'js-api','URL':'url','DRAW':'draw',...UploadSourceMobile,...ExternalUploadSource}),calcIsDesktopSafari=()=>{const _0x4b6661=navigator['userAgent'];return/Macintosh|Windows/['test'](_0x4b6661)&&/Version\/[\d\.]+.*Safari/['test'](_0x4b6661)&&!/Chrome|Chromium|Edg|OPR/['test'](_0x4b6661);},calcHtmlMediaCaptureSupport=()=>'capture'in document['createElement']('input'),calcBrowserInfo=()=>({'safariDesktop':calcIsDesktopSafari()}),calcBrowserFeatures=()=>({'htmlMediaCapture':calcHtmlMediaCaptureSupport()}),browserInfo=calcBrowserInfo(),browserFeatures=calcBrowserFeatures(),BASIC_IMAGE_WILDCARD='image/*',BASIC_VIDEO_WILDCARD='video/*',HEIC_IMAGE_MIME_LIST=['image/heif','image/heif-sequence','image/heic','image/heic-sequence','image/avif','image/avif-sequence','.heif','.heifs','.heic','.heics','.avif','.avifs'],calcImageAcceptList=()=>browserInfo['safariDesktop']?[BASIC_IMAGE_WILDCARD]:[BASIC_IMAGE_WILDCARD,...HEIC_IMAGE_MIME_LIST],IMAGE_ACCEPT_LIST=calcImageAcceptList(),mergeFileTypes=_0x41ba86=>_0x41ba86?_0x41ba86['filter'](_0x182560=>'string'==typeof _0x182560)['map'](_0x2dcd64=>stringToArray(_0x2dcd64))['flat']():[],matchMimeType=(_0x51bebc,_0x8725ae)=>_0x8725ae['some'](_0x41bb62=>_0x41bb62['endsWith']('*')?(_0x41bb62=_0x41bb62['replace']('*',''),_0x51bebc['startsWith'](_0x41bb62)):_0x51bebc===_0x41bb62),matchExtension=(_0x281eba,_0x4dfd1a)=>_0x4dfd1a['some'](_0x536b9d=>!!_0x536b9d['startsWith']('.')&&_0x281eba['toLowerCase']()['endsWith'](_0x536b9d['toLowerCase']())),fileIsImage=_0xff6b13=>{let _0xf17e3a=_0xff6b13?.['type'];return!!_0xf17e3a&&matchMimeType(_0xf17e3a,IMAGE_ACCEPT_LIST);},uuidRegex=/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/i,cdnUrlRegex=new RegExp('^/?('+uuidRegex['source']+')(?:/(-/(?:[^/]+/)+)?([^/]*))?$','i'),parseCdnUrl=({url:_0x3bb239,cdnBase:_0x1e4dc3})=>{const _0x7c4633=new URL(_0x1e4dc3),_0x67d0d5=new URL(_0x3bb239);if(_0x7c4633['host']!==_0x67d0d5['host'])return null;const [,_0x5bbbe2,_0x8541f7,_0x2003eb]=cdnUrlRegex['exec'](_0x67d0d5['pathname']);return{'uuid':_0x5bbbe2,'cdnUrlModifiers':_0x8541f7||'','filename':_0x2003eb||null};},memoize$1=_0x291350=>{const _0x239148=new Map();return(..._0x3d502a)=>{const _0x3b3c28=JSON['stringify'](_0x3d502a);if(_0x239148['has'](_0x3b3c28))return _0x239148['get'](_0x3b3c28);const _0x33845a=_0x291350(..._0x3d502a);return _0x239148['set'](_0x3b3c28,_0x33845a),_0x33845a;};},warnings=new Set();function warnOnce(_0x416e26){warnings['has'](_0x416e26)||(warnings['add'](_0x416e26),console['warn'](_0x416e26));}function createAsyncAssertWrapper(_0x5abcca){let _0x2b7505=!0x1;return setTimeout(()=>{_0x2b7505=!0x0;},0x0),_0x494529=>(..._0xcb045c)=>(_0x2b7505&&warnOnce(_0x5abcca),_0x494529(..._0xcb045c));}function buildOutputCollectionState(_0x5a5bda){const _0x2f3d32={'progress':()=>_0x5a5bda['$']['*commonProgress'],'errors':()=>_0x5a5bda['$']['*collectionErrors'],'group':()=>_0x5a5bda['$']['*groupInfo'],'totalCount':()=>_0x5a5bda['uploadCollection']['size'],'failedCount':()=>_0x49c192['failedEntries']['length'],'successCount':()=>_0x49c192['successEntries']['length'],'uploadingCount':()=>_0x49c192['uploadingEntries']['length'],'status':()=>_0x49c192['isFailed']?'failed':_0x49c192['isUploading']?'uploading':_0x49c192['isSuccess']?'success':'idle','isSuccess':()=>_0x49c192['allEntries']['length']>0x0&&0x0===_0x49c192['errors']['length']&&_0x49c192['successEntries']['length']===_0x49c192['allEntries']['length'],'isUploading':()=>_0x49c192['allEntries']['some'](_0xc480ca=>'uploading'===_0xc480ca['status']),'isFailed':()=>_0x49c192['errors']['length']>0x0||_0x49c192['failedEntries']['length']>0x0,'allEntries':()=>_0x5a5bda['getOutputData'](),'successEntries':()=>_0x49c192['allEntries']['filter'](_0x4eb44c=>'success'===_0x4eb44c['status']),'failedEntries':()=>_0x49c192['allEntries']['filter'](_0x35edc3=>'failed'===_0x35edc3['status']),'uploadingEntries':()=>_0x49c192['allEntries']['filter'](_0x1f6308=>'uploading'===_0x1f6308['status']),'idleEntries':()=>_0x49c192['allEntries']['filter'](_0x5692cc=>'idle'===_0x5692cc['status'])},_0x49c192={},_0x23e8ec=createAsyncAssertWrapper('You\x27re\x20trying\x20to\x20access\x20the\x20OutputCollectionState\x20asynchronously.\x20In\x20this\x20case,\x20the\x20data\x20you\x20retrieve\x20will\x20be\x20newer\x20than\x20it\x20was\x20when\x20the\x20OutputCollectionState\x20was\x20created\x20or\x20when\x20the\x20event\x20was\x20dispatched.\x20If\x20you\x20want\x20to\x20retain\x20the\x20state\x20at\x20a\x20specific\x20moment\x20in\x20time,\x20you\x20should\x20use\x20the\x20spread\x20operator\x20like\x20this:\x20`{...outputCollectionState}`\x20or\x20`{...e.detail}`');for(const [_0x1f2e51,_0x53f5b7]of Object['entries'](_0x2f3d32)){const _0xa2d311=_0x1f2e51,_0x46eafe=memoize$1(_0x23e8ec(_0x53f5b7));Object['defineProperty'](_0x49c192,_0xa2d311,{'get':_0x46eafe,'enumerable':!0x0});}return _0x49c192;}class UploaderPublicApi{['_ctx'];constructor(_0x2001a1){this['_ctx']=_0x2001a1;}get['_uploadCollection'](){return this['_ctx']['uploadCollection'];}get['cfg'](){return this['_ctx']['cfg'];}get['l10n'](){return this['_ctx']['l10n']['bind'](this['_ctx']);}['addFileFromUrl']=(_0x2e797e,{silent:_0x6e7d9,fileName:_0x1660f4,source:_0x2b11da}={})=>{const _0x234548=this['_uploadCollection']['add']({'externalUrl':_0x2e797e,'fileName':_0x1660f4??null,'silent':_0x6e7d9??!0x1,'source':_0x2b11da??UploadSource['API']});return this['getOutputItem'](_0x234548);};['addFileFromUuid']=(_0x26e19f,{silent:_0x72219b,fileName:_0x3fece9,source:_0x1eb707}={})=>{const _0x444ada=this['_uploadCollection']['add']({'uuid':_0x26e19f,'fileName':_0x3fece9??null,'silent':_0x72219b??!0x1,'source':_0x1eb707??UploadSource['API']});return this['getOutputItem'](_0x444ada);};['addFileFromCdnUrl']=(_0x4e74d2,{silent:_0x218b15,fileName:_0x116c38,source:_0x510b02}={})=>{const _0x3e7960=parseCdnUrl({'url':_0x4e74d2,'cdnBase':this['cfg']['cdnCname']});if(!_0x3e7960)throw new Error('Invalid\x20CDN\x20URL');const _0x3ce21c=this['_uploadCollection']['add']({'uuid':_0x3e7960['uuid'],'cdnUrl':_0x4e74d2,'cdnUrlModifiers':_0x3e7960['cdnUrlModifiers'],'fileName':_0x116c38??_0x3e7960['filename']??null,'silent':_0x218b15??!0x1,'source':_0x510b02??UploadSource['API']});return this['getOutputItem'](_0x3ce21c);};['addFileFromObject']=(_0x39b109,{silent:_0x56c05b,fileName:_0x1383d6,source:_0x477d5b,fullPath:_0x54d0ec}={})=>{const _0x2e776f=this['_uploadCollection']['add']({'file':_0x39b109,'isImage':fileIsImage(_0x39b109),'mimeType':_0x39b109['type'],'fileName':_0x1383d6??_0x39b109['name'],'fileSize':_0x39b109['size'],'silent':_0x56c05b??!0x1,'source':_0x477d5b??UploadSource['API'],'fullPath':_0x54d0ec??null});return this['getOutputItem'](_0x2e776f);};['removeFileByInternalId']=_0x30947d=>{if(!this['_uploadCollection']['read'](_0x30947d))throw new Error('File\x20with\x20internalId\x20'+_0x30947d+'\x20not\x20found');this['_uploadCollection']['remove'](_0x30947d);};['removeAllFiles'](){this['_uploadCollection']['clearAll']();}['uploadAll']=()=>{const _0x3b4742=this['_uploadCollection']['items']()['filter'](_0x438b9f=>{const _0x5dbdb=this['_uploadCollection']['read'](_0x438b9f);return!!_0x5dbdb&&(!_0x5dbdb['getValue']('isRemoved')&&!_0x5dbdb['getValue']('isUploading')&&!_0x5dbdb['getValue']('fileInfo'));});0x0!==_0x3b4742['length']&&(this['_ctx']['$']['*uploadTrigger']=new Set(_0x3b4742),this['_ctx']['emit'](EventType['COMMON_UPLOAD_START'],this['getOutputCollectionState']()));};['openSystemDialog']=(_0x3581df={})=>{const _0xaec020=serializeCsv(mergeFileTypes([this['cfg']['accept']??'',...this['cfg']['imgOnly']?IMAGE_ACCEPT_LIST:[]])),_0x44f84e='uploadcare-file-input',_0x4c69bd=document['createElement']('input');if(_0x4c69bd['setAttribute'](_0x44f84e,''),applyStyles(_0x4c69bd,{'opacity':0x0,'height':0x0,'width':0x0,'visibility':'hidden','position':'absolute','top':0x0,'left':0x0}),_0x4c69bd['type']='file',_0x4c69bd['multiple']=this['cfg']['multiple'],_0x3581df['captureCamera']){_0x4c69bd['capture']=this['cfg']['cameraCapture'];const {isPhotoEnabled:_0x2706da,isVideoRecordingEnabled:_0x4de11c}=calcCameraModes(this['cfg']);_0x3581df['modeCamera']===CameraSourceTypes['PHOTO']&&_0x2706da?_0x4c69bd['accept']=BASIC_IMAGE_WILDCARD:_0x3581df['modeCamera']===CameraSourceTypes['VIDEO']&&_0x4de11c?_0x4c69bd['accept']=BASIC_VIDEO_WILDCARD:_0x4c69bd['accept']=[BASIC_IMAGE_WILDCARD,_0x4de11c&&BASIC_VIDEO_WILDCARD]['filter'](Boolean)['join'](',');}else _0x4c69bd['accept']=_0xaec020;_0x4c69bd['addEventListener']('change',()=>{_0x4c69bd['files']&&([..._0x4c69bd['files']]['forEach'](_0x1c277b=>this['addFileFromObject'](_0x1c277b,{'source':_0x3581df['captureCamera']?UploadSource['CAMERA']:UploadSource['LOCAL']})),this['_ctx']['modalManager']['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['_ctx']['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],_0x4c69bd['remove']());},{'once':!0x0}),document['querySelectorAll']('['+_0x44f84e+']')['forEach'](_0x310e52=>_0x310e52['remove']()),document['body']['appendChild'](_0x4c69bd),_0x4c69bd['dispatchEvent'](new MouseEvent('click'));};['getOutputItem'](_0x43adf7){const _0xef5773=Data['getCtx'](_0x43adf7)['store'],_0x1188f1=_0xef5773['fileInfo'];let _0x511e31=_0xef5773['isRemoved']?'removed':_0xef5773['errors']['length']>0x0?'failed':_0xef5773['fileInfo']?'success':_0xef5773['isUploading']?'uploading':'idle';return{'uuid':_0x1188f1?.['uuid']??_0xef5773['uuid']??null,'internalId':_0x43adf7,'name':_0x1188f1?.['originalFilename']??_0xef5773['fileName'],'size':_0x1188f1?.['size']??_0xef5773['fileSize'],'isImage':_0x1188f1?.['isImage']??_0xef5773['isImage'],'mimeType':_0x1188f1?.['mimeType']??_0xef5773['mimeType'],'file':_0xef5773['file'],'externalUrl':_0xef5773['externalUrl'],'cdnUrlModifiers':_0xef5773['cdnUrlModifiers'],'cdnUrl':_0xef5773['cdnUrl']??_0x1188f1?.['cdnUrl']??null,'fullPath':_0xef5773['fullPath'],'uploadProgress':_0xef5773['uploadProgress'],'fileInfo':_0x1188f1??null,'metadata':_0xef5773['metadata']??_0x1188f1?.['metadata']??null,'isSuccess':'success'===_0x511e31,'isUploading':'uploading'===_0x511e31,'isFailed':'failed'===_0x511e31,'isRemoved':'removed'===_0x511e31,'errors':_0xef5773['errors'],'status':_0x511e31,'source':_0xef5773?.['source']};}['getOutputCollectionState'](){return buildOutputCollectionState(this['_ctx']);}['initFlow']=(_0xdd04db=!0x1)=>{if(this['_uploadCollection']['size']>0x0&&!_0xdd04db)this['_ctx']['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['_ctx']['set$']({'*currentActivity':ActivityBlock['activities']['UPLOAD_LIST']});else{if(0x1===this['_sourceList']?.['length']){const _0x658bfc=this['_sourceList'][0x0];if('local'===_0x658bfc)return this['_ctx']['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],void this['openSystemDialog']();if('camera'===_0x658bfc&&browserFeatures['htmlMediaCapture']){const {isPhotoEnabled:_0x4c32db,isVideoRecordingEnabled:_0x52a868}=calcCameraModes(this['cfg']);if(_0x4c32db&&_0x52a868)return void this['_ctx']['set$']({'*currentActivity':ActivityBlock['activities']['START_FROM']});if(_0x4c32db||_0x52a868)return void this['openSystemDialog']({'captureCamera':!0x0,'modeCamera':_0x4c32db?CameraSourceTypes['PHOTO']:CameraSourceTypes['VIDEO']});this['openSystemDialog']({'captureCamera':!0x0,'modeCamera':CameraSourceTypes['PHOTO']});}const _0x994ef=[...this['_ctx']['$']['*blocksRegistry']]['find'](_0x548ba1=>'type'in _0x548ba1&&_0x548ba1['type']===_0x658bfc);_0x994ef?.['activate'](),this['_ctx']['$']['*currentActivity']&&this['_ctx']['modalManager']?.['open'](this['_ctx']['$']['*currentActivity']);}else this['_ctx']['modalManager']?.['open'](ActivityBlock['activities']['START_FROM']),this['_ctx']['set$']({'*currentActivity':ActivityBlock['activities']['START_FROM']});}};['doneFlow']=()=>{this['_ctx']['set$']({'*currentActivity':this['_ctx']['doneActivity'],'*history':this['_ctx']['doneActivity']?[this['_ctx']['doneActivity']]:[]}),this['_ctx']['$']['*currentActivity']||this['_ctx']['modalManager']['closeAll']();};['setCurrentActivity']=(_0x30141e,_0x1f53fe=void 0x0)=>{this['_ctx']['hasBlockInCtx'](_0x37f50a=>_0x37f50a['activityType']===_0x30141e)?this['_ctx']['set$']({'*currentActivityParams':_0x1f53fe??{},'*currentActivity':_0x30141e}):console['warn']('Activity\x20type\x20\x22'+_0x30141e+'\x22\x20not\x20found\x20in\x20the\x20context');};['getCurrentActivity']=()=>this['_ctx']['$']['*currentActivity'];['setModalState']=_0x508fcf=>{!_0x508fcf||this['_ctx']['$']['*currentActivity']?_0x508fcf?this['_ctx']['modalManager']?.['open'](this['_ctx']['$']['*currentActivity']):(this['_ctx']['modalManager']?.['close'](this['_ctx']['$']['*currentActivity']),this['_ctx']['$']['*currentActivity']=null):console['warn']('Can\x27t\x20open\x20modal\x20without\x20current\x20activity.\x20Please\x20use\x20\x22setCurrentActivity\x22\x20method\x20first.');};get['_sourceList'](){let _0x429b92=[];return this['cfg']['sourceList']&&(_0x429b92=stringToArray(this['cfg']['sourceList'])),_0x429b92;}}const validateIsImage=(_0x3bfce9,_0x1b84eb)=>{const _0x5bc859=_0x1b84eb['cfg']['imgOnly'],_0x146c8b=_0x3bfce9['isImage'];if(_0x5bc859&&!_0x146c8b&&(_0x3bfce9['fileInfo']||!_0x3bfce9['externalUrl'])&&(_0x3bfce9['fileInfo']||_0x3bfce9['mimeType']))return{'type':'NOT_AN_IMAGE','message':_0x1b84eb['l10n']('images-only-accepted'),'payload':{'entry':_0x3bfce9}};},validateFileType=(_0x456448,_0x2a5339)=>{const _0x5645d8=_0x2a5339['cfg']['imgOnly'],_0x256425=_0x2a5339['cfg']['accept'],_0x41cc39=mergeFileTypes([..._0x5645d8?IMAGE_ACCEPT_LIST:[],_0x256425]);if(!_0x41cc39['length'])return;const _0x1aefa3=_0x456448['mimeType'],_0x495ed4=_0x456448['name'];if(!_0x1aefa3||!_0x495ed4)return;const _0x4c471f=matchMimeType(_0x1aefa3,_0x41cc39),_0x48d5fb=matchExtension(_0x495ed4,_0x41cc39);return _0x4c471f||_0x48d5fb?void 0x0:{'type':'FORBIDDEN_FILE_TYPE','message':_0x2a5339['l10n']('file-type-not-allowed'),'payload':{'entry':_0x456448}};},BASE=0x3e8,ByteUnitEnum=Object['freeze']({'AUTO':'auto','BYTE':'byte','KB':'kb','MB':'mb','GB':'gb','TB':'tb','PB':'pb'}),round=_0x37409d=>Math['ceil'](0x64*_0x37409d)/0x64,prettyBytes=(_0x59980a,_0x321940=ByteUnitEnum['AUTO'])=>{const _0x27bb32=_0x321940===ByteUnitEnum['AUTO'];if(_0x321940===ByteUnitEnum['BYTE']||_0x27bb32&&_0x59980a<BASE**0x1)return _0x59980a+'\x20'+{'one':'byte','other':'bytes'}[getPluralForm('en-US',_0x59980a)];return _0x321940===ByteUnitEnum['KB']||_0x27bb32&&_0x59980a<BASE**0x2?round(_0x59980a/BASE**0x1)+'\x20KB':_0x321940===ByteUnitEnum['MB']||_0x27bb32&&_0x59980a<BASE**0x3?round(_0x59980a/BASE**0x2)+'\x20MB':_0x321940===ByteUnitEnum['GB']||_0x27bb32&&_0x59980a<BASE**0x4?round(_0x59980a/BASE**0x3)+'\x20GB':_0x321940===ByteUnitEnum['TB']||_0x27bb32&&_0x59980a<BASE**0x5?round(_0x59980a/BASE**0x4)+'\x20TB':round(_0x59980a/BASE**0x5)+'\x20PB';},validateMaxSizeLimit=(_0x4c2016,_0x52cb8b)=>{const _0x252d22=_0x52cb8b['cfg']['maxLocalFileSizeBytes'],_0x40a9e4=_0x4c2016['size'];if(_0x252d22&&_0x40a9e4&&_0x40a9e4>_0x252d22)return{'type':'FILE_SIZE_EXCEEDED','message':_0x52cb8b['l10n']('files-max-size-limit-error',{'maxFileSize':prettyBytes(_0x252d22)}),'payload':{'entry':_0x4c2016}};},validateUploadError=(_0x225bb8,_0x48caf3)=>{const {internalId:_0x363714}=_0x225bb8,_0x236223=_0x48caf3['_uploadCollection']['read'](_0x363714),_0x1c5296=_0x236223?.['getValue']('uploadError');if(!_0x1c5296)return;if(_0x1c5296 instanceof UploadError)return{'type':'UPLOAD_ERROR','message':_0x1c5296['message'],'payload':{'entry':_0x225bb8,'error':_0x1c5296}};if(_0x1c5296 instanceof NetworkError)return{'type':'NETWORK_ERROR','message':_0x1c5296['message'],'payload':{'entry':_0x225bb8,'error':_0x1c5296}};const _0x29b422=_0x1c5296 instanceof Error?_0x1c5296:new Error('Unknown\x20error',{'cause':_0x1c5296});return{'type':'UNKNOWN_ERROR','message':_0x29b422['message'],'payload':{'entry':_0x225bb8,'error':_0x29b422}};},validateCollectionUploadError=(_0xb59846,_0x3d3f7e)=>{if(_0xb59846['failedCount']>0x0)return{'type':'SOME_FILES_HAS_ERRORS','message':_0x3d3f7e['l10n']('some-files-were-not-uploaded')};},validateMultiple=(_0xeaf1bc,_0x997452)=>{const _0x4ca3f4=_0xeaf1bc['totalCount'],_0x2bb8dd=_0x997452['cfg']['multiple']?_0x997452['cfg']['multipleMin']:0x0,_0x3c08e7=_0x997452['cfg']['multiple']?_0x997452['cfg']['multipleMax']:0x1;if(_0x2bb8dd&&_0x4ca3f4<_0x2bb8dd)return{'type':'TOO_FEW_FILES','message':_0x997452['l10n']('files-count-limit-error-too-few',{'min':_0x2bb8dd,'max':_0x3c08e7,'total':_0x4ca3f4}),'payload':{'total':_0x4ca3f4,'min':_0x2bb8dd,'max':_0x3c08e7}};if(_0x3c08e7&&_0x4ca3f4>_0x3c08e7)return{'type':'TOO_MANY_FILES','message':_0x997452['l10n']('files-count-limit-error-too-many',{'min':_0x2bb8dd,'max':_0x3c08e7,'total':_0x4ca3f4}),'payload':{'total':_0x4ca3f4,'min':_0x2bb8dd,'max':_0x3c08e7}};},LOGGER={'file':'File\x20validator\x20execution\x20has\x20failed','collection':'Collection\x20validator\x20execution\x20has\x20failed','message':'Missing\x20message.\x20We\x20recommend\x20adding\x20message:\x20value.'};class ValidationManager{['_blockInstance'];['_fileValidators']=[validateIsImage,validateFileType,validateMaxSizeLimit,validateUploadError];['_collectionValidators']=[validateMultiple,validateCollectionUploadError];constructor(_0x386285){this['_blockInstance']=_0x386285,this['_uploadCollection']=this['_blockInstance']['uploadCollection'];const _0x52918f=()=>{this['runFileValidators'](),this['runCollectionValidators']();};this['_blockInstance']['subConfigValue']('maxLocalFileSizeBytes',_0x52918f),this['_blockInstance']['subConfigValue']('multipleMin',_0x52918f),this['_blockInstance']['subConfigValue']('multipleMax',_0x52918f),this['_blockInstance']['subConfigValue']('multiple',_0x52918f),this['_blockInstance']['subConfigValue']('imgOnly',_0x52918f),this['_blockInstance']['subConfigValue']('accept',_0x52918f);}['runFileValidators'](_0x4e9eba){const _0x88fb7e=_0x4e9eba??this['_uploadCollection']['items']();for(const _0x209258 of _0x88fb7e){const _0x2d3ab9=this['_uploadCollection']['read'](_0x209258);_0x2d3ab9&&this['_runFileValidatorsForEntry'](_0x2d3ab9);}}['runCollectionValidators'](){const _0x23c831=this['_blockInstance']['api']['getOutputCollectionState'](),_0xc5334d=[];for(const _0x3c4dd0 of[...this['_collectionValidators'],...this['_addCustomTypeToValidators'](this['_blockInstance']['cfg']['collectionValidators'])])try{const _0x3a93dd=_0x3c4dd0(_0x23c831,this['_blockInstance']['api']);if(!_0x3a93dd)continue;_0x3a93dd&&(_0xc5334d['push'](_0x3a93dd),_0x3a93dd['message']||console['warn'](LOGGER['message']));}catch(_0x1bfee3){console['warn'](LOGGER['collection'],_0x1bfee3);}this['_blockInstance']['$']['*collectionErrors']=_0xc5334d,_0xc5334d['length']>0x0&&this['_blockInstance']['emit'](EventType['COMMON_UPLOAD_FAILED'],()=>this['_blockInstance']['api']['getOutputCollectionState'](),{'debounce':!0x0});}['_runFileValidatorsForEntry'](_0x3be336){const _0x292229=this['_blockInstance']['api']['getOutputItem'](_0x3be336['uid']),_0x45b75e=[];for(const _0x3e69fa of[...this['_fileValidators'],...this['_addCustomTypeToValidators'](this['_blockInstance']['cfg']['fileValidators'])])try{const _0x597485=_0x3e69fa(_0x292229,this['_blockInstance']['api']);if(!_0x597485)continue;_0x597485&&(_0x45b75e['push'](_0x597485),_0x597485['message']||console['warn'](LOGGER['message']));}catch(_0x2ebf2e){console['warn'](LOGGER['file'],_0x2ebf2e);}_0x3be336['setValue']('errors',_0x45b75e);}['_addCustomTypeToValidators'](_0x96cd4d){return _0x96cd4d['map'](_0x4510ed=>(..._0xeb3a40)=>{const _0x437059=_0x4510ed(..._0xeb3a40);return _0x437059?{..._0x437059,'type':'CUSTOM_ERROR'}:void 0x0;});}}const uploadEntrySchema=Object['freeze']({'file':Object['freeze']({'type':File,'value':null,'nullable':!0x0}),'externalUrl':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'fileName':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'fileSize':Object['freeze']({'type':Number,'value':null,'nullable':!0x0}),'lastModified':Object['freeze']({'type':Number,'value':Date['now']()}),'uploadProgress':Object['freeze']({'type':Number,'value':0x0}),'uuid':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'isImage':Object['freeze']({'type':Boolean,'value':!0x1}),'mimeType':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'ctxName':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'cdnUrl':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'cdnUrlModifiers':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'fileInfo':Object['freeze']({'type':UploadcareFile,'value':null,'nullable':!0x0}),'isUploading':Object['freeze']({'type':Boolean,'value':!0x1}),'abortController':Object['freeze']({'type':AbortController,'value':null,'nullable':!0x0}),'thumbUrl':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'silent':Object['freeze']({'type':Boolean,'value':!0x1}),'source':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'fullPath':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'metadata':Object['freeze']({'type':Object,'value':null,'nullable':!0x0}),'errors':Object['freeze']({'type':Array,'value':[]}),'uploadError':Object['freeze']({'type':Error,'value':null,'nullable':!0x0}),'isRemoved':Object['freeze']({'type':Boolean,'value':!0x1}),'isQueued':Object['freeze']({'type':Boolean,'value':!0x1})});class UploaderBlock extends ActivityBlock{['couldBeCtxOwner']=!0x1;['isCtxOwner']=!0x1;['init$']=uploaderBlockCtx(this);get['hasCtxOwner'](){return this['hasBlockInCtx'](_0x55042c=>_0x55042c instanceof UploaderBlock&&(_0x55042c['isCtxOwner']&&_0x55042c['isConnected']&&_0x55042c!==this));}['initCallback'](){if(super['initCallback'](),!this['has']('*uploadCollection')){let _0x50dd37=new TypedCollection({'typedSchema':uploadEntrySchema,'watchList':['uploadProgress','uploadError','fileInfo','errors','cdnUrl','isUploading']});this['add']('*uploadCollection',_0x50dd37);}this['has']('*publicApi')||this['add']('*publicApi',new UploaderPublicApi(this)),this['has']('*validationManager')||this['add']('*validationManager',new ValidationManager(this)),!this['hasCtxOwner']&&this['couldBeCtxOwner']&&this['initCtxOwner']();}get['validationManager'](){if(!this['has']('*validationManager'))throw new Error('Unexpected\x20error:\x20ValidationManager\x20is\x20not\x20initialized');return this['$']['*validationManager'];}get['api'](){if(!this['has']('*publicApi'))throw new Error('Unexpected\x20error:\x20UploaderPublicApi\x20is\x20not\x20initialized');return this['$']['*publicApi'];}['getAPI'](){return this['api'];}get['uploadCollection'](){if(!this['has']('*uploadCollection'))throw new Error('Unexpected\x20error:\x20TypedCollection\x20is\x20not\x20initialized');return this['$']['*uploadCollection'];}['destroyCtxCallback'](){this['_unobserveCollectionProperties']?.(),this['_unobserveCollection']?.(),this['uploadCollection']['destroy'](),this['$']['*uploadCollection']=null,super['destroyCtxCallback']();}['destroyCallback'](){super['destroyCallback'](),this['_flushOutputItems']['cancel']();}['initCtxOwner'](){this['isCtxOwner']=!0x0,this['_unobserveCollection']=this['uploadCollection']['observeCollection'](this['_handleCollectionUpdate']),this['_unobserveCollectionProperties']=this['uploadCollection']['observeProperties'](this['_handleCollectionPropertiesUpdate']),this['subConfigValue']('maxConcurrentRequests',_0x1c060c=>{this['$']['*uploadQueue']['concurrency']=Number(_0x1c060c)||0x1;}),this['$']['*secureUploadsManager']||(this['$']['*secureUploadsManager']=new SecureUploadsManager(this));}async['_createGroup'](_0x346bbb){const _0x3ca9b7=await this['getUploadClientOptions'](),_0x2342ba=_0x346bbb['allEntries']['map'](_0x4feebf=>_0x4feebf['uuid']+(_0x4feebf['cdnUrlModifiers']?'/'+_0x4feebf['cdnUrlModifiers']:'')),_0x39ee11=new AbortController(),_0x284de5=await uploadFileGroup(_0x2342ba,{..._0x3ca9b7,'signal':_0x39ee11['signal']});if(this['$']['*collectionState']!==_0x346bbb)return void _0x39ee11['abort']();this['$']['*groupInfo']=_0x284de5;const _0x47bfd9=this['api']['getOutputCollectionState']();this['emit'](EventType['GROUP_CREATED'],_0x47bfd9),this['emit'](EventType['CHANGE'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}),this['$']['*collectionState']=_0x47bfd9;}['_flushOutputItems']=debounce(async()=>{if(this['getOutputData']()['length']!==this['uploadCollection']['size'])return;const e=this['api']['getOutputCollectionState']();this['$']['*collectionState']=e,this['emit'](EventType['CHANGE'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}),this['cfg']['groupOutput']&&e['totalCount']>0x0&&'success'===e['status']&&this['_createGroup'](e);},0x12c);['_handleCollectionUpdate']=(_0x23266b,_0x485337,_0x34754a)=>{(_0x485337['size']||_0x34754a['size'])&&(this['$']['*groupInfo']=null),this['validationManager']['runFileValidators'](),this['validationManager']['runCollectionValidators']();for(const _0x5bbc5c of _0x485337)_0x5bbc5c['getValue']('silent')||this['emit'](EventType['FILE_ADDED'],this['api']['getOutputItem'](_0x5bbc5c['uid']));for(const _0x18529a of _0x34754a){this['$']['*uploadTrigger']['delete'](_0x18529a['uid']),_0x18529a['getValue']('abortController')?.['abort'](),_0x18529a['setMultipleValues']({'isRemoved':!0x0,'abortController':null,'isUploading':!0x1,'uploadProgress':0x0});const _0x3f6426=_0x18529a?.['getValue']('thumbUrl');_0x3f6426&&URL['revokeObjectURL'](_0x3f6426),this['emit'](EventType['FILE_REMOVED'],this['api']['getOutputItem'](_0x18529a['uid']));}this['$']['*uploadList']=_0x23266b['map'](_0x38d4d3=>({'uid':_0x38d4d3})),this['_flushCommonUploadProgress'](),this['_flushOutputItems']();};['_handleCollectionPropertiesUpdate']=_0x99b028=>{this['_flushOutputItems']();const _0x20ee1d=this['uploadCollection'],_0x4b94fa=[...new Set(Object['entries'](_0x99b028)['filter'](([_0x3b7b80])=>['uploadError','fileInfo']['includes'](_0x3b7b80))['map'](([,_0x3c91b9])=>[..._0x3c91b9])['flat']())];if(_0x4b94fa['length']>0x0&&setTimeout(()=>{this['validationManager']['runFileValidators'](_0x4b94fa);}),_0x99b028['uploadProgress']){for(const _0xcc0c9d of _0x99b028['uploadProgress']){const {isUploading:_0x5d79f4,silent:_0x27ec61}=Data['getCtx'](_0xcc0c9d)['store'];_0x5d79f4&&!_0x27ec61&&this['emit'](EventType['FILE_UPLOAD_PROGRESS'],this['api']['getOutputItem'](_0xcc0c9d));}this['_flushCommonUploadProgress']();}if(_0x99b028['isUploading'])for(const _0x49c735 of _0x99b028['isUploading']){const {isUploading:_0xa15263,silent:_0x4e788a}=Data['getCtx'](_0x49c735)['store'];_0xa15263&&!_0x4e788a&&this['emit'](EventType['FILE_UPLOAD_START'],this['api']['getOutputItem'](_0x49c735));}if(_0x99b028['fileInfo']){for(const _0x26fe5b of _0x99b028['fileInfo']){const {fileInfo:_0x41c324,silent:_0x2b81c4}=Data['getCtx'](_0x26fe5b)['store'];_0x41c324&&!_0x2b81c4&&this['emit'](EventType['FILE_UPLOAD_SUCCESS'],this['api']['getOutputItem'](_0x26fe5b));}this['cfg']['cropPreset']&&this['setInitialCrop'](),this['cfg']['cloudImageEditorAutoOpen']&&this['openCloudImageEditor']();}if(_0x99b028['errors']){for(const _0xba676f of _0x99b028['errors']){const {errors:_0x3381f5}=Data['getCtx'](_0xba676f)['store'];_0x3381f5['length']>0x0&&(this['emit'](EventType['FILE_UPLOAD_FAILED'],this['api']['getOutputItem'](_0xba676f)),this['emit'](EventType['COMMON_UPLOAD_FAILED'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}));}const _0x48dee7=_0x20ee1d['findItems'](_0xb5358=>!!_0xb5358['getValue']('fileInfo')),_0x772f17=_0x20ee1d['findItems'](_0x134f13=>_0x134f13['getValue']('errors')['length']>0x0);_0x20ee1d['size']>0x0&&0x0===_0x772f17['length']&&_0x20ee1d['size']===_0x48dee7['length']&&0x0===this['$']['*collectionErrors']['length']&&this['emit'](EventType['COMMON_UPLOAD_SUCCESS'],this['api']['getOutputCollectionState']());}if(_0x99b028['cdnUrl']){const _0x9a34d7=[..._0x99b028['cdnUrl']]['filter'](_0xd98025=>!!this['uploadCollection']['read'](_0xd98025)?.['getValue']('cdnUrl'));_0x9a34d7['forEach'](_0x485529=>{this['emit'](EventType['FILE_URL_CHANGED'],this['api']['getOutputItem'](_0x485529));}),this['$']['*groupInfo']=null;}};['_flushCommonUploadProgress']=()=>{let _0x42b1f8=0x0;const _0x2e3d13=[...this['$']['*uploadTrigger']]['filter'](_0x2e2aae=>!!this['uploadCollection']['read'](_0x2e2aae));_0x2e3d13['forEach'](_0xca5319=>{const _0x533af6=this['uploadCollection']['readProp'](_0xca5319,'uploadProgress');'number'==typeof _0x533af6&&(_0x42b1f8+=_0x533af6);});const _0x4cd584=_0x2e3d13['length']?Math['round'](_0x42b1f8/_0x2e3d13['length']):0x0;this['$']['*commonProgress']!==_0x4cd584&&(this['$']['*commonProgress']=_0x4cd584,this['emit'](EventType['COMMON_UPLOAD_PROGRESS'],this['api']['getOutputCollectionState']()));};['openCloudImageEditor'](){const [_0x360595]=this['uploadCollection']['findItems'](_0x414f25=>!!_0x414f25['getValue']('fileInfo')&&_0x414f25['getValue']('isImage'))['map'](_0x402502=>this['uploadCollection']['read'](_0x402502));_0x360595&&0x1===this['uploadCollection']['size']&&this['cfg']['useCloudImageEditor']&&this['hasBlockInCtx'](_0x108bd3=>_0x108bd3['activityType']===ActivityBlock['activities']['CLOUD_IMG_EDIT'])&&(this['$']['*currentActivityParams']={'internalId':_0x360595['uid']},this['$']['*currentActivity']=ActivityBlock['activities']['CLOUD_IMG_EDIT'],this['modalManager']['open'](ActivityBlock['activities']['CLOUD_IMG_EDIT']));}['setInitialCrop'](){const _0x2852ad=parseCropPreset(this['cfg']['cropPreset']);if(_0x2852ad){const [_0x7b996b]=_0x2852ad,_0x24b84f=this['uploadCollection']['findItems'](_0x21035c=>!!_0x21035c['getValue']('fileInfo')&&_0x21035c['getValue']('isImage')&&!_0x21035c['getValue']('cdnUrlModifiers')?.['includes']('/crop/'))['map'](_0x3a09a6=>this['uploadCollection']['read'](_0x3a09a6))['filter'](Boolean);for(const _0x50e77d of _0x24b84f){const _0x57b724=_0x50e77d['getValue']('fileInfo');if(!_0x57b724||!_0x57b724['imageInfo']){console['warn']('Failed\x20to\x20get\x20image\x20info\x20for\x20entry',_0x50e77d['uid']);continue;}const {width:_0x584cd0,height:_0x4c328a}=_0x57b724['imageInfo'],_0x5d1977=calculateMaxCenteredCropFrame(_0x584cd0,_0x4c328a,_0x7b996b['width']/_0x7b996b['height']),_0x597876=createCdnUrlModifiers('crop/'+_0x5d1977['width']+'x'+_0x5d1977['height']+'/'+_0x5d1977['x']+','+_0x5d1977['y'],'preview'),_0x12cbfe=_0x50e77d['getValue']('cdnUrl');_0x12cbfe?(_0x50e77d['setMultipleValues']({'cdnUrlModifiers':_0x597876,'cdnUrl':createCdnUrl(_0x12cbfe,_0x597876)}),0x1===this['uploadCollection']['size']&&this['cfg']['useCloudImageEditor']&&this['hasBlockInCtx'](_0x2d362e=>_0x2d362e['activityType']===ActivityBlock['activities']['CLOUD_IMG_EDIT'])&&(this['$']['*currentActivityParams']={'internalId':_0x50e77d['uid']},this['$']['*currentActivity']=ActivityBlock['activities']['CLOUD_IMG_EDIT'],this['modalManager']['open'](ActivityBlock['activities']['CLOUD_IMG_EDIT']))):console['warn']('Failed\x20to\x20get\x20cdnUrl\x20for\x20entry',_0x50e77d['uid']);}}}async['getMetadataFor'](_0x1ae23d){const _0x475360=this['cfg']['metadata']||void 0x0;if('function'==typeof _0x475360){const _0x2d4b3f=this['api']['getOutputItem'](_0x1ae23d);return await _0x475360(_0x2d4b3f);}return _0x475360;}async['getUploadClientOptions'](){const _0x5527a3=this['$']['*secureUploadsManager'],_0x1c82bb=await _0x5527a3['getSecureToken']()['catch'](()=>null);return{'store':this['cfg']['store'],'publicKey':this['cfg']['pubkey'],'baseCDN':this['cfg']['cdnCname'],'baseURL':this['cfg']['baseUrl'],'userAgent':customUserAgent,'integration':this['cfg']['userAgentIntegration'],'secureSignature':_0x1c82bb?.['secureSignature'],'secureExpire':_0x1c82bb?.['secureExpire'],'retryThrottledRequestMaxTimes':this['cfg']['retryThrottledRequestMaxTimes'],'retryNetworkErrorMaxTimes':this['cfg']['retryNetworkErrorMaxTimes'],'multipartMinFileSize':this['cfg']['multipartMinFileSize'],'multipartChunkSize':this['cfg']['multipartChunkSize'],'maxConcurrentRequests':this['cfg']['multipartMaxConcurrentRequests'],'multipartMaxAttempts':this['cfg']['multipartMaxAttempts'],'checkForUrlDuplicates':!!this['cfg']['checkForUrlDuplicates'],'saveUrlForRecurrentUploads':!!this['cfg']['saveUrlForRecurrentUploads']};}['getOutputData'](){return this['uploadCollection']['items']()['map'](_0x243bf=>this['api']['getOutputItem'](_0x243bf));}}UploaderBlock['extSrcList']=Object['freeze']({...ExternalUploadSource}),UploaderBlock['sourceTypes']=Object['freeze']({...UploadSource});const toKebabCase=_0x374f69=>_0x374f69['match'](/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)?.['map'](_0xf327ab=>_0xf327ab['toLowerCase']())['join']('-'),asString=_0x41d65b=>String(_0x41d65b),asNumber=_0xdc8246=>{const _0x576557=Number(_0xdc8246);if(Number['isNaN'](_0x576557))throw new Error('Invalid\x20number:\x20\x22'+_0xdc8246+'\x22');return _0x576557;},asBoolean=_0x2465c2=>{if(null==_0x2465c2)return!0x1;if('boolean'==typeof _0x2465c2)return _0x2465c2;if('true'===_0x2465c2)return!0x0;if(''===_0x2465c2)return!0x0;if('false'===_0x2465c2)return!0x1;throw new Error('Invalid\x20boolean:\x20\x22'+_0x2465c2+'\x22');},asStore=_0x24d193=>'auto'===_0x24d193?_0x24d193:asBoolean(_0x24d193),asCameraCapture=_0x2ee622=>{const _0x43cb51=asString(_0x2ee622);if('user'!==_0x43cb51&&'environment'!==_0x43cb51&&''!==_0x43cb51)throw new Error('Invalid\x20value:\x20\x22'+_0x43cb51+'\x22');return _0x43cb51;},asCameraMode=_0xa29363=>{const _0x31c74f=asString(_0xa29363);if(!Object['values'](CameraSourceTypes)['includes'](_0x31c74f))throw new Error('Invalid\x20value:\x20\x22'+_0x31c74f+'\x22');return _0x31c74f;},asCameraModes=_0x532507=>{const _0x164f53=asString(_0x532507),_0x526819=deserializeCsv(_0x164f53);if(_0x526819['some'](_0x3c51a3=>!Object['values'](CameraSourceTypes)['includes'](_0x3c51a3)))throw new Error('Invalid\x20value:\x20\x22'+JSON['stringify'](_0x526819)+'\x22');return _0x164f53;},asMetadata=_0x5ec510=>{if('object'==typeof _0x5ec510&&!Array['isArray'](_0x5ec510))return _0x5ec510;if('function'==typeof _0x5ec510)return _0x5ec510;throw new Error('Invalid\x20metadata\x20value.\x20Must\x20be\x20an\x20object\x20or\x20function.');},asObject=_0x402edb=>{if('object'==typeof _0x402edb)return _0x402edb;throw new Error('Invalid\x20value.\x20Must\x20be\x20an\x20object.');},asFunction=_0x4090c4=>{if('function'==typeof _0x4090c4)return _0x4090c4;throw new Error('Invalid\x20value.\x20Must\x20be\x20a\x20function.');},asArray=_0x4c9763=>{if(Array['isArray'](_0x4c9763))return _0x4c9763;throw new Error('Must\x20be\x20an\x20array.');},asFilesViewMode=_0x52da5d=>{const _0x4769de=asString(_0x52da5d);if(['grid','list']['includes'](_0x4769de))return _0x4769de;throw new Error('Invalid\x20value:\x20\x22'+_0x4769de+'\x22');},mapping={'pubkey':asString,'multiple':asBoolean,'multipleMin':asNumber,'multipleMax':asNumber,'confirmUpload':asBoolean,'imgOnly':asBoolean,'accept':asString,'externalSourcesPreferredTypes':asString,'externalSourcesEmbedCss':asString,'store':asStore,'cameraMirror':asBoolean,'cameraCapture':asCameraCapture,'sourceList':asString,'topLevelOrigin':asString,'maxLocalFileSizeBytes':asNumber,'thumbSize':asNumber,'showEmptyList':asBoolean,'useLocalImageEditor':asBoolean,'useCloudImageEditor':asBoolean,'cloudImageEditorTabs':asString,'removeCopyright':asBoolean,'cropPreset':asString,'imageShrink':asString,'modalScrollLock':asBoolean,'modalBackdropStrokes':asBoolean,'sourceListWrap':asBoolean,'remoteTabSessionKey':asString,'cdnCname':asString,'cdnCnamePrefixed':asString,'baseUrl':asString,'socialBaseUrl':asString,'secureSignature':asString,'secureExpire':asString,'secureDeliveryProxy':asString,'retryThrottledRequestMaxTimes':asNumber,'retryNetworkErrorMaxTimes':asNumber,'multipartMinFileSize':asNumber,'multipartChunkSize':asNumber,'maxConcurrentRequests':asNumber,'multipartMaxConcurrentRequests':asNumber,'multipartMaxAttempts':asNumber,'checkForUrlDuplicates':asBoolean,'saveUrlForRecurrentUploads':asBoolean,'groupOutput':asBoolean,'userAgentIntegration':asString,'debug':asBoolean,'localeName':asString,'metadata':asMetadata,'secureUploadsExpireThreshold':asNumber,'localeDefinitionOverride':asObject,'secureUploadsSignatureResolver':asFunction,'secureDeliveryProxyUrlResolver':asFunction,'iconHrefResolver':asFunction,'fileValidators':asArray,'collectionValidators':asArray,'cameraModes':asCameraModes,'defaultCameraMode':asCameraMode,'enableAudioRecording':asBoolean,'enableVideoRecording':asBoolean,'mediaRecorderOptions':asObject,'maxVideoRecordingDuration':asNumber,'filesViewMode':asFilesViewMode,'gridShowFileNames':asBoolean,'cloudImageEditorAutoOpen':asBoolean,'cloudImageEditorMaskHref':asString,'testMode':asBoolean},normalizeConfigValue=(_0x8e1034,_0x2aa08c)=>{if(null!=_0x2aa08c)try{return mapping[_0x8e1034](_0x2aa08c);}catch(_0x13a2a2){return console['error']('Invalid\x20value\x20for\x20config\x20key\x20\x22'+_0x8e1034+'\x22.',_0x13a2a2),initialConfig[_0x8e1034];}},ASSERTIONS=[{'test':_0x4b99e5=>_0x4b99e5['accept']&&!!_0x4b99e5['imgOnly'],'message':'There\x20could\x20be\x20a\x20mistake.\x0aBoth\x20`accept`\x20and\x20`imgOnly`\x20parameters\x20are\x20set.\x0aThe\x20value\x20of\x20`accept`\x20will\x20be\x20concatenated\x20with\x20the\x20internal\x20image\x20mime\x20types\x20list.'},{'test':_0x51af17=>null!==_0x51af17['enableVideoRecording'],'message':'The\x20`enableVideoRecording`\x20parameter\x20is\x20deprecated\x20and\x20will\x20be\x20removed\x20in\x20the\x20next\x20major\x20release.\x0aPlease\x20use\x20the\x20`cameraModes`\x20parameter\x20instead.'},{'test':_0x15cbba=>null!==_0x15cbba['defaultCameraMode'],'message':'The\x20`defaultCameraMode`\x20parameter\x20is\x20deprecated\x20and\x20will\x20be\x20removed\x20in\x20the\x20next\x20major\x20release.\x0aPlease\x20use\x20the\x20`cameraModes`\x20parameter\x20instead.'}],runAssertions=debounce(_0x4989ff=>{for(const {test:_0xeb1c00,message:_0xab7bf7}of ASSERTIONS)_0xeb1c00(_0x4989ff)&&warnOnce(_0xab7bf7);},0x0),o=(_0x239f2b,_0x322c15)=>{const _0xbe7532=new URL(_0x322c15);return _0xbe7532['hostname']=_0x239f2b+'.'+_0xbe7532['hostname'],_0xbe7532['toString']()['replace'](/\/$/,'');},s='0123456789abcdefghijklmnopqrstuvwxyz',a=_0xfa708e=>{if(_0xfa708e<=0x0n)return'0';let _0x143f15='';for(;_0xfa708e>0x0n;){_0x143f15=s[Number(_0xfa708e%0x24n)]+_0x143f15,_0xfa708e/=0x24n;}return _0x143f15;},c$1=(_0x39c024,_0x45ccff)=>{try{const _0x46fb3b=new URL(_0x39c024),t=new URL(_0x45ccff);return _0x46fb3b['hostname']['endsWith'](t['hostname']);}catch{return!0x1;}},c=async _0x38a228=>{const _0x3f863d=new TextEncoder()['encode'](_0x38a228),t=await window['crypto']['subtle']['digest']('SHA-256',_0x3f863d),_0x1cbc31=Array['from'](new Uint8Array(t))['map'](_0x70b70=>_0x70b70['toString'](0x10)['padStart'](0x2,'0'))['join']('');return BigInt('0x'+_0x1cbc31);},i=0xa,d=async _0x1872b1=>{const _0x406f72=await c(_0x1872b1);return a(_0x406f72)['slice'](0x0,i);},f=async(_0x60626,_0x3cef85)=>{const t=await d(_0x60626);return o(t,_0x3cef85);},isPromiseLike=_0x214a84=>_0x214a84 instanceof Promise||Boolean(_0x214a84&&'object'==typeof _0x214a84&&'then'in _0x214a84&&'function'==typeof _0x214a84['then']);function defineComputedProperty(_0x4b927b){return _0x4b927b;}const COMPUTED_PROPERTIES=[defineComputedProperty({'key':'cameraModes','deps':['enableVideoRecording'],'fn':({cameraModes:_0x1ee787,enableVideoRecording:_0x1682a3})=>{if(null===_0x1682a3)return _0x1ee787;let _0x5b16f2=deserializeCsv(_0x1ee787);return _0x1682a3&&!_0x5b16f2['includes']('video')?_0x5b16f2=_0x5b16f2['concat']('video'):_0x1682a3||(_0x5b16f2=_0x5b16f2['filter'](_0x2e6fe2=>'video'!==_0x2e6fe2)),serializeCsv(_0x5b16f2);}}),defineComputedProperty({'key':'cameraModes','deps':['defaultCameraMode'],'fn':({cameraModes:_0x42b064,defaultCameraMode:_0x2ca285})=>{if(null===_0x2ca285)return _0x42b064;let _0x5a5d5d=deserializeCsv(_0x42b064);return _0x5a5d5d=_0x5a5d5d['sort']((_0x12e84a,_0x3bdd87)=>_0x12e84a===_0x2ca285?-0x1:_0x3bdd87===_0x2ca285?0x1:0x0),serializeCsv(_0x5a5d5d);}}),defineComputedProperty({'key':'cdnCname','deps':['pubkey','cdnCnamePrefixed'],'fn':({pubkey:_0x17f40b,cdnCname:_0xba12cf,cdnCnamePrefixed:_0x4b6d60})=>_0x17f40b&&(_0xba12cf===DEFAULT_CDN_CNAME||c$1(_0xba12cf,_0x4b6d60))?f(_0x17f40b,_0x4b6d60):_0xba12cf})],runSideEffects=({key:_0x440336,setValue:_0x2a0b1f,getValue:_0x33de5b})=>{for(const _0x494549 of COMPUTED_PROPERTIES)if(_0x494549['deps']['includes'](_0x440336)){const _0x4dbf38={[_0x494549['key']]:_0x33de5b(_0x494549['key']),..._0x494549['deps']['reduce']((_0x5c62f2,_0x2d16fc)=>({..._0x5c62f2,[_0x2d16fc]:_0x33de5b(_0x2d16fc)}),{})},_0x478fba=_0x494549['fn'](_0x4dbf38);if(isPromiseLike(_0x478fba)){const _0x1a3161=_0x33de5b(_0x494549['key']);_0x478fba['then'](_0x504933=>{_0x33de5b(_0x494549['key'])===_0x1a3161&&_0x2a0b1f(_0x494549['key'],_0x504933);})['catch'](_0x1de64b=>{console['error']('Failed\x20to\x20compute\x20value\x20for\x20\x22'+_0x494549['key']+'\x22',_0x1de64b);});}else _0x2a0b1f(_0x494549['key'],_0x478fba);}},allConfigKeys=[...new Set(['debug',...Object['keys'](initialConfig)])],complexConfigKeys=['metadata','localeDefinitionOverride','secureUploadsSignatureResolver','secureDeliveryProxyUrlResolver','iconHrefResolver','fileValidators','collectionValidators','mediaRecorderOptions'],isComplexKey=_0x2b4263=>complexConfigKeys['includes'](_0x2b4263),plainConfigKeys=allConfigKeys['filter'](_0x1c688f=>!isComplexKey(_0x1c688f)),attrKeyMapping={...Object['fromEntries'](plainConfigKeys['map'](_0x203fe3=>[toKebabCase(_0x203fe3),_0x203fe3])),...Object['fromEntries'](plainConfigKeys['map'](_0x98b376=>[_0x98b376['toLowerCase'](),_0x98b376]))},attrStateMapping={...Object['fromEntries'](plainConfigKeys['map'](_0x472644=>[toKebabCase(_0x472644),sharedConfigKey(_0x472644)])),...Object['fromEntries'](plainConfigKeys['map'](_0x539d69=>[_0x539d69['toLowerCase'](),sharedConfigKey(_0x539d69)]))},getLocalPropName=_0x2ca8e0=>'__'+_0x2ca8e0;class ConfigClass extends Block{['requireCtxName']=!0x0;constructor(){super(),this['init$']={...this['init$'],...Object['fromEntries'](Object['entries'](initialConfig)['map'](([_0x5c1917,_0x40fe9f])=>[sharedConfigKey(_0x5c1917),_0x40fe9f]))};}['_flushValueToAttribute'](_0x3db61e,_0x42facc){if(plainConfigKeys['includes'](_0x3db61e)){const _0x25a60b=[...new Set([toKebabCase(_0x3db61e),_0x3db61e['toLowerCase']()])];for(const _0x107d8e of _0x25a60b)null==_0x42facc?this['removeAttribute'](_0x107d8e):this['getAttribute'](_0x107d8e)!==_0x42facc['toString']()&&this['setAttribute'](_0x107d8e,_0x42facc['toString']());}}['_flushValueToState'](_0x4d2bc3,_0x363f67){this['$'][sharedConfigKey(_0x4d2bc3)]!==_0x363f67&&(this['$'][sharedConfigKey(_0x4d2bc3)]=null==_0x363f67?initialConfig[_0x4d2bc3]:_0x363f67);}['_setValue'](_0x378688,_0x319015){const _0x313bb9=this,_0x54119a=normalizeConfigValue(_0x378688,_0x319015),_0x528f2f=getLocalPropName(_0x378688);_0x313bb9[_0x528f2f]!==_0x54119a&&(this['_assertSameValueDifferentReference'](_0x378688,_0x313bb9[_0x528f2f],_0x54119a),_0x313bb9[_0x528f2f]=_0x54119a,this['_flushValueToAttribute'](_0x378688,_0x54119a),this['_flushValueToState'](_0x378688,_0x54119a),this['debugPrint']('[uc-config]\x20\x22'+_0x378688+'\x22',_0x54119a),runAssertions(this['cfg']),runSideEffects({'key':_0x378688,'setValue':this['_setValue']['bind'](this),'getValue':this['_getValue']['bind'](this)}));}['_getValue'](_0x251fc4){return this[getLocalPropName(_0x251fc4)]??this['$'][sharedConfigKey(_0x251fc4)];}['_assertSameValueDifferentReference'](_0x1e04b8,_0x3789d5,_0x2fa9e6){this['cfg']['debug']&&_0x2fa9e6!==_0x3789d5&&'object'==typeof _0x2fa9e6&&'object'==typeof _0x3789d5&&JSON['stringify'](_0x2fa9e6)===JSON['stringify'](_0x3789d5)&&(console['warn']('[uc-config]\x20Option\x20\x22'+_0x1e04b8+'\x22\x20value\x20is\x20the\x20same\x20as\x20the\x20previous\x20one\x20but\x20the\x20reference\x20is\x20different'),console['warn']('[uc-config]\x20You\x20should\x20avoid\x20changing\x20the\x20reference\x20of\x20the\x20object\x20to\x20prevent\x20unnecessary\x20calculations'),console['warn']('[uc-config]\x20\x22'+_0x1e04b8+'\x22\x20previous\x20value:',_0x3789d5),console['warn']('[uc-config]\x20\x22'+_0x1e04b8+'\x22\x20new\x20value:',_0x2fa9e6));}['initCallback'](){super['initCallback']();const _0x55355c=this;for(const _0x40dbfd of plainConfigKeys)this['sub'](sharedConfigKey(_0x40dbfd),_0xd9256c=>{this['_setValue'](_0x40dbfd,_0xd9256c);},!0x1);for(const _0x4eb2a7 of allConfigKeys){const _0x28d93c=_0x55355c[_0x4eb2a7]??this['$'][sharedConfigKey(_0x4eb2a7)];_0x28d93c!==initialConfig[_0x4eb2a7]&&this['_setValue'](_0x4eb2a7,_0x28d93c),Object['defineProperty'](this,_0x4eb2a7,{'set':_0x5705a8=>{this['_setValue'](_0x4eb2a7,_0x5705a8);},'get':()=>this['_getValue'](_0x4eb2a7)}),runSideEffects({'key':_0x4eb2a7,'setValue':this['_setValue']['bind'](this),'getValue':this['_getValue']['bind'](this)});}}['attributeChangedCallback'](_0x3ca1ca,_0x529c6a,_0x4cc243){if(_0x529c6a===_0x4cc243)return;this[attrKeyMapping[_0x3ca1ca]]=_0x4cc243;}}ConfigClass['bindAttributes'](attrStateMapping);for(const e of allConfigKeys)ConfigClass['prototype'][e]=void 0x0;const Config=ConfigClass;class Icon extends Block{constructor(){super(),this['init$']={...this['init$'],'name':'','href':''};}['initCallback'](){super['initCallback'](),this['sub']('name',_0x3b69d6=>{if(!_0x3b69d6)return;let _0x215101='#uc-icon-'+_0x3b69d6;this['subConfigValue']('iconHrefResolver',_0xcc1b38=>{if(_0xcc1b38){const _0x52b71e=_0xcc1b38(_0x3b69d6);_0x215101=_0x52b71e??_0x215101;}this['$']['href']=_0x215101;});}),this['setAttribute']('aria-hidden','true');}}Icon['template']='\x0a\x20\x20<svg\x20ref=\x22svg\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20<use\x20set=\x22@href:\x20href;\x22></use>\x0a\x20\x20</svg>\x0a',Icon['bindAttributes']({'name':'name'});const uniqueArray=_0x31b571=>[...new Set(_0x31b571)],parseObjectToString=_0x264d6f=>Object['entries'](_0x264d6f)['filter'](([_0x3105df,_0x4ed2b0])=>void 0x0!==_0x4ed2b0&&''!==_0x4ed2b0)['map'](([_0x1b0521,_0x440c9b])=>'cdn-operations'===_0x1b0521||'analytics'===_0x1b0521?_0x440c9b:_0x1b0521+'/'+_0x440c9b),DEFAULT_CDN_BASE='https://ucarecdn.com',PROPS_MAP=Object['freeze']({'dev-mode':{},'pubkey':{},'uuid':{},'src':{},'lazy':{'default':0x1},'intersection':{},'breakpoints':{},'cdn-cname':{'default':DEFAULT_CDN_BASE},'proxy-cname':{},'secure-delivery-proxy':{},'hi-res-support':{'default':0x1},'ultra-res-support':{},'format':{},'cdn-operations':{},'progressive':{},'quality':{},'is-background-for':{},'is-preview-blur':{'default':0x1}}),CSS_PREF='--uc-img-',UNRESOLVED_ATTR='unresolved',HI_RES_K=0x2,ULTRA_RES_K=0x3,DEV_MODE=!window['location']['host']['trim']()||window['location']['host']['includes'](':')||window['location']['hostname']['includes']('localhost'),MAX_WIDTH=0xbb8,MAX_WIDTH_JPG=0x1388,ImgTypeEnum=Object['freeze']({'PREVIEW':'PREVIEW','MAIN':'MAIN'}),CSS_PROPS=Object['create'](null);for(let e in PROPS_MAP)CSS_PROPS[CSS_PREF+e]=PROPS_MAP[e]?.['default']||'';class ImgConfig extends BaseComponent{['cssInit$']=CSS_PROPS;['$$'](_0x3397b7){return this['$'][CSS_PREF+_0x3397b7];}['set$$'](_0x7b4e3b){for(let _0x19d2d2 in _0x7b4e3b)this['$'][CSS_PREF+_0x19d2d2]=_0x7b4e3b[_0x19d2d2];}['sub$$'](_0x1b216d,_0x52fbc0){this['sub'](CSS_PREF+_0x1b216d,_0x54861b=>{null!==_0x54861b&&''!==_0x54861b&&_0x52fbc0(_0x54861b);});}['analyticsParams'](){return'-/@clib/'+PACKAGE_NAME+'/'+PACKAGE_VERSION+'/uc-img/';}['initAttributes'](_0x3b7e0a){[...this['attributes']]['forEach'](_0x254747=>{PROPS_MAP[_0x254747['name']]||_0x3b7e0a['setAttribute'](_0x254747['name'],_0x254747['value']);});}['initIntersection'](_0x48c379,_0xcfa251){this['_isnObserver']=new IntersectionObserver(_0x4228e5=>{_0x4228e5['forEach'](_0x3379fb=>{_0x3379fb['isIntersecting']&&(_0xcfa251(),this['_isnObserver']['unobserve'](_0x48c379));});},{'root':null,'rootMargin':'0px'}),this['_isnObserver']['observe'](_0x48c379),this['_observed']||(this['_observed']=new Set()),this['_observed']['add'](_0x48c379);}['destroyCallback'](){super['destroyCallback'](),this['_isnObserver']&&(this['_observed']['forEach'](_0x323ed2=>{this['_isnObserver']['unobserve'](_0x323ed2);}),this['_isnObserver']=null),Data['deleteCtx'](this);}static get['observedAttributes'](){return Object['keys'](PROPS_MAP);}['attributeChangedCallback'](_0x49f316,_0x4d8420,_0x525aff){window['setTimeout'](()=>{this['$'][CSS_PREF+_0x49f316]=_0x525aff;});}}class ImgBase extends ImgConfig{['_img']=new Image();['_imgPreview']=new Image();['_fmtAbs'](_0x34be03){return!_0x34be03['includes']('//')&&!DEV_MODE&&(_0x34be03=new URL(_0x34be03,document['baseURI'])['href']),_0x34be03;}['_validateSize'](_0x1b614c){if(''!==_0x1b614c?.['trim']()){let _0x1b9eca=_0x1b614c['match'](/\d+/)[0x0],_0x22080e=_0x1b614c['match'](/[a-zA-Z]+/)[0x0];const _0x54e409=parseInt(_0x1b9eca,0xa);if(Number(_0x54e409)>MAX_WIDTH_JPG&&this['hasFormatJPG'])return MAX_WIDTH_JPG+_0x22080e;if(Number(_0x54e409)>MAX_WIDTH&&!this['hasFormatJPG'])return MAX_WIDTH+_0x22080e;}return _0x1b614c;}['_getCdnModifiers'](_0x5d0d85,_0x129d1d){const _0x269e73={'format':this['$$']('format'),'quality':this['$$']('quality'),'resize':this['_validateSize'](_0x5d0d85),'blur':_0x129d1d,'cdn-operations':this['$$']('cdn-operations'),'analytics':this['analyticsParams']()};return createCdnUrlModifiers(...parseObjectToString(_0x269e73));}['_getUrlBase'](_0x4f6165='',_0x166808=''){if(this['$$']('src')['startsWith']('data:')||this['$$']('src')['startsWith']('blob:'))return this['$$']('src');if(DEV_MODE&&this['$$']('src')&&!this['$$']('src')['includes']('//'))return this['_proxyUrl'](this['$$']('src'));let _0xcf31a2=this['_getCdnModifiers'](_0x4f6165,_0x166808);return this['$$']('src')['startsWith'](this['$$']('cdn-cname'))?createCdnUrl(this['$$']('src'),_0xcf31a2):this['$$']('cdn-cname')&&this['$$']('uuid')||this['$$']('uuid')?this['_proxyUrl'](createCdnUrl(createOriginalUrl(this['$$']('cdn-cname'),this['$$']('uuid')),_0xcf31a2)):this['$$']('proxy-cname')?this['_proxyUrl'](createCdnUrl(this['$$']('proxy-cname'),_0xcf31a2,this['_fmtAbs'](this['$$']('src')))):this['$$']('pubkey')?this['_proxyUrl'](createCdnUrl('https://'+this['$$']('pubkey')+'.ucr.io/',_0xcf31a2,this['_fmtAbs'](this['$$']('src')))):void 0x0;}['_proxyUrl'](_0x7531d2){return this['$$']('secure-delivery-proxy')?applyTemplateData(this['$$']('secure-delivery-proxy'),{'previewUrl':_0x7531d2},{'transform':_0x5deb8c=>window['encodeURIComponent'](_0x5deb8c)}):_0x7531d2;}['_getElSize'](_0x13c89a,_0x2bb28=0x1,_0x45addd=!0x0){let _0x20a151=_0x13c89a['getBoundingClientRect'](),_0x4e1f14=_0x2bb28*Math['round'](_0x20a151['width']),_0x444917=_0x45addd?'':_0x2bb28*Math['round'](_0x20a151['height']);return _0x4e1f14||_0x444917?(_0x4e1f14||'')+'x'+(_0x444917||''):null;}['_setupEventProxy'](_0x570418){let _0x1d98a8=_0x3c3a8d=>{_0x3c3a8d['stopPropagation']();let _0x5bd147=new Event(_0x3c3a8d['type'],_0x3c3a8d);this['dispatchEvent'](_0x5bd147);},_0x436699=['load','error'];for(let _0x1ce488 of _0x436699)_0x570418['addEventListener'](_0x1ce488,_0x1d98a8);}get['img'](){return this['hasPreviewImage']||(this['_setupConfigForImage']({'elNode':this['_img']}),this['appendChild'](this['_img'])),this['_img'];}get['currentImg'](){return this['hasPreviewImage']?{'type':ImgTypeEnum['PREVIEW'],'img':this['_imgPreview']}:{'type':ImgTypeEnum['MAIN'],'img':this['img']};}get['hasPreviewImage'](){return this['$$']('is-preview-blur');}get['bgSelector'](){return this['$$']('is-background-for');}get['breakpoints'](){if(this['$$']('breakpoints')){const _0x4ab37f=stringToArray(this['$$']('breakpoints'));return uniqueArray(_0x4ab37f['map'](_0x20dc4a=>parseInt(_0x20dc4a,0xa)));}return null;}get['hasFormatJPG'](){return'jpeg'===this['$$']('format')['toLowerCase']();}['renderBg'](_0x34a8d5){let _0x310ed3=new Set();_0x310ed3['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x34a8d5))+'\x22)\x201x'),this['$$']('hi-res-support')&&_0x310ed3['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x34a8d5,HI_RES_K))+'\x22)\x20'+HI_RES_K+'x'),this['$$']('ultra-res-support')&&_0x310ed3['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x34a8d5,ULTRA_RES_K))+'\x22)\x20'+ULTRA_RES_K+'x');let _0x5e3c01='image-set('+[..._0x310ed3]['join'](',\x20')+')';_0x34a8d5['style']['setProperty']('background-image',_0x5e3c01),_0x34a8d5['style']['setProperty']('background-image','-webkit-'+_0x5e3c01);}['getSrcset'](){let _0x20491d=new Set();return this['breakpoints']?this['breakpoints']['forEach'](_0x11ef6c=>{_0x20491d['add'](this['_getUrlBase'](_0x11ef6c+'x')+('\x20'+this['_validateSize'](_0x11ef6c+'w'))),this['$$']('hi-res-support')&&_0x20491d['add'](this['_getUrlBase'](_0x11ef6c*HI_RES_K+'x')+('\x20'+this['_validateSize'](_0x11ef6c*HI_RES_K+'w'))),this['$$']('ultra-res-support')&&_0x20491d['add'](this['_getUrlBase'](_0x11ef6c*ULTRA_RES_K+'x')+('\x20'+this['_validateSize'](_0x11ef6c*ULTRA_RES_K+'w')));}):(_0x20491d['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img']))+'\x201x'),this['$$']('hi-res-support')&&_0x20491d['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img'],0x2))+'\x202x'),this['$$']('ultra-res-support')&&_0x20491d['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img'],0x3))+'\x203x')),[..._0x20491d]['join']();}['getSrc'](){return this['_getUrlBase']();}get['srcUrlPreview'](){return this['_getUrlBase']('100x','100');}['renderBackground'](){[...document['querySelectorAll'](this['bgSelector'])]['forEach'](_0x20520e=>{this['$$']('intersection')?this['initIntersection'](_0x20520e,()=>{this['renderBg'](_0x20520e);}):this['renderBg'](_0x20520e);});}['_appendURL']({elNode:_0x458303,src:_0x57cb63,srcset:_0x66f084}){_0x57cb63&&(_0x458303['src']=_0x57cb63),_0x66f084&&(_0x458303['srcset']=_0x66f084);}['_setupConfigForImage']({elNode:_0x36683d}){this['_setupEventProxy'](_0x36683d),this['initAttributes'](_0x36683d);}['loaderImage']({src:_0x19a4c7,srcset:_0x57fc3a,elNode:_0x3899e6}){return new Promise((_0x17a0dd,_0x37a606)=>{this['_setupConfigForImage']({'elNode':_0x3899e6}),_0x3899e6['setAttribute'](UNRESOLVED_ATTR,''),_0x3899e6['addEventListener']('load',()=>{_0x3899e6['removeAttribute'](UNRESOLVED_ATTR),_0x17a0dd(_0x3899e6);}),_0x3899e6['addEventListener']('error',()=>{_0x37a606(!0x1);}),this['_appendURL']({'elNode':_0x3899e6,'src':_0x19a4c7,'srcset':_0x57fc3a});});}async['renderImage'](){if(this['$$']('intersection'))return this['hasPreviewImage']&&(this['_setupConfigForImage']({'elNode':this['_imgPreview']}),this['appendChild'](this['_imgPreview'])),void this['initIntersection'](this['currentImg']['img'],async()=>{this['hasPreviewImage']&&(this['_imgPreview']['src']=this['srcUrlPreview']);try{await this['loaderImage']({'src':this['getSrc'](),'srcset':this['getSrcset'](),'elNode':this['_img']}),this['hasPreviewImage']&&await this['_imgPreview']['remove'](),this['appendChild'](this['_img']);}catch(_0x39b4b3){this['hasPreviewImage']&&await this['_imgPreview']?.['remove'](),this['appendChild'](this['_img']);}});try{this['hasPreviewImage']&&(await this['loaderImage']({'src':this['srcUrlPreview'],'elNode':this['_imgPreview']}),this['appendChild'](this['_imgPreview'])),await this['loaderImage']({'src':this['getSrc'](),'srcset':this['getSrcset'](),'elNode':this['_img']}),this['hasPreviewImage']&&await this['_imgPreview']?.['remove'](),this['appendChild'](this['_img']);}catch(_0x146c66){this['hasPreviewImage']&&await this['_imgPreview']?.['remove'](),this['appendChild'](this['_img']);}}['init'](){this['bgSelector']?this['renderBackground']():this['renderImage']();}}class Img extends ImgBase{['initCallback'](){super['initCallback'](),this['sub$$']('src',()=>{this['init']();}),this['sub$$']('uuid',()=>{this['init']();}),this['sub$$']('lazy',_0x1f5a18=>{this['$$']('is-background-for')||this['$$']('is-preview-blur')||(this['img']['loading']=_0x1f5a18?'lazy':'eager');});}}class SimpleBtn extends UploaderBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-simple-btn'];['couldBeCtxOwner']=!0x0;constructor(){super(),this['init$']={...this['init$'],'withDropZone':!0x0,'onClick':()=>{this['api']['initFlow']();},'button-text':''};}['initCallback'](){super['initCallback'](),this['defineAccessor']('dropzone',_0x4420f8=>{void 0x0!==_0x4420f8&&(this['$']['withDropZone']=asBoolean(_0x4420f8));}),this['subConfigValue']('multiple',_0x501cc4=>{this['$']['button-text']=_0x501cc4?'upload-files':'upload-file';});}}SimpleBtn['template']='\x0a\x20\x20<uc-drop-area\x20set=\x22@disabled:\x20!withDropZone\x22>\x0a\x20\x20\x20\x20<button\x20type=\x22button\x22\x20set=\x22onclick:\x20onClick\x22>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22upload\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20<span\x20l10n=\x22button-text\x22></span>\x0a\x20\x20\x20\x20\x20\x20<slot></slot>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-visual-drop-area\x22\x20l10n=\x22drop-files-here\x22></div>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</uc-drop-area>\x0a',SimpleBtn['bindAttributes']({'dropzone':null});class StartFrom extends ActivityBlock{['historyTracked']=!0x0;['activityType']=ActivityBlock['activities']['START_FROM'];['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType']);}}function checkIsDirectory(_0x494269){return new Promise(_0x7db1a=>{'function'!=typeof window['FileReader']&&_0x7db1a(!0x1);try{let _0x25dbd9=new FileReader();_0x25dbd9['onerror']=()=>{_0x7db1a(!0x0);};let _0x3c9bdb=_0x7d524=>{'loadend'!==_0x7d524['type']&&_0x25dbd9['abort'](),_0x7db1a(!0x1);};_0x25dbd9['onloadend']=_0x3c9bdb,_0x25dbd9['onprogress']=_0x3c9bdb,_0x25dbd9['readAsDataURL'](_0x494269);}catch(_0x15ce10){_0x7db1a(!0x1);}});}function readEntryContentAsync(_0x2092b2,_0x2f5c0f){return new Promise(_0x2e3e05=>{let _0x25fb56=0x0;const _0x47099e=[],_0x56e1b4=_0x5e9df0=>{_0x5e9df0||(console['warn']('Unexpectedly\x20received\x20empty\x20content\x20entry',{'scope':'drag-and-drop'}),_0x2e3e05(null)),_0x5e9df0['isFile']?(_0x25fb56++,_0x5e9df0['file'](_0x3b55b7=>{_0x25fb56--;const _0x35ac73=new File([_0x3b55b7],_0x3b55b7['name'],{'type':_0x3b55b7['type']||_0x2f5c0f});_0x47099e['push']({'type':'file','file':_0x35ac73,'fullPath':_0x5e9df0['fullPath']}),0x0===_0x25fb56&&_0x2e3e05(_0x47099e);})):_0x5e9df0['isDirectory']&&_0x236325(_0x5e9df0['createReader']());};let _0x236325=_0x4c0480=>{_0x25fb56++,_0x4c0480['readEntries'](_0xaf788d=>{_0x25fb56--;for(let _0x524d43 of _0xaf788d)_0x56e1b4(_0x524d43);0x0===_0x25fb56&&_0x2e3e05(_0x47099e);});};_0x56e1b4(_0x2092b2);});}function getDropItems(_0x185437){const _0x1c10ac=[],_0x54f69a=[];for(let _0x1b9edc=0x0;_0x1b9edc<_0x185437['items']['length'];_0x1b9edc++){let _0x52eec3=_0x185437['items'][_0x1b9edc];if(_0x52eec3){if('file'===_0x52eec3['kind']){const _0x283544=_0x52eec3['type'];if('function'==typeof _0x52eec3['webkitGetAsEntry']||'function'==typeof _0x52eec3['getAsEntry']){let _0x2cb3d3='function'==typeof _0x52eec3['webkitGetAsEntry']?_0x52eec3['webkitGetAsEntry']():_0x52eec3['getAsEntry']();_0x54f69a['push'](readEntryContentAsync(_0x2cb3d3,_0x283544)['then'](_0x19c21d=>{_0x19c21d&&_0x1c10ac['push'](..._0x19c21d);}));continue;}const _0xb46ccf=_0x52eec3['getAsFile']();_0xb46ccf&&_0x54f69a['push'](checkIsDirectory(_0xb46ccf)['then'](_0x4817a3=>{_0x4817a3||_0x1c10ac['push']({'type':'file','file':_0xb46ccf});}));}else'string'===_0x52eec3['kind']&&_0x52eec3['type']['match']('^text/uri-list')&&_0x54f69a['push'](new Promise(_0x276cc2=>{_0x52eec3['getAsString'](_0x14a70b=>{_0x1c10ac['push']({'type':'url','url':_0x14a70b}),_0x276cc2(void 0x0);});}));}}return Promise['all'](_0x54f69a)['then'](()=>_0x1c10ac);}StartFrom['template']='\x20<div\x20class=\x22uc-content\x22><slot></slot></div>\x20';const DropzoneState={'ACTIVE':0x0,'INACTIVE':0x1,'NEAR':0x2,'OVER':0x3};let RESET_EVENTS=['focus'],NEAR_OFFSET=0x64,nearnessRegistry=new Map();function distance(_0x51cdee,_0x1ded45){let _0x3f4a53=Math['max'](Math['min'](_0x51cdee[0x0],_0x1ded45['x']+_0x1ded45['width']),_0x1ded45['x']),_0x4c1630=Math['max'](Math['min'](_0x51cdee[0x1],_0x1ded45['y']+_0x1ded45['height']),_0x1ded45['y']);return Math['sqrt']((_0x51cdee[0x0]-_0x3f4a53)*(_0x51cdee[0x0]-_0x3f4a53)+(_0x51cdee[0x1]-_0x4c1630)*(_0x51cdee[0x1]-_0x4c1630));}function addDropzone(_0x377a76){let _0x28a3b2=0x0,_0x24d00f=document['body'],_0x49a1f9=new Set(),_0x440c90=DropzoneState['INACTIVE'],_0x23012a=_0x97d4f8=>{_0x377a76['shouldIgnore']()&&_0x97d4f8!==DropzoneState['INACTIVE']||(_0x440c90!==_0x97d4f8&&_0x49a1f9['forEach'](_0xb02467=>_0xb02467(_0x97d4f8)),_0x440c90=_0x97d4f8);},_0x467988=()=>_0x28a3b2>0x0;var _0x5c15e5;_0x5c15e5=_0x586f20=>_0x377a76['onChange'](_0x586f20),_0x49a1f9['add'](_0x5c15e5);let _0xe4733d=()=>{_0x28a3b2=0x0,_0x23012a(DropzoneState['INACTIVE']);},_0x46032b=()=>{_0x28a3b2+=0x1,_0x440c90===DropzoneState['INACTIVE']&&_0x23012a(DropzoneState['ACTIVE']);},_0x1bc56c=()=>{_0x28a3b2-=0x1,_0x467988()||_0x23012a(DropzoneState['INACTIVE']);},_0x4265c9=_0x8583e0=>{_0x8583e0['preventDefault'](),_0x28a3b2=0x0,_0x23012a(DropzoneState['INACTIVE']);},_0x2af7f6=_0x2ad1cb=>{if(_0x377a76['shouldIgnore']())return;_0x467988()||(_0x28a3b2+=0x1);let _0x390ce4=[_0x2ad1cb['x'],_0x2ad1cb['y']],_0x3fcd14=_0x377a76['element']['getBoundingClientRect'](),_0x4f5f27=Math['floor'](distance(_0x390ce4,_0x3fcd14)),_0x491cb9=_0x4f5f27<NEAR_OFFSET,_0x4418d0=_0x2ad1cb['composedPath']()['includes'](_0x377a76['element']);nearnessRegistry['set'](_0x377a76['element'],_0x4f5f27);let _0x46640a=Math['min'](...nearnessRegistry['values']())===_0x4f5f27;_0x4418d0&&_0x46640a?(_0x2ad1cb['preventDefault'](),_0x23012a(DropzoneState['OVER'])):_0x23012a(_0x491cb9&&_0x46640a?DropzoneState['NEAR']:DropzoneState['ACTIVE']);},_0x169057=async _0x54bb51=>{if(_0x377a76['shouldIgnore']())return;_0x54bb51['preventDefault']();let _0x269f9a=await getDropItems(_0x54bb51['dataTransfer']);_0x377a76['onItems'](_0x269f9a),_0x23012a(DropzoneState['INACTIVE']);};return _0x24d00f['addEventListener']('drop',_0x4265c9),_0x24d00f['addEventListener']('dragleave',_0x1bc56c),_0x24d00f['addEventListener']('dragenter',_0x46032b),_0x24d00f['addEventListener']('dragover',_0x2af7f6),_0x377a76['element']['addEventListener']('drop',_0x169057),RESET_EVENTS['forEach'](_0x5665c4=>{window['addEventListener'](_0x5665c4,_0xe4733d);}),()=>{nearnessRegistry['delete'](_0x377a76['element']),_0x24d00f['removeEventListener']('drop',_0x4265c9),_0x24d00f['removeEventListener']('dragleave',_0x1bc56c),_0x24d00f['removeEventListener']('dragenter',_0x46032b),_0x24d00f['removeEventListener']('dragover',_0x2af7f6),_0x377a76['element']['removeEventListener']('drop',_0x169057),RESET_EVENTS['forEach'](_0x3470e5=>{window['removeEventListener'](_0x3470e5,_0xe4733d);});};}const GLOBAL_CTX_NAME='uc-drop-area',REGISTRY_KEY=GLOBAL_CTX_NAME+'/registry';class DropArea extends UploaderBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-drop-area'];constructor(){super(),this['init$']={...this['init$'],'state':DropzoneState['INACTIVE'],'withIcon':!0x1,'isClickable':!0x1,'isFullscreen':!0x1,'isEnabled':!0x0,'isVisible':!0x0,'isInitFlow':!0x1,'text':'',[REGISTRY_KEY]:null};}['isActive'](){if(!this['$']['isEnabled'])return!0x1;const _0x2457d3=this['getBoundingClientRect'](),_0x510a59=_0x2457d3['width']>0x0&&_0x2457d3['height']>0x0,_0x2f0056=_0x2457d3['top']>=0x0&&_0x2457d3['left']>=0x0&&_0x2457d3['bottom']<=(window['innerHeight']||document['documentElement']['clientHeight'])&&_0x2457d3['right']<=(window['innerWidth']||document['documentElement']['clientWidth']),_0x205d0e=window['getComputedStyle'](this),_0x4919dd='hidden'!==_0x205d0e['visibility']&&'none'!==_0x205d0e['display'];return _0x510a59&&_0x4919dd&&_0x2f0056;}['initCallback'](){super['initCallback'](),this['bindL10n']('text',()=>this['l10n']('drop-files-here')),this['$'][REGISTRY_KEY]||(this['$'][REGISTRY_KEY]=new Set()),this['$'][REGISTRY_KEY]['add'](this),this['defineAccessor']('disabled',_0x20989a=>{this['set$']({'isEnabled':!asBoolean(_0x20989a)});}),this['defineAccessor']('clickable',_0x3b0a0b=>{this['set$']({'isClickable':asBoolean(_0x3b0a0b)});}),this['defineAccessor']('initflow',_0x5477cd=>{this['set$']({'isInitFlow':asBoolean(_0x5477cd)});}),this['defineAccessor']('with-icon',_0x2d2026=>{this['set$']({'withIcon':asBoolean(_0x2d2026)});}),this['defineAccessor']('fullscreen',_0x195a93=>{this['set$']({'isFullscreen':asBoolean(_0x195a93)});}),this['defineAccessor']('text',_0x16e98b=>{'string'==typeof _0x16e98b?this['bindL10n']('text',()=>this['l10n'](_0x16e98b)||_0x16e98b):this['bindL10n']('text',()=>this['l10n']('drop-files-here'));}),this['_destroyDropzone']=addDropzone({'element':this,'shouldIgnore':()=>this['_shouldIgnore'](),'onChange':_0x242156=>{this['$']['state']=_0x242156;},'onItems':_0x386b5e=>{_0x386b5e['length']&&(_0x386b5e['forEach'](_0x30a8b7=>{'url'===_0x30a8b7['type']?this['api']['addFileFromUrl'](_0x30a8b7['url'],{'source':UploadSource['DROP_AREA']}):'file'===_0x30a8b7['type']&&this['api']['addFileFromObject'](_0x30a8b7['file'],{'source':UploadSource['DROP_AREA'],'fullPath':_0x30a8b7['fullPath']});}),this['uploadCollection']['size']&&(this['modalManager']['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['set$']({'*currentActivity':ActivityBlock['activities']['UPLOAD_LIST']})));}});let _0x564b73=this['ref']['content-wrapper'];_0x564b73&&(this['_destroyContentWrapperDropzone']=addDropzone({'element':_0x564b73,'onChange':_0x2caf2c=>{const _0xbd53a8=Object['entries'](DropzoneState)['find'](([,_0x7b722c])=>_0x7b722c===_0x2caf2c)?.[0x0]['toLowerCase']();_0xbd53a8&&_0x564b73['setAttribute']('drag-state',_0xbd53a8);},'onItems':()=>{},'shouldIgnore':()=>this['_shouldIgnore']()})),this['sub']('state',_0x2d0538=>{const _0x3d5f7e=Object['entries'](DropzoneState)['find'](([,_0x467fa3])=>_0x467fa3===_0x2d0538)?.[0x0]['toLowerCase']();_0x3d5f7e&&this['setAttribute']('drag-state',_0x3d5f7e);}),this['subConfigValue']('sourceList',_0xfa15b9=>{const _0x409367=stringToArray(_0xfa15b9);this['$']['isEnabled']=_0x409367['includes'](UploadSource['LOCAL']),this['$']['isVisible']=this['$']['isEnabled']||!this['querySelector']('[data-default-slot]');}),this['sub']('isVisible',_0x196a9e=>{this['toggleAttribute']('hidden',!_0x196a9e);}),this['sub']('isClickable',_0x4f6ac4=>{this['toggleAttribute']('clickable',_0x4f6ac4);}),this['$']['isClickable']&&(this['_onAreaClicked']=_0x7a7e4e=>{if('keydown'===_0x7a7e4e['type']){if('Space'===_0x7a7e4e['code']||'Enter'===_0x7a7e4e['code']){if(this['$']['isInitFlow'])return void this['api']['initFlow']();this['api']['openSystemDialog']();}}else{if('click'===_0x7a7e4e['type']){if(this['$']['isInitFlow'])return void this['api']['initFlow']();this['api']['openSystemDialog']();}}},this['addEventListener']('keydown',this['_onAreaClicked']),this['addEventListener']('click',this['_onAreaClicked']));}['_shouldIgnore'](){if(!this['$']['isEnabled'])return!0x0;if(!this['_couldHandleFiles']())return!0x0;if(!this['$']['isFullscreen'])return!0x1;return[...this['$'][REGISTRY_KEY]]['filter'](_0x1c47ad=>_0x1c47ad!==this)['filter'](_0x45a811=>_0x45a811['isActive']())['length']>0x0;}['_couldHandleFiles'](){let _0x49eee1=this['cfg']['multiple'],_0x1ddce2=this['cfg']['multipleMax'],_0x184417=this['uploadCollection']['size'];return!(_0x49eee1&&_0x1ddce2&&_0x184417>=_0x1ddce2)&&!(!_0x49eee1&&_0x184417>0x0);}['destroyCallback'](){super['destroyCallback']();const _0x589f1a=this['$'][REGISTRY_KEY];_0x589f1a&&(_0x589f1a['delete'](this),0x0===_0x589f1a['size']&&Data['deleteCtx'](GLOBAL_CTX_NAME)),this['_destroyDropzone']?.(),this['_destroyContentWrapperDropzone']?.(),this['_onAreaClicked']&&(this['removeEventListener']('keydown',this['_onAreaClicked']),this['removeEventListener']('click',this['_onAreaClicked']));}}DropArea['template']='\x0a\x20\x20<slot>\x0a\x20\x20\x20\x20<div\x20data-default-slot\x20hidden></div>\x0a\x20\x20\x20\x20<div\x20ref=\x22content-wrapper\x22\x20class=\x22uc-content-wrapper\x22\x20set=\x22@hidden:\x20!isVisible\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-icon-container\x22\x20set=\x22@hidden:\x20!withIcon\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22default\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22arrow-down\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<span\x20class=\x22uc-text\x22>{{text}}</span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</slot>\x0a',DropArea['bindAttributes']({'with-icon':null,'clickable':null,'text':null,'fullscreen':null,'disabled':null,'initflow':null});const L10N_PREFIX='src-type-';class SourceBtn extends UploaderBlock{['couldBeCtxOwner']=!0x0;['type']=void 0x0;['_registeredTypes']={};constructor(){super(),this['init$']={...this['init$'],'iconName':'default','src-type':''};}['initTypes'](){this['registerType']({'type':UploadSource['LOCAL'],'activate':()=>(this['api']['openSystemDialog'](),!0x1)}),this['registerType']({'type':UploadSource['URL'],'activity':ActivityBlock['activities']['URL'],'textKey':'from-url'}),this['registerType']({'type':UploadSource['CAMERA'],'activity':ActivityBlock['activities']['CAMERA'],'activate':()=>{const _0x586550=browserFeatures['htmlMediaCapture'];return _0x586550&&this['api']['openSystemDialog']({'captureCamera':!0x0}),!_0x586550;}}),this['registerType']({'type':'draw','activity':ActivityBlock['activities']['DRAW'],'icon':'edit-draw'});for(let _0x9ab967 of Object['values'](UploadSourceMobile))this['registerType']({'type':_0x9ab967,'activity':ActivityBlock['activities']['CAMERA'],'activate':()=>{const _0x5d1e0a=browserFeatures['htmlMediaCapture'];return _0x5d1e0a&&this['api']['openSystemDialog']({'captureCamera':!0x0,'modeCamera':'mobile-photo-camera'===_0x9ab967?CameraSourceTypes['PHOTO']:CameraSourceTypes['VIDEO']}),!_0x5d1e0a;}});for(let _0x338d20 of Object['values'](ExternalUploadSource))this['registerType']({'type':_0x338d20,'activity':ActivityBlock['activities']['EXTERNAL'],'activityParams':{'externalSourceType':_0x338d20}});}['initCallback'](){super['initCallback'](),this['initTypes'](),this['defineAccessor']('type',_0x1e72ae=>{_0x1e72ae&&this['applyType'](_0x1e72ae);});}['registerType'](_0x59e46b){this['_registeredTypes'][_0x59e46b['type']]=_0x59e46b;}['getType'](_0x34231d){return this['_registeredTypes'][_0x34231d];}['activate'](){if(!this['type'])return;const _0x1d7c1e=this['_registeredTypes'][this['type']],{activity:_0x3e0b5a,activate:_0x345e6c,activityParams:_0x1da9b7={}}=_0x1d7c1e;(_0x345e6c?_0x345e6c():!!_0x3e0b5a)&&(this['modalManager']['open'](_0x3e0b5a),this['set$']({'*currentActivityParams':_0x1da9b7,'*currentActivity':_0x3e0b5a}));}['applyType'](_0x866add){const _0x373d64=this['_registeredTypes'][_0x866add];if(!_0x373d64)return void console['warn']('Unsupported\x20source\x20type:\x20'+_0x866add);const {textKey:_0x42244e=_0x866add,icon:_0x493081=_0x866add}=_0x373d64;this['$']['src-type']=''+L10N_PREFIX+_0x42244e,this['$']['iconName']=_0x493081,this['onclick']=()=>{this['activate']();};}}SourceBtn['template']='\x0a\x20\x20<button\x20type=\x22button\x22>\x0a\x20\x20\x20\x20<uc-icon\x20set=\x22@name:\x20iconName\x22></uc-icon>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-txt\x22\x20l10n=\x22src-type\x22></div>\x0a\x20\x20</button>\x0a',SourceBtn['bindAttributes']({'type':null});class SourceList extends Block{['initCallback'](){super['initCallback'](),this['subConfigValue']('sourceList',_0x447b85=>{let _0x2844eb=stringToArray(_0x447b85),_0x1c91bd='';_0x2844eb['forEach'](_0x5f0898=>{'instagram'!==_0x5f0898?'camera'===_0x5f0898&&browserFeatures['htmlMediaCapture']?this['subConfigValue']('cameraModes',_0x1d951f=>{const _0x163c53=deserializeCsv(_0x1d951f);_0x163c53['forEach'](_0x43388e=>{_0x1c91bd+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22mobile-'+_0x43388e+'-camera\x22></uc-source-btn>';}),0x0===_0x163c53['length']&&(_0x1c91bd+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22mobile-photo-camera\x22></uc-source-btn>');}):_0x1c91bd+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22'+_0x5f0898+'\x22></uc-source-btn>':console['error']('Instagram\x20source\x20was\x20removed\x20because\x20the\x20Instagram\x20Basic\x20Display\x20API\x20hasn\x27t\x20been\x20available\x20since\x20December\x204,\x202024.\x20Official\x20statement,\x20see\x20here:https://developers.facebook.com/blog/post/2024/09/04/update-on-instagram-basic-display-api/?locale=en_US');}),this['cfg']['sourceListWrap']?this['innerHTML']=_0x1c91bd:this['outerHTML']=_0x1c91bd;});}}const readJpegChunks=()=>{const _0x42012f=[];return{'stack':_0x42012f,'promiseReadJpegChunks':_0x567fb0=>new Promise((_0x15bb8e,_0x4bd1db)=>{let _0x121a2c=0x2;const _0x207d25=(_0x300fc3,_0x34aa89)=>{const _0x177383=new FileReader();_0x177383['addEventListener']('load',()=>{_0x34aa89(new DataView(_0x177383['result']));}),_0x177383['addEventListener']('error',_0xd59661=>{_0x4bd1db('Reader\x20error:\x20'+_0xd59661);}),_0x177383['readAsArrayBuffer'](_0x300fc3);},_0x320edd=()=>_0x207d25(_0x567fb0['slice'](_0x121a2c,_0x121a2c+0x80),_0x4d1356=>{let _0xe8b528,_0x46e06e,_0x5693b9;for(_0xe8b528=_0x46e06e=0x0,_0x5693b9=_0x4d1356['byteLength'];_0x5693b9>=0x0?_0x46e06e<_0x5693b9:_0x46e06e>_0x5693b9;_0xe8b528=_0x5693b9>=0x0?++_0x46e06e:--_0x46e06e)if(0xff===_0x4d1356['getUint8'](_0xe8b528)){_0x121a2c+=_0xe8b528;break;}_0x3d2927();}),_0x3d2927=()=>{const _0x112c2d=_0x121a2c;return _0x207d25(_0x567fb0['slice'](_0x121a2c,_0x121a2c+=0x4),_0x44b29c=>{if(0x4!==_0x44b29c['byteLength']||0xff!==_0x44b29c['getUint8'](0x0))return void _0x4bd1db('Corrupted');const _0x5586f1=_0x44b29c['getUint8'](0x1);if(0xda===_0x5586f1)return void _0x15bb8e(!0x0);const _0x575c46=_0x44b29c['getUint16'](0x2)-0x2;return _0x207d25(_0x567fb0['slice'](_0x121a2c,_0x121a2c+=_0x575c46),_0x2c2797=>{_0x2c2797['byteLength']===_0x575c46?(_0x42012f['push']({'startPos':_0x112c2d,'length':_0x575c46,'marker':_0x5586f1,'view':_0x2c2797}),_0x320edd()):_0x4bd1db('Corrupted');});});};FileReader&&DataView||_0x4bd1db('Not\x20Support'),_0x207d25(_0x567fb0['slice'](0x0,0x2),_0x29b46b=>{0xffd8!==_0x29b46b['getUint16'](0x0)&&_0x4bd1db('Not\x20jpeg'),_0x320edd();});})};},getIccProfile=async _0x17b506=>{const _0x2c8b33=[],{promiseReadJpegChunks:_0x3e6d0d,stack:_0x1a7e70}=readJpegChunks();return await _0x3e6d0d(_0x17b506),_0x1a7e70['forEach'](({marker:_0x532143,view:_0x35ce4f})=>{0xe2===_0x532143&&0x4943435f===_0x35ce4f['getUint32'](0x0)&&0x50524f46===_0x35ce4f['getUint32'](0x4)&&0x494c4500===_0x35ce4f['getUint32'](0x8)&&_0x2c8b33['push'](_0x35ce4f);}),_0x2c8b33;},replaceJpegChunk=async(_0x2c6157,_0x3eac0d,_0x47c6fd)=>{{const _0x288675=[],_0x4013ce=[],{promiseReadJpegChunks:_0x35a149,stack:_0x4c64a3}=readJpegChunks();await _0x35a149(_0x2c6157),_0x4c64a3['forEach'](_0x2d1cd5=>{if(_0x2d1cd5['marker']===_0x3eac0d)return _0x288675['push'](_0x2d1cd5['startPos']),_0x4013ce['push'](_0x2d1cd5['length']);});const _0x1d6a52=[_0x2c6157['slice'](0x0,0x2)];for(const _0x150d70 of _0x47c6fd){const _0x3bd086=new DataView(new ArrayBuffer(0x4));_0x3bd086['setUint16'](0x0,0xff00+_0x3eac0d),_0x3bd086['setUint16'](0x2,_0x150d70['byteLength']+0x2),_0x1d6a52['push'](_0x3bd086['buffer']),_0x1d6a52['push'](_0x150d70);}let _0x2f2bb8=0x2;for(let _0x4b6b63=0x0;_0x4b6b63<_0x288675['length'];_0x4b6b63++)_0x288675[_0x4b6b63]>_0x2f2bb8&&_0x1d6a52['push'](_0x2c6157['slice'](_0x2f2bb8,_0x288675[_0x4b6b63])),_0x2f2bb8=_0x288675[_0x4b6b63]+_0x4013ce[_0x4b6b63]+0x4;return _0x1d6a52['push'](_0x2c6157['slice'](_0x2f2bb8,_0x2c6157['size'])),new Blob(_0x1d6a52,{'type':_0x2c6157['type']});}},MARKER=0xe2,replaceIccProfile=(_0x10b8a2,_0x270806)=>replaceJpegChunk(_0x10b8a2,MARKER,_0x270806['map'](_0x3ab261=>_0x3ab261['buffer'])),stripIccProfile=async _0x231b82=>{try{return await replaceIccProfile(_0x231b82,[]);}catch(_0x4e85f4){throw new Error('Failed\x20to\x20strip\x20ICC\x20profile:\x20'+_0x4e85f4);}},canvasToBlob=(_0x48b576,_0x5d08be,_0x46faac)=>new Promise((_0x201fa1,_0x27fbb1)=>{_0x48b576['toBlob'](_0x43d6a7=>{_0x43d6a7?_0x201fa1(_0x43d6a7):_0x27fbb1('Failed\x20to\x20convert\x20canvas\x20to\x20blob');},_0x5d08be,_0x46faac),_0x48b576['width']=_0x48b576['height']=0x1;}),createCanvas=()=>{const _0x5a7ccd=document['createElement']('canvas'),_0x5ecc44=_0x5a7ccd['getContext']('2d');return{'canvas':_0x5a7ccd,'ctx':_0x5ecc44};},hasTransparency=_0x15f147=>{const {ctx:_0x219544,canvas:_0x338ced}=createCanvas();_0x338ced['width']=_0x338ced['height']=0x32,_0x219544['drawImage'](_0x15f147,0x0,0x0,0x32,0x32);const _0x3f57b4=_0x219544['getImageData'](0x0,0x0,0x32,0x32)['data'];_0x338ced['width']=_0x338ced['height']=0x1;for(let _0x1b60d6=0x3;_0x1b60d6<_0x3f57b4['length'];_0x1b60d6+=0x4)if(_0x3f57b4[_0x1b60d6]<0xfe)return!0x0;return!0x1;},getExif=async _0x28c2cd=>{let _0x439029=null;const {promiseReadJpegChunks:_0x35efc4,stack:_0x35e25e}=readJpegChunks();return await _0x35efc4(_0x28c2cd),_0x35e25e['forEach'](({marker:_0x8c1821,view:_0x4cda08})=>{!_0x439029&&0xe1===_0x8c1821&&_0x4cda08['byteLength']>=0xe&&0x45786966===_0x4cda08['getUint32'](0x0)&&0x0===_0x4cda08['getUint16'](0x4)&&(_0x439029=_0x4cda08);}),_0x439029;},base64ImageSrc='data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k=';let isApplied;const isBrowserApplyExifOrientation=()=>new Promise(_0x4485c3=>{if(void 0x0!==isApplied)_0x4485c3(isApplied);else{const _0x322ec0=new Image();_0x322ec0['addEventListener']('load',()=>{isApplied=_0x322ec0['naturalWidth']<_0x322ec0['naturalHeight'],_0x322ec0['src']='//:0',_0x4485c3(isApplied);}),_0x322ec0['src']=base64ImageSrc;}}),findExifOrientation=(_0x204d53,_0x441292)=>{let _0x4519dd,_0x1ef7de,_0x1cb4de,_0xafece9;if(!_0x204d53||_0x204d53['byteLength']<0xe||0x45786966!==_0x204d53['getUint32'](0x0)||0x0!==_0x204d53['getUint16'](0x4))return;if(0x4949===_0x204d53['getUint16'](0x6))_0x1ef7de=!0x0;else{if(0x4d4d!==_0x204d53['getUint16'](0x6))return;_0x1ef7de=!0x1;}if(0x2a!==_0x204d53['getUint16'](0x8,_0x1ef7de))return;_0x1cb4de=0x8+_0x204d53['getUint32'](0xa,_0x1ef7de);for(_0x4519dd=0x0,_0xafece9=_0x204d53['getUint16'](_0x1cb4de-0x2,_0x1ef7de);_0xafece9>=0x0?_0x4519dd<_0xafece9:_0x4519dd>_0xafece9;_0xafece9>=0x0?++_0x4519dd:--_0x4519dd){if(_0x204d53['byteLength']<_0x1cb4de+0xa)return;0x112===_0x204d53['getUint16'](_0x1cb4de,_0x1ef7de)&&_0x441292(_0x1cb4de+0x8,_0x1ef7de),_0x1cb4de+=0xc;}},setExifOrientation=(_0x288f87,_0x5d797a)=>{findExifOrientation(_0x288f87,(_0x3676b4,_0x22e572)=>_0x288f87['setUint16'](_0x3676b4,_0x5d797a,_0x22e572));},replaceExif=async(_0x5e22ae,_0x5aebc6,_0x3f0527)=>(_0x3f0527&&setExifOrientation(_0x5aebc6,0x1),replaceJpegChunk(_0x5e22ae,0xe1,[_0x5aebc6['buffer']])),processImage=(_0x38e0b7,_0x531768)=>new Promise((_0x1b1f4f,_0x2e1a67)=>{_0x531768&&(_0x38e0b7['src']=_0x531768),_0x38e0b7['complete']?_0x1b1f4f(_0x38e0b7):(_0x38e0b7['addEventListener']('load',()=>{_0x1b1f4f(_0x38e0b7);}),_0x38e0b7['addEventListener']('error',()=>{_0x2e1a67(new Error('Failed\x20to\x20load\x20image.\x20Probably\x20not\x20an\x20image.'));}));}),imageLoader=_0x29d8f0=>processImage(new Image(),_0x29d8f0),allowLayers=[0x1,0x3],markers=[0xc0,0xc1,0xc2,0xc3,0xc5,0xc6,0xc7,0xc9,0xca,0xcb,0xcd,0xce,0xcf],sizes={'squareSide':[Math['floor'](Math['sqrt'](0x4c4b40)),0x1000,0x2000,0x2bac,0x2a54,0x2c8a,0x376c,0x4000],'dimension':[0x1000,0x2000,0x4000,0x7fff,0xffff]},shouldSkipShrink=async _0x31141e=>{let _0x37c5bc=!0x1;const {promiseReadJpegChunks:_0x1f908c,stack:_0x4c062a}=readJpegChunks();return await _0x1f908c(_0x31141e)['then'](()=>(_0x4c062a['forEach'](({marker:_0x11c96e,view:_0x2ebf84})=>{if(!_0x37c5bc&&markers['indexOf'](_0x11c96e)>=0x0){const _0x5de10a=_0x2ebf84['getUint8'](0x5);allowLayers['indexOf'](_0x5de10a)<0x0&&(_0x37c5bc=!0x0);}}),_0x37c5bc))['catch'](()=>_0x37c5bc);},memoize=(_0x5d1aad,_0x46f165)=>{const _0x1c4ca2={};return(..._0x548e4c)=>{const _0x92a4c8=_0x46f165(_0x548e4c,_0x1c4ca2);return _0x92a4c8 in _0x1c4ca2?_0x1c4ca2[_0x92a4c8]:_0x1c4ca2[_0x92a4c8]=_0x5d1aad(..._0x548e4c);};},memoKeySerializer=(_0x5013c6,_0x462769)=>{const [_0xb23a9f]=_0x5013c6,_0x3052c6=Object['keys'](_0x462769)['map'](_0x1425ee=>parseInt(_0x1425ee,0xa))['sort']((_0x28249a,_0x52ce62)=>_0x28249a-_0x52ce62);for(let _0x513900=0x0;_0x513900<_0x3052c6['length'];_0x513900++){const _0x1c2ffd=_0x3052c6[_0x513900],_0x5c3561=!!_0x462769[_0x1c2ffd];if(_0x1c2ffd>_0xb23a9f&&_0x5c3561)return _0x1c2ffd;if(_0x1c2ffd<_0xb23a9f&&!_0x5c3561)return _0x1c2ffd;}return _0xb23a9f;},TestPixel={'R':0x37,'G':0x6e,'B':0xa5,'A':0xff},FILL_STYLE='rgba('+TestPixel['R']+',\x20'+TestPixel['G']+',\x20'+TestPixel['B']+',\x20'+TestPixel['A']/0xff+')',canvasTest=(_0x7ad3db,_0x4b3a40)=>{try{const _0x312e70=[_0x7ad3db-0x1,_0x4b3a40-0x1,0x1,0x1],{canvas:_0x32031b,ctx:_0x49d6e1}=createCanvas();_0x32031b['width']=0x1,_0x32031b['height']=0x1;const {canvas:_0x21d092,ctx:_0x4ce1c4}=createCanvas();_0x21d092['width']=_0x7ad3db,_0x21d092['height']=_0x4b3a40,_0x4ce1c4&&(_0x4ce1c4['fillStyle']=FILL_STYLE,_0x4ce1c4['fillRect'](..._0x312e70),_0x49d6e1['drawImage'](_0x21d092,_0x7ad3db-0x1,_0x4b3a40-0x1,0x1,0x1,0x0,0x0,0x1,0x1));const _0x255ca4=_0x49d6e1&&_0x49d6e1['getImageData'](0x0,0x0,0x1,0x1)['data'];let _0x357b70=!0x1;return _0x255ca4&&(_0x357b70=_0x255ca4[0x0]===TestPixel['R']&&_0x255ca4[0x1]===TestPixel['G']&&_0x255ca4[0x2]===TestPixel['B']&&_0x255ca4[0x3]===TestPixel['A']),_0x21d092['width']=_0x21d092['height']=0x1,_0x357b70;}catch(_0x3754ac){return console['error']('Failed\x20to\x20test\x20for\x20max\x20canvas\x20size\x20of\x20'+_0x7ad3db+'x'+_0x4b3a40+'.'),!0x1;}};function wrapAsync(_0x4ab60d){return(..._0xeb70cb)=>new Promise(_0x22e53b=>{setTimeout(()=>{const _0x57e80c=_0x4ab60d(..._0xeb70cb);_0x22e53b(_0x57e80c);},0x0);});}const squareTest=wrapAsync(memoize(canvasTest,memoKeySerializer)),dimensionTest=wrapAsync(memoize(canvasTest,memoKeySerializer)),testCanvasSize=async(_0x27a2a7,_0x1b80e8)=>{const _0x4cb9fb=sizes['squareSide']['find'](_0x53a25d=>_0x53a25d*_0x53a25d>=_0x27a2a7*_0x1b80e8),_0xfaecf0=sizes['dimension']['find'](_0x1ded52=>_0x1ded52>=_0x27a2a7&&_0x1ded52>=_0x1b80e8);if(!_0x4cb9fb||!_0xfaecf0)throw new Error('Not\x20supported');const [_0x2609e8,_0x60b7df]=await Promise['all']([squareTest(_0x4cb9fb,_0x4cb9fb),dimensionTest(_0xfaecf0,0x1)]);if(_0x2609e8&&_0x60b7df)return!0x0;throw new Error('Not\x20supported');},canvasResize=async(_0x46ea28,_0x2b6df9,_0x20355a)=>{try{const {ctx:_0x2faeeb,canvas:_0x13b235}=createCanvas();return _0x13b235['width']=_0x2b6df9,_0x13b235['height']=_0x20355a,_0x2faeeb['imageSmoothingQuality']='high',_0x2faeeb['drawImage'](_0x46ea28,0x0,0x0,_0x2b6df9,_0x20355a),_0x46ea28 instanceof HTMLImageElement&&(_0x46ea28['src']='//:0'),_0x46ea28 instanceof HTMLCanvasElement&&(_0x46ea28['width']=_0x46ea28['height']=0x1),_0x13b235;}catch(_0x50c467){throw new Error('Canvas\x20resize\x20error',{'cause':_0x50c467});}},native=({img:_0x2e044a,targetW:_0x3005b9,targetH:_0x5f2f8a})=>canvasResize(_0x2e044a,_0x3005b9,_0x5f2f8a),calcShrinkSteps=function({sourceW:_0x23bd3a,targetW:_0x171fcb,targetH:_0xcf528d,step:_0x3e667c}){const _0xaea80e=[];let _0x11a096=_0x171fcb,_0x44bb43=_0xcf528d;do{_0xaea80e['push']([_0x11a096,_0x44bb43]),_0x11a096=Math['round'](_0x11a096/_0x3e667c),_0x44bb43=Math['round'](_0x44bb43/_0x3e667c);}while(_0x11a096<_0x23bd3a*_0x3e667c);return _0xaea80e['reverse']();},fallback=({img:_0x2d538b,sourceW:_0x159d87,targetW:_0x5dfc8b,targetH:_0x46d52d,step:_0x41b5bd})=>{const _0x182714=calcShrinkSteps({'sourceW':_0x159d87,'targetW':_0x5dfc8b,'targetH':_0x46d52d,'step':_0x41b5bd});return _0x182714['reduce']((_0x1b3486,[_0x3b8a6b,_0x1f8ce4],_0xd92e1a)=>_0x1b3486['then'](_0x2264f0=>testCanvasSize(_0x3b8a6b,_0x1f8ce4)['then'](()=>canvasResize(_0x2264f0,_0x3b8a6b,_0x1f8ce4))['catch'](()=>{if(_0xd92e1a===_0x182714['length']-0x1)throw new Error('Not\x20supported');return _0x2264f0;})),Promise['resolve'](_0x2d538b));},isIOS=()=>!!/iPad|iPhone|iPod/['test'](navigator['platform'])||navigator['maxTouchPoints']&&navigator['maxTouchPoints']>0x2&&/MacIntel/['test'](navigator['platform']),isIpadOS=navigator['maxTouchPoints']&&navigator['maxTouchPoints']>0x2&&/MacIntel/['test'](navigator['platform']),STEP=0.71,shrinkImage=(_0x4d9037,_0x239108)=>{if(_0x4d9037['width']*STEP*_0x4d9037['height']*STEP<_0x239108['size'])throw new Error('Not\x20required');const _0x5780c8=_0x4d9037['width'],_0xdf474b=_0x4d9037['height'],_0x24542f=_0x5780c8/_0xdf474b,_0x26b30a=Math['floor'](Math['sqrt'](_0x239108['size']*_0x24542f)),_0x58cc7d=Math['floor'](_0x239108['size']/Math['sqrt'](_0x239108['size']*_0x24542f));return testCanvasSize(_0x26b30a,_0x58cc7d)['then'](()=>{const {ctx:_0x563efa}=createCanvas();return'imageSmoothingQuality'in _0x563efa&&!isIOS()&&!isIpadOS?native({'img':_0x4d9037,'targetW':_0x26b30a,'targetH':_0x58cc7d}):fallback({'img':_0x4d9037,'sourceW':_0x5780c8,'targetW':_0x26b30a,'targetH':_0x58cc7d,'step':STEP});})['catch'](()=>Promise['reject']('Not\x20supported'));},shrinkFile=async(_0x1baa4e,_0x2954b9)=>{try{if(await shouldSkipShrink(_0x1baa4e))throw new Error('Should\x20skipped');const _0xdadc40=await Promise['allSettled']([getExif(_0x1baa4e),isBrowserApplyExifOrientation(),getIccProfile(_0x1baa4e)]),_0xa0b920=!_0xdadc40['some'](_0x5b867d=>'rejected'===_0x5b867d['status']),[_0x40a92f,_0x1db382,_0x23e706]=_0xdadc40,_0xfbbd27=await stripIccProfile(_0x1baa4e)['catch'](()=>_0x1baa4e),_0x5a991f=await imageLoader(URL['createObjectURL'](_0xfbbd27));URL['revokeObjectURL'](_0x5a991f['src']);const _0x5bb5bb=await shrinkImage(_0x5a991f,_0x2954b9);let _0x5f075b='image/jpeg',_0x4008de=_0x2954b9?.['quality']||0.8;!_0xa0b920&&hasTransparency(_0x5bb5bb)&&(_0x5f075b='image/png',_0x4008de=void 0x0);let _0x95c8bd=await canvasToBlob(_0x5bb5bb,_0x5f075b,_0x4008de);if(_0xa0b920&&'fulfilled'===_0x40a92f['status']&&_0x40a92f['value']){const _0x374c50=_0x40a92f['value'],_0xf175c5='fulfilled'===_0x1db382['status']&&_0x1db382['value'];_0x95c8bd=await replaceExif(_0x95c8bd,_0x374c50,_0xf175c5);}return _0xa0b920&&'fulfilled'===_0x23e706['status']&&_0x23e706['value']['length']>0x0&&(_0x95c8bd=await replaceIccProfile(_0x95c8bd,_0x23e706['value'])),_0x95c8bd;}catch(_0x51a376){let _0x1bd845;throw _0x51a376 instanceof Error&&(_0x1bd845=_0x51a376['message']),'string'==typeof _0x51a376&&(_0x1bd845=_0x51a376),new Error('Failed\x20to\x20shrink\x20image.\x20'+(_0x1bd845?'Message:\x20\x22'+_0x1bd845+'\x22.':''),{'cause':_0x51a376});}},MAX_SQUARE_SIDE=0x4000,regExpShrink=/^([0-9]+)x([0-9]+)(?:\s+(\d{1,2}|100)%)?$/i,parseShrink=_0x345367=>{const _0x42a3cc=regExpShrink['exec'](_0x345367?.['toLocaleLowerCase']())||[];if(!_0x42a3cc['length'])return!0x1;const _0x4f6270=_0x42a3cc[0x1]*_0x42a3cc[0x2],_0xd30517=MAX_SQUARE_SIDE*MAX_SQUARE_SIDE;return _0x4f6270>_0xd30517?(console['warn']('Shrinked\x20size\x20can\x20not\x20be\x20larger\x20than\x20'+Math['floor'](_0xd30517/0x3e8/0x3e8)+'MP.\x20You\x20have\x20set\x20'+_0x42a3cc[0x1]+'x'+_0x42a3cc[0x2]+'\x20('+Math['ceil'](_0x4f6270/0x3e8/0x64)/0xa+'MP).'),!0x1):{'quality':_0x42a3cc[0x3]?_0x42a3cc[0x3]/0x64:void 0x0,'size':_0x4f6270};},throttle=(_0x1e504e,_0x411c17)=>{let _0x5df268,_0x297fbc,_0xecd3d4;const _0x12a006=(..._0x2d109c)=>{_0x5df268?(clearTimeout(_0x297fbc),_0x297fbc=setTimeout(()=>{Date['now']()-_0xecd3d4>=_0x411c17&&(_0x1e504e(..._0x2d109c),_0xecd3d4=Date['now']());},Math['max'](_0x411c17-(Date['now']()-_0xecd3d4),0x0))):(_0x1e504e(..._0x2d109c),_0xecd3d4=Date['now'](),_0x5df268=!0x0);};return Object['defineProperty'](_0x12a006,'cancel',{'configurable':!0x1,'writable':!0x1,'enumerable':!0x1,'value':()=>{clearTimeout(_0x297fbc);}}),_0x12a006;};class FileItemConfig extends UploaderBlock{['_entrySubs']=new Set();['_entry']=null;['_withEntry'](_0x438e6b){return(..._0x1aaff3)=>{const _0x55f722=this['_entry'];if(_0x55f722)return _0x438e6b(_0x55f722,..._0x1aaff3);console['warn']('No\x20entry\x20found');};}['_subEntry'](_0x581238,_0x4ead11){return this['_withEntry']((_0xd99eb8,_0x256ac7,_0x35e0ea)=>{let _0x54c23a=_0xd99eb8['subscribe'](_0x256ac7,_0x55c973=>{this['isConnected']&&_0x35e0ea(_0x55c973);});this['_entrySubs']['add'](_0x54c23a);})(_0x581238,_0x4ead11);}['_reset'](){for(let _0x58550c of this['_entrySubs'])_0x58550c['remove']();this['_entrySubs']=new Set(),this['_entry']=null;}['disconnectedCallback'](){super['disconnectedCallback'](),this['_entrySubs']=new Set();}}const FileItemState=Object['freeze']({'FINISHED':Symbol('FINISHED'),'FAILED':Symbol('FAILED'),'UPLOADING':Symbol('UPLOADING'),'IDLE':Symbol('IDLE')});class FileItem extends FileItemConfig{['couldBeCtxOwner']=!0x0;['pauseRender']=!0x0;['_renderedOnce']=!0x1;constructor(){super(),this['init$']={...this['init$'],'uid':'','itemName':'','errorText':'','hint':'','thumbUrl':'','progressValue':0x0,'progressVisible':!0x1,'badgeIcon':'','isFinished':!0x1,'isFailed':!0x1,'isUploading':!0x1,'isFocused':!0x1,'isEditable':!0x1,'showFileNames':!0x1,'state':FileItemState['IDLE'],'ariaLabelStatusFile':'','onEdit':this['_withEntry'](_0x34e833=>{this['$']['*currentActivityParams']={'internalId':_0x34e833['uid']},this['modalManager']['open'](ActivityBlock['activities']['CLOUD_IMG_EDIT']),this['$']['*currentActivity']=ActivityBlock['activities']['CLOUD_IMG_EDIT'];}),'onRemove':()=>{this['uploadCollection']['remove'](this['$']['uid']);},'onUpload':()=>{this['upload']();}};}['_reset'](){super['_reset'](),this['_debouncedCalculateState']['cancel']();}['_observerCallback'](_0x1da1c2){let [_0x461e36]=_0x1da1c2;this['_isIntersecting']=_0x461e36['isIntersecting'],this['_thumbRect']=_0x461e36['boundingClientRect'],_0x461e36['isIntersecting']&&!this['_renderedOnce']&&(this['render'](),this['_renderedOnce']=!0x0);}['_calculateState']=this['_withEntry'](e=>{let i=FileItemState['IDLE'];e['getValue']('errors')['length']>0x0?i=FileItemState['FAILED']:e['getValue']('isUploading')?i=FileItemState['UPLOADING']:e['getValue']('fileInfo')&&(i=FileItemState['FINISHED']),this['$']['state']=i;});['_debouncedCalculateState']=debounce(this['_calculateState']['bind'](this),0x64);['_updateHint']=this['_withEntry'](throttle(e=>{const i=e['getValue']('source'),n=e['getValue']('externalUrl'),s=0x0===e['getValue']('errors')['length'],r=0x0===this['$']['progressValue'],o=this['$']['state']===FileItemState['UPLOADING'],a=e['getValue']('isQueued');if(s&&o&&r){if(a){const e=this['l10n']('queued');return void(this['$']['hint']=e);}if(n&&i&&Object['values'](ExternalUploadSource)['includes'](i)){const e=this['l10n']('waiting-for',{'source':this['l10n']('src-type-'+i)});return void(this['$']['hint']=e);}this['$']['hint']='';}else this['$']['hint']='';},0x64));['_handleEntryId'](_0xfbfa6d){this['_reset']();let _0x17f91f=this['uploadCollection']?.['read'](_0xfbfa6d);this['_entry']=_0x17f91f,_0x17f91f&&(this['_subEntry']('uploadProgress',_0x5668aa=>{this['$']['progressValue']=_0x5668aa,this['_updateHint']();}),this['_subEntry']('isQueued',()=>{this['_updateHint']();}),this['_subEntry']('fileName',_0x26fc1a=>{this['$']['itemName']=_0x26fc1a||_0x17f91f['getValue']('externalUrl')||this['l10n']('file-no-name'),this['_debouncedCalculateState']();}),this['_subEntry']('externalUrl',_0x4c443c=>{this['$']['itemName']=_0x17f91f['getValue']('fileName')||_0x4c443c||this['l10n']('file-no-name');}),this['_subEntry']('fileInfo',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('errors',()=>this['_debouncedCalculateState']()),this['_subEntry']('isUploading',()=>this['_debouncedCalculateState']()),this['_subEntry']('fileSize',()=>this['_debouncedCalculateState']()),this['_subEntry']('mimeType',()=>this['_debouncedCalculateState']()),this['_subEntry']('isImage',()=>this['_debouncedCalculateState']()));}['_updateShowFileNames'](_0x36a8ea){'list'===this['cfg']['filesViewMode']?this['$']['showFileNames']=!0x0:this['$']['showFileNames']=_0x36a8ea;}['initCallback'](){super['initCallback'](),this['sub']('uid',_0x2ded1e=>{this['_handleEntryId'](_0x2ded1e);}),this['sub']('state',_0x1aefee=>{this['_handleState'](_0x1aefee);}),this['subConfigValue']('useCloudImageEditor',()=>this['_debouncedCalculateState']()),this['subConfigValue']('filesViewMode',_0x53e3c4=>{this['_updateShowFileNames'](this['cfg']['gridShowFileNames']),this['setAttribute']('mode',_0x53e3c4);}),this['subConfigValue']('gridShowFileNames',_0x3f73d3=>{this['_updateShowFileNames'](_0x3f73d3);}),this['onclick']=()=>{FileItem['activeInstances']['forEach'](_0x400a1b=>{_0x400a1b===this?_0x400a1b['setAttribute']('focused',''):_0x400a1b['removeAttribute']('focused');});},this['sub']('*uploadTrigger',_0x12be9b=>{this['_entry']&&!_0x12be9b['has'](this['_entry']['uid'])||setTimeout(()=>this['isConnected']&&this['upload']());}),FileItem['activeInstances']['add'](this);}['_handleState']=this['_withEntry']((e,i)=>{i===FileItemState['FAILED']?this['$']['badgeIcon']='badge-error':i===FileItemState['FINISHED']&&(this['$']['badgeIcon']='badge-success'),i===FileItemState['UPLOADING']&&(this['$']['isFocused']=!0x1);const n=e['getValue']('fileName');this['set$']({'isFailed':i===FileItemState['FAILED'],'isUploading':i===FileItemState['UPLOADING'],'isFinished':i===FileItemState['FINISHED'],'progressVisible':i===FileItemState['UPLOADING'],'isEditable':this['cfg']['useCloudImageEditor']&&this['_entry']?.['getValue']('isImage')&&this['_entry']?.['getValue']('cdnUrl'),'errorText':e['getValue']('errors')?.[0x0]?.['message'],'ariaLabelStatusFile':n&&this['l10n']('a11y-file-item-status',{'fileName':n,'status':this['l10n'](i?.['description']?.['toLocaleLowerCase']()??'')['toLocaleLowerCase']()})}),this['_updateHint']();});['destroyCallback'](){super['destroyCallback'](),FileItem['activeInstances']['delete'](this),this['_reset']();}['connectedCallback'](){super['connectedCallback'](),this['_observer']=new window['IntersectionObserver'](this['_observerCallback']['bind'](this),{'threshold':[0x0,0x1]}),this['_observer']['observe'](this);}['disconnectedCallback'](){super['disconnectedCallback'](),this['_observer']?.['disconnect']();}['_settingsOfShrink'](){return parseShrink(this['cfg']['imageShrink']);}['_processShrink'](_0x2ce376){return shrinkFile(_0x2ce376,this['_settingsOfShrink']());}['upload']=this['_withEntry'](async e=>{if(!this['uploadCollection']['read'](e['uid']))return;if(e['getValue']('fileInfo')||e['getValue']('isUploading')||e['getValue']('errors')['length']>0x0)return;const i=this['cfg']['multiple']?this['cfg']['multipleMax']:0x1;if(!(i&&this['uploadCollection']['size']>i)){this['_debouncedCalculateState'](),e['setMultipleValues']({'isUploading':!0x0,'errors':[],'isQueued':!0x0});try{let i=new AbortController();e['setValue']('abortController',i);const n=async()=>{e['setValue']('isQueued',!0x1);let n=e['getValue']('file');n&&this['cfg']['imageShrink']&&(n=await this['_processShrink'](n)['catch'](()=>n));const s=n||e['getValue']('externalUrl')||e['getValue']('uuid');if(!s)throw new Error('No\x20file\x20input');const r={...await this['getUploadClientOptions'](),'fileName':e['getValue']('fileName')??void 0x0,'source':e['getValue']('source')??void 0x0,'onProgress':i=>{if(i['isComputable']){let n=0x64*i['value'];e['setValue']('uploadProgress',n);}},'signal':i['signal'],'metadata':await this['getMetadataFor'](e['uid'])};return this['debugPrint']('upload\x20options',s,r),uploadFile(s,r);};let s=await this['$']['*uploadQueue']['add'](n);e['setMultipleValues']({'fileInfo':s,'isQueued':!0x1,'isUploading':!0x1,'fileName':s['originalFilename'],'fileSize':s['size'],'isImage':s['isImage']??!0x1,'mimeType':s['contentInfo']?.['mime']?.['mime']??s['mimeType'],'uuid':s['uuid'],'cdnUrl':e['getValue']('cdnUrl')??s['cdnUrl'],'cdnUrlModifiers':e['getValue']('cdnUrlModifiers')??'','uploadProgress':0x64,'source':e['getValue']('source')??null}),e===this['_entry']&&this['_debouncedCalculateState']();}catch(i){i instanceof CancelError&&i['isCancel']?e['setMultipleValues']({'isUploading':!0x1,'uploadProgress':0x0}):i instanceof UploadcareError?e['setMultipleValues']({'isUploading':!0x1,'uploadProgress':0x0,'uploadError':i}):(console['error']('Unknown\x20upload\x20error',i),e['setMultipleValues']({'isUploading':!0x1,'uploadProgress':0x0,'uploadError':new Error('Something\x20went\x20wrong',{'cause':i})})),e===this['_entry']&&this['_debouncedCalculateState']();}}});}FileItem['template']='\x0a\x20\x20<div\x20class=\x22uc-inner\x22\x20set=\x22@finished:\x20isFinished;\x20@uploading:\x20isUploading;\x20@failed:\x20isFailed;\x20@focused:\x20isFocused\x22>\x0a\x20\x20\x20\x20<uc-thumb\x20set=\x22uid:uid;badgeIcon:badgeIcon\x22></uc-thumb>\x0a\x0a\x20\x20\x20\x20<div\x20aria-atomic=\x22true\x22\x20aria-live=\x22polite\x22\x20class=\x22uc-file-name-wrapper\x22\x20set=\x22@aria-label:ariaLabelStatusFile;\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20class=\x22uc-file-name\x22\x20set=\x22@hidden:\x20!showFileNames\x22>{{itemName}}</span>\x0a\x20\x20\x20\x20\x20\x20<span\x20class=\x22uc-file-error\x22\x20set=\x22@hidden:\x20!errorText;\x22>{{errorText}}</span>\x0a\x20\x20\x20\x20\x20\x20<span\x20class=\x22uc-file-hint\x22\x20set=\x22@hidden:\x20!hint\x22>{{hint}}</span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-file-actions\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20l10n=\x22@title:file-item-edit-button;@aria-label:file-item-edit-button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-edit-btn\x20uc-mini-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onEdit;\x20@hidden:\x20!isEditable\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22edit-file\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20l10n=\x22@title:file-item-remove-button;@aria-label:file-item-remove-button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-remove-btn\x20uc-mini-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onRemove;\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22remove-file\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-upload-btn\x20uc-mini-btn\x22\x20set=\x22onclick:\x20onUpload;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22upload\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<uc-progress-bar\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-progress-bar\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22value:\x20progressValue;\x20visible:\x20progressVisible;\x20@hasFileName:\x20showFileNames;\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20</uc-progress-bar>\x0a\x20\x20</div>\x0a',FileItem['activeInstances']=new Set();let LAST_ACTIVE_MODAL_ID=null;class Modal extends Block{static ['styleAttrs']=[...super['styleAttrs'],'uc-modal'];static ['StateConsumerScope']='modal';constructor(){super(),this['init$']={...this['init$'],'closeClicked':this['_handleDialogClose']};}['_handleBackdropClick']=()=>{this['_closeDialog']();};['_closeDialog']=()=>{this['modalManager']?.['close'](this['id']),this['modalManager']['hasActiveModals']||(document['body']['style']['overflow']='');};['_handleDialogClose']=()=>{this['_closeDialog']();};['_handleDialogMouseDown']=_0x567794=>{this['_mouseDownTarget']=_0x567794['target'];};['_handleDialogMouseUp']=_0x5648b8=>{_0x5648b8['target']===this['ref']['dialog']&&_0x5648b8['target']===this['_mouseDownTarget']&&this['_closeDialog']();};['show'](){this['ref']['dialog']['showModal']?(this['setAttribute']('aria-modal','true'),this['ref']['dialog']['showModal']()):this['ref']['dialog']['setAttribute']('open',''),this['cfg']['modalScrollLock']&&(document['body']['style']['overflow']='hidden');}['hide'](){this['ref']['dialog']['close']?(this['setAttribute']('aria-modal','false'),this['ref']['dialog']['close']()):this['ref']['dialog']['removeAttribute']('open');}['_handleModalOpen']({id:_0x1c9e0e}){_0x1c9e0e===this['id']?(LAST_ACTIVE_MODAL_ID=_0x1c9e0e,this['show']()):this['hide'](),this['emit'](EventType['MODAL_OPEN'],{'modalId':_0x1c9e0e},{'debounce':!0x0});}['_handleModalClose']({id:_0x17ede1}){_0x17ede1===this['id']&&this['hide'](),this['emit'](EventType['MODAL_CLOSE'],{'modalId':_0x17ede1,'hasActiveModals':this['modalManager']['hasActiveModals']},{'debounce':!0x0});}['_handleModalCloseAll'](){this['hide'](),LAST_ACTIVE_MODAL_ID===this['id']&&this['emit'](EventType['MODAL_CLOSE'],{'modalId':LAST_ACTIVE_MODAL_ID,'hasActiveModals':this['modalManager']['hasActiveModals']},{'debounce':!0x0});}['initCallback'](){super['initCallback'](),this['modalManager']?.['registerModal'](this['id'],this),this['ref']['dialog']['addEventListener']('close',this['_handleDialogClose']),this['ref']['dialog']['addEventListener']('mousedown',this['_handleDialogMouseDown']),this['ref']['dialog']['addEventListener']('mouseup',this['_handleDialogMouseUp']),this['subConfigValue']('modalBackdropStrokes',_0x119fc1=>{_0x119fc1?this['setAttribute']('strokes',''):this['removeAttribute']('strokes');}),this['handleModalOpen']=this['_handleModalOpen']['bind'](this),this['handleModalClose']=this['_handleModalClose']['bind'](this),this['handleModalCloseAll']=this['_handleModalCloseAll']['bind'](this),this['modalManager']['subscribe'](ModalEvents['OPEN'],this['handleModalOpen']),this['modalManager']['subscribe'](ModalEvents['CLOSE'],this['handleModalClose']),this['modalManager']['subscribe'](ModalEvents['CLOSE_ALL'],this['handleModalCloseAll']);}['destroyCallback'](){super['destroyCallback'](),document['body']['style']['overflow']='',this['_mouseDownTarget']=void 0x0,this['ref']['dialog']['removeEventListener']('close',this['_handleDialogClose']),this['ref']['dialog']['removeEventListener']('mousedown',this['_handleDialogMouseDown']),this['ref']['dialog']['removeEventListener']('mouseup',this['_handleDialogMouseUp']),this['modalManager']['unsubscribe'](ModalEvents['OPEN'],this['handleModalOpen']),this['modalManager']['unsubscribe'](ModalEvents['CLOSE'],this['handleModalClose']),this['modalManager']['unsubscribe'](ModalEvents['CLOSE_ALL'],this['handleModalCloseAll']);}}Modal['template']='\x0a\x20\x20<dialog\x20ref=\x22dialog\x22>\x0a\x20\x20\x20\x20<slot></slot>\x0a\x20\x20</dialog>\x0a';class UploadList extends UploaderBlock{['couldBeCtxOwner']=!0x0;['historyTracked']=!0x0;['activityType']=ActivityBlock['activities']['UPLOAD_LIST'];constructor(){super(),this['init$']={...this['init$'],'doneBtnVisible':!0x1,'doneBtnEnabled':!0x1,'uploadBtnVisible':!0x1,'addMoreBtnVisible':!0x1,'addMoreBtnEnabled':!0x1,'headerText':'','commonErrorMessage':'','hasFiles':!0x1,'onAdd':()=>{this['api']['initFlow'](!0x0);},'onUpload':()=>{this['emit'](EventType['UPLOAD_CLICK']),this['api']['uploadAll'](),this['_throttledHandleCollectionUpdate']();},'onDone':()=>{this['emit'](EventType['DONE_CLICK'],this['api']['getOutputCollectionState']()),this['api']['doneFlow']();},'onCancel':()=>{this['uploadCollection']['clearAll']();}};}['_throttledHandleCollectionUpdate']=throttle(()=>{this['isConnected']&&(this['_updateUploadsState'](),this['couldOpenActivity']||this['$']['*currentActivity']!==this['activityType']||this['historyBack']());},0x12c);['_updateUploadsState'](){const _0x2c9080=this['api']['getOutputCollectionState'](),_0x3b1b25={'total':_0x2c9080['totalCount'],'succeed':_0x2c9080['successCount'],'uploading':_0x2c9080['uploadingCount'],'failed':_0x2c9080['failedCount']},_0x13711c=!_0x2c9080['errors']['some'](_0x64a0ba=>'TOO_MANY_FILES'===_0x64a0ba['type']||'TOO_FEW_FILES'===_0x64a0ba['type']),_0x18252b=_0x2c9080['errors']['some'](_0xb3db87=>'TOO_MANY_FILES'===_0xb3db87['type']),_0x494e2b=_0x2c9080['totalCount']===(this['cfg']['multiple']?this['cfg']['multipleMax']:0x1),_0x20e549=0x0===_0x3b1b25['failed']&&0x0===_0x2c9080['errors']['length'];let _0x81ff10=!0x1,_0x59c95b=!0x1,_0x2c33af=!0x1;if(_0x3b1b25['total']-_0x3b1b25['succeed']-_0x3b1b25['uploading']-_0x3b1b25['failed']>0x0&&_0x13711c)_0x81ff10=!0x0;else{_0x59c95b=!0x0;const _0xebce51=!this['cfg']['groupOutput']||!!_0x2c9080['group'];_0x2c33af=_0x3b1b25['total']===_0x3b1b25['succeed']&&_0x13711c&&_0x20e549&&_0xebce51;}this['set$']({'doneBtnVisible':_0x59c95b,'doneBtnEnabled':_0x2c33af,'uploadBtnVisible':_0x81ff10,'addMoreBtnEnabled':0x0===_0x3b1b25['total']||!_0x18252b&&!_0x494e2b,'addMoreBtnVisible':!_0x494e2b||this['cfg']['multiple']}),this['bindL10n']('headerText',()=>this['_getHeaderText'](_0x3b1b25));}['_getHeaderText'](_0x5c06d8){const _0x45ee4d=_0x3a34b7=>{const _0x1415ad=_0x5c06d8[_0x3a34b7];return this['l10n']('header-'+_0x3a34b7,{'count':_0x1415ad});};return _0x5c06d8['uploading']>0x0?_0x45ee4d('uploading'):_0x5c06d8['failed']>0x0?_0x45ee4d('failed'):_0x5c06d8['succeed']>0x0?_0x45ee4d('succeed'):_0x45ee4d('total');}get['couldOpenActivity'](){return this['cfg']['showEmptyList']||this['uploadCollection']['size']>0x0;}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType']),this['subConfigValue']('multiple',this['_throttledHandleCollectionUpdate']),this['subConfigValue']('multipleMin',this['_throttledHandleCollectionUpdate']),this['subConfigValue']('multipleMax',this['_throttledHandleCollectionUpdate']),this['sub']('*groupInfo',_0x1140ef=>{_0x1140ef&&this['_throttledHandleCollectionUpdate']();}),this['subConfigValue']('filesViewMode',_0x229bc4=>{this['setAttribute']('mode',_0x229bc4);}),this['sub']('*currentActivity',_0x52f7b3=>{this['couldOpenActivity']||_0x52f7b3!==this['activityType']||(this['$']['*currentActivity']=this['initActivity']);}),this['uploadCollection']['observeProperties'](this['_throttledHandleCollectionUpdate']),this['sub']('*uploadList',_0x2c9e40=>{this['_throttledHandleCollectionUpdate'](),this['set$']({'hasFiles':_0x2c9e40['length']>0x0}),this['cfg']['confirmUpload']||this['api']['uploadAll']();},!0x1),this['sub']('*collectionErrors',_0x57b3dc=>{const _0x5a4011=_0x57b3dc['filter'](_0x29c94d=>'SOME_FILES_HAS_ERRORS'!==_0x29c94d['type'])[0x0];_0x5a4011?this['set$']({'commonErrorMessage':_0x5a4011['message']}):this['set$']({'commonErrorMessage':null});});}['destroyCallback'](){super['destroyCallback'](),this['uploadCollection']['unobserveProperties'](this['_throttledHandleCollectionUpdate']);}}UploadList['template']='\x0a\x20\x20<uc-activity-header>\x0a\x20\x20\x20\x20<span\x20aria-live=\x22polite\x22\x20class=\x22uc-header-text\x22>{{headerText}}</span>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x20uc-close-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20*closeModal\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22close\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</uc-activity-header>\x0a\x0a\x20\x20<div\x20class=\x22uc-no-files\x22\x20set=\x22@hidden:\x20hasFiles\x22>\x0a\x20\x20\x20\x20<slot\x20name=\x22empty\x22><span\x20l10n=\x22no-files\x22></span></slot>\x0a\x20\x20</div>\x0a\x0a\x20\x20<div\x20class=\x22uc-files\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-files-wrapper\x22\x20repeat=\x22*uploadList\x22\x20repeat-item-tag=\x22uc-file-item\x22></div>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-add-more-btn\x20uc-secondary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onAdd;\x20@disabled:\x20!addMoreBtnEnabled;\x20@hidden:\x20!addMoreBtnVisible\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22add\x22></uc-icon><span\x20l10n=\x22add-more\x22></span>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<div\x20class=\x22uc-common-error\x22\x20set=\x22@hidden:\x20!commonErrorMessage;\x20textContent:\x20commonErrorMessage;\x22></div>\x0a\x0a\x20\x20<div\x20class=\x22uc-toolbar\x22>\x0a\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-cancel-btn\x20uc-secondary-btn\x22\x20set=\x22onclick:\x20onCancel;\x22\x20l10n=\x22clear\x22></button>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-toolbar-spacer\x22></div>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-add-more-btn\x20uc-secondary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onAdd;\x20@disabled:\x20!addMoreBtnEnabled;\x20@hidden:\x20!addMoreBtnVisible\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22add\x22></uc-icon><span\x20l10n=\x22add-more\x22></span>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-upload-btn\x20uc-primary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22@hidden:\x20!uploadBtnVisible;\x20onclick:\x20onUpload;\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22upload\x22\x0a\x20\x20\x20\x20></button>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-done-btn\x20uc-primary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22@hidden:\x20!doneBtnVisible;\x20onclick:\x20onDone;\x20\x20@disabled:\x20!doneBtnEnabled\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22done\x22\x0a\x20\x20\x20\x20></button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<uc-drop-area\x20ghost></uc-drop-area>\x0a';class UrlSource extends UploaderBlock{['couldBeCtxOwner']=!0x0;['activityType']=ActivityBlock['activities']['URL'];['init$']={...this['init$'],'importDisabled':!0x0,'onUpload':e=>{e['preventDefault']();let i=this['ref']['input']['value'];this['api']['addFileFromUrl'](i,{'source':UploadSource['URL']}),this['modalManager']['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'];},'onCancel':()=>{this['historyBack']();},'onInput':e=>{let i=e['target']['value'];this['set$']({'importDisabled':!i});}};['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType'],{'onActivate':()=>{this['ref']['input']['value']='',this['ref']['input']['focus']();}});}}UrlSource['template']='\x0a\x20\x20<uc-activity-header>\x0a\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-mini-btn\x22\x20set=\x22onclick:\x20*historyBack\x22\x20l10n=\x22@title:back;@aria-label:back\x22>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22back\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<div>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22url\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20<span\x20l10n=\x22caption-from-url\x22></span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x20uc-close-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20*closeModal\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22close\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</uc-activity-header>\x0a\x20\x20<form\x20class=\x22uc-content\x22>\x0a\x20\x20\x20\x20<label>\x0a\x20\x20\x20\x20\x20\x20<input\x20placeholder=\x22https://\x22\x20class=\x22uc-url-input\x22\x20type=\x22text\x22\x20ref=\x22input\x22\x20set=\x22oninput:\x20onInput\x22\x20/>\x0a\x20\x20\x20\x20</label>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22submit\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-url-upload-btn\x20uc-primary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onUpload;\x20@disabled:\x20importDisabled\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22upload-url\x22\x0a\x20\x20\x20\x20></button>\x0a\x20\x20</form>\x0a';const canUsePermissionsApi=()=>void 0x0!==navigator['permissions'],DEFAULT_VIDEO_CONFIG={'width':{'ideal':0x780},'height':{'ideal':0x438},'frameRate':{'ideal':0x1e}},DEFAULT_PERMISSIONS=['camera','microphone'];function formatTime(_0x1b0b70){return Math['floor'](_0x1b0b70/0x3c)['toString']()['padStart'](0x2,'0')+':'+Math['floor'](_0x1b0b70%0x3c)['toString']()['padStart'](0x2,'0');}const DEFAULT_PICTURE_FORMAT='image/jpeg',DEFAULT_VIDEO_FORMAT='video/webm';class CameraSource extends UploaderBlock{['couldBeCtxOwner']=!0x0;['activityType']=ActivityBlock['activities']['CAMERA'];['_unsubPermissions']=null;['_chunks']=[];['_mediaRecorder']=null;['_stream']=null;['_selectedAudioId']=null;['_selectedCameraId']=null;constructor(){super(),this['init$']={...this['init$'],'video':null,'videoTransformCss':null,'videoHidden':!0x0,'messageHidden':!0x0,'requestBtnHidden':canUsePermissionsApi(),'cameraSelectOptions':null,'cameraSelectHidden':!0x0,'l10nMessage':'','switcher':null,'panels':null,'timer':null,'timerHidden':!0x0,'cameraHidden':!0x0,'cameraActionsHidden':!0x0,'audioSelectOptions':null,'audioSelectHidden':!0x0,'audioSelectDisabled':!0x0,'audioToggleMicrophoneHidden':!0x0,'tabCameraHidden':!0x0,'tabVideoHidden':!0x0,'currentIcon':'camera-full','currentTimelineIcon':'play','toggleMicrophoneIcon':'microphone','_startTime':0x0,'_elapsedTime':0x0,'_animationFrameId':null,'mutableClassButton':'uc-shot-btn\x20uc-camera-action','onCameraSelectChange':_0x5d2bd9=>{this['_selectedCameraId']=_0x5d2bd9['target']['value'],this['_capture']();},'onAudioSelectChange':_0x570379=>{this['_selectedAudioId']=_0x570379['target']['value'],this['_capture']();},'onCancel':()=>{this['historyBack']();},'onShot':()=>this['_shot'](),'onRequestPermissions':()=>this['_capture'](),'onStartCamera':()=>this['_chooseActionWithCamera'](),'onStartRecording':()=>this['_startRecording'](),'onStopRecording':()=>this['_stopRecording'](),'onToggleRecording':()=>this['_toggleRecording'](),'onToggleAudio':()=>this['_toggleEnableAudio'](),'onRetake':()=>this['_retake'](),'onAccept':()=>this['_accept'](),'onClickTab':_0x39f768=>{const _0x12b767=_0x39f768['currentTarget']['getAttribute']('data-id');_0x12b767&&this['_handleActiveTab'](_0x12b767);}};}['_chooseActionWithCamera']=()=>{if(this['_activeTab']===CameraSourceTypes['PHOTO']&&this['_shot'](),this['_activeTab']===CameraSourceTypes['VIDEO']){if('recording'===this['_mediaRecorder']?.['state'])return void this['_stopRecording']();this['_startRecording']();}};['_updateTimer']=()=>{const _0x199cf3=Math['floor']((performance['now']()-this['$']['_startTime']+this['$']['_elapsedTime'])/0x3e8);if('number'==typeof this['cfg']['maxVideoRecordingDuration']&&this['cfg']['maxVideoRecordingDuration']>0x0){const _0x33b075=this['cfg']['maxVideoRecordingDuration']-_0x199cf3;if(_0x33b075<=0x0)return this['ref']['timer']['textContent']=formatTime(_0x33b075),void this['_stopRecording']();this['ref']['timer']['textContent']=formatTime(_0x33b075);}else this['ref']['timer']['textContent']=formatTime(_0x199cf3);this['_animationFrameId']=requestAnimationFrame(this['_updateTimer']);};['_startTimer']=()=>{this['$']['_startTime']=performance['now'](),this['$']['_elapsedTime']=0x0,this['_updateTimer']();};['_stopTimer']=()=>{this['_animationFrameId']&&cancelAnimationFrame(this['_animationFrameId']);};['_startTimeline']=()=>{const _0x36d2d3=this['ref']['video']['currentTime'],_0xf0a182=this['ref']['video']['duration'];this['ref']['line']['style']['transform']='scaleX('+_0x36d2d3/_0xf0a182+')',this['ref']['timer']['textContent']=formatTime(_0x36d2d3),this['_animationFrameId']=requestAnimationFrame(this['_startTimeline']);};['_stopTimeline']=()=>{this['_animationFrameId']&&cancelAnimationFrame(this['_animationFrameId']);};['_startRecording']=()=>{try{this['_chunks']=[],this['_options']={...this['cfg']['mediaRecorderOptions']};const {mimeType:_0x7ee3dc}=this['cfg']['mediaRecorderOptions']||{};_0x7ee3dc&&MediaRecorder['isTypeSupported'](_0x7ee3dc)?this['_options']['mimeType']=_0x7ee3dc:MediaRecorder['isTypeSupported'](DEFAULT_VIDEO_FORMAT)?this['_options']['mimeType']=DEFAULT_VIDEO_FORMAT:this['_options']['mimeType']='video/mp4',this['_stream']&&(this['_mediaRecorder']=new MediaRecorder(this['_stream'],this['_options']),this['_mediaRecorder']['start'](),this['_mediaRecorder']['addEventListener']('dataavailable',_0x123e82=>{this['_chunks']['push'](_0x123e82['data']);}),this['_startTimer'](),this['classList']['add']('uc-recording'),this['_setCameraState'](CameraSourceEvents['PLAY']));}catch(_0x29bf9e){console['error']('Failed\x20to\x20start\x20recording',_0x29bf9e);}};['_stopRecording']=()=>{this['_mediaRecorder']?.['addEventListener']('stop',()=>{this['_previewVideo'](),this['_stopTimer'](),this['_setCameraState'](CameraSourceEvents['STOP']);}),this['_mediaRecorder']?.['stop'](),this['classList']['remove']('uc-recording');};['_toggleRecording']=()=>{'recording'!==this['_mediaRecorder']?.['state']&&(!this['ref']['video']['paused']&&!this['ref']['video']['ended']&&this['ref']['video']['readyState']>0x2?this['ref']['video']['pause']():this['ref']['video']['paused']&&this['ref']['video']['play']());};['_toggleEnableAudio']=()=>{this['_stream']?.['getAudioTracks']()['forEach'](_0x22ddb8=>{_0x22ddb8['enabled']=!_0x22ddb8['enabled'],this['$']['toggleMicrophoneIcon']=_0x22ddb8['enabled']?'microphone':'microphone-mute',this['$']['audioSelectDisabled']=!_0x22ddb8['enabled'];});};['_previewVideo']=()=>{try{const _0x5c5065=new Blob(this['_chunks'],{'type':this['_mediaRecorder']?.['mimeType']}),_0x453aa5=URL['createObjectURL'](_0x5c5065);this['ref']['video']['muted']=!0x1,this['ref']['video']['volume']=0x1,this['$']['video']=null,this['ref']['video']['src']=_0x453aa5,this['ref']['video']['addEventListener']('play',()=>{this['_startTimeline'](),this['set$']({'currentTimelineIcon':'pause'});}),this['ref']['video']['addEventListener']('pause',()=>{this['set$']({'currentTimelineIcon':'play'}),this['_stopTimeline']();});}catch(_0x3aa227){console['error']('Failed\x20to\x20preview\x20video',_0x3aa227);}};['_retake']=()=>{this['_setCameraState'](CameraSourceEvents['RETAKE']),this['_activeTab']===CameraSourceTypes['VIDEO']&&(this['$']['video']=this['_stream'],this['ref']['video']['muted']=!0x0),this['ref']['video']['play']();};['_accept']=()=>{if(this['_setCameraState'](CameraSourceEvents['ACCEPT']),this['_activeTab']===CameraSourceTypes['PHOTO'])return void this['_canvas']?.['toBlob'](_0x285cb8=>{const _0x5e0a77=this['_createFile']('camera','jpeg',DEFAULT_PICTURE_FORMAT,_0x285cb8);this['_toSend'](_0x5e0a77);},DEFAULT_PICTURE_FORMAT);const _0x5244bb=new Blob(this['_chunks'],{'type':this['_mediaRecorder']?.['mimeType']}),_0x5bc01a=this['_guessExtensionByMime'](this['_mediaRecorder']?.['mimeType']),_0x5ceeac=this['_createFile']('video',_0x5bc01a,'video/'+_0x5bc01a,_0x5244bb);this['_toSend'](_0x5ceeac),this['_chunks']=[];};['_handlePhoto']=_0x20c5c3=>{_0x20c5c3===CameraSourceEvents['SHOT']&&this['set$']({'tabVideoHidden':!0x0,'cameraHidden':!0x0,'tabCameraHidden':!0x0,'cameraActionsHidden':!0x1,'cameraSelectHidden':!0x0}),_0x20c5c3!==CameraSourceEvents['RETAKE']&&_0x20c5c3!==CameraSourceEvents['ACCEPT']||this['set$']({'tabVideoHidden':!this['_cameraModes']['includes'](CameraSourceTypes['VIDEO']),'tabCameraHidden':!this['_cameraModes']['includes'](CameraSourceTypes['PHOTO']),'cameraHidden':!0x1,'cameraActionsHidden':!0x0,'cameraSelectHidden':this['_cameraDevices']['length']<=0x1});};['_handleVideo']=_0x5d0fc5=>{_0x5d0fc5===CameraSourceEvents['PLAY']&&this['set$']({'timerHidden':!0x1,'tabCameraHidden':!0x0,'cameraSelectHidden':!0x0,'audioSelectHidden':!0x0,'currentTimelineIcon':'pause','currentIcon':'square','mutableClassButton':'uc-shot-btn\x20uc-camera-action\x20uc-stop-record'}),_0x5d0fc5===CameraSourceEvents['STOP']&&this['set$']({'timerHidden':!0x1,'cameraHidden':!0x0,'audioToggleMicrophoneHidden':!0x0,'cameraActionsHidden':!0x1}),_0x5d0fc5!==CameraSourceEvents['RETAKE']&&_0x5d0fc5!==CameraSourceEvents['ACCEPT']||this['set$']({'timerHidden':!0x0,'tabVideoHidden':!this['_cameraModes']['includes'](CameraSourceTypes['VIDEO']),'tabCameraHidden':!this['_cameraModes']['includes'](CameraSourceTypes['PHOTO']),'cameraHidden':!0x1,'cameraActionsHidden':!0x0,'audioToggleMicrophoneHidden':!this['cfg']['enableAudioRecording'],'currentIcon':'video-camera-full','mutableClassButton':'uc-shot-btn\x20uc-camera-action','audioSelectHidden':!this['cfg']['enableAudioRecording']||this['_audioDevices']['length']<=0x1,'cameraSelectHidden':this['_cameraDevices']['length']<=0x1});};['_setCameraState']=_0x5aaeb7=>{this['_activeTab']!==CameraSourceTypes['PHOTO']||'shot'!==_0x5aaeb7&&'retake'!==_0x5aaeb7&&'accept'!==_0x5aaeb7||this['_handlePhoto'](_0x5aaeb7),this['_activeTab']!==CameraSourceTypes['VIDEO']||'play'!==_0x5aaeb7&&'stop'!==_0x5aaeb7&&'retake'!==_0x5aaeb7&&'accept'!==_0x5aaeb7&&'pause'!==_0x5aaeb7&&'resume'!==_0x5aaeb7||this['_handleVideo'](_0x5aaeb7);};['_shot'](){if(this['_setCameraState']('shot'),this['_canvas']=document['createElement']('canvas'),this['_ctx']=this['_canvas']['getContext']('2d'),!this['_ctx'])throw new Error('Failed\x20to\x20get\x20canvas\x20context');this['_canvas']['height']=this['ref']['video']['videoHeight'],this['_canvas']['width']=this['ref']['video']['videoWidth'],this['cfg']['cameraMirror']&&(this['_ctx']['translate'](this['_canvas']['width'],0x0),this['_ctx']['scale'](-0x1,0x1)),this['_ctx']['drawImage'](this['ref']['video'],0x0,0x0),this['ref']['video']['pause']();}['_handleActiveTab']=_0x4b0f82=>{this['ref']['switcher']['querySelectorAll']('button')['forEach'](_0x4c8b34=>{_0x4c8b34['classList']['toggle']('uc-active',_0x4c8b34['getAttribute']('data-id')===_0x4b0f82);}),_0x4b0f82===CameraSourceTypes['PHOTO']&&this['set$']({'currentIcon':'camera-full','audioSelectHidden':!0x0,'audioToggleMicrophoneHidden':!0x0}),_0x4b0f82===CameraSourceTypes['VIDEO']&&this['set$']({'currentTimelineIcon':'play','currentIcon':'video-camera-full','audioSelectHidden':!this['cfg']['enableAudioRecording']||this['_audioDevices']['length']<=0x1,'audioToggleMicrophoneHidden':!this['cfg']['enableAudioRecording']}),this['_activeTab']=_0x4b0f82;};['_createFile']=(_0x1eb8ea,_0x1c7fee,_0x3d82f3,_0xc226a4)=>{const _0x49ed90=Date['now']();return new File([_0xc226a4],_0x1eb8ea+'-'+_0x49ed90+'.'+_0x1c7fee,{'lastModified':_0x49ed90,'type':_0x3d82f3});};['_guessExtensionByMime'](_0x38e873){const _0x373cef={'mp4':'mp4','ogg':'ogg','webm':'webm','quicktime':'mov','x-matroska':'mkv'};if(''===_0x38e873)return'webm';if(_0x38e873&&(_0x38e873=_0x38e873['split']('/'),'video'===_0x38e873?.[0x0])){_0x38e873=_0x38e873['slice'](0x1)['join']('/');const _0x3b4ba0=_0x38e873?.['split'](';')[0x0];if(_0x373cef[_0x3b4ba0])return _0x373cef[_0x3b4ba0];}return'avi';}['_toSend']=_0x5daf8a=>{this['api']['addFileFromObject'](_0x5daf8a,{'source':UploadSource['CAMERA']}),this['set$']({'*currentActivity':ActivityBlock['activities']['UPLOAD_LIST']}),this['modalManager']['open'](ActivityBlock['activities']['UPLOAD_LIST']);};get['_cameraModes'](){return stringToArray(this['cfg']['cameraModes']);}['_setPermissionsState']=debounce(e=>{this['classList']['toggle']('uc-initialized','granted'===e);const i=this['_activeTab']===CameraSourceTypes['VIDEO']&&this['cfg']['enableAudioRecording'],n=this['_activeTab']===CameraSourceTypes['PHOTO']?'camera-full':'video-camera-full';'granted'===e?this['set$']({'videoHidden':!0x1,'cameraHidden':!0x1,'tabCameraHidden':!this['_cameraModes']['includes'](CameraSourceTypes['PHOTO']),'tabVideoHidden':!this['_cameraModes']['includes'](CameraSourceTypes['VIDEO']),'messageHidden':!0x0,'timerHidden':!0x0,'currentIcon':n,'audioToggleMicrophoneHidden':!i,'audioSelectHidden':!i}):'prompt'===e?(this['$']['l10nMessage']='camera-permissions-prompt',this['set$']({'videoHidden':!0x0,'cameraHidden':!0x0,'tabCameraHidden':!0x0,'messageHidden':!0x1}),this['_stopCapture']()):(this['$']['l10nMessage']='camera-permissions-denied',this['set$']({'videoHidden':!0x0,'messageHidden':!0x1,'tabCameraHidden':!this['_cameraModes']['includes'](CameraSourceTypes['PHOTO']),'tabVideoHidden':!this['_cameraModes']['includes'](CameraSourceTypes['VIDEO']),'cameraActionsHidden':!0x0,'mutableClassButton':'uc-shot-btn\x20uc-camera-action'}),this['_stopCapture']());},0x12c);['_makeStreamInactive']=()=>{if(!this['_stream'])return!0x1;const _0x328a7a=this['_stream']?.['getAudioTracks'](),_0x456557=this['_stream']?.['getVideoTracks']();_0x328a7a['forEach'](_0x534f79=>_0x534f79['stop']()),_0x456557['forEach'](_0x4d9b54=>_0x4d9b54['stop']());};['_stopCapture']=()=>{this['_capturing']&&(this['ref']['video']['volume']=0x0,this['$']['video']?.['getTracks']()[0x0]['stop'](),this['$']['video']=null,this['_makeStreamInactive'](),this['_stopTimer'](),this['_capturing']=!0x1);};['_capture']=async()=>{const _0x422a54={'video':DEFAULT_VIDEO_CONFIG,'audio':!!this['cfg']['enableAudioRecording']&&{}};this['_selectedCameraId']&&(_0x422a54['video']={'deviceId':{'exact':this['_selectedCameraId']}}),this['_selectedAudioId']&&this['cfg']['enableAudioRecording']&&(_0x422a54['audio']={'deviceId':{'exact':this['_selectedAudioId']}}),this['ref']['video']['volume']=0x0;try{this['_setPermissionsState']('prompt'),this['_stream']=await navigator['mediaDevices']['getUserMedia'](_0x422a54),this['_stream']['addEventListener']('inactive',()=>{this['_setPermissionsState']('denied');}),this['$']['video']=this['_stream'],this['_capturing']=!0x0,this['_setPermissionsState']('granted');}catch(_0x41707e){this['_setPermissionsState']('denied'),console['log']('Failed\x20to\x20capture\x20camera',_0x41707e);}};['_handlePermissionsChange']=()=>{this['_capture']();};['_permissionAccess']=async()=>{try{for(const _0x57a1d8 of DEFAULT_PERMISSIONS)this[_0x57a1d8+'Response']=await navigator['permissions']['query']({'name':_0x57a1d8}),this[_0x57a1d8+'Response']['addEventListener']('change',this['_handlePermissionsChange']);}catch(_0x326605){console['log']('Failed\x20to\x20use\x20permissions\x20API.\x20Fallback\x20to\x20manual\x20request\x20mode.',_0x326605),this['_capture']();}};['_getPermission']=()=>{};['_requestDeviceAccess']=async()=>{try{await navigator['mediaDevices']['getUserMedia']({'video':!0x0,'audio':this['cfg']['enableAudioRecording']}),await this['_getDevices'](),navigator['mediaDevices']['addEventListener']('devicechange',this['_getDevices']);}catch(_0x3cf3bd){console['log']('Failed\x20to\x20get\x20user\x20media',_0x3cf3bd);}};['_getDevices']=async()=>{try{const _0x5867c5=await navigator['mediaDevices']['enumerateDevices']();this['_cameraDevices']=_0x5867c5['filter'](_0x58530f=>'videoinput'===_0x58530f['kind'])['map']((_0xd3ae6a,_0x361d0d)=>({'text':_0xd3ae6a['label']['trim']()||this['l10n']('caption-camera')+'\x20'+(_0x361d0d+0x1),'value':_0xd3ae6a['deviceId']})),this['_audioDevices']=this['cfg']['enableAudioRecording']&&_0x5867c5['filter'](_0x3357fc=>'audioinput'===_0x3357fc['kind'])['map'](_0x197b06=>({'text':_0x197b06['label']['trim'](),'value':_0x197b06['deviceId']})),this['_cameraDevices']['length']>0x1&&this['set$']({'cameraSelectOptions':this['_cameraDevices'],'cameraSelectHidden':!0x1}),this['_selectedCameraId']=this['_cameraDevices'][0x0]?.['value'],this['_audioDevices']['length']>0x1&&this['set$']({'audioSelectOptions':this['_audioDevices'],'audioSelectHidden':!0x1}),this['_selectedAudioId']=this['_audioDevices'][0x0]?.['value'];}catch(_0x57499c){console['log']('Failed\x20to\x20get\x20devices',_0x57499c);}};['_onActivate']=async()=>{await this['_permissionAccess'](),await this['_requestDeviceAccess'](),await this['_capture'](),this['_handleCameraModes'](this['_cameraModes']);};['_onDeactivate']=async()=>{this['_unsubPermissions']&&this['_unsubPermissions'](),(!!window['chrome']||this['_setPermissionsState']('denied'),this['_stopCapture']());};['_handleCameraModes']=_0x347ec4=>{this['$']['tabVideoHidden']=!_0x347ec4['includes'](CameraSourceTypes['VIDEO']),this['$']['tabCameraHidden']=!_0x347ec4['includes'](CameraSourceTypes['PHOTO']);const _0x293683=_0x347ec4[0x0];this['_activeTab']&&_0x347ec4['includes'](this['_activeTab'])||this['_handleActiveTab'](_0x293683);};['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType'],{'onActivate':this['_onActivate'],'onDeactivate':this['_onDeactivate']}),this['subConfigValue']('cameraMirror',_0x40401a=>{this['$']['videoTransformCss']=_0x40401a?'scaleX(-1)':null;}),this['subConfigValue']('enableAudioRecording',_0x2f268f=>{this['$']['audioToggleMicrophoneHidden']=!_0x2f268f,this['$']['audioSelectDisabled']=!_0x2f268f;}),this['subConfigValue']('cameraModes',_0x3cdb99=>{if(!this['isActivityActive'])return;const _0x2b8784=deserializeCsv(_0x3cdb99);this['_handleCameraModes'](_0x2b8784);});}['_destroy'](){for(const _0x205bfe of DEFAULT_PERMISSIONS)this[_0x205bfe+'Response']?.['removeEventListener']('change',this['_handlePermissionsChange']);navigator['mediaDevices']?.['removeEventListener']('devicechange',this['_getDevices']);}async['destroyCallback'](){super['destroyCallback'](),this['_destroy']();}}CameraSource['template']='\x0a\x20\x20<uc-activity-header>\x0a\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-mini-btn\x22\x20set=\x22onclick:\x20*historyBack\x22\x20l10n=\x22@title:back\x22>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22back\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<div\x20set=\x22@hidden:\x20!cameraSelectHidden\x22>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22camera\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20<span\x20l10n=\x22caption-camera\x22></span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<uc-select\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-camera-select\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22$.options:\x20cameraSelectOptions;\x20@hidden:\x20cameraSelectHidden;\x20onchange:\x20onCameraSelectChange\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20</uc-select>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x20uc-close-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20*closeModal\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22close\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</uc-activity-header>\x0a\x20\x20<div\x20class=\x22uc-content\x22>\x0a\x20\x20\x20\x20<video\x0a\x20\x20\x20\x20\x20\x20muted\x0a\x20\x20\x20\x20\x20\x20autoplay\x0a\x20\x20\x20\x20\x20\x20playsinline\x0a\x20\x20\x20\x20\x20\x20set=\x22srcObject:\x20video;\x20style.transform:\x20videoTransformCss;\x20@hidden:\x20videoHidden\x22\x0a\x20\x20\x20\x20\x20\x20ref=\x22video\x22\x0a\x20\x20\x20\x20></video>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-message-box\x22\x20set=\x22@hidden:\x20messageHidden\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20l10n=\x22l10nMessage\x22></span>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onRequestPermissions;\x20@hidden:\x20requestBtnHidden\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20l10n=\x22camera-permissions-request\x22\x0a\x20\x20\x20\x20\x20\x20></button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x0a\x20\x20<div\x20class=\x22uc-controls\x22>\x0a\x20\x20\x20\x20<div\x20ref=\x22switcher\x22\x20class=\x22uc-switcher\x22\x20set=\x22@hidden:!timerHidden\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20data-id=\x22photo\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-switch\x20uc-mini-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onClickTab;\x20\x20@hidden:\x20tabCameraHidden\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22camera\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20data-id=\x22video\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-switch\x20uc-mini-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onClickTab;\x20@hidden:\x20tabVideoHidden\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22video-camera\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20<button\x20class=\x22uc-secondary-btn\x20uc-recording-timer\x22\x20set=\x22@hidden:timerHidden;\x20onclick:\x20onToggleRecording\x22>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20set=\x22@name:\x20currentTimelineIcon\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20<span\x20ref=\x22timer\x22>\x2000:00\x20</span>\x0a\x20\x20\x20\x20\x20\x20<span\x20ref=\x22line\x22\x20class=\x22uc-line\x22></span>\x0a\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20<div\x20class=\x22uc-camera-actions\x20uc-camera-action\x22\x20set=\x22@hidden:\x20cameraActionsHidden\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-secondary-btn\x22\x20set=\x22onclick:\x20onRetake\x22>Retake</button>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-primary-btn\x22\x20set=\x22onclick:\x20onAccept\x22\x20data-testid=\x22accept\x22>Accept</button>\x0a\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-shot-btn\x20uc-camera-action\x22\x0a\x20\x20\x20\x20\x20\x20data-testid=\x22shot\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onStartCamera;\x20@class:\x20mutableClassButton;\x20@hidden:\x20cameraHidden;\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20set=\x22@name:\x20currentIcon\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20<div\x20class=\x22uc-select\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20class=\x22uc-mini-btn\x20uc-btn-microphone\x22\x20set=\x22onclick:\x20onToggleAudio;\x20@hidden:\x20audioToggleMicrophoneHidden;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20set=\x22@name:toggleMicrophoneIcon\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20\x20\x20<uc-select\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-audio-select\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22$.options:\x20audioSelectOptions;\x20onchange:\x20onAudioSelectChange;\x20@hidden:\x20audioSelectHidden;\x20@disabled:\x20audioSelectDisabled\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20</uc-select>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a';class UploadCtxProviderClass extends UploaderBlock{static ['styleAttrs']=['uc-wgt-common'];['requireCtxName']=!0x0;['initCallback'](){super['initCallback'](),this['$']['*eventEmitter']['bindTarget'](this);}['destroyCallback'](){super['destroyCallback'](),this['$']['*eventEmitter']['unbindTarget'](this);}}UploadCtxProviderClass['EventType']=EventType;const UploadCtxProvider=UploadCtxProviderClass;class ProgressBarCommon extends UploaderBlock{['init$']={...this['init$'],'visible':!0x1,'value':0x0,'*commonProgress':0x0};['initCallback'](){super['initCallback'](),this['_unobserveCollection']=this['uploadCollection']['observeProperties'](()=>{let _0x433aaf=this['uploadCollection']['items']()['some'](_0x3ec47d=>this['uploadCollection']['read'](_0x3ec47d)['getValue']('isUploading'));this['$']['visible']=_0x433aaf;}),this['sub']('visible',_0x1e542c=>{_0x1e542c?this['setAttribute']('active',''):this['removeAttribute']('active');}),this['sub']('*commonProgress',_0x76ebb2=>{this['$']['value']=_0x76ebb2;});}['destroyCallback'](){super['destroyCallback'](),this['_unobserveCollection']?.();}}ProgressBarCommon['template']='\x20<uc-progress-bar\x20set=\x22visible:\x20visible;\x20value:\x20value\x22></uc-progress-bar>\x20';class ProgressBar extends Block{['_value']=0x0;['_prevValue']=0x0;['_visible']=!0x0;constructor(){super(),this['init$']={...this['init$'],'width':0x0,'opacity':0x0};}['initCallback'](){super['initCallback'](),(this['ref']['fakeProgressLine']['addEventListener']('animationiteration',()=>{const _0x362022=this['ref']['fakeProgressLine'];this['_visible']?this['_value']>0x0&&_0x362022['classList']['add']('uc-fake-progress--hidden'):_0x362022['classList']['add']('uc-fake-progress--hidden');}),this['defineAccessor']('value',_0x2928fa=>{null!=_0x2928fa&&(this['_prevValue']=this['_value'],this['_value']=_0x2928fa,this['_visible']&&this['style']['setProperty']('--l-progress-value',this['_value']['toString']()));}),this['defineAccessor']('visible',_0x1e9c01=>{this['_visible']=_0x1e9c01,this['classList']['toggle']('uc-progress-bar--hidden',!_0x1e9c01);}));}}ProgressBar['template']='\x0a\x20\x20<div\x20ref=\x22fakeProgressLine\x22\x20class=\x22uc-fake-progress\x22></div>\x0a\x20\x20<div\x20ref=\x22realProgressLine\x22\x20class=\x22uc-progress\x22></div>\x0a';const TRANSPARENT_PIXEL_SRC='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=';function normalize(..._0xd2c3db){return _0xd2c3db['reduce']((_0x14c10a,_0x52144b)=>{if('string'==typeof _0x52144b)return _0x14c10a[_0x52144b]=!0x0,_0x14c10a;for(let _0x37292 of Object['keys'](_0x52144b))_0x14c10a[_0x37292]=_0x52144b[_0x37292];return _0x14c10a;},{});}function classNames(..._0x2adf55){let _0x791f61=normalize(..._0x2adf55);return Object['keys'](_0x791f61)['reduce']((_0x5d45f1,_0x213d10)=>(_0x791f61[_0x213d10]&&_0x5d45f1['push'](_0x213d10),_0x5d45f1),[])['join']('\x20');}function applyClassNames(_0x5884c3,..._0xc8fd7b){let _0x337b5e=normalize(..._0xc8fd7b);for(let _0x5803fa of Object['keys'](_0x337b5e))_0x5884c3['classList']['toggle'](_0x5803fa,_0x337b5e[_0x5803fa]);}const parseTabs=_0x132176=>{if(!_0x132176)return ALL_TABS;const _0xaf58ae=deserializeCsv(_0x132176)['filter'](_0x3499e5=>ALL_TABS['includes'](_0x3499e5));return 0x0===_0xaf58ae['length']?ALL_TABS:_0xaf58ae;};function initState(_0x303f45){return{'*originalUrl':null,'*faderEl':null,'*cropperEl':null,'*imgEl':null,'*imgContainerEl':null,'*networkProblems':!0x1,'*imageSize':null,'*editorTransformations':{},'*cropPresetList':[],'*tabList':ALL_TABS,'*tabId':TabId['CROP'],'entry':null,'extension':null,'editorMode':!0x1,'modalCaption':'','isImage':!0x1,'msg':'','src':TRANSPARENT_PIXEL_SRC,'fileType':'','showLoader':!0x1,'uuid':null,'cdnUrl':null,'cropPreset':'','tabs':serializeCsv(ALL_TABS),'presence.networkProblems':!0x1,'presence.modalCaption':!0x0,'presence.editorToolbar':!0x1,'presence.viewerToolbar':!0x0,'*on.retryNetwork':()=>{let _0x47d8eb=_0x303f45['querySelectorAll']('img');for(let _0x2a4694 of _0x47d8eb){let _0x5813eb=_0x2a4694['src'];_0x2a4694['src']=TRANSPARENT_PIXEL_SRC,_0x2a4694['src']=_0x5813eb;}_0x303f45['$']['*networkProblems']=!0x1;},'*on.apply':_0x23581a=>{if(!_0x23581a)return;let _0x4680d0=_0x303f45['$']['*originalUrl'],_0x4224a8=createCdnUrlModifiers(transformationsToOperations(_0x23581a),'preview'),_0x2b0440={'originalUrl':_0x4680d0,'cdnUrlModifiers':_0x4224a8,'cdnUrl':createCdnUrl(_0x4680d0,_0x4224a8),'transformations':_0x23581a};_0x303f45['dispatchEvent'](new CustomEvent('apply',{'detail':_0x2b0440,'bubbles':!0x0,'composed':!0x0})),_0x303f45['remove']();},'*on.cancel':()=>{_0x303f45['remove'](),_0x303f45['dispatchEvent'](new CustomEvent('cancel',{'bubbles':!0x0,'composed':!0x0}));}};}var svgIconsSprite='<svg\x20width=\x270\x27\x20height=\x270\x27\x20style=\x27position:absolute\x27><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-brightness\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M15\x2010a5\x205\x200\x200\x201-5\x205m5-5a5\x205\x200\x200\x200-5-5m5\x205h-5m0\x205a5\x205\x200\x200\x201\x200-10m0\x2010V5m0\x2015v-3M2.93\x202.929\x205.05\x205.05M0\x2010h3m-.07\x207.071\x202.12-2.121M10\x200v3m7.07\x2014.071-2.12-2.121M20\x2010h-3m.07-7.071L14.95\x205.05m-.626\x202.45H10m4.324\x205H10\x27/></symbol><symbol\x20fill=\x27currentColor\x27\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-closeMax\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill-rule=\x27evenodd\x27\x20d=\x27M8.232\x2010\x203.585\x205.353l1.768-1.768L10\x208.232l4.648-4.647\x201.767\x201.768L11.768\x2010l4.647\x204.648-1.767\x201.767L10\x2011.768l-4.647\x204.647-1.768-1.767L8.232\x2010Z\x27\x20clip-rule=\x27evenodd\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-contrast\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M2\x2010a8\x208\x200\x201\x200\x2016\x200\x208\x208\x200\x201\x200-16\x200m8-8v16m8-8h-8m7.598\x202.5H10m6.24\x202.5H10m7.6-7.5H10M16.242\x205H10\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-crop\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M20\x2014H7.005C6.45\x2014\x206\x2013.55\x206\x2012.995V0M0\x206h13.067c.515\x200\x20.933.418.933.933V20M14.5.4\x2013\x202l1.5\x201.6M13\x202h2a3\x203\x200\x200\x201\x203\x203v2M5.5\x2019.6\x207\x2018l-1.5-1.6M7\x2018H5a3\x203\x200\x200\x201-3-3v-2\x27/></symbol><symbol\x20fill=\x27currentColor\x27\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-done\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill-rule=\x27evenodd\x27\x20d=\x27m18.057\x206.333-9.365\x209.125a1.25\x201.25\x200\x200\x201-1.768-.023L1.92\x2010.296l1.791-1.744\x204.132\x204.243\x208.47-8.253\x201.744\x201.79Z\x27\x20clip-rule=\x27evenodd\x27/></symbol><symbol\x20fill=\x27currentColor\x27\x20viewBox=\x270\x200\x2025\x2024\x27\x20id=\x27uc-icon-edit-file\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill-rule=\x27evenodd\x27\x20d=\x27M18.558\x202.804a.78.78\x200\x200\x200-.557.235l-.008.007-2.472\x202.46\x203.847\x203.848\x202.46-2.473.004-.003a.78.78\x200\x200\x200\x200-1.108l-.004-.003-2.712-2.728a.78.78\x200\x200\x200-.558-.235Zm-.248\x207.613-3.852-3.852-8.93\x208.887-1.516\x205.41\x205.41-1.515\x208.888-8.93Zm-.636-8.934a2.28\x202.28\x200\x200\x201\x202.512.505l2.702\x202.717.002.002a2.278\x202.278\x200\x200\x201\x200\x203.234l-.002.002-12.541\x2012.602a.75.75\x200\x200\x201-.33.193l-6.884\x201.928a.75.75\x200\x200\x201-.925-.924l1.928-6.885a.75.75\x200\x200\x201\x20.193-.33l12.603-12.54a2.28\x202.28\x200\x200\x201\x20.742-.504Z\x27\x20clip-rule=\x27evenodd\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-enhance\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M19\x2013h-2m0\x200a4\x204\x200\x200\x201-4-4m4\x204a4\x204\x200\x200\x200-4\x204m0-8V7m0\x202a4\x204\x200\x200\x201-4\x204m-2\x200h2m0\x200a4\x204\x200\x200\x201\x204\x204m0\x200v2M8\x208.5H6.5m0\x200a2\x202\x200\x200\x201-2-2m2\x202a2\x202\x200\x200\x200-2\x202m0-4V5m0\x201.5a2\x202\x200\x200\x201-2\x202M1\x208.5h1.5m0\x200a2\x202\x200\x200\x201\x202\x202m0\x200V12M12\x203h-1m0\x200a1\x201\x200\x200\x201-1-1m1\x201a1\x201\x200\x200\x200-1\x201m0-2V1m0\x201a1\x201\x200\x200\x201-1\x201M8\x203h1m0\x200a1\x201\x200\x200\x201\x201\x201m0\x200v1\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-exposure\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M10\x2020v-3M2.93\x202.929\x205.05\x205.05M0\x2010h3m-.07\x207.071\x202.12-2.121M10\x200v3m7.07\x2014.071-2.12-2.121M20\x2010h-3m.07-7.071L14.95\x205.05M5\x2010a5\x205\x200\x201\x200\x2010\x200\x205\x205\x200\x201\x200-10\x200\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-filters\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M4.5\x206.5a5.5\x205.5\x200\x201\x200\x2011\x200\x205.5\x205.5\x200\x201\x200-11\x200m-3.5\x206a5.5\x205.5\x200\x201\x200\x2011\x200\x205.5\x205.5\x200\x201\x200-11\x200m7\x200a5.5\x205.5\x200\x201\x200\x2011\x200\x205.5\x205.5\x200\x201\x200-11\x200\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-flip\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M19.6\x205\x2018\x203.5\x2016.4\x205m3.2\x2010L18\x2016.5\x2016.4\x2015M18\x203.523v12.954M3.3\x208.5h10.654c.301\x200\x20.415-.395.159-.554L3.459\x201.286A.3.3\x200\x200\x200\x203\x201.542V8.2a.3.3\x200\x200\x200\x20.3.3zm0\x203h10.654c.301\x200\x20.415.395.159.554l-10.654\x206.66A.3.3\x200\x200\x201\x203\x2018.458v-6.66a.3.3\x200\x200\x201\x20.3-.3z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-gamma\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M17\x203C9\x206\x202.5\x2011.5\x202.5\x2017.5m0\x200h1m-1\x200v-1m14\x201h1m-3\x200h1m-3\x200h1m-3\x200h1m-3\x200h1m-3\x200h1m-3\x200h1m-3-14v-1m0\x203v-1m0\x203v-1m0\x203v-1m0\x203v-1m0\x203v-1m0\x203v-1\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-mirror\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M5\x20.4\x203.5\x202\x205\x203.6M15\x20.4\x2016.5\x202\x2015\x203.6M3.52\x202h12.957M8.5\x2016.7V6.046c0-.301-.394-.415-.554-.159L1.287\x2016.541a.3.3\x200\x200\x200\x20.255.459H8.2a.3.3\x200\x200\x200\x20.3-.3zm3\x200V6.046c0-.301.395-.415.555-.159l6.659\x2010.654a.3.3\x200\x200\x201-.255.459H11.8a.3.3\x200\x200\x201-.3-.3z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2040\x2040\x27\x20id=\x27uc-icon-original\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.5\x27\x20d=\x27M0\x2040\x2040\x200\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-rotate\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M13.5.4\x2012\x202l1.5\x201.6M12.023\x202H14.4A3.6\x203.6\x200\x200\x201\x2018\x205.6V8M4\x2017h9a1\x201\x200\x200\x200\x201-1V7a1\x201\x200\x200\x200-1-1H4a1\x201\x200\x200\x200-1\x201v9a1\x201\x200\x200\x200\x201\x201z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-sad\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M2\x2017c4.418-4\x2011.582-4\x2016\x200M16.5\x205a1\x201\x200\x201\x201-2\x200\x201\x201\x200\x200\x201\x202\x200zm-11\x200a1\x201\x200\x201\x201-2\x200\x201\x201\x200\x200\x201\x202\x200z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-saturation\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><defs><linearGradient\x20id=\x27puc-icon-id__a\x27\x20x1=\x2710.001\x27\x20y1=\x271\x27\x20x2=\x2710.001\x27\x20y2=\x2719\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient></defs><circle\x20cx=\x2710.001\x27\x20cy=\x2710\x27\x20r=\x279\x27\x20transform=\x27rotate(90\x2010\x2010)\x27\x20fill=\x27url(#puc-icon-id__a)\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-slider\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M0\x2010h11m0\x200a2\x202\x200\x201\x200\x204\x200m-4\x200a2\x202\x200\x201\x201\x204\x200m0\x200h5\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-tuning\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M8\x2010h11M1\x2010h4M1\x204.5h11m3\x200h4m-18\x2011h11m3\x200h4m-7-11a1.5\x201.5\x200\x201\x200\x203\x200\x201.5\x201.5\x200\x201\x200-3\x200M5\x2010a1.5\x201.5\x200\x201\x200\x203\x200\x201.5\x201.5\x200\x201\x200-3\x200m7\x205.5a1.5\x201.5\x200\x201\x200\x203\x200\x201.5\x201.5\x200\x201\x200-3\x200\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-vibrance\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20d=\x27M2.125\x205.64A8.96\x208.96\x200\x200\x200\x201.001\x2010a8.96\x208.96\x200\x200\x200\x201.124\x204.36V5.64z\x27\x20fill=\x27url(#suc-icon-id__a)\x27/><path\x20d=\x27M2.875\x2015.499V4.502a9.053\x209.053\x200\x200\x201\x201.75-1.72v14.437a9.05\x209.05\x200\x200\x201-1.75-1.72z\x27\x20fill=\x27url(#suc-icon-id__b)\x27/><path\x20d=\x27M5.375\x2017.722c.548.33\x201.134.601\x201.75.809V1.469a8.956\x208.956\x200\x200\x200-1.75.81v15.443z\x27\x20fill=\x27url(#suc-icon-id__c)\x27/><path\x20d=\x27M7.875\x201.253v17.495c.564.136\x201.15.22\x201.75.244V1.008a9\x209\x200\x200\x200-1.75.245z\x27\x20fill=\x27url(#suc-icon-id__d)\x27/><path\x20d=\x27M10.375\x201.008v17.984a9\x209\x200\x200\x200\x201.75-.244V1.252a9\x209\x200\x200\x200-1.75-.244z\x27\x20fill=\x27url(#suc-icon-id__e)\x27/><path\x20d=\x27M12.875\x201.469V18.53a8.957\x208.957\x200\x200\x200\x201.75-.808V2.277a8.957\x208.957\x200\x200\x200-1.75-.808z\x27\x20fill=\x27url(#suc-icon-id__f)\x27/><path\x20d=\x27M15.375\x202.78v14.44a9.053\x209.053\x200\x200\x200\x201.75-1.72v-11a9.054\x209.054\x200\x200\x200-1.75-1.72z\x27\x20fill=\x27url(#suc-icon-id__g)\x27/><path\x20d=\x27M17.875\x205.638v8.724A8.959\x208.959\x200\x200\x200\x2019.001\x2010a8.96\x208.96\x200\x200\x200-1.126-4.362z\x27\x20fill=\x27url(#suc-icon-id__h)\x27/><defs><linearGradient\x20id=\x27suc-icon-id__a\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27suc-icon-id__b\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27suc-icon-id__c\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27suc-icon-id__d\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27suc-icon-id__e\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27suc-icon-id__f\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27suc-icon-id__g\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27suc-icon-id__h\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient></defs></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-warmth\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20d=\x27m7.5\x2013.05.429.42.171-.175v-.244h-.6zm5\x200h-.6v.245l.172.175.428-.42zM8.1\x203.5c0-1.05.85-1.9\x201.9-1.9V.4a3.1\x203.1\x200\x200\x200-3.1\x203.1h1.2zm0\x209.55V3.5H6.9v9.55h1.2zm-1\x202.45c0-.79.315-1.506.829-2.03l-.858-.84A4.088\x204.088\x200\x200\x200\x205.9\x2015.5h1.2zm2.9\x202.9a2.9\x202.9\x200\x200\x201-2.9-2.9H5.9a4.1\x204.1\x200\x200\x200\x204.1\x204.1v-1.2zm2.9-2.9a2.9\x202.9\x200\x200\x201-2.9\x202.9v1.2a4.1\x204.1\x200\x200\x200\x204.1-4.1h-1.2zm-.829-2.03c.514.524.829\x201.24.829\x202.03h1.2c0-1.117-.447-2.13-1.171-2.87l-.858.84zM11.9\x203.5v9.55h1.2V3.5h-1.2zM10\x201.6c1.05\x200\x201.9.85\x201.9\x201.9h1.2A3.1\x203.1\x200\x200\x200\x2010\x20.4v1.2z\x27\x20fill=\x27currentColor\x27/><path\x20d=\x27M10\x2014V8\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20stroke-linecap=\x27round\x27/><path\x20d=\x27M14\x203h3m-3\x203h3m-3\x203h3m-8\x206.5a1\x201\x200\x201\x200\x202\x200\x201\x201\x200\x201\x200-2\x200\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27/></symbol></svg>';const TEMPLATE='\x0a\x20\x20'+svgIconsSprite+'\x0a\x20\x20<div\x20class=\x22uc-wrapper\x20uc-wrapper_desktop\x22>\x0a\x20\x20\x20\x20<uc-presence-toggle\x20class=\x22uc-network_problems_splash\x22\x20set=\x22visible:\x20presence.networkProblems;\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-network_problems_content\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-network_problems_icon\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22sad\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-network_problems_text\x22>Network\x20error</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-network_problems_footer\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-btn-ui\x20theme=\x22primary\x22\x20text=\x22Retry\x22\x20set=\x22onclick:\x20*on.retryNetwork\x22></uc-btn-ui>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-viewport\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-file_type_outer\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-file_type\x22>{{fileType}}</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-image_container\x22\x20ref=\x22img-container-el\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22'+TRANSPARENT_PIXEL_SRC+'\x22\x20class=\x22uc-image\x20uc-image_visible_from_editor\x22\x20ref=\x22img-el\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-editor-image-cropper\x20ref=\x22cropper-el\x22></uc-editor-image-cropper>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-editor-image-fader\x20ref=\x22fader-el\x22></uc-editor-image-fader>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-info_pan\x22>{{msg}}</div>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-toolbar\x22>\x0a\x20\x20\x20\x20\x20\x20<uc-line-loader-ui\x20set=\x22active:\x20showLoader\x22></uc-line-loader-ui>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-toolbar_content\x20uc-toolbar_content__editor\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-editor-toolbar></uc-editor-toolbar>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a';class CloudImageEditorBlock extends Block{['ctxOwner']=!0x0;static ['styleAttrs']=['uc-cloud-image-editor'];constructor(){super(),this['init$']={...this['init$'],...initState(this)};}['_debouncedShowLoader']=debounce(this['_showLoader']['bind'](this),0x12c);['_showLoader'](_0x199af9){this['$']['showLoader']=_0x199af9;}['_waitForSize'](){return new Promise((_0x775a10,_0x39ef49)=>{const _0x139866=setTimeout(()=>{_0x39ef49(new Error('[cloud-image-editor]\x20timeout\x20waiting\x20for\x20non-zero\x20container\x20size'));},0xbb8),_0x5f0a2c=new ResizeObserver(([_0x1931f7])=>{_0x1931f7['contentRect']['width']>0x0&&_0x1931f7['contentRect']['height']>0x0&&(_0x775a10(),clearTimeout(_0x139866),_0x5f0a2c['disconnect']());});_0x5f0a2c['observe'](this);});}['initCallback'](){super['initCallback'](),this['$']['*faderEl']=this['ref']['fader-el'],this['$']['*cropperEl']=this['ref']['cropper-el'],this['$']['*imgContainerEl']=this['ref']['img-container-el'],this['initEditor']();}async['updateImage'](){if(this['isConnected']){if(await this['_waitForSize'](),this['$']['cdnUrl']){const _0x50ccc4=extractUuid(this['$']['cdnUrl']),_0x379466=createOriginalUrl(this['$']['cdnUrl'],_0x50ccc4);if(_0x379466===this['$']['*originalUrl'])return;this['$']['*originalUrl']=_0x379466;const _0x3e44a0=operationsToTransformations(extractOperations(this['$']['cdnUrl']));this['$']['*editorTransformations']=_0x3e44a0;}else{if(!this['$']['uuid'])throw new Error('No\x20UUID\x20nor\x20CDN\x20URL\x20provided');{const _0x5276a6=createOriginalUrl(this['cfg']['cdnCname'],this['$']['uuid']);if(_0x5276a6===this['$']['*originalUrl'])return;this['$']['*originalUrl']=_0x5276a6,this['$']['*editorTransformations']={};}}this['$']['*tabId']===TabId['CROP']?this['$']['*cropperEl']['deactivate']({'reset':!0x0}):this['$']['*faderEl']['deactivate']();try{const _0x400f90=await this['proxyUrl'](createCdnUrl(this['$']['*originalUrl'],createCdnUrlModifiers('json'))),_0x263abd=await fetch(_0x400f90)['then'](_0x469681=>_0x469681['json']()),{width:_0x14c804,height:_0x4b2af4}=_0x263abd;this['$']['*imageSize']={'width':_0x14c804,'height':_0x4b2af4},this['$']['*tabId']===TabId['CROP']?this['$']['*cropperEl']['activate'](this['$']['*imageSize']):this['$']['*faderEl']['activate']({'url':this['$']['*originalUrl']});}catch(_0x156624){_0x156624&&console['error']('Failed\x20to\x20load\x20image\x20info',_0x156624);}}}async['initEditor'](){try{await this['_waitForSize']();}catch(_0x3702d9){return void(this['isConnected']&&console['error'](_0x3702d9['message']));}this['ref']['img-el']['addEventListener']('load',()=>{this['_imgLoading']=!0x1,this['_debouncedShowLoader'](!0x1),this['$']['src']!==TRANSPARENT_PIXEL_SRC&&(this['$']['*networkProblems']=!0x1);}),this['ref']['img-el']['addEventListener']('error',()=>{this['_imgLoading']=!0x1,this['_debouncedShowLoader'](!0x1),this['$']['*networkProblems']=!0x0;}),this['sub']('src',_0x1035a6=>{let _0x42ac24=this['ref']['img-el'];_0x42ac24['src']!==_0x1035a6&&(this['_imgLoading']=!0x0,_0x42ac24['src']=_0x1035a6||TRANSPARENT_PIXEL_SRC);}),this['sub']('cropPreset',_0x177513=>{this['$']['*cropPresetList']=parseCropPreset(_0x177513);}),this['sub']('tabs',_0x313805=>{this['$']['*tabList']=parseTabs(_0x313805);}),this['sub']('*tabId',_0x8ca9a=>{this['ref']['img-el']['className']=classNames('uc-image',{'uc-image_hidden_to_cropper':_0x8ca9a===TabId['CROP'],'uc-image_hidden_effects':_0x8ca9a!==TabId['CROP']});}),this['classList']['add']('uc-editor_ON'),this['sub']('*networkProblems',_0x2bd6b4=>{this['$']['presence.networkProblems']=_0x2bd6b4,this['$']['presence.modalCaption']=!_0x2bd6b4;}),this['sub']('*editorTransformations',_0x31820f=>{if(0x0===Object['keys'](_0x31820f)['length'])return;let _0x4629f5=this['$']['*originalUrl'],_0x1b31c4=createCdnUrlModifiers(transformationsToOperations(_0x31820f),'preview'),_0x20447b={'originalUrl':_0x4629f5,'cdnUrlModifiers':_0x1b31c4,'cdnUrl':createCdnUrl(_0x4629f5,_0x1b31c4),'transformations':_0x31820f};this['dispatchEvent'](new CustomEvent('change',{'detail':_0x20447b,'bubbles':!0x0,'composed':!0x0}));},!0x1),this['sub']('uuid',_0x595a9f=>_0x595a9f&&this['updateImage']()),this['sub']('cdnUrl',_0x4afb48=>_0x4afb48&&this['updateImage']());}}CloudImageEditorBlock['template']=TEMPLATE,CloudImageEditorBlock['bindAttributes']({'uuid':'uuid','cdn-url':'cdnUrl','crop-preset':'cropPreset','tabs':'tabs'});class CropFrame extends Block{constructor(){super(),this['init$']={...this['init$'],'dragging':!0x1},this['_handlePointerUp']=this['_handlePointerUp_']['bind'](this),this['_handlePointerMove']=this['_handlePointerMove_']['bind'](this),this['_handleSvgPointerMove']=this['_handleSvgPointerMove_']['bind'](this);}['_shouldThumbBeDisabled'](_0xcacc20){let _0x1deced=this['$']['*imageBox'];if(!_0x1deced)return;if(''===_0xcacc20&&_0x1deced['height']<=MIN_CROP_SIZE&&_0x1deced['width']<=MIN_CROP_SIZE)return!0x0;let _0x480112=_0x1deced['height']<=MIN_CROP_SIZE&&(_0xcacc20['includes']('n')||_0xcacc20['includes']('s')),_0x58bf3a=_0x1deced['width']<=MIN_CROP_SIZE&&(_0xcacc20['includes']('e')||_0xcacc20['includes']('w'));return _0x480112||_0x58bf3a;}['_createBackdrop'](){let _0x49a786=this['$']['*cropBox'];if(!_0x49a786)return;let {x:_0x1c36d1,y:_0x4e3be2,width:_0xcc4e4d,height:_0x39cc1f}=_0x49a786,_0x75e108=this['ref']['svg-el'],_0x3230fd=createSvgNode('mask',{'id':'backdrop-mask'}),_0x4cc790=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'white'}),_0x15e50f=createSvgNode('rect',{'x':_0x1c36d1,'y':_0x4e3be2,'width':_0xcc4e4d,'height':_0x39cc1f,'fill':'black'});_0x3230fd['appendChild'](_0x4cc790),_0x3230fd['appendChild'](_0x15e50f);let _0x170390=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'var(--color-image-background)','fill-opacity':0.85,'mask':'url(#backdrop-mask)'});_0x75e108['appendChild'](_0x170390),_0x75e108['appendChild'](_0x3230fd),this['_backdropMask']=_0x3230fd,this['_backdropMaskInner']=_0x15e50f;}['_resizeBackdrop'](){this['_backdropMask']&&(this['_backdropMask']['style']['display']='none',window['requestAnimationFrame'](()=>{this['_backdropMask']&&(this['_backdropMask']['style']['display']='block');}));}['_updateBackdrop'](){let _0x3f1d21=this['$']['*cropBox'];if(!_0x3f1d21)return;let {x:_0x21fd83,y:_0x3878de,width:_0x2783d6,height:_0x4eabe7}=_0x3f1d21;this['_backdropMaskInner']&&setSvgNodeAttrs(this['_backdropMaskInner'],{'x':_0x21fd83,'y':_0x3878de,'width':_0x2783d6,'height':_0x4eabe7});}['_updateFrame'](){let _0xfbd75a=this['$']['*cropBox'];if(_0xfbd75a&&this['_frameGuides']&&this['_frameThumbs']){for(let _0x5c213c of Object['values'](this['_frameThumbs'])){let {direction:_0x2c1856,pathNode:_0x393a54,interactionNode:_0x57a562,groupNode:_0x26e64d}=_0x5c213c,_0x2d03d8=''===_0x2c1856,_0x2c5958=0x2===_0x2c1856['length'],{x:_0xea1740,y:_0x3b4e7d,width:_0x3369f2,height:_0x582817}=_0xfbd75a;if(_0x2d03d8)setSvgNodeAttrs(_0x57a562,{'x':_0xea1740,'y':_0x3b4e7d,'width':_0x3369f2,'height':_0x582817});else{const _0x1b81f1=clamp(Math['min'](_0x3369f2,_0x582817)/(0x2*THUMB_CORNER_SIZE+THUMB_SIDE_SIZE)/0x2,0x0,0x1);let {d:_0x1b06eb,center:_0x11c3bc}=_0x2c5958?cornerPath(_0xfbd75a,_0x2c1856,_0x1b81f1):sidePath(_0xfbd75a,_0x2c1856,_0x1b81f1);const _0x3d6358=Math['max'](MAX_INTERACTION_SIZE*clamp(Math['min'](_0x3369f2,_0x582817)/MAX_INTERACTION_SIZE/0x3,0x0,0x1),MIN_INTERACTION_SIZE);setSvgNodeAttrs(_0x57a562,{'x':_0x11c3bc[0x0]-_0x3d6358,'y':_0x11c3bc[0x1]-_0x3d6358,'width':0x2*_0x3d6358,'height':0x2*_0x3d6358}),setSvgNodeAttrs(_0x393a54,{'d':_0x1b06eb});}let _0xfd978c=this['_shouldThumbBeDisabled'](_0x2c1856);_0x26e64d['setAttribute']('class',classNames('uc-thumb',{'uc-thumb--hidden':_0xfd978c,'uc-thumb--visible':!_0xfd978c}));}setSvgNodeAttrs(this['_frameGuides'],{'x':_0xfbd75a['x']-0.5*GUIDE_STROKE_WIDTH,'y':_0xfbd75a['y']-0.5*GUIDE_STROKE_WIDTH,'width':_0xfbd75a['width']+GUIDE_STROKE_WIDTH,'height':_0xfbd75a['height']+GUIDE_STROKE_WIDTH});}}['_createThumb'](_0x262a2a,_0x22bb0b){let _0x87c458=createSvgNode('g');_0x87c458['classList']['add']('uc-thumb'),_0x87c458['setAttribute']('with-effects','');let _0x3514f4=createSvgNode('rect',{'fill':'transparent'}),_0x33dc6e=createSvgNode('path',{'stroke':'currentColor','fill':'none','stroke-width':THUMB_STROKE_WIDTH});_0x87c458['appendChild'](_0x33dc6e),_0x87c458['appendChild'](_0x3514f4),_0x262a2a[_0x22bb0b]={'direction':_0x22bb0b,'pathNode':_0x33dc6e,'interactionNode':_0x3514f4,'groupNode':_0x87c458},''===_0x22bb0b&&(_0x87c458['style']['cursor']='move'),_0x3514f4['addEventListener']('pointerdown',this['_handlePointerDown']['bind'](this,_0x22bb0b));}['_createThumbs'](){const _0x2d23d4={};for(let _0x1f01e1=0x0;_0x1f01e1<0x3;_0x1f01e1++)for(let _0x1b4c38=0x0;_0x1b4c38<0x3;_0x1b4c38++){let _0x1a86d0=''+['n','','s'][_0x1f01e1]+['w','','e'][_0x1b4c38];''!==_0x1a86d0&&this['_createThumb'](_0x2d23d4,_0x1a86d0);}return this['_createThumb'](_0x2d23d4,''),_0x2d23d4;}['_createGuides'](){let _0x36c5e9=createSvgNode('svg'),_0x49e26e=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'none','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.5});_0x36c5e9['appendChild'](_0x49e26e);for(let _0x523e15=0x1;_0x523e15<=0x2;_0x523e15++){let _0x35f900=createSvgNode('line',{'x1':GUIDE_THIRD*_0x523e15+'%','y1':'0%','x2':GUIDE_THIRD*_0x523e15+'%','y2':'100%','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.3});_0x36c5e9['appendChild'](_0x35f900);}for(let _0x5a3525=0x1;_0x5a3525<=0x2;_0x5a3525++){let _0x1d841c=createSvgNode('line',{'x1':'0%','y1':GUIDE_THIRD*_0x5a3525+'%','x2':'100%','y2':GUIDE_THIRD*_0x5a3525+'%','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.3});_0x36c5e9['appendChild'](_0x1d841c);}return _0x36c5e9['classList']['add']('uc-guides','uc-guides--semi-hidden'),_0x36c5e9;}['_createFrame'](){let _0x36bec7=this['ref']['svg-el'],_0x52ab4c=document['createDocumentFragment'](),_0x46c88=this['_createGuides']();_0x52ab4c['appendChild'](_0x46c88);let _0x51a11d=this['_createThumbs']();for(let {groupNode:_0xe8bf8b}of Object['values'](_0x51a11d))_0x52ab4c['appendChild'](_0xe8bf8b);_0x36bec7['appendChild'](_0x52ab4c),this['_frameThumbs']=_0x51a11d,this['_frameGuides']=_0x46c88;}['_handlePointerDown'](_0x12cdbc,_0x207e4d){if(!this['_frameThumbs'])return;let _0x1ccf46=this['_frameThumbs'][_0x12cdbc];if(this['_shouldThumbBeDisabled'](_0x12cdbc))return;let _0x1bbee7=this['$']['*cropBox'],{x:_0x4517e6,y:_0x3ac5aa}=this['ref']['svg-el']['getBoundingClientRect'](),_0x26cc67=_0x207e4d['x']-_0x4517e6,_0x447451=_0x207e4d['y']-_0x3ac5aa;this['$']['dragging']=!0x0,this['_draggingThumb']=_0x1ccf46,this['_dragStartPoint']=[_0x26cc67,_0x447451],this['_dragStartCrop']={..._0x1bbee7};}['_handlePointerUp_'](_0x316ac9){this['_updateCursor'](),this['$']['dragging']&&(_0x316ac9['stopPropagation'](),_0x316ac9['preventDefault'](),this['$']['dragging']=!0x1);}['_handlePointerMove_'](_0x1fe31e){if(!this['$']['dragging']||!this['_dragStartPoint']||!this['_draggingThumb'])return;_0x1fe31e['stopPropagation'](),_0x1fe31e['preventDefault']();let _0x275c6a=this['ref']['svg-el'],{x:_0x232949,y:_0x43f1ee}=_0x275c6a['getBoundingClientRect'](),_0x3814a6=_0x1fe31e['x']-_0x232949,_0x430f32=_0x1fe31e['y']-_0x43f1ee,_0x399096=_0x3814a6-this['_dragStartPoint'][0x0],_0x4af14e=_0x430f32-this['_dragStartPoint'][0x1],{direction:_0xd00c68}=this['_draggingThumb'];const _0xb4dd88=this['_calcCropBox'](_0xd00c68,[_0x399096,_0x4af14e]);_0xb4dd88&&(this['$']['*cropBox']=_0xb4dd88);}['_calcCropBox'](_0x456e89,_0x4371d3){const [_0x39fd0e,_0x404bfb]=_0x4371d3;let _0x40c36c=this['$']['*imageBox'],_0x534791=this['_dragStartCrop']??this['$']['*cropBox'];const _0x50f7ee=this['$']['*cropPresetList']?.[0x0],_0x178c18=_0x50f7ee?_0x50f7ee['width']/_0x50f7ee['height']:void 0x0;if(_0x534791=''===_0x456e89?moveRect({'rect':_0x534791,'delta':[_0x39fd0e,_0x404bfb],'imageBox':_0x40c36c}):resizeRect({'rect':_0x534791,'delta':[_0x39fd0e,_0x404bfb],'direction':_0x456e89,'aspectRatio':_0x178c18,'imageBox':_0x40c36c}),Object['values'](_0x534791)['every'](_0x45fbea=>Number['isFinite'](_0x45fbea)&&_0x45fbea>=0x0))return constraintRect(roundRect(_0x534791),this['$']['*imageBox']);console['error']('CropFrame\x20is\x20trying\x20to\x20create\x20invalid\x20rectangle',{'payload':_0x534791});}['_handleSvgPointerMove_'](_0x37b9af){if(!this['_frameThumbs'])return;let _0x8c8034=Object['values'](this['_frameThumbs'])['find'](_0x32c58f=>{if(this['_shouldThumbBeDisabled'](_0x32c58f['direction']))return!0x1;let _0x1ecd59=_0x32c58f['interactionNode']['getBoundingClientRect']();return rectContainsPoint({'x':_0x1ecd59['x'],'y':_0x1ecd59['y'],'width':_0x1ecd59['width'],'height':_0x1ecd59['height']},[_0x37b9af['x'],_0x37b9af['y']]);});this['_hoverThumb']=_0x8c8034,this['_updateCursor']();}['_updateCursor'](){let _0x406697=this['_hoverThumb'];this['ref']['svg-el']['style']['cursor']=_0x406697?thumbCursor(_0x406697['direction']):'initial';}['_createMask'](_0x23a4ad){if(this['_frameImage'])return void this['_frameImage']['setAttribute']('href',_0x23a4ad);let _0x251d35=this['ref']['svg-el'],_0x245a18=document['createDocumentFragment'](),_0x2be39e=createSvgNode('image',{'href':_0x23a4ad});_0x2be39e['setAttribute']('class','uc-cloud-mask'),_0x245a18['appendChild'](_0x2be39e),_0x251d35['appendChild'](_0x245a18),this['_frameImage']=_0x2be39e;}['_updateMask'](){let _0x15f6de=this['$']['*cropBox'];if(!_0x15f6de||!this['_frameImage'])return;let {x:_0x4fe8b1,y:_0x3bd1e7,width:_0x3a1ce0,height:_0x86e575}=_0x15f6de;setSvgNodeAttrs(this['_frameImage'],{'x':_0x4fe8b1,'y':_0x3bd1e7,'height':_0x86e575,'width':_0x3a1ce0});}['_render'](){this['_updateBackdrop'](),this['_updateFrame'](),this['_updateMask']();}['toggleThumbs'](_0x5e1cf1){this['_frameThumbs']&&Object['values'](this['_frameThumbs'])['map'](({groupNode:_0x4f8435})=>_0x4f8435)['forEach'](_0xb5d988=>{_0xb5d988['setAttribute']('class',classNames('uc-thumb',{'uc-thumb--hidden':!_0x5e1cf1,'uc-thumb--visible':_0x5e1cf1}));});}['initCallback'](){super['initCallback'](),this['_createBackdrop'](),this['_createFrame'](),this['sub']('*imageBox',()=>{this['_resizeBackdrop'](),window['requestAnimationFrame'](()=>{this['_render']();});}),this['sub']('*cropBox',_0x5ae0ab=>{_0x5ae0ab&&(this['_guidesHidden']=_0x5ae0ab['height']<=MIN_CROP_SIZE||_0x5ae0ab['width']<=MIN_CROP_SIZE,window['requestAnimationFrame'](()=>{this['_render']();}));}),this['subConfigValue']('cloudImageEditorMaskHref',_0x149796=>{_0x149796&&this['_createMask'](_0x149796);}),this['sub']('dragging',_0x2f5476=>{this['_frameGuides']&&this['_frameGuides']['setAttribute']('class',classNames({'uc-guides--hidden':this['_guidesHidden'],'uc-guides--visible':!this['_guidesHidden']&&_0x2f5476,'uc-guides--semi-hidden':!this['_guidesHidden']&&!_0x2f5476}));}),this['ref']['svg-el']['addEventListener']('pointermove',this['_handleSvgPointerMove'],!0x0),document['addEventListener']('pointermove',this['_handlePointerMove'],!0x0),document['addEventListener']('pointerup',this['_handlePointerUp'],!0x0);}['destroyCallback'](){super['destroyCallback'](),document['removeEventListener']('pointermove',this['_handlePointerMove']),document['removeEventListener']('pointerup',this['_handlePointerUp']);}}CropFrame['template']='\x20<svg\x20class=\x22uc-svg\x22\x20ref=\x22svg-el\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22></svg>\x20';class EditorButtonControl extends Block{['init$']={...this['init$'],'active':!0x1,'title':'','icon':'','on.click':null,'title-prop':''};['initCallback'](){super['initCallback'](),this['_titleEl']=this['ref']['title-el'],this['_iconEl']=this['ref']['icon-el'],this['sub']('title',_0x41ec64=>{this['_titleEl']&&(this['_titleEl']['style']['display']=_0x41ec64?'block':'none');}),this['sub']('active',_0x1956f2=>{this['className']=classNames({'uc-active':_0x1956f2,'uc-not_active':!_0x1956f2});}),this['sub']('on.click',_0x474adb=>{this['onclick']=_0x474adb;});}}function nextAngle(_0x2592a3){let _0x275a8e=_0x2592a3+0x5a;return _0x275a8e=_0x275a8e>=0x168?0x0:_0x275a8e,_0x275a8e;}function nextValue(_0x51a6da,_0x4a4626){return'rotate'===_0x51a6da?nextAngle(_0x4a4626):['mirror','flip']['includes'](_0x51a6da)?!_0x4a4626:null;}EditorButtonControl['template']='\x0a\x20\x20<button\x20role=\x22option\x22\x20type=\x22button\x22\x20set=\x22@aria-label:title-prop;\x22\x20l10n=\x22@title:title-prop;\x22>\x0a\x20\x20\x20\x20<uc-icon\x20set=\x22@name:\x20icon;\x22></uc-icon>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-title\x22\x20ref=\x22title-el\x22>{{title}}</div>\x0a\x20\x20</button>\x0a';class EditorCropButtonControl extends EditorButtonControl{['initCallback'](){super['initCallback'](),this['defineAccessor']('operation',_0x2b91f4=>{_0x2b91f4&&(this['_operation']=_0x2b91f4,this['$']['icon']=_0x2b91f4,this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-crop',{'name':this['l10n'](_0x2b91f4)['toLowerCase']()})));}),this['$']['on.click']=()=>{let _0x2f2147=this['$']['*cropperEl']['getValue'](this['_operation']),_0x1de5b1=nextValue(this['_operation'],_0x2f2147);this['$']['*cropperEl']['setValue'](this['_operation'],_0x1de5b1);};}}const ControlType={'FILTER':'filter','COLOR_OPERATION':'color_operation'},FAKE_ORIGINAL_FILTER='original';class EditorSlider extends Block{['init$']={...this['init$'],'disabled':!0x1,'min':0x0,'max':0x64,'value':0x0,'defaultValue':0x0,'zero':0x0,'on.input':e=>{this['$']['*faderEl']['set'](e),this['$']['value']=e;}};['setOperation'](_0x5c6012,_0x247fed){this['_controlType']='filter'===_0x5c6012?ControlType['FILTER']:ControlType['COLOR_OPERATION'],this['_operation']=_0x5c6012,this['_iconName']=_0x5c6012,this['_title']=_0x5c6012['toUpperCase'](),this['_filter']=_0x247fed,this['_initializeValues'](),this['$']['*faderEl']['activate']({'url':this['$']['*originalUrl'],'operation':this['_operation'],'value':this['_filter']===FAKE_ORIGINAL_FILTER?void 0x0:this['$']['value'],'filter':this['_filter']===FAKE_ORIGINAL_FILTER?void 0x0:this['_filter'],'fromViewer':!0x1});}['_initializeValues'](){let {range:_0x23ab46,zero:_0x4aa7ca}=COLOR_OPERATIONS_CONFIG[this['_operation']],[_0x4d0516,_0xd82ef1]=_0x23ab46;this['$']['min']=_0x4d0516,this['$']['max']=_0xd82ef1,this['$']['zero']=_0x4aa7ca;let _0xe7324c=this['$']['*editorTransformations'][this['_operation']];if(this['_controlType']===ControlType['FILTER']){let _0x4aa5c7=_0xd82ef1;if(_0xe7324c){let {name:_0x8c3253,amount:_0x7f71ae}=_0xe7324c;_0x4aa5c7=_0x8c3253===this['_filter']?_0x7f71ae:_0xd82ef1;}this['$']['value']=_0x4aa5c7,this['$']['defaultValue']=_0x4aa5c7;}if(this['_controlType']===ControlType['COLOR_OPERATION']){let _0x1cc927=void 0x0!==_0xe7324c?_0xe7324c:_0x4aa7ca;this['$']['value']=_0x1cc927,this['$']['defaultValue']=_0x1cc927;}}['apply'](){let _0x3a378b;_0x3a378b=this['_controlType']===ControlType['FILTER']?this['_filter']===FAKE_ORIGINAL_FILTER?null:{'name':this['_filter'],'amount':this['$']['value']}:this['$']['value'];let _0xcda3fc={...this['$']['*editorTransformations'],[this['_operation']]:_0x3a378b};this['$']['*editorTransformations']=_0xcda3fc;}['cancel'](){this['$']['*faderEl']['deactivate']({'hide':!0x1});}['initCallback'](){super['initCallback'](),this['sub']('*originalUrl',_0x3b426e=>{this['_originalUrl']=_0x3b426e;}),this['sub']('value',_0x155d1d=>{let _0x5444bd=(this['_filter']||this['_operation'])+'\x20'+_0x155d1d;this['$']['*operationTooltip']=_0x5444bd;});}}function preloadImage(_0x25d109){let _0x2cd5f6=new Image();return{'promise':new Promise((_0x538c95,_0x111008)=>{_0x2cd5f6['src']=_0x25d109,_0x2cd5f6['onload']=_0x538c95,_0x2cd5f6['onerror']=_0x111008;}),'image':_0x2cd5f6,'cancel':()=>{0x0===_0x2cd5f6['naturalWidth']&&(_0x2cd5f6['src']=TRANSPARENT_PIXEL_SRC);}};}function batchPreloadImages(_0x2a7f21){let _0x202c8c=[];for(let _0x39e10e of _0x2a7f21){let _0x50e07c=preloadImage(_0x39e10e);_0x202c8c['push'](_0x50e07c);}let _0x1a0911=_0x202c8c['map'](_0x17c83e=>_0x17c83e['image']);return{'promise':Promise['allSettled'](_0x202c8c['map'](_0x398e1c=>_0x398e1c['promise'])),'images':_0x1a0911,'cancel':()=>{_0x202c8c['forEach'](_0x28af07=>{_0x28af07['cancel']();});}};}EditorSlider['template']='\x0a\x20\x20<uc-slider-ui\x0a\x20\x20\x20\x20ref=\x22slider-el\x22\x0a\x20\x20\x20\x20set=\x22disabled:\x20disabled;\x20min:\x20min;\x20max:\x20max;\x20defaultValue:\x20defaultValue;\x20zero:\x20zero;\x20onInput:\x20on.input;\x22\x0a\x20\x20></uc-slider-ui>\x0a';class EditorFilterControl extends EditorButtonControl{constructor(){super(),this['init$']={...this['init$'],'active':!0x1,'title':'','icon':'','isOriginal':!0x1,'iconSize':'20','on.click':null};}['_previewSrc'](){let _0x592c5e=parseInt(window['getComputedStyle'](this)['getPropertyValue']('--l-base-min-width'),0xa),_0x3a5a87=window['devicePixelRatio'],_0x939981=Math['ceil'](_0x3a5a87*_0x592c5e),_0x55da28=_0x3a5a87>=0x2?'lightest':'normal',_0x2323e7={...this['$']['*editorTransformations']};return _0x2323e7[this['_operation']]=this['_filter']!==FAKE_ORIGINAL_FILTER?{'name':this['_filter'],'amount':0x64}:void 0x0,createCdnUrl(this['_originalUrl'],createCdnUrlModifiers(COMMON_OPERATIONS,transformationsToOperations(_0x2323e7),'quality/'+_0x55da28,'scale_crop/'+_0x939981+'x'+_0x939981+'/center'));}async['_observerCallback'](_0x24eac5,_0x12776c){if(_0x24eac5[0x0]['isIntersecting']){let _0x4f9883=await this['proxyUrl'](this['_previewSrc']()),_0x2b234d=this['ref']['preview-el'],{promise:_0x429dad,cancel:_0x1a21b8}=preloadImage(_0x4f9883);this['_cancelPreload']=_0x1a21b8,_0x429dad['catch'](_0x5ade84=>{this['$']['*networkProblems']=!0x0,console['error']('Failed\x20to\x20load\x20image',{'error':_0x5ade84});})['finally'](()=>{_0x2b234d['style']['backgroundImage']='url('+_0x4f9883+')',_0x2b234d['setAttribute']('loaded',''),_0x12776c['unobserve'](this);});}else this['_cancelPreload']?.();}['initCallback'](){super['initCallback'](),this['$']['on.click']=()=>{this['$']['active']?this['$']['isOriginal']||(this['$']['*sliderEl']['setOperation'](this['_operation'],this['_filter']),this['$']['*showSlider']=!0x0):(this['$']['*sliderEl']['setOperation'](this['_operation'],this['_filter']),this['$']['*sliderEl']['apply']()),this['$']['*currentFilter']=this['_filter'];},this['defineAccessor']('filter',_0x276fe1=>{this['_operation']='filter',this['_filter']=_0x276fe1,this['$']['isOriginal']=_0x276fe1===FAKE_ORIGINAL_FILTER,this['$']['icon']=this['$']['isOriginal']?'original':'slider',this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-filter',{'name':_0x276fe1['toLowerCase']()}));}),this['_observer']=new window['IntersectionObserver'](this['_observerCallback']['bind'](this),{'threshold':[0x0,0x1]});let _0x281e2f=this['$']['*originalUrl'];this['_originalUrl']=_0x281e2f,this['$']['isOriginal']?this['ref']['icon-el']['classList']['add']('uc-original-icon'):this['_observer']['observe'](this),this['sub']('*currentFilter',_0x15e9b9=>{this['$']['active']=_0x15e9b9&&_0x15e9b9===this['_filter'];}),this['sub']('isOriginal',_0x1d6010=>{this['$']['iconSize']=_0x1d6010?0x28:0x14;}),this['sub']('active',_0x20fcdf=>{if(this['$']['isOriginal'])return;this['ref']['icon-el']['style']['opacity']=_0x20fcdf?'1':'0';let _0x2092aa=this['ref']['preview-el'];_0x20fcdf?_0x2092aa['style']['opacity']='0':_0x2092aa['style']['backgroundImage']&&(_0x2092aa['style']['opacity']='1');}),this['sub']('*networkProblems',async _0x5123e4=>{if(!_0x5123e4){let _0x2969ad=await this['proxyUrl'](this['_previewSrc']()),_0x3659c6=this['ref']['preview-el'];_0x3659c6['style']['backgroundImage']&&(_0x3659c6['style']['backgroundImage']='none',_0x3659c6['style']['backgroundImage']='url('+_0x2969ad+')');}});}['destroyCallback'](){super['destroyCallback'](),this['_observer']?.['disconnect'](),this['_cancelPreload']?.();}}EditorFilterControl['template']='\x0a\x20\x20<button\x20type=\x22button\x22\x20role=\x22option\x22\x20l10n=\x22@title:title-prop;@aria-label:title-prop\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-preview\x22\x20ref=\x22preview-el\x22></div>\x0a\x20\x20\x20\x20<uc-icon\x20ref=\x22icon-el\x22\x20set=\x22@name:\x20icon;\x20@size:\x20iconSize;\x22></uc-icon>\x0a\x20\x20</button>\x0a';class EditorOperationControl extends EditorButtonControl{['_operation']='';['initCallback'](){super['initCallback'](),this['$']['on.click']=_0x5efb50=>{this['$']['*sliderEl']['setOperation'](this['_operation']),this['$']['*showSlider']=!0x0,this['$']['*currentOperation']=this['_operation'];},this['defineAccessor']('operation',_0x5901be=>{_0x5901be&&(this['_operation']=_0x5901be,this['$']['icon']=_0x5901be,this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-tuning',{'name':this['l10n'](_0x5901be)['toLowerCase']()})),this['bindL10n']('title',()=>this['l10n'](_0x5901be)));}),this['sub']('*editorTransformations',_0x4a3f88=>{if(!this['_operation'])return;let {zero:_0x530a4}=COLOR_OPERATIONS_CONFIG[this['_operation']],_0x1b61ed=_0x4a3f88[this['_operation']],_0x299fa1=void 0x0!==_0x1b61ed&&_0x1b61ed!==_0x530a4;this['$']['active']=_0x299fa1;});}}function pick(_0x407cf4,_0x24f94c){let _0x223283={};for(let _0x5988b2 of _0x24f94c){let _0x40cc0f=_0x407cf4[_0x5988b2];(_0x407cf4['hasOwnProperty'](_0x5988b2)||void 0x0!==_0x40cc0f)&&(_0x223283[_0x5988b2]=_0x40cc0f);}return _0x223283;}function viewerImageSrc(_0x22759c,_0x1a15df,_0x266b37){let _0x1a3abe=window['devicePixelRatio'],_0x4d46d0=Math['min'](Math['ceil'](_0x1a15df*_0x1a3abe),0xbb8),_0x5b6bb0=_0x1a3abe>=0x2?'lightest':'normal';return createCdnUrl(_0x22759c,createCdnUrlModifiers(COMMON_OPERATIONS,transformationsToOperations(_0x266b37),'quality/'+_0x5b6bb0,'stretch/off/-/resize/'+_0x4d46d0+'x','@clib/'+PACKAGE_NAME+'/'+PACKAGE_VERSION+'/uc-cloud-image-editor/'));}function validateCrop(_0x48b487){if(!_0x48b487)return!0x0;let _0x26a5e9=[({dimensions:_0x303a5e,coords:_0x16ee14})=>[..._0x303a5e,..._0x16ee14]['every'](_0x32f559=>Number['isInteger'](_0x32f559)&&Number['isFinite'](_0x32f559)),({dimensions:_0x1c8fc4,coords:_0x5c64ae})=>_0x1c8fc4['every'](_0xc9dba7=>_0xc9dba7>0x0)&&_0x5c64ae['every'](_0xc5579d=>_0xc5579d>=0x0)];return _0x26a5e9['every'](_0x38c90e=>_0x38c90e(_0x48b487));}class EditorImageCropper extends Block{['ctxOwner']=!0x0;constructor(){super(),this['init$']={...this['init$'],'image':null,'*padding':CROP_PADDING,'*operations':{'rotate':0x0,'mirror':!0x1,'flip':!0x1},'*imageBox':{'x':0x0,'y':0x0,'width':0x0,'height':0x0},'*cropBox':{'x':0x0,'y':0x0,'width':0x0,'height':0x0}},this['_commitDebounced']=debounce(this['_commit']['bind'](this),0x12c),this['_handleResizeThrottled']=throttle(this['_handleResize']['bind'](this),0x64),this['_imageSize']={'width':0x0,'height':0x0};}['_handleResize'](){this['isConnected']&&this['_isActive']&&(this['_initCanvas'](),this['_syncTransformations'](),this['_alignImage'](),this['_alignCrop'](),this['_draw']());}['_syncTransformations'](){let _0x2e169f=pick(this['$']['*editorTransformations'],Object['keys'](this['$']['*operations'])),_0x7b0be0={...this['$']['*operations'],..._0x2e169f};this['$']['*operations']=_0x7b0be0;}['_initCanvas'](){let _0x18f3e7=this['ref']['canvas-el'],_0x328404=_0x18f3e7['getContext']('2d'),_0x3bbde7=this['offsetWidth'],_0x547a27=this['offsetHeight'],_0x3ee4dc=window['devicePixelRatio'];_0x18f3e7['style']['width']=_0x3bbde7+'px',_0x18f3e7['style']['height']=_0x547a27+'px',_0x18f3e7['width']=_0x3bbde7*_0x3ee4dc,_0x18f3e7['height']=_0x547a27*_0x3ee4dc,_0x328404?.['scale'](_0x3ee4dc,_0x3ee4dc),this['_canvas']=_0x18f3e7,this['_ctx']=_0x328404;}['_alignImage'](){if(!this['_isActive']||!this['$']['image'])return;let _0x742ded,_0x475837=this['$']['image'],_0x53ba2d=this['$']['*padding'],_0x487619=this['$']['*operations'],{rotate:_0x533ba7}=_0x487619,_0x53332d=this['offsetWidth'],_0x20fb1f=this['offsetHeight'],_0x4c99b7=rotateSize({'width':_0x475837['naturalWidth'],'height':_0x475837['naturalHeight']},_0x533ba7);if(_0x4c99b7['width']>_0x53332d-0x2*_0x53ba2d||_0x4c99b7['height']>_0x20fb1f-0x2*_0x53ba2d){let _0x15acc0=_0x4c99b7['width']/_0x4c99b7['height'];if(_0x15acc0>_0x53332d/_0x20fb1f){let _0x4207be=_0x53332d-0x2*_0x53ba2d,_0x1e5f74=_0x4207be/_0x15acc0;_0x742ded={'x':0x0+_0x53ba2d,'y':_0x53ba2d+(_0x20fb1f-0x2*_0x53ba2d)/0x2-_0x1e5f74/0x2,'width':_0x4207be,'height':_0x1e5f74};}else{let _0x318481=_0x20fb1f-0x2*_0x53ba2d,_0x2aef7a=_0x318481*_0x15acc0;_0x742ded={'x':_0x53ba2d+(_0x53332d-0x2*_0x53ba2d)/0x2-_0x2aef7a/0x2,'y':0x0+_0x53ba2d,'width':_0x2aef7a,'height':_0x318481};}}else{let {width:_0x5b8fda,height:_0x54133a}=_0x4c99b7;_0x742ded={'x':_0x53ba2d+(_0x53332d-0x2*_0x53ba2d)/0x2-_0x5b8fda/0x2,'y':_0x53ba2d+(_0x20fb1f-0x2*_0x53ba2d)/0x2-_0x54133a/0x2,'width':_0x5b8fda,'height':_0x54133a};}this['$']['*imageBox']=roundRect(_0x742ded);}['_alignCrop'](){let _0x37a92e=this['$']['*cropBox'],_0x22814b=this['$']['*imageBox'],_0x15a3e3=this['$']['*operations'],{rotate:_0x3f0e5a}=_0x15a3e3,_0x487173=this['$']['*editorTransformations']['crop'],{width:_0x7fe0aa,x:_0x1f6ea6,y:_0x3e903f}=this['$']['*imageBox'];if(_0x487173){let {dimensions:[_0x5f9002,_0x2af369],coords:[_0x268232,_0x60d624]}=_0x487173,{width:_0xac6314}=rotateSize(this['_imageSize'],_0x3f0e5a),_0x366ee9=_0x7fe0aa/_0xac6314;_0x37a92e=constraintRect(roundRect({'x':_0x1f6ea6+_0x268232*_0x366ee9,'y':_0x3e903f+_0x60d624*_0x366ee9,'width':_0x5f9002*_0x366ee9,'height':_0x2af369*_0x366ee9}),this['$']['*imageBox']);}const _0x34a653=this['$']['*cropPresetList']?.[0x0],_0x43d6be=_0x34a653?_0x34a653['width']/_0x34a653['height']:void 0x0;if(!isRectInsideRect(_0x37a92e,_0x22814b)||_0x43d6be&&!isRectMatchesAspectRatio(_0x37a92e,_0x43d6be)){const _0x467f56=_0x22814b['width']/_0x22814b['height'];let _0x242a5b=_0x22814b['width'],_0x3f03dc=_0x22814b['height'];_0x43d6be&&(_0x467f56>_0x43d6be?_0x242a5b=Math['min'](_0x22814b['height']*_0x43d6be,_0x22814b['width']):_0x3f03dc=Math['min'](_0x22814b['width']/_0x43d6be,_0x22814b['height'])),_0x37a92e={'x':_0x22814b['x']+_0x22814b['width']/0x2-_0x242a5b/0x2,'y':_0x22814b['y']+_0x22814b['height']/0x2-_0x3f03dc/0x2,'width':_0x242a5b,'height':_0x3f03dc};}this['$']['*cropBox']=constraintRect(roundRect(_0x37a92e),this['$']['*imageBox']);}['_drawImage'](){let _0x479ccd=this['_ctx'];if(!_0x479ccd)return;let _0x431aa0=this['$']['image'],_0x5c7230=this['$']['*imageBox'],_0x41d607=this['$']['*operations'],{mirror:_0x5ef304,flip:_0x7d7c67,rotate:_0x62738f}=_0x41d607,_0x1be0c3=rotateSize({'width':_0x5c7230['width'],'height':_0x5c7230['height']},_0x62738f);_0x479ccd['save'](),_0x479ccd['translate'](_0x5c7230['x']+_0x5c7230['width']/0x2,_0x5c7230['y']+_0x5c7230['height']/0x2),_0x479ccd['rotate'](_0x62738f*Math['PI']*-0x1/0xb4),_0x479ccd['scale'](_0x5ef304?-0x1:0x1,_0x7d7c67?-0x1:0x1),_0x479ccd['drawImage'](_0x431aa0,-_0x1be0c3['width']/0x2,-_0x1be0c3['height']/0x2,_0x1be0c3['width'],_0x1be0c3['height']),_0x479ccd['restore']();}['_draw'](){if(!(this['_isActive']&&this['$']['image']&&this['_canvas']&&this['_ctx']))return;let _0x285742=this['_canvas'];this['_ctx']['clearRect'](0x0,0x0,_0x285742['width'],_0x285742['height']),this['_drawImage']();}['_animateIn']({fromViewer:_0x43c161}){this['$']['image']&&(this['ref']['frame-el']['toggleThumbs'](!0x0),this['_transitionToImage'](),setTimeout(()=>{this['className']=classNames({'uc-active_from_viewer':_0x43c161,'uc-active_from_editor':!_0x43c161,'uc-inactive_to_editor':!0x1});}));}['_getCropDimensions'](){let _0xdcc7be=this['$']['*cropBox'],_0x54c89a=this['$']['*imageBox'],_0x110027=this['$']['*operations'],{rotate:_0x1cdaa6}=_0x110027,{width:_0x3cb0f6,height:_0x39c440}=_0x54c89a,{width:_0x26146a,height:_0x24dd24}=rotateSize(this['_imageSize'],_0x1cdaa6),{width:_0x40bc9f,height:_0x53a640}=_0xdcc7be,_0x2a3732=_0x3cb0f6/_0x26146a,_0xc6c16f=_0x39c440/_0x24dd24;return[clamp(Math['round'](_0x40bc9f/_0x2a3732),0x1,_0x26146a),clamp(Math['round'](_0x53a640/_0xc6c16f),0x1,_0x24dd24)];}['_getCropTransformation'](){let _0x535e55=this['$']['*cropBox'],_0xc92a39=this['$']['*imageBox'],_0x3d3611=this['$']['*operations'],{rotate:_0x18add2}=_0x3d3611,{width:_0x30eace,height:_0x33f580,x:_0x59dcee,y:_0x116693}=_0xc92a39,{width:_0x40868a,height:_0xc80b39}=rotateSize(this['_imageSize'],_0x18add2),{x:_0x4448f3,y:_0x37fbfd}=_0x535e55,_0x10979b=_0x30eace/_0x40868a,_0x421f0f=_0x33f580/_0xc80b39,_0x5325b9=this['_getCropDimensions'](),_0x368a07={'dimensions':_0x5325b9,'coords':[clamp(Math['round']((_0x4448f3-_0x59dcee)/_0x10979b),0x0,_0x40868a-_0x5325b9[0x0]),clamp(Math['round']((_0x37fbfd-_0x116693)/_0x421f0f),0x0,_0xc80b39-_0x5325b9[0x1])]};if(validateCrop(_0x368a07)){if(_0x5325b9[0x0]!==_0x40868a||_0x5325b9[0x1]!==_0xc80b39)return _0x368a07;}else console['error']('Cropper\x20is\x20trying\x20to\x20create\x20invalid\x20crop\x20object',{'payload':_0x368a07});}['_commit'](){if(!this['isConnected']||!this['_imageSize'])return;let _0x48eb55=this['$']['*operations'],{rotate:_0x3f205e,mirror:_0x3d5a92,flip:_0x481047}=_0x48eb55,_0x4d7a02=this['_getCropTransformation'](),_0x58212a={...this['$']['*editorTransformations'],'crop':_0x4d7a02,'rotate':_0x3f205e,'mirror':_0x3d5a92,'flip':_0x481047};this['$']['*editorTransformations']=_0x58212a;}['setValue'](_0x2f8bfe,_0x375821){this['$']['*operations']={...this['$']['*operations'],[_0x2f8bfe]:_0x375821},this['_isActive']&&(this['_alignImage'](),this['_alignCrop'](),this['_draw']());}['getValue'](_0x2cabb4){return this['$']['*operations'][_0x2cabb4];}async['activate'](_0xea0210,{fromViewer:_0x55efb4}={}){if(!this['_isActive']){this['_isActive']=!0x0,this['_imageSize']=_0xea0210,this['removeEventListener']('transitionend',this['_reset']);try{this['$']['image']=await this['_waitForImage'](this['$']['*originalUrl'],this['$']['*editorTransformations']),this['_syncTransformations'](),this['_animateIn']({'fromViewer':_0x55efb4});}catch(_0x1ff447){console['error']('Failed\x20to\x20activate\x20cropper',{'error':_0x1ff447});}this['_observer']=new ResizeObserver(([_0x2fdd6f])=>{_0x2fdd6f['contentRect']['width']>0x0&&_0x2fdd6f['contentRect']['height']>0x0&&this['_isActive']&&this['$']['image']&&this['_handleResizeThrottled']();}),this['_observer']['observe'](this);}}['deactivate']({reset:_0x276edd=!0x1}={}){this['_isActive']&&(!_0x276edd&&this['_commit'](),this['_isActive']=!0x1,this['_transitionToCrop'](),this['className']=classNames({'uc-active_from_viewer':!0x1,'uc-active_from_editor':!0x1,'uc-inactive_to_editor':!0x0}),this['ref']['frame-el']['toggleThumbs'](!0x1),this['addEventListener']('transitionend',this['_reset'],{'once':!0x0}),this['_observer']?.['disconnect']());}['_transitionToCrop'](){let _0x1163f4=this['_getCropDimensions'](),_0x5a3793=Math['min'](this['offsetWidth'],_0x1163f4[0x0])/this['$']['*cropBox']['width'],_0x293870=Math['min'](this['offsetHeight'],_0x1163f4[0x1])/this['$']['*cropBox']['height'],_0x4d37a5=Math['min'](_0x5a3793,_0x293870),_0x13b69c=this['$']['*cropBox']['x']+this['$']['*cropBox']['width']/0x2,_0x197f7a=this['$']['*cropBox']['y']+this['$']['*cropBox']['height']/0x2;this['style']['transform']='scale('+_0x4d37a5+')\x20translate('+(this['offsetWidth']/0x2-_0x13b69c)/_0x4d37a5+'px,\x20'+(this['offsetHeight']/0x2-_0x197f7a)/_0x4d37a5+'px)',this['style']['transformOrigin']=_0x13b69c+'px\x20'+_0x197f7a+'px';}['_transitionToImage'](){let _0xdacae7=this['$']['*cropBox']['x']+this['$']['*cropBox']['width']/0x2,_0x14aa89=this['$']['*cropBox']['y']+this['$']['*cropBox']['height']/0x2;this['style']['transform']='scale(1)',this['style']['transformOrigin']=_0xdacae7+'px\x20'+_0x14aa89+'px';}['_reset'](){this['_isActive']||(this['$']['image']=null);}async['_waitForImage'](_0x371f7f,_0x2bd529){let _0x1b4f5e=this['offsetWidth'];_0x2bd529={..._0x2bd529,'crop':void 0x0,'rotate':void 0x0,'flip':void 0x0,'mirror':void 0x0};let _0x782096=await this['proxyUrl'](viewerImageSrc(_0x371f7f,_0x1b4f5e,_0x2bd529)),{promise:_0x353b09,cancel:_0x12b7dd,image:_0x1d8d9d}=preloadImage(_0x782096),_0x42feb9=this['_handleImageLoading'](_0x782096);return _0x1d8d9d['addEventListener']('load',_0x42feb9,{'once':!0x0}),_0x1d8d9d['addEventListener']('error',_0x42feb9,{'once':!0x0}),this['_cancelPreload']?.(),this['_cancelPreload']=_0x12b7dd,_0x353b09['then'](()=>_0x1d8d9d)['catch'](_0x10c147=>(console['error']('Failed\x20to\x20load\x20image',{'error':_0x10c147}),this['$']['*networkProblems']=!0x0,Promise['resolve'](_0x1d8d9d)));}['_handleImageLoading'](_0x408d2d){let _0x3caf5a='crop',_0x16973c=this['$']['*loadingOperations'];return _0x16973c['get'](_0x3caf5a)||_0x16973c['set'](_0x3caf5a,new Map()),_0x16973c['get'](_0x3caf5a)['get'](_0x408d2d)||(_0x16973c['set'](_0x3caf5a,_0x16973c['get'](_0x3caf5a)['set'](_0x408d2d,!0x0)),this['$']['*loadingOperations']=_0x16973c),()=>{_0x16973c?.['get'](_0x3caf5a)?.['has'](_0x408d2d)&&(_0x16973c['get'](_0x3caf5a)['delete'](_0x408d2d),this['$']['*loadingOperations']=_0x16973c);};}['initCallback'](){super['initCallback'](),this['sub']('*imageBox',()=>{this['_draw']();}),this['sub']('*cropBox',()=>{this['$']['image']&&this['_commitDebounced']();}),this['sub']('*cropPresetList',()=>{this['_alignCrop']();}),setTimeout(()=>{this['sub']('*networkProblems',_0x5dfef9=>{_0x5dfef9||this['_isActive']&&this['activate'](this['_imageSize'],{'fromViewer':!0x1});});},0x0);}['destroyCallback'](){super['destroyCallback'](),this['_observer']?.['disconnect']();}}function linspace(_0xae79f2,_0x534c38,_0x2bd538){let _0x461da1=Array(_0x2bd538);for(let _0x424b4a=--_0x2bd538;_0x424b4a>=0x0;_0x424b4a--)_0x461da1[_0x424b4a]=Math['ceil']((_0x424b4a*_0x534c38+(_0x2bd538-_0x424b4a)*_0xae79f2)/_0x2bd538);return _0x461da1;}function splitBySections(_0xeaa5ab){return _0xeaa5ab['reduce']((_0x4a4050,_0x4a51c7,_0x15fc3a)=>_0x15fc3a<_0xeaa5ab['length']-0x1?[..._0x4a4050,[_0x4a51c7,_0xeaa5ab[_0x15fc3a+0x1]]]:_0x4a4050,[]);}function calculateOpacities(_0xd8a7cd,_0x30658e,_0x39a790){let _0x3c4fa5=splitBySections(_0xd8a7cd)['find'](([_0x3fb09b,_0x5eafc7])=>_0x3fb09b<=_0x30658e&&_0x30658e<=_0x5eafc7);return _0xd8a7cd['map'](_0x292994=>{let _0x2d71b8=Math['abs'](_0x3c4fa5[0x0]-_0x3c4fa5[0x1]),_0xb05c5c=Math['abs'](_0x30658e-_0x3c4fa5[0x0])/_0x2d71b8;return _0x3c4fa5[0x0]===_0x292994?_0x30658e>_0x39a790?0x1:0x1-_0xb05c5c:_0x3c4fa5[0x1]===_0x292994?_0x30658e>=_0x39a790?_0xb05c5c:0x1:0x0;});}function calculateZIndices(_0x591479,_0x21d3c0){return _0x591479['map']((_0x74911f,_0x283395)=>_0x74911f<_0x21d3c0?_0x591479['length']-_0x283395:_0x283395);}function keypointsRange(_0xe5a4b4,_0x24eb6a){let _0x51adc2=COLOR_OPERATIONS_CONFIG[_0xe5a4b4]['keypointsNumber'],{range:_0x1eb0a1,zero:_0x223a7b}=COLOR_OPERATIONS_CONFIG[_0xe5a4b4];return[...new Set([...linspace(_0x1eb0a1[0x0],_0x223a7b,_0x51adc2+0x1),...linspace(_0x223a7b,_0x1eb0a1[0x1],_0x51adc2+0x1),_0x223a7b,_0x24eb6a])]['sort']((_0x45eee4,_0x3b50a8)=>_0x45eee4-_0x3b50a8);}EditorImageCropper['template']='\x0a\x20\x20<canvas\x20class=\x22uc-canvas\x22\x20ref=\x22canvas-el\x22></canvas>\x0a\x20\x20<uc-crop-frame\x20ref=\x22frame-el\x22></uc-crop-frame>\x0a';class EditorImageFader extends Block{constructor(){super(),this['_isActive']=!0x1,this['_hidden']=!0x0,this['_addKeypointDebounced']=debounce(this['_addKeypoint']['bind'](this),0x258),this['classList']['add']('uc-inactive_to_cropper');}['_handleImageLoading'](_0x3807d5){let _0xf5130=this['_operation'],_0x3e23bf=this['$']['*loadingOperations'];return _0x3e23bf['get'](_0xf5130)||_0x3e23bf['set'](_0xf5130,new Map()),_0x3e23bf['get'](_0xf5130)['get'](_0x3807d5)||(_0x3e23bf['set'](_0xf5130,_0x3e23bf['get'](_0xf5130)['set'](_0x3807d5,!0x0)),this['$']['*loadingOperations']=_0x3e23bf),()=>{_0x3e23bf?.['get'](_0xf5130)?.['has'](_0x3807d5)&&(_0x3e23bf['get'](_0xf5130)['delete'](_0x3807d5),this['$']['*loadingOperations']=_0x3e23bf);};}['_flush'](){window['cancelAnimationFrame'](this['_raf']),this['_raf']=window['requestAnimationFrame'](()=>{for(let _0x45b362 of this['_keypoints']){let {image:_0xd04ec3}=_0x45b362;_0xd04ec3&&(_0xd04ec3['style']['opacity']=_0x45b362['opacity']['toString'](),_0xd04ec3['style']['zIndex']=_0x45b362['zIndex']['toString']());}});}async['_imageSrc']({url:_0x3ccb6a=this['_url'],filter:_0x3322d8=this['_filter'],operation:_0x35e6aa,value:_0x34fb35}={}){let _0x5e199d={...this['_transformations']};_0x35e6aa&&(_0x5e199d[_0x35e6aa]=_0x3322d8?{'name':_0x3322d8,'amount':_0x34fb35}:_0x34fb35);let _0x23cba7=this['offsetWidth'];return await this['proxyUrl'](viewerImageSrc(_0x3ccb6a,_0x23cba7,_0x5e199d));}async['_constructKeypoint'](_0x398368,_0x2b3b81){return{'src':await this['_imageSrc']({'operation':_0x398368,'value':_0x2b3b81}),'image':null,'opacity':0x0,'zIndex':0x0,'value':_0x2b3b81};}['_isSame'](_0x528ab9,_0x7503d2){return this['_operation']===_0x528ab9&&this['_filter']===_0x7503d2;}async['_addKeypoint'](_0x527378,_0x283da,_0xace98c){let _0xa0617e=()=>!this['_isSame'](_0x527378,_0x283da)||this['_value']!==_0xace98c||!!this['_keypoints']['find'](_0x3593f2=>_0x3593f2['value']===_0xace98c);if(_0xa0617e())return;let _0x581a1c=await this['_constructKeypoint'](_0x527378,_0xace98c),_0x2a0c32=new Image();_0x2a0c32['src']=_0x581a1c['src'];let _0x5e168b=this['_handleImageLoading'](_0x581a1c['src']);_0x2a0c32['addEventListener']('load',_0x5e168b,{'once':!0x0}),_0x2a0c32['addEventListener']('error',_0x5e168b,{'once':!0x0}),_0x581a1c['image']=_0x2a0c32,_0x2a0c32['classList']['add']('uc-fader-image'),_0x2a0c32['addEventListener']('load',()=>{if(_0xa0617e())return;let _0x5cbf90=this['_keypoints'],_0x5671f9=_0x5cbf90['findIndex'](_0x56f2a2=>_0x56f2a2['value']>_0xace98c),_0x2c8145=_0x5671f9<_0x5cbf90['length']?_0x5cbf90[_0x5671f9]['image']:null;!this['_container']||_0x2c8145&&!this['_container']['contains'](_0x2c8145)||(_0x5cbf90['splice'](_0x5671f9,0x0,_0x581a1c),this['_container']['insertBefore'](_0x2a0c32,_0x2c8145),this['_update'](_0x527378,_0xace98c));},{'once':!0x0}),_0x2a0c32['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}['set'](_0x4ff539){_0x4ff539='string'==typeof _0x4ff539?parseInt(_0x4ff539,0xa):_0x4ff539,this['_update'](this['_operation'],_0x4ff539),this['_addKeypointDebounced'](this['_operation'],this['_filter'],_0x4ff539);}['_update'](_0xcd7311,_0x2c1b61){this['_operation']=_0xcd7311,this['_value']=_0x2c1b61;let {zero:_0x5ab780}=COLOR_OPERATIONS_CONFIG[_0xcd7311],_0x26e0fc=this['_keypoints']['map'](_0x4f42d5=>_0x4f42d5['value']),_0x911bd9=calculateOpacities(_0x26e0fc,_0x2c1b61,_0x5ab780),_0x47d5e4=calculateZIndices(_0x26e0fc,_0x5ab780);for(let [_0x4c1539,_0x801356]of Object['entries'](this['_keypoints']))_0x801356['opacity']=_0x911bd9[_0x4c1539],_0x801356['zIndex']=_0x47d5e4[_0x4c1539];this['_flush']();}['_createPreviewImage'](){let _0x370cf2=new Image();return _0x370cf2['classList']['add']('uc-fader-image','uc-fader-image--preview'),_0x370cf2['style']['opacity']='0',_0x370cf2;}async['_initNodes'](){let _0x2292b7=document['createDocumentFragment']();this['_previewImage']=this['_previewImage']||this['_createPreviewImage'](),!this['contains'](this['_previewImage'])&&_0x2292b7['appendChild'](this['_previewImage']);let _0xa0d294=document['createElement']('div');_0x2292b7['appendChild'](_0xa0d294);let _0x220776=this['_keypoints']['map'](_0x23cd0=>_0x23cd0['src']),{images:_0x5decc6,promise:_0x73969f,cancel:_0x4efe05}=batchPreloadImages(_0x220776);_0x5decc6['forEach'](_0x18d741=>{let _0x53e185=this['_handleImageLoading'](_0x18d741['src']);_0x18d741['addEventListener']('load',_0x53e185),_0x18d741['addEventListener']('error',_0x53e185);}),this['_cancelLastImages']=()=>{_0x4efe05(),this['_cancelLastImages']=void 0x0;};let _0xf76817=this['_operation'],_0x374b6b=this['_filter'];await _0x73969f,this['_isActive']&&this['_isSame'](_0xf76817,_0x374b6b)&&(this['_container']&&this['_container']['remove'](),this['_container']=_0xa0d294,this['_keypoints']['forEach']((_0x45f734,_0x5d4de4)=>{let _0x19033a=_0x5decc6[_0x5d4de4];_0x19033a['classList']['add']('uc-fader-image'),_0x45f734['image']=_0x19033a,this['_container']['appendChild'](_0x19033a);}),this['appendChild'](_0x2292b7),this['_flush']());}async['setTransformations'](_0x554155){if(this['_transformations']=_0x554155,this['_previewImage']){let _0xbf5623=await this['_imageSrc'](),_0x251175=this['_handleImageLoading'](_0xbf5623);this['_previewImage']['src']=_0xbf5623,this['_previewImage']['addEventListener']('load',_0x251175,{'once':!0x0}),this['_previewImage']['addEventListener']('error',_0x251175,{'once':!0x0}),this['_previewImage']['style']['opacity']='1',this['_previewImage']['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}}async['preload']({url:_0x1567fa,filter:_0x5421cb,operation:_0x461700,value:_0x1be5cb}){this['_cancelBatchPreload']&&this['_cancelBatchPreload']();let _0x405fe1=keypointsRange(_0x461700,_0x1be5cb),_0x709e=await Promise['all'](_0x405fe1['map'](_0x34ddc1=>this['_imageSrc']({'url':_0x1567fa,'filter':_0x5421cb,'operation':_0x461700,'value':_0x34ddc1}))),{cancel:_0x4d1fff}=batchPreloadImages(_0x709e);this['_cancelBatchPreload']=_0x4d1fff;}['_setOriginalSrc'](_0x52356c){let _0x1df425=this['_previewImage']||this['_createPreviewImage']();if(!this['contains'](_0x1df425)&&this['appendChild'](_0x1df425),this['_previewImage']=_0x1df425,_0x1df425['src']===_0x52356c)return _0x1df425['style']['opacity']='1',_0x1df425['style']['transform']='scale(1)',void(this['className']=classNames({'uc-active_from_viewer':this['_fromViewer'],'uc-active_from_cropper':!this['_fromViewer'],'uc-inactive_to_cropper':!0x1}));_0x1df425['style']['opacity']='0';let _0x30efdc=this['_handleImageLoading'](_0x52356c);_0x1df425['addEventListener']('error',_0x30efdc,{'once':!0x0}),_0x1df425['src']=_0x52356c,_0x1df425['addEventListener']('load',()=>{_0x30efdc(),_0x1df425&&(_0x1df425['style']['opacity']='1',_0x1df425['style']['transform']='scale(1)',this['className']=classNames({'uc-active_from_viewer':this['_fromViewer'],'uc-active_from_cropper':!this['_fromViewer'],'uc-inactive_to_cropper':!0x1}));},{'once':!0x0}),_0x1df425['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}async['activate']({url:_0x456462,operation:_0x4834b4,value:_0x1b5489,filter:_0x1c5156,fromViewer:_0x43691a}){if(this['_isActive']=!0x0,this['_hidden']=!0x1,this['_url']=_0x456462,this['_operation']=_0x4834b4||'initial',this['_value']=_0x1b5489,this['_filter']=_0x1c5156,this['_fromViewer']=_0x43691a,'number'!=typeof _0x1b5489&&!_0x1c5156){let _0x2bc3d9=await this['_imageSrc']({'operation':_0x4834b4,'value':_0x1b5489});return this['_setOriginalSrc'](_0x2bc3d9),void(this['_container']&&this['_container']['remove']());}this['_keypoints']=await Promise['all'](keypointsRange(_0x4834b4,_0x1b5489)['map'](_0x1b2053=>this['_constructKeypoint'](_0x4834b4,_0x1b2053))),this['_update'](_0x4834b4,_0x1b5489),this['_initNodes']();}['deactivate']({hide:_0xa2d75b=!0x0}={}){this['_isActive']=!0x1,this['_cancelLastImages']&&this['_cancelLastImages'](),this['_cancelBatchPreload']&&this['_cancelBatchPreload'](),_0xa2d75b&&!this['_hidden']?(this['_hidden']=!0x0,this['_previewImage']&&(this['_previewImage']['style']['transform']='scale(1)'),this['className']=classNames({'uc-active_from_viewer':!0x1,'uc-active_from_cropper':!0x1,'uc-inactive_to_cropper':!0x0}),this['addEventListener']('transitionend',()=>{this['_container']&&this['_container']['remove']();},{'once':!0x0})):this['_container']&&this['_container']['remove']();}}const X_THRESHOLD=0x1;class EditorScroller extends Block{['initCallback'](){super['initCallback'](),this['addEventListener']('wheel',_0x39cf50=>{_0x39cf50['preventDefault']();let {deltaY:_0x2eae22,deltaX:_0x59d96b}=_0x39cf50;Math['abs'](_0x59d96b)>X_THRESHOLD?this['scrollLeft']+=_0x59d96b:this['scrollLeft']+=_0x2eae22;},{'passive':!0x1}),this['addEventListener']('scroll',()=>{},{'passive':!0x0});}}function renderTabToggle(_0x4692b1){return'\x0a\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-tab-toggle\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.tabToggle.'+_0x4692b1+';\x20styles:\x20presence.tabToggleStyles;\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-btn-ui\x0a\x20\x20\x20\x20\x20\x20\x20\x20theme=\x22tab\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20ref=\x22tab-toggle-'+_0x4692b1+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20data-id=\x22'+_0x4692b1+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon=\x22'+_0x4692b1+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20on.clickTab;\x20aria-role:tab_role;\x20aria-controls:tab_'+_0x4692b1+';\x20title-prop:\x20a11y-editor-tab-'+_0x4692b1+'\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20</uc-btn-ui>\x0a\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20';}function renderTabContent(_0x15813b){return'\x0a\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20id=\x22tab_'+_0x15813b+'\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-tab-content\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.tabContent.'+_0x15813b+';\x20styles:\x20presence.tabContentStyles\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-editor-scroller\x20hidden-scrollbar>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-controls-list_align\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20role=\x22listbox\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20aria-orientation=\x22horizontal\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-controls-list_inner\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ref=\x22controls-list-'+_0x15813b+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</uc-editor-scroller>\x0a\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20';}EditorScroller['template']='\x20<slot></slot>\x20';class EditorToolbar extends Block{constructor(){super(),this['init$']={...this['init$'],'*sliderEl':null,'*loadingOperations':new Map(),'*showSlider':!0x1,'*currentFilter':FAKE_ORIGINAL_FILTER,'*currentOperation':null,'showLoader':!0x1,'filters':ALL_FILTERS,'colorOperations':ALL_COLOR_OPERATIONS,'cropOperations':ALL_CROP_OPERATIONS,'*operationTooltip':null,'presence.mainToolbar':!0x0,'presence.subToolbar':!0x1,'presence.tabToggles':!0x0,'presence.tabContent.crop':!0x1,'presence.tabContent.tuning':!0x1,'presence.tabContent.filters':!0x1,'presence.tabToggle.crop':!0x0,'presence.tabToggle.tuning':!0x0,'presence.tabToggle.filters':!0x0,'presence.subTopToolbarStyles':{'hidden':'uc-sub-toolbar--top-hidden','visible':'uc-sub-toolbar--visible'},'presence.subBottomToolbarStyles':{'hidden':'uc-sub-toolbar--bottom-hidden','visible':'uc-sub-toolbar--visible'},'presence.tabContentStyles':{'hidden':'uc-tab-content--hidden','visible':'uc-tab-content--visible'},'presence.tabToggleStyles':{'hidden':'uc-tab-toggle--hidden','visible':'uc-tab-toggle--visible'},'presence.tabTogglesStyles':{'hidden':'uc-tab-toggles--hidden','visible':'uc-tab-toggles--visible'},'on.cancel':()=>{this['_cancelPreload']?.(),this['$']['*on.cancel']();},'on.apply':()=>{this['$']['*on.apply'](this['$']['*editorTransformations']);},'on.applySlider':()=>{this['ref']['slider-el']['apply'](),this['_onSliderClose']();},'on.cancelSlider':()=>{this['ref']['slider-el']['cancel'](),this['_onSliderClose']();},'on.clickTab':_0x345a91=>{const _0x4e5756=_0x345a91['currentTarget']['getAttribute']('data-id');_0x4e5756&&this['_activateTab'](_0x4e5756,{'fromViewer':!0x1});},'tab_role':'tab',['tab_'+TabId['TUNING']]:'tab_'+TabId['TUNING'],['tab_'+TabId['CROP']]:'tab_'+TabId['CROP'],['tab_'+TabId['FILTERS']]:'tab_'+TabId['FILTERS'],'cancel':'cancel','apply':'apply','a11y-editor-tab-filters':'a11y-editor-tab-filters','a11y-editor-tab-tuning':'a11y-editor-tab-tuning','a11y-editor-tab-crop':'a11y-editor-tab-crop'},this['_debouncedShowLoader']=debounce(this['_showLoader']['bind'](this),0x1f4);}['_onSliderClose'](){this['$']['*showSlider']=!0x1,this['$']['*tabId']===TabId['TUNING']&&this['ref']['tooltip-el']['classList']['toggle']('uc-info-tooltip_visible',!0x1);}['_createOperationControl'](_0x1cea62){let _0x5025b6=new EditorOperationControl();return _0x5025b6['operation']=_0x1cea62,_0x5025b6;}['_createFilterControl'](_0x200a84){let _0x5e4b1d=new EditorFilterControl();return _0x5e4b1d['filter']=_0x200a84,_0x5e4b1d;}['_createToggleControl'](_0x30105d){let _0x4f6572=new EditorCropButtonControl();return _0x4f6572['operation']=_0x30105d,_0x4f6572;}['_renderControlsList'](_0x4b64c9){let _0x369413=this['ref']['controls-list-'+_0x4b64c9],_0x3758b2=document['createDocumentFragment']();_0x4b64c9===TabId['CROP']?this['$']['cropOperations']['forEach'](_0x11f95d=>{let _0x4a83e9=this['_createToggleControl'](_0x11f95d);_0x3758b2['appendChild'](_0x4a83e9);}):_0x4b64c9===TabId['FILTERS']?[FAKE_ORIGINAL_FILTER,...this['$']['filters']]['forEach'](_0x9e14e5=>{let _0x13c3ac=this['_createFilterControl'](_0x9e14e5);_0x3758b2['appendChild'](_0x13c3ac);}):_0x4b64c9===TabId['TUNING']&&this['$']['colorOperations']['forEach'](_0x520b4f=>{let _0x151a43=this['_createOperationControl'](_0x520b4f);_0x3758b2['appendChild'](_0x151a43);}),[..._0x3758b2['children']]['forEach']((_0xfe23a,_0x5436f1)=>{_0x5436f1===_0x3758b2['childNodes']['length']-0x1&&_0xfe23a['classList']['add']('uc-controls-list_last-item');}),_0x369413['innerHTML']='',_0x369413['appendChild'](_0x3758b2);}['_activateTab'](_0x14b401,{fromViewer:_0x12a4dc}){this['$']['*tabId']=_0x14b401,_0x14b401===TabId['CROP']?(this['$']['*faderEl']['deactivate'](),this['$']['*cropperEl']['activate'](this['$']['*imageSize'],{'fromViewer':_0x12a4dc})):(this['$']['*faderEl']['activate']({'url':this['$']['*originalUrl'],'fromViewer':_0x12a4dc}),this['$']['*cropperEl']['deactivate']());for(let _0x342b99 of ALL_TABS){let _0x26726c=_0x342b99===_0x14b401;this['ref']['tab-toggle-'+_0x342b99]['active']=_0x26726c,_0x26726c?(this['_renderControlsList'](_0x14b401),this['_syncTabIndicator']()):this['_unmountTabControls'](_0x342b99),this['$']['presence.tabContent.'+_0x342b99]=_0x26726c;}}['_unmountTabControls'](_0x39ef78){let _0x4d9192=this['ref']['controls-list-'+_0x39ef78];_0x4d9192&&(_0x4d9192['innerHTML']='');}['_syncTabIndicator'](){let _0x362181=this['ref']['tab-toggle-'+this['$']['*tabId']];this['ref']['tabs-indicator']['style']['transform']='translateX('+_0x362181['offsetLeft']+'px)';}async['_preloadEditedImage'](){if(this['$']['*imgContainerEl']&&this['$']['*originalUrl']){let _0x5a6b77=this['$']['*imgContainerEl']['offsetWidth'],_0x1925d8=await this['proxyUrl'](viewerImageSrc(this['$']['*originalUrl'],_0x5a6b77,this['$']['*editorTransformations']));this['_cancelPreload']?.();let {cancel:_0x3adfd0}=batchPreloadImages([_0x1925d8]);this['_cancelPreload']=()=>{_0x3adfd0(),this['_cancelPreload']=void 0x0;};}}['_showLoader'](_0x2dc602){this['$']['showLoader']=_0x2dc602;}['_updateInfoTooltip']=debounce(()=>{const e=this['$']['*editorTransformations'],i=this['$']['*currentOperation'];let n='',s=!0x1;if(this['$']['*tabId']===TabId['FILTERS']){if(s=!0x0,this['$']['*currentFilter']&&e?.['filter']?.['name']===this['$']['*currentFilter']){let i=e?.['filter']?.['amount']||0x64;n=this['$']['*currentFilter']+'\x20'+i;}else n=this['l10n'](FAKE_ORIGINAL_FILTER);}else{if(this['$']['*tabId']===TabId['TUNING']&&i){s=!0x0;let r=e?.[i]||COLOR_OPERATIONS_CONFIG[i]['zero'];n=this['l10n'](i)+'\x20'+r;}}s&&(this['$']['*operationTooltip']=n),this['ref']['tooltip-el']['classList']['toggle']('uc-info-tooltip_visible',s);},0x0);['initCallback'](){super['initCallback'](),this['$']['*sliderEl']=this['ref']['slider-el'],this['sub']('*imageSize',_0x12bb74=>{_0x12bb74&&setTimeout(()=>{this['_activateTab'](this['$']['*tabId'],{'fromViewer':!0x0});},0x0);}),this['sub']('*editorTransformations',_0x1a1796=>{let _0x706407=_0x1a1796?.['filter']?.['name'];this['$']['*currentFilter']!==_0x706407&&(this['$']['*currentFilter']=_0x706407);}),this['sub']('*currentFilter',()=>{this['_updateInfoTooltip']();}),this['sub']('*currentOperation',()=>{this['_updateInfoTooltip']();}),this['sub']('*tabId',()=>{this['_updateInfoTooltip']();}),this['sub']('*originalUrl',()=>{this['$']['*faderEl']&&this['$']['*faderEl']['deactivate']();}),this['sub']('*editorTransformations',_0xf752c9=>{this['_preloadEditedImage'](),this['$']['*faderEl']&&this['$']['*faderEl']['setTransformations'](_0xf752c9);}),this['sub']('*loadingOperations',_0x123ad8=>{let _0x51264c=!0x1;for(let [,_0x4b38d6]of _0x123ad8['entries']()){if(_0x51264c)break;for(let [,_0x367c35]of _0x4b38d6['entries']())if(_0x367c35){_0x51264c=!0x0;break;}}this['_debouncedShowLoader'](_0x51264c);}),this['sub']('*showSlider',_0x28df55=>{this['$']['presence.subToolbar']=_0x28df55,this['$']['presence.mainToolbar']=!_0x28df55;}),this['sub']('*tabList',_0x7a2b30=>{this['$']['presence.tabToggles']=_0x7a2b30['length']>0x1;for(const _0x3df19a of ALL_TABS){this['$']['presence.tabToggle.'+_0x3df19a]=_0x7a2b30['includes'](_0x3df19a),this['ref']['tab-toggle-'+_0x3df19a]['style']['gridColumn']=_0x7a2b30['indexOf'](_0x3df19a)+0x1;}_0x7a2b30['includes'](this['$']['*tabId'])||this['_activateTab'](_0x7a2b30[0x0],{'fromViewer':!0x1});}),this['_updateInfoTooltip']();}['destroyCallback'](){this['$']['*showSlider']=!0x1;}}EditorToolbar['template']='\x0a\x20\x20<uc-line-loader-ui\x20set=\x22active:\x20showLoader\x22></uc-line-loader-ui>\x0a\x20\x20<div\x20class=\x22uc-info-tooltip_container\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-info-tooltip_wrapper\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20ref=\x22tooltip-el\x22\x20class=\x22uc-info-tooltip\x20uc-info-tooltip_hidden\x22>{{*operationTooltip}}</div>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x20\x20<div\x20class=\x22uc-toolbar-container\x22>\x0a\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20role=\x22tablist\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-sub-toolbar\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.mainToolbar;\x20styles:\x20presence.subTopToolbarStyles\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-tab-content-row\x22>'+ALL_TABS['map'](renderTabContent)['join']('')+'</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-controls-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-tab-toggles\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.tabToggles;\x20styles:\x20presence.tabTogglesStyles\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20ref=\x22tabs-indicator\x22\x20class=\x22uc-tab-toggles_indicator\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+ALL_TABS['map'](renderTabToggle)['join']('')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-btn-ui\x20style=\x22order:\x20-1\x22\x20theme=\x22secondary-icon\x22\x20icon=\x22closeMax\x22\x20set=\x22onclick:\x20on.cancel;\x20title-prop:cancel\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</uc-btn-ui>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-btn-ui\x20theme=\x22primary-icon\x22\x20icon=\x22done\x22\x20set=\x22onclick:\x20on.apply;\x20title-prop:apply\x22>\x20</uc-btn-ui>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-sub-toolbar\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.subToolbar;\x20styles:\x20presence.subBottomToolbarStyles\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-slider\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-editor-slider\x20ref=\x22slider-el\x22></uc-editor-slider>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-controls-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-btn-ui\x20theme=\x22secondary\x22\x20set=\x22onclick:\x20on.cancelSlider\x22\x20l10n=\x22@text:cancel\x22>\x20</uc-btn-ui>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-btn-ui\x20theme=\x22primary\x22\x20set=\x22onclick:\x20on.applySlider\x22\x20l10n=\x22@text:apply\x22>\x20</uc-btn-ui>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20</div>\x0a';class BtnUi extends Block{constructor(){super(),this['_iconReversed']=!0x1,this['_iconSingle']=!0x1,this['_iconHidden']=!0x1,this['init$']={...this['init$'],'text':'','icon':'','iconCss':this['_iconCss'](),'theme':null,'aria-role':'','aria-controls':'','title-prop':''},this['defineAccessor']('active',_0x47bc5a=>{_0x47bc5a?this['setAttribute']('active',''):this['removeAttribute']('active');});}['_iconCss'](){return classNames('uc-icon',{'uc-icon_left':!this['_iconReversed'],'uc-icon_right':this['_iconReversed'],'uc-icon_hidden':this['_iconHidden'],'uc-icon_single':this['_iconSingle']});}['initCallback'](){super['initCallback'](),this['sub']('icon',_0x346730=>{this['_iconSingle']=!this['$']['text'],this['_iconHidden']=!_0x346730,this['$']['iconCss']=this['_iconCss']();}),this['sub']('theme',_0x1040bc=>{'custom'!==_0x1040bc&&(this['className']='uc-'+_0x1040bc);}),this['sub']('text',_0x1d7085=>{this['_iconSingle']=!0x1;}),this['hasAttribute']('theme')||this['setAttribute']('theme','default'),this['defineAccessor']('aria-role',_0x2413a3=>{this['$']['aria-role']=_0x2413a3||'';}),this['defineAccessor']('aria-controls',_0x174a6c=>{this['$']['aria-controls']=_0x174a6c||'';}),this['defineAccessor']('title-prop',_0x49038f=>{this['$']['title-prop']=_0x49038f||'';});}set['reverse'](_0xe7586b){this['hasAttribute']('reverse')?(this['style']['flexDirection']='row-reverse',this['_iconReversed']=!0x0):(this['_iconReversed']=!0x1,this['style']['flexDirection']=null);}}BtnUi['bindAttributes']({'text':'text','icon':'icon','reverse':'reverse','theme':'theme'}),BtnUi['template']='\x0a\x20\x20<button\x0a\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20set=\x22@role:aria-role;\x20@aria-controls:\x20aria-controls;\x20@aria-label:title-prop\x22\x0a\x20\x20\x20\x20l10n=\x22@title:title-prop;\x22\x0a\x20\x20>\x0a\x20\x20\x20\x20<uc-icon\x20set=\x22className:\x20iconCss;\x20@name:\x20icon;\x20@hidden:\x20!icon\x22></uc-icon>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-text\x22>{{text}}</div>\x0a\x20\x20</button>\x0a';class LineLoaderUi extends Block{constructor(){super(),this['_active']=!0x1,this['_handleTransitionEndRight']=()=>{let _0x44b169=this['ref']['line-el'];_0x44b169['style']['transition']='initial',_0x44b169['style']['opacity']='0',_0x44b169['style']['transform']='translateX(-101%)',this['_active']&&this['_start']();};}['initCallback'](){super['initCallback'](),this['defineAccessor']('active',_0x2ab3f3=>{'boolean'==typeof _0x2ab3f3&&(_0x2ab3f3?this['_start']():this['_stop']());});}['_start'](){this['_active']=!0x0;let {width:_0x2a7b76}=this['getBoundingClientRect'](),_0x14d8b3=this['ref']['line-el'];_0x14d8b3['style']['transition']='transform\x201s',_0x14d8b3['style']['opacity']='1',_0x14d8b3['style']['transform']='translateX('+_0x2a7b76+'px)',_0x14d8b3['addEventListener']('transitionend',this['_handleTransitionEndRight'],{'once':!0x0});}['_stop'](){this['_active']=!0x1;}}LineLoaderUi['template']='\x0a\x20\x20<div\x20class=\x22uc-inner\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-line\x22\x20ref=\x22line-el\x22></div>\x0a\x20\x20</div>\x0a';const DEFAULT_STYLE={'transition':'uc-transition','visible':'uc-visible','hidden':'uc-hidden'};class PresenceToggle extends Block{constructor(){super(),this['_visible']=!0x1,this['_visibleStyle']=DEFAULT_STYLE['visible'],this['_hiddenStyle']=DEFAULT_STYLE['hidden'],this['_externalTransitions']=!0x1,this['defineAccessor']('styles',_0x493f25=>{_0x493f25&&(this['_externalTransitions']=!0x0,this['_visibleStyle']=_0x493f25['visible'],this['_hiddenStyle']=_0x493f25['hidden']);}),this['defineAccessor']('visible',_0x18e6b1=>{'boolean'==typeof _0x18e6b1&&(this['_visible']=_0x18e6b1,this['_handleVisible']());});}['_handleVisible'](){this['style']['visibility']=this['_visible']?'inherit':'hidden',applyClassNames(this,{[DEFAULT_STYLE['transition']]:!this['_externalTransitions'],[this['_visibleStyle']]:this['_visible'],[this['_hiddenStyle']]:!this['_visible']}),this['setAttribute']('aria-hidden',this['_visible']?'false':'true');}['initCallback'](){super['initCallback'](),this['classList']['toggle']('uc-initial',!0x0),this['_externalTransitions']||this['classList']['add'](DEFAULT_STYLE['transition']),this['_handleVisible'](),setTimeout(()=>{this['classList']['toggle']('uc-initial',!0x1);},0x0);}}PresenceToggle['template']='<slot></slot>\x20';class SliderUi extends Block{['init$']={...this['init$'],'disabled':!0x1,'min':0x0,'max':0x64,'onInput':null,'onChange':null,'defaultValue':null,'on.sliderInput':()=>{let e=parseInt(this['ref']['input-el']['value'],0xa);this['_updateValue'](e),this['$']['onInput']&&this['$']['onInput'](e);},'on.sliderChange':()=>{let e=parseInt(this['ref']['input-el']['value'],0xa);this['$']['onChange']&&this['$']['onChange'](e);}};constructor(){super(),this['setAttribute']('with-effects','');}['initCallback'](){super['initCallback'](),this['defineAccessor']('disabled',_0xc96d37=>{this['$']['disabled']=_0xc96d37;}),this['defineAccessor']('min',_0x5d3254=>{this['$']['min']=_0x5d3254;}),this['defineAccessor']('max',_0x107639=>{this['$']['max']=_0x107639;}),this['defineAccessor']('defaultValue',_0x5b0b6b=>{this['$']['defaultValue']=_0x5b0b6b,this['ref']['input-el']['value']=_0x5b0b6b,this['_updateValue'](_0x5b0b6b);}),this['defineAccessor']('zero',_0x180096=>{this['_zero']=_0x180096;}),this['defineAccessor']('onInput',_0x1ee1ed=>{_0x1ee1ed&&(this['$']['onInput']=_0x1ee1ed);}),this['defineAccessor']('onChange',_0x5579f5=>{_0x5579f5&&(this['$']['onChange']=_0x5579f5);}),this['_updateSteps'](),this['_observer']=new ResizeObserver(()=>{this['_updateSteps']();let _0x4c0341=parseInt(this['ref']['input-el']['value'],0xa);this['_updateValue'](_0x4c0341);}),this['_observer']['observe'](this),this['_thumbSize']=parseInt(window['getComputedStyle'](this)['getPropertyValue']('--l-thumb-size'),0xa),setTimeout(()=>{let _0x3e8735=parseInt(this['ref']['input-el']['value'],0xa);this['_updateValue'](_0x3e8735);},0x0),this['sub']('disabled',_0x4b8fc=>{let _0x2b4870=this['ref']['input-el'];_0x4b8fc?_0x2b4870['setAttribute']('disabled','disabled'):_0x2b4870['removeAttribute']('disabled');});let _0x11e7c6=this['ref']['input-el'];_0x11e7c6['addEventListener']('focus',()=>{this['style']['setProperty']('--color-effect','var(--hover-color-rgb)');}),_0x11e7c6['addEventListener']('blur',()=>{this['style']['setProperty']('--color-effect','var(--idle-color-rgb)');});}['_updateValue'](_0x4f081c){this['_updateZeroDot'](_0x4f081c);let {width:_0x103d21}=this['getBoundingClientRect'](),_0x1b58e9=0x64/(this['$']['max']-this['$']['min'])*(_0x4f081c-this['$']['min'])*(_0x103d21-this['_thumbSize'])/0x64;window['requestAnimationFrame'](()=>{this['ref']['thumb-el']['style']['transform']='translateX('+_0x1b58e9+'px)';});}['_updateZeroDot'](_0x42e38b){if(!this['_zeroDotEl'])return;_0x42e38b===this['_zero']?this['_zeroDotEl']['style']['opacity']='0':this['_zeroDotEl']['style']['opacity']='1';let {width:_0x4b3f87}=this['getBoundingClientRect'](),_0x1f66cc=0x64/(this['$']['max']-this['$']['min'])*(this['_zero']-this['$']['min'])*(_0x4b3f87-this['_thumbSize'])/0x64;window['requestAnimationFrame'](()=>{this['_zeroDotEl']['style']['transform']='translateX('+_0x1f66cc+'px)';});}['_updateSteps'](){let _0x1b27a7=this['ref']['steps-el'],{width:_0x45d1fd}=_0x1b27a7['getBoundingClientRect'](),_0x5917b2=Math['ceil'](_0x45d1fd/0x2),_0x45eb19=Math['ceil'](_0x5917b2/0xf)-0x2;if(this['_stepsCount']===_0x45eb19)return;let _0xc8c19b=document['createDocumentFragment'](),_0x1ddbd7=document['createElement']('div'),_0x19cbe2=document['createElement']('div');_0x1ddbd7['className']='uc-minor-step',_0x19cbe2['className']='uc-border-step',_0xc8c19b['appendChild'](_0x19cbe2);for(let _0xb0ba1d=0x0;_0xb0ba1d<_0x45eb19;_0xb0ba1d++)_0xc8c19b['appendChild'](_0x1ddbd7['cloneNode']());_0xc8c19b['appendChild'](_0x19cbe2['cloneNode']());for(let _0x43f586=0x0;_0x43f586<_0x45eb19;_0x43f586++)_0xc8c19b['appendChild'](_0x1ddbd7['cloneNode']());_0xc8c19b['appendChild'](_0x19cbe2['cloneNode']());let _0x12d2de=document['createElement']('div');_0x12d2de['className']='uc-zero-dot',_0xc8c19b['appendChild'](_0x12d2de),this['_zeroDotEl']=_0x12d2de,_0x1b27a7['innerHTML']='',_0x1b27a7['appendChild'](_0xc8c19b),this['_stepsCount']=_0x45eb19;}['destroyCallback'](){super['destroyCallback'](),this['_observer']?.['disconnect']();}}SliderUi['template']='\x0a\x20\x20<div\x20class=\x22uc-steps\x22\x20ref=\x22steps-el\x22></div>\x0a\x20\x20<div\x20ref=\x22thumb-el\x22\x20class=\x22uc-thumb\x22></div>\x0a\x20\x20<input\x0a\x20\x20\x20\x20class=\x22uc-input\x22\x0a\x20\x20\x20\x20type=\x22range\x22\x0a\x20\x20\x20\x20ref=\x22input-el\x22\x0a\x20\x20\x20\x20set=\x22oninput:\x20on.sliderInput;\x20onchange:\x20on.sliderChange;\x20@min:\x20min;\x20@max:\x20max;\x20@value:\x20defaultValue;\x22\x0a\x20\x20/>\x0a';class CloudImageEditorActivity extends UploaderBlock{['couldBeCtxOwner']=!0x0;['activityType']=ActivityBlock['activities']['CLOUD_IMG_EDIT'];['_entry'];['_instance'];get['activityParams'](){const _0x209b76=super['activityParams'];if('internalId'in _0x209b76)return _0x209b76;throw new Error('Cloud\x20Image\x20Editor\x20activity\x20params\x20not\x20found');}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType'],{'onActivate':()=>this['mountEditor'](),'onDeactivate':()=>this['unmountEditor']()}),this['subConfigValue']('cropPreset',_0x1993fa=>{this['_instance']&&this['_instance']['getAttribute']('crop-preset')!==_0x1993fa&&this['_instance']['setAttribute']('crop-preset',_0x1993fa);}),this['subConfigValue']('cloudImageEditorTabs',_0x42a22d=>{this['_instance']&&this['_instance']['getAttribute']('tabs')!==_0x42a22d&&this['_instance']['setAttribute']('tabs',_0x42a22d);});}['handleApply'](_0xb9bdb4){if(!this['_entry'])return;let _0x49f275=_0xb9bdb4['detail'];this['_entry']['setMultipleValues']({'cdnUrl':_0x49f275['cdnUrl'],'cdnUrlModifiers':_0x49f275['cdnUrlModifiers']}),this['modalManager']['close'](ActivityBlock['activities']['CLOUD_IMG_EDIT']),this['historyBack']();}['handleCancel'](){this['modalManager']['close'](ActivityBlock['activities']['CLOUD_IMG_EDIT']),this['historyBack']();}['mountEditor'](){const {internalId:_0x31cabb}=this['activityParams'],_0x3045e0=this['uploadCollection']['read'](_0x31cabb);if(!_0x3045e0)throw new Error('Entry\x20with\x20internalId\x20\x22'+_0x31cabb+'\x22\x20not\x20found');this['_entry']=_0x3045e0;const _0x2221ab=this['_entry']['getValue']('cdnUrl');if(!_0x2221ab)throw new Error('Entry\x20with\x20internalId\x20\x22'+_0x31cabb+'\x22\x20hasn\x27t\x20uploaded\x20yet');const _0x5795d5=new CloudImageEditorBlock(),_0x56ed25=this['cfg']['cropPreset'],_0x1c452e=this['cfg']['cloudImageEditorTabs'];_0x5795d5['setAttribute']('ctx-name',this['ctxName']),_0x5795d5['setAttribute']('cdn-url',_0x2221ab),_0x56ed25&&_0x5795d5['setAttribute']('crop-preset',_0x56ed25),_0x1c452e&&_0x5795d5['setAttribute']('tabs',_0x1c452e),_0x5795d5['addEventListener']('apply',_0x638179=>{const _0x2b2afa=_0x638179;this['handleApply'](_0x2b2afa),this['debugPrint']('editor\x20event\x20\x22apply\x22',_0x2b2afa['detail']);}),_0x5795d5['addEventListener']('cancel',_0x498b93=>{const _0x54b4ae=_0x498b93;this['handleCancel'](),this['debugPrint']('editor\x20event\x20\x22cancel\x22',_0x54b4ae['detail']);}),_0x5795d5['addEventListener']('change',_0xb77dc0=>{const _0x188c43=_0xb77dc0;this['debugPrint']('editor\x20event\x20\x22change\x22',_0x188c43['detail']);}),this['innerHTML']='',this['appendChild'](_0x5795d5),this['_instance']=_0x5795d5;}['unmountEditor'](){this['_instance']=void 0x0,this['_entry']=void 0x0,this['innerHTML']='';}}const escapeRegExp=function(_0x1b60b3){return _0x1b60b3['replace'](/[\\-\\[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,'\x5c$&');},wildcardRegexp=function(_0x45c339,_0x11fee9='i'){const _0x4a59e1=_0x45c339['split']('*')['map'](escapeRegExp);return new RegExp('^'+_0x4a59e1['join']('.+')+'$',_0x11fee9);};function getCssValue(_0x42b3b0,_0x5cc002){return window['getComputedStyle'](_0x42b3b0)['getPropertyValue'](_0x5cc002)['trim']();}const ucCustomProperties=['--uc-font-family','--uc-font-size','--uc-line-height','--uc-button-size','--uc-preview-size','--uc-input-size','--uc-padding','--uc-radius','--uc-transition','--uc-background','--uc-foreground','--uc-primary','--uc-primary-hover','--uc-primary-transparent','--uc-primary-foreground','--uc-secondary','--uc-secondary-hover','--uc-secondary-foreground','--uc-muted','--uc-muted-foreground','--uc-destructive','--uc-destructive-foreground','--uc-border'];function buildThemeDefinition(_0x6d516e){return ucCustomProperties['reduce']((_0x3c5ca2,_0x35cde7)=>{const _0x598259=getCssValue(_0x6d516e,_0x35cde7);return _0x598259&&(_0x3c5ca2[_0x35cde7]=_0x598259),_0x3c5ca2;},{});}const MESSAGE_TYPE_WHITELIST=['selected-files-change','toolbar-state-change'],isWhitelistedMessage=_0x5af236=>!!_0x5af236&&('object'==typeof _0x5af236&&('type'in _0x5af236&&MESSAGE_TYPE_WHITELIST['includes'](_0x5af236['type'])));class MessageBridge{['_handlerMap']=new Map();['_context'];constructor(_0x5ddcf9){this['_context']=_0x5ddcf9,window['addEventListener']('message',this['_handleMessage']);}['_handleMessage']=_0x383360=>{if(_0x383360['source']!==this['_context'])return;const _0x43e371=_0x383360['data'];if(!isWhitelistedMessage(_0x43e371))return;const _0xde472f=this['_handlerMap']['get'](_0x43e371['type']);if(_0xde472f){for(const _0x546325 of _0xde472f)_0x546325(_0x43e371);}};['on'](_0x2d9f69,_0x3157cc){const _0x4479c3=this['_handlerMap']['get'](_0x2d9f69)??new Set();this['_handlerMap']['has'](_0x2d9f69)||this['_handlerMap']['set'](_0x2d9f69,_0x4479c3),_0x4479c3['add'](_0x3157cc);}['send'](_0x1a12eb){this['_context']['postMessage'](_0x1a12eb,'*');}['destroy'](){window['removeEventListener']('message',this['_handleMessage']);}}function queryString(_0x551768){let _0x7d10e0=[];for(let [_0x14e0be,_0x1d9a07]of Object['entries'](_0x551768))null==_0x1d9a07||'string'==typeof _0x1d9a07&&0x0===_0x1d9a07['length']||_0x7d10e0['push'](_0x14e0be+'='+encodeURIComponent(_0x1d9a07));return _0x7d10e0['join']('&');}const getTopLevelOrigin=()=>{const _0xf0fd32=globalThis['top']??globalThis['parent']??globalThis['self'];try{return _0xf0fd32['location']['origin'];}catch(_0x5c6a48){return console['warn']('Unable\x20to\x20access\x20top-level\x20window\x20location:',_0x5c6a48),globalThis['location']['origin'];}},SOCIAL_SOURCE_MAPPING={[ExternalUploadSource['GDRIVE']]:'ngdrive'};class ExternalSource extends UploaderBlock{['couldBeCtxOwner']=!0x0;['activityType']=ActivityBlock['activities']['EXTERNAL'];constructor(){super(),this['init$']={...this['init$'],'activityIcon':'','activityCaption':'','selectedList':[],'total':0x0,'isSelectionReady':!0x1,'isDoneBtnEnabled':!0x1,'couldSelectAll':!0x1,'couldDeselectAll':!0x1,'showSelectionStatus':!0x1,'counterText':'','doneBtnTextClass':'uc-hidden','toolbarVisible':!0x0,'onDone':()=>{for(const _0x2793bb of this['$']['selectedList']){const _0x11a11b=this['extractUrlFromSelectedFile'](_0x2793bb),{filename:_0x415767}=_0x2793bb,{externalSourceType:_0x1fdbea}=this['activityParams'];this['api']['addFileFromUrl'](_0x11a11b,{'fileName':_0x415767,'source':_0x1fdbea});}this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],this['modalManager']['open'](ActivityBlock['activities']['UPLOAD_LIST']);},'onCancel':()=>{this['historyBack']();},'onSelectAll':()=>{this['_messageBridge']?.['send']({'type':'select-all'});},'onDeselectAll':()=>{this['_messageBridge']?.['send']({'type':'deselect-all'});}};}get['activityParams'](){const _0x1f2486=super['activityParams'];if('externalSourceType'in _0x1f2486)return _0x1f2486;throw new Error('External\x20Source\x20activity\x20params\x20not\x20found');}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType'],{'onActivate':()=>{let {externalSourceType:_0x17d313}=this['activityParams'];if(!_0x17d313)return this['modalManager']['close'](this['$']['*currentActivity']),this['$']['*currentActivity']=null,void console['error']('Param\x20\x22externalSourceType\x22\x20is\x20required\x20for\x20activity\x20\x22'+this['activityType']+'\x22');this['set$']({'activityCaption':''+_0x17d313?.[0x0]['toUpperCase']()+_0x17d313?.['slice'](0x1),'activityIcon':_0x17d313}),this['mountIframe']();}}),this['sub']('*currentActivityParams',_0x2a033d=>{this['isActivityActive']&&(this['unmountIframe'](),this['mountIframe']());}),this['sub']('*currentActivity',_0x5e3baf=>{_0x5e3baf!==this['activityType']&&this['unmountIframe']();}),this['subConfigValue']('multiple',_0x19fe7d=>{this['$']['showSelectionStatus']=_0x19fe7d;}),this['subConfigValue']('localeName',_0x427d5a=>{this['setupL10n']();}),this['subConfigValue']('externalSourcesEmbedCss',_0x4eea35=>{this['applyEmbedCss'](_0x4eea35);});}['extractUrlFromSelectedFile'](_0x170f64){if(_0x170f64['alternatives']){const _0xd3166d=stringToArray(this['cfg']['externalSourcesPreferredTypes']);for(const _0x310e0a of _0xd3166d){const _0x578abf=wildcardRegexp(_0x310e0a);for(const [_0x13623c,_0x8d87bc]of Object['entries'](_0x170f64['alternatives']))if(_0x578abf['test'](_0x13623c))return _0x8d87bc;}}return _0x170f64['url'];}['handleToolbarStateChange'](_0x2bf3de){this['set$']({'toolbarVisible':_0x2bf3de['isVisible']});}async['handleSelectedFilesChange'](_0x3e412d){this['cfg']['multiple']===_0x3e412d['isMultipleMode']?(this['bindL10n']('counterText',()=>this['l10n']('selected-count',{'count':_0x3e412d['selectedCount'],'total':_0x3e412d['total']})),this['set$']({'doneBtnTextClass':_0x3e412d['isReady']?'':'uc-hidden','isSelectionReady':_0x3e412d['isReady'],'isDoneBtnEnabled':_0x3e412d['isReady']&&_0x3e412d['selectedFiles']['length']>0x0,'showSelectionStatus':_0x3e412d['isMultipleMode']&&_0x3e412d['total']>0x0,'couldSelectAll':_0x3e412d['selectedCount']<_0x3e412d['total'],'couldDeselectAll':_0x3e412d['selectedCount']===_0x3e412d['total'],'selectedList':_0x3e412d['selectedFiles']})):console['error']('Multiple\x20mode\x20mismatch');}['handleIframeLoad'](){this['applyEmbedCss'](this['cfg']['externalSourcesEmbedCss']),this['applyTheme'](),this['setupL10n']();}['applyTheme'](){this['_messageBridge']?.['send']({'type':'set-theme-definition','theme':buildThemeDefinition(this)});}['applyEmbedCss'](_0x5256e2){this['_messageBridge']?.['send']({'type':'set-embed-css','css':_0x5256e2});}['setupL10n'](){this['_messageBridge']?.['send']({'type':'set-locale-definition','localeDefinition':this['cfg']['localeName']});}['remoteUrl'](){const {pubkey:_0x2b7009,remoteTabSessionKey:_0x56a656,socialBaseUrl:_0x438ec2,multiple:_0x34ad63}=this['cfg'],{externalSourceType:_0x3ccd68}=this['activityParams'],_0x4376d8=SOCIAL_SOURCE_MAPPING[_0x3ccd68]??_0x3ccd68,_0x146dea={'lang':this['l10n']('social-source-lang')?.['split']('-')?.[0x0]||'en','public_key':_0x2b7009,'images_only':(!0x1)['toString'](),'session_key':_0x56a656,'wait_for_theme':!0x0,'multiple':_0x34ad63['toString'](),'origin':this['cfg']['topLevelOrigin']||getTopLevelOrigin(),'debug':this['cfg']['debug']},_0x1b0fff=new URL('/window4/'+_0x4376d8,_0x438ec2);return _0x1b0fff['search']=queryString(_0x146dea),_0x1b0fff['toString']();}['mountIframe'](){let _0x5cf28c=create({'tag':'iframe','attributes':{'src':this['remoteUrl'](),'marginheight':0x0,'marginwidth':0x0,'frameborder':0x0,'allowTransparency':!0x0}});_0x5cf28c['addEventListener']('load',this['handleIframeLoad']['bind'](this)),this['ref']['iframeWrapper']['innerHTML']='',this['ref']['iframeWrapper']['appendChild'](_0x5cf28c),_0x5cf28c['contentWindow']&&(this['_messageBridge']?.['destroy'](),this['_messageBridge']=new MessageBridge(_0x5cf28c['contentWindow']),this['_messageBridge']['on']('selected-files-change',this['handleSelectedFilesChange']['bind'](this)),this['_messageBridge']['on']('toolbar-state-change',this['handleToolbarStateChange']['bind'](this)),this['resetSelectionStatus']());}['unmountIframe'](){this['_messageBridge']?.['destroy'](),this['_messageBridge']=void 0x0,this['ref']['iframeWrapper']['innerHTML']='',this['resetSelectionStatus']();}['resetSelectionStatus'](){this['set$']({'selectedList':[],'total':0x0,'isDoneBtnEnabled':!0x1,'couldSelectAll':!0x1,'couldDeselectAll':!0x1,'showSelectionStatus':!0x1});}}ExternalSource['template']='\x0a\x20\x20<uc-activity-header>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x20uc-close-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20*historyBack\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22close\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</uc-activity-header>\x0a\x20\x20<div\x20class=\x22uc-content\x22>\x0a\x20\x20\x20\x20<div\x20ref=\x22iframeWrapper\x22\x20class=\x22uc-iframe-wrapper\x22></div>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-toolbar\x22\x20set=\x22@hidden:\x20!toolbarVisible\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-cancel-btn\x20uc-secondary-btn\x22\x20set=\x22onclick:\x20onCancel\x22\x20l10n=\x22cancel\x22></button>\x0a\x20\x20\x20\x20\x20\x20<div\x20set=\x22@hidden:\x20!showSelectionStatus\x22\x20class=\x22uc-selection-status-box\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>{{counterText}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20set=\x22onclick:\x20onSelectAll;\x20@hidden:\x20!couldSelectAll\x22\x20l10n=\x22select-all\x22></button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20set=\x22onclick:\x20onDeselectAll;\x20@hidden:\x20!couldDeselectAll\x22\x20l10n=\x22deselect-all\x22></button>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-done-btn\x20uc-primary-btn\x22\x20set=\x22onclick:\x20onDone;\x20@disabled:\x20!isDoneBtnEnabled;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-spinner\x20set=\x22@hidden:\x20isSelectionReady\x22></uc-spinner>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20l10n=\x22done\x22\x20set=\x22@class:\x20doneBtnTextClass\x22></span>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a';class FormInput extends UploaderBlock{['requireCtxName']=!0x0;['_createValidationInput'](){const _0x38a71c=document['createElement']('input');return _0x38a71c['type']='text',_0x38a71c['name']=this['ctxName'],_0x38a71c['required']=this['cfg']['multipleMin']>0x0,_0x38a71c['tabIndex']=-0x1,applyStyles(_0x38a71c,{'opacity':0x0,'height':0x0,'width':0x0}),_0x38a71c;}['initCallback'](){super['initCallback'](),this['_validationInputElement']=this['_createValidationInput'](),this['appendChild'](this['_validationInputElement']),this['sub']('*collectionState',_0x14f12a=>{{if(this['_dynamicInputsContainer']||(this['_dynamicInputsContainer']=document['createElement']('div'),this['appendChild'](this['_dynamicInputsContainer'])),!this['_validationInputElement']){const _0x9b4288=this['_createValidationInput']();this['appendChild'](_0x9b4288),this['_validationInputElement']=_0x9b4288;}if(this['_dynamicInputsContainer']['innerHTML']='','uploading'===_0x14f12a['status']||'idle'===_0x14f12a['status'])return this['_validationInputElement']['value']='',void this['_validationInputElement']['setCustomValidity']('');if('failed'===_0x14f12a['status']){const _0x1e0ba7=_0x14f12a['errors'][0x0]?.['message'];return this['_validationInputElement']['value']='',void this['_validationInputElement']['setCustomValidity'](_0x1e0ba7);}const _0x5e9324=_0x14f12a['group']?_0x14f12a['group']:null;if(_0x5e9324)return this['_validationInputElement']['value']=_0x5e9324['cdnUrl'],void this['_validationInputElement']['setCustomValidity']('');const _0x450646=_0x14f12a['allEntries']['map'](_0x12a437=>_0x12a437['cdnUrl']);if(!this['cfg']['multiple']&&0x1===_0x450646['length'])return this['_validationInputElement']['value']=_0x450646[0x0],void this['_validationInputElement']['setCustomValidity']('');this['_validationInputElement']['remove'](),this['_validationInputElement']=null;const _0x2551fa=new DocumentFragment();for(let _0x2c0660 of _0x450646){const _0x292faf=document['createElement']('input');_0x292faf['type']='hidden',_0x292faf['name']=this['ctxName']+'[]',_0x292faf['value']=_0x2c0660,_0x2551fa['appendChild'](_0x292faf);}this['_dynamicInputsContainer']['replaceChildren'](_0x2551fa);}},!0x1);}}class ActivityHeader extends ActivityBlock{}class Select extends Block{['init$']={...this['init$'],'currentText':'','options':[],'selectHtml':'','onSelect':e=>{e['preventDefault'](),e['stopPropagation'](),this['value']=this['ref']['select']['value'],this['$']['currentText']=this['$']['options']['find'](e=>e['value']==this['value'])?.['text']||'',this['dispatchEvent'](new Event('change'));}};['initCallback'](){super['initCallback'](),this['sub']('options',_0x1cb433=>{this['$']['currentText']=_0x1cb433?.[0x0]?.['text']||'';let _0x417bed='';_0x1cb433?.['forEach'](_0x2550e9=>{_0x417bed+='<option\x20value=\x22'+_0x2550e9['value']+'\x22>'+_0x2550e9['text']+'</option>';}),this['$']['selectHtml']=_0x417bed;});}}Select['template']='\x20<select\x20ref=\x22select\x22\x20set=\x22innerHTML:\x20selectHtml;\x20onchange:\x20onSelect\x22></select>\x20';class Copyright extends Block{['initCallback'](){super['initCallback'](),this['subConfigValue']('removeCopyright',_0x3f32fa=>{this['toggleAttribute']('hidden',!!_0x3f32fa);});}static ['template']='\x0a\x20\x20\x20\x20<a\x0a\x20\x20\x20\x20\x20\x20href=\x22https://uploadcare.com/?utm_source=copyright&utm_medium=referral&utm_campaign=v4\x22\x0a\x20\x20\x20\x20\x20\x20target=\x22_blank\x20noopener\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-credits\x22\x0a\x20\x20\x20\x20\x20\x20>Powered\x20by\x20Uploadcare</a\x0a\x20\x20\x20\x20>\x0a\x20\x20';}class Spinner extends BaseComponent{}function createSvgBlobUrl(_0x494ef1){let _0x21d88c=new Blob([_0x494ef1],{'type':'image/svg+xml'});return URL['createObjectURL'](_0x21d88c);}function fileCssBg(_0x530f7c='hsl(209,\x2021%,\x2065%)',_0x2c5069=0x20,_0x356684=0x20){return createSvgBlobUrl('\x0a\x20\x20<svg\x20width=\x22'+_0x2c5069+'\x22\x20height=\x22'+_0x356684+'\x22\x20viewBox=\x220\x200\x2030\x2030\x22\x20fill=\x22none\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20<path\x20fill-rule=\x22evenodd\x22\x20fill=\x22'+_0x530f7c+'\x22\x20d=\x22M9.68848\x208.70068C9.68848\x208.42454\x209.91233\x208.20068\x2010.1885\x208.20068H15.0885C15.2211\x208.20068\x2015.3483\x208.25336\x2015.442\x208.34713L20.342\x2013.2471C20.4358\x2013.3409\x2020.4885\x2013.4681\x2020.4885\x2013.6007V21.3007C20.4885\x2021.5768\x2020.2646\x2021.8007\x2019.9885\x2021.8007H10.1885C9.91233\x2021.8007\x209.68848\x2021.5768\x209.68848\x2021.3007V8.70068ZM10.6885\x209.20068V20.8007H19.4885V14.1007L15.0885\x2014.1007C14.8123\x2014.1007\x2014.5885\x2013.8768\x2014.5885\x2013.6007L14.5885\x209.20068H10.6885ZM15.5885\x209.90779L18.7814\x2013.1007L15.5885\x2013.1007L15.5885\x209.90779Z\x22/>\x0a\x20\x20</svg>\x0a\x20\x20');}function generateThumb(_0x31bc54,_0x5eef96=0x28){if('image/svg+xml'===_0x31bc54['type'])return URL['createObjectURL'](_0x31bc54);let _0x2179c3=document['createElement']('canvas'),_0x387e6d=_0x2179c3['getContext']('2d'),_0x35363d=new Image(),_0x32e602=new Promise((_0x4f587c,_0x53e959)=>{_0x35363d['onload']=()=>{let _0x50cb1a=_0x35363d['height']/_0x35363d['width'];_0x50cb1a>0x1?(_0x2179c3['width']=_0x5eef96,_0x2179c3['height']=_0x5eef96*_0x50cb1a):(_0x2179c3['height']=_0x5eef96,_0x2179c3['width']=_0x5eef96/_0x50cb1a),_0x387e6d['fillStyle']='rgb(240,\x20240,\x20240)',_0x387e6d['fillRect'](0x0,0x0,_0x2179c3['width'],_0x2179c3['height']),_0x387e6d['drawImage'](_0x35363d,0x0,0x0,_0x2179c3['width'],_0x2179c3['height']),_0x2179c3['toBlob'](_0x2b59af=>{if(!_0x2b59af)return void _0x53e959();let _0xfac9b2=URL['createObjectURL'](_0x2b59af);_0x4f587c(_0xfac9b2);});},_0x35363d['onerror']=_0x42a80c=>{_0x53e959(_0x42a80c);};});return _0x35363d['src']=URL['createObjectURL'](_0x31bc54),_0x32e602;}Spinner['template']='\x20<div\x20class=\x22uc-spinner\x22></div>\x20';const CDN_MAX_OUTPUT_DIMENSION=0xbb8;class Thumb extends FileItemConfig{['_renderedGridOnce']=!0x1;['_thumbRect']=null;['_isIntersecting']=!0x1;['_firstViewMode']=this['cfg']['filesViewMode'];constructor(){super(),this['init$']={...this['init$'],'thumbUrl':'','badgeIcon':'','uid':''};}['_calculateThumbSize'](_0xdb7f05=!0x1){_0xdb7f05&&(this['_thumbRect']=this['getBoundingClientRect']());let _0x553eb9=Math['max'](parseInt(String(this?.['_thumbRect']?.['height']||0x0)),parseInt(String(this?.['_thumbRect']?.['width']||0x0)),this['cfg']['thumbSize']);return window['devicePixelRatio']>0x1&&(_0x553eb9*=window['devicePixelRatio']),Math['min'](_0x553eb9,CDN_MAX_OUTPUT_DIMENSION);}['_generateThumbnail']=this['_withEntry'](async(e,i=!0x1)=>{const n=e['getValue']('fileInfo'),s=e['getValue']('isImage'),r=e['getValue']('uuid'),o=e['getValue']('thumbUrl');let a=this['_calculateThumbSize'](i);if(n&&s&&r){let i=await this['proxyUrl'](createCdnUrl(createOriginalUrl(this['cfg']['cdnCname'],r),createCdnUrlModifiers(e['getValue']('cdnUrlModifiers'),'stretch/off','scale_crop/'+a+'x'+a+'/center')));if(o===i)return;const {promise:n}=preloadImage(i);return void n['then'](()=>{e['setValue']('thumbUrl',i),o?.['startsWith']('blob:')&&URL['revokeObjectURL'](o);})['catch'](async()=>{if(!o?.['startsWith']('blob:'))try{const i=e['getValue']('file');if(!i)return;const n=await generateThumb(i,a);e['setValue']('thumbUrl',n);}catch(i){const n=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');e['setValue']('thumbUrl',fileCssBg(n));}});}if(e['getValue']('thumbUrl'))return;const c=e['getValue']('file');if(c?.['type']['includes']('image'))try{let i=await generateThumb(c,a);e['setValue']('thumbUrl',i);}catch(i){let n=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');e['setValue']('thumbUrl',fileCssBg(n));}else{let i=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');e['setValue']('thumbUrl',fileCssBg(i));}});['_debouncedGenerateThumb']=debounce(this['_generateThumbnail']['bind'](this),0x64);['_observerCallback'](_0x484f47){const [_0xd35054]=_0x484f47;this['_isIntersecting']=_0xd35054['isIntersecting'],_0xd35054['isIntersecting']&&(this['_thumbRect']=_0xd35054['boundingClientRect'],this['_debouncedGenerateThumb'](),this['_observer']?.['disconnect']()),0x0===_0xd35054['intersectionRatio']&&this['_debouncedGenerateThumb']['cancel']();}['_reset'](){super['_reset'](),this['_debouncedGenerateThumb']['cancel']();}['_handleEntryId'](_0x1858c6){this['_reset']();let _0x35a630=this['uploadCollection']?.['read'](_0x1858c6);this['_entry']=_0x35a630,_0x35a630&&(this['_subEntry']('fileInfo',_0x4a2cc7=>{_0x4a2cc7?.['isImage']&&this['_isIntersecting']&&this['_debouncedGenerateThumb']();}),this['_subEntry']('thumbUrl',_0x471fae=>{this['$']['thumbUrl']=_0x471fae?'url('+_0x471fae+')':'';}),this['_subEntry']('cdnUrlModifiers',()=>{this['_isIntersecting']&&this['_debouncedGenerateThumb']();}),this['_isIntersecting']&&this['_debouncedGenerateThumb']());}['initCallback'](){super['initCallback'](),this['defineAccessor']('badgeIcon',_0x86ba73=>this['$']['badgeIcon']=_0x86ba73),this['defineAccessor']('uid',_0x44bd35=>{this['set$']({'uid':_0x44bd35});}),this['sub']('uid',_0x2a31f3=>{this['_handleEntryId'](_0x2a31f3);}),this['subConfigValue']('filesViewMode',_0x332e49=>{'grid'!==_0x332e49||this['_renderedGridOnce']||('list'===this['_firstViewMode']&&this['_debouncedGenerateThumb'](!0x0),this['_renderedGridOnce']=!0x0);}),this['setAttribute']('role','img');}['connectedCallback'](){super['connectedCallback'](),this['_observer']=new window['IntersectionObserver'](this['_observerCallback']['bind'](this),{'threshold':0.1}),this['_observer']['observe'](this);}['disconnectedCallback'](){super['disconnectedCallback'](),this['_entrySubs']=new Set(),this['_debouncedGenerateThumb']['cancel'](),this['_observer']?.['disconnect']();}}Thumb['template']='\x0a\x20\x20<div\x20class=\x22uc-thumb\x22\x20set=\x22style.backgroundImage:\x20thumbUrl\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-badge\x22>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20set=\x22@name:\x20badgeIcon\x22></uc-icon>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a',Thumb['bindAttributes']({'badgeIcon':null,'uid':null});class FileUploaderRegular extends SolutionBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-regular'];constructor(){super(),this['init$']={...this['init$'],'isHidden':!0x1};}['initCallback'](){super['initCallback'](),this['defineAccessor']('headless',_0x1a0cf5=>{this['set$']({'isHidden':asBoolean(_0x1a0cf5)});});}}FileUploaderRegular['template']='\x0a\x20\x20<uc-simple-btn\x20set=\x22@hidden:\x20isHidden\x22></uc-simple-btn>\x0a\x0a\x20\x20<uc-modal\x20id=\x22start-from\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-start-from>\x0a\x20\x20\x20\x20\x20\x20<uc-drop-area\x20with-icon\x20clickable></uc-drop-area>\x0a\x20\x20\x20\x20\x20\x20<uc-source-list\x20role=\x22list\x22\x20wrap></uc-source-list>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20l10n=\x22start-from-cancel\x22\x20class=\x22uc-secondary-btn\x22\x20set=\x22onclick:\x20*historyBack\x22></button>\x0a\x20\x20\x20\x20\x20\x20<uc-copyright></uc-copyright>\x0a\x20\x20\x20\x20</uc-start-from>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22upload-list\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-upload-list></uc-upload-list>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22camera\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-camera-source></uc-camera-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22url\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-url-source></uc-url-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22external\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-external-source></uc-external-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22cloud-image-edit\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>\x0a\x20\x20</uc-modal>\x0a',FileUploaderRegular['bindAttributes']({'headless':null});const ACTIVE_CLASS='active',EMPTY_CLASS='';class FileUploaderMinimal extends SolutionBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-minimal'];constructor(){super(),this['init$']={...this['init$'],'singleUpload':!0x1,'isHiddenStartFrom':!0x1,'classUploadList':EMPTY_CLASS,'classStartFrom':EMPTY_CLASS};}['_handleModalOpen'](_0x5b8fe8){_0x5b8fe8['id']===ActivityBlock['activities']['CLOUD_IMG_EDIT']&&this['set$']({'classUploadList':ACTIVE_CLASS}),this['$']['*currentActivity']===ActivityBlock['activities']['UPLOAD_LIST']&&this['set$']({'classUploadList':ACTIVE_CLASS,'isHiddenStartFrom':!0x0}),this['$']['*uploadList']?.['length']<=0x0&&this['set$']({'classStartFrom':ACTIVE_CLASS});}['_handleModalClose'](_0x106fc5){_0x106fc5['id']===this['$']['*currentActivity']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],this['set$']({'isHiddenStartFrom':!0x1})),_0x106fc5['id']===ActivityBlock['activities']['CLOUD_IMG_EDIT']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST']);}['initCallback'](){super['initCallback']();const _0x29e1dc=this['ref']['uBlock'];this['sub']('*currentActivity',_0x5e8893=>{_0x5e8893===ActivityBlock['activities']['UPLOAD_LIST']&&this['modalManager']['closeAll'](),_0x5e8893||(this['$']['*currentActivity']=_0x29e1dc['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['sub']('*uploadList',_0xfff5df=>{_0xfff5df?.['length']>0x0?(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],this['set$']({'classStartFrom':EMPTY_CLASS})):(this['set$']({'classUploadList':EMPTY_CLASS,'isHiddenStartFrom':!0x1}),this['$']['*currentActivity']=_0x29e1dc['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['subConfigValue']('confirmUpload',_0x297914=>{!0x1!==_0x297914&&(this['cfg']['confirmUpload']=!0x1);}),this['subConfigValue']('filesViewMode',_0x14fec7=>{this['setAttribute']('mode',_0x14fec7),this['subConfigValue']('multiple',_0x461076=>{'grid'===_0x14fec7?(_0x461076?this['style']['removeProperty']('--uc-grid-col'):this['style']['setProperty']('--uc-grid-col','1'),this['$']['singleUpload']=!_0x461076):(this['style']['removeProperty']('--uc-grid-col'),this['$']['singleUpload']=!0x1);});}),this['handleModalOpen']=this['_handleModalOpen']['bind'](this),this['handleModalClose']=this['_handleModalClose']['bind'](this),this['modalManager']['subscribe'](ModalEvents['OPEN'],this['handleModalOpen']),this['modalManager']['subscribe'](ModalEvents['CLOSE'],this['handleModalClose']);}['destroyCallback'](){super['destroyCallback'](),this['modalManager']['unsubscribe'](ModalEvents['OPEN'],this['handleModalOpen']),this['modalManager']['unsubscribe'](ModalEvents['CLOSE'],this['handleModalClose']);}}FileUploaderMinimal['template']='\x0a\x20\x20<uc-start-from\x20set=\x22@hidden:\x20isHiddenStartFrom;\x20@class:classStartFrom\x22>\x0a\x20\x20\x20\x20<uc-drop-area\x20set=\x22@single:singleUpload;\x22\x20initflow\x20clickable\x20tabindex=\x220\x22\x20l10n=\x22choose-file\x22></uc-drop-area>\x0a\x20\x20\x20\x20<uc-copyright></uc-copyright>\x0a\x20\x20</uc-start-from>\x0a\x20\x20<uc-upload-list\x20set=\x22@class:classUploadList\x22\x20ref=\x22uBlock\x22></uc-upload-list>\x0a\x0a\x20\x20<uc-modal\x20id=\x22start-from\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-start-from>\x0a\x20\x20\x20\x20\x20\x20<uc-drop-area\x20with-icon\x20clickable></uc-drop-area>\x0a\x20\x20\x20\x20\x20\x20<uc-source-list\x20role=\x22list\x22\x20wrap></uc-source-list>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20l10n=\x22start-from-cancel\x22\x20class=\x22uc-secondary-btn\x22\x20set=\x22onclick:\x20*historyBack\x22></button>\x0a\x20\x20\x20\x20</uc-start-from>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22camera\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-camera-source></uc-camera-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22url\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-url-source></uc-url-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22external\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-external-source></uc-external-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22cloud-image-edit\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>\x0a\x20\x20</uc-modal>\x0a';class FileUploaderInline extends SolutionBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-inline'];constructor(){super(),this['init$']={...this['init$'],'couldCancel':!0x1,'cancel':()=>{this['couldHistoryBack']?this['$']['*historyBack']():this['couldShowList']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST']);}};}get['couldHistoryBack'](){const _0xdcbffc=this['$']['*history'];return _0xdcbffc['length']>0x1&&_0xdcbffc[_0xdcbffc['length']-0x1]!==ActivityBlock['activities']['START_FROM'];}get['couldShowList'](){return this['cfg']['showEmptyList']||this['$']['*uploadList']['length']>0x0;}['initCallback'](){super['initCallback']();const _0x2beedc=this['ref']['uBlock'];this['sub']('*currentActivity',_0x1627a8=>{_0x1627a8||(this['$']['*currentActivity']=_0x2beedc['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['sub']('*uploadList',_0x165e5d=>{_0x165e5d?.['length']>0x0&&this['$']['*currentActivity']===(_0x2beedc['initActivity']||ActivityBlock['activities']['START_FROM'])&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST']);}),this['sub']('*history',()=>{this['$']['couldCancel']=this['couldHistoryBack']||this['couldShowList'];});}}FileUploaderInline['template']='\x0a\x20\x20<uc-start-from>\x0a\x20\x20\x20\x20<uc-drop-area\x20with-icon\x20clickable></uc-drop-area>\x0a\x20\x20\x20\x20<uc-source-list\x20role=\x22list\x22\x20wrap></uc-source-list>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22start-from-cancel\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-cancel-btn\x20uc-secondary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20cancel;\x20@hidden:\x20!couldCancel\x22\x0a\x20\x20\x20\x20></button>\x0a\x20\x20\x20\x20<uc-copyright></uc-copyright>\x0a\x20\x20</uc-start-from>\x0a\x20\x20<uc-upload-list\x20ref=\x22uBlock\x22></uc-upload-list>\x0a\x20\x20<uc-camera-source></uc-camera-source>\x0a\x20\x20<uc-url-source></uc-url-source>\x0a\x20\x20<uc-external-source></uc-external-source>\x0a\x20\x20<uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>\x0a';class CloudImageEditor extends CloudImageEditorBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-wgt-common'];['initCallback'](){super['initCallback'](),this['a11y']?.['registerBlock'](this);}}function defineComponents(_0x4aa917){for(let _0x2bbaee in _0x4aa917){let _0x403c0c=[..._0x2bbaee]['reduce']((_0x74a0f4,_0x2474f8)=>(_0x2474f8['toUpperCase']()===_0x2474f8&&(_0x2474f8='-'+_0x2474f8['toLowerCase']()),_0x74a0f4+_0x2474f8),'');_0x403c0c['startsWith']('-')&&(_0x403c0c=_0x403c0c['replace']('-','')),_0x403c0c['startsWith']('uc-')||(_0x403c0c='uc-'+_0x403c0c),_0x4aa917[_0x2bbaee]['reg']&&_0x4aa917[_0x2bbaee]['reg'](_0x403c0c);}}const UC_WINDOW_KEY='UC';async function loadFileUploaderFrom(_0x8c1f1b,_0x581638=!0x1){return new Promise((_0x3bee1c,_0x58d8c1)=>{if('object'!=typeof document)return void _0x3bee1c(null);if('object'==typeof window&&window[UC_WINDOW_KEY])return void _0x3bee1c(window[UC_WINDOW_KEY]);let _0x4421ff=document['createElement']('script');_0x4421ff['async']=!0x0,_0x4421ff['src']=_0x8c1f1b,_0x4421ff['onerror']=()=>{_0x58d8c1();},_0x4421ff['onload']=()=>{let _0xc681a3=window[UC_WINDOW_KEY];_0x581638&&defineComponents(_0xc681a3),_0x3bee1c(_0xc681a3);},document['head']['appendChild'](_0x4421ff);});}var UC=Object['freeze']({'__proto__':null,'ActivityBlock':ActivityBlock,'ActivityHeader':ActivityHeader,'BaseComponent':BaseComponent,'Block':Block,'BtnUi':BtnUi,'CameraSource':CameraSource,'CloudImageEditor':CloudImageEditor,'CloudImageEditorActivity':CloudImageEditorActivity,'CloudImageEditorBlock':CloudImageEditorBlock,'Config':Config,'Copyright':Copyright,'CropFrame':CropFrame,'Data':Data,'DropArea':DropArea,'EditorCropButtonControl':EditorCropButtonControl,'EditorFilterControl':EditorFilterControl,'EditorImageCropper':EditorImageCropper,'EditorImageFader':EditorImageFader,'EditorOperationControl':EditorOperationControl,'EditorScroller':EditorScroller,'EditorSlider':EditorSlider,'EditorToolbar':EditorToolbar,'ExternalSource':ExternalSource,'ExternalUploadSource':ExternalUploadSource,'FileItem':FileItem,'FileUploaderInline':FileUploaderInline,'FileUploaderMinimal':FileUploaderMinimal,'FileUploaderRegular':FileUploaderRegular,'FormInput':FormInput,'Icon':Icon,'Img':Img,'LineLoaderUi':LineLoaderUi,'Modal':Modal,'ModalEvents':ModalEvents,'PACKAGE_NAME':PACKAGE_NAME,'PACKAGE_VERSION':PACKAGE_VERSION,'PresenceToggle':PresenceToggle,'ProgressBar':ProgressBar,'ProgressBarCommon':ProgressBarCommon,'Select':Select,'SimpleBtn':SimpleBtn,'SliderUi':SliderUi,'SolutionBlock':SolutionBlock,'SourceBtn':SourceBtn,'SourceList':SourceList,'Spinner':Spinner,'StartFrom':StartFrom,'Thumb':Thumb,'UID':UID,'UploadCtxProvider':UploadCtxProvider,'UploadList':UploadList,'UploadSource':UploadSource,'UploaderBlock':UploaderBlock,'UrlSource':UrlSource,'defineComponents':defineComponents,'defineLocale':defineLocale,'loadFileUploaderFrom':loadFileUploaderFrom,'toKebabCase':toKebabCase});class Uploadcare extends Plugin{static get['requires'](){return[UploadcareEditing,UploadcareUI];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c445f){super(_0x5c445f),_0x5c445f['config']['define']('uploadcare.uploader.sourceList',[UploadcareSource['Local'],UploadcareSource['URL']]),defineComponents(UC);}}class UploadcareImageEditFormLoadingView extends View{constructor(_0x35ccb7){super(_0x35ccb7);const t=_0x35ccb7['t'],_0x38f525=this['bindTemplate'],_0x21bc61=new SpinnerView();_0x21bc61['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x21bc61,{'text':_0x38f525['to']('imageUploadProgress',_0x55c419=>t('Loading\x20image...')+'\x20('+(_0x55c419||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class UploadcareImageEditFormErrorView extends View{constructor(_0x380041){super(_0x380041);const t=_0x380041['t'];this['set']('errorType',null);const _0x58a730=new ButtonView(_0x380041);_0x58a730['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x58a730['withText']=!0x0,_0x58a730['class']='ck-button-action',_0x58a730['on']('execute',()=>{this['fire']('retry');}),_0x58a730['bind']('isVisible')['to'](this,'errorType',_0x49ce72=>'NotFound'!==_0x49ce72);const _0x34caad=new IconView();_0x34caad['content']=IconError,_0x34caad['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xb53be5=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x34caad,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xb53be5['to']('errorType',_0x5de17b=>t('NotFound'!==_0x5de17b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x58a730]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class UploadcareImageEditFormEditingView extends View{constructor(_0x6d61c,_0x47d016){super(_0x6d61c);const _0x15bf59=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x47d016,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x15bf59['to']('imageSrc')}});}}class UploadcareImageEditFormView extends DialogFocusManagerView{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3c928b,_0x557e19,_0xc48424){super(_0x3c928b),this['_items']=this['createCollection'](),this['_loadingView']=new UploadcareImageEditFormLoadingView(_0x3c928b),this['_errorView']=new UploadcareImageEditFormErrorView(_0x3c928b),this['_editingView']=new UploadcareImageEditFormEditingView(_0x3c928b,_0xc48424),this['_focusableView']=new View(_0x3c928b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x557e19),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x215f33=>{this['_addUploadcareImageEditorListeners'](_0x215f33);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x30c8e2,_0x3952bb){const _0x1c8c8d='uc-cloud-image-editor',_0x100d43=_0x30c8e2['querySelector'](_0x1c8c8d);if(_0x100d43)return _0x3952bb(_0x100d43);const _0x434c01=new MutationObserver(_0x2a5aa1=>{const _0x38f330=_0x2a5aa1['filter'](_0x84b011=>_0x84b011['target']===_0x30c8e2&&_0x84b011['addedNodes']['length']>0x0&&_0x84b011['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1c8c8d);_0x38f330['length']&&(_0x434c01['disconnect'](),_0x3952bb(_0x38f330[0x0]['addedNodes'][0x0]));});_0x434c01['observe'](_0x30c8e2,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5d57dd){_0x5d57dd['addEventListener']('apply',_0x586ef1=>{this['fire']('apply',{'imageSrc':_0x586ef1['detail']['cdnUrl']});}),_0x5d57dd['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x182a12,_0x4fd5a3,_0x310e07){super(),this['_editor']=_0x182a12,this['_dialog']=_0x4fd5a3,this['_imageElement']=_0x310e07,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0xa60cba=this['_imageElement'],_0x3217cf=_0xa60cba['getAttribute']('uploadcareImageId'),_0x408f6b=_0xa60cba['getAttribute']('src');if(_0x3217cf)await this['_loadImageInfo'](_0x3217cf,_0x408f6b);else{if(this['_imageCache']['has'](_0x408f6b)){const _0x156d92=this['_imageCache']['get'](_0x408f6b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x156d92['url'],this['imageDimension']=_0x156d92['dimension'],this['imageId']=_0x156d92['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x256d9b}=this['_editor'],t=_0x256d9b['t'],_0x1db95f=new UploadcareImageEditFormView(_0x256d9b,this['imageStatus'],this['_attributes']);_0x1db95f['bind']('status')['to'](this,'imageStatus'),_0x1db95f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1db95f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1db95f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1db95f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':IconUploadcareImageEdit,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1db95f,'position':DialogViewPosition['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1db95f['focus']();},'onHide':()=>{_0x1db95f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x40ea3c=>!isAncestor(_0x40ea3c,_0x1db95f['element'])}});}['_loadImageInfo'](_0x2f19cb,_0xe68902){return UploadUtils['getInfo'](_0x2f19cb,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x262d6a=>{const {width:_0xb38fb2,height:_0x43a0db}=_0x262d6a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe68902,this['imageDimension']={'width':_0xb38fb2,'height':_0x43a0db},this['imageId']=_0x2f19cb;})['catch'](_0x503aee=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x503aee['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4f2a40,_0x295323){return this['_getImageAsFile'](_0x4f2a40)['then'](_0x41245f=>UploadUtils['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x295323['signal'],'file':_0x41245f,'onProgress':_0x53fd17=>{_0x53fd17&&_0x53fd17['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x53fd17['value']));}}))['then'](_0x1585c5=>{const {width:_0x4d9c66,height:_0x39e40a}=_0x1585c5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1585c5['cdnUrl'],this['imageDimension']={'width':_0x4d9c66,'height':_0x39e40a},this['imageId']=_0x1585c5['uuid'],this['imageUploadProgress']=null;const _0x27fae1=_0x4f2a40['getAttribute']('src');this['_imageCache']['set'](_0x27fae1,{'id':_0x1585c5['uuid'],'url':_0x1585c5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3ac435=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3ac435['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x234086,_0x95521b){_0x234086['on']('apply',(_0x17b9bc,_0x4ff164)=>{this['_replaceImage'](_0x95521b,_0x4ff164['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x234086['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x234086['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4a5192,_0x1c8007,_0x3207d5){const _0x24dcaa=this['_editor'],{width:_0x506939,height:_0x5bb08a}=getImageDimension(_0x1c8007,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1aee51,imageSources:_0x1204a3}=getImageUrls(_0x1c8007,_0x506939);_0x24dcaa['model']['change'](_0x460690=>{if('$graveyard'===_0x4a5192['root']['rootName']){_0x24dcaa['execute']('insertImage',{'imageType':_0x4a5192['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4a5192['getAttributes']()),'uploadcareImageId':_0x3207d5,'src':_0x1aee51,'sources':_0x1204a3,'width':_0x506939,'height':_0x5bb08a}});const _0x28e871=_0x4a5192['getChildren']();_0x4a5192=_0x24dcaa['model']['document']['selection']['getSelectedElement']();for(const _0x424e4d of _0x28e871)_0x460690['append'](_0x460690['cloneElement'](_0x424e4d),_0x4a5192);}else _0x460690['setSelection'](_0x4a5192,'on'),_0x24dcaa['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4a5192['getAttributes']()),'uploadcareImageId':_0x3207d5,'src':_0x1aee51,'sources':_0x1204a3,'width':_0x506939,'height':_0x5bb08a},_0x4a5192);_0x460690['setSelection'](_0x4a5192,'on');});}async['_getImageAsFile'](_0x35ccab){const _0x203cc4=_0xd4e5e['window'],_0x48d6eb=_0xd4e5e['document']['location']['href'],_0x461941=new _0x203cc4['URL'](_0x35ccab['getAttribute']('src'),_0x48d6eb);if('data:'===_0x461941['protocol']){const _0x331fd9=_0x461941['href']['split'](','),_0x3547c4=_0x331fd9[0x0]['match'](/:(.*?);/)[0x1],_0x3909a5=_0x3547c4['split']('/')[0x1],_0x1de06a=_0x203cc4['atob'](_0x331fd9[_0x331fd9['length']-0x1]);let _0x4975b0=_0x1de06a['length'];const _0x4fffc1=new _0x203cc4['Uint8Array'](_0x4975b0);for(;_0x4975b0--;)_0x4fffc1[_0x4975b0]=_0x1de06a['charCodeAt'](_0x4975b0);return new _0x203cc4['File']([_0x4fffc1],'image.'+_0x3909a5,{'type':_0x3547c4});}const _0x122bee=_0x461941['href']['split']('/'),_0x1f0d85=_0x122bee[_0x122bee['length']-0x1],_0xb5b575=_0x1f0d85['split']('.')[0x1];return _0x203cc4['fetch'](_0x461941['href'])['then'](_0x59a239=>_0x59a239['clone']()['blob']())['then'](_0x5d1fbf=>new _0x203cc4['File']([_0x5d1fbf],_0x1f0d85,{'type':'image/'+_0xb5b575}));}}class UploadcareImageEditCommand extends _0x142ccd{['imageEditController'];static get['requires'](){return[Dialog];}['_isEditable'];constructor(_0x1be50c){super(_0x1be50c),this['imageEditController']=void 0x0,this['_isEditable']=createEditabilityChecker(_0x1be50c['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2b9c41=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2b9c41);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3b3237=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3b3237&&(_0x3b3237['is']('element','imageBlock')||_0x3b3237['is']('element','imageInline'))&&(this['imageEditController']=new UploadcareImageEditController(this['editor'],this['editor']['plugins']['get'](Dialog),_0x3b3237),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class UploadcareImageReplaceCommand extends _0x142ccd{['refresh'](){const _0x2e3a02=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2e3a02&&(_0x2e3a02['is']('element','imageBlock')||_0x2e3a02['is']('element','imageInline')));}['execute'](_0x3dcd7f){const _0x52886=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x129ae6=>{_0x129ae6['setAttributes'](_0x3dcd7f,_0x52886),_0x129ae6['removeAttribute']('srcset',_0x52886),_0x129ae6['removeAttribute']('sizes',_0x52886);});}}class UploadcareImageEditEditing extends Plugin{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[UploadcareEditing,Notification,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x11971b}=this;_0x11971b['commands']['add']('uploadcareImageEdit',new UploadcareImageEditCommand(_0x11971b)),_0x11971b['commands']['add']('uploadcareImageReplace',new UploadcareImageReplaceCommand(_0x11971b));}}class UploadcareImageEditUI extends Plugin{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x556d50=this['editor'];_0x556d50['ui']['componentFactory']['add']('uploadcareImageEdit',_0x11bcd1=>{const _0x39b926=_0x556d50['commands']['get']('uploadcareImageEdit'),_0x1f4ac6=new ButtonView(_0x11bcd1),t=_0x11bcd1['t'];return _0x1f4ac6['set']({'icon':IconUploadcareImageEdit,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1f4ac6['bind']('isEnabled')['to'](_0x39b926),_0x1f4ac6['bind']('isOn')['to'](_0x39b926,'isActive'),this['listenTo'](_0x1f4ac6,'execute',()=>{_0x556d50['execute']('uploadcareImageEdit'),_0x556d50['editing']['view']['focus']();}),_0x1f4ac6;}),this['_initConfig']();}['_initConfig'](){const _0x3c77a9=createElement(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3c77a9),this['listenTo'](this['editor'],'destroy',()=>{_0x3c77a9['remove']();});}}class UploadcareImageEdit extends Plugin{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[UploadcareImageEditEditing,UploadcareImageEditUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{AIActions,AIAdapter,AIAssistant,AIAssistantUI,AIBalloon,AIChat,AIChatController,AIChatHistory,AIChatHistoryController,AIChatHistoryUI,AIChatUI,AIConnector,AIEditing,AIEditorIntegration,AIQuickActionType,AIQuickActions,AIQuickActionsUI,AIRequestError,AIReviewCheck,AIReviewCheckResult,AIReviewCheckRun,AIReviewMode,AIReviewModeController,AIReviewModeEditing,AIReviewModeUI,AITabs,AITextAdapter,AIToggleButtonUI,AWSTextAdapter,AcceptSuggestionCommand,AddCommentThreadCommand,Annotation$1 as Annotation,AnnotationCollection,AnnotationCounterButtonView,AnnotationView,Annotations,AnnotationsSidebarItemView,AnnotationsSidebarView,AnnotationsUIs,AriaDescriptionView,BaseCommentThreadView,BaseCommentView,BaseSuggestionThreadView,CaseChange,CaseChangeCommand,CaseChangeEditing,CaseChangeUI,CloudServicesCommentsAdapter,CloudServicesRevisionHistoryAdapter,CloudServicesTrackChangesAdapter,Comment,CommentThread,CommentThreadController,CommentThreadInputView,CommentThreadView,CommentView,Comments,CommentsArchive,CommentsArchiveUI,CommentsEditing,CommentsListView,CommentsOnly,CommentsRepository,CommentsUI,ConfirmMixin,CopyFormatCommand,DATA_ID_MODEL_ATTRIBUTE,DATA_ID_VIEW_ATTRIBUTE,DiscardSuggestionCommand,DocumentCompare,DocumentOutline,DocumentOutlineUI,DocumentOutlineUtils,EditSourceCommand,EditorAnnotations,EmailConfigurationHelper,EmailConfigurationLogger,EmptyBlockEmailIntegration,ExecuteOnAllSuggestionsCommand,ExecuteOnSelectedSuggestionsCommand,ExportInlineStyles,ExportInlineStylesCommand,ExportInlineStylesEditing,ExportInlineStylesEmailIntegration,ExportPdf,ExportPdfCommand,ExportWord,ExportWordCommand,FOCUS_ANNOTATION_KEYSTROKE,FontEmailIntegration,FormatPainter,FormatPainterEditing,FormatPainterUI,GeneralHtmlIntegrationSupport,HeadingId,HighlightEmailIntegration,ImageEmailIntegration,ImportWord,ImportWordCommand,ImportWordEditing,ImportWordUI,InlineAnnotations,InsertMergeFieldBlockCommand,InsertMergeFieldCommand,InsertMergeFieldImageCommand,LateFocusButtonView,LateFocusDropdownButtonView,LineHeight,LineHeightCommand,LineHeightEditing,LineHeightUI,LinkEmailIntegration,ListEmailIntegration,MarkdownEmailIntegration,MathTypeEmailIntegration,MediaEmbedEmailIntegration,MergeFields,MergeFieldsEditing,MergeFieldsEmailIntegration,MergeFieldsUI,MultiLevelList,MultiLevelListCommand,MultiLevelListEditing,MultiLevelListEmailIntegration,MultiLevelListUI,NarrowSidebar,OpenAITextAdapter,Pagination,PaginationRenderer,PasteFormatCommand,PasteFromOfficeEnhanced,Permissions,PresenceList,PresenceListUI,PreviewFinalContentCommand,PreviewMergeFieldsCommand,RealTimeCollaborationClient,RealTimeCollaborativeComments,RealTimeCollaborativeEditing,RealTimeCollaborativeRevisionHistory,RealTimeCollaborativeTrackChanges,ReplaceSourceCommand,RestoreRevisionCommand,Revision,RevisionHistory,RevisionHistoryUI,RevisionHistoryUtils,RevisionTracker,RevisionViewer,RevisionViewerEditor,RevisionViewerIntegration,RevisionViewerLoadingOverlay,RevisionViewerUI,RevisionsRepository,RevisionsSidebar,Sessions,ShowAIAssistantCommand,ShowChangeCommand,Sidebar,SlashCommand,SlashCommandConfig,SlashCommandEditing,SlashCommandUI,SourceEditingEmailIntegration,SourceEditingEnhanced,Suggestion,SuggestionDescriptionFactory,SuggestionThreadView,SuggestionView,TableEmailIntegration,TableOfContents,TableOfContentsCommand,TableOfContentsEditing,TableOfContentsUI,Template,TemplateCommand,TemplateEditing,TemplateEmailIntegration,TemplateUI,TodoListEmailIntegration,ToggleAICommand,TrackChanges,TrackChangesCommand,TrackChangesData,TrackChangesDataGetter,TrackChangesEditing,TrackChangesPreview,TrackChangesUI,UploadEmailIntegration,Uploadcare,UploadcareCommand,UploadcareEditing,UploadcareImageEdit,UploadcareImageEditCommand,UploadcareImageEditEditing,UploadcareImageEditUI,UploadcareUI,UploadcareUploadAdapter,UserView,Users,WebSocketGateway,WideSidebar,bindAnnotationCollections,createResizeButton,dropImportantStyleSuffix,getAllMarkersDomElementsSorted,getDateTimeFormatter,getDefaultAICommands,getEmailInlineStylesTransformations,getMarkerDomElement,hashObject,isUnsupportedEmailColorFormat,isUnsupportedEmailColorValue,sanitizeEditorConfig,setupThreadKeyboardNavigation,surroundingMarkersDetector,trimHtml};